/* ============================================================
   博万官网 · 共享样式表  /assets/site.css
   设计语汇：堆叠画板 + 框景刻度 + 经幡点彩
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --white: #FFFFFF;
  --mist: #EEF2F7;
  --indigo: #14213D;
  --indigo-soft: #1D2F56;
  --ink: #0B0F1A;
  --grey: #6B7A90;
  --link: #2F6FB7;
  --saffron: #C1352B;
  --turquoise: #2A9D8F;
  --amber: #E0A526;
  --flame: #FF5A36;

  --line: rgba(20, 33, 61, 0.16);
  --line-strong: rgba(20, 33, 61, 0.38);
  --line-invert: rgba(255, 255, 255, 0.16);

  --shadow: 0 1px 2px rgba(20, 33, 61, 0.08);
  --shadow-stack: 0 22px 38px -30px rgba(20, 33, 61, 0.55);

  --radius: 6px;
  --radius-sm: 4px;

  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease-panel: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-footer :focus-visible { outline-color: var(--amber); }

.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;
}

.skip-link {
  position: absolute;
  top: 0; left: -9999px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--indigo);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* ---------- 3. 中文排版 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--saffron);
  flex: 0 0 auto;
}

.page-head { padding: clamp(30px, 4.6vw, 56px) 0 clamp(22px, 3.4vw, 40px); }
.page-head__title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page-head__lead {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--grey);
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.prose {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink);
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 1.8em;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 1.5em;
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; }

/* ---------- 4. 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main { display: block; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.col-main { grid-column: 1 / span 8; }
.col-note { grid-column: 10 / span 3; }

/* ---------- 5. 画板与组件 ---------- */
.panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.6vw, 34px);
}
.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(20px, 2.6vw, 34px);
  width: 46px;
  height: 2px;
  background: var(--saffron);
}
.panel--mist { background: var(--mist); }
.panel--flush { padding: 0; overflow: hidden; }

.rule-ticks {
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 8px);
}

.flagline {
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--saffron) 0 14px,
    var(--amber) 14px 28px,
    var(--turquoise) 28px 42px,
    var(--link) 42px 56px,
    var(--indigo) 56px 70px
  );
}

.index-badge {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--indigo);
}
.tag--saffron { border-color: rgba(193, 53, 43, 0.34); background: rgba(193, 53, 43, 0.06); color: var(--saffron); }
.tag--turquoise { border-color: rgba(42, 157, 143, 0.34); background: rgba(42, 157, 143, 0.07); color: #1F7A70; }
.tag--amber { border-color: rgba(224, 165, 38, 0.4); background: rgba(224, 165, 38, 0.1); color: #8C6410; }
.tag--indigo { border-color: rgba(20, 33, 61, 0.28); background: rgba(20, 33, 61, 0.05); color: var(--indigo); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--indigo);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--mist); text-decoration: none; }
.btn--primary {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}
.btn--primary:hover { background: var(--indigo-soft); border-color: var(--indigo-soft); }
.btn--ghost { background: transparent; }
.btn--quiet {
  border-color: var(--line);
  color: var(--grey);
  font-weight: 500;
}
.btn--quiet:hover { color: var(--indigo); }
.btn--accent {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--white);
}
.btn--accent:hover { background: #A82C23; border-color: #A82C23; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
}
.link-arrow::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform 0.18s var(--ease-panel);
}
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

.note-block {
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
}

.data-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-band__cell { background: var(--white); padding: 18px 20px; }
.data-band__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--indigo);
}
.data-band__label {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--grey);
}

.breadcrumbs {
  margin: clamp(18px, 2.6vw, 28px) 0 0;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";
  margin: 0 8px;
  color: rgba(20, 33, 61, 0.3);
}
.breadcrumbs__item a { color: var(--grey); text-decoration: none; }
.breadcrumbs__item a:hover { color: var(--link); text-decoration: underline; }
.breadcrumbs__item[aria-current="page"] { color: var(--indigo); }

