/* ============================================================
   万利平台 / site.css
   框架式导航 · 非对称编辑部版式 · 路径可视化
   ============================================================ */

/* ---------- 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, li, figure, blockquote,
dl, dd, fieldset, legend { margin: 0; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; }

a { color: inherit; }

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #0E1B2A;
  --ink-2: #162B42;
  --mist: #EEF3F7;
  --paper: #FFFFFF;
  --text: #142333;
  --orange: #F26A3D;
  --amber: #FFB15A;
  --teal: #17A99A;
  --teal-deep: #0F7F75;
  --teal-soft: #A8E5DC;
  --line: #65788C;
  --focus: #FFD166;

  --muted: #5A6C7E;
  --muted-soft: #8FA6BB;
  --on-dark: #C4D2DF;

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

  /* 形状 */
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;

  /* 节奏 */
  --header-offset: 112px;
  --rail-w: 236px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 3. 中文排版基础 ---------- */
body {
  min-height: 100vh;
  background: var(--mist);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: clamp(16px, 1.6vw, 18px); font-weight: 700; }

p { max-width: 70ch; }

strong { font-weight: 700; color: var(--ink); }

::selection {
  background: var(--teal-soft);
  color: var(--ink);
}

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

/* ---------- 4. 骨架元素 ---------- */
main { display: block; }

#main-content { scroll-margin-top: calc(var(--header-offset) + 12px); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 22px;
  background: var(--focus);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.section { padding: clamp(30px, 5vw, 72px) 0; }

.rule {
  height: 1px;
  border: 0;
  background: rgba(101, 120, 140, 0.3);
  margin: clamp(22px, 4vw, 44px) 0;
}

/* ---------- 5. 页眉：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(101, 120, 140, 0.42);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange), var(--teal));
  z-index: 2;
}

.header-frame {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px clamp(16px, 3vw, 40px);
  min-height: 72px;
}

/* 品牌锁形 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: rgba(23, 169, 154, 0.16);
  border: 1px solid rgba(168, 229, 220, 0.45);
}

.brand__node {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.brand__bar {
  display: block;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-soft);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.25; }

.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #FFFFFF;
}

.brand__note {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
}

.header__descriptor {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #8FA6BB;
  white-space: nowrap;
  max-width: none;
  padding-left: 14px;
  border-left: 1px solid rgba(101, 120, 140, 0.45);
}

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 16px;
  background: rgba(168, 229, 220, 0.1);
  border: 1px solid rgba(168, 229, 220, 0.34);
  border-radius: 999px;
  color: #EAF2F8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(168, 229, 220, 0.2); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label { letter-spacing: 0.08em; }

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 24px);
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 14px);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 10px 11px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #C9D6E2;
  text-decoration: none;
  border-radius: var(--radius-s);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.nav__link:hover { color: #FFFFFF; }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(242, 106, 61, 0.14);
}
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--amber);
}
.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-50%);
}

.header__cta { flex: 0 0 auto; }

/* 页眉状态带 */
.header__utility {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px) 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #8FA6BB;
}

.header__pulse {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 169, 154, 0.18);
  flex: 0 0 auto;
}

.header__utility-text { max-width: none; font-family: var(--font-mono); }

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink);
  color: var(--on-dark);
  border-top: 3px solid var(--orange);
  padding-top: clamp(36px, 5vw, 64px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.footer__brand { min-width: 0; }

.footer__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  max-width: none;
}
.footer__name::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

.footer__summary {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #9FB3C6;
  max-width: 40ch;
}

.footer__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #7E93A8;
  max-width: none;
}

.footer__col { min-width: 0; }

.footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-soft);
  max-width: none;
}

.footer__list { display: flex; flex-direction: column; gap: 9px; }

.footer__item { line-height: 1.5; }

.footer__link {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--amber);
  border-bottom-color: rgba(255, 177, 90, 0.55);
}

.footer__contact-item {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-dark);
  word-break: break-word;
  max-width: 34ch;
}

.footer__contact-label {
  display: block;
  margin-bottom: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7E93A8;
}

.footer__note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #7E93A8;
  max-width: 32ch;
}

.footer__base {
  margin-top: clamp(28px, 4vw, 52px);
  background: var(--ink-2);
  border-top: 1px solid rgba(101, 120, 140, 0.32);
}

.footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 40px);
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #8FA6BB;
  max-width: none;
}

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--sm { padding: 10px 16px; font-size: 13px; }

