/* ==========================================================================
   新宝品牌站 · 共享样式 /assets/site.css
   暖纸画布 + 深空蓝面板 + 电光青细线 + 暖橙当前标记
   ========================================================================== */

:root {
  --paper: #F4EFE6;
  --paper-2: #E7DDCE;
  --paper-3: #FBF8F2;
  --ink: #0B1B2B;
  --space: #071426;
  --space-2: #061020;
  --cyan: #00D8E6;
  --cyan-soft: #8BF4F7;
  --orange: #FF7A2F;
  --steel: #2B4A63;
  --slate: #5C6B7A;
  --line: #C9D3DA;
  --line-soft: rgba(11, 27, 43, .12);
  --line-dark: rgba(139, 244, 247, .16);
  --txt: #132A3E;
  --txt-soft: #4A5B6B;
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --w: 1240px;
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-1: 0 1px 0 rgba(11, 27, 43, .04), 0 18px 40px -32px rgba(11, 27, 43, .5);
  --shadow-2: 0 24px 50px -30px rgba(7, 20, 38, .9);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--ink);
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
img, svg, picture, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; }
::selection { background: rgba(0, 216, 230, .32); color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ---------- 布局基础 ---------- */
.container { width: min(100% - 40px, var(--w)); margin-inline: auto; }
.section { padding: 64px 0; }
.section--alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.layout-split { display: grid; gap: 32px; }
.stack { display: grid; gap: 18px; }
.rule { height: 1px; border: 0; margin: 0; background: var(--line); }

/* ---------- 排版组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--steel);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); }

.prose { max-width: 68ch; font-size: 17px; line-height: 1.9; color: #2A3B4A; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.8em 0 .6em; }
.prose h3 { font-size: clamp(18px, 1.8vw, 21px); margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--paper-2);
  padding: .1em .4em;
  border-radius: var(--r);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn--primary {
  background: var(--orange);
  color: #16100A;
  box-shadow: 0 14px 30px -18px rgba(255, 122, 47, .95);
}
.btn--primary:hover { background: #FF9257; color: #16100A; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--steel); color: var(--steel); transform: translateY(-1px); }
.btn--sm {
  min-height: 40px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
}

/* ---------- 分类标签 ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.chip:hover { border-color: var(--steel); color: var(--ink); background: var(--paper-3); }
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFF8EE;
}
.chip.is-active::before,
.chip[aria-pressed="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---------- 磁贴 ---------- */
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper-3);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .2s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: rgba(0, 216, 230, .65); box-shadow: 0 22px 44px -30px rgba(7, 20, 38, .8); }
.tile:hover::before { transform: scaleY(1); }
.tile__idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--slate); }
.tile__title { margin: 8px 0 6px; font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink); }
.tile__desc { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--txt-soft); }
.tile__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--steel);
}

/* ---------- 面板 ---------- */
.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper-3);
}
.panel--dark {
  border-color: rgba(0, 216, 230, .28);
  color: rgba(244, 239, 230, .8);
  background:
    repeating-linear-gradient(90deg, rgba(139, 244, 247, .06) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(139, 244, 247, .06) 0 1px, transparent 1px 64px),
    linear-gradient(160deg, #0B1B2B 0%, #071426 100%);
  box-shadow: var(--shadow-2);
}
.panel--dark h2,
.panel--dark h3 { color: #FFF8EE; }
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 216, 230, .18);
  animation: status-pulse 2.8s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(0, 216, 230, .18); }
  50% { opacity: .5; box-shadow: 0 0 0 7px rgba(0, 216, 230, .05); }
}

/* ---------- 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    repeating-linear-gradient(0deg, rgba(11, 27, 43, .07) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(11, 27, 43, .07) 0 1px, transparent 1px 28px),
    var(--paper-2);
}
.media > img,
.media > svg,
.media > picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--slate);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 18px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--slate);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--steel); text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumb a:hover { border-bottom-color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ==========================================================================
   头部
   ========================================================================== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: var(--r);
  background: var(--orange);
  color: #16100A;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--paper);
  background:
    repeating-linear-gradient(90deg, rgba(139, 244, 247, .045) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #071426 0%, #0B1B2B 100%);
  border-bottom: 1px solid rgba(0, 216, 230, .24);
  box-shadow: 0 22px 40px -34px rgba(7, 20, 38, .95);
}

.header-rail { border-bottom: 1px solid rgba(139, 244, 247, .13); }
.header-rail__inner {
  width: min(100% - 40px, var(--w));
  margin-inline: auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(244, 239, 230, .55);
}
.rail-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgba(244, 239, 230, .74);
}
.rail-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 216, 230, .18);
  animation: status-pulse 3.2s ease-in-out infinite;
}
.rail-meta { display: none; align-items: center; gap: 16px; }
.rail-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(139, 244, 247, .28);
  border-radius: var(--r);
  color: var(--cyan-soft);
  font-size: 10.5px;
  letter-spacing: .1em;
}

.header-main { position: relative; }
.header-inner {
  width: min(100% - 40px, var(--w));
  margin-inline: auto;
  min-height: 70px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 4px 2px;
  color: inherit;
  text-decoration: none;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #04121F;
  background: linear-gradient(140deg, var(--cyan) 0%, #57E9F1 60%, var(--cyan-soft) 100%);
  box-shadow: 0 8px 22px -12px rgba(0, 216, 230, .9);
}
.brand__mark::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--orange);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #FFF8EE;
}
.brand__sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(139, 244, 247, .72);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(139, 244, 247, .32);
  border-radius: var(--r);
  background: rgba(0, 216, 230, .08);
  color: var(--paper);
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.nav-toggle:hover { background: rgba(0, 216, 230, .18); border-color: rgba(0, 216, 230, .62); }
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html.has-js .nav-toggle { display: inline-flex; }

/* 导航（移动优先：滑出面板） */
.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 16px 20px 22px;
  background: linear-gradient(180deg, var(--space-2) 0%, #0A1A2B 100%);
  border-bottom: 1px solid rgba(0, 216, 230, .32);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9);
  max-height: calc(100vh - 118px);
  overflow-y: auto;
}
html.has-js .site-nav { display: none; }
html.has-js .site-nav[data-open="true"] { display: flex; }
.site-nav__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(139, 244, 247, .1);
  color: rgba(244, 239, 230, .82);
  font-size: 15px;
  text-decoration: none;
  transition: color .18s, background .18s;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.site-nav__link:hover { color: #FFF8EE; background: rgba(0, 216, 230, .08); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: #FFF8EE; background: rgba(255, 122, 47, .12); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] .site-nav__idx { color: var(--orange); }
.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(0, 216, 230, .62);
}
.site-nav__cta { width: 100%; }

