/* ==========================================================
   吃瓜黑料 · 夏日西瓜美学设计系统
   视觉概念：Juicy Melon Fresh — 多汁西瓜灵感
   奶油底色 × 西瓜红 × 薄荷绿 × 种子黑点缀
   ========================================================== */

*, *::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: #FFF9F0;
  color: #2D2A26;
  line-height: 1.6;
}

::selection {
  background: #FF4D6D;
  color: #FFF9F0;
}

/* ---------- 容器与区块 ---------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.section:nth-child(even) {
  background: #F4FCF9;
}

.section::before {
  content: '🍉';
  position: absolute;
  font-size: 180px;
  opacity: 0.05;
  top: 40px;
  right: -30px;
  transform: rotate(15deg);
  pointer-events: none;
}

.section:nth-child(even)::before {
  content: '🥒';
  left: -40px;
  right: auto;
  transform: rotate(-20deg);
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 249, 240, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 2px solid #FF4D6D;
  box-shadow: 0 4px 30px rgba(255, 77, 109, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.4rem;
  text-decoration: none;
  color: #2D2A26;
  letter-spacing: -0.5px;
  position: relative;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #FF4D6D 0%, #FF8FA3 50%, #2A9D8F 100%);
  color: #FFF9F0;
  box-shadow: 0 4px 14px rgba(255, 77, 109, 0.3);
  transform: rotate(-8deg);
  transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(8deg) scale(1.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2D2A26;
  transition: 0.2s;
  position: relative;
  padding: 4px 0;
}

.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #FF4D6D;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav a:not(.nav-cta):hover {
  color: #FF4D6D;
}

.main-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 50px;
  background: linear-gradient(120deg, #FF4D6D, #FF8FA3);
  color: #FFF9F0 !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.35);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.45);
  color: #FFF9F0 !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F4FCF9;
  border: 2px solid #2A9D8F;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: #2A9D8F;
  transition: all 0.3s;
}

.menu-toggle:hover {
  background: #2A9D8F;
  color: #FFF9F0;
}

/* ---------- Hero 区 ---------- */

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(ellipse 500px 300px at 85% 20%, rgba(255, 209, 61, 0.18) 0%, transparent 100%),
    radial-gradient(ellipse 400px 280px at 15% 80%, rgba(42, 157, 143, 0.14) 0%, transparent 100%),
    linear-gradient(160deg, #FFF9F0 0%, #FFF1F3 50%, #F0FAF7 100%);
  padding: 120px 0 80px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #FF4D6D, #FFD93D, #2A9D8F, #FF4D6D);
  background-size: 300% 100%;
  animation: melonBar 8s linear infinite;
}

@keyframes melonBar {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  background: #FFD93D;
  color: #2D2A26;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: rotate(-2deg);
  box-shadow: 0 4px 12px rgba(255, 217, 61, 0.4);
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #2D2A26;
}

.hero h1 .text-accent {
  color: #FF4D6D;
  position: relative;
  display: inline-block;
}

.hero h1 .text-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 12px;
  background: #FFD93D;
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1deg);
}

.hero p {
  font-size: 1.15rem;
  color: #5C5752;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(120deg, #FF4D6D, #FF7088);
  color: #FFF9F0;
  box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 10px 30px rgba(255, 77, 109, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid #2A9D8F;
  color: #2A9D8F;
}

.btn-outline:hover {
  background: #2A9D8F;
  color: #FFF9F0;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
}

/* ---------- 标签 / 标题 ---------- */

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 14px;
  color: #FF4D6D;
  text-transform: uppercase;
  background: rgba(255, 77, 109, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 77, 109, 0.2);
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 14px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #2D2A26;
  line-height: 1.2;
}

.section-desc {
  max-width: 620px;
  color: #6B6560;
  margin-bottom: 48px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---------- 卡片网格 ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  border-radius: 20px;
  padding: 32px 28px;
  background: #FFF9F0;
  border: 2px solid #F0E6DC;
  transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.08);
  transition: 0.35s;
}

.category-card:nth-child(odd)::before {
  background: rgba(42, 157, 143, 0.08);
}

.category-card:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 0 16px 32px rgba(45, 42, 38, 0.1);
  border-color: #FF4D6D;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #FFF1F3, #FFE3E8);
  border: 1px solid rgba(255, 77, 109, 0.15);
  transition: 0.3s;
}

.category-card:nth-child(even) .card-icon {
  background: linear-gradient(135deg, #E8F8F4, #DCF2EE);
  border-color: rgba(42, 157, 143, 0.15);
}

.category-card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.card-link {
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  color: #FF4D6D;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.card-link::after {
  content: '🍉';
  font-size: 0.9rem;
  transition: 0.2s;
  opacity: 0;
  margin-left: -20px;
}

.card-link:hover::after {
  opacity: 1;
  margin-left: 4px;
}

/* ---------- 特性块 ---------- */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-image {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #FFE3E8, #E0F5F0);
  border: 3px solid rgba(42, 157, 143, 0.2);
}

.feature-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.08) 50%);
  background-size: 20px 20px;
  pointer-events: none;
}

