/* ==========================================================================
   龙8电子服务 · 共享外壳样式 /assets/site.css
   东方赛博 · 节庆档案感 — reset / 变量 / 中文排版 / 页头 / 页脚 / 基础组件
   ========================================================================== */

:root {
  /* ---- 珠宝色分区 ---- */
  --l8-red: #C6222E;
  --l8-gold: #D4A23A;
  --l8-ink: #14100F;
  --l8-cream: #F6EFE2;
  --l8-teal: #0F3B3A;
  --l8-wine: #6D1F2C;
  --l8-indigo: #3B2A5A;
  --l8-neon: #47D7C9;
  --l8-mist: #E8D7A8;
  --l8-charcoal: #2B2725;

  /* ---- 字体 ---- */
  --l8-font-title: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --l8-font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --l8-font-mono: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', monospace;

  /* ---- 结构 ---- */
  --l8-maxw: 1200px;
  --l8-maxw-wide: 1360px;
  --l8-gutter: clamp(1rem, 4vw, 3.25rem);
  --l8-header-h: 92px;
  --l8-radius-scale: 20px 5px 20px 5px;
  --l8-radius-pill: 999px;
  --l8-ease: cubic-bezier(.22, .61, .36, 1);
  --l8-shadow-soft: 0 22px 44px -32px rgba(20, 16, 15, .9);
  --l8-shadow-card: 0 24px 46px -36px rgba(20, 16, 15, .95);
}

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul, ol { padding-left: 1.25em; }

img, svg, picture, video {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; }

hr { border: 0; }

/* ------------------------------------------------------- 中文排版基线 */
body {
  font-family: var(--l8-font-body);
  font-size: clamp(15px, calc(0.55vw + 13.5px), 17px);
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: .012em;
  color: var(--l8-ink);
  background-color: var(--l8-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: calc(var(--l8-header-h) + 14px);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--l8-font-title);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .005em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.05rem; letter-spacing: .05em; }

p { text-wrap: pretty; }

strong, b { font-weight: 500; }

small { font-size: .8em; }

::selection {
  background: rgba(198, 34, 46, .9);
  color: var(--l8-cream);
}

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--l8-header-h) + 28px);
}

/* ------------------------------------------------------- 通用工具类 */
.l8-container {
  width: 100%;
  max-width: var(--l8-maxw);
  margin-inline: auto;
  padding-inline: var(--l8-gutter);
}

.l8-container--wide { max-width: var(--l8-maxw-wide); }

.l8-mono,
.l8-version,
.l8-issue {
  font-family: var(--l8-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}

.l8-list-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

.l8-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.l8-scalecut {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

/* ----------------------------------------------------------- 跳转链接 */
.l8-skip {
  position: fixed;
  left: clamp(1rem, 4vw, 3.25rem);
  top: -120px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.3rem;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--l8-cream);
  background: var(--l8-ink);
  border: 1px solid var(--l8-gold);
  border-radius: 0 0 14px 14px;
  transition: top .22s var(--l8-ease);
}

.l8-skip:focus-visible { top: 0; }

/* ====================================================================
   悬浮胶囊页头
   ==================================================================== */
.l8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 20px clamp(.75rem, 2.4vw, 2rem) 0;
  pointer-events: none;
}

/* 滚动进度条：朱红 → 鎏金 → 霓虹青 */
.l8-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(20, 16, 15, .12);
  border-radius: 0 0 3px 3px;
}

.l8-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--l8-red) 0%, var(--l8-gold) 52%, var(--l8-neon) 100%);
}

.l8-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.2vw, 1rem);
  max-width: 1280px;
  margin-inline: auto;
  padding: .5rem .55rem .5rem .8rem;
  border: 1px solid rgba(212, 162, 58, .45);
  border-radius: var(--l8-radius-pill);
  background: rgba(246, 239, 226, .93);
  box-shadow:
    0 24px 48px -34px rgba(20, 16, 15, .95),
    inset 0 1px 0 rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  pointer-events: auto;
  transition: padding .32s var(--l8-ease),
              box-shadow .32s var(--l8-ease),
              border-color .32s var(--l8-ease),
              border-radius .32s var(--l8-ease);
}

