@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* =============================================
   CSS 自定义属性
   ============================================= */
:root {
  --c-primary: #56228b;
  --c-primary-light: #7c3fbf;
  --c-primary-dark: #3d1866;
  --c-accent: #8b4513;
  --c-accent-light: #b5601c;
  --c-bg: #1f1726;
  --c-bg-2: #2a1f38;
  --c-bg-3: #352945;
  --c-surface: #2e2040;
  --c-surface-2: #3a2d52;
  --c-text: #e8dff5;
  --c-text-muted: #a890c8;
  --c-text-dim: #7a6290;
  --c-border: rgba(86,34,139,0.35);
  --c-border-light: rgba(86,34,139,0.2);

  --ff-heading: 'Bebas Neue', 'Impact', sans-serif;
  --ff-body: 'Source Sans 3', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-soft: 0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(86,34,139,0.2);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.5), 0 0 0 1px rgba(86,34,139,0.15);
  --shadow-glow: 0 0 32px rgba(86,34,139,0.4);

  --bnav-h: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   重置与基础
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent-light); }

ul { list-style: none; }

/* =============================================
   排版
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  letter-spacing: 0.03em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); color: #fff; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--c-text); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--c-text); }
h4 { font-size: 1.1rem; color: var(--c-text-muted); }

p { font-size: 1rem; line-height: 1.75; color: var(--c-text); }

/* =============================================
   布局容器
   ============================================= */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.nav-spacer { height: var(--bnav-h); }

/* =============================================
   Hero（首页）
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-bg);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(86,34,139,0.5) 0%, rgba(31,23,38,0.85) 70%);
}

.hero-blob {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 180px;
  max-width: 860px;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  color: #fff;
  text-shadow: 0 2px 20px rgba(86,34,139,0.6);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   按钮
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  min-height: 48px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  min-height: 48px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-ghost:hover {
  border-color: var(--c-primary-light);
  color: var(--c-primary-light);
  background: rgba(86,34,139,0.1);
}

/* =============================================
   页面头部（内页）
   ============================================= */
.page-header {
  position: relative;
  background: linear-gradient(160deg, var(--c-bg-2) 0%, var(--c-bg) 100%);
  padding: 80px 24px 100px;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(86,34,139,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
}

.page-h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 16px;
}

.page-lead {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.eyebrow-tag {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent-light);
  border: 1px solid var(--c-accent);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* =============================================
   正文主容器（四层嵌套）
   main > article.wrap > section > div
   ============================================= */
.main-content {
  flex: 1;
  padding: 48px 0 80px;
}

.main-content > .wrap > .content-section > .prose-article {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* =============================================
   侧边栏（左侧）
   ============================================= */
.sidebar-left {
  flex: 0 0 240px;
  position: sticky;
  top: 80px;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
}

.sidebar-title {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  color: var(--c-primary-light);
  margin-bottom: 4px;
}

.sidebar-left > p.subtitle {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-links li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--c-text-muted);
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.sidebar-links li a:hover {
  background: rgba(86,34,139,0.2);
  color: var(--c-text);
}

.sidebar-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border-light);
  font-size: 0.82rem;
  color: var(--c-text-dim);
  line-height: 1.6;
}

.sidebar-meta time {
  color: var(--c-text-muted);
}

/* =============================================
   正文内容区
   ============================================= */
.prose-body {
  flex: 1;
  min-width: 0;
}

.article-date {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  margin-bottom: 24px;
}

.article-date time {
  color: var(--c-accent-light);
}

.prose-body h2 {
  margin-top: 40px;
  margin-bottom: 8px;
}

.prose-body h2 + p,
.prose-body h2 + .subtitle {
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

.prose-body h3 { margin-top: 28px; margin-bottom: 8px; }
.prose-body p { margin-bottom: 18px; }
.prose-body ul, .prose-body ol { margin: 16px 0 20px 24px; }
.prose-body li { margin-bottom: 8px; }

.prose-body a {
  color: var(--c-primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-body a:hover { color: var(--c-accent-light); }

.prose-body blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--c-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--c-text-muted);
}

/* =============================================
   面包屑
   ============================================= */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-text); }
.bc-sep { color: var(--c-text-dim); }

/* =============================================
   副标题通用（subtitle 契约）
   ============================================= */
p.subtitle, .subtitle {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--c-text);
  margin-bottom: 8px;
}

/* =============================================
   卡片区
   ============================================= */
.cards-section {
  padding: 60px 0;
  background: var(--c-bg-2);
}

.cards-section .wrap > h2 { margin-bottom: 6px; }
.cards-section .wrap > .subtitle { margin-bottom: 36px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card-thumb { overflow: hidden; }
.card-thumb img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }

.card-body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  line-height: 1.2;
}

.card-title a { color: var(--c-text); }
.card-title a:hover { color: var(--c-primary-light); }

.card-desc {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-date {
  font-size: 0.8rem;
  color: var(--c-text-dim);
}

.card-bar {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-accent) 100%);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  margin-top: auto;
}

