/* ================================================
   吃瓜论坛 · 瓜田美学设计系统
   瓜甜不靠吹，论坛看实锤
   ================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #fdf8f3;
  --melon: #ff5e73;
  --melon-deep: #e94b63;
  --melon-soft: #ffd9de;
  --mint: #3faa89;
  --mint-deep: #227a61;
  --mint-soft: #e2f3ed;
  --sun: #ffce6e;
  --ink: #2c3e3a;
  --ink-soft: #6a7f79;
  --line: rgba(44, 62, 58, .08);
  --white: #fff;
  --radius: 24px;
  --shadow: 0 12px 32px -12px rgba(44, 62, 58, .08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(255, 94, 115, .04) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

a {
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section:nth-child(even) {
  background: #f0f7f3;
}

/* ============ 导航栏 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 248, 243, .88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 94, 115, .1);
  transition: box-shadow .3s;
}

.site-header:hover {
  box-shadow: 0 8px 30px -12px rgba(255, 94, 115, .12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  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.02em;
  position: relative;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--melon) 0%, #ff9d8c 100%);
  color: #fff;
  box-shadow: 0 4px 12px -3px rgba(255, 94, 115, .5);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2f9e7b;
  bottom: -3px;
  right: -3px;
  border: 2px solid var(--cream);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--melon), var(--sun));
  transition: width .25s ease;
}

.main-nav a:hover {
  color: var(--melon);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 100px;
  background: linear-gradient(120deg, var(--melon), var(--melon-deep));
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(255, 94, 115, .4);
  transition: transform .2s, box-shadow .2s;
}

.nav-cta::after { display: none; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(255, 94, 115, .5);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 -7px 0 var(--ink), 0 7px 0 var(--ink);
}

/* ============ Hero 主视觉 ============ */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 206, 110, .18) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(63, 170, 137, .14) 0%, transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, #fffbf6 100%);
}

.hero::before {
  content: '瓜';
  position: absolute;
  right: 2%;
  bottom: -8%;
  font-size: 480px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 94, 115, .025);
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.1em;
}

.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 94, 115, .1) 0%, transparent 70%);
  z-index: 0;
}

.hero > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  margin-bottom: 24px;
  letter-spacing: .05em;
}

.hero-eyebrow::before {
  content: '🍉';
  font-size: .8rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero h1 .text-accent {
  background: linear-gradient(120deg, var(--melon) 0%, var(--melon-deep) 60%, var(--sun) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .25s ease;
  letter-spacing: .01em;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--melon) 0%, var(--melon-deep) 100%);
  box-shadow: 0 12px 28px -8px rgba(255, 94, 115, .5);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 36px -10px rgba(255, 94, 115, .6);
}

.btn-outline {
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(63, 170, 137, .4);
  color: var(--mint-deep);
}

.btn-outline:hover {
  border-color: var(--mint);
  background: var(--mint-soft);
  transform: translateY(-3px);
}

.hero-image {
  flex-shrink: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, transparent 60%);
  overflow: hidden;
  border: 12px solid #fff;
  outline: 8px solid rgba(63, 170, 137, .5);
  box-shadow:
    0 32px 64px -24px rgba(255, 94, 115, .35),
    0 0 0 2px rgba(63, 170, 137, .12);
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--melon-soft) 0%, rgba(255, 217, 222, .6) 100%);
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 16px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: rgba(51, 35, 31, .5);
  transform: translate(-50%, -50%);
  box-shadow:
    30px -40px 0 -3px rgba(51, 35, 31, .45),
    -45px -15px 0 -3px rgba(51, 35, 31, .4),
    50px 25px 0 -3px rgba(51, 35, 31, .42),
    -30px 45px 0 -3px rgba(51, 35, 31, .38),
    15px 60px 0 -3px rgba(51, 35, 31, .4),
    -65px 10px 0 -3px rgba(51, 35, 31, .35);
}

