/* ============================================
   e站网页版 — 设计系统
   Warm Editorial / Color Block Aesthetic
   ============================================ */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F3EDE4;
  --card: #FFFFFF;
  --primary: #E85D3D;
  --primary-dark: #D04E2E;
  --secondary: #1B7A6C;
  --accent: #F4A940;
  --text: #1E1E1E;
  --muted: #6B655E;
  --border: #E8E1D6;
  --shadow: rgba(30, 30, 30, 0.06);
  --shadow-lg: rgba(30, 30, 30, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

/* 基础重置 */
*, *::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: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(232, 93, 61, 0.22);
  color: var(--text);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #D8D0C4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C8BFB2; }

/* 核心布局 — 居中 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }

.section:nth-child(even) {
  background:
    linear-gradient(rgba(232, 93, 61, 0.018) 1px, transparent 1px);
  background-size: 100% 28px;
  background-color: var(--bg-alt);
}

/* ============================================
   导航 — 固定顶部
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 225, 214, 0.7);
  transition: box-shadow 0.3s;
}

.site-header:hover {
  box-shadow: 0 4px 24px rgba(30, 30, 30, 0.04);
}

.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(--text);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(232, 93, 61, 0.28);
  transition: transform 0.3s;
}

.logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.05);
}

.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(--text);
  transition: color 0.25s;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 9px 22px;
  border-radius: 24px;
  color: #fff !important;
  font-weight: 600 !important;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(232, 93, 61, 0.25);
  transition: all 0.3s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 93, 61, 0.35);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ============================================
   首页 Hero
   ============================================ */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 80px;
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 93, 61, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(27, 122, 108, 0.06) 0%, transparent 45%),
    radial-gradient(rgba(232, 93, 61, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
}

.hero::after {
  content: 'E';
  position: absolute;
  font-size: 42rem;
  font-weight: 900;
  color: rgba(232, 93, 61, 0.025);
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 24px;
  margin-bottom: 20px;
  background: rgba(232, 93, 61, 0.1);
  color: var(--primary);
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.hero h1::first-line {
  color: var(--text);
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 18px 18px 0 rgba(232, 93, 61, 0.1), 0 8px 32px var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.01);
  transition: transform 0.6s ease;
}

.hero-image:hover img {
  transform: scale(1.03);
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(232, 93, 61, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================
   按钮
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 28px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 93, 61, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 93, 61, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: rgba(27, 122, 108, 0.06);
  border-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 122, 108, 0.15);
}

.btn-outline::before {
  content: '↗';
  font-size: 1em;
  transition: transform 0.3s;
}

.btn-outline:hover::before {
  transform: translate(3px, -3px);
}

/* ============================================
   标签 / 标题
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  color: var(--secondary);
  text-transform: uppercase;
  position: relative;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.section-desc {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================
   卡片网格
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.category-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--secondary), #3AA08F);
}

.category-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.category-card:nth-child(4)::before {
  background: linear-gradient(90deg, #5C6FB5, var(--secondary));
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  background: rgba(232, 93, 61, 0.08);
  color: var(--primary);
  transition: all 0.3s;
}

.category-card:nth-child(2) .card-icon {
  background: rgba(27, 122, 108, 0.08);
  color: var(--secondary);
}

.category-card:nth-child(3) .card-icon {
  background: rgba(244, 169, 64, 0.14);
  color: #D48A1E;
}

.category-card:nth-child(4) .card-icon {
  background: rgba(92, 111, 181, 0.1);
  color: #5C6FB5;
}

.category-card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.card-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--primary);
  margin-top: 12px;
  transition: gap 0.3s;
  position: relative;
}

.card-link::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.3s;
}

.card-link:hover::after {
  transform: translateX(4px);
}

/* ============================================
   特性块
   ============================================ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-image {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 14px 14px 0 rgba(27, 122, 108, 0.08);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s;
}

.feature-image:hover img {
  transform: scale(1.02);
}

.feature-text {
  position: relative;
}

.feature-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.feature-text p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  margin-top: 16px;
}

.feature-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  font-weight: 800;
  color: var(--secondary);
  background: rgba(27, 122, 108, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ============================================
   数据条
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0.6);
  transform-origin: center;
  transition: transform 0.4s;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-lg);
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-kerning: none;
  letter-spacing: -0.02em;
}

.stat-item:nth-child(2) .stat-number {
  color: var(--secondary);
}

.stat-item:nth-child(3) .stat-number {
  color: #D48A1E;
}

.stat-item:nth-child(4) .stat-number {
  color: #5C6FB5;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ============================================
   内容墙
   ============================================ */
.content-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.content-wall-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.content-wall-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px var(--shadow-lg);
  border-color: transparent;
}

.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: 22px 24px 24px;
}

.content-wall-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.content-wall-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.content-wall-body .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(27, 122, 108, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
  margin-top: 10px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(232, 93, 61, 0.4);
}

.faq-item.open {
  border-left: 3px solid var(--primary);
  box-shadow: 0 4px 12px var(--shadow);
}

.faq-item .faq-question {
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.98rem;
}

.faq-item .faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--secondary);
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  display: none;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
  animation: faqFade 0.35s ease;
}

@keyframes faqFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CTA 横幅
   ============================================ */
.cta-banner {
  padding: 64px 48px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #F0855C 40%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(232, 93, 61, 0.3);
}

.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.cta-banner::before {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -40px;
}

.cta-banner::after {
  width: 120px;
  height: 120px;
  bottom: -40px;
  left: 30px;
  background: rgba(255, 255, 255, 0.06);
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.cta-banner .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  background: #fff;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
  padding: 64px 0 32px;
  background: #F0EAE2;
  border-top: 3px solid var(--secondary);
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(30, 30, 30, 0.08);
  margin-top: 48px;
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--secondary);
  text-decoration: none;
}

/* ============================================
   工具类
   ============================================ */
.text-accent {
  color: var(--secondary);
  font-weight: 700;
}

.text-center { text-align: center; }

.seo-description {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.4rem; }
  .section { padding: 72px 0; }
  .cta-banner { padding: 48px 32px; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero::after { font-size: 20rem; right: -2rem; }
  .feature-block { grid-template-columns: 1fr; gap: 36px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  }
  .main-nav.open {
    display: flex;
    animation: navSlide 0.3s ease;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
  .section-title { font-size: 1.8rem; }
  .stat-number { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .cta-banner { padding: 40px 24px; }
  .cta-banner h2 { font-size: 1.5rem; }
}

@keyframes navSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .cards-grid,
  .content-wall,
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero { padding: 100px 0 48px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.5rem; }
  .feature-block { gap: 28px; }
  .cta-banner { border-radius: 16px; }
  .logo span { font-size: 1rem; }
}