/* =============================================
   about 价值观卡片
   ============================================= */
.about-values-section {
  padding: 60px 0;
  background: var(--c-bg-3);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.value-card {
  background: var(--c-surface);
  border-radius: var(--radius-sm);
  padding: 32px 24px 28px;
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.value-icon {
  font-family: var(--ff-heading);
  font-size: 3rem;
  color: var(--c-primary-light);
  opacity: 0.6;
  margin-bottom: 12px;
  line-height: 1;
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.92rem;
  color: var(--c-text-muted);
}

.value-card .card-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* =============================================
   about 头部 logo
   ============================================= */
.about-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.about-logo { max-height: 80px; width: auto; border-radius: var(--radius-sm); }

/* =============================================
   联系页表单
   ============================================= */
.contact-channels { margin-top: 40px; }
.contact-channels h2 { margin-bottom: 6px; }
.contact-channels .subtitle { margin-bottom: 28px; }

.contact-form-wrap {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--c-border);
  max-width: 560px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-muted);
}

.form-group select,
.form-group textarea {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: 12px 16px;
  width: 100%;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary-light);
}

/* =============================================
   CTA 区块（FAQ 页底部）
   ============================================= */
.cta-section {
  padding: 60px 0;
  background: var(--c-bg-2);
  text-align: center;
}

.cta-section .section-title { margin-bottom: 8px; }
.cta-section .subtitle { margin-bottom: 32px; }

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   页脚
   ============================================= */
.site-footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  padding: 60px 24px 24px;
  margin-bottom: var(--bnav-h);
}

.footer-cols {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  color: var(--c-text);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer-brand {
  font-size: 1.4rem !important;
  color: var(--c-primary-light) !important;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-address {
  font-style: normal;
  margin-bottom: 12px;
}

.footer-address a {
  font-size: 0.88rem;
  color: var(--c-accent-light);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-legal li a {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.footer-legal li a:hover { color: var(--c-text-muted); }

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 2px 0;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--c-text); }

.footer-col p {
  font-size: 0.84rem;
  color: var(--c-text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* 页脚 nav > dl > dt/dd > a */
.footer-col nav dl {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col nav dl dt,
.footer-col nav dl dd {
  margin: 0;
}

.footer-col nav dl dt a,
.footer-col nav dl dd a {
  font-size: 0.83rem;
  color: var(--c-text-dim);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.footer-col nav dl dt a:hover,
.footer-col nav dl dd a:hover {
  color: var(--c-text-muted);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-light);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--c-text-dim);
}

.footer-bottom a {
  color: var(--c-text-dim);
}

.footer-bottom a:hover { color: var(--c-text-muted); }

/* =============================================
   底部固定导航条
   ============================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bnav-h);
  background: rgba(31, 23, 38, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 8px;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  min-height: 44px;
  color: var(--c-text-muted);
  font-size: 0.75rem;
  padding: 8px 4px;
  transition: color var(--transition);
  text-decoration: none;
}

.bnav-item:hover, .bnav-item:focus {
  color: var(--c-primary-light);
}

.bnav-icon {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  line-height: 1;
  color: inherit;
}

.bnav-label {
  font-family: var(--ff-body);
  font-size: 0.68rem;
  color: inherit;
}

.bnav-center {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  min-height: 44px;
  max-width: 120px;
  margin: 0 4px;
}

.bnav-brand {
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.bnav-center:hover {
  background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-accent) 100%);
  color: #fff;
}

/* =============================================
   Scroll Reveal 动效
   ============================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

.stagger-0 { transition-delay: 0s; }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =============================================
   FAQ 专属样式
   ============================================= */
.faq-body .faq-intro { margin-bottom: 8px; }

/* =============================================
   privacy 专属
   ============================================= */
.privacy-body h2 { margin-top: 36px; }
.privacy-body p { color: var(--c-text-muted); }

/* =============================================
   响应式断点
   ============================================= */
@media (max-width: 1024px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .main-content > .wrap > .content-section > .prose-article {
    flex-direction: column;
    gap: 24px;
  }

  .sidebar-left {
    position: static;
    flex: none;
    width: 100%;
  }

  .hero-content {
    padding: 100px 20px 140px;
  }

  .page-header {
    padding: 60px 20px 80px;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-ghost {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 20px 16px;
  }

  .hero-h1 {
    font-size: 2.8rem;
  }

  .bnav-brand {
    font-size: 0.8rem;
    max-width: 80px;
  }
}

/* =============================================
   有机纹理装饰（SVG blob 背景）
   ============================================= */
.page-header--about::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139,69,19,0.2) 0%, transparent 70%);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  pointer-events: none;
}

.page-header--faq::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(86,34,139,0.25) 0%, transparent 70%);
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
  pointer-events: none;
}

/* =============================================
   Focus 无障碍
   ============================================= */
a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-primary-light);
  outline-offset: 3px;
}
