/* ============================================================
   JDB服务中心 · 共享样式 /assets/site.css
   夜间控制台：墨蓝底 / 电子青锚点 / 暖金节点 / 玻璃层与实色层并置
   ============================================================ */

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

:root {
  --ink: #050A16;
  --panel: #0B1730;
  --glass: #12244A;
  --cyan: #35E6FF;
  --teal: #0B7F91;
  --gold: #F2C15C;
  --white: #F3F7FF;
  --slate: #9FB0C8;
  --line: #223A5E;
  --mint: #5BE0B5;

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 66px;
  --radius: 14px;
  --radius-sm: 8px;

  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-panel: 0 18px 44px -24px rgba(0, 0, 0, .95);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(920px 540px at 84% -12%, rgba(11, 127, 145, .24), transparent 62%),
    radial-gradient(760px 440px at 6% 2%, rgba(18, 36, 74, .62), transparent 60%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.012em; }
h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 900; }
h2 { font-size: clamp(23px, 3.2vw, 36px); font-weight: 900; }
h3 { font-size: clamp(18px, 2.1vw, 22px); font-weight: 800; }
h4 { font-size: 17px; font-weight: 800; }
strong, b { font-weight: 700; color: var(--white); }
small { font-size: 12.5px; color: var(--slate); }
[hidden] { display: none !important; }

a { color: var(--cyan); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 5px;
  text-decoration: none;
}

/* ---------------- 跳转链接 ---------------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 300;
  display: inline-block;
  padding: 11px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--cyan);
  color: #04121A;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------------- 页头 · 紧凑命令栏 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(5, 10, 22, .88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background-color .22s var(--ease), box-shadow .22s var(--ease);
}
.site-header[data-scrolled] {
  background: rgba(5, 10, 22, .97);
  box-shadow: 0 16px 34px -26px rgba(0, 0, 0, 1);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: transform .1s linear;
  pointer-events: none;
}

.header-inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  min-height: var(--header-h);
  padding-block: 10px;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--white);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(53, 230, 255, .42);
  background: linear-gradient(150deg, rgba(53, 230, 255, .18), rgba(53, 230, 255, .03));
  color: var(--cyan);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .09em;
  font-variant-numeric: tabular-nums;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.brand-eyebrow { font-size: 10.5px; letter-spacing: .22em; color: var(--slate); }

/* 命令栏导航 */
.primary-nav { display: block; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 6px 6px 0 0;
  color: var(--slate);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.nav-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.nav-link:hover { color: var(--white); background: rgba(18, 36, 74, .72); text-decoration: none; }
.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--white);
  border-bottom-color: var(--cyan);
  background: rgba(53, 230, 255, .08);
}
.nav-link[aria-current="page"] .nav-num,
.nav-link.is-active .nav-num { color: var(--cyan); }

