/* ============================================================
   白菜网彩虹社区 · 光谱边缘设计系统
   风格：极简白 + 彩虹光谱点缀 + 有机圆润形态
   ============================================================ */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  overflow-x: hidden;
  background: #FEFCF8;
  color: #1E293B;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: #FDE68A; color: #1E293B; }

/* ---------- 核心布局 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.section { padding: 96px 0; position: relative; }

.section:nth-child(even) { background: #F9F7F4; }

.section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 3px;
  background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #9B59B6);
  border-radius: 0 0 6px 6px;
  opacity: 0.35;
}

.section:first-of-type::before { display: none; }

/* ---------- 导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(254, 252, 248, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  color: #1E293B;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.logo:hover { opacity: 0.8; }

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #9B59B6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.25s ease;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF6B6B, #FFD93D);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-nav a:hover { color: #0F172A; }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px !important;
  border-radius: 100px !important;
  color: #fff !important;
  font-weight: 600 !important;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.25);
  transition: all 0.3s ease !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35) !important; color: #fff !important; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #F1F5F9;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #475569;
  transition: 0.2s;
}

.menu-toggle:hover { background: #E2E8F0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(160deg, #FEFCF8 0%, #F6F0EA 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.06) 0%, rgba(107, 203, 119, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -8%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(77, 150, 255, 0.06) 0%, rgba(155, 89, 182, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; display: flex; align-items: center; gap: 64px; }

.hero-content { max-width: 640px; flex-shrink: 0; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.12), rgba(255, 217, 61, 0.12));
  color: #FF6B6B;
  border: 1px solid rgba(255, 107, 107, 0.15);
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #1E293B 40%, #FF6B6B, #FFD93D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: #64748B;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
  flex: 1;
  min-width: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  background: linear-gradient(135deg, #FFE8E8, #FFF8DC, #E8F5E9, #E3F2FD, #F3E5F5);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image::after {
  content: '🌈';
  font-size: 6rem;
  opacity: 0.3;
  position: absolute;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #6BCB77, #4D96FF);
  color: #fff;
  box-shadow: 0 4px 16px rgba(107, 203, 119, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(107, 203, 119, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #E2E8F0;
  color: #475569;
}

.btn-outline:hover {
  border-color: #FF6B6B;
  color: #FF6B6B;
  background: rgba(255, 107, 107, 0.04);
  transform: translateY(-2px);
}

/* ---------- 标签/标题 ---------- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #FF6B6B;
  background: rgba(255, 107, 107, 0.08);
  padding: 4px 16px;
  border-radius: 100px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #0F172A;
  line-height: 1.2;
}

.section-desc {
  max-width: 600px;
  color: #64748B;
  margin-bottom: 44px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- 卡片网格 ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.category-card {
  border-radius: 20px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #9B59B6);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.03);
  border-color: rgba(255, 107, 107, 0.15);
}

.category-card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #FFE8E8, #FFF3E0);
  color: #FF6B6B;
  transition: 0.3s;
}

.category-card:nth-child(2) .card-icon { background: linear-gradient(135deg, #E8F5E9, #E3F2FD); color: #6BCB77; }
.category-card:nth-child(3) .card-icon { background: linear-gradient(135deg, #FFF8DC, #FFE8E8); color: #FFD93D; }
.category-card:nth-child(4) .card-icon { background: linear-gradient(135deg, #F3E5F5, #E8F5E9); color: #9B59B6; }

.category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0F172A;
}

.category-card p {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-link {
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: #FF6B6B;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.card-link:hover { gap: 10px; }

/* ---------- 特性块 ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, #FFE8E8, #FFF8DC, #E8F5E9);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-image::after {
  content: '🥬';
  font-size: 5rem;
  opacity: 0.2;
}

.feature-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0; }

.feature-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.feature-text p {
  color: #64748B;
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list { list-style: none; }

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 500;
}

.feature-list li::before {
  content: '✓';
  font-weight: 700;
  color: #6BCB77;
  font-size: 1.1rem;
  background: rgba(107, 203, 119, 0.12);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  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: 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%;
  width: 60%; height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCB77);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.04); }
.stat-item:hover::after { opacity: 1; }

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-item:nth-child(2) .stat-number { background: linear-gradient(135deg, #FFD93D, #FFB347); -webkit-background-clip: text; background-clip: text; }
.stat-item:nth-child(3) .stat-number { background: linear-gradient(135deg, #6BCB77, #4D96FF); -webkit-background-clip: text; background-clip: text; }
.stat-item:nth-child(4) .stat-number { background: linear-gradient(135deg, #4D96FF, #9B59B6); -webkit-background-clip: text; background-clip: text; }

.stat-label {
  font-size: 0.9rem;
  color: #64748B;
  margin-top: 8px;
  font-weight: 500;
}

/* ---------- 内容墙 ---------- */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wall-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  border-color: rgba(255, 107, 107, 0.12);
}

.content-wall-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content-wall-item:hover img { transform: scale(1.03); }

.content-wall-body {
  padding: 24px 24px 28px;
}

.content-wall-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0F172A;
}

.content-wall-body p {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.6;
}

.content-wall-body .card-link { margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s ease;
}

.faq-item:hover { border-color: rgba(255, 107, 107, 0.2); box-shadow: 0 4px 16px rgba(0,0,0,0.02); }

.faq-item .faq-question {
  padding: 20px 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0F172A;
  font-size: 1rem;
  transition: 0.3s;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: #FF6B6B;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-item .faq-answer {
  padding: 0 24px 20px;
  display: none;
  color: #64748B;
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open { border-color: rgba(255, 107, 107, 0.2); }

/* ---------- CTA横幅 ---------- */
.cta-banner {
  padding: 64px 32px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53, #FFD93D, #6BCB77, #4D96FF);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff !important;
  margin-bottom: 12px;
  position: relative;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  position: relative;
}

.cta-banner .btn-primary {
  background: #fff;
  color: #FF6B6B;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
}

.cta-banner .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 64px 0 32px;
  background: #F9F7F4;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand { max-width: 320px; }

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  color: #64748B;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0F172A;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  text-decoration: none;
  color: #64748B;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.footer-col ul li a:hover { color: #FF6B6B; padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #94A3B8;
}

/* ---------- 工具类 ---------- */
.text-accent {
  background: linear-gradient(135deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #9B59B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  color: #64748B;
  line-height: 1.7;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero h1 { font-size: 2.6rem; }
  .hero-image { width: 100%; max-width: 500px; }
  .feature-block { gap: 40px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .section { padding: 72px 0; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0;
    width: 100%;
    background: rgba(254, 252, 248, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px 28px;
    gap: 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.04);
  }
  .main-nav.open a { font-size: 1rem; padding: 8px 0; }
  .main-nav.open .nav-cta { text-align: center; }
  .feature-block { grid-template-columns: 1fr; }
  .feature-image { order: -1; }
  .cards-grid, .content-wall { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section-title { font-size: 1.8rem; }
  .cta-banner { padding: 48px 24px; }
  .cta-banner h2 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero-image { min-width: auto; }
  .cards-grid, .content-wall, .stats-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .cta-banner h2 { font-size: 1.5rem; }
  .category-card { padding: 24px 20px; }
}