/* ==========================================================
   911吃瓜 · 瓜田日报设计系统
   Design language : melon-press / juicy editorial
   ========================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --paper: #FFF5E9;
  --paper-deep: #F6EDDF;
  --cream: #FFFCF7;
  --leaf: #175B49;
  --leaf-soft: #4A967C;
  --mint: #D9ECDD;
  --melon: #F26055;
  --melon-deep: #DA4338;
  --honey: #F3B63E;
  --ink: #233832;
  --shadow-soft: 0 12px 34px -18px rgba(36, 90, 72, 0.22);
  --radius-juicy: 28px 8px 28px 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--honey);
  color: #1F342D;
}

/* ---------- 核心布局 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 92px 0;
  position: relative;
}

.section:nth-child(even) {
  background: #F1F5EA;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 248, 237, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42, 100, 80, 0.12);
}

.site-header::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 140px;
  height: 7px;
  background: linear-gradient(90deg, transparent, var(--melon));
  border-radius: 4px;
  opacity: 0.55;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  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: 0.95rem;
  background: radial-gradient(circle, #FF8770 0 55%, #FFF 56% 68%, #479678 69% 86%, #175B49 87% 100%);
  box-shadow: 0 4px 12px rgba(214, 93, 62, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3D5650;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--melon), var(--honey));
  border-radius: 4px;
  transition: width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-nav a:hover {
  color: var(--melon-deep);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(120deg, var(--melon), #E44F46);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 24px 6px 24px 6px;
  box-shadow: 0 10px 24px -10px rgba(230, 83, 70, 0.65);
  transition: transform 0.25s, box-shadow 0.25s !important;
}

.nav-cta:hover {
  color: #fff !important;
  transform: translateY(-2px) rotate(-1.5deg);
  box-shadow: 0 14px 30px -10px rgba(230, 83, 70, 0.72);
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.45rem;
  cursor: pointer;
  color: var(--leaf);
  padding: 8px;
  border-radius: 10px;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  background:
    radial-gradient(circle 320px at 86% 20%, rgba(243, 182, 62, 0.28), transparent 70%),
    radial-gradient(circle 180px at 14% 70%, rgba(75, 145, 116, 0.2), transparent 70%),
    linear-gradient(115deg, #FFF8ED 0%, #F3F4DF 55%, #E9F2E4 100%);
  position: relative;
}

.hero::before {
  content: '911 · 911 · 911 · 911 · 911 ·';
  position: absolute;
  top: 12%;
  left: -1%;
  font-size: clamp(2rem, 7vw, 6rem);
  font-weight: 900;
  color: rgba(23, 91, 73, 0.055);
  white-space: nowrap;
  letter-spacing: 8px;
  pointer-events: none;
  transform: rotate(-4deg);
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--leaf);
  background: rgba(53, 129, 105, 0.12);
  border-left: 4px solid var(--melon);
  padding: 7px 18px 7px 14px;
  border-radius: 0 24px 0 24px;
  margin-bottom: 22px;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  color: #1E3730;
  position: relative;
}

.hero h1 em {
  font-style: italic;
  color: var(--melon-deep);
}

.hero p {
  font-size: 1.08rem;
  font-weight: 400;
  color: #3B574E;
  opacity: 0.78;
  max-width: 540px;
  margin-bottom: 34px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-buttons .btn-outline {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(3px);
}

.hero-image {
  position: relative;
  width: min(420px, 94%);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, rgba(21, 74, 57, 0.06) 0 12%, transparent 12.2%),
    radial-gradient(circle at 50% 50%, #FF8170 0 61%, #FFFEFA 62% 70%, #398D72 71% 85%, #13503F 86% 100%);
  box-shadow:
    inset 0 -10px 20px rgba(0, 0, 0, 0.05),
    0 32px 64px -32px rgba(219, 87, 69, 0.72),
    0 14px 48px -18px rgba(25, 76, 58, 0.4);
  animation: watermelon-float 5.5s ease-in-out infinite alternate;
}

.hero-image::before {
  content: '911';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.94);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 34px rgba(107, 31, 15, 0.22);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: inherit;
  border: 2px dashed rgba(214, 113, 53, 0.34);
  animation: spin-slow 28s linear infinite;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  position: relative;
  z-index: 2;
  opacity: .92;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 14px 34px 14px 34px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.3), box-shadow 0.28s, background 0.25s;
}

.btn-primary {
  background: linear-gradient(120deg, #FF4E3A, #F87A5C);
  color: #fff;
  box-shadow: 0 16px 30px -10px rgba(226, 72, 57, 0.55);
}

.btn-primary:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 24px 40px -12px rgba(226, 72, 57, 0.66);
}

.btn-outline {
  background: transparent;
  border: 1.6px solid var(--leaf);
  color: var(--leaf);
}

.btn-outline:hover {
  background: var(--leaf);
  color: #fff;
  transform: translateY(-4px) rotate(1deg);
}

/* ---------- 标题 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin-bottom: 12px;
  color: var(--melon-deep);
  text-transform: uppercase;
}

.section-label::before {
  content: '';
  width: 34px;
  height: 10px;
  background: linear-gradient(90deg, var(--melon), var(--honey));
  border-radius: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  position: relative;
}

.section-desc {
  max-width: 620px;
  font-size: 1.02rem;
  line-height: 1.9;
  opacity: 0.72;
  margin-bottom: 44px;
  color: var(--ink);
}

/* ---------- 卡片网格 ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.category-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(37, 95, 76, 0.06);
  border-radius: var(--radius-juicy);
  padding: 34px 26px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s;
}

.category-card::before {
  content: '';
  position: absolute;
  right: -34px;
  top: -34px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(240, 222, 179, 0.6);
  transition: transform 0.4s ease, background 0.4s ease;
}

.category-card:hover::before {
  transform: scale(2.4);
  background: rgba(171, 219, 184, 0.7);
}

.category-card:hover {
  transform: translateY(-8px) rotate(0.5deg);
  box-shadow: 0 26px 48px -22px rgba(40, 90, 73, 0.26);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px 6px 18px 6px;
  background: linear-gradient(135deg, #E0F2DD, #B3DEC2);
  color: #1E6A50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.35rem;
  font-weight: 700;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--melon-deep);
  text-decoration: none;
  border-bottom: 1px dashed var(--melon);
  padding-bottom: 3px;
}

.card-link::after {
  content: '↗';
  font-weight: 700;
  transition: transform 0.2s ease;
}

.category-card:hover .card-link {
  color: var(--leaf);
}

.category-card:hover .card-link::after {
  transform: translate(2px, -2px);
}

/* ---------- 特性块 ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  position: relative;
  border-radius: 32px 8px 32px 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 4px solid rgba(255, 255, 255, 0.7);
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(35, 113, 88, 0.25);
  border-radius: 24px 6px 24px 6px;
  pointer-events: none;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-image:hover img {
  transform: scale(1.05);
}

.feature-text .section-title {
  margin-bottom: 22px;
}

.feature-list {
  list-style: none;
  margin-top: 18px;
}

.feature-list li {
  padding: 7px 0 7px 26px;
  position: relative;
  display: block;
  color: #2B4A41;
  font-weight: 500;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--melon);
  box-shadow: 0 0 0 3px rgba(242, 96, 85, 0.14);
}

.feature-list li strong {
  color: var(--leaf);
}

/* ---------- 数据条 ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 38px 16px 30px;
  border-radius: 24px 6px 24px 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px -18px rgba(30, 86, 64, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--honey), var(--melon), var(--leaf-soft));
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -18px rgba(30, 86, 64, 0.35);
}

.stat-number {
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--leaf);
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.62;
  margin-top: 6px;
  font-weight: 500;
}

/* ---------- 内容墙 ---------- */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.content-wall-item {
  background: #fff;
  border-radius: 16px 30px 16px 30px;
  overflow: hidden;
  border: 1px solid rgba(29, 83, 68, 0.05);
  box-shadow: 0 6px 24px -20px rgba(31, 87, 70, 0.24);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-wall-item:hover {
  transform: translateY(-8px) scale(1.01) rotate(0.3deg);
  box-shadow: 0 24px 44px -20px rgba(38, 86, 70, 0.34);
}

.content-wall-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 3px solid var(--honey);
}

