/* ============================================================
   多盈中心 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 页头 / 页脚 / 通用组件
   ============================================================ */

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

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

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

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

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

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

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

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

hr { border: 0; height: 1px; background: rgba(15, 43, 36, .14); }

/* ---------- 2. Design tokens ---------- */
:root {
  /* 墨绿 */
  --ink-900: #0F2B24;
  --ink-700: #1C4438;
  --ink-500: #2E6B55;
  /* 砂白 */
  --sand-50: #F7F3EA;
  --sand-200: #E8DFCE;
  --paper: #FFFDF8;
  /* 赭橙 */
  --clay-500: #C25A2B;
  --clay-700: #8F3A16;
  --clay-200: #F0C9A8;
  /* 状态 */
  --cyan-500: #2C7B8A;
  --cyan-100: #D6E9EC;
  --amber-500: #B88417;
  --amber-100: #F6E7C4;
  /* 文字 */
  --ink-black: #1A1A17;
  --mist-600: #6E6A60;

  /* 字体 */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  /* 尺寸 */
  --shell: 1180px;
  --gutter: 20px;
  --radius-card: 24px;
  --radius-sticker: 12px;
  --radius-pill: 999px;

  /* 线条与阴影 */
  --stroke: 1px solid rgba(15, 43, 36, .14);
  --stroke-soft: 1px solid rgba(15, 43, 36, .08);
  --shadow-card: 0 1px 0 rgba(15, 43, 36, .05), 0 22px 46px -34px rgba(15, 43, 36, .55);
  --shadow-sticker: 0 10px 20px -14px rgba(143, 58, 22, .9);

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 160ms;
}

/* ---------- 3. 中文排版与页面基底 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  color: var(--ink-black);
  background-color: var(--sand-50);
  background-image:
    radial-gradient(circle at 10% 12%, rgba(194, 90, 43, .055), transparent 44%),
    radial-gradient(circle at 92% 4%, rgba(44, 123, 138, .055), transparent 40%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.14;
  color: var(--ink-900);
  font-stretch: 87.5%;
}

h1 { font-size: clamp(34px, 6vw, 68px); }
h2 { font-size: clamp(26px, 4vw, 42px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 18px; font-weight: 500; letter-spacing: 0; }

p { max-width: 68ch; }

strong { font-weight: 600; }

::selection {
  background: var(--clay-200);
  color: var(--ink-900);
}

#main-content { scroll-margin-top: 132px; }

:focus-visible {
  outline: 2px solid var(--clay-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  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;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist-600);
}

.lede {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.85;
  color: var(--ink-700);
  max-width: 46ch;
}

.grid {
  display: grid;
  gap: 20px;
}

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

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--clay {
  background: var(--clay-500);
  color: #fff;
  border-color: var(--clay-500);
}
.btn--clay:hover { background: var(--clay-700); border-color: var(--clay-700); }

.btn--ink {
  background: var(--ink-900);
  color: var(--sand-50);
  border-color: var(--ink-900);
}
.btn--ink:hover { background: var(--ink-700); border-color: var(--ink-700); }

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: rgba(15, 43, 36, .3);
}
.btn--ghost:hover {
  background: rgba(15, 43, 36, .06);
  border-color: var(--ink-900);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------- 6. 卡片 / 贴纸 / 状态 / 胶囊 / 时间线 ---------- */
