/* ==========================================================
   禁 满天 堂 官方 · 纸艺东方设计系统
   暖白纸底 · 朱砂红 · 湖水青 · 沙金
   ========================================================== */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background-color: #FDF9F3;
  background-image: radial-gradient(rgba(45,42,38,0.015) 1px, transparent 1px);
  background-size: 10px 10px;
  color: #2D2A26;
  line-height: 1.6;
}

::selection {
  background: #E85D3D;
  color: #FDF9F3;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(232,93,61,0.5);
  outline-offset: 2px;
}

/* ===== 核心布局 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

.section:nth-child(even) {
  background:
    radial-gradient(rgba(45,42,38,0.012) 1px, transparent 1px),
    #F6F0E6;
  background-size: 10px 10px;
}

/* ===== 导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253,249,243,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #EFE6DA;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #E85D3D 0%, #D9A441 60%, #2B879E 100%);
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  color: #2D2A26;
  letter-spacing: 1px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #E85D3D;
  color: #FDF9F3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow:
    inset 0 0 0 2px rgba(253,249,243,0.3),
    0 2px 6px rgba(232,93,61,0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2D2A26;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #E85D3D;
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: #E85D3D;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 4px;
  color: #FDF9F3 !important;
  font-weight: 600;
  background: #E85D3D;
  box-shadow: 0 2px 8px rgba(232,93,61,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: #D94B2C;
  color: #FDF9F3 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232,93,61,0.35);
}

.nav-cta::after { content: none; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #FFFDF8;
  border: 1px solid #EFE6DA;
  border-radius: 6px;
  cursor: pointer;
  color: #2D2A26;
  font-size: 1.3rem;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover {
  border-color: #E85D3D;
  color: #E85D3D;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  padding: 68px 24px 0;
  max-width: 1200px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 90% 20%, rgba(217,164,65,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 85%, rgba(43,135,158,0.05) 0%, transparent 40%),
    transparent;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 2px dashed rgba(232,93,61,0.22);
  pointer-events: none;
  animation: hero-spin 50s linear infinite;
}

.hero::after {
  content: '';
  position: absolute;
  right: 30px;
  top: calc(50% - 110px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #D9A441;
  box-shadow: 0 0 0 10px rgba(217,164,65,0.15);
  pointer-events: none;
}

@keyframes hero-spin {
  to { transform: rotate(360deg); }
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
  background: #F6F0E6;
  color: #E85D3D;
  border-left: 3px solid #E85D3D;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero h1 .text-accent {
  color: #E85D3D;
  background-image: linear-gradient(to top, rgba(232,93,61,0.14) 0%, rgba(232,93,61,0.14) 28%, transparent 28%);
  padding: 0 4px;
  display: inline;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.7;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

.hero-image {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(43,135,158,0.12);
  transition: box-shadow 0.3s ease;
}

.hero-image:hover {
  box-shadow: 12px 12px 0 rgba(232,93,61,0.15);
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: #E85D3D;
  color: #FDF9F3;
  box-shadow: 0 4px 14px rgba(232,93,61,0.25);
}

.btn-primary:hover {
  background: #D94B2C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,93,61,0.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #2D2A26;
  color: #2D2A26;
}

.btn-outline:hover {
  border-color: #E85D3D;
  color: #E85D3D;
  transform: translateY(-2px);
}

/* ===== 标签 / 标题 ===== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
  background: #2B879E;
  color: #FDF9F3;
  padding: 3px 14px;
  border-radius: 2px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(43,135,158,0.25);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-desc {
  max-width: 600px;
  opacity: 0.7;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ===== 卡片网格 ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #EFE6DA;
  background: #FFFDF8;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #E85D3D, #D9A441);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45,42,38,0.08);
  border-color: rgba(232,93,61,0.4);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  background: #F6F0E6;
  color: #E85D3D;
}

.category-card:nth-child(2n) .card-icon {
  background: #E8F4F6;
  color: #2B879E;
}

.category-card:nth-child(3n) .card-icon {
  background: #FAF3E3;
  color: #D9A441;
}

.card-link {
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: #E85D3D;
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.card-link:hover {
  border-bottom-color: #E85D3D;
}

/* ===== 特性块 ===== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-block:nth-child(even) .feature-image { order: 2; }

.feature-image {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #EFE6DA;
  box-shadow: 8px 8px 0 rgba(43,135,158,0.12);
  transition: box-shadow 0.3s ease;
}

.feature-image:hover {
  box-shadow: 8px 8px 0 rgba(232,93,61,0.18);
}

.feature-image img {
  width: 100%;
  height: auto;
}

.feature-text {
  padding: 8px 0;
}

.feature-list {
  list-style: none;
  margin-top: 4px;
}

.feature-list li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4A463F;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '✓';
  font-weight: 700;
  color: #2B879E;
  background: #E8F4F6;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ===== 数据条 ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 24px;
  border-radius: 4px;
  border: 1px solid #EFE6DA;
  background: #FFFDF8;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-top: 2px solid #E85D3D;
  border-right: 2px solid #E85D3D;
  border-top-right-radius: 4px;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45,42,38,0.06);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: #E85D3D;
  font-feature-settings: "tnum";
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* ===== 内容墙 ===== */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #EFE6DA;
  background: #FFFDF8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-wall-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45,42,38,0.08);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content-wall-item:hover img {
  transform: scale(1.05);
}

