@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

/* ===== 变量 ===== */
:root {
  --c-primary: #56228b;
  --c-primary-light: #7a3dbf;
  --c-primary-dark: #3d1866;
  --c-accent: #8b4513;
  --c-accent-light: #b85e20;
  --c-bg: #1f1726;
  --c-bg-2: #2a1e36;
  --c-bg-3: #342548;
  --c-surface: #271d33;
  --c-surface-2: #321f45;
  --c-text: #e8d5f5;
  --c-text-muted: #b09ac8;
  --c-text-dim: #7a6494;
  --c-border: rgba(86,34,139,0.35);
  --c-border-light: rgba(232,213,245,0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.35), 0 1px 6px rgba(86,34,139,0.18);
  --shadow-card: 0 6px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(86,34,139,0.22);
  --shadow-glow: 0 0 24px rgba(86,34,139,0.4);
  --font-display: 'Poiret One', 'Didact Gothic', serif;
  --font-body: 'Didact Gothic', system-ui, -apple-system, sans-serif;
  --max-w: 1100px;
  --header-h: 64px;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-text);
  background-color: var(--c-bg);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-text); }
ul, menu { list-style: none; }

/* ===== 点阵底纹 ===== */
.dot-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(86,34,139,0.25) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
}

/* ===== 全局层叠 ===== */
body > * { position: relative; z-index: 1; }

/* ===== 头部 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(31,23,38,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  border: 1px solid rgba(86,34,139,0.5);
  color: var(--c-text);
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.brand-mark:hover { box-shadow: var(--shadow-glow); color: var(--c-text); }
.brand-icon { font-size: 22px; line-height: 1; }
.logo-img { width: 32px; height: 32px; object-fit: contain; }

/* 导航 details/summary 结构 */
.main-nav { flex: 1; }
.nav-details { position: relative; }
.nav-details[open] .nav-toggle-icon { transform: rotate(90deg); }
.nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-muted);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
  user-select: none;
  width: fit-content;
}
.nav-toggle:hover { background: var(--c-bg-3); color: var(--c-text); }
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle-icon { transition: transform 0.25s; display: flex; align-items: center; }
.nav-toggle-text { font-size: 14px; }
.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-card);
  z-index: 200;
  animation: menuFadeIn 0.18s ease;
}
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-menu li a {
  display: block;
  padding: 10px 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.nav-menu li a:hover,
.nav-menu li a[aria-current="page"] {
  background: rgba(86,34,139,0.25);
  color: var(--c-text);
}
.nav-menu li a[aria-current="page"] {
  border-left: 3px solid var(--c-primary-light);
  padding-left: 13px;
}

/* CTA 按钮 */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(86,34,139,0.6);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s, background 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.cta-btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary));
}
.cta-outline {
  background: transparent;
  border: 1px solid var(--c-primary-light);
  color: var(--c-primary-light);
}
.cta-outline:hover {
  background: rgba(86,34,139,0.2);
  color: var(--c-text);
}
.header-cta { margin-left: auto; flex-shrink: 0; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border-light);
  color: var(--c-text-muted);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--c-bg-3); color: var(--c-text); }

/* ===== 主容器 ===== */
main { min-height: calc(100vh - var(--header-h) - 200px); }
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ===== Hero（首页） ===== */
.hero-section {
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--c-border-light);
  margin-bottom: 40px;
}
.hero-article {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  width: 100%;
}
.hero-content {
  flex: 1;
  text-align: right;
  max-width: 600px;
  margin-left: auto;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--c-accent-light);
  border: 1px solid var(--c-accent);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.25;
  color: var(--c-text);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.hero-desc {
  font-size: 16px;
  color: var(--c-text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.hero-deco {
  flex-shrink: 0;
  width: 160px;
}
.blob-svg { width: 100%; height: auto; }

/* ===== 页面 Banner（内页） ===== */
.page-banner-section {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--c-border-light);
  margin-bottom: 40px;
}
.page-banner-article { max-width: 760px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--c-text-dim);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--c-text-dim); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--c-primary-light); }
.breadcrumb span[aria-current] { color: var(--c-text-muted); }
.page-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  line-height: 1.3;
  color: var(--c-text);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.page-lead {
  font-size: 16px;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.subtitle {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-top: 6px;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.article-date {
  font-size: 13px;
  color: var(--c-text-dim);
  background: var(--c-surface);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--c-border-light);
}

/* ===== 内容区布局：aside 在左 ===== */
.content-section { margin-bottom: 48px; }
.content-article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.page-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aside-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.aside-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--c-primary-light);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.aside-links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.aside-links li a {
  display: block;
  padding: 7px 10px;
  min-height: 36px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.aside-links li a:hover {
  background: rgba(86,34,139,0.2);
  color: var(--c-text);
}
.main-content { min-width: 0; }

/* ===== 正文排版 ===== */
.prose-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
}
.prose-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--c-text);
  margin: 2em 0 0.5em;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border-light);
}
.prose-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--c-primary-light);
  margin: 1.6em 0 0.4em;
  letter-spacing: 0.03em;
}
.prose-content p { margin-bottom: 1.2em; }
.prose-content ul, .prose-content ol {
  margin: 0.8em 0 1.2em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prose-content li { line-height: 1.75; }
.prose-content a { color: var(--c-primary-light); text-decoration: underline; text-underline-offset: 3px; }
.prose-content a:hover { color: var(--c-text); }
.prose-content strong { color: var(--c-text); font-weight: 600; }
.prose-content blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--c-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-text-muted);
  font-style: italic;
}
.prose-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.prose-content th, .prose-content td {
  padding: 10px 14px;
  border: 1px solid var(--c-border-light);
  text-align: left;
}
.prose-content th {
  background: var(--c-surface-2);
  color: var(--c-primary-light);
  font-family: var(--font-display);
}
.prose-content tr:nth-child(even) td { background: rgba(86,34,139,0.07); }

