/* ============================================================
   澳六CN · 共享外壳样式表 /assets/site.css
   墨绿情报室 · 暗金展签 · 荧光青操作牵引
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink:        #0B1F1A;
  --ink-2:      #12302A;
  --gold:       #C9A227;
  --gold-soft:  #E3C766;
  --cyan:       #3BF0D0;
  --cyan-dim:   #1B8E7D;
  --paper:      #E8EFEC;
  --muted:      #9DB3AC;
  --line:       #2E4A43;
  --amber:      #D97A3B;
  --white:      #F5F7F4;

  --font-head: "Archivo Narrow", "Oswald", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "HarmonyOS Sans SC", -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num:  "Bahnschrift", "DIN Alternate", "Arial Narrow", "HarmonyOS Sans SC", "PingFang SC", sans-serif;

  --rail-w: 236px;
  --top-h: 64px;
  --page-w: min(1240px, 100% - clamp(28px, 5vw, 96px));
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 1440px) { :root { --rail-w: 264px; } }
@media (max-width: 1023px) { :root { --top-h: 56px; } }

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

body {
  margin: 0;
  padding-top: var(--top-h);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (min-width: 1024px) { body { padding-left: var(--rail-w); } }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(920px 460px at 78% -8%, rgba(59, 240, 208, .07), transparent 62%),
    radial-gradient(640px 380px at 6% 108%, rgba(201, 162, 39, .08), transparent 60%);
}

body.is-nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 600; }
::selection { background: var(--cyan); color: var(--ink); }

h1, h2, h3, .h1, .h2, .h3 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: -.02em;
  line-height: 1.06;
  text-wrap: balance;
}
h1, .h1 { font-size: clamp(38px, 6vw, 76px); font-weight: 900; line-height: 1.02; }
h2, .h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; }
h3, .h3 { font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }

.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 34em; line-height: 1.7; }
.meta { font-size: 14px; color: var(--muted); line-height: 1.6; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
#main-content { display: block; position: relative; z-index: 1; }
#main-content:focus { outline: none; }

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

/* ---------- 无障碍跳转 ---------- */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px;
  background: var(--cyan); color: #04211C;
  font-size: 14px; font-weight: 700; border-radius: 2px;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ============================================================
   头部 · L 形框架导航
   ============================================================ */
.frame-header { position: relative; z-index: 60; }

.frame-rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 72;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 34px);
  padding: 26px 22px 22px;
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 68%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}

.rail-brand { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; }
.brand__mark {
  font-family: var(--font-head); font-weight: 900; font-size: 30px;
  letter-spacing: .02em; color: var(--paper);
}
.brand__cn {
  font-family: var(--font-num); font-size: 12px; letter-spacing: .22em;
  color: var(--cyan); border: 1px solid var(--cyan-dim); border-radius: 2px;
  padding: 1px 5px 2px;
}
.rail-brand__line {
  margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted);
}

.rail-nav { display: flex; flex-direction: column; gap: 1px; }
.rail-nav__link {
  position: relative;
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 12px 9px 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  transition: color .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.rail-nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--cyan);
  transition: width .24s var(--ease);
}
.rail-nav__link:hover { color: var(--gold-soft); background: rgba(201, 162, 39, .06); }
.rail-nav__link:hover::after { width: 100%; }
.rail-nav__idx {
  font-family: var(--font-num); font-size: 11.5px; letter-spacing: .1em;
  color: var(--line); transition: color .22s var(--ease);
}
.rail-nav__link:hover .rail-nav__idx { color: var(--gold); }
.rail-nav__label { font-size: 15px; letter-spacing: .02em; }
.rail-nav__link[aria-current="page"] {
  color: var(--paper);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(201, 162, 39, .16), transparent 88%);
}
.rail-nav__link[aria-current="page"] .rail-nav__idx { color: var(--gold-soft); }
.rail-nav__link[aria-current="page"]::after { width: 34px; }

.rail-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.rail-foot__tag {
  font-family: var(--font-num); font-size: 11px; letter-spacing: .2em;
  color: var(--cyan);
}
.rail-foot__meta { font-size: 12px; color: var(--muted); }

.frame-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-h);
  z-index: 68;
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(14px, 2vw, 28px);
  background: rgba(11, 31, 26, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) { .frame-top { left: var(--rail-w); } }

