/* ============================================================
   米乐赛场 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 侧边轨道 / 顶部状态条 /
   页脚 / 按钮 / 面包屑 / 容器 / 网格 / 基础组件 / 动效
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; padding-left: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 02 Design Tokens ---------- */
:root {
  --ink-900: #0B1F33;
  --ink-700: #123A5C;
  --mint-500: #2FD3A4;
  --mint-600: #1FB98D;
  --mint-050: #E4F8F0;
  --coral-500: #FF5A3C;
  --amber-400: #FFC53D;
  --paper-000: #FBF9F4;
  --paper-100: #FFFFFF;
  --slate-500: #5D7285;
  --line-200: #DCE3E6;
  --night-800: #0F2A26;

  --rail-w: 280px;
  --bar-h: 48px;
  --content-max: 1240px;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "SourceHanSerifSC",
    "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --gap: 24px;

  --shadow-stack: 0 1px 0 rgba(11, 31, 51, .03), 0 8px 22px -14px rgba(11, 31, 51, .3);
  --shadow-raised: 0 2px 0 rgba(11, 31, 51, .04), 0 18px 40px -22px rgba(11, 31, 51, .42);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --scroll-progress: 0;
}

/* ---------- 03 基础排版 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-900);
  background-color: var(--paper-000);
  background-image:
    radial-gradient(1100px 560px at 88% -12%, rgba(47, 211, 164, .14), transparent 62%),
    radial-gradient(860px 500px at -6% 46%, rgba(18, 58, 92, .08), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-top: var(--bar-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink-900);
}

a { color: var(--ink-700); text-underline-offset: 3px; }

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

::selection { background: var(--amber-400); color: var(--ink-900); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .76rem;
  letter-spacing: 0;
  color: var(--ink-700);
}

/* ---------- 04 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: calc(var(--rail-w) + 10px);
  z-index: 400;
  transform: translateY(-190%);
  padding: .7rem 1.15rem;
  background: var(--ink-900);
  color: var(--paper-000);
  border: 1px solid var(--mint-500);
  border-radius: var(--radius);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 05 侧边轨道导航 ---------- */
.site-header {
  position: relative;
  z-index: 300;
}

.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 22px 18px 20px;
  background: var(--ink-900);
  color: var(--paper-000);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 320;
  box-shadow: 1px 0 0 rgba(255, 255, 255, .06);
}

.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 260px at 82% 4%, rgba(47, 211, 164, .18), transparent 70%),
    radial-gradient(360px 300px at 6% 98%, rgba(255, 90, 60, .1), transparent 72%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 46px);
}

.rail > * { position: relative; z-index: 1; }

.rail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--paper-000);
  text-decoration: none;
}

.brand-glyph {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--mint-500) 0%, #1D9BBF 55%, var(--ink-700) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 18px -10px rgba(47, 211, 164, .95);
}
.brand-glyph::before {
  content: "";
  position: absolute;
  inset: 11px 6px;
  border: 2px solid rgba(11, 31, 51, .6);
  border-radius: 50%;
}
.brand-glyph::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
  background: rgba(11, 31, 51, .45);
}

.brand-text { display: block; min-width: 0; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--paper-000);
}

.brand-line {
  display: block;
  margin-top: 3px;
  max-width: 176px;
  font-size: .68rem;
  line-height: 1.5;
  letter-spacing: .05em;
  color: rgba(251, 249, 244, .58);
}

.rail-close {
  display: none;
  flex: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(251, 249, 244, .24);
  border-radius: 50%;
  background: transparent;
  color: var(--paper-000);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.rail-close:hover { background: rgba(255, 255, 255, .1); border-color: var(--mint-500); }

.rail-nav {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 249, 244, .14);
}

.nav-list { display: flex; flex-direction: column; gap: 2px; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: rgba(251, 249, 244, .76);
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.nav-link:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--paper-000);
  transform: translateX(2px);
}
.nav-link:focus-visible { outline: 2px solid var(--mint-500); outline-offset: 2px; }
.nav-link[aria-current="page"] {
  color: var(--ink-900);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(47, 211, 164, .98) 0%, rgba(47, 211, 164, .62) 58%, rgba(47, 211, 164, .07) 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 211, 164, .55);
}
.nav-link[aria-current="page"]:hover { transform: none; }

.nav-index {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: rgba(251, 249, 244, .45);
}
.nav-link[aria-current="page"] .nav-index { color: rgba(11, 31, 51, .62); }

.rail-foot {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  gap: 8px;
}

