@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

/* ===== 基础变量 ===== */
:root {
  --c-primary: #6514ff;
  --c-accent: #bf00ff;
  --c-dark: #1c1726;
  --c-dark2: #261e38;
  --c-dark3: #322848;
  --c-neon-glow: rgba(101, 20, 255, 0.45);
  --c-accent-glow: rgba(191, 0, 255, 0.35);
  --c-text: #f0ecff;
  --c-text-muted: #b0a8cc;
  --c-border: rgba(101, 20, 255, 0.3);
  --c-card-bg: #211932;
  --font-title: 'Amatic SC', 'KaiTi', cursive;
  --font-body: 'Cabin', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --radius-card: 18px;
  --radius-btn: 8px;
  --gap-lg: 48px;
  --gap-md: 32px;
  --gap-sm: 16px;
  --nav-h: 64px;
  --transition: 220ms ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--c-dark);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, menu { list-style: none; }
table { border-collapse: collapse; }

/* ===== 动效背景纹理 ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(101,20,255,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(191,0,255,0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: bg-pulse 8s ease-in-out infinite alternate;
}

@keyframes bg-pulse {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* ===== 导航 details/summary ===== */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(28, 23, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: var(--nav-h);
}

.nav-summary {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  height: var(--nav-h);
  padding: 0 24px;
  cursor: default;
  list-style: none;
  user-select: none;
}

.nav-summary::-webkit-details-marker { display: none; }

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}

.brand-mark { height: 36px; width: auto; }

.brand-text-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  border-radius: 10px;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-toggle-label {
  display: none;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-left: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px 0 16px;
  flex-wrap: wrap;
  flex: 1;
}

.nav-menu li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a:focus-visible {
  color: var(--c-text);
  background: rgba(101, 20, 255, 0.18);
}

.nav-contact a {
  color: var(--c-accent) !important;
  border: 1px solid rgba(191,0,255,0.4);
}

.nav-contact a:hover {
  background: rgba(191,0,255,0.15) !important;
}

/* nav open state — 在大屏 details 始终展开 */
.nav-wrap {
  height: var(--nav-h);
  overflow: visible;
}

/* 强制展开菜单在大屏 */
@media (min-width: 769px) {
  .nav-wrap { height: var(--nav-h); }
  .nav-summary { pointer-events: none; }
  .nav-menu {
    display: flex !important;
  }
  .nav-wrap[open] .nav-menu,
  .nav-wrap:not([open]) .nav-menu {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .nav-summary { pointer-events: auto; cursor: pointer; }
  .nav-toggle-label { display: block; }
  .nav-wrap { height: var(--nav-h); }
  .nav-wrap[open] {
    height: auto;
    overflow: visible;
  }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(28,23,38,0.98);
    border-top: 1px solid var(--c-border);
  }
  .nav-menu li { width: 100%; }
  .nav-menu li a {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 6px;
  }
}

/* ===== 全局 padding-top (nav 固定偏移) ===== */
.page-home .hero-wrap,
.page-hero,
.page-about .page-hero,
.page-faq .page-hero,
.page-contact .page-hero,
.page-privacy .page-hero {
  padding-top: var(--nav-h);
}

/* ===== Hero — 首页 ===== */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(28,23,38,0.98) 0%,
    rgba(28,23,38,0.75) 40%,
    rgba(101,20,255,0.2) 80%,
    rgba(191,0,255,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 680px;
  padding: 0 var(--gap-lg) 120px;
  animation: hero-in 0.8s cubic-bezier(0.23,1,0.32,1) both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes hero-in { from {} to {} }
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 40px var(--c-accent-glow);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* 斜切色带底部 */
.hero-slant {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

/* ===== Page Hero (内页) ===== */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(125deg, var(--c-dark2) 0%, var(--c-dark) 60%, rgba(101,20,255,0.3) 100%);
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}

.page-hero--faq { background: linear-gradient(125deg, #1a1230 0%, var(--c-dark) 50%, rgba(191,0,255,0.2) 100%); }
.page-hero--contact { background: linear-gradient(125deg, #1c1726 0%, #221430 60%, rgba(101,20,255,0.35) 100%); }
.page-hero--privacy { background: linear-gradient(125deg, var(--c-dark2) 0%, #1c1726 70%, rgba(101,20,255,0.2) 100%); }
.page-hero--about { background: linear-gradient(125deg, #1e1530 0%, var(--c-dark) 55%, rgba(191,0,255,0.25) 100%); }

.page-hero-inner {
  position: relative;
  z-index: 2;
  padding: var(--gap-lg) var(--gap-lg) var(--gap-md);
  width: 100%;
  max-width: 900px;
}

.page-hero-inner h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 0 24px var(--c-neon-glow);
}

.page-date {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  font-weight: 500;
}

.page-date--mod { margin-left: 16px; }

/* ===== 主内容区 ===== */
main {
  position: relative;
  z-index: 1;
}

/* ===== content-section: aside 左 + figure 右 ===== */
.content-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--gap-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--gap-lg) 24px;
  align-items: start;
}

.sidebar-left {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sidebar-block {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.sidebar-block h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 6px;
  line-height: 1.2;
}

.sidebar-block p.subtitle {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.sidebar-block--accent { border-color: rgba(191,0,255,0.4); }
.sidebar-block--neon { border-color: rgba(101,20,255,0.5); background: rgba(101,20,255,0.1); }

.quick-links { display: flex; flex-direction: column; gap: 6px; }

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

.quick-links li a:hover {
  color: var(--c-text);
  background: rgba(101,20,255,0.18);
}

.main-figure {
  min-width: 0;
}

/* ===== 正文内容 ===== */
.page-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--c-text);
}

.page-content.prose h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 2em 0 0.5em;
  line-height: 1.25;
}

.page-content.prose h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-accent);
  margin: 1.5em 0 0.4em;
}

.page-content.prose p { margin-bottom: 1.2em; }

.page-content.prose ul,
.page-content.prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.page-content.prose li { margin-bottom: 0.5em; }

.page-content.prose a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: rgba(191,0,255,0.4);
  transition: color var(--transition);
}

.page-content.prose a:hover { color: #e066ff; }

.page-content.prose blockquote {
  border-left: 3px solid var(--c-primary);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: rgba(101,20,255,0.08);
  border-radius: 0 8px 8px 0;
  color: var(--c-text-muted);
}

.page-content.prose--legal h2 { font-size: 1.6rem; }
.page-content.prose--legal { font-size: 0.95rem; color: var(--c-text-muted); }
.page-content.prose--legal p { color: var(--c-text-muted); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  box-shadow: 0 4px 20px var(--c-neon-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--c-accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 2px solid rgba(191,0,255,0.5);
}

.btn-ghost:hover {
  background: rgba(191,0,255,0.1);
  border-color: var(--c-accent);
}

.btn-ghost-sm {
  background: transparent;
  color: var(--c-accent);
  border: 1px solid rgba(191,0,255,0.4);
  min-height: 40px;
  padding: 8px 20px;
  font-size: 0.88rem;
  border-radius: 6px;
}

.btn-ghost-sm:hover {
  background: rgba(191,0,255,0.12);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 0.88rem;
}

/* ===== 卡片区 ===== */
.cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--gap-lg) 24px;
}

.cards-section > h2 {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.cards-section > .subtitle {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--gap-md);
}

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

.card {
  background: var(--c-card-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--c-neon-glow);
  border-color: var(--c-primary);
}

.card-inner {
  padding: 24px;
}

.card-inner h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #fff;
}

.card-inner h3 a { color: inherit; }
.card-inner h3 a:hover { color: var(--c-accent); }

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

.card-inner time {
  font-size: 0.78rem;
  color: rgba(191,0,255,0.7);
}

/* ===== FAQ 表格 ===== */
.faq-table-section,
.faq-index-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px var(--gap-lg);
}

