@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── 变量 ── */
:root {
  --c-white: #ffffff;
  --c-surface: #f5f5f5;
  --c-ink: #1f1f1f;
  --c-ink-60: rgba(31,31,31,0.6);
  --c-ink-20: rgba(31,31,31,0.12);
  --c-white-10: rgba(255,255,255,0.10);
  --c-white-20: rgba(255,255,255,0.20);
  --c-white-60: rgba(255,255,255,0.60);
  --c-accent: #d4a0ff;
  --c-accent2: #7fffd4;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.18);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.28);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.38);
  --shadow-xl: 0 32px 64px rgba(0,0,0,0.50);

  --sidebar-w: 220px;
  --r: 0px;

  --font-heading: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Space Grotesk', system-ui, sans-serif;
}

/* ── 重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-ink);
  color: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── 整体布局：左侧边栏 + 右侧内容 ── */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ── 侧边导航 ── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--c-ink);
  border-right: 1px solid var(--c-white-10);
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-top {
  padding: 1.25rem 1rem 0.75rem;
  border-bottom: 1px solid var(--c-white-10);
}

.sidebar-announce {
  font-size: 0.65rem;
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.sidebar-brand {
  margin-bottom: 0.5rem;
}

.brand-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-white);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.2;
  transition: color 0.2s;
}
.brand-link:hover { color: var(--c-accent); }

/* ── 导航：header > nav > p > a ── */
.sidebar-nav {
  padding: 1rem 0.75rem;
  flex: 1;
}

.sidebar-nav p {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-white-60);
  padding: 0.55rem 0.75rem;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
  line-height: 1.3;
}
.sidebar-nav a:hover {
  background: var(--c-white-10);
  color: var(--c-white);
  box-shadow: var(--shadow-sm);
}

/* ── 页面内容区 ── */
.page-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.main-area {
  flex: 1;
}

/* ── Hero（首页）── */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-ink);
}

/* 斜切色带 */
.hero-slash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-slash::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60%;
  height: 130%;
  background: linear-gradient(135deg, rgba(212,160,255,0.07) 0%, rgba(127,255,212,0.04) 100%);
  transform: skewX(-8deg);
  border-left: 1px solid rgba(212,160,255,0.15);
}
.hero-slash::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent2) 100%);
}

/* 双图错位拼贴 */
.hero-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  z-index: 2;
}
.hero-layer--back {
  right: 10%;
  opacity: 0.45;
  transform: translateY(24px) scale(0.95);
  filter: blur(1px);
  z-index: 2;
}
.hero-layer--front {
  right: 2%;
  opacity: 0.75;
  z-index: 3;
}

.hero-img-block {
  position: absolute;
  inset: 10% 0 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-block--left { left: 0; }
.hero-img-block--right { right: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, rgba(212,160,255,0.12), rgba(127,255,212,0.08));
  border: 1px solid var(--c-white-10);
}
.hero-img-placeholder--sm { min-height: 200px; }

/* Hero 文案 */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 520px;
  padding: 3rem 2.5rem;
  margin-left: 2.5rem;
  text-align: right;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.9rem;
}

.hero-h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--c-white);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--c-white-60);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ── 按钮 ── */
.btn {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  letter-spacing: 0.02em;
}
.btn--primary {
  background: var(--c-white);
  color: var(--c-ink);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--c-accent);
  color: var(--c-ink);
}
.btn--ghost {
  background: var(--c-white-10);
  color: var(--c-white);
  border: 1px solid var(--c-white-20);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--c-white-20);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── 内容区块 ── */
.content-section {
  padding: 3rem 2.5rem;
}
.content-section--about,
.content-section--faq,
.content-section--contact,
.content-section--privacy {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

.content-body {
  min-width: 0;
}

/* ── 内页 Hero ── */
.inner-hero {
  position: relative;
  padding: 3.5rem 2.5rem 2.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--c-white-10);
}

.inner-hero-deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.inner-hero-deco::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 100%;
  height: 140%;
  background: linear-gradient(135deg, rgba(212,160,255,0.06), rgba(127,255,212,0.04));
  transform: skewX(-6deg);
  border-left: 1px solid rgba(212,160,255,0.12);
}

.inner-hero--about .inner-hero-deco::before { background: linear-gradient(135deg, rgba(212,160,255,0.08), transparent); }
.inner-hero--faq .inner-hero-deco::before { background: linear-gradient(135deg, rgba(127,255,212,0.08), transparent); }
.inner-hero--contact .inner-hero-deco::before { background: linear-gradient(135deg, rgba(212,160,255,0.06), rgba(127,255,212,0.04)); }
.inner-hero--privacy .inner-hero-deco::before { background: linear-gradient(135deg, rgba(245,245,245,0.04), transparent); }

.inner-hero-text {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.page-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}

.inner-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--c-white);
  margin-bottom: 0.75rem;
}

.page-lead {
  font-size: 1rem;
  color: var(--c-white-60);
  line-height: 1.7;
  max-width: 540px;
}

/* ── 玻璃拟态卡片 ── */
.glass-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-white-10);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  transition: box-shadow 0.2s, transform 0.2s;
}
.glass-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ── 卡片网格（首页快速导航）── */
.cards-section {
  padding: 2.5rem 2.5rem 3rem;
  background: rgba(245,245,245,0.03);
  border-top: 1px solid var(--c-white-10);
}

.cards-header {
  margin-bottom: 1.5rem;
}
.cards-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-surface);
  text-transform: uppercase;
}

