/* =========================================================
   超凡国际 · 共享样式 /assets/site.css
   侧边导览式骨架 · 近单色深蓝体系 · 12° 斜向光轨
   ========================================================= */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --abyss:       #061826;
  --deep:        #0B2338;
  --lift:        #123A57;
  --steel:       #2C4F6B;
  --signal:      #7FE3E8;
  --signal-dark: #1F7F8C;
  --flare:       #F08A3C;
  --mist:        #F5F8FA;
  --text:        #E8EEF2;
  --muted:       #9FB2BF;

  /* 结构 */
  --rail-w: 0px;
  --header-h: 100px;
  --pad: clamp(20px, 4vw, 64px);
  --maxw: 1360px;

  /* 字号阶梯 88 / 56 / 36 / 24 / 18 / 16 / 13 */
  --fs-1: clamp(40px, 6.4vw, 88px);
  --fs-2: clamp(30px, 4.2vw, 56px);
  --fs-3: clamp(24px, 2.6vw, 36px);
  --fs-4: clamp(20px, 1.9vw, 24px);
  --fs-5: 18px;
  --fs-6: 16px;
  --fs-7: 13px;

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

  --ease: cubic-bezier(.2, .6, .3, 1);
  --line-signal: 1px solid rgba(127, 227, 232, .22);
  --line-steel: 1px solid rgba(44, 79, 107, .7);
}

@media (min-width: 1180px) {
  :root { --rail-w: 88px; }
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-top: var(--header-h);
  background-color: var(--abyss);
  background-image: repeating-linear-gradient(
    102deg,
    rgba(127, 227, 232, .045) 0 1px,
    transparent 1px 190px
  );
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-6);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
}

p { max-width: 68ch; }

::selection { background: var(--signal); color: var(--abyss); }

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

/* ---------- 4. 通用工具 ---------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--signal);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--signal);
}

.h-display {
  font-family: var(--font-display);
  font-size: var(--fs-1);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.02;
}

.h-section {
  font-family: var(--font-display);
  font-size: var(--fs-2);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(232, 238, 242, .86);
}

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

.section { padding-block: clamp(40px, 6vw, 88px); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2, .grid--3 { grid-template-columns: 1fr; }

@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* 章节标题：编号 + 竖线 + 标题 */
.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: var(--line-signal);
  margin-bottom: clamp(20px, 3vw, 36px);
}

.sec-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--signal);
  line-height: 1;
  padding-right: 16px;
  border-right: 1px solid rgba(127, 227, 232, .35);
}

.sec-title {
  font-family: var(--font-display);
  font-size: var(--fs-3);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
}

/* 面包屑 */
ol.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}

.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li::after { content: "/"; color: var(--steel); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { transition: color .18s var(--ease); }
.crumbs a:hover { color: var(--signal); }

/* 图片容器 */
.figure {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(127, 227, 232, .2);
  border-radius: 2px;
  background: linear-gradient(135deg, var(--lift), var(--abyss));
  aspect-ratio: 16 / 9;
}

.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 3 / 4; }

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.06);
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(6, 24, 38, .58), rgba(6, 24, 38, .1) 62%);
  pointer-events: none;
}

.figure__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--signal);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  transition: background-color .18s var(--ease),
              color .18s var(--ease),
              border-color .18s var(--ease);
}

