/* =========================================================
   site.css — 足彩网竞彩主页 共享样式
   1 设计令牌 / 2 重置与中文排版 / 3 无障碍与焦点
   4 头部 / 5 按钮 / 6 页脚 / 7 布局工具 / 8 内容组件
   9 动效与显现 / 10 响应式 / 11 降低动效
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --red: #D7263D;
  --red-deep: #A81B2E;
  --orange: #FF7A1A;
  --navy: #0B1F3A;
  --navy-soft: #12294A;
  --cyan: #17C3B2;
  --cream: #FFF8F0;
  --paper: #FFFFFF;
  --ink: #14171F;
  --slate: #5C6675;
  --line: #E5DED6;
  --green: #2E9E6B;
  --pink: #FBE3E5;

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --wrap-narrow: 760px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 78px;
  --radius: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 20px 44px -36px rgba(11, 31, 58, .55);
  --shadow-float: 0 26px 60px -30px rgba(11, 31, 58, .45);
}

/* ---------- 2. 重置与中文排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, .35vw + 15px, 17.5px);
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
h4 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }

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

ul, ol { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
hr { border: 0; }

a {
  color: inherit;
  text-decoration-color: rgba(215, 38, 61, .38);
  text-underline-offset: .22em;
}
a:hover { text-decoration-color: var(--red); }

::selection { background: var(--pink); color: var(--red-deep); }

/* ---------- 3. 无障碍与焦点 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: none; outline: 3px solid var(--cyan); outline-offset: 3px; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. 头部 ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 120;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background-color .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.site-header[data-scrolled="true"],
.site-header[data-open="true"] {
  background: var(--navy);
  color: var(--cream);
  border-bottom-color: rgba(255, 248, 240, .14);
  box-shadow: 0 18px 44px -34px rgba(0, 0, 0, .85);
}
.site-header[data-header-invert="true"]:not([data-scrolled="true"]):not([data-open="true"]) {
  color: var(--cream);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 10px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--red), #B71C31);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 12px 22px -16px rgba(215, 38, 61, .95);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.03rem;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: .62rem;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .55;
}

/* 导航 */
.site-nav { display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 11px;
  border-radius: 9px;
  color: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  opacity: .85;
  transition: color .2s var(--ease), opacity .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { opacity: 1; color: var(--red); }
.site-header[data-scrolled="true"] .nav-link:hover,
.site-header[data-open="true"] .nav-link:hover { color: var(--orange); }
.nav-index {
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .12em;
  opacity: .45;
  transform: translateY(-1px);
}
.nav-link[aria-current="page"] { opacity: 1; }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}
.nav-link[aria-current="page"] .nav-index { color: var(--red); opacity: 1; }
.site-header[data-scrolled="true"] .nav-link[aria-current="page"] .nav-index,
.site-header[data-open="true"] .nav-link[aria-current="page"] .nav-index { color: var(--orange); }

.nav-foot { display: none; }
.nav-foot-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: rgba(255, 248, 240, .55);
}
.nav-foot-cta { justify-self: start; }

/* 头部右侧 */
.header-meta { display: flex; align-items: center; gap: 12px; justify-self: end; }
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(20, 23, 31, .14);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  white-space: nowrap;
  opacity: .82;
}
.site-header[data-scrolled="true"] .header-status,
.site-header[data-open="true"] .header-status { border-color: rgba(255, 248, 240, .22); }
.status-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 158, 107, .18);
  animation: status-pulse 3.2s var(--ease) infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 158, 107, .18); }
  50% { box-shadow: 0 0 0 6px rgba(46, 158, 107, .05); }
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 23, 31, .16);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.site-header[data-scrolled="true"] .nav-toggle,
.site-header[data-open="true"] .nav-toggle { border-color: rgba(255, 248, 240, .24); }
.nav-toggle:hover { border-color: var(--red); color: var(--red); }
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 16px;
  height: 12px;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.nav-toggle-label { font-size: .8rem; font-weight: 700; line-height: 1; letter-spacing: .02em; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s var(--ease), background-color .22s var(--ease),
              color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 26px -18px rgba(215, 38, 61, .95);
}
.btn-primary:hover {
  background: #BE1F34;
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -18px rgba(215, 38, 61, .95);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20, 23, 31, .2);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-quiet {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn-quiet:hover { border-color: var(--cyan); color: #0E7C72; }
.btn--sm { padding: 10px 16px; font-size: .84rem; }
.header-cta { padding: 11px 18px; font-size: .85rem; }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 248, 240, .78);
  border-top: 2px solid var(--red);
  padding-block: clamp(40px, 5vw, 72px) 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -46%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 122, 26, .16), transparent 65%);
  pointer-events: none;
}
.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.footer-brand { display: grid; gap: 14px; align-content: start; max-width: 34ch; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
}
.footer-logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.footer-tagline { margin: 0; font-size: .9rem; line-height: 1.75; color: rgba(255, 248, 240, .66); }
.footer-edition {
  margin: 0;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, .42);
}
.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, .5);
}
.footer-col-title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--orange);
}
.footer-list { list-style: none; display: grid; gap: 9px; }
.footer-link {
  display: inline-block;
  color: rgba(255, 248, 240, .8);
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-link:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.footer-note {
  margin: 14px 0 0;
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(255, 248, 240, .5);
}
.footer-contact { font-style: normal; display: grid; gap: 10px; font-size: .9rem; }
.contact-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.contact-key {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 248, 240, .42);
}
.contact-value { color: rgba(255, 248, 240, .86); overflow-wrap: anywhere; }
.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(255, 248, 240, .14);
}
.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(255, 248, 240, .46);
}
.footer-legal--end { color: rgba(255, 248, 240, .34); }