/* ============ 标题 / 标签 ============ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  background: var(--melon-soft);
  color: var(--melon-deep);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--melon);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 640px;
  color: var(--ink-soft);
  margin-bottom: 48px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============ 卡片网格 ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(44, 62, 58, .06);
  box-shadow: 0 4px 16px rgba(44, 62, 58, .04);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--melon), var(--sun));
  opacity: 0;
  transition: opacity .3s;
}

.category-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 28px 48px -20px rgba(255, 94, 115, .2);
  border-color: rgba(255, 94, 115, .15);
}

.category-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--melon-soft);
  transition: transform .3s;
}

.category-card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.card-link {
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  color: var(--melon);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: gap .2s;
}

.card-link:hover {
  gap: 10px;
  color: var(--melon-deep);
}

.category-card:nth-child(1) .card-icon { background: var(--melon-soft); }
.category-card:nth-child(2) .card-icon { background: var(--mint-soft); }
.category-card:nth-child(3) .card-icon { background: rgba(255, 206, 110, .25); }
.category-card:nth-child(4) .card-icon { background: rgba(100, 149, 237, .15); }

.category-card:nth-child(2) .card-link { color: var(--mint); }
.category-card:nth-child(2):hover .card-link { color: var(--mint-deep); }
.category-card:nth-child(3) .card-link { color: #c78b1a; }
.category-card:nth-child(4) .card-link { color: #5a7d9a; }

/* ============ Feature 特性区块 ============ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.feature-image {
  border-radius: 30% 70% 60% 40% / 40% 40% 60% 60%;
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(135deg, var(--melon-soft) 0%, var(--mint-soft) 100%);
  box-shadow: 0 24px 48px -20px rgba(44, 62, 58, .15);
  position: relative;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-image::after {
  content: '🍉';
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 3rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.feature-text {
  padding: 20px 0;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  border-bottom: 1px dashed rgba(44, 62, 58, .08);
}

.feature-list li::before {
  content: '✓';
  font-weight: 900;
  color: var(--mint);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}

/* ============ 数据条 ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(44, 62, 58, .06);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -16px rgba(255, 94, 115, .2);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--melon-soft) 0%, transparent 70%);
  opacity: .5;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(120deg, var(--melon) 0%, var(--sun) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: .88rem;
  color: var(--ink-soft);
  margin-top: 8px;
  font-weight: 600;
}

/* ============ 内容墙 ============ */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(44, 62, 58, .06);
  box-shadow: 0 4px 16px rgba(44, 62, 58, .04);
  transition: transform .3s ease, box-shadow .3s ease;
}

.content-wall-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 52px -18px rgba(255, 94, 115, .2);
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.content-wall-item:hover img {
  transform: scale(1.04);
}

.content-wall-body {
  padding: 24px;
}

.content-wall-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  transition: color .2s;
}

.content-wall-body h3 a {
  text-decoration: none;
  color: inherit;
}

.content-wall-item:hover h3 a {
  color: var(--melon);
}

.content-wall-body p {
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.6;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid rgba(44, 62, 58, .06);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44, 62, 58, .03);
  transition: box-shadow .3s, border-color .3s;
}

.faq-item:hover {
  border-color: rgba(255, 94, 115, .2);
}

.faq-question {
  padding: 20px 28px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: var(--ink);
}

.faq-question::after {
  content: '+';
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--melon);
  line-height: 1;
  transition: transform .3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px 20px;
  display: none;
  color: var(--ink-soft);
  line-height: 1.7;
}

.faq-item.open {
  border-color: rgba(255, 94, 115, .12);
  box-shadow: 0 12px 28px -12px rgba(255, 94, 115, .12);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============ CTA 横幅 ============ */
.cta-banner {
  padding: 72px 40px;
  text-align: center;
  border-radius: 32px;
  background: linear-gradient(130deg, #ff5e73 0%, #ff8e6b 35%, #ffce6e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 64px -24px rgba(255, 94, 115, .4);
}

.cta-banner::before {
  content: '🍉';
  position: absolute;
  left: 5%;
  top: 10%;
  font-size: 4rem;
  opacity: .3;
  transform: rotate(-20deg);
}

.cta-banner::after {
  content: '🍃';
  position: absolute;
  right: 8%;
  bottom: 12%;
  font-size: 3.2rem;
  opacity: .3;
  transform: rotate(15deg);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, .92);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--melon-deep);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .15);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, .2);
}

/* ============ 页脚 ============ */
.site-footer {
  padding: 72px 0 32px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(63, 170, 137, .05) 100%),
    var(--cream);
  border-top: 1px solid rgba(63, 170, 137, .1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  padding-right: 24px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
  color: var(--ink);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s, transform .2s;
}

.footer-col a:hover {
  color: var(--melon);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(44, 62, 58, .08);
  margin-top: 56px;
  padding-top: 24px;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-soft);
}

/* ============ 工具类 ============ */
.text-accent {
  color: var(--melon);
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero > .container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    width: 280px;
    height: 280px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-image {
    min-height: 320px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(253, 248, 243, .98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 24px 24px 32px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 94, 115, .1);
    box-shadow: 0 24px 40px -12px rgba(44, 62, 58, .12);
  }

  .main-nav.open a {
    padding: 14px 0;
    font-size: 1rem;
    display: block;
    border-bottom: 1px dashed rgba(44, 62, 58, .08);
  }

  .main-nav.open .nav-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }

  .section {
    padding: 72px 0;
  }

  .cta-banner {
    padding: 56px 20px;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-image {
    width: 240px;
    height: 240px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .feature-image {
    min-height: 260px;
    border-radius: 24px;
  }
}