.l8-header[data-scrolled="true"] .l8-header__inner {
  padding: .24rem .5rem .24rem .62rem;
  border-color: rgba(212, 162, 58, .8);
  box-shadow: 0 14px 30px -26px rgba(20, 16, 15, .95);
}

/* ------------------------------------------------------------ 品牌 */
.l8-brand {
  display: flex;
  align-items: center;
  gap: .58rem;
  flex: 0 0 auto;
  margin-right: auto;
  text-decoration: none;
  color: var(--l8-ink);
}

.l8-brand__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--l8-font-title);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  color: var(--l8-cream);
  background: linear-gradient(150deg, var(--l8-red), var(--l8-wine));
  border-radius: 14px 4px 14px 4px;
  box-shadow:
    inset 0 0 0 1px rgba(232, 215, 168, .55),
    0 8px 18px -12px rgba(198, 34, 46, .95);
  transition: transform .3s var(--l8-ease);
}

.l8-brand__seal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(232, 215, 168, .38);
  border-radius: 11px 2px 11px 2px;
  pointer-events: none;
}

.l8-brand:hover .l8-brand__seal { transform: rotate(-4deg) scale(1.04); }

.l8-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.l8-brand__name {
  font-family: var(--l8-font-title);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .07em;
  white-space: nowrap;
}

.l8-brand__tag {
  max-height: 1.4em;
  overflow: hidden;
  font-family: var(--l8-font-mono);
  font-size: .62rem;
  letter-spacing: .09em;
  color: var(--l8-charcoal);
  white-space: nowrap;
  transition: max-height .3s var(--l8-ease), opacity .3s var(--l8-ease);
}

.l8-header[data-scrolled="true"] .l8-brand__tag {
  max-height: 0;
  opacity: 0;
}

/* ------------------------------------------------------------ 导航 */
.l8-nav {
  min-width: 0;
  margin-left: .2rem;
}

.l8-nav__list {
  display: flex;
  align-items: center;
  gap: .08rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.l8-nav__list::-webkit-scrollbar { display: none; }

.l8-nav__link {
  display: block;
  padding: .5rem .68rem;
  border-radius: var(--l8-radius-pill);
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--l8-charcoal);
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: color .2s var(--l8-ease),
              background-color .2s var(--l8-ease),
              box-shadow .2s var(--l8-ease);
}

.l8-nav__link:hover {
  color: var(--l8-ink);
  background: rgba(212, 162, 58, .2);
}

.l8-nav__link[aria-current="page"] {
  color: var(--l8-ink);
  font-weight: 500;
  background: linear-gradient(180deg, rgba(212, 162, 58, .34), rgba(212, 162, 58, .12));
  box-shadow: inset 0 -2px 0 var(--l8-red);
}

/* -------------------------------------------------------- 工具浮岛 */
.l8-header__tools {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex: 0 0 auto;
}

.l8-chip {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .44rem .82rem;
  font-size: .78rem;
  letter-spacing: .04em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--l8-ink);
  background: rgba(255, 255, 255, .38);
  border: 1px solid rgba(212, 162, 58, .55);
  border-radius: var(--l8-radius-pill);
  transition: background-color .2s var(--l8-ease),
              border-color .2s var(--l8-ease),
              color .2s var(--l8-ease),
              transform .2s var(--l8-ease);
}

.l8-chip:hover {
  background: var(--l8-gold);
  border-color: var(--l8-gold);
  color: var(--l8-ink);
  transform: translateY(-1px);
}

.l8-chip--version::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--l8-gold);
  box-shadow: 0 0 0 3px rgba(212, 162, 58, .2);
}

.l8-chip--search::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--l8-neon);
  box-shadow: 0 0 0 3px rgba(71, 215, 201, .22);
}