.btn--flare {
  background: var(--flare);
  border: 1px solid var(--flare);
  color: var(--abyss);
}
.btn--flare:hover { background: #ffa259; border-color: #ffa259; }
.btn--flare:active { background: #d9741f; border-color: #d9741f; }

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(127, 227, 232, .4);
  color: var(--signal);
}
.btn--ghost:hover { background: rgba(127, 227, 232, .12); border-color: var(--signal); }
.btn--ghost:active { background: var(--signal-dark); border-color: var(--signal-dark); color: var(--abyss); }

/* ---------- 6. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 2px;
  background: var(--signal);
  color: var(--abyss);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

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

/* ---------- 7. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 90;
  background: rgba(6, 24, 38, .97);
  border-bottom: 1px solid rgba(127, 227, 232, .18);
  transition: background-color .22s var(--ease), border-color .22s var(--ease);
}

.site-header[data-compact] {
  background: #040f18;
  border-bottom-color: rgba(127, 227, 232, .3);
}

/* 左侧品牌轨道 */
.brand-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 95;
  width: var(--rail-w);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 22px;
  background: linear-gradient(180deg, #04121d 0%, #061826 52%, #04121d 100%);
  border-right: 1px solid rgba(127, 227, 232, .16);
}

@media (min-width: 1180px) {
  .brand-rail { display: flex; }
}

.brand-rail__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(127, 227, 232, .35);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--signal);
}

.brand-rail__phrase {
  writing-mode: vertical-rl;
  padding-block: 22px;
  border-block: 1px solid rgba(44, 79, 107, .7);
  font-size: 11px;
  letter-spacing: .42em;
  color: var(--muted);
}

.brand-rail__track {
  position: relative;
  width: 1px;
  height: clamp(80px, 18vh, 180px);
  background: rgba(44, 79, 107, .85);
}

.brand-rail__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: linear-gradient(180deg, var(--signal), var(--flare));
  transform: scaleY(0);
  transform-origin: top center;
}

.brand-rail__coord {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(159, 178, 191, .62);
}

/* 头部主体 */
.header-body {
  margin-left: var(--rail-w);
  padding-inline: var(--pad);
}

/* 上层品牌说明条 */
.topbar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  height: 40px;
  overflow: hidden;
  border-bottom: 1px solid rgba(127, 227, 232, .12);
  font-size: var(--fs-7);
  color: var(--muted);
  transition: height .22s var(--ease), font-size .22s var(--ease);
}

.site-header[data-compact] .topbar {
  height: 26px;
  font-size: 11px;
}

.topbar__brand {
  max-width: none;
  color: var(--text);
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}

.topbar__scope {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--signal);
  white-space: nowrap;
}

.topbar__now {
  max-width: none;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}

.topbar__now .mono { color: var(--flare); }

.topbar__help {
  padding: 4px 10px;
  border: 1px solid rgba(127, 227, 232, .35);
  border-radius: 2px;
  color: var(--signal);
  font-size: 11px;
  letter-spacing: .14em;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}

.topbar__help:hover {
  background: rgba(127, 227, 232, .12);
  border-color: var(--signal);
}

/* 下层栏目轨道 */
.navrow {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  height: 60px;
}

.navrow__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
  white-space: nowrap;
}

.navrow__logo span {
  margin-left: 2px;
  font-weight: 500;
  color: var(--signal);
}

.nav {
  position: relative;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.nav__link {
  position: relative;
  display: block;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(232, 238, 242, .82);
  transition: color .18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--ease);
}

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

.nav__link[aria-current="page"] { color: var(--signal); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { display: none; }

/* 移动导航按钮 */
.navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(127, 227, 232, .35);
  border-radius: 2px;
  color: var(--signal);
  font-size: 12px;
  letter-spacing: .12em;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}

.navtoggle:hover { background: rgba(127, 227, 232, .12); border-color: var(--signal); }

.navtoggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: background-color .18s var(--ease);
}

.navtoggle__bars::before,
.navtoggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform .18s var(--ease);
}

.navtoggle__bars::before { top: -5px; }
.navtoggle__bars::after { top: 5px; }