.btn--accent { background: var(--orange); color: #FFFFFF; }
.btn--accent:hover { background: var(--amber); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(168, 229, 220, 0.5);
}
.btn--ghost:hover { background: rgba(168, 229, 220, 0.14); }

.btn--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--line:hover { background: var(--ink); color: var(--paper); }

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

/* ---------- 8. 文本与标记组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  flex: 0 0 auto;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(23, 169, 154, 0.12);
  border: 1px solid rgba(23, 169, 154, 0.28);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.tag--accent {
  background: rgba(242, 106, 61, 0.12);
  border-color: rgba(242, 106, 61, 0.3);
  color: #C2451C;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 169, 154, 0.35);
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

.breadcrumbs { padding: 0; }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.breadcrumbs__list li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs__list li + li::before {
  content: "/";
  color: #9AAAB9;
}
.breadcrumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease);
}
.breadcrumbs a:hover { border-bottom-color: currentColor; }

/* ---------- 9. 网格与页面骨架 ---------- */
.shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.shell__main { min-width: 0; }

.rail {
  min-width: 0;
  border-left: 2px solid rgba(101, 120, 140, 0.25);
  padding-left: 18px;
}

.rail__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  max-width: none;
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail__link {
  position: relative;
  display: block;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-s);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.rail__link::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 8px;
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
  transition: background 0.18s var(--ease), width 0.18s var(--ease);
}
.rail__link:hover { color: var(--ink); background: rgba(23, 169, 154, 0.08); }
.rail__link:hover::before { background: var(--teal); width: 12px; }
.rail__link.is-active,
.rail__link[aria-current] {
  color: var(--ink);
  font-weight: 700;
  background: rgba(242, 106, 61, 0.1);
}
.rail__link.is-active::before,
.rail__link[aria-current]::before {
  background: var(--orange);
  width: 14px;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
  grid-template-columns: 1fr;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- 10. 卡片与面板 ---------- */
.card {
  background: var(--paper);
  border: 1px solid rgba(101, 120, 140, 0.28);
  border-radius: var(--radius-m);
  padding: clamp(18px, 2.4vw, 30px);
}

.card h2, .card h3 { margin-bottom: 10px; }

.panel {
  background: var(--ink-2);
  color: var(--on-dark);
  border-radius: var(--radius-m);
  padding: clamp(20px, 2.8vw, 36px);
  border: 1px solid rgba(101, 120, 140, 0.4);
}
.panel h2, .panel h3 { color: #FFFFFF; }
.panel p { color: #B9CBDA; }

/* ---------- 11. 图片容器基础 ---------- */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-m);
  border: 1px solid rgba(101, 120, 140, 0.34);
  background:
    radial-gradient(120% 100% at 0% 0%, #1B3550 0%, #0E1B2A 62%);
  aspect-ratio: 16 / 10;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(168, 229, 220, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 229, 220, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
}

.img-frame > img,
.img-frame > svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 4 / 5; }

.img-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  max-width: none;
}

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

/* ---------- 13. 响应式：平板 ---------- */
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .shell {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
  }
  .rail {
    position: sticky;
    top: var(--header-offset);
  }
}

@media (min-width: 1080px) {
  .footer__grid {
    grid-template-columns: 1.6fr 0.8fr 0.8fr 0.9fr 1.15fr;
  }
  .footer__contact { grid-column: auto; }
}

/* ---------- 14. 响应式：导航断点 ---------- */
@media (max-width: 1079px) {
  .header__descriptor { display: none; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .header__cta { display: none; }
  .nav__link { font-size: 14px; padding: 9px 6px 11px; }
  .nav__link::after { left: 6px; right: 6px; }
}

@media (max-width: 899px) {
  :root { --header-offset: 96px; }

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

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
    padding: 14px clamp(16px, 4vw, 24px) 22px;
    background: var(--ink-2);
    border-top: 1px solid rgba(101, 120, 140, 0.5);
    border-bottom: 2px solid var(--orange);
    box-shadow: 0 26px 44px -26px rgba(0, 0, 0, 0.75);
    max-height: calc(100vh - var(--header-offset));
    overflow-y: auto;
  }

  .site-header[data-open] .nav { display: flex; }

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

  .nav__link {
    display: block;
    padding: 13px 12px;
    font-size: 16px;
    border-radius: var(--radius-s);
  }
  .nav__link::after {
    left: 12px;
    right: auto;
    width: 24px;
    bottom: 8px;
  }
  .nav__link[aria-current="page"]::before { left: 2px; }

  .header__cta {
    margin-top: 12px;
    align-self: flex-start;
    padding: 12px 20px;
    font-size: 14px;
  }

  .brand__note { font-size: 10px; }
  .header__utility { font-size: 11px; }
}

@media (max-width: 479px) {
  .brand__note { display: none; }
  .header__utility-text { letter-spacing: 0; }
  .footer__base-inner { flex-direction: column; align-items: flex-start; }
}

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

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

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}