.top-sign {
  display: flex; align-items: center; gap: 9px;
  margin: 0; font-size: 12.5px; letter-spacing: .1em; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-sign__dot {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(59, 240, 208, .12);
}
.top-utils { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.util-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 2px;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.util-btn:hover { color: var(--cyan); border-color: var(--cyan-dim); }
.util-btn__k { font-family: var(--font-num); font-size: 14px; }

.lang-tag {
  font-family: var(--font-num); font-size: 12px; letter-spacing: .14em;
  color: var(--gold-soft); border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}

.nav-toggle {
  display: none; align-items: center; gap: 9px;
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 2px;
  color: var(--paper); font-size: 13px; letter-spacing: .12em;
  transition: border-color .22s var(--ease), color .22s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan-dim); color: var(--cyan); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  display: block; height: 1.5px; background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  pointer-events: none; background: rgba(46, 74, 67, .5);
}
.scroll-progress__bar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}

@media (max-width: 1023px) {
  .frame-rail { transform: translateX(-104%); box-shadow: none; }
  .frame-rail[data-open] { transform: none; box-shadow: 34px 0 90px rgba(0, 0, 0, .55); }
  .nav-toggle { display: inline-flex; }
  .top-sign { display: none; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
@media (max-width: 720px) {
  .util-btn { display: none; }
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 14px; font-weight: 500; letter-spacing: .06em;
  color: var(--paper); background: transparent;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn--sm { padding: 8px 13px; font-size: 13px; }
.btn--primary {
  background: var(--cyan); border-color: var(--cyan); color: #04211C; font-weight: 700;
}
.btn--primary:hover { background: #5FF7DD; box-shadow: 0 6px 26px rgba(59, 240, 208, .28); }
.btn--ghost { border-color: var(--gold); color: var(--gold-soft); }
.btn--ghost:hover { background: rgba(201, 162, 39, .14); border-color: var(--gold-soft); }

/* ============================================================
   布局容器与栅格
   ============================================================ */
.wrap { width: var(--page-w); margin-inline: auto; }

.section { padding-block: clamp(44px, 7vw, 104px); }
.section--tight { padding-block: clamp(26px, 4vw, 54px); }

.section--narrow > .wrap { width: min(58%, var(--page-w)); margin-left: clamp(0px, 4vw, 72px); margin-right: auto; }
@media (max-width: 1023px) {
  .section--narrow > .wrap { width: 100%; margin-left: auto; }
}

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--split { grid-template-columns: 2fr 7fr 3fr; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .grid--split { grid-template-columns: 1fr; }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .grid--two, .grid--three, .grid--12 { grid-template-columns: 1fr; }
}

/* ============================================================
   展签 / 玻璃层 / 实色层 / 数字锚点 / 标签
   ============================================================ */
.label-plate {
  display: block;
  font-family: var(--font-num); font-size: 12px; letter-spacing: .2em;
  color: var(--muted); padding-top: 10px; border-top: 1px solid var(--gold);
}
.plate { display: block; font-size: 14px; line-height: 1.6; color: var(--muted); }
.plate::before {
  content: ""; display: block; width: 24px; height: 1px;
  background: var(--gold); margin-bottom: 10px;
}

.glass {
  background: linear-gradient(158deg, rgba(18, 48, 42, .8), rgba(11, 31, 26, .62));
  border: 1px solid var(--line);
  border-radius: 3px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.panel {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(20px, 2.4vw, 30px);
}
.panel--paper { background: var(--white); color: var(--ink); border-color: var(--white); }
.panel--paper .plate, .panel--paper .meta, .panel--paper .label-plate { color: #4C655D; }
.panel--paper h2, .panel--paper h3 { color: var(--ink); }

.num {
  display: block; font-family: var(--font-num); font-weight: 700;
  font-size: clamp(40px, 5vw, 56px); line-height: 1; letter-spacing: -.02em;
  color: var(--gold);
}
.num--cyan { color: var(--cyan); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-num); font-size: 11.5px; letter-spacing: .14em;
  color: var(--muted); white-space: nowrap;
}
.tag--cyan { color: var(--cyan); border-color: var(--cyan-dim); }
.tag--gold { color: var(--gold-soft); border-color: var(--gold); }
.tag--amber { color: var(--amber); border-color: var(--amber); }

/* ============================================================
   面包屑 / 正文 / 图片容器
   ============================================================ */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-num); font-size: 13px; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 18px;
}
.crumbs__link { color: var(--muted); transition: color .2s var(--ease); }
.crumbs__link:hover { color: var(--cyan); }
.crumbs__sep { color: var(--line); }
.crumbs [aria-current="page"] { color: var(--gold-soft); }

.prose { max-width: 34em; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--cyan); border-bottom: 1px solid var(--cyan-dim); }
.prose a:hover { border-bottom-color: var(--cyan); }
.panel--paper .prose a { color: #0E6B5C; }

.media-frame {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  border-radius: 3px; aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, var(--ink-2), #0D2721);
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.06); }
.media-frame__plate {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 14px 14px 12px; font-size: 13px; line-height: 1.5; color: var(--paper);
  background: linear-gradient(0deg, rgba(11, 31, 26, .94), rgba(11, 31, 26, 0));
}
.media-frame__plate span { font-family: var(--font-num); letter-spacing: .12em; color: var(--gold-soft); }

/* ============================================================
   手风琴 / 筛选
   ============================================================ */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 4px; text-align: left;
  font-size: 17px; font-weight: 500; color: var(--paper);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.accordion__trigger:hover { color: var(--cyan); }
.accordion__sign {
  margin-left: auto; font-family: var(--font-num); font-size: 18px; line-height: 1;
  color: var(--gold); transition: transform .24s var(--ease), color .24s var(--ease);
}
.accordion__trigger[aria-expanded="true"] .accordion__sign { transform: rotate(45deg); color: var(--cyan); }
.accordion__panel {
  height: 0; overflow: hidden; background: rgba(18, 48, 42, .55);
  transition: height .3s var(--ease), background .24s var(--ease);
}
.accordion__panel[data-open] { background: var(--ink-2); }
.accordion__body { padding: 6px 18px 22px; max-width: 64ch; color: var(--paper); opacity: .9; }

.filter-chip {
  font-family: var(--font-num); font-size: 12px; letter-spacing: .14em;
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 2px;
  color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease), font-weight .2s var(--ease);
}
.filter-chip:hover { color: var(--paper); border-color: var(--gold); }
.filter-chip[aria-pressed="true"] {
  color: #04211C; background: var(--cyan); border-color: var(--cyan); font-weight: 700;
}
.is-filtered-out { display: none !important; }

/* ---------- 进入视口显现 ---------- */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative; z-index: 1;
  margin-top: clamp(48px, 7vw, 110px);
  padding-top: clamp(40px, 5vw, 72px);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-top: 1px solid var(--line);
}
.footer-inner { padding-bottom: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(22px, 3vw, 48px);
}
.footer-brand__logo { margin-bottom: 12px; }
.footer-brand__line { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 16px; }
.footer-brand__plate { max-width: 22em; }

