/* =====================================================================
   aobo-connect.com.cn — 共享样式表 /assets/site.css
   深渊墨黑 · 暗夜紫 · 深海蓝 / 鎏金锚点 · 珊瑚橙行动 · 青瓷绿提示
   切角档案面板 + 纸纹底 + 左右分置导航
   ===================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0B10;
  --violet: #1B1035;
  --deep: #0E1A2B;
  --gold: #D4A24C;
  --coral: #FF6B4A;
  --celadon: #4FD1B2;
  --paper: #F5F1E8;
  --slate: #7A8CA3;
  --gold-soft: #F0D9A6;
  --graphite: #2A2A35;

  --line: rgba(122, 140, 163, .22);
  --line-soft: rgba(122, 140, 163, .12);
  --line-gold: rgba(212, 162, 76, .45);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --shell: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 74px;
  --cut: 20px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- 3. 全局排版与底色 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 8% -12%, rgba(27, 16, 53, .95), transparent 68%),
    radial-gradient(980px 540px at 102% 2%, rgba(14, 26, 43, .92), transparent 66%),
    repeating-linear-gradient(0deg, rgba(245, 241, 232, .016) 0 1px, transparent 1px 3px);
  background-repeat: no-repeat, no-repeat, repeat;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
@media (max-width: 640px) { body { font-size: 16px; } }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
p { max-width: 72ch; }

.display {
  font-size: clamp(2.5rem, 7.2vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: 1.02;
}
.section-title {
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.24;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede {
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.75;
  color: rgba(245, 241, 232, .8);
}
.muted { color: var(--slate); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

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

/* ---------- 4. 布局骨架 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.band { padding-block: clamp(48px, 7vw, 96px); }

.triptych {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}
.rail { position: sticky; top: calc(var(--header-h) + 22px); }
.triptych > .rail:last-child { position: sticky; top: calc(var(--header-h) + 22px); }

@media (max-width: 1100px) {
  .triptych { grid-template-columns: 200px minmax(0, 1fr); }
  .triptych > .rail:last-child { position: static; grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .triptych { grid-template-columns: minmax(0, 1fr); }
  .triptych > .rail { position: static; grid-column: auto; }
}

.grid-2, .grid-3, .grid-auto { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--coral); color: #15060A; }
.btn--primary:hover { background: #FF8465; transform: translateY(-2px); }
.btn--ghost {
  background: rgba(212, 162, 76, .07);
  border: 1px solid var(--line-gold);
  color: var(--gold);
}
.btn--ghost:hover { background: rgba(212, 162, 76, .18); color: var(--gold-soft); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- 6. 档案面板与卡片 ---------- */
.slab {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(160deg, rgba(42, 42, 53, .74), rgba(14, 26, 43, .58));
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.slab + .slab { margin-top: 18px; }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background: linear-gradient(120deg, rgba(27, 16, 53, .55), rgba(11, 11, 16, .35));
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-left-color: var(--coral); transform: translateX(3px); }
.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.seq {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--gold);
  transition: color .5s var(--ease), text-shadow .5s var(--ease);
}
.seq.is-lit {
  color: var(--gold-soft);
  text-shadow: 0 0 26px rgba(212, 162, 76, .6);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  border: 1px solid var(--line-gold);
  background: rgba(212, 162, 76, .08);
  color: var(--gold);
}
.tag--coral { border-color: rgba(255, 107, 74, .5); background: rgba(255, 107, 74, .09); color: var(--coral); }
.tag--celadon { border-color: rgba(79, 209, 178, .45); background: rgba(79, 209, 178, .09); color: var(--celadon); }

