/* =========================================================
   澳门新葡萄指南 · 共享样式 /assets/site.css
   暖纸档案 × 技术蓝图
   ========================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 124px;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, hr {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

:root {
  /* 色彩体系 */
  --paper: #F6EFE2;
  --paper-2: #E9DDC6;
  --ink: #17120E;
  --ink-2: #5F5A52;
  --grape: #5B2A86;
  --grape-2: #8A4DB3;
  --green: #2E7D4F;
  --green-2: #7BC98A;
  --gold: #C9972C;
  --blueprint: #23343D;

  /* 字体 */
  --display: "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", SFMono-Regular, Consolas, "Courier New", monospace;

  /* 形状与阴影 */
  --line: 1.5px solid var(--ink);
  --line-soft: 1px solid rgba(23, 18, 14, 0.18);
  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --radius-card: 14px;
  --radius-pill: 999px;

  /* 节奏 */
  --w-max: 1240px;
  --pad-x: clamp(18px, 4vw, 48px);
  --gap: clamp(16px, 2.2vw, 28px);
  --grid-line: rgba(35, 52, 61, 0.085);
}

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; }

a { color: var(--grape); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--grape-2); }

:focus-visible {
  outline: 3px solid var(--grape-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.stack { display: grid; gap: var(--gap); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* =========================================================
   页头 · 悬浮胶囊浮岛
   ========================================================= */

.skip-link {
  position: absolute;
  left: 50%;
  top: 6px;
  z-index: 300;
  transform: translate(-50%, -180%);
  padding: 10px 20px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--paper);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--grape) 0%, var(--grape-2) 42%, var(--green) 76%, var(--gold) 100%);
  pointer-events: none;
  will-change: transform;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: clamp(10px, 1.6vw, 18px) var(--pad-x);
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--paper) 62%,
    rgba(246, 239, 226, 0.86) 84%,
    rgba(246, 239, 226, 0) 100%
  );
  pointer-events: none;
}

.header-shell {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  pointer-events: auto;
}

.nav-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 22px);
  padding: 9px 12px 9px 14px;
  border: var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--grape);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.brand-copy { display: block; }

.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand-meta {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-list > li { display: block; }

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 0.87rem;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  background: var(--paper-2);
  border-color: var(--ink);
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  background: var(--grape);
  border-color: var(--ink);
  color: #FBF6EC;
  font-weight: 600;
}

.nav-cta {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #F4FBEF;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-cta:hover {
  color: #FFFFFF;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle:hover { background: var(--blueprint); }

.nav-toggle-bar {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

.site-header[data-open] .nav-toggle-bar { background: transparent; }
.site-header[data-open] .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

/* =========================================================
   页脚 · 深墨档案层
   ========================================================= */

.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1.5px solid var(--ink);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(246, 239, 226, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 239, 226, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  color: #EFE6D6;
}

.footer-shell {
  width: 100%;
  max-width: var(--w-max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--pad-x) clamp(20px, 3vw, 32px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
}

.footer-brand { min-width: 0; }

.footer-logo {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
  line-height: 1.2;
}

.footer-tagline {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(246, 239, 226, 0.6);
}

.footer-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-routes a {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid rgba(246, 239, 226, 0.34);
  border-radius: var(--radius-pill);
  color: #EFE6D6;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.footer-routes a:hover {
  background: var(--grape);
  border-color: var(--grape-2);
  color: #FFFFFF;
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-2);
}

.footer-links li + li { margin-top: 10px; }

.footer-links a {
  color: #EFE6D6;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
  border-bottom-color: var(--gold);
}

.footer-contact-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(246, 239, 226, 0.16);
  font-size: 0.86rem;
}

.footer-contact-label {
  flex: 0 0 42px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: rgba(246, 239, 226, 0.5);
}

.footer-contact-value {
  color: #EFE6D6;
  overflow-wrap: anywhere;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid rgba(246, 239, 226, 0.2);
}

.footer-meta {
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: rgba(246, 239, 226, 0.62);
}

.footer-stamp {
  padding: 5px 13px;
  border: 1px solid rgba(201, 151, 44, 0.55);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: nowrap;
}

/* =========================================================
   通用容器与章节
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(40px, 6vw, 88px); }

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.section-index {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper-2);
  -webkit-text-stroke: 1.5px var(--ink);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.section-note {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grape);
}

.eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
}

.lead {
  max-width: 64ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
  color: var(--ink-2);
}

.rule {
  height: 1.5px;
  border: 0;
  background: var(--ink);
}

.rule--soft {
  height: 1px;
  border: 0;
  background: rgba(23, 18, 14, 0.18);
}

/* =========================================================
   按钮 / 徽章 / 标签
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--primary { background: var(--grape); color: #FBF6EC; }
.btn--primary:hover { color: #FFFFFF; }

.btn--green { background: var(--green); color: #F4FBEF; }
.btn--green:hover { color: #FFFFFF; }

.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--paper-2); box-shadow: 4px 4px 0 var(--ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--gold { background: var(--gold); color: #1B1408; }
.badge--grape { background: var(--grape); color: #FBF6EC; }
.badge--green { background: var(--green); color: #F4FBEF; }
.badge--paper { background: var(--paper-2); color: var(--ink); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px dashed var(--ink-2);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
  background: transparent;
  white-space: nowrap;
}

/* =========================================================
   面包屑
   ========================================================= */

.breadcrumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list > li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list > li + li::before {
  content: "/";
  color: var(--gold);
}

.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.breadcrumb a:hover {
  color: var(--grape);
  border-bottom-color: var(--grape);
}

.breadcrumb [aria-current="page"] { color: var(--ink); }

/* =========================================================
   网格 / 卡片 / 图片容器 / 数据条
   ========================================================= */

.grid { display: grid; gap: var(--gap); }

.grid--asym { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.card--dark {
  background: var(--blueprint);
  color: #EFE6D6;
}

.card--dark .card-title { color: var(--paper); }
.card--dark .card-text { color: rgba(246, 239, 226, 0.72); }

.card-title {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}

.card-text {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--ink-2);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--paper-2);
  box-shadow: var(--shadow-hard-sm);
}

