/* ==========================================================================
   澳门金沙官网 · 共享站点样式 /assets/site.css
   1. 变量与重置  2. 基础排版  3. 页头  4. 页脚
   5. 通用组件    6. 交互组件  7. 响应式与可访问性
   ========================================================================== */

/* 1. 变量与重置 ---------------------------------------------------------- */
:root {
  --sj-navy-950: #071A2B;
  --sj-navy-900: #0B2440;
  --sj-navy-700: #12395C;
  --sj-sand-050: #F4E9D7;
  --sj-sand-200: #E4C79A;
  --sj-gold-500: #D9A441;
  --sj-gold-300: #F2C76E;
  --sj-coral: #F26B4E;
  --sj-cyan: #27C7B8;
  --sj-violet: #6F5BD6;
  --sj-mist: #AFC0CC;
  --sj-ink: #071018;

  --sj-line: rgba(217, 164, 65, 0.34);
  --sj-line-soft: rgba(175, 192, 204, 0.18);
  --sj-on-dark: #F4E9D7;
  --sj-on-dark-soft: rgba(244, 233, 215, 0.72);

  --sj-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --sj-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --sj-header-h: 76px;
  --sj-max: 1320px;
  --sj-gutter: clamp(18px, 4vw, 48px);
  --sj-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sj-header-h) + 18px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--sj-navy-950);
  background-image:
    radial-gradient(120% 68% at 6% -6%, rgba(18, 57, 92, 0.95) 0%, rgba(11, 36, 64, 0) 62%),
    radial-gradient(90% 52% at 100% 0%, rgba(111, 91, 214, 0.16) 0%, rgba(7, 26, 43, 0) 56%);
  background-repeat: no-repeat;
  color: var(--sj-on-dark);
  font-family: var(--sj-sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  height: auto;
}

a {
  color: var(--sj-gold-300);
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: rgba(217, 164, 65, 0.38);
  color: #fff7e8;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--sj-cyan);
  outline-offset: 3px;
}

/* 2. 基础排版 ------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.014em;
  text-wrap: balance;
  color: var(--sj-on-dark);
}

h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; letter-spacing: 0.01em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.2em; }

hr { border: 0; }

#main-content {
  display: block;
  min-height: 40vh;
}

.sj-container {
  width: 100%;
  max-width: var(--sj-max);
  margin-inline: auto;
  padding-inline: var(--sj-gutter);
}

.sj-container--narrow { max-width: 880px; }
.sj-container--wide { max-width: 1560px; }

/* 3. 页头 ---------------------------------------------------------------- */
.sj-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 12px 18px;
  background: var(--sj-gold-300);
  color: var(--sj-navy-950);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--sj-navy-950);
  transition: transform 0.18s var(--sj-ease);
}

.sj-skip:focus {
  transform: translateY(0);
}

.sj-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-image: linear-gradient(180deg, #071a2b 0%, #0b2440 100%);
  border-bottom: 1px solid var(--sj-line);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.92);
  color: var(--sj-on-dark);
}

.sj-header__meter {
  position: relative;
  height: 3px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(217, 164, 65, 0.5) 0 1px,
    transparent 1px 16px
  );
  background-color: rgba(11, 36, 64, 0.9);
}

.sj-header__progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--sj-gold-500), var(--sj-gold-300));
  will-change: transform;
}

.sj-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
  width: 100%;
  max-width: var(--sj-max);
  margin-inline: auto;
  padding-inline: var(--sj-gutter);
  min-height: var(--sj-header-h);
}

.sj-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.sj-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--sj-mono);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--sj-navy-950);
  background-image: linear-gradient(145deg, #f2c76e, #d9a441 58%, #b3822c);
  border: 1px solid rgba(242, 199, 110, 0.9);
  box-shadow: inset 0 0 0 2px rgba(7, 26, 43, 0.16);
}

.sj-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sj-brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sj-sand-050);
}

.sj-brand__desc {
  font-family: var(--sj-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--sj-mist);
}

.sj-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.sj-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sj-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 3px;
  color: rgba(244, 233, 215, 0.8);
  font-size: clamp(12.5px, 1.05vw, 14px);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s var(--sj-ease);
}