.l8-chip--primary {
  background: var(--l8-red);
  border-color: transparent;
  color: var(--l8-cream);
  font-weight: 500;
}

.l8-chip--primary:hover {
  background: var(--l8-wine);
  color: var(--l8-cream);
}

/* ------------------------------------------------------ 移动端按钮 */
.l8-navtoggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--l8-cream);
  background: var(--l8-ink);
  border: 1px solid rgba(212, 162, 58, .6);
  border-radius: 50%;
  transition: background-color .2s var(--l8-ease), border-color .2s var(--l8-ease);
}

.l8-navtoggle:hover { border-color: var(--l8-gold); }

.l8-navtoggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color .2s var(--l8-ease);
}

.l8-navtoggle__bars::before,
.l8-navtoggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--l8-ease);
}

.l8-navtoggle__bars::before { top: -6px; }
.l8-navtoggle__bars::after { top: 6px; }

.l8-navtoggle[aria-expanded="true"] .l8-navtoggle__bars { background: transparent; }
.l8-navtoggle[aria-expanded="true"] .l8-navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.l8-navtoggle[aria-expanded="true"] .l8-navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ====================================================================
   页脚 · 档案墙
   ==================================================================== */
.l8-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  color: var(--l8-cream);
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(59, 42, 90, .58) 0%, rgba(20, 16, 15, 0) 58%),
    radial-gradient(95% 70% at 92% 4%, rgba(109, 31, 44, .55) 0%, rgba(20, 16, 15, 0) 62%),
    var(--l8-ink);
}

.l8-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--l8-red) 0%, var(--l8-gold) 42%, var(--l8-neon) 74%, var(--l8-wine) 100%);
}

.l8-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(246, 239, 226, .028) 0 2px, transparent 2px 12px);
}

.l8-footer__glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 215, 201, .16), rgba(71, 215, 201, 0) 68%);
  pointer-events: none;
}

.l8-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--l8-gutter) 2rem;
}

.l8-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(232, 215, 168, .18);
}

.l8-footer__brand { min-width: 0; }

.l8-brand--inverse { color: var(--l8-cream); }

.l8-brand--inverse .l8-brand__tag {
  max-height: none;
  opacity: 1;
  color: rgba(246, 239, 226, .6);
}

.l8-brand--inverse .l8-brand__seal {
  background: linear-gradient(150deg, var(--l8-red), var(--l8-wine));
  box-shadow:
    inset 0 0 0 1px rgba(232, 215, 168, .6),
    0 0 26px -8px rgba(198, 34, 46, .95);
}

.l8-footer__motto {
  max-width: 38ch;
  margin-top: 1rem;
  font-size: .94rem;
  line-height: 1.8;
  color: rgba(246, 239, 226, .78);
}

.l8-footer__cta { margin-top: 1.35rem; }

.l8-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.l8-footer__col { min-width: 0; }

.l8-footer__title {
  margin: 0 0 .95rem;
  font-family: var(--l8-font-body);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--l8-gold);
}

.l8-footer__list {
  display: grid;
  gap: .62rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l8-footer__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .12rem 0;
  font-size: .94rem;
  text-decoration: none;
  color: rgba(246, 239, 226, .82);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--l8-ease),
              border-color .2s var(--l8-ease),
              transform .2s var(--l8-ease);
}

.l8-footer__link:hover {
  color: var(--l8-mist);
  border-bottom-color: rgba(212, 162, 58, .75);
  transform: translateX(2px);
}

.l8-footer__link--strong {
  font-family: var(--l8-font-mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--l8-neon);
  border-bottom-color: rgba(71, 215, 201, .4);
}

.l8-footer__link--strong:hover {
  color: var(--l8-cream);
  border-bottom-color: var(--l8-neon);
}

/* 固定入口带：龙鳞切角虚线框 */
.l8-footer__fixed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  margin-top: 1.6rem;
  padding: .9rem 1.2rem;
  background: rgba(246, 239, 226, .045);
  border: 1px dashed rgba(212, 162, 58, .48);
  border-radius: 18px 4px 18px 4px;
}