.media-frame img,
.media-frame svg,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-caption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
}

.stat {
  padding: 16px 18px;
  border-right: 1px solid rgba(23, 18, 14, 0.16);
}

.stat:last-child { border-right: 0; }

.stat-value {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--grape);
}

.stat-label {
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* =========================================================
   侧栏 · 检索入口 + 三级折叠树
   ========================================================= */

.content-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 56px);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: clamp(94px, 12vh, 124px);
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
}

.sidebar-search {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(23, 18, 14, 0.28);
  text-decoration: none;
  color: var(--ink);
}

.sidebar-search:hover { color: var(--ink); }

.sidebar-search-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grape);
}

.sidebar-search-query {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 0.86rem;
  color: var(--ink-2);
}

.sidebar-search:hover .sidebar-search-query {
  background: var(--green);
  color: #F4FBEF;
}

.sidebar-tree { display: grid; gap: 6px; }

.tree-group {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(23, 18, 14, 0.12);
}

.tree-group:last-child { border-bottom: 0; padding-bottom: 0; }

.tree-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tree-toggle:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

.tree-toggle[aria-expanded="true"] {
  background: var(--grape);
  border-color: var(--ink);
  color: #FBF6EC;
}

.tree-toggle[aria-expanded="true"] .tree-caret { transform: rotate(90deg); }

.tree-caret {
  font-family: var(--mono);
  font-size: 0.68rem;
  transition: transform 0.2s ease;
}

.tree-list {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding-left: 10px;
  border-left: 2px solid rgba(46, 125, 79, 0.35);
}

.tree-list[hidden] { display: none; }

.tree-list a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.tree-list a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.tree-list a[aria-current="page"] {
  background: rgba(123, 201, 138, 0.2);
  color: var(--green);
  font-weight: 600;
}

/* =========================================================
   分段切换与手风琴（供页面阶段使用）
   ========================================================= */

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper-2);
}

.segmented-btn {
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.segmented-btn:hover { color: var(--ink); }

.segmented-btn[aria-selected="true"] {
  background: var(--grape);
  color: #FBF6EC;
  box-shadow: 2px 2px 0 var(--ink);
}

.accordion-item {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-hard-sm);
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.96rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-trigger[aria-expanded="true"] { background: var(--paper-2); }

.accordion-panel {
  padding: 0 18px 18px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.accordion-panel[hidden] { display: none; }

/* =========================================================
   动效挂点
   ========================================================= */

.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }

  .nav-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: -1.5px;
    right: -1.5px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 14px;
    border: 1.5px solid var(--ink);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow-hard);
  }

  .site-header[data-open] .nav-panel { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    padding: 12px 14px;
    border-color: rgba(23, 18, 14, 0.14);
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .nav-cta {
    margin-top: 6px;
    padding: 12px 16px;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--asym { grid-template-columns: minmax(0, 1fr); }

  .content-shell { grid-template-columns: minmax(0, 1fr); }

  .sidebar { position: static; top: auto; }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 96px; }

  .brand-meta { display: none; }

  .brand-mark { width: 34px; height: 34px; font-size: 0.95rem; }

  .brand-name { font-size: 0.94rem; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }

  .footer-base { flex-direction: column; align-items: flex-start; }

  .stat { border-right: 0; border-bottom: 1px solid rgba(23, 18, 14, 0.16); }

  .stat:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .card:hover,
  .btn:hover,
  .btn:active,
  .nav-cta:hover {
    transform: none;
  }
}
