/* ============================================================
   模拟器试玩站 · 共享站点样式  /assets/site.css
   轨道 + 主轴 + 错位块 三层构图 / 科技蓝 + 活力橙双色体系
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --blue: #0A6CFF;
  --blue-deep: #0B3E8C;
  --blue-mist: #E6F0FF;
  --orange: #FF6B35;
  --orange-dark: #E85A25;
  --orange-mist: #FFE3D8;
  --ink: #10151C;
  --graphite: #46505C;
  --paper: #F7F9FC;
  --line: #C9D2DE;
  --teal: #12B5A6;

  --rail-w: 112px;
  --topbar-h: 60px;
  --shell: 1180px;
  --gutter: 32px;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-soft: 0 18px 44px rgba(16, 21, 28, .10);

  --z-rail: 60;
  --z-skip: 200;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(11, 62, 140, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 62, 140, .035) 1px, transparent 1px);
  background-size: 68px 68px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
select,
textarea { font-family: var(--font-sans); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: .01em;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 4.6vw, 58px); }
h2 { font-size: clamp(26px, 3vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .18s var(--ease);
}

a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

hr { border: 0; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.rail :focus-visible { outline: 2px solid #FFFFFF; outline-offset: 1px; }

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

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 10px);
  z-index: var(--z-skip);
  padding: 10px 18px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

.skip-link:hover { color: #FFFFFF; text-decoration: none; }
.skip-link:focus { transform: translateY(0); color: #FFFFFF; }

/* ---------- 4. 头部 · 左侧品牌轨道 ---------- */
.site-header {
  position: relative;
  z-index: var(--z-rail);
}

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-rail);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: var(--rail-w);
  padding: 22px 0 18px;
  background: var(--blue-deep);
  border-right: 1px solid rgba(255, 255, 255, .14);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 96px;
  background: var(--orange);
}

.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
}

.rail-brand:hover { color: #FFFFFF; text-decoration: none; }

.rail-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background-color .2s var(--ease);
}

.rail-brand:hover .rail-brand-mark { background: var(--orange); }

.rail-brand-name {
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .03em;
}

.rail-brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .58);
}

.nav-toggle { display: none; }

.rail-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.site-nav { display: block; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item { margin: 0; }

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 6px;
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(255, 255, 255, .13);
  border-left-color: var(--orange);
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  opacity: .68;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}

.nav-link[aria-current="page"] .nav-num { color: var(--orange); opacity: 1; }

.nav-text {
  font-size: 12.5px;
  line-height: 1.25;
  letter-spacing: .02em;
}

.rail-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding: 14px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.rail-cta {
  display: block;
  padding: 8px 4px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.rail-cta:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #FFFFFF;
  text-decoration: none;
}

.rail-cta--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .42);
  color: #FFFFFF;
}

.rail-cta--ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.rail-meter {
  height: 4px;
  margin-top: 6px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}

.rail-meter-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width .14s linear;
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.45;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .62);
}

.rail-dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .22);
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  margin-top: 80px;
  background: var(--ink);
  border-top: 3px solid var(--blue);
  color: rgba(255, 255, 255, .78);
}

.footer-frame {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer-col { min-width: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

.footer-brand:hover { color: #FFFFFF; text-decoration: none; }

.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.footer-tagline {
  max-width: 30ch;
  margin: 16px 0 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .6);
}

.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .42);
}

.footer-title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--orange);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  text-decoration: none;
}

.footer-list a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-list--meta { gap: 8px; }

.footer-list--meta li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
}

.footer-key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
}

.footer-val {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: #FFFFFF;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
}

.footer-contact {
  margin: 0;
  font-size: 12.5px;
  line-height: 2;
  color: rgba(255, 255, 255, .55);
}

.footer-mono {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, .84);
}

.footer-sep { margin: 0 4px; color: rgba(255, 255, 255, .24); }

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .42);
}

/* ---------- 6. 布局骨架 ---------- */
main { display: block; }

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

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(36px, 5vw, 60px) 0; }

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

/* ---------- 7. 章节引导组 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  background: var(--orange);
}

.section-title { margin: 0 0 14px; }

.section-lead {
  max-width: 62ch;
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--graphite);
}

.lead { font-size: 17px; line-height: 1.8; color: var(--graphite); }
.muted { color: var(--graphite); }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- 8. 面包屑 ---------- */
.breadcrumb { padding: 24px 0 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--graphite);
}

.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before { content: "/"; color: var(--line); }
.breadcrumb-list a { color: var(--graphite); }
.breadcrumb-list a:hover { color: var(--blue); }
.breadcrumb-list [aria-current="page"] { color: var(--blue-deep); font-weight: 500; }