/* ---------- 7. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--wide { max-width: 1440px; }

.section { padding-block: clamp(44px, 6.5vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--cream); }
.section--paper { background: var(--paper); }
.section--pink { background: var(--pink); }
.header-offset { padding-block-start: calc(var(--header-h) + clamp(28px, 5vw, 64px)); }

.grid { display: grid; gap: clamp(14px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 52px);
  align-items: start;
}
.split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.rail-inner {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  display: grid;
  gap: 16px;
}

/* ---------- 8. 内容组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  background: var(--red);
}
.section--navy .eyebrow { color: var(--orange); }
.section--navy .eyebrow::before { background: var(--orange); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  color: var(--slate);
}
.section--navy .lede { color: rgba(255, 248, 240, .72); }
.muted { color: var(--slate); }

.hairline { height: 1px; margin: 0; background: var(--line); }
.rule-accent {
  height: 2px;
  margin: 0;
  background: linear-gradient(90deg, var(--red), var(--orange) 55%, rgba(255, 122, 26, 0));
}

.card {
  position: relative;
  display: block;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
a.card:hover,
a.card:focus-visible,
button.card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 38, 61, .45);
  box-shadow: var(--shadow-float);
}
.card-index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--red);
}
.card-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.4;
}
.card-text { margin: 0; font-size: .92rem; line-height: 1.7; color: var(--slate); }

.panel {
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.panel--navy {
  background: var(--navy);
  border-color: rgba(255, 248, 240, .14);
  color: var(--cream);
}
.panel--navy h3,
.panel--navy h4 { color: var(--cream); }
.panel--navy .card-text,
.panel--navy .lede { color: rgba(255, 248, 240, .74); }
.panel--accent { border-left: 3px solid var(--red); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  line-height: 1.5;
}
.tag--red { background: var(--pink); border-color: transparent; color: var(--red-deep); }
.tag--green { background: #E6F5EE; border-color: transparent; color: #1E7A50; }
.tag--cyan { background: #E4F7F5; border-color: transparent; color: #0E7C72; }

.steps { list-style: none; display: grid; }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--pink);
  color: var(--red-deep);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
}
.step-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.step-text { margin: 0; font-size: .9rem; line-height: 1.7; color: var(--slate); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--slate);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: rgba(92, 102, 117, .5); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.section--navy .crumbs a,
.section--navy .crumbs [aria-current="page"] { color: rgba(255, 248, 240, .8); }

.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 12% 8%, rgba(23, 195, 178, .18), transparent 55%),
    radial-gradient(100% 100% at 88% 92%, rgba(255, 122, 26, .2), transparent 60%),
    linear-gradient(140deg, #F4EDE5, #FFF8F0 60%, #FBE3E5);
}
.media img,
.media video { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 16 / 7; }
.media--landscape { aspect-ratio: 4 / 3; }
.media--square { aspect-ratio: 1 / 1; }
.media--device {
  max-width: 300px;
  aspect-ratio: 9 / 18;
  border: 6px solid var(--ink);
  border-radius: 26px;
  box-shadow: var(--shadow-float);
}
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--slate);
}

/* ---------- 9. 动效与显现 ---------- */
html.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
html.has-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1180px) {
  .header-status { display: none; }
}

@media (max-width: 1023px) {
  :root { --header-h: 64px; }

  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .header-meta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 26px;
    background: var(--navy);
    color: var(--cream);
    border-top: 1px solid rgba(255, 248, 240, .14);
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s var(--ease);
  }
  .site-nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }

  .nav-list { display: block; }
  .nav-item { border-top: 1px solid rgba(255, 248, 240, .1); }
  .nav-item:first-child { border-top: 0; }
  .nav-link {
    display: flex;
    width: 100%;
    align-items: baseline;
    gap: 10px;
    padding: 15px 10px;
    border-radius: 10px;
    font-size: 1.02rem;
    opacity: .92;
  }
  .nav-link[aria-current="page"] { background: rgba(215, 38, 61, .18); color: #fff; }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link[aria-current="page"] .nav-index { color: var(--orange); }
  .nav-index { font-size: .66rem; }

  .nav-foot {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 248, 240, .14);
  }
}

@media (max-width: 960px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split,
  .split--reverse { grid-template-columns: minmax(0, 1fr); }
  .rail-inner { position: static; top: auto; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-line { grid-template-columns: 30px minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand-name { font-size: .98rem; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
}

/* ---------- 11. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.has-reveal [data-reveal],
  html.has-reveal [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}