.content-wall-body {
  padding: 24px 22px;
}

.content-wall-body h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #1E3D33;
  margin-bottom: 8px;
}

.content-wall-body p {
  font-size: 0.92rem;
  opacity: 0.66;
  line-height: 1.8;
}

.content-wall-body .card-link {
  margin-top: 12px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px 6px 18px 6px;
  margin-bottom: 10px;
  border: 1px solid rgba(26, 88, 68, 0.06);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(21, 77, 60, 0.03);
  transition: background 0.25s, box-shadow 0.25s;
}

.faq-item.open {
  background: #fff;
  box-shadow: 0 14px 28px -16px rgba(37, 92, 70, 0.2);
}

.faq-item .faq-question {
  padding: 20px 22px 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #233F36;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.5;
}

.faq-item .faq-question::after {
  content: '+';
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 2px 8px 2px;
  background: var(--mint);
  color: var(--leaf);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item.open .faq-question::after {
  content: '−';
  background: var(--melon);
  color: #fff;
  transform: rotate(180deg);
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  display: none;
  opacity: 0.72;
  color: #31564A;
  line-height: 1.85;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  padding: 74px 40px;
  text-align: center;
  border-radius: 48px 12px 48px 12px;
  color: #fff;
  background: linear-gradient(115deg, #FF654D 0%, #F08B44 56%, #F5B83C 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(222, 94, 58, 0.6);
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.33);
  top: -140px;
  left: -110px;
}

.cta-banner::after {
  content: '万瓜 · 一手 · 新鲜';
  position: absolute;
  right: 6%;
  bottom: 10%;
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  font-weight: 900;
  opacity: 0.13;
  letter-spacing: 0.12em;
  color: #fff;
  transform: rotate(-10deg);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
  z-index: 1;
  position: relative;
}

.cta-banner .btn {
  z-index: 1;
  position: relative;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--melon-deep);
  box-shadow: 0 12px 26px -8px rgba(107, 38, 28, 0.38);
}