/* ---------- 06 顶部账号状态条 ---------- */
.stage-bar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(16px, 3vw, 30px);
  background: rgba(251, 249, 244, .93);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-200);
  z-index: 300;
}
.stage-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-progress, 0));
  background: linear-gradient(90deg, var(--mint-500), var(--amber-400) 55%, var(--coral-500));
  transition: transform .12s linear;
}

.account-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  margin-right: auto;
  min-width: 0;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--slate-500);
}

.account-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid rgba(47, 211, 164, .4);
  border-radius: 999px;
  background: var(--mint-050);
  color: #0E7357;
  font-weight: 600;
  white-space: nowrap;
}

.sync-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-500);
  box-shadow: 0 0 0 4px rgba(47, 211, 164, .2);
  animation: syncPulse 2.6s var(--ease) infinite;
}
@keyframes syncPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.7); opacity: .55; }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--ink-900);
  border-radius: 9px;
  background: var(--ink-900);
  color: var(--paper-000);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { background: var(--ink-700); }

.nav-toggle-lines {
  position: relative;
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle-lines::before { top: -5px; }
.nav-toggle-lines::after { top: 5px; }

.nav-toggle-text { letter-spacing: .1em; }

/* ---------- 07 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .62rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: inherit;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--mint-500); outline-offset: 2px; }

.btn-mint { background: var(--mint-500); color: var(--ink-900); }
.btn-mint:hover { background: var(--mint-600); color: var(--ink-900); }

.btn-ghost {
  border-color: rgba(251, 249, 244, .3);
  color: rgba(251, 249, 244, .9);
}
.btn-ghost:hover { border-color: var(--mint-500); color: var(--paper-000); }

.btn-outline {
  border-color: var(--ink-900);
  color: var(--ink-900);
}
.btn-outline:hover { background: var(--ink-900); color: var(--paper-000); }

.btn-block { width: 100%; }
.btn-compact { padding: .42rem .85rem; font-size: .78rem; }

/* ---------- 08 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink-900);
  color: rgba(251, 249, 244, .8);
  border-top: 3px solid var(--mint-500);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 300px at 92% 0%, rgba(47, 211, 164, .14), transparent 68%),
    radial-gradient(520px 260px at 4% 100%, rgba(255, 90, 60, .09), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 88px);
}

.footer-inner {
  position: relative;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 60px) clamp(20px, 4vw, 48px) 26px;
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(251, 249, 244, .16);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper-000);
  text-decoration: none;
}
.footer-brand .brand-glyph { width: 34px; height: 34px; border-radius: 10px; }
.footer-brand .brand-glyph::before { inset: 9px 5px; }
.footer-brand .brand-glyph::after { top: 6px; bottom: 6px; }
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.footer-tagline {
  max-width: 30ch;
  font-size: .78rem;
  line-height: 1.7;
  letter-spacing: .06em;
  color: rgba(251, 249, 244, .58);
  text-align: right;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(251, 249, 244, .16);
}

.footer-col {
  min-width: 0;
  padding: 24px 22px 26px 0;
}
.footer-col + .footer-col {
  border-left: 1px solid rgba(251, 249, 244, .16);
  padding-left: 22px;
}

.footer-title {
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--mint-500);
}

.footer-links { display: flex; flex-direction: column; gap: 1px; }
.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: .86rem;
  color: rgba(251, 249, 244, .76);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.footer-links a:hover {
  color: var(--paper-000);
  border-bottom-color: var(--mint-500);
  transform: translateX(2px);
}
.footer-links a:focus-visible { outline: 2px solid var(--mint-500); outline-offset: 2px; }

.footer-palette {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}
.footer-palette span {
  display: block;
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: rgba(251, 249, 244, .18);
}
.footer-palette span:nth-child(1) { background: var(--mint-500); flex: 4; }
.footer-palette span:nth-child(2) { background: var(--amber-400); flex: 2; }
.footer-palette span:nth-child(3) { background: var(--coral-500); flex: 1; }
.footer-palette span:nth-child(4) { background: var(--ink-700); flex: 3; }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 18px;
  font-size: .76rem;
  line-height: 1.8;
  color: rgba(251, 249, 244, .55);
}
.footer-legal strong { color: rgba(251, 249, 244, .86); font-weight: 600; }
.footer-legal a {
  color: var(--mint-500);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 211, 164, .4);
}
.footer-legal a:hover { color: var(--paper-000); border-bottom-color: var(--paper-000); }

/* ---------- 09 容器 / 面包屑 / 网格 ---------- */
.page-container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 40px);
}
.page-container--wide { max-width: 1480px; }