.l8-footer__fixed-label {
  font-family: var(--l8-font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--l8-mist);
}

.l8-footer__legal {
  display: grid;
  gap: .55rem;
  margin-top: 1.6rem;
}

.l8-footer__meta {
  font-size: .86rem;
  letter-spacing: .02em;
  color: rgba(246, 239, 226, .74);
  overflow-wrap: anywhere;
}

.l8-footer__note {
  max-width: 74ch;
  font-size: .8rem;
  line-height: 1.72;
  color: rgba(246, 239, 226, .55);
}

.l8-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.6rem;
  margin-top: .9rem;
  padding-top: 1.1rem;
  font-size: .8rem;
  color: rgba(246, 239, 226, .62);
  border-top: 1px solid rgba(232, 215, 168, .14);
}

.l8-footer__copy { letter-spacing: .03em; }

.l8-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l8-footer__legal-links a {
  text-decoration: none;
  color: rgba(246, 239, 226, .74);
  transition: color .2s var(--l8-ease);
}

.l8-footer__legal-links a:hover { color: var(--l8-neon); }

.l8-footer__icp {
  margin-left: auto;
  font-family: var(--l8-font-mono);
  letter-spacing: .04em;
  color: rgba(246, 239, 226, .5);
}

/* ====================================================================
   基础组件
   ==================================================================== */

/* ------------------------------------------------------------ 按钮 */
.l8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.5rem;
  font-family: var(--l8-font-body);
  font-size: .94rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--l8-radius-pill);
  transition: transform .22s var(--l8-ease),
              box-shadow .22s var(--l8-ease),
              background-color .22s var(--l8-ease),
              border-color .22s var(--l8-ease),
              color .22s var(--l8-ease);
}

.l8-btn--primary {
  background: var(--l8-red);
  color: var(--l8-cream);
  box-shadow: 0 14px 26px -18px rgba(198, 34, 46, .95);
}

.l8-btn--primary:hover {
  background: var(--l8-wine);
  transform: translateY(-2px);
  box-shadow:
    0 18px 30px -18px rgba(109, 31, 44, 1),
    inset 0 0 0 1px rgba(212, 162, 58, .85);
}

.l8-btn--gold {
  background: var(--l8-gold);
  color: var(--l8-ink);
}

.l8-btn--gold:hover {
  background: var(--l8-mist);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -20px rgba(212, 162, 58, 1);
}

.l8-btn--ghost {
  background: transparent;
  border-color: rgba(20, 16, 15, .26);
  color: var(--l8-ink);
}

.l8-btn--ghost:hover {
  border-color: var(--l8-gold);
  background: rgba(212, 162, 58, .14);
  transform: translateY(-2px);
}

.l8-btn--sm {
  padding: .56rem 1.1rem;
  font-size: .84rem;
}

/* ------------------------------------------------------ 徽章 / 版本号 */
.l8-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  font-family: var(--l8-font-mono);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  color: var(--l8-charcoal);
  background: rgba(20, 16, 15, .06);
  border: 1px solid rgba(20, 16, 15, .12);
  border-radius: 8px 2px 8px 2px;
}

.l8-badge--issue {
  color: var(--l8-cream);
  background: var(--l8-red);
  border-color: transparent;
}

.l8-badge--gold {
  color: #6b4a05;
  background: rgba(212, 162, 58, .2);
  border-color: rgba(212, 162, 58, .55);
}

.l8-badge--neon {
  color: #0a5d55;
  background: rgba(71, 215, 201, .2);
  border-color: rgba(71, 215, 201, .6);
}

.l8-version {
  display: inline-block;
  padding: .1rem .46rem;
  font-size: .8rem;
  color: #8a6412;
  border: 1px solid rgba(212, 162, 58, .6);
  border-radius: 6px 2px 6px 2px;
}

.l8-issue {
  display: inline-block;
  padding: .1rem .46rem;
  font-size: .8rem;
  color: var(--l8-cream);
  background: var(--l8-red);
  border-radius: 6px 2px 6px 2px;
}

