/* =========================================================
   9393网页指南 · 共享样式 /assets/site.css
   深靛蓝基底 + 信号橙强调 + 青瓷绿状态；切角与斜线语言
   ========================================================= */

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--black);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:where(p, h1, h2, h3, h4, h5, h6, figure, blockquote) { margin: 0; }
:where(ul, ol) { margin: 0; padding: 0; list-style: none; }

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

a { color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #1B2A4A;
  --ink-deep: #101B33;
  --orange: #FF6B35;
  --orange-soft: #FFB59B;
  --jade: #2EC4B6;
  --jade-deep: #1E8C82;
  --mist: #F5F7FA;
  --paper: #FFFFFF;
  --black: #0E1524;
  --grey: #6B7A90;

  --rule-light: rgba(255, 255, 255, .14);
  --rule-ink: rgba(14, 21, 36, .12);
  --tint-jade: rgba(46, 196, 182, .12);
  --tint-orange: rgba(255, 107, 53, .12);

  --f-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-num: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Roboto Mono", monospace;

  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .3, 1);
  --cut: 18px;
}

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--ink);
}

p { line-height: 1.85; }

strong, b { font-weight: 800; }

::selection {
  background: var(--orange);
  color: #fff;
}

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

/* ---------- 4. 容器与栅格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--tight { max-width: 820px; }
.shell--wide { max-width: 1360px; }

.grid { display: grid; gap: clamp(20px, 3vw, 42px); }

@media (min-width: 900px) {
  .grid--7-5 { grid-template-columns: 7fr 5fr; }
  .grid--8-4 { grid-template-columns: 8fr 4fr; }
  .grid--5-3-4 { grid-template-columns: 5fr 3fr 4fr; }
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
    border-color .2s var(--ease);
}

.btn--solid {
  background: var(--orange);
  color: #fff;
}
.btn--solid:hover {
  background: var(--orange-soft);
  color: var(--ink-deep);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}
.btn--ghost:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.btn--quiet {
  background: transparent;
  border-color: rgba(27, 42, 74, .26);
  color: var(--ink);
}
.btn--quiet:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.5;
  color: var(--jade-deep);
  background: var(--tint-jade);
}

.tag--warm {
  color: #B23A0F;
  background: var(--tint-orange);
  border-color: rgba(255, 107, 53, .42);
}

.tag--jade {
  color: var(--jade-deep);
  background: var(--tint-jade);
  border-color: rgba(46, 196, 182, .46);
}

.tag--onDark {
  color: var(--jade);
  background: rgba(46, 196, 182, .14);
  border-color: rgba(46, 196, 182, .5);
}

/* ---------- 7. 卡片 ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule-ink);
  border-radius: 0 0 var(--cut) 0;
  padding: clamp(18px, 2.4vw, 30px);
  color: var(--black);
}

.card--cut {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px),
    calc(100% - 20px) 100%, 0 100%);
}

/* ---------- 8. 数字 ---------- */
.num {
  font-family: var(--f-num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--orange);
}

/* ---------- 9. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0 0 var(--cut) 0;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(46, 196, 182, .18), rgba(27, 42, 74, .14));
}

.media > img,
.media > video,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 32px 32px;
}

.media__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 27, 51, .86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

@media (max-width: 640px) {
  .media { aspect-ratio: 3 / 2; }
  .media--tall { aspect-ratio: 4 / 5; }
  .media--wide { aspect-ratio: 16 / 9; }
}

/* ---------- 10. 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--grey);
}

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

.crumb__item + .crumb__item::before {
  content: "/";
  color: rgba(107, 122, 144, .7);
}

.crumb a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(27, 42, 74, .22);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.crumb a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------- 11. 竖排 / 斜线注释 ---------- */
.note-v {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .24em;
  color: var(--jade-deep);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.note-tilt {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--orange);
  transform: rotate(-15deg);
}

/* ---------- 12. 滚动进入动效协议 ---------- */
.reveal {
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

.reveal--idle {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 右侧常驻刻度 dock ---------- */
.dock {
  position: fixed;
  right: clamp(10px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
}

@media (min-width: 1200px) {
  .dock { display: flex; }
}

.dock__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(16, 27, 51, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
    color .2s var(--ease);
}

.dock__link:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.dock__link--warm {
  background: var(--orange);
  border-color: var(--orange);
}

.dock__link--warm:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
  color: var(--ink-deep);
}

/* ---------- 14. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -70px;
  left: 14px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* =========================================================
   15. 头部 · 双层信息导航
   ========================================================= */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

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

/* 上层：品牌说明层 */
.masthead__strip {
  background: var(--ink-deep);
}

.masthead__inner--strip {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-height: 52px;
  padding-block: 7px;
}

.brandmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 0 auto;
}

.brandmark__name {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .01em;
  color: #fff;
}

.brandmark__tag {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--jade);
}

