/* ============ 品牌变量 ============ */
:root {
  --ink-black: #0D1117;
  --deep-green: #0B3B2E;
  --green-bright: #1E7A5A;
  --gold: #C9A063;
  --gold-light: #E3C78A;
  --wine: #7B2D3B;
  --ivory: #F4EDE4;
  --stone: #93A39B;
  --mist: #E5EFE9;

  --heading-font: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --header-offset: 88px;
  --max-width: 1200px;
  --radius: 20px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ivory);
  background: var(--ink-black);
  padding-top: var(--header-offset);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink-black);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ink-black);
}
::-webkit-scrollbar-thumb {
  background: var(--deep-green);
  border-radius: 8px;
  border: 2px solid var(--ink-black);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green-bright);
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* ============ 读屏辅助 ============ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5000;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink-black);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-80px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ============ 滚动进度条 ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3000;
  background: linear-gradient(90deg, var(--green-bright) 0%, var(--gold) 45%, var(--gold-light) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ============ 内容容器与章节 ============ */
.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}
.container--narrow {
  width: min(820px, calc(100% - 48px));
}

.section {
  padding: clamp(68px, 10vw, 120px) 0;
}
.section--tint {
  background: var(--deep-green);
}
.section--dark {
  background: var(--ink-black);
}
.section--border-top {
  border-top: 1px solid rgba(201, 160, 99, 0.14);
}

/* ============ 悬浮胶囊页头 ============ */
.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 24px));
  z-index: 1000;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(13, 17, 23, 0.78);
  border: 1px solid rgba(201, 160, 99, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* 品牌标识 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ivory);
  white-space: nowrap;
}
.brand-mark {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: none;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(201, 160, 99, 0.28);
  clip-path: polygon(8% 0, 72% 0, 100% 100%, 28% 100%);
}
.brand-mark::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 7px;
  width: 11px;
  height: 22px;
  background: var(--deep-green);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}
.brand-text {
  font-family: var(--heading-font);
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.brand-text em {
  font-style: normal;
  color: var(--gold);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-list a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--ivory);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-list a:hover {
  background: rgba(201, 160, 99, 0.12);
  color: var(--gold-light);
}
.nav-list a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink-black);
  font-weight: 700;
}

.nav-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--ink-black);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 160, 99, 0.34);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(201, 160, 99, 0.3);
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.5);
  color: var(--gold-light);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(201, 160, 99, 0.08);
}
.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ 通用按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink-black);
  box-shadow: 0 4px 18px rgba(201, 160, 99, 0.26);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 160, 99, 0.36);
}
.btn--ghost {
  border-color: rgba(201, 160, 99, 0.4);
  color: var(--gold-light);
  background: transparent;
}
.btn--ghost:hover {
  background: rgba(201, 160, 99, 0.1);
  border-color: var(--gold);
}

/* ============ 首屏导言 ============ */
.lead {
  padding: clamp(40px, 7vw, 84px) 0 0;
}
.lead-title {
  font-family: var(--heading-font);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin: 16px 0 28px;
  max-width: 12em;
}
.lead-title em {
  font-style: normal;
  color: var(--gold);
}
.lead-content {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: end;
}
.lead-declaration {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  color: var(--stone);
  font-size: 1.08rem;
  max-width: 560px;
}

/* ============ 目录列表 ============ */
.toc-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.toc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(244, 237, 228, 0.04);
  border: 1px solid rgba(201, 160, 99, 0.16);
  color: var(--ivory);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.toc-list a:hover {
  background: rgba(201, 160, 99, 0.1);
  border-color: var(--gold);
  transform: translateX(4px);
}
.toc-index {
  color: var(--gold);
  font-family: var(--heading-font);
  font-weight: 900;
}