/* ---------------------------------------------------- 眉题 / 标签 / 线 */
.l8-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--l8-font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--l8-wine);
}

.l8-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--l8-red), var(--l8-gold));
}

.l8-tag {
  display: inline-block;
  padding: .16rem .58rem;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--l8-charcoal);
  background: rgba(20, 16, 15, .06);
  border: 1px solid rgba(20, 16, 15, .12);
  border-radius: var(--l8-radius-pill);
}

.l8-divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, rgba(212, 162, 58, 0), rgba(212, 162, 58, .85), rgba(212, 162, 58, 0));
}

/* ------------------------------------------------------------ 卡片 */
.l8-card {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: linear-gradient(180deg, #FCF7EE, #F4EBD9);
  border: 1px solid rgba(20, 16, 15, .1);
  border-radius: var(--l8-radius-scale);
  box-shadow: var(--l8-shadow-card);
  transition: transform .24s var(--l8-ease),
              box-shadow .24s var(--l8-ease),
              border-color .24s var(--l8-ease);
}

.l8-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 162, 58, .78);
  box-shadow: 0 28px 52px -36px rgba(20, 16, 15, 1);
}

.l8-card--dark {
  color: var(--l8-cream);
  background: linear-gradient(180deg, #1E1815, var(--l8-ink));
  border-color: rgba(232, 215, 168, .18);
}

.l8-card--dark:hover { border-color: rgba(212, 162, 58, .6); }

/* ------------------------------------------------- 图片容器（基础规则） */
.l8-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(232, 215, 168, .22);
  border-radius: var(--l8-radius-scale);
  background:
    radial-gradient(120% 120% at 16% 10%, rgba(71, 215, 201, .26), transparent 56%),
    radial-gradient(100% 100% at 88% 86%, rgba(198, 34, 46, .38), transparent 62%),
    linear-gradient(160deg, var(--l8-indigo), var(--l8-ink) 72%);
}

.l8-media > img,
.l8-media > svg,
.l8-media > picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l8-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(246, 239, 226, .07) 0 2px, transparent 2px 11px);
}

.l8-media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: .9rem 1rem;
  font-family: var(--l8-font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--l8-cream);
  background: linear-gradient(0deg, rgba(20, 16, 15, .88), rgba(20, 16, 15, 0));
}

.l8-media--square { aspect-ratio: 1 / 1; }
.l8-media--portrait { aspect-ratio: 4 / 5; }
.l8-media--wide { aspect-ratio: 21 / 9; }

/* ------------------------------------------------------------ 网格 */
.l8-grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.l8-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.l8-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.l8-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------------------------------------------------- 面包屑 */
.l8-breadcrumb {
  font-family: var(--l8-font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--l8-charcoal);
}

.l8-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l8-breadcrumb li + li::before {
  content: "/";
  margin-right: .4rem;
  color: rgba(20, 16, 15, .34);
}

.l8-breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 16, 15, .2);
  transition: color .2s var(--l8-ease), border-color .2s var(--l8-ease);
}

.l8-breadcrumb a:hover {
  color: var(--l8-red);
  border-bottom-color: var(--l8-red);
}

.l8-breadcrumb [aria-current="page"] { color: var(--l8-red); }

/* ------------------------------------------------------ 正文容器 */
.l8-prose {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.85;
}

.l8-prose > * + * { margin-top: 1.1em; }
.l8-prose h2 { margin-top: 2.1em; }
.l8-prose h3 { margin-top: 1.7em; }
.l8-prose ul,
.l8-prose ol { padding-left: 1.4em; }
.l8-prose li + li { margin-top: .45em; }

.l8-prose a {
  color: var(--l8-wine);
  text-underline-offset: 3px;
}

.l8-prose blockquote {
  padding: .9rem 1.2rem;
  color: var(--l8-charcoal);
  background: rgba(212, 162, 58, .12);
  border-left: 3px solid var(--l8-gold);
  border-radius: 0 12px 12px 0;
}