.card {
  background: var(--paper);
  border: var(--stroke);
  border-radius: var(--radius-card);
  padding: 26px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card--sunken {
  background: var(--sand-200);
  border-color: rgba(15, 43, 36, .1);
}

a.card:hover,
.card:hover {
  border-color: rgba(15, 43, 36, .32);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.sticker {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-sticker);
  background: var(--clay-500);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: var(--shadow-sticker);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  transform: rotate(-2deg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.sticker:hover,
.sticker:focus-visible {
  transform: rotate(0deg) translateY(-2px);
}

.sticker--status {
  background: var(--cyan-100);
  color: #14505C;
  border-color: rgba(44, 123, 138, .5);
  box-shadow: 0 10px 20px -16px rgba(44, 123, 138, .9);
}

.sticker--pending {
  background: var(--amber-100);
  color: #6E4D06;
  border-color: rgba(184, 132, 23, .5);
  box-shadow: 0 10px 20px -16px rgba(184, 132, 23, .9);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist-600);
  line-height: 1.5;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status--live { color: #14505C; }
.status--live .status__dot { background: var(--cyan-500); }

.status--wait { color: #6E4D06; }
.status--wait .status__dot { background: var(--amber-500); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 43, 36, .22);
  background: transparent;
  color: var(--ink-700);
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.chip:hover {
  border-color: var(--ink-900);
  background: rgba(15, 43, 36, .06);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist-600);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item a {
  color: var(--ink-500);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.breadcrumb__item a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--clay-500);
}

.breadcrumb__sep {
  color: rgba(15, 43, 36, .3);
}

/* ---------- 8. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(160deg, var(--sand-200), #EFE7D7 55%, #E3DAC7);
  aspect-ratio: 16 / 10;
  border: var(--stroke-soft);
}

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

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

.media__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 43, 36, .82);
  color: var(--sand-50);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.6;
}

/* ---------- 9. Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 11px 20px;
  border-radius: 0 0 14px 14px;
  background: var(--clay-500);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  box-shadow: var(--shadow-sticker);
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--sand-50);
  outline-offset: -4px;
}

/* ---------- 10. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--sand-50);
  border-bottom: 1px solid rgba(15, 43, 36, .16);
}

/* 10.1 上层：署名轨 */
.header-rail {
  background: var(--ink-900);
  color: var(--sand-50);
  background-image:
    radial-gradient(circle at 82% -30%, rgba(194, 90, 43, .28), transparent 58%),
    radial-gradient(circle at 8% 140%, rgba(44, 123, 138, .22), transparent 62%);
}

.header-rail__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__mark {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--clay-500) 8%, var(--amber-500) 92%);
  box-shadow: inset 0 0 0 1px rgba(247, 243, 234, .4);
  flex: none;
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 7px 6px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    180deg,
    rgba(247, 243, 234, .82) 0 1.5px,
    transparent 1.5px 4.5px
  );
  opacity: .9;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.25;
  color: var(--sand-50);
  white-space: nowrap;
}

.brand__line {
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.4;
  color: rgba(247, 243, 234, .6);
  white-space: nowrap;
}

/* 10.2 检索 */
.header-search {
  position: relative;
  min-width: 0;
  max-width: 420px;
  justify-self: center;
  width: 100%;
}

.header-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border: 1.5px solid rgba(247, 243, 234, .62);
  border-radius: 50%;
  pointer-events: none;
}

.header-search__icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(247, 243, 234, .62);
  transform: rotate(45deg);
}

.header-search__input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(247, 243, 234, .24);
  background: rgba(247, 243, 234, .08);
  color: var(--sand-50);
  font-size: 14px;
  line-height: 1.6;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.header-search__input::placeholder {
  color: rgba(247, 243, 234, .52);
}

.header-search__input:hover {
  border-color: rgba(247, 243, 234, .42);
}

.header-search__input:focus {
  background: rgba(247, 243, 234, .16);
  border-color: var(--clay-200);
  outline: 2px solid rgba(240, 201, 168, .55);
  outline-offset: 2px;
}

.header-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.header-search__note {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 90;
  padding: 11px 15px;
  border-radius: 14px;
  background: var(--ink-700);
  border: 1px solid rgba(247, 243, 234, .2);
  box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .8);
  color: var(--sand-50);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: .01em;
}

.header-search__note a {
  color: var(--clay-200);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.header-search__note a:hover { color: #fff; }

[data-search-note][hidden] { display: none; }

.header-search__note:not([hidden]) {
  animation: note-in 160ms var(--ease);
}

@keyframes note-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 10.3 快捷入口 */
.header-quick {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.header-quick__contact {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  max-width: none;
}

.header-quick__label {
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(247, 243, 234, .5);
}

.header-quick__value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0;
  color: var(--sand-50);
  white-space: nowrap;
}

.header-quick__link {
  display: inline-flex;
  align-items: center;
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(247, 243, 234, .32);
  background: rgba(247, 243, 234, .08);
  color: var(--sand-50);
  font-size: 13px;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.header-quick__link:hover {
  background: var(--clay-500);
  border-color: var(--clay-500);
  color: #fff;
}

/* 10.4 移动抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(247, 243, 234, .34);
  background: transparent;
  color: var(--sand-50);
  font-size: 13px;
  letter-spacing: .06em;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-toggle:hover {
  background: rgba(247, 243, 234, .14);
  border-color: rgba(247, 243, 234, .6);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}

.nav-toggle__bars::before { top: 2px; }
.nav-toggle__bars::after { top: 8px; }

.site-header[data-open] .nav-toggle__bars::before {
  top: 5px;
  transform: rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars::after {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* 10.5 下层：索引轨 */
.nav-rail {
  background: var(--sand-200);
  border-bottom: 1px solid rgba(15, 43, 36, .12);
}

.nav-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 10px;
}

.site-nav {
  display: grid;
  grid-template-rows: 1fr;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 0;
}

.site-nav__item { display: flex; }

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 17px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.6;
  color: var(--ink-700);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.site-nav__link:hover {
  background: rgba(15, 43, 36, .08);
  border-color: rgba(15, 43, 36, .18);
  color: var(--ink-900);
}

.site-nav__link[aria-current="page"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--sand-50);
  font-weight: 500;
}

.site-nav__link[aria-current="page"]:hover {
  background: var(--ink-700);
  border-color: var(--ink-700);
  color: var(--sand-50);
}

.nav-rail__note {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist-600);
  white-space: nowrap;
  max-width: none;
}