.cta-banner .btn-primary:hover {
  background: #FFF5E9;
  transform: translateY(-3px);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #E8EFE3;
  color: #21443A;
  padding: 64px 0 30px;
  margin-top: 80px;
  border-top: 1px solid rgba(35, 92, 73, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
}

.footer-brand .logo {
  color: var(--leaf);
  margin-bottom: 14px;
}

.footer-brand p {
  opacity: 0.66;
  line-height: 1.9;
  max-width: 300px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--leaf);
  position: relative;
  display: inline-block;
}

.footer-col a {
  font-size: 0.9rem;
  opacity: 0.72;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
  width: fit-content;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--melon-deep);
}

.footer-bottom {
  border-top: 1px dashed rgba(36, 92, 73, 0.22);
  margin-top: 46px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: #477064;
}

/* ---------- 工具类 ---------- */
.text-accent {
  color: var(--melon-deep);
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.seo-description {
  max-width: 640px;
  margin: 0 auto 48px;
  opacity: 0.68;
  line-height: 1.9;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* ---------- 动效 ---------- */
@keyframes watermelon-float {
  0% {
    transform: translateY(0) rotate(-0.6deg);
  }
  100% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero {
    padding-top: 130px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-image {
    margin: 0 auto;
    width: min(360px, 100%);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: auto;
    padding: 128px 0 64px;
    text-align: center;
  }

  .hero .container {
    gap: 28px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--cream);
    padding: 24px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    border-bottom: 1px solid rgba(38, 96, 76, 0.1);
    box-shadow: 0 24px 48px -24px rgba(30, 74, 62, 0.28);
    z-index: 999;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-cta {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 116px 0 56px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-banner {
    padding: 52px 22px;
    border-radius: 32px 8px 32px 8px;
  }

  .section-title {
    font-size: 1.65rem;
  }
}