/* 阅读进度 */
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(139, 244, 247, .12);
}
.read-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 100%);
  transition: width .12s linear;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: 0;
  color: rgba(244, 239, 230, .72);
  font-size: 14.5px;
  line-height: 1.7;
  background:
    repeating-linear-gradient(90deg, rgba(139, 244, 247, .04) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #0B1B2B 0%, #071426 100%);
  border-top: 1px solid rgba(0, 216, 230, .25);
}
.footer-inner { width: min(100% - 40px, var(--w)); margin-inline: auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding: 52px 0 40px;
}
.footer-brand__note { margin: 18px 0 0; max-width: 34ch; color: rgba(244, 239, 230, .68); }
.footer-version {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.9;
  color: rgba(139, 244, 247, .78);
}
.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--cyan-soft);
}
.footer-col__title::before { content: ""; width: 14px; height: 2px; background: var(--orange); }
.footer-links { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 4px 0;
  color: rgba(244, 239, 230, .72);
  text-decoration: none;
  transition: color .18s, transform .18s var(--ease);
}
.footer-links a:hover { color: #FFF8EE; transform: translateX(3px); }
.footer-contact { display: grid; gap: 12px; margin: 0; }
.contact-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  font-size: 14px;
}
.contact-label {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(139, 244, 247, .7);
}
.contact-value { color: rgba(244, 239, 230, .88); word-break: break-word; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-left: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(139, 244, 247, .3);
  border-radius: var(--r);
  background: rgba(0, 216, 230, .06);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.copy-btn:hover { background: rgba(0, 216, 230, .18); border-color: rgba(0, 216, 230, .62); color: #FFF8EE; }
.copy-btn.is-copied { background: var(--cyan); border-color: var(--cyan); color: #04121F; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(139, 244, 247, .14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(244, 239, 230, .5);
}
.footer-copy,
.footer-legal,
.footer-icp { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer-legal a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  color: rgba(244, 239, 230, .62);
  text-decoration: none;
  transition: color .18s;
}
.footer-legal a:hover { color: var(--cyan-soft); }

/* ==========================================================================
   显现
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.has-js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  html.has-js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (min-width: 720px) {
  .rail-meta { display: inline-flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 76px 0; }
}

@media (min-width: 980px) {
  html.has-js .nav-toggle { display: none; }
  .site-nav,
  html.has-js .site-nav,
  html.has-js .site-nav[data-open="true"] {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    padding: 0;
    max-height: none;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav__list { flex-direction: row; align-items: center; gap: 2px; }
  .site-nav__link {
    min-height: 0;
    padding: 10px 11px;
    border-bottom: 0;
    font-size: 13.5px;
    letter-spacing: .02em;
  }
  .site-nav__link::after { left: 11px; right: 11px; bottom: 3px; }
  .site-nav__cta { width: auto; margin-left: 4px; }
  .header-inner { min-height: 76px; gap: 26px; }
}

@media (min-width: 1080px) {
  .footer-top { grid-template-columns: 1.35fr .8fr .7fr 1.3fr; gap: 44px; padding: 60px 0 44px; }
  .footer-brand { grid-column: auto; }
  .footer-links a { min-height: 34px; }
}

@media (min-width: 1100px) {
  .layout-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .section { padding: 92px 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand__name { font-size: 16px; }
  .header-inner { min-height: 64px; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
  .contact-label { padding-top: 0; }
  .footer-bottom { justify-content: flex-start; }
}

/* 触控区保障（移动端不小于 48px） */
@media (max-width: 979px) {
  .footer-links a { min-height: 44px; }
  .copy-btn { min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .status-dot, .rail-note::before { animation: none !important; }
  .tile:hover, .btn:hover, .footer-links a:hover { transform: none; }
}