/* ============ 章节头部 ============ */
.section-head {
  margin-bottom: 36px;
}
.kicker {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(201, 160, 99, 0.12);
  border: 1px solid rgba(201, 160, 99, 0.26);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.section-title {
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-top: 12px;
}
.section-subtitle {
  margin-top: 12px;
  color: var(--stone);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ============ 玻璃卡片 ============ */
.glow-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(244, 237, 228, 0.04);
  border: 1px solid rgba(201, 160, 99, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.glow-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============ 数据网格 ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.stat-value {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 8px;
  color: var(--stone);
  font-size: 0.92rem;
}

/* ============ 图片容器 ============ */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--deep-green);
  border: 1px solid rgba(201, 160, 99, 0.16);
  aspect-ratio: 4 / 3;
}
.img-frame--wide {
  aspect-ratio: 21 / 9;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(11, 59, 46, 0.3), transparent 58%);
  pointer-events: none;
}

/* ============ 提示与装饰 ============ */
.urgency-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--wine);
  color: var(--ivory);
  font-size: 0.84rem;
  font-weight: 700;
}
.urgency-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
}

.slant-bar {
  display: block;
  width: 120px;
  height: 8px;
  background: linear-gradient(90deg, var(--gold), var(--green-bright));
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.blade-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
}
.blade-rule::before {
  content: "";
  width: 52px;
  height: 6px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}
.blade-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 160, 99, 0.5), transparent);
}

/* ============ 面包屑 ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  font-size: 0.86rem;
  color: var(--stone);
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--stone);
  opacity: 0.45;
}
.breadcrumb a {
  color: var(--stone);
  text-decoration: none;
  transition: color 0.25s ease;
}
.breadcrumb a:hover {
  color: var(--gold-light);
}
.breadcrumb [aria-current] {
  color: var(--gold);
  font-weight: 600;
}

/* ============ 表格 ============ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(201, 160, 99, 0.16);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(244, 237, 228, 0.03);
}
.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(244, 237, 228, 0.07);
  white-space: nowrap;
}
.table-wrap th {
  background: rgba(11, 59, 46, 0.6);
  color: var(--gold);
  font-weight: 700;
}
.table-wrap tr:last-child td {
  border-bottom: 0;
}

/* ============ 滚动显现 ============ */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
html.js-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 页脚 ============ */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 12vw, 140px);
  background: var(--ink-black);
  border-top: 1px solid rgba(201, 160, 99, 0.14);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 42%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light) 70%, transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 0 100%);
}
.footer-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
}
.footer-brand-block .brand {
  margin-bottom: 18px;
}
.brand--footer .brand-text {
  font-size: 1.35rem;
}
.footer-about {
  color: var(--stone);
  font-size: 0.96rem;
  max-width: 400px;
}
.footer-trust {
  margin-top: 20px;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(11, 59, 46, 0.4);
  border-radius: 0 12px 12px 0;
  color: var(--stone);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 460px;
}
.footer-title {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 2px;
}
.footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: var(--stone);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 6px;
}
.footer-contact {
  list-style: none;
  display: grid;
  gap: 12px;
}
.footer-contact li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid rgba(244, 237, 228, 0.06);
  color: var(--stone);
  font-size: 0.94rem;
}
.footer-contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 2px;
  background: var(--gold);
}
.footer-contact-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 2px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 237, 228, 0.08);
  color: var(--stone);
  font-size: 0.88rem;
}

/* ============ 响应式 ============ */
@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    margin: 0;
    border-radius: 24px;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid rgba(201, 160, 99, 0.22);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .site-nav[data-open="true"] {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-list a {
    display: block;
    padding: 12px 16px;
  }
  .nav-cta {
    margin-top: 4px;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .lead-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
  }
  .header-inner {
    padding: 6px 6px 6px 14px;
    gap: 8px;
  }
  .brand-text {
    font-size: 1.05rem;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .footer-shell {
    width: calc(100% - 32px);
    padding-top: 44px;
  }
  .container,
  .container--narrow {
    width: calc(100% - 32px);
  }
}

/* ============ 减少动效 ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