.content-wall-body {
  padding: 20px;
}

.content-wall-body h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 700;
}

.content-wall-body .content-wall-meta {
  font-size: 0.8rem;
  color: #E85D3D;
  font-weight: 600;
  background: #FDF0EC;
  padding: 2px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 10px;
}

.content-wall-body p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 8px;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #EFE6DA;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #FFFDF8;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(232,93,61,0.4);
}

.faq-item.open {
  border-color: rgba(232,93,61,0.5);
  box-shadow: 0 2px 8px rgba(232,93,61,0.08);
}

.faq-item .faq-question {
  padding: 16px 20px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2D2A26;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: #E85D3D;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-question {
  color: #E85D3D;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 20px 16px;
  display: none;
  opacity: 0.7;
  line-height: 1.7;
  font-size: 0.9rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===== CTA横幅 ===== */
.cta-banner {
  padding: 56px 24px;
  text-align: center;
  border-radius: 8px;
  color: #FDF9F3;
  background: linear-gradient(135deg, #E85D3D 0%, #D94B2C 55%, #D9A441 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px dashed rgba(253,249,243,0.3);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px dashed rgba(253,249,243,0.2);
  pointer-events: none;
}

.cta-banner h2 {
  color: #FDF9F3;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 8px;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  position: relative;
  z-index: 1;
  opacity: 0.85;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.cta-banner .btn-primary {
  background: #FDF9F3;
  color: #E85D3D;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.cta-banner .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===== 页脚 ===== */
.site-footer {
  padding: 56px 0 28px;
  background: #F6F0E6;
  border-top: 3px solid #E85D3D;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: #2D2A26;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #E85D3D;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: #666;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: #E85D3D;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(45,42,38,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== 工具类 ===== */
.text-accent { color: #E85D3D; }
.text-center { text-align: center; }

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  opacity: 0.7;
  line-height: 1.7;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== 动画 ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    gap: 40px;
    padding: 100px 24px 60px;
    text-align: left;
  }

  .hero::before {
    width: 180px;
    height: 180px;
    right: -50px;
  }

  .hero::after {
    width: 24px;
    height: 24px;
    right: 10px;
  }

  .hero-buttons { justify-content: flex-start; }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-block:nth-child(even) .feature-image { order: 0; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(253,249,243,0.98);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid #EFE6DA;
    box-shadow: 0 12px 24px rgba(45,42,38,0.06);
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero-buttons { flex-direction: column; }

  .hero h1 { font-size: 2rem; }

  .section { padding: 56px 0; }

  .stat-item { padding: 24px 16px; }
}