/* =========================================================
   优发国际址主站 · 共享样式 /assets/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, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
table { width: 100%; border-collapse: collapse; }
[id] { scroll-margin-top: 152px; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #101A3A;
  --ink-2: #1B2A5B;
  --ink-3: #2C3F79;
  --paper: #F4F6FB;
  --gold: #E8B53C;
  --gold-2: #F6D98A;
  --celadon: #4FA88A;
  --celadon-2: #8FCBB6;
  --steel: #8C99B8;
  --amber: #D97A3C;
  --glass: rgba(244, 246, 251, 0.08);
  --glass-2: rgba(244, 246, 251, 0.14);
  --line: rgba(140, 153, 184, 0.26);
  --line-soft: rgba(140, 153, 184, 0.16);
  --rail-w: 132px;
  --shell-max: 1180px;
  --radius: 3px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.24s;
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(79, 168, 138, 0.12), transparent 62%),
    radial-gradient(780px 520px at -10% 108%, rgba(232, 181, 60, 0.09), transparent 60%),
    repeating-linear-gradient(180deg, rgba(140, 153, 184, 0.05) 0 1px, transparent 1px 72px);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  word-break: break-word;
}
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.display { font-size: clamp(2rem, 6vw, 4rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.num, .card-meta, .contact-label, .section-note { font-variant-numeric: tabular-nums; }
.annot { font-size: 12px; letter-spacing: 0.32em; color: var(--steel); writing-mode: vertical-rl; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.is-filtered { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed; top: 0; left: -9999px; z-index: 200;
  padding: 10px 18px;
  background: var(--gold); color: var(--ink);
  font-weight: 800; font-size: 14px; letter-spacing: 0.08em;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus, .skip-link:focus-visible { left: 0; outline-offset: 0; }

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background-image: linear-gradient(180deg, #101A3A 0%, rgba(16, 26, 58, 0.97) 100%);
  border-bottom: 1px solid var(--line);
}
.header-progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
  background-image: linear-gradient(90deg, var(--gold), var(--celadon));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.12s linear;
}
.header-shell {
  max-width: var(--shell-max); margin: 0 auto;
  padding: 0.7rem clamp(16px, 3vw, 36px) 0;
}
.header-upper {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px clamp(12px, 2vw, 26px);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.brand-name { font-size: 1.06rem; font-weight: 800; letter-spacing: 0.05em; }
.brand-line { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--steel); }
.brand:hover .brand-name, .brand:focus-visible .brand-name { color: var(--gold-2); }
.brand-tagline {
  max-width: 24em; padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 13px; line-height: 1.6; color: var(--steel);
}
.header-utility { display: flex; gap: 6px; margin-left: auto; }
.utility-link {
  padding: 6px 10px; border: 1px solid transparent; border-radius: 2px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--steel);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.utility-link:hover, .utility-link:focus-visible, .utility-link[aria-current="page"] {
  color: var(--gold-2); border-color: rgba(246, 217, 138, 0.42);
}
.nav-toggle {
  display: none; align-items: center; gap: 10px; margin-left: auto;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 13px; letter-spacing: 0.12em; color: var(--paper);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-2); }
.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle-bars i {
  display: block; height: 2px; background: var(--gold);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: block; }
.nav-list { display: flex; flex-wrap: wrap; gap: clamp(4px, 1.4vw, 22px); }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 12px 2px; border-bottom: 2px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(244, 246, 251, 0.78);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--steel); }
.nav-link:hover { color: var(--paper); }
.nav-link:hover .nav-index { color: var(--gold-2); }
.nav-link[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav-link[aria-current="page"] .nav-index { color: var(--gold); }

/* ---------- 6. 品牌轨道（桌面） ---------- */
.brand-rail { display: none; }
.rail-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; height: 100%; }
.rail-mark { writing-mode: vertical-rl; font-size: 15px; font-weight: 800; letter-spacing: 0.42em; color: var(--paper); }
.rail-sub { writing-mode: vertical-rl; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--steel); }
.rail-ticks {
  width: 1px; height: 58px;
  background-image: repeating-linear-gradient(180deg, var(--ink-3) 0 1px, transparent 1px 9px);
}
.rail-progress { font-family: var(--font-mono); font-size: 22px; font-weight: 700; letter-spacing: 0.06em; color: var(--gold); }
.rail-progress-label { writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.28em; color: var(--steel); }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background-image: linear-gradient(180deg, rgba(27, 42, 91, 0.38) 0%, rgba(16, 26, 58, 0.94) 100%);
}
.footer-entry-bar { border-bottom: 1px solid var(--line); background: var(--glass); }
.entry-list {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: var(--shell-max); margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 36px);
}
.entry-item { position: relative; }
.entry-link {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 12px;
  border-left: 1px solid var(--line-soft);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.entry-item:last-child .entry-link { border-right: 1px solid var(--line-soft); }
.entry-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--steel); }
.entry-label { font-size: 14px; font-weight: 600; letter-spacing: 0.05em; }
.entry-link:hover { background: rgba(232, 181, 60, 0.08); color: var(--gold-2); }
.entry-link[aria-current="page"] { color: var(--gold); box-shadow: inset 0 2px 0 var(--gold); }
.footer-shell { max-width: var(--shell-max); margin: 0 auto; padding: clamp(28px, 5vw, 52px) clamp(16px, 3vw, 36px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); }
.footer-brand-name { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.06em; }
.footer-brand-note { margin-top: 10px; max-width: 30em; font-size: 14px; line-height: 1.75; color: var(--steel); }
.footer-brand .tag { margin-top: 16px; }
.footer-contact-title {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--gold);
}
.footer-contact-hint { font-size: 11.5px; letter-spacing: 0.08em; color: var(--steel); }
.contact-list { display: grid; gap: 10px; margin-top: 14px; }
.contact-item {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: baseline;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line-soft);
}
.contact-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--steel); }
.contact-value { font-size: 15px; color: var(--paper); word-break: break-word; }
.footer-legal {
  max-width: var(--shell-max); margin: 0 auto;
  padding: 18px clamp(16px, 3vw, 36px) 30px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--steel);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-link { border-bottom: 1px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.legal-link:hover, .legal-link:focus-visible { color: var(--gold-2); border-bottom-color: var(--gold-2); }
.footer-legal-line { color: var(--steel); }
.footer-copy { margin-left: auto; color: var(--steel); }

/* ---------- 8. 容器与网格 ---------- */
.shell { max-width: var(--shell-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 36px); }
.shell--narrow { max-width: 820px; }
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.section { padding-block: clamp(34px, 6vw, 70px); }
.section-head {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 22px;
  padding-bottom: 14px; margin-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.section-num {
  font-family: var(--font-mono); font-size: clamp(30px, 5vw, 54px);
  font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; color: var(--gold);
}
.section-title { font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: 0.02em; }
.section-note { margin-left: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--steel); }

/* ---------- 9. 框景与刻度 ---------- */
.frame {
  position: relative; padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass);
}
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold); }
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.tick-rule {
  height: 9px;
  background-image: repeating-linear-gradient(90deg, rgba(140, 153, 184, 0.55) 0 1px, transparent 1px 26px);
  background-position: left bottom; background-repeat: repeat-x; background-size: 26px 9px;
  border-bottom: 1px solid var(--line);
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: 2px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn--ghost { background: var(--glass); border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }

/* ---------- 11. 面包屑 ---------- */
.breadcrumb { margin-bottom: clamp(16px, 2.4vw, 26px); }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--steel); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 8px; color: var(--ink-3); }
.breadcrumb-item a:hover, .breadcrumb-item a:focus-visible { color: var(--gold-2); }
.breadcrumb-item[aria-current="page"] { color: var(--paper); }