/* ===== 卡片区（首页） ===== */
.cards-section {
  padding: 40px 0;
}
.cards-section > h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--c-text);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.cards-section > .subtitle { margin-bottom: 28px; }
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s, box-shadow 0.22s;
  overflow: hidden;
  margin-bottom: 20px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.card-inner { padding: 22px 24px; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.card-title a { color: var(--c-text); }
.card-title a:hover { color: var(--c-primary-light); }
.card-desc {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.card-date {
  display: block;
  font-size: 12px;
  color: var(--c-text-dim);
  margin-bottom: 14px;
}
.card-link {
  font-size: 13px;
  color: var(--c-primary-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(122,61,191,0.35);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.card-link:hover { color: var(--c-text); border-color: var(--c-text-dim); }

/* 卡片网格（宽屏时显示为网格）*/
.cards-section {
  display: block;
}
@media (min-width: 640px) {
  .cards-section {
    column-count: 2;
    column-gap: 20px;
  }
  .cards-section > h2,
  .cards-section > .subtitle {
    column-span: all;
  }
  .card { break-inside: avoid; }
}
@media (min-width: 900px) {
  .cards-section { column-count: 3; }
}

/* ===== 英雄图片 ===== */
.hero-img-wrap {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-hero-img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-lg); }

/* ===== FAQ 特有 ===== */
.faq-eyebrow, .contact-eyebrow, .privacy-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-accent-light);
  border: 1px solid var(--c-accent);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 14px;
}
.faq-intro {
  background: var(--c-surface);
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.75;
}
.faq-footer-links { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--c-border-light); }
.faq-footer-links > h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--c-text);
  margin-bottom: 6px;
}
.faq-action-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.article-footer-nav, .contact-links-footer, .privacy-footer-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-light);
}

/* ===== 联系页 ===== */
.contact-info-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.contact-info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border-light);
}
.contact-info-list li:last-child { border-bottom: none; }
.info-label { color: var(--c-text-dim); }
.info-value { color: var(--c-text); font-weight: 500; }

/* ===== 页脚 ===== */
.site-footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-2);
  position: relative;
}
.footer-cta-block {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--c-border-light);
  flex-wrap: wrap;
}
.footer-cta-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--c-text);
  letter-spacing: 0.04em;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
}
.brand-icon-sm { font-size: 18px; color: var(--c-primary-light); }
.footer-logo { width: 28px; height: 28px; object-fit: contain; }
.footer-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
.footer-nav a {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  color: var(--c-text-dim);
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.footer-nav a:hover { background: rgba(86,34,139,0.18); color: var(--c-text); }
.footer-copy {
  font-size: 13px;
  color: var(--c-text-dim);
  margin-left: auto;
  white-space: nowrap;
}

/* ===== h2 + p.subtitle 标题装饰 ===== */
.aside-title + .subtitle {
  margin-top: 2px;
  margin-bottom: 8px;
}

/* ===== 动效（carousel 用原生 scroll-snap） ===== */
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.22s; }
  .cta-btn { transition: box-shadow 0.2s, transform 0.15s, background 0.2s; }
  .nav-toggle-icon { transition: transform 0.25s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  :root { --header-h: 58px; }
  body { font-size: 16px; }

  .header-inner { padding: 0 16px; gap: 10px; }
  .nav-toggle-text { display: none; }

  .hero-section { min-height: auto; padding: 32px 0 24px; }
  .hero-article { flex-direction: column; align-items: flex-end; gap: 20px; }
  .hero-content { text-align: right; max-width: 100%; }
  .hero-h1 { font-size: 1.5rem; }
  .hero-deco { width: 100px; }
  .hero-actions { justify-content: flex-end; }

  .content-article {
    grid-template-columns: 1fr;
  }
  .page-aside {
    position: static;
    order: 2;
  }
  .main-content { order: 1; }

  .wrap { padding: 0 16px 48px; }
  .page-banner-section { padding: 32px 0 24px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-copy { margin-left: 0; }
  .footer-cta-block { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 2px; }

  .cards-section { column-count: 1 !important; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.3rem; }
  .page-h1 { font-size: 1.25rem; }
  .cta-btn { font-size: 14px; padding: 9px 16px; }
  .nav-menu { min-width: calc(100vw - 32px); left: 0; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .faq-action-links { flex-direction: column; }
}

/* ===== 无横向滚动保障 ===== */
body, main, .wrap { max-width: 100vw; overflow-x: hidden; }