.masthead__notice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .74);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.masthead__notice-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, .22);
}

.quickrail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.quickrail__item { display: flex; }

.quickrail__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease),
    background-color .2s var(--ease);
}

.quickrail__link:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.quickrail__link--warm {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.quickrail__link--warm:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
  color: var(--ink-deep);
}

/* 下层：栏目导航层 */
.masthead__bar {
  background: var(--ink);
}

.masthead__inner--bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  min-height: 58px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
}

.nav-toggle__box {
  display: grid;
  gap: 4px;
  width: 20px;
}

.nav-toggle__bar {
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.primarynav { flex: 1 1 auto; }

.primarynav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.4vw, 20px);
}

.primarynav__item { display: flex; }

.primarynav__link {
  position: relative;
  display: inline-block;
  padding: 17px 4px 15px;
  color: rgba(255, 255, 255, .78);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.primarynav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s var(--ease);
}

.primarynav__link:hover { color: #fff; }
.primarynav__link:hover::after { transform: scaleX(1); }

.primarynav__link[aria-current="page"] { color: #fff; }
.primarynav__link[aria-current="page"]::after { transform: scaleX(1); }

.masthead__index {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .48);
}

.masthead__index-num {
  font-family: var(--f-num);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--orange);
}

.masthead__progress {
  height: 2px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.masthead__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--jade), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
}

/* =========================================================
   16. 页脚
   ========================================================= */
.sitefoot {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, .72);
  border-top: 3px solid var(--ink);
}

.sitefoot__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter) 28px;
}

.sitefoot__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 56px);
}

@media (min-width: 820px) {
  .sitefoot__top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  }
}

.sitefoot__name {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
}

.sitefoot__summary {
  margin-top: 12px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .68);
}

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

.sitefoot__badge {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .8);
}

.sitefoot__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.sitefoot__coltitle {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  color: #fff;
}

.sitefoot__coltitle::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 10px;
  background: var(--orange);
}

.sitefoot__list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sitefoot__link {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.sitefoot__link:hover {
  color: var(--orange-soft);
  border-color: currentColor;
}

.sitefoot__contact {
  display: grid;
  gap: 4px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
}

.sitefoot__contact-row {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .66);
  word-break: break-word;
}

.sitefoot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.sitefoot__legal,
.sitefoot__meta {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
}

/* =========================================================
   17. 响应式
   ========================================================= */
@media (max-width: 1023px) {
  .masthead__notice { display: none; }
  .brandmark { flex-wrap: wrap; gap: 2px 10px; }
}

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

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

  .primarynav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--ink-deep);
    border-top: 1px solid var(--rule-light);
    border-bottom-right-radius: var(--cut);
    box-shadow: 0 20px 44px rgba(6, 12, 24, .42);
    transition: max-height .24s var(--ease), visibility .24s var(--ease);
  }

  .primarynav[data-open] {
    max-height: min(72vh, 520px);
    overflow-y: auto;
    visibility: visible;
  }

  .primarynav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 14px;
  }

  .primarynav__link {
    display: block;
    padding: 15px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 16px;
    color: rgba(255, 255, 255, .82);
  }

  .primarynav__link::after { display: none; }

  .primarynav__link[aria-current="page"] {
    color: var(--orange);
    border-bottom-color: rgba(255, 107, 53, .5);
  }
}

@media (max-width: 860px) {
  .quickrail__link:not(.quickrail__link--warm) { display: none; }
}

@media (max-width: 560px) {
  .quickrail { display: none; }
  .brandmark__name { font-size: 16px; }
  .brandmark__tag { font-size: 11.5px; }
  .sitefoot__base { flex-direction: column; align-items: flex-start; }
}

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

  .reveal { transition: opacity .2s linear; }
  .reveal--idle { transform: none; }

  .masthead__progress-bar { transition: none; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms;
    animation-iteration-count: 1;
  }
}