/* ul > li > article > h3/p */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.card-item article.glass-card {
  padding: 1.4rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.card-item h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.card-item h3 a {
  color: var(--c-white);
  transition: color 0.15s;
}
.card-item h3 a:hover { color: var(--c-accent); }

.card-item p {
  font-size: 0.82rem;
  color: var(--c-white-60);
  line-height: 1.55;
  flex: 1;
}

.card-link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-accent2);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  transition: color 0.15s;
}
.card-link:hover { color: var(--c-accent); }

/* ── 侧边栏卡片 ── */
.aside-card {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1.5rem;
}

.aside-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.aside-links li a {
  font-size: 0.875rem;
  color: var(--c-white-60);
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  min-height: 40px;
  display: flex;
  align-items: center;
  line-height: 1.3;
}
.aside-links li a:hover {
  color: var(--c-white);
  background: var(--c-white-10);
}

.aside-nav-block { margin-top: 0.5rem; }
.related-faqs { margin-bottom: 0.25rem; }

/* ── 日期 ── */
.page-dates {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.date-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--c-white-60);
  letter-spacing: 0.02em;
}
.date-label time { color: var(--c-accent2); }

/* ── 正文排版（prose）── */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.87);
  max-width: 72ch;
}
.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--c-white-10);
}
.prose h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-white);
  margin: 1.5rem 0 0.5rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol {
  margin: 0.75rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.prose li { line-height: 1.65; }
.prose a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.prose a:hover { color: var(--c-accent2); }
.prose strong { font-weight: 700; color: var(--c-white); }
.prose blockquote {
  border-left: 3px solid var(--c-accent);
  padding-left: 1rem;
  color: var(--c-white-60);
  font-style: italic;
  margin: 1.25rem 0;
}
.prose code {
  font-size: 0.85em;
  background: rgba(255,255,255,0.08);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.prose pre {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-white-10);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-radius: 4px;
  margin: 1rem 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}
.prose th, .prose td {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--c-white-10);
  text-align: left;
}
.prose th {
  background: rgba(255,255,255,0.06);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ── 页脚 ── */
.site-footer {
  border-top: 1px solid var(--c-white-10);
  background: rgba(0,0,0,0.3);
  padding: 2rem 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-white-10);
}

.footer-brand strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.82rem;
  color: var(--c-white-60);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-content: flex-start;
  justify-content: flex-end;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--c-white-60);
  transition: color 0.15s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: var(--c-white); }

.footer-bar {
  padding: 0.9rem 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}

/* ── FAQ / About / Contact 等内页侧边 ── */
.faq-main, .about-main, .contact-main, .privacy-main { min-width: 0; }
.faq-aside, .about-aside, .contact-aside, .privacy-aside { min-width: 0; }

/* ── 深度层叠效果辅助 ── */
.site-wrapper::before {
  content: '';
  position: fixed;
  top: 0; right: 0; bottom: 0; left: var(--sidebar-w);
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(212,160,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(127,255,212,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page-content { position: relative; z-index: 1; }

/* ── 动效 ── */
@media (prefers-reduced-motion: no-preference) {
  .glass-card {
    transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.22s cubic-bezier(.4,0,.2,1);
  }
  .btn {
    transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1), background 0.18s;
  }
  .sidebar-nav a {
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  }
  .hero-layer--back {
    animation: heroFloat 6s ease-in-out infinite alternate;
  }
  .hero-layer--front {
    animation: heroFloat 5s ease-in-out infinite alternate-reverse;
  }
  @keyframes heroFloat {
    from { transform: translateY(24px) scale(0.95); }
    to   { transform: translateY(8px) scale(0.97); }
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── 响应式 ── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 190px; }
  .content-section--about,
  .content-section--faq,
  .content-section--contact,
  .content-section--privacy {
    grid-template-columns: 1fr 220px;
    gap: 1.5rem;
  }
  .hero-content { padding: 2rem 1.75rem; }
  .cards-section, .content-section { padding-left: 1.75rem; padding-right: 1.75rem; }
  .inner-hero { padding: 2.5rem 1.75rem 2rem; }
  .site-footer { padding: 1.75rem 1.75rem 0; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: auto;
    max-height: none;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--c-white-10);
    overflow: visible;
    z-index: 50;
  }

  .sidebar-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-bottom: none;
    flex-shrink: 0;
  }

  .sidebar-announce {
    display: none;
  }

  .sidebar-brand { margin-bottom: 0; }

  .sidebar-nav {
    padding: 0.5rem 0.5rem;
    flex: 1;
    overflow-x: auto;
  }

  .sidebar-nav p {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.25rem;
    white-space: nowrap;
  }

  .sidebar-nav a {
    font-size: 0.78rem;
    padding: 0.5rem 0.85rem;
    white-space: nowrap;
    min-height: 40px;
  }

  .page-content {
    margin-left: 0;
    padding-top: 64px;
  }

  .hero-section {
    min-height: auto;
    padding: 2.5rem 0 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-layer { display: none; }

  .hero-content {
    text-align: left;
    margin-left: 0;
    padding: 1.5rem 1.25rem 2.5rem;
    max-width: 100%;
  }

  .hero-actions { justify-content: flex-start; }

  .content-section--about,
  .content-section--faq,
  .content-section--contact,
  .content-section--privacy {
    grid-template-columns: 1fr;
  }

  .aside-card { position: static; }

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

  .content-section { padding: 1.75rem 1.25rem; }
  .cards-section { padding: 1.75rem 1.25rem 2rem; }
  .inner-hero { padding: 2rem 1.25rem 1.5rem; }
  .site-footer { padding: 1.5rem 1.25rem 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-links { justify-content: flex-start; }

  .site-wrapper::before { left: 0; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 1.6rem; }
  .inner-hero h1 { font-size: 1.4rem; }
  .prose { font-size: 0.97rem; }
}