/* ---------- 6. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  margin: 0;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.media-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media-frame--wide { aspect-ratio: 16 / 7; }
.media-frame--card { aspect-ratio: 4 / 3; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--empty {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(20, 33, 61, 0.07) 0 1px,
    transparent 1px 11px
  );
}
.media-frame__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--white);
  background: linear-gradient(transparent, rgba(11, 15, 26, 0.74));
}

/* ---------- 7. 命令栏页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  color: var(--indigo);
}

.progress-rail {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  z-index: 3;
  pointer-events: none;
}
.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--saffron), var(--flame), var(--amber));
}

.command-bar__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}
.brand__mark {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: var(--indigo);
  border-radius: 3px;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--saffron);
  border-radius: 1px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--indigo);
  text-decoration: none;
}
.brand__name:hover { text-decoration: none; color: var(--indigo); }
.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--grey);
}

.command-nav {
  flex: 0 1 auto;
  margin: 0 auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--indigo);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-link:hover { background: var(--mist); text-decoration: none; }
.nav-link__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey);
}
.nav-link[aria-current="page"],
.nav-link[data-section-active="true"] {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}
.nav-link[aria-current="page"]:hover,
.nav-link[data-section-active="true"]:hover { background: var(--indigo-soft); }
.nav-link[aria-current="page"] .nav-link__index,
.nav-link[data-section-active="true"] .nav-link__index { color: rgba(255, 255, 255, 0.72); }
.nav-link[aria-current="page"]::after,
.nav-link[data-section-active="true"]::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: -7px;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--indigo) 0 1px, transparent 1px 4px);
  opacity: 0.85;
  pointer-events: none;
}

.command-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--grey);
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--saffron);
  animation: bw-pulse 2.4s ease-out infinite;
}
@keyframes bw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 90, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 54, 0); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--indigo);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}
.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  background: var(--indigo);
  color: #E4EBF6;
}
.footer-flagline {
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--saffron) 0 14px,
    var(--amber) 14px 28px,
    var(--turquoise) 28px 42px,
    var(--link) 42px 56px,
    var(--white) 56px 70px
  );
}
.footer-grid {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(38px, 5.6vw, 68px) var(--gutter) clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: clamp(26px, 4vw, 56px);
}
.footer-brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}
.footer-brand__desc {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(228, 235, 246, 0.76);
}
.footer-brand__meta {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.footer-nav__title,
.footer-contact__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(228, 235, 246, 0.62);
}
.footer-nav__list { list-style: none; }
.footer-nav__list li + li { margin-top: 6px; }
.footer-nav__list a {
  font-size: 14.5px;
  color: #D3DDEE;
  text-decoration: none;
}
.footer-nav__list a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.footer-contact__list { list-style: none; }
.footer-contact__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 14px;
  line-height: 1.7;
}
.footer-contact__list li + li { margin-top: 8px; }
.footer-contact__label {
  flex: 0 0 62px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(228, 235, 246, 0.6);
}
.footer-contact__value { color: var(--white); word-break: break-all; }
.footer-contact__note {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(224, 165, 38, 0.55);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(228, 235, 246, 0.68);
}

.footer-legal {
  grid-column: 1 / -1;
  margin-top: clamp(10px, 2vw, 22px);
  padding-top: 20px;
  border-top: 1px solid var(--line-invert);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  list-style: none;
}
.footer-legal__links a {
  font-size: 13px;
  color: #C3D0E6;
  text-decoration: none;
}
.footer-legal__links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(228, 235, 246, 0.62);
}
.footer-legal__sep { color: rgba(228, 235, 246, 0.34); }

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link__index { display: none; }
}

@media (max-width: 1080px) {
  .status-chip__text { display: none; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; margin-left: 2px; }
  .command-bar__inner { min-height: 58px; }
  .command-meta { margin-left: auto; }
  .command-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 6px var(--gutter) 12px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 34px -30px rgba(20, 33, 61, 0.7);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .command-nav[data-open] { display: block; }
  .nav-list { width: max-content; gap: 6px; }
  .nav-link { padding: 9px 12px; font-size: 14px; }
  .nav-link[aria-current="page"]::after,
  .nav-link[data-section-active="true"]::after { bottom: 0; }
}

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-main, .col-note { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .brand__tag { display: none; }
  .command-meta .btn--quiet { display: none; }
  .btn { padding: 8px 12px; font-size: 13px; }
  .media-frame--wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact__label { flex-basis: 100%; }
  .footer-legal__meta { font-size: 12px; }
}

/* ---------- 10. 动效降级 ---------- */
@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;
  }
  .status-dot { animation: none; box-shadow: 0 0 0 3px rgba(193, 53, 43, 0.18); }
  .link-arrow:hover::after { transform: none; }
}
