/* ==========================================================
   枫与柃 · 每日吃瓜中心论坛
   — 帧帧超清 · 中国之芯
   Design System: 「晶屏」 Crystal-Paper Ultra HD
   ========================================================== */

:root {
  --paper: #FAF7F2;
  --paper-2: #F1EBE2;
  --paper-3: #FFFFFF;
  --ink: #2B2A26;
  --ink-soft: #5F5A52;
  --ink-faint: #948D82;
  --coral: #E85D47;
  --coral-deep: #C24A36;
  --teal: #128577;
  --teal-deep: #0C6A5E;
  --amber: #E2A63B;
  --line: #E4DCD0;
  --shadow-soft: 0 2px 8px rgba(80,60,40,.05), 0 8px 30px rgba(80,60,40,.05);
  --shadow-lift: 0 6px 20px rgba(80,60,40,.07), 0 18px 48px rgba(80,60,40,.06);
  --shadow-glow: 0 4px 20px rgba(232,93,71,.25);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(232, 93, 71, 0.22);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #D6CEC2; border-radius: 10px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #C2B9AC; }

/* ---------- 核心布局 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--paper-2);
}

/* ---------- 导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.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: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #F26D55, var(--coral) 55%, var(--amber));
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 80%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(25deg) translateX(-100%);
  animation: logo-shine 4s ease infinite;
}

@keyframes logo-shine {
  0%, 60% { transform: rotate(25deg) translateX(-100%); }
  100% { transform: rotate(25deg) translateX(300%); }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

.main-nav a:not(.nav-cta):hover {
  color: var(--coral);
}

.main-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 9px 24px;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 600;
  background: linear-gradient(135deg, #F26D55, var(--coral) 50%, var(--coral-deep));
  box-shadow: 0 2px 12px rgba(232, 93, 71, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 93, 71, 0.35);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-3);
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--ink);
  transition: background .2s ease;
}

.menu-toggle:hover {
  background: var(--paper-2);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 68px;
  padding-bottom: 48px;
  background:
    radial-gradient(60vw 50vh at 85% 30%, rgba(226, 166, 59, 0.14) 0%, transparent 60%),
    radial-gradient(50vw 40vh at 10% 70%, rgba(19, 133, 122, 0.10) 0%, transparent 55%),
    var(--paper);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 93, 71, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 93, 71, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
  animation: hero-in 0.9s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
  color: var(--coral);
  background: rgba(232, 93, 71, 0.09);
  border: 1px solid rgba(232, 93, 71, 0.15);
  position: relative;
}

.hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(232, 93, 71, 0.4);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(232, 93, 71, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(232, 93, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 93, 71, 0); }
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #F26D55, var(--coral) 50%, var(--coral-deep));
  box-shadow: 0 4px 16px rgba(232, 93, 71, 0.25);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 93, 71, 0.32);
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background: rgba(19, 133, 122, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(19, 133, 122, 0.12);
}

/* ---------- 标签 / 标题 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--ink);
}

.section-desc {
  max-width: 600px;
  color: var(--ink-soft);
  margin-bottom: 44px;
  font-size: 1.02rem;
}

/* ---------- 卡片网格 ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(19, 133, 122, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(232, 93, 71, 0.18);
}

.category-card:hover::before {
  opacity: 1;
  animation: pulse-dot-teal 2s ease infinite;
}

.category-card:hover::after {
  transform: scaleX(1);
}

@keyframes pulse-dot-teal {
  0% { box-shadow: 0 0 0 0 rgba(19, 133, 122, 0.3); }
  70% { box-shadow: 0 0 0 8px rgba(19, 133, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 133, 122, 0); }
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(232, 93, 71, 0.1), rgba(226, 166, 59, 0.1));
  color: var(--coral);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--teal);
  margin-top: 14px;
  position: relative;
  transition: gap 0.25s ease;
}

.card-link:hover {
  gap: 12px;
}

/* ---------- 特性块 ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-image {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  position: relative;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.feature-image:hover img {
  transform: scale(1.02);
}

.feature-text {
  padding-right: 8px;
}

.feature-text .section-label {
  display: inline-flex;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: '✓';
  font-weight: 800;
  color: var(--teal);
  flex-shrink: 0;
}

/* ---------- 数据条 ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: var(--paper-3);
  padding: 34px 20px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--amber));
  border-radius: 0 0 3px 3px;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--coral) 15%, var(--amber) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 8px;
  font-weight: 500;
}

/* ---------- 内容墙 ---------- */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.content-wall-item {
  background: var(--paper-3);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-wall-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.content-wall-item:hover img {
  transform: scale(1.03);
}

.content-wall-body {
  padding: 20px 22px;
}

.content-wall-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.content-wall-body p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open {
  border-color: rgba(232, 93, 71, 0.3);
  box-shadow: var(--shadow-soft);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--coral);
  line-height: 1;
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  padding: 64px 40px;
  text-align: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #C93F2E 0%, var(--coral) 35%, #E87A3B 70%, var(--amber) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(200, 70, 45, 0.28);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--coral);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cta-banner .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--paper-2);
  padding: 64px 0 28px;
  position: relative;
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--teal));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  padding-right: 24px;
}

.footer-brand h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--coral);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- 工具类 ---------- */
.text-accent {
  color: var(--coral);
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--paper);
    padding: 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(80, 60, 40, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }
}

@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;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section {
    padding: 60px 0;
  }

  .feature-block {
    gap: 28px;
  }

  .header-inner {
    padding: 0 18px;
  }

  .container {
    padding: 0 18px;
  }

  .cta-banner {
    padding: 40px 18px;
    border-radius: 16px;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}