.sj-nav__index {
  font-family: var(--sj-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(217, 164, 65, 0.75);
  transform: translateY(-5px);
  transition: color 0.18s var(--sj-ease);
}

.sj-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background-image: linear-gradient(90deg, var(--sj-gold-300), rgba(39, 199, 184, 0.7));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.2s var(--sj-ease);
}

.sj-nav__link:hover { color: var(--sj-sand-050); }
.sj-nav__link:hover::after { transform: scaleX(1); }

.sj-nav__link[aria-current="page"] { color: var(--sj-gold-300); }

.sj-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background-image: linear-gradient(90deg, var(--sj-gold-300), var(--sj-gold-500));
}

.sj-nav__link[aria-current="page"] .sj-nav__index { color: var(--sj-cyan); }

.sj-header__aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.sj-support {
  margin: 0;
  max-width: 132px;
  font-family: var(--sj-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--sj-mist);
}

.sj-quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  color: var(--sj-navy-950);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  background-image: linear-gradient(135deg, var(--sj-gold-300), var(--sj-gold-500));
  border: 1px solid rgba(242, 199, 110, 0.8);
  transition: transform 0.18s var(--sj-ease), box-shadow 0.18s var(--sj-ease);
}

.sj-quick::after {
  content: "→";
  font-family: var(--sj-mono);
  font-size: 12px;
  transition: transform 0.18s var(--sj-ease);
}

.sj-quick:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 0 -4px rgba(217, 164, 65, 0.55);
}

.sj-quick:hover::after { transform: translateX(3px); }

.sj-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 12px;
  color: var(--sj-sand-050);
  background: rgba(11, 36, 64, 0.7);
  border: 1px solid var(--sj-line);
  cursor: pointer;
  transition: border-color 0.18s var(--sj-ease), background-color 0.18s var(--sj-ease);
}

.sj-nav-toggle:hover {
  border-color: var(--sj-gold-500);
  background: rgba(18, 57, 92, 0.9);
}

.sj-nav-toggle__bars {
  display: block;
  position: relative;
  width: 22px;
  height: 12px;
  background-image:
    linear-gradient(var(--sj-gold-500), var(--sj-gold-500)),
    linear-gradient(var(--sj-gold-500), var(--sj-gold-500)),
    linear-gradient(var(--sj-gold-500), var(--sj-gold-500));
  background-repeat: no-repeat;
  background-size: 100% 1.5px, 100% 1.5px, 100% 1.5px;
  background-position: 0 0, 0 50%, 0 100%;
  transition: transform 0.2s var(--sj-ease);
}

.sj-header[data-open] .sj-nav-toggle__bars { transform: rotate(90deg); }

.sj-nav-toggle__label {
  font-family: var(--sj-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 4. 页脚 ---------------------------------------------------------------- */
.sj-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 84px);
  padding-top: clamp(38px, 5vw, 72px);
  background-image: linear-gradient(180deg, #0b2440 0%, #071a2b 46%, #050f19 100%);
  border-top: 1px solid var(--sj-line);
  color: var(--sj-on-dark);
}

.sj-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(217, 164, 65, 0.6) 0 1px,
    transparent 1px 18px
  );
  opacity: 0.7;
  pointer-events: none;
}

.sj-footer__inner {
  display: block;
}

.sj-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  gap: clamp(26px, 4vw, 64px);
  padding-bottom: clamp(26px, 4vw, 52px);
}

.sj-footer__identity { min-width: 0; }

.sj-footer__line {
  margin: 0 0 12px;
  font-family: var(--sj-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--sj-gold-500);
}

.sj-footer__wordmark {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--sj-sand-050);
}

.sj-footer__note {
  margin: 0;
  max-width: 24em;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--sj-on-dark-soft);
}

.sj-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  min-width: 0;
}

.sj-footer__col { min-width: 0; }

.sj-footer__heading {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(217, 164, 65, 0.26);
  font-family: var(--sj-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--sj-gold-300);
}

.sj-footer__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
}

.sj-footer__list--plain {
  color: var(--sj-on-dark-soft);
  word-break: break-word;
}