.feature-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-image:hover img {
  transform: scale(1.03);
}

.feature-text .section-label {
  color: #2A9D8F;
  border-color: rgba(42, 157, 143, 0.2);
  background: rgba(42, 157, 143, 0.08);
}

.feature-text .section-title {
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #4A4540;
  border-bottom: 1px dashed #E5DBD1;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '🍉';
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- 数据条 ---------- */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px;
  border-radius: 20px;
  background: #FFF9F0;
  border: 2px solid #F0E6DC;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #FF4D6D;
  border-radius: 4px;
  transition: 0.3s;
}

.stat-item:nth-child(2)::after { background: #2A9D8F; }
.stat-item:nth-child(3)::after { background: #FFD93D; }
.stat-item:nth-child(4)::after { background: #FF8FA3; }

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(45, 42, 38, 0.08);
}

.stat-item:hover::after {
  width: 80px;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: #2D2A26;
  line-height: 1.1;
  letter-spacing: -1px;
}

.stat-number::after {
  content: '+';
  color: #FF4D6D;
}

.stat-label {
  font-size: 0.9rem;
  color: #8A837B;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- 内容墙 ---------- */

.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 20px;
  overflow: hidden;
  background: #FFF9F0;
  border: 2px solid #F0E6DC;
  transition: 0.35s ease;
  position: relative;
}

.content-wall-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(45, 42, 38, 0.1);
  border-color: #2A9D8F;
}

.content-wall-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.content-wall-item:nth-child(3n) img {
  height: 240px;
}

.content-wall-body {
  padding: 24px;
}

.content-wall-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #2D2A26;
  line-height: 1.4;
}

.content-wall-body p {
  font-size: 0.9rem;
  color: #8A837B;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid #F0E6DC;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #FFF9F0;
  transition: 0.25s;
}

.faq-item:hover {
  border-color: #FFD93D;
}

.faq-item.open {
  border-color: #FF4D6D;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.08);
}

.faq-item .faq-question {
  padding: 20px 24px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2D2A26;
  font-size: 1rem;
}

.faq-item .faq-question::after {
  content: '🍉';
  font-size: 1.3rem;
  transition: 0.3s;
  opacity: 0.6;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
  opacity: 1;
  content: '🍃';
}

.faq-item .faq-answer {
  padding: 0 24px;
  padding-bottom: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.35s ease;
  color: #6B6560;
  line-height: 1.8;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  padding-bottom: 20px;
  max-height: 300px;
  opacity: 1;
}

/* ---------- CTA 横幅 ---------- */

.cta-banner {
  padding: 72px 32px;
  text-align: center;
  border-radius: 28px;
  color: #FFF9F0;
  background: linear-gradient(120deg, #FF4D6D 0%, #FF8FA3 35%, #FFD93D 70%, #2A9D8F 100%);
  background-size: 300% 100%;
  animation: ctaFlow 6s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(255, 77, 109, 0.25);
}

@keyframes ctaFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.cta-banner::after {
  content: '🍉';
  position: absolute;
  right: 40px;
  bottom: 20px;
  font-size: 80px;
  opacity: 0.3;
  transform: rotate(15deg);
}

.cta-banner h2 {
  color: #FFF9F0;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  max-width: 500px;
  margin: 0 auto 32px;
  opacity: 0.9;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.cta-banner .btn-primary {
  background: #FFF9F0;
  color: #FF4D6D;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}

.cta-banner .btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* ---------- 页脚 ---------- */

.site-footer {
  padding: 72px 0 28px;
  background: #FFF9F0;
  border-top: 3px solid #F0E6DC;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #FF4D6D, #FFD93D, #2A9D8F);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: #8A837B;
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-weight: 800;
  margin-bottom: 16px;
  color: #2D2A26;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: #8A837B;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: 0.2s;
}

.footer-col a:hover {
  color: #FF4D6D;
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid #F0E6DC;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #A09A93;
}

.footer-bottom::before {
  content: '🍉';
  font-size: 1rem;
  margin-right: 8px;
}

/* ---------- 工具类 ---------- */

.text-accent {
  color: #FF4D6D !important;
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  color: #6B6560;
  text-align: center;
  line-height: 1.8;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- 响应式 ---------- */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: #FFF9F0;
    padding: 24px;
    gap: 16px;
    border-bottom: 2px solid #FF4D6D;
    box-shadow: 0 12px 30px rgba(45, 42, 38, 0.08);
  }

  .main-nav.open a {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .cta-banner {
    padding: 56px 24px;
  }

  .cta-banner h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 72px 0;
  }

  .stat-item {
    padding: 24px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ---------- 装饰性增强：吃瓜种子点缀 ---------- */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 0 0, #2D2A26 2px, transparent 3px),
    radial-gradient(circle at 0 0, #2D2A26 2px, transparent 3px);
  background-size: 120px 120px, 180px 180px;
  background-position: 20px 20px, 90px 110px;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* 滚动条美化 */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #FFF9F0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FF4D6D, #2A9D8F);
  border-radius: 10px;
  border: 2px solid #FFF9F0;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2A9D8F, #FF4D6D);
}