.breadcrumb { margin-bottom: 22px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--slate-500);
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin: 0 9px;
  color: var(--line-200);
}
.breadcrumb a {
  padding-bottom: 1px;
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--line-200);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.breadcrumb a:hover { color: var(--mint-600); border-bottom-color: var(--mint-500); }
.breadcrumb [aria-current="page"] { color: var(--slate-500); }

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-8 { grid-column: span 8; }

/* ---------- 10 纸张面板 / 标签 / 数据锚点 ---------- */
.surface {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper-100);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-stack);
}
.surface--mint { background: var(--mint-050); border-color: rgba(47, 211, 164, .35); }
.surface--ink {
  background: var(--ink-900);
  border-color: rgba(255, 255, 255, .1);
  color: rgba(251, 249, 244, .86);
}
.surface--ink h1, .surface--ink h2, .surface--ink h3 { color: var(--paper-000); }
.surface--incised { background: var(--paper-000); box-shadow: none; }
.surface--raised { box-shadow: var(--shadow-raised); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-200);
  border-radius: 999px;
  background: var(--paper-100);
  color: var(--ink-700);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}
.tag--mint { background: var(--mint-050); border-color: rgba(47, 211, 164, .5); color: #0B6B52; }
.tag--coral { background: rgba(255, 90, 60, .1); border-color: rgba(255, 90, 60, .38); color: #C1371F; }
.tag--amber { background: rgba(255, 197, 61, .2); border-color: rgba(255, 197, 61, .62); color: #7A5700; }

.score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4em;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--amber-400);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.delta {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--coral-500);
}

.data-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--slate-500);
}

/* ---------- 11 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--mint-050), #DCE9F4);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.media > img,
.media > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background: repeating-linear-gradient(90deg, rgba(11, 31, 51, .06) 0 1px, transparent 1px 44px);
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media--night {
  background: linear-gradient(160deg, var(--night-800), var(--ink-700));
  border-color: rgba(47, 211, 164, .28);
}
.media--night::after {
  background: radial-gradient(62% 52% at 50% 0%, rgba(47, 211, 164, .3), transparent 70%);
  opacity: 1;
}
.media-caption {
  margin-top: 8px;
  font-size: .74rem;
  letter-spacing: .05em;
  color: var(--slate-500);
}
.media-frame {
  padding: 10px;
  background: var(--paper-100);
  border: 1px solid var(--line-200);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow-stack);
}

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

/* ---------- 13 断点 ---------- */
@media (max-width: 1279px) {
  :root { --rail-w: 240px; }
  .brand-line { max-width: 150px; }
}

@media (max-width: 1023px) {
  :root { --rail-w: 0px; --bar-h: 52px; }

  body { padding-left: 0; padding-top: var(--bar-h); }

  .skip-link { left: 10px; }

  .rail {
    width: min(86vw, 320px);
    transform: translateX(-102%);
    transition: transform .28s var(--ease);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 26px 0 60px -30px rgba(11, 31, 51, .95);
    padding-top: 20px;
  }
  .rail[data-open] { transform: translateX(0); }

  .rail-close { display: inline-flex; }

  .brand-line { max-width: 190px; }

  .stage-bar { left: 0; }

  .nav-toggle { display: inline-flex; }

  .footer-head { align-items: flex-start; }
  .footer-tagline { text-align: left; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col { padding: 20px 18px 22px 0; }
  .footer-col + .footer-col { border-left: none; padding-left: 0; }
  .footer-col:nth-child(even) {
    border-left: 1px solid rgba(251, 249, 244, .16);
    padding-left: 18px;
  }
  .footer-col:nth-child(n+3) { border-top: 1px solid rgba(251, 249, 244, .16); }
}

@media (max-width: 767px) {
  body { font-size: 15px; }

  .page-container { padding: 22px 16px 40px; }

  .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .col-span-4, .col-span-6, .col-span-8 { grid-column: span 12; }

  .account-line { gap: 12px; }
  .sync-text { display: none; }
}

@media (max-width: 520px) {
  :root { --bar-h: 50px; }

  .account-chip { display: none; }
  .nav-toggle-text { display: none; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-col,
  .footer-col:nth-child(even) {
    border-left: none;
    padding-left: 0;
  }
  .footer-col + .footer-col,
  .footer-col:nth-child(n+3) { border-top: 1px solid rgba(251, 249, 244, .16); }

  .brand-line { max-width: none; }
}

/* ---------- 14 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-property: opacity !important;
    transition-duration: .2s !important;
    transition-timing-function: var(--ease) !important;
  }

  html.js-ready [data-reveal] {
    transform: none !important;
    transition-delay: 0ms !important;
  }

  .sync-dot { animation: none; }

  .nav-link:hover,
  .footer-links a:hover,
  .skip-link { transform: none; }
}