.footer-col__title {
  margin: 0 0 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-num); font-size: 12px; font-weight: 500;
  letter-spacing: .2em; color: var(--gold);
}
.footer-links { display: flex; flex-direction: column; }
.footer-link {
  display: block; padding: 5px 0; font-size: 14.5px; color: var(--paper); opacity: .86;
  transition: color .2s var(--ease), opacity .2s var(--ease), padding-left .2s var(--ease);
}
.footer-link:hover { color: var(--cyan); opacity: 1; padding-left: 5px; }

.footer-contact {
  margin-top: clamp(28px, 4vw, 48px); padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 12px 30px;
}
.footer-contact__row { margin: 0; font-size: 14px; color: var(--muted); }
.footer-contact__row strong { color: var(--paper); font-weight: 600; }

.footer-note {
  margin: 20px 0 0; padding-left: 12px;
  border-left: 2px solid var(--amber);
  font-size: 13.5px; color: var(--muted);
}

.footer-bottom {
  margin-top: clamp(26px, 4vw, 44px); padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  font-size: 12.5px; color: var(--muted);
}
.footer-icp { font-family: var(--font-num); letter-spacing: .1em; color: var(--gold-soft); }
.footer-meta { letter-spacing: .04em; }

.to-top {
  margin-left: auto;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-num); font-size: 12px; letter-spacing: .18em; color: var(--muted);
  transition: color .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.to-top:hover { color: var(--cyan); border-color: var(--cyan-dim); background: rgba(59, 240, 208, .08); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { margin-left: 0; }
}

/* ============================================================
   减弱动效
   ============================================================ */
@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; }
}