.nav-rail__note .mono {
  color: var(--clay-700);
  letter-spacing: .02em;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 88px;
  background: var(--ink-900);
  color: rgba(247, 243, 234, .86);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--clay-500) 0%,
    var(--amber-500) 46%,
    var(--cyan-500) 100%
  );
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -200px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(247, 243, 234, .07) 0 1px,
    transparent 1px 22px
  );
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 44px 28px;
  padding-block: 66px 44px;
}

.footer__brand { grid-column: span 3; }

.footer__nav {
  grid-column: span 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer__contact { grid-column: span 3; }

.footer__mark {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.3;
  color: var(--sand-50);
  max-width: none;
}

.footer__signature {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--clay-200);
  max-width: none;
}

.footer__note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(247, 243, 234, .58);
  max-width: 26ch;
}

.footer__group { min-width: 0; }

.footer__group-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, .46);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  line-height: 1.7;
}

.footer__link {
  display: inline-block;
  color: rgba(247, 243, 234, .82);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: #fff;
  border-bottom-color: var(--clay-500);
}

.footer__list--plain { gap: 14px; font-size: 13px; }
.footer__list--plain li { display: block; }

.footer__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: rgba(247, 243, 234, .44);
  margin-bottom: 3px;
}

.footer__value {
  display: block;
  color: rgba(247, 243, 234, .9);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer__cta { margin-top: 20px; }

.footer__base {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(247, 243, 234, .14);
}

.footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 30px;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(247, 243, 234, .54);
}

.footer__legal {
  font-family: var(--font-mono);
  letter-spacing: .02em;
  max-width: none;
}

.footer__meta { max-width: none; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-quick__contact { display: none; }
  .nav-rail__note { display: none; }
}

@media (max-width: 1000px) {
  .footer__nav { grid-column: span 12; }
}

@media (max-width: 1000px) and (min-width: 641px) {
  .footer__brand { grid-column: span 5; }
  .footer__contact { grid-column: span 7; }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; }

  #main-content { scroll-margin-top: 148px; }

  .header-rail__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "search search"
      "quick quick";
    gap: 12px;
    padding-block: 12px;
  }

  .brand { grid-area: brand; }
  .nav-toggle { grid-area: toggle; display: inline-flex; }
  .header-search { grid-area: search; max-width: none; justify-self: stretch; }
  .header-quick { grid-area: quick; justify-content: space-between; gap: 12px; }

  .header-quick__contact {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
  }

  .header-quick__label { flex: none; }

  .header-quick__value {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-rail__inner { padding-block: 6px 10px; }

  .site-nav {
    grid-template-rows: 0fr;
    transition: grid-template-rows 200ms var(--ease);
    width: 100%;
  }

  .site-nav__list {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-block: 0;
  }

  .site-header[data-open] .site-nav { grid-template-rows: 1fr; }

  .site-header[data-open] .site-nav__list { padding-block: 8px; }

  .site-nav__link {
    width: 100%;
    border-radius: 14px;
    padding: 11px 15px;
    font-size: 15px;
  }

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

@media (max-width: 760px) {
  .footer__brand,
  .footer__nav,
  .footer__contact { grid-column: span 12; }

  .footer__inner { padding-block: 48px 34px; gap: 34px; }

  .site-footer { margin-top: 64px; }
}

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

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

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

  .card { padding: 20px; border-radius: 20px; }

  .brand__name { font-size: 15.5px; }
  .brand__line { font-size: 10px; letter-spacing: .12em; }

  .btn { width: auto; }
}

@media (max-width: 380px) {
  .header-quick { flex-wrap: wrap; }
  .header-search__input { font-size: 13px; }
}

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

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

  .sticker { transform: none; }
  .card:hover,
  a.card:hover { transform: none; }
  .site-nav { transition: none; }
}