.sj-footer__link {
  display: inline-block;
  color: rgba(244, 233, 215, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--sj-ease), transform 0.16s var(--sj-ease);
}

.sj-footer__link:hover {
  color: var(--sj-gold-300);
  transform: translateX(3px);
}

.sj-footer__hint {
  margin: 14px 0 0;
  font-family: var(--sj-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(175, 192, 204, 0.8);
}

.sj-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--sj-line-soft);
  font-family: var(--sj-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--sj-mist);
}

.sj-footer__meta > * { margin: 0; }

.sj-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.sj-footer__legal .sj-footer__link {
  font-family: var(--sj-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(175, 192, 204, 0.92);
}

.sj-footer__legal .sj-footer__link:hover { color: var(--sj-gold-300); }

/* 5. 通用组件 ------------------------------------------------------------ */
.sj-surface {
  background-image: linear-gradient(180deg, #f4e9d7 0%, #efe0c9 100%);
  color: var(--sj-ink);
}

.sj-surface h1,
.sj-surface h2,
.sj-surface h3,
.sj-surface h4 { color: var(--sj-ink); }

.sj-surface p { color: #23384a; }

.sj-surface a {
  color: var(--sj-navy-900);
  text-decoration-color: rgba(217, 164, 65, 0.85);
}

.sj-surface a:hover { color: #8a5c0d; }

.sj-envelope { position: relative; overflow: hidden; }

.sj-section { padding-block: clamp(44px, 7vw, 96px); }
.sj-section--tight { padding-block: clamp(24px, 3.5vw, 48px); }

.sj-stack {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
}

.sj-grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
  min-width: 0;
}

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

.sj-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.sj-rail {
  position: sticky;
  top: calc(var(--sj-header-h) + 22px);
  display: grid;
  gap: 14px;
  min-width: 0;
}

.sj-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--sj-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sj-gold-300);
}

.sj-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.sj-meta {
  margin: 0;
  font-family: var(--sj-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--sj-mist);
}

.sj-lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--sj-on-dark-soft);
}

.sj-prose {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.8;
}

.sj-rule {
  height: 1px;
  margin: 0;
  border: 0;
  background-image: linear-gradient(
    90deg,
    rgba(217, 164, 65, 0.55),
    rgba(39, 199, 184, 0.22),
    rgba(217, 164, 65, 0)
  );
}

.sj-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background-image: linear-gradient(160deg, #0b2440 0%, #071a2b 100%);
  border: 1px solid var(--sj-line);
  color: var(--sj-on-dark);
  min-width: 0;
}

.sj-card--light {
  background-image: linear-gradient(160deg, #fffdf8 0%, #f6ecdb 100%);
  border-color: rgba(11, 36, 64, 0.16);
  color: var(--sj-ink);
}

.sj-card--light h3,
.sj-card--light h2 { color: var(--sj-ink); }

.sj-card--interactive {
  transition: transform 0.2s var(--sj-ease), border-color 0.2s var(--sj-ease),
    box-shadow 0.2s var(--sj-ease);
}

.sj-card--interactive:hover {
  transform: translateY(-3px);
  border-color: var(--sj-gold-500);
  box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 0.9);
}

.sj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--sj-on-dark);
  background: transparent;
  border: 1px solid var(--sj-line);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--sj-ease), background-color 0.18s var(--sj-ease),
    border-color 0.18s var(--sj-ease), color 0.18s var(--sj-ease);
}

.sj-btn--gold {
  color: var(--sj-navy-950);
  background-image: linear-gradient(135deg, var(--sj-gold-300), var(--sj-gold-500));
  border-color: rgba(242, 199, 110, 0.85);
}

.sj-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 -4px rgba(217, 164, 65, 0.55);
}

.sj-btn--ghost {
  color: var(--sj-gold-300);
  border-color: rgba(217, 164, 65, 0.55);
}

.sj-btn--ghost:hover {
  color: var(--sj-sand-050);
  border-color: var(--sj-gold-500);
  background: rgba(217, 164, 65, 0.12);
  transform: translateY(-2px);
}

.sj-btn--quiet {
  color: var(--sj-mist);
  border-color: var(--sj-line-soft);
}