/* ---------- 7. 面包屑 / 表格 ---------- */
.breadcrumbs {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .07em;
  color: var(--slate);
  line-height: 1.9;
}
.breadcrumbs li { display: inline; }
.breadcrumbs li + li::before { content: "/ "; color: rgba(122, 140, 163, .5); }
.breadcrumbs a { color: var(--slate); transition: color .2s var(--ease); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.index-table { min-width: 560px; font-size: 14px; }
.index-table th {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--gold);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-gold);
}
.index-table td {
  padding: 14px;
  color: rgba(245, 241, 232, .82);
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.index-table tbody tr:hover { background: rgba(212, 162, 76, .05); }

/* ---------- 8. 图片占位容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--violet), var(--deep) 55%, var(--ink));
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}
.media-frame > img,
.media-frame > svg,
.media-frame > picture > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame__glow {
  position: absolute;
  inset: auto -12% -34% -12%;
  height: 72%;
  background: radial-gradient(closest-side, rgba(212, 162, 76, .38), transparent 72%);
  pointer-events: none;
}
.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  background: rgba(11, 11, 16, .78);
  color: var(--gold-soft);
}

/* ---------- 9. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 10. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(11, 11, 16, .97) 0%, rgba(11, 11, 16, .87) 100%);
  border-bottom: 1px solid var(--line);
}
.header-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 12px var(--gutter);
}
.skip-link {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: top .22s var(--ease);
}
.skip-link:focus { top: 12px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(150deg, var(--gold), #A97B2D);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--slate);
}

/* 导航 */
.site-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.site-nav__list { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 10px;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(245, 241, 232, .74);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav__idx { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: var(--slate); }
.site-nav__link:hover { color: var(--paper); background: rgba(212, 162, 76, .1); }
.site-nav__link[aria-current="page"] { color: var(--gold); }
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--coral); }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  background: var(--coral);
}
.site-nav__meta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  background: rgba(212, 162, 76, .06);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 12px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), top .25s var(--ease), bottom .25s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { bottom: 5px; transform: rotate(-45deg); }
.nav-toggle__label { font-family: var(--font-mono); font-size: 12px; }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.header-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--coral) 100%);
  transition: width .12s linear;
}

/* 移动导航 */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 95;
    display: block;
    width: min(86vw, 380px);
    padding: 104px 26px 40px;
    overflow-y: auto;
    background: linear-gradient(165deg, var(--violet) 0%, var(--ink) 62%);
    border-left: 1px solid var(--line-gold);
    transform: translateX(103%);
    visibility: hidden;
    transition: transform .42s var(--ease), visibility .42s var(--ease);
  }
  .site-nav[data-open] { transform: translateX(0); visibility: visible; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    justify-content: flex-start;
    gap: 12px;
    padding: 15px 8px;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav__link[aria-current="page"]::after { display: none; }
  .site-nav__link[aria-current="page"] { background: rgba(212, 162, 76, .12); }
  .site-nav__meta {
    display: block;
    margin-top: 26px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--slate);
    max-width: none;
  }
}
@media (max-width: 720px) {
  .header-actions .btn { display: none; }
  .brand__tag { display: none; }
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  background:
    linear-gradient(180deg, rgba(27, 16, 53, .58) 0%, rgba(11, 11, 16, .98) 72%),
    var(--ink);
  border-top: 1px solid var(--line-gold);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0 16%, var(--coral) 16% 24%, rgba(79, 209, 178, .7) 24% 28%, transparent 28%);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(42px, 6vw, 76px);
  align-items: start;
}
.footer-brand__name {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: .04em;
  max-width: none;
}
.footer-brand__tag {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245, 241, 232, .72);
  max-width: 34ch;
}
.footer-links { margin-top: 22px; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--gold);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(212, 162, 76, .35);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.footer-links a:hover { color: var(--gold-soft); border-color: var(--coral); }

.footer-contact__label,
.footer-note__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.footer-contact ul { display: grid; gap: 12px; }
.footer-contact li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 241, 232, .86);
  word-break: break-word;
}
.footer-contact__k { font-family: var(--font-mono); font-size: 12px; color: var(--celadon); padding-top: 3px; }
.footer-note p:last-child { font-size: 15px; line-height: 1.75; color: rgba(245, 241, 232, .72); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
}
.footer-base__copy,
.footer-base__icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--slate);
  max-width: none;
}
.footer-base__icp { color: rgba(122, 140, 163, .8); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 560px) {
  .footer-contact li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .footer-contact__k { padding-top: 0; }
}

/* ---------- 12. 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