/* ---------- 12. 卡片 ---------- */
.card {
  position: relative; padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: rgba(246, 217, 138, 0.45); }
.card--glass { background: var(--glass); }
.card--solid { background: var(--ink-2); }
.card-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.card-num { font-family: var(--font-mono); font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--gold); }
.card-title { font-size: 1.03rem; font-weight: 800; letter-spacing: 0.02em; }
.card-body { font-size: 14.5px; line-height: 1.75; color: rgba(244, 246, 251, 0.76); }
.card-meta { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--steel); }

/* ---------- 13. 状态标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--steel);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--active { color: var(--celadon); border-color: rgba(79, 168, 138, 0.6); background: rgba(79, 168, 138, 0.12); }
.tag--pending { color: var(--gold-2); border-color: rgba(246, 217, 138, 0.5); background: rgba(232, 181, 60, 0.1); }
.tag--warn { color: var(--amber); border-color: rgba(217, 122, 60, 0.55); background: rgba(217, 122, 60, 0.1); }

/* ---------- 14. 筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-btn {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--steel);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.filter-btn:hover { color: var(--paper); border-color: var(--steel); }
.filter-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- 15. 折叠面板 ---------- */
.disclosure { border-top: 1px solid var(--line); }
.disclosure summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 15px 2px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: "+"; font-family: var(--font-mono); font-size: 16px; color: var(--gold); }
.disclosure[open] summary::after { content: "–"; }
.disclosure[open] summary { color: var(--gold-2); }
.disclosure-body { padding: 0 2px 18px; font-size: 14.5px; line-height: 1.8; color: rgba(244, 246, 251, 0.76); }