/* ------------------------------------------------------ 章节分区 */
.l8-section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.l8-section--dark {
  color: var(--l8-cream);
  background:
    radial-gradient(110% 80% at 88% 0%, rgba(59, 42, 90, .5), transparent 60%),
    var(--l8-ink);
}

.l8-section--teal {
  color: var(--l8-cream);
  background:
    radial-gradient(100% 80% at 8% 4%, rgba(15, 59, 58, .92), transparent 62%),
    var(--l8-teal);
}

.l8-section--split {
  background: linear-gradient(90deg, var(--l8-cream) 0 42%, var(--l8-ink) 42% 100%);
}

.l8-section--dark h2,
.l8-section--dark h3,
.l8-section--teal h2,
.l8-section--teal h3 { color: var(--l8-cream); }

/* ------------------------------------------------------ 滚动揭示协议 */
[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--l8-ease), transform .5s var(--l8-ease);
}

[data-js="on"] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ====================================================================
   响应式
   ==================================================================== */

/* 平板紧凑：导航字号与工具收紧 */
@media (max-width: 1180px) and (min-width: 1081px) {
  .l8-nav__link { font-size: .76rem; padding: .44rem .5rem; }
  .l8-brand__tag { display: none; }
}

/* 移动端导航形态 */
@media (max-width: 1080px) {
  .l8-header__inner {
    flex-wrap: wrap;
    border-radius: 26px;
    padding: .45rem .5rem;
  }

  .l8-brand { order: 1; margin-right: 0; }
  .l8-header__tools { order: 2; margin-left: auto; }
  .l8-navtoggle { order: 3; display: grid; }

  .l8-nav {
    order: 5;
    flex: 1 0 100%;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .34s var(--l8-ease), visibility .34s var(--l8-ease);
  }

  .l8-header[data-open="true"] .l8-nav {
    max-height: 70vh;
    overflow-y: auto;
    visibility: visible;
  }

  .l8-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    padding: .35rem 0 .25rem;
    overflow-x: visible;
  }

  .l8-nav__link {
    padding: .72rem .9rem;
    font-size: .94rem;
    border-radius: 12px 4px 12px 4px;
    white-space: normal;
  }

  .l8-nav__link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--l8-red);
  }

  .l8-header[data-scrolled="true"] .l8-brand__tag { max-height: 1.4em; opacity: 1; }
}

@media (max-width: 900px) {
  .l8-footer__top { grid-template-columns: 1fr; }
  .l8-grid--3,
  .l8-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l8-grid--2 { grid-template-columns: 1fr; }
  .l8-section--split { background: linear-gradient(180deg, var(--l8-cream) 0 50%, var(--l8-ink) 50% 100%); }
}

@media (max-width: 760px) {
  :root { --l8-header-h: 82px; }
  body { padding-top: calc(var(--l8-header-h) + 10px); }
  .l8-chip--search { display: none; }
  .l8-brand__tag { display: none; }
  .l8-navtoggle { width: 40px; height: 40px; }
  .l8-brand__seal { width: 38px; height: 38px; font-size: 1.15rem; }
  .l8-brand__name { font-size: .96rem; }
  .l8-brand--inverse .l8-brand__tag { display: none; }
  .l8-progress { height: 2px; }
}

@media (max-width: 600px) {
  .l8-grid--2,
  .l8-grid--3,
  .l8-grid--4 { grid-template-columns: 1fr; }
  .l8-footer__cols { grid-template-columns: 1fr; }
  .l8-footer__bottom { flex-direction: column; align-items: flex-start; }
  .l8-footer__icp { margin-left: 0; }
  .l8-footer__fixed { padding: .8rem 1rem; }
  .l8-btn { width: 100%; }
  .l8-footer__cta { width: auto; }
}

/* ====================================================================
   动效降级
   ==================================================================== */
@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-js="on"] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .l8-navtoggle__bars,
  .l8-navtoggle__bars::before,
  .l8-navtoggle__bars::after { transition: none !important; }
}