/* 在线状态 */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--slate);
  white-space: nowrap;
  padding-left: clamp(10px, 1.4vw, 18px);
  border-left: 1px solid var(--line);
}
.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(91, 224, 181, .16);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* 移动索引按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(18, 36, 74, .6);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--teal); background: rgba(18, 36, 74, .92); }
.nav-toggle-label { line-height: 1; }
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 14px;
}
.nav-toggle-bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5px) 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(-5px) rotate(-45deg); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--cyan);
  color: #04121A;
  box-shadow: 0 12px 28px -16px rgba(53, 230, 255, .95);
}
.btn-primary:hover { background: #6DEEFF; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--teal); background: rgba(18, 36, 74, .7); }
.btn-gold { background: var(--gold); color: #241A02; }
.btn-gold:hover { background: #FFD37C; transform: translateY(-1px); }
.btn-sm { min-height: 36px; padding: 7px 16px; font-size: 13px; }

/* ---------------- 页脚 · 状态栏 ---------------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  background: linear-gradient(180deg, #050A16 0%, #071022 52%, #0B1730 100%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 230, 255, 0) 42%, rgba(242, 193, 92, 0) 58%, var(--gold));
  opacity: .9;
}
.footer-inner {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  padding-block: clamp(38px, 6vw, 66px) 26px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) minmax(0, 2fr);
  gap: clamp(26px, 5vw, 62px);
}
.footer-brand { min-width: 0; }
.brand--footer { margin-right: 0; }
.brand--footer .brand-name { font-size: 17px; }
.footer-summary {
  margin-top: 16px;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--slate);
}
.footer-status {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--slate);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 3vw, 38px);
}
.footer-col { min-width: 0; }
.footer-col-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--slate);
  line-height: 1.4;
}
.footer-list { display: flex; flex-direction: column; }
.footer-link {
  display: inline-block;
  padding: 5px 0;
  color: var(--white);
  font-size: 14.5px;
  opacity: .82;
  text-decoration: none;
  transition: opacity .18s var(--ease), color .18s var(--ease), padding-left .18s var(--ease);
}
.footer-link:hover {
  opacity: 1;
  color: var(--cyan);
  padding-left: 6px;
  text-decoration: none;
}
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(34, 58, 94, .62);
}
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-label {
  flex: 0 0 100%;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--slate);
}
.contact-value {
  font-size: 14.5px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.copy-btn {
  margin-left: auto;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.copy-btn:hover { border-color: var(--teal); color: var(--cyan); background: rgba(53, 230, 255, .08); }
.copy-btn[data-copied] { border-color: rgba(91, 224, 181, .55); color: var(--mint); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--slate);
}
.footer-copy { font-variant-numeric: tabular-nums; }
.footer-icp { color: var(--slate); }
.footer-note { margin-left: auto; color: rgba(159, 176, 200, .82); }

/* 返回顶部 */
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(53, 230, 255, .35);
  border-radius: 12px;
  background: rgba(11, 23, 48, .94);
  color: var(--cyan);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s var(--ease), transform .22s var(--ease),
              visibility .22s linear, border-color .18s var(--ease), background-color .18s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--cyan); background: rgba(18, 36, 74, .98); }

/* ---------------- 通用容器与章节 ---------------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(42px, 7vw, 88px); }
.section + .section { border-top: 1px solid rgba(34, 58, 94, .55); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 34px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .24em;
  color: var(--cyan);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.section-num {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.015em;
}
.lead {
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.85;
  color: var(--slate);
}
.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.88;
  color: #D6E1F2;
}
.prose p + p { margin-top: 1.05em; }
.prose h2, .prose h3 { margin-top: 1.7em; margin-bottom: .6em; color: var(--white); }
.prose ul, .prose ol { margin: .9em 0; padding-left: 1.25em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--white); }

/* ---------------- 面板 / 卡片 / 玻璃层 ---------------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 30px);
}
.glass {
  background: linear-gradient(160deg, rgba(18, 36, 74, .82), rgba(11, 23, 48, .6));
  border: 1px solid rgba(53, 230, 255, .16);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.card {
  position: relative;
  display: block;
  padding: clamp(16px, 2.4vw, 26px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), transform .18s var(--ease);
}
a.card:hover, a.card:focus-visible {
  border-color: var(--teal);
  background: #0E1D3A;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---------------- 网格 ---------------- */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.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)); }

/* ---------------- 面包屑 ---------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px 0;
  font-size: 12.5px;
  color: var(--slate);
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--slate); text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { color: var(--cyan); border-bottom-color: var(--teal); }
.breadcrumbs [aria-current="page"] { color: var(--white); }

/* ---------------- 标记 ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(53, 230, 255, .35);
  border-radius: 999px;
  background: rgba(53, 230, 255, .08);
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.badge--gold {
  border-color: rgba(242, 193, 92, .42);
  background: rgba(242, 193, 92, .1);
  color: var(--gold);
}
.badge--mint {
  border-color: rgba(91, 224, 181, .42);
  background: rgba(91, 224, 181, .1);
  color: var(--mint);
}

/* ---------------- 图片容器（供页面阶段放置占位图） ---------------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(620px 300px at 74% 0%, rgba(11, 127, 145, .34), transparent 70%),
    linear-gradient(160deg, #0B1730, #050A16);
}
.img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--slate);
  background: linear-gradient(0deg, rgba(5, 10, 22, .94), rgba(5, 10, 22, 0));
}
.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--tall { aspect-ratio: 4 / 5; }
.img-frame--grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 230, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 230, 255, .07) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: screen;
  opacity: .8;
}

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

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

@media (max-width: 940px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 14px var(--gutter) 24px;
    background: rgba(7, 15, 32, .985);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-panel);
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav[data-open] { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 3px; }
  .nav-link {
    justify-content: flex-start;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(34, 58, 94, .7);
    border-left: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }
  .nav-num { font-size: 11px; }
  .nav-link[aria-current="page"],
  .nav-link.is-active {
    border-bottom-color: rgba(34, 58, 94, .7);
    border-left-color: var(--cyan);
  }
  body { font-size: 16.5px; }
}

@media (max-width: 820px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .brand-eyebrow { display: none; }
  .footer-note { margin-left: 0; }
}

@media (max-width: 560px) {
  :root { --header-h: 60px; }
  .brand-mark { min-width: 40px; height: 32px; font-size: 13.5px; }
  .brand-name { font-size: 15px; }
  .nav-toggle { padding: 6px 10px; }
  .nav-toggle-label { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .to-top { width: 42px; height: 42px; }
}

/* ---------------- 动态与无障碍 ---------------- */
@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;
  }
  .header-progress { transition: none; }
  .to-top { transform: none; }
  a.card:hover, a.card:focus-visible { transform: none; }
}