.faq-table-section > h2,
.faq-index-section > h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.faq-table-section > .subtitle,
.faq-index-section > .subtitle {
  color: var(--c-text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.faq-table {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.faq-table tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition);
}

.faq-table tbody tr:last-child { border-bottom: none; }

.faq-table tbody tr:hover { background: rgba(101,20,255,0.08); }

.faq-table td {
  padding: 14px 20px;
  font-size: 0.92rem;
  vertical-align: middle;
  color: var(--c-text-muted);
}

.faq-table td:first-child a {
  color: var(--c-text);
  font-weight: 500;
  transition: color var(--transition);
}

.faq-table td:first-child a:hover { color: var(--c-accent); }

.faq-table td.td-desc { color: var(--c-text-muted); font-size: 0.84rem; }
.faq-table--full { margin-top: 0; }

/* ===== CTA 色带 ===== */
.cta-strip,
.promo-band {
  background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-accent) 100%);
  text-align: center;
  padding: var(--gap-lg) 24px;
  margin: var(--gap-md) 0 0;
}

.cta-strip h2,
.promo-band h2 {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.cta-strip .subtitle,
.promo-band .subtitle,
.promo-inner .subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 24px;
}

.promo-inner { max-width: 600px; margin: 0 auto; }

/* ===== 联系表单 ===== */
.contact-form-wrap {
  margin-top: var(--gap-lg);
}

.contact-form-wrap > h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.contact-form-wrap > .subtitle {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

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

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: var(--c-dark2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  min-height: 44px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(176,168,204,0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(101,20,255,0.2);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  position: relative;
  z-index: 1;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
}

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

.footer-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  border-radius: 5px;
  transition: color var(--transition), background var(--transition);
}

.footer-nav a:hover {
  color: var(--c-accent);
  background: rgba(191,0,255,0.08);
}

.copyright {
  font-size: 0.8rem;
  color: rgba(176,168,204,0.5);
}

/* ===== h2 + subtitle 全局 ===== */
h2 + .subtitle {
  color: var(--c-text-muted);
  font-size: 0.92rem;
  margin-top: -4px;
  margin-bottom: 20px;
}

/* ===== Reveal 动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 移动端断点 ===== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }

  .sidebar-left {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-block {
    flex: 1 1 240px;
    min-width: 200px;
  }

  .hero-content {
    text-align: left;
    max-width: 100%;
    padding: 0 20px 120px;
  }

  .hero-cta-row {
    justify-content: flex-start;
  }

  .page-hero-inner {
    padding: var(--gap-md) 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --gap-lg: 32px;
    --gap-md: 24px;
  }

  .hero-title { font-size: clamp(2.2rem, 9vw, 3.5rem); }

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

  .faq-table td { padding: 12px 14px; }
  .faq-table td.td-desc { display: none; }

  .footer-cta,
  .footer-copy { flex-direction: column; align-items: flex-start; }

  .footer-nav { gap: 2px; }

  .cta-strip h2,
  .promo-band h2 { font-size: 2rem; }

  .content-section { padding: var(--gap-md) 16px; }
  .cards-section { padding: var(--gap-md) 16px; }
  .faq-table-section,
  .faq-index-section { padding: 0 16px var(--gap-md); }

  .sidebar-left { flex-direction: column; }
}

@media (max-width: 375px) {
  body { font-size: 16px; }
  .hero-title { font-size: 2rem; }
  .hero-content { padding: 0 16px 100px; }
}