/* ---------- 9. 网格 ---------- */
.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)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 10. 卡片 ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.card--orange { border-top-color: var(--orange); }
.card--teal { border-top-color: var(--teal); }

.card--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: rgba(255, 255, 255, .78);
}

.card--ink .card-title { color: #FFFFFF; }

.card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite);
}

.card--ink .card-text { color: rgba(255, 255, 255, .7); }

/* ---------- 11. 图片 / 图形容器 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--blue-mist) 0%, #FFFFFF 52%, var(--orange-mist) 100%);
  border: 1px solid var(--line);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 62, 140, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 62, 140, .07) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

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

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(10, 108, 255, .3);
  background: var(--blue-mist);
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  white-space: nowrap;
}

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

.tag--teal {
  border-color: rgba(18, 181, 166, .38);
  background: rgba(18, 181, 166, .12);
  color: #0A6E65;
}

/* ---------- 13. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.btn:hover { text-decoration: none; }

.btn--orange { background: var(--orange); border-color: var(--orange); color: #FFFFFF; }
.btn--orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #FFFFFF; }

.btn--blue { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.btn--blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #FFFFFF; }

.btn--ghost { background: transparent; border-color: var(--blue); color: var(--blue-deep); }
.btn--ghost:hover { background: var(--blue-mist); color: var(--blue-deep); }

.btn--ink { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn--ink:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #FFFFFF; }

/* ---------- 14. 形状工具 ---------- */
.diag-block {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 72px), 0 100%);
}

.corner-cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), calc(100% - 56px) 100%, 0 100%);
}

/* ---------- 15. 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

html.js [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 平板 ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--meta { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 17. 小屏 · 轨道折叠为顶部细条 ---------- */
@media (max-width: 960px) {
  body {
    padding-left: 0;
    padding-top: var(--topbar-h);
  }

  .skip-link { left: 12px; }

  .rail {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--topbar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    overflow: visible;
  }

  .rail::before { display: none; }

  .rail-brand {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 0;
    text-align: left;
  }

  .rail-brand-mark { width: 34px; height: 34px; font-size: 12px; }
  .rail-brand-name { font-size: 13.5px; }
  .rail-brand-sub { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .42);
    color: #FFFFFF;
    font-size: 13px;
    letter-spacing: .06em;
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
  }

  .nav-toggle:hover { background: rgba(255, 255, 255, .12); }

  .nav-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, .16);
    border-color: #FFFFFF;
  }

  .nav-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 16px;
  }

  .nav-toggle-icon i {
    display: block;
    height: 2px;
    background: currentColor;
  }

  .rail-panel {
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    gap: 18px;
    max-height: calc(100vh - var(--topbar-h));
    padding: 18px 16px 22px;
    overflow-y: auto;
    background: #FFFFFF;
    border-bottom: 3px solid var(--blue);
    box-shadow: 0 22px 40px rgba(16, 21, 28, .18);
  }

  .rail-panel[data-open] { display: flex; }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .nav-link {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
  }

  .nav-link:hover {
    background: var(--blue-mist);
    color: var(--blue-deep);
  }

  .nav-link[aria-current="page"] {
    background: var(--blue-mist);
    color: var(--blue-deep);
    border-left-color: var(--orange);
  }

  .nav-num { font-size: 11px; color: var(--blue); opacity: 1; }
  .nav-text { font-size: 14px; }

  .rail-foot {
    gap: 10px;
    margin-top: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
  }

  .rail-cta { padding: 12px 8px; font-size: 13.5px; }

  .rail-cta--ghost {
    border-color: var(--blue);
    color: var(--blue-deep);
  }

  .rail-cta--ghost:hover {
    background: var(--blue-mist);
    border-color: var(--blue);
    color: var(--blue-deep);
  }

  .rail-meter { background: var(--line); }

  .rail-status {
    font-size: 11px;
    color: var(--graphite);
  }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-col--meta { grid-column: auto; }
  .footer-frame { padding: 44px 20px 24px; }
  .footer-base { flex-direction: column; align-items: flex-start; }

  .wrap { padding: 0 20px; }
  .site-footer { margin-top: 56px; }
}

/* ---------- 18. 手机 ---------- */
@media (max-width: 600px) {
  body { font-size: 15.5px; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-link { padding: 11px 10px; }
  .nav-text { font-size: 13px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-base { padding-top: 18px; }
  .footer-contact .footer-sep { display: none; }
  .footer-contact { line-height: 2.1; }

  .card { padding: 20px; }
  .section { padding: 52px 0; }
}

/* ---------- 19. 减少动效 ---------- */
@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.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