.sj-btn--quiet:hover {
  color: var(--sj-sand-050);
  border-color: var(--sj-mist);
}

.sj-surface .sj-btn--ghost {
  color: var(--sj-navy-900);
  border-color: rgba(11, 36, 64, 0.35);
}

.sj-surface .sj-btn--ghost:hover {
  color: var(--sj-navy-950);
  border-color: var(--sj-navy-900);
  background: rgba(11, 36, 64, 0.08);
}

.sj-surface .sj-btn--quiet {
  color: #4a6272;
  border-color: rgba(11, 36, 64, 0.24);
}

.sj-surface .sj-btn--quiet:hover {
  color: var(--sj-ink);
  border-color: rgba(11, 36, 64, 0.5);
}

.sj-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sj-gold-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 65, 0.5);
  transition: gap 0.18s var(--sj-ease), color 0.18s var(--sj-ease),
    border-color 0.18s var(--sj-ease);
}

.sj-link::after {
  content: "→";
  font-family: var(--sj-mono);
  font-size: 12px;
}

.sj-link:hover {
  gap: 12px;
  color: var(--sj-gold-300);
  border-bottom-color: var(--sj-gold-300);
}

.sj-surface .sj-link {
  color: #8a5c0d;
  border-bottom-color: rgba(180, 130, 35, 0.7);
}

.sj-surface .sj-link:hover {
  color: #6d4708;
  border-bottom-color: #8a5c0d;
}

.sj-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--sj-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sj-gold-300);
  background: rgba(217, 164, 65, 0.08);
  border: 1px solid rgba(217, 164, 65, 0.45);
}

.sj-tag--live {
  color: var(--sj-cyan);
  background: rgba(39, 199, 184, 0.08);
  border-color: rgba(39, 199, 184, 0.45);
}

.sj-tag--alert {
  color: var(--sj-coral);
  background: rgba(242, 107, 78, 0.1);
  border-color: rgba(242, 107, 78, 0.45);
}

.sj-surface .sj-tag {
  color: #8a5c0d;
  background: rgba(217, 164, 65, 0.14);
  border-color: rgba(180, 130, 35, 0.45);
}

.sj-breadcrumb {
  margin: 0 0 20px;
  font-family: var(--sj-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--sj-mist);
}

.sj-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sj-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(217, 164, 65, 0.6);
}

.sj-breadcrumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 65, 0.4);
}

.sj-breadcrumb a:hover { color: var(--sj-gold-300); }

.sj-surface .sj-breadcrumb { color: #4a6272; }

.sj-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--sj-navy-900);
  background-image: linear-gradient(135deg, #0b2440 0%, #12395c 56%, #1b4a6e 100%);
  border: 1px solid var(--sj-line);
}

.sj-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(244, 233, 215, 0.07) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(244, 233, 215, 0.05) 0 1px, transparent 1px 22px);
}

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

.sj-media--wide { aspect-ratio: 21 / 9; }
.sj-media--square { aspect-ratio: 1 / 1; }
.sj-media--tall { aspect-ratio: 3 / 4; }

.sj-media__caption {
  display: block;
  padding-top: 10px;
  font-family: var(--sj-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--sj-mist);
}

.sj-surface .sj-media__caption { color: #4a6272; }

/* 6. 交互组件 ------------------------------------------------------------ */
.sj-toc {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid rgba(217, 164, 65, 0.32);
}

.sj-toc__link {
  display: flex;
  gap: 10px;
  margin-left: -1px;
  padding: 8px 0 8px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 233, 215, 0.68);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.16s var(--sj-ease), border-color 0.16s var(--sj-ease);
}

.sj-toc__link:hover { color: var(--sj-sand-050); }

.sj-toc__link[aria-current="true"] {
  color: var(--sj-gold-300);
  border-left-color: var(--sj-gold-500);
}