/* ---------- 16. 长文排版 ---------- */
.prose { max-width: 68ch; font-size: 16.5px; line-height: 1.8; color: rgba(244, 246, 251, 0.86); }
.prose h2 { margin: 1.6em 0 0.6em; font-size: 1.35rem; letter-spacing: 0.02em; }
.prose h3 { margin: 1.4em 0 0.5em; font-size: 1.1rem; color: var(--gold-2); }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--paper); font-weight: 700; }
.prose a { color: var(--gold-2); border-bottom: 1px solid rgba(246, 217, 138, 0.4); }

/* ---------- 17. 图片容器 ---------- */
.media-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background-image: linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 100%);
  aspect-ratio: 16 / 10;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-caption { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--steel); }

/* ---------- 18. 进入视口 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 19. 断点 ---------- */
@media (min-width: 1080px) {
  body { padding-left: var(--rail-w); }
  .brand-rail {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 55;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid var(--line);
    background-image: linear-gradient(180deg, rgba(27, 42, 91, 0.55) 0%, rgba(16, 26, 58, 0.2) 100%);
  }
  :root { --shell-max: 1120px; }
}

@media (max-width: 1079px) {
  .header-shell { padding-top: 0.6rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .brand-tagline { display: none; }
  .site-nav { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
  .site-nav[data-open] { max-height: 460px; }
  .nav-list { flex-direction: column; gap: 0; padding: 6px 0 16px; }
  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .nav-link { width: 100%; padding: 14px 4px; border-bottom: 0; }
  .nav-link[aria-current="page"] { border-bottom: 0; }
  .grid--split, .grid--split-rev { grid-template-columns: minmax(0, 1fr); }
  .section-note { margin-left: 0; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .header-utility { width: 100%; margin-left: 0; padding-top: 4px; }
  .header-utility .utility-link { padding-left: 0; }
}

@media (max-width: 767px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .footer-entry-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    border-top: 1px solid var(--line); border-bottom: 0;
    background: rgba(16, 26, 58, 0.97);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .entry-list { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; }
  .entry-link { align-items: center; padding: 10px 4px; gap: 2px; border-left: 1px solid var(--line-soft); }
  .entry-item--desktop { display: none; }
  .entry-index { display: none; }
  .entry-label { font-size: 12px; letter-spacing: 0; }
  .entry-link[aria-current="page"] { box-shadow: inset 0 2px 0 var(--gold); }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-copy { margin-left: 0; }
  .contact-item { grid-template-columns: 78px minmax(0, 1fr); }
  .footer-shell { padding-top: 30px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 0.98rem; }
  .entry-label { font-size: 11px; }
}

/* ---------- 20. 无动效偏好 ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .header-progress { transition: none; }
}