.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(5px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 8. 头部响应式 ---------- */
@media (max-width: 1099px) {
  .nav__list { gap: 12px; }
  .nav__link { font-size: 13px; }
}

@media (max-width: 899px) {
  :root { --header-h: 100px; }

  .topbar__scope,
  .topbar__now { display: none; }

  .topbar__brand { font-size: 12px; }

  .navrow { height: 60px; }

  .navrow__cta { display: none; }
  .navtoggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-left: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 6px var(--pad) 20px;
    background: var(--deep);
    border-block: 1px solid rgba(127, 227, 232, .22);
  }

  .nav[data-open] { display: block; }

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

  .nav__list li {
    border-bottom: 1px solid rgba(44, 79, 107, .6);
  }

  .nav__link {
    padding: 14px 2px;
    font-size: 16px;
  }

  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--signal); }

  .nav__cta {
    display: inline-flex;
    margin-top: 18px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .navrow__logo { font-size: 16px; }
  .navtoggle__label { display: none; }
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 96px);
  background: var(--deep);
  border-top: 1px solid rgba(127, 227, 232, .2);
}

/* 资源矩阵（反相区） */
.res {
  padding-block: clamp(32px, 5vw, 64px);
  padding-inline: var(--pad);
  background: var(--mist);
  color: var(--deep);
}

.res__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid rgba(11, 35, 56, .16);
}

.res__title {
  font-family: var(--font-display);
  font-size: var(--fs-4);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--deep);
}

.res__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 6px 12px;
  border: 1px solid rgba(11, 35, 56, .2);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(11, 35, 56, .72);
  transition: background-color .18s var(--ease),
              color .18s var(--ease),
              border-color .18s var(--ease);
}

.chip:hover { border-color: var(--signal-dark); color: var(--deep); }

.chip[aria-pressed="true"] {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--mist);
}

.res__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
}

.res__card { min-width: 0; }
.res__card[hidden] { display: none; }

.res__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 152px;
  height: 100%;
  padding: 18px 18px 40px;
  background: #ffffff;
  border: 1px solid rgba(11, 35, 56, .14);
  border-radius: 2px;
  color: var(--deep);
  transition: border-color .18s var(--ease),
              transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.res__link:hover {
  border-color: var(--signal-dark);
  transform: translateX(2px);
  box-shadow: 2px 0 0 0 rgba(31, 127, 140, .35);
}

.res__tag {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--signal-dark);
  text-transform: uppercase;
}

.res__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.res__desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(11, 35, 56, .66);
  max-width: none;
}

.res__arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--flare);
  transition: transform .18s var(--ease);
}

.res__link:hover .res__arrow { transform: translateX(4px); }

/* 页脚主体 */
.foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 64px);
  padding-inline: var(--pad);
  border-top: 1px solid rgba(127, 227, 232, .14);
}

@media (min-width: 760px) {
  .foot { grid-template-columns: 1fr 1.9fr; }
}

@media (min-width: 1100px) {
  .foot { grid-template-columns: 1.1fr 2fr 1fr; }
}

.foot__logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
  transition: color .18s var(--ease);
}

.foot__logo:hover { color: var(--signal); }

.foot__tag {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--signal);
  max-width: none;
}

.foot__coord {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.9;
  color: var(--muted);
  max-width: none;
}

.foot__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
}

@media (min-width: 560px) {
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
}

.foot__col h3,
.foot__contact h3 {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--signal);
}

.foot__col li + li { margin-top: 8px; }

.foot__col a {
  font-size: 14px;
  color: rgba(232, 238, 242, .74);
  transition: color .18s var(--ease);
}

.foot__col a:hover { color: var(--signal); }

.foot__contact p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(232, 238, 242, .78);
  max-width: none;
}

.foot__contact .mono { color: var(--text); }

.foot__note {
  margin-top: 10px;
  font-size: 12px !important;
  line-height: 1.75 !important;
  color: var(--muted) !important;
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 16px var(--pad) 22px;
  border-top: var(--line-steel);
  font-size: 12px;
  color: var(--muted);
}

.foot__legal .mono { color: rgba(159, 178, 191, .9); letter-spacing: .06em; }

/* ---------- 10. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

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

/* ---------- 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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand-rail__fill { transition: none; }
}