.sj-toc__index {
  flex: 0 0 auto;
  padding-top: 3px;
  font-family: var(--sj-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(217, 164, 65, 0.7);
}

.sj-surface .sj-toc { border-left-color: rgba(11, 36, 64, 0.18); }
.sj-surface .sj-toc__link { color: #4a6272; }
.sj-surface .sj-toc__link:hover { color: var(--sj-ink); }
.sj-surface .sj-toc__link[aria-current="true"] {
  color: #8a5c0d;
  border-left-color: var(--sj-gold-500);
}
.sj-surface .sj-toc__index { color: rgba(138, 92, 13, 0.85); }

.sj-tabs { display: block; }

.sj-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid rgba(217, 164, 65, 0.32);
}

.sj-tabs__tab {
  appearance: none;
  margin-bottom: -1px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(244, 233, 215, 0.62);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.18s var(--sj-ease), border-color 0.18s var(--sj-ease);
}

.sj-tabs__tab:hover { color: var(--sj-sand-050); }

.sj-tabs__tab[aria-selected="true"] {
  color: var(--sj-gold-300);
  border-bottom-color: var(--sj-gold-500);
}

.sj-tabs__tab:focus-visible {
  outline: 2px solid var(--sj-cyan);
  outline-offset: -4px;
}

.sj-tabs__panel { padding-block: 4px; }
.sj-tabs__panel[hidden] { display: none; }
.sj-tabs__panel:focus-visible {
  outline: 2px solid var(--sj-cyan);
  outline-offset: 6px;
}

.sj-surface .sj-tabs__list { border-bottom-color: rgba(11, 36, 64, 0.2); }
.sj-surface .sj-tabs__tab { color: #4a6272; }
.sj-surface .sj-tabs__tab:hover { color: var(--sj-ink); }
.sj-surface .sj-tabs__tab[aria-selected="true"] {
  color: #8a5c0d;
  border-bottom-color: var(--sj-gold-500);
}

.sj-surface .sj-eyebrow { color: #8a5c0d; }
.sj-surface .sj-lead { color: #274257; }
.sj-surface .sj-meta { color: #4a6272; }

/* 7. 响应式与可访问性 ---------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --sj-header-h: 64px; }

  .sj-header__inner { gap: 12px; }

  .sj-support { display: none; }

  .sj-header__aside {
    order: 2;
    margin-left: auto;
  }

  .sj-nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .sj-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 8px var(--sj-gutter) 26px;
    max-height: calc(100vh - var(--sj-header-h) - 12px);
    overflow-y: auto;
    background-image: linear-gradient(180deg, #0b2440 0%, #071a2b 100%);
    border-top: 1px solid var(--sj-line);
    border-bottom: 1px solid rgba(0, 0, 0, 0.55);
    box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--sj-ease), transform 0.2s var(--sj-ease),
      visibility 0.2s linear;
  }

  .sj-header[data-open] .sj-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .sj-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .sj-nav__item + .sj-nav__item {
    border-top: 1px solid rgba(175, 192, 204, 0.14);
  }

  .sj-nav__link {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding: 15px 4px;
    font-size: 17px;
    letter-spacing: 0.02em;
  }

  .sj-nav__index {
    font-size: 10.5px;
    transform: translateY(-3px);
  }

  .sj-nav__link::after { display: none; }

  .sj-nav__link[aria-current="page"] {
    color: var(--sj-gold-300);
    box-shadow: inset 3px 0 0 var(--sj-gold-500);
    padding-left: 14px;
  }

  .sj-split { grid-template-columns: minmax(0, 1fr); }
  .sj-rail { position: static; top: auto; }
}

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

  .sj-footer__top { grid-template-columns: minmax(0, 1fr); }
  .sj-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .sj-grid--2,
  .sj-grid--3,
  .sj-grid--4 { grid-template-columns: minmax(0, 1fr); }

  .sj-footer__nav { grid-template-columns: minmax(0, 1fr); }
  .sj-footer__legal { margin-left: 0; }
}

@media (max-width: 480px) {
  .sj-brand { gap: 9px; }
  .sj-brand__mark { width: 34px; height: 34px; font-size: 11px; }
  .sj-brand__name { font-size: 15px; letter-spacing: 0.04em; }
  .sj-brand__desc { display: none; }

  .sj-quick { padding: 9px 11px; font-size: 12px; }
  .sj-quick::after { display: none; }

  .sj-nav-toggle { padding: 9px 10px; }
  .sj-nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 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;
  }
}
