/* ============================================================
   尊龙官网手机版 — 共享站点样式 /assets/site.css
   层次：reset → 变量 → 中文排版 → 容器与网格 → 通用组件
        → 头部 → 移动抽屉 → 页脚 → 响应式 → 无障碍动画
   ============================================================ */

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

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

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

ul, ol { list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:root {
  /* 色彩：石墨黑 / 岩灰 / 冷银灰 基底，朱砂红与琥珀金强调，深青与釉蓝区隔 */
  --zl-ink: #121417;
  --zl-ink-2: #23272C;
  --zl-silver: #C8CED6;
  --zl-cream: #F3F0E9;
  --zl-sand: #E4DCCB;
  --zl-cinnabar: #A8321F;
  --zl-cinnabar-deep: #8E2A19;
  --zl-amber: #C9922E;
  --zl-teal: #0F4C5C;
  --zl-glaze: #2E6F8E;
  --zl-moss: #5A6B4A;

  --zl-line: rgba(35, 39, 44, 0.16);
  --zl-line-strong: rgba(35, 39, 44, 0.32);
  --zl-line-dark: rgba(200, 206, 214, 0.18);
  --zl-mute: rgba(200, 206, 214, 0.68);

  /* 尺寸与节奏 */
  --zl-shell: 1320px;
  --zl-gutter: clamp(20px, 4vw, 48px);
  --zl-header-h: 76px;
  --zl-header-h-compact: 62px;
  --zl-space-1: 16px;
  --zl-space-2: 32px;
  --zl-space-3: 64px;
  --zl-space-4: 96px;
  --zl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 字体 */
  --zl-font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --zl-font-ui: var(--zl-font-title);
  --zl-font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --zl-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 基础排版 ---------- */
body {
  font-family: var(--zl-font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--zl-ink);
  background-color: var(--zl-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--zl-font-title);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 5.2vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }
h4 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 800; }

.zl-ui {
  font-family: var(--zl-font-ui);
  line-height: 1.6;
}

.zl-mono {
  font-family: var(--zl-font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 0.88em;
  letter-spacing: 0.02em;
}

.zl-prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
}

.zl-prose p + p { margin-top: 1.2em; }
.zl-prose h2, .zl-prose h3 { margin-top: 1.6em; margin-bottom: 0.6em; }
.zl-prose ul, .zl-prose ol { margin: 1.2em 0; padding-left: 1.4em; }
.zl-prose li { list-style: none; position: relative; padding-left: 1.1em; }
.zl-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--zl-cinnabar);
}
.zl-prose a { color: var(--zl-teal); border-bottom: 1px solid var(--zl-glaze); }
.zl-prose a:hover { color: var(--zl-cinnabar); border-bottom-color: var(--zl-cinnabar); }
.zl-prose strong { font-weight: 700; }

/* ---------- 容器与主区 ---------- */
.zl-shell {
  width: 100%;
  max-width: var(--zl-shell);
  margin-inline: auto;
  padding-inline: var(--zl-gutter);
}

#main-content {
  display: block;
  padding-top: var(--zl-header-h);
}

#main-content[data-overlay] { padding-top: 0; }

/* ---------- 通用按钮 ---------- */
.zl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--zl-font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--zl-ease), color 0.2s var(--zl-ease), border-color 0.2s var(--zl-ease);
}

.zl-btn--primary { background-color: var(--zl-cinnabar); color: var(--zl-cream); }
.zl-btn--primary:hover { background-color: var(--zl-cinnabar-deep); }

.zl-btn--ghost { border-color: var(--zl-line-strong); color: var(--zl-ink); }
.zl-btn--ghost:hover { border-color: var(--zl-cinnabar); color: var(--zl-cinnabar); }

.zl-btn--light { border-color: var(--zl-line-dark); color: var(--zl-cream); }
.zl-btn--light:hover { border-color: var(--zl-amber); color: var(--zl-amber); }

.zl-btn--sm { padding: 9px 14px; font-size: 13px; }

.zl-btn--cut {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* ---------- 档案式标头与面包屑 ---------- */
.zl-eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--zl-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--zl-cinnabar);
}

.zl-index {
  font-family: var(--zl-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--zl-glaze);
}

.zl-crumb { margin-bottom: var(--zl-space-2); }
.zl-crumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zl-crumb__item { display: inline-flex; align-items: center; gap: 8px; }
.zl-crumb__link {
  font-family: var(--zl-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--zl-ink-2);
  border-bottom: 1px solid transparent;
}
.zl-crumb__link:hover { color: var(--zl-cinnabar); border-bottom-color: var(--zl-cinnabar); }
.zl-crumb__sep { color: var(--zl-line-strong); font-family: var(--zl-font-mono); font-size: 12px; }
.zl-crumb__item[aria-current="page"] .zl-crumb__link { color: var(--zl-teal); }

/* ---------- Bento 模块板 ---------- */
.zl-board {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: var(--zl-space-2);
}

.zl-tile { grid-column: span 4; min-width: 0; }
.zl-tile--1x1 { grid-column: span 4; }
.zl-tile--2x1 { grid-column: span 8; }
.zl-tile--3x1 { grid-column: span 12; }
.zl-tile--2x2 { grid-column: span 8; }
.zl-tile--full { grid-column: 1 / -1; }

/* ---------- 实色内容层 ---------- */
.zl-panel {
  padding: var(--zl-space-2);
  background-color: var(--zl-sand);
}

.zl-panel--dark { background-color: var(--zl-ink); color: var(--zl-cream); }
.zl-panel--data { background-color: var(--zl-teal); color: var(--zl-cream); }
.zl-panel--data .zl-eyebrow,
.zl-panel--data .zl-index { color: var(--zl-amber); }

.zl-panel--line {
  background-color: transparent;
  border-top: 1px solid var(--zl-line);
  padding: var(--zl-space-2) 0 0;
}

.zl-panel--dark .zl-prose a, .zl-panel--data .zl-prose a { color: var(--zl-amber); border-bottom-color: var(--zl-amber); }

/* ---------- 图片容器（页面阶段放入 img / picture） ---------- */
.zl-figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background-color: var(--zl-ink-2);
  aspect-ratio: 16 / 9;
}

.zl-figure > img,
.zl-figure > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.zl-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 20, 23, 0) 45%, rgba(18, 20, 23, 0.58) 100%);
}

.zl-figure--plain::after { display: none; }
.zl-figure--band { aspect-ratio: 21 / 9; }
.zl-figure--portrait { aspect-ratio: 3 / 4; }
.zl-figure--square { aspect-ratio: 1 / 1; }

.zl-figure__cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 1;
  font-family: var(--zl-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--zl-cream);
}

/* ---------- 统一折叠组件 ---------- */
.zl-disclosure { border-top: 1px solid var(--zl-line); }

.zl-disclosure__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  font-family: var(--zl-font-ui);
  font-size: 17px;
  font-weight: 700;
  color: var(--zl-ink);
  transition: color 0.2s var(--zl-ease);
}

.zl-disclosure__trigger:hover { color: var(--zl-cinnabar); }

.zl-disclosure__trigger::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.22s var(--zl-ease);
}

.zl-disclosure[data-open] .zl-disclosure__trigger::after { transform: rotate(-45deg); }

.zl-disclosure__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s var(--zl-ease);
}

.zl-disclosure[data-open] .zl-disclosure__panel { grid-template-rows: 1fr; }

.zl-disclosure__inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s var(--zl-ease);
}

.zl-disclosure[data-open] .zl-disclosure__inner { opacity: 1; }

/* ---------- 显现动画 ---------- */
.zl-reveal { opacity: 1; }

.zl-has-js .zl-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--zl-ease), transform 0.5s var(--zl-ease);
}

.zl-has-js .zl-reveal.is-inview { opacity: 1; transform: none; }

/* ============================================================
   头部：透明叠加 → 石墨黑实色窄条
   ============================================================ */
.zl-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 400;
  padding: 10px 16px;
  background-color: var(--zl-ink);
  color: var(--zl-cream);
  font-family: var(--zl-font-ui);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--zl-ease);
}

.zl-skip:focus { transform: translateY(0); }

.zl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  color: var(--zl-cream);
  background-image: linear-gradient(180deg, rgba(18, 20, 23, 0.74) 0%, rgba(18, 20, 23, 0.14) 72%, rgba(18, 20, 23, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.24s var(--zl-ease), border-color 0.24s var(--zl-ease), backdrop-filter 0.24s var(--zl-ease);
}

.zl-header__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 9fr) minmax(0, 3fr);
  align-items: center;
  gap: 24px;
  min-height: var(--zl-header-h);
  transition: min-height 0.24s var(--zl-ease);
}

.zl-header.is-solid {
  background-image: none;
  background-color: rgba(18, 20, 23, 0.96);
  border-bottom-color: var(--zl-line-dark);
  backdrop-filter: blur(10px);
}

.zl-header.is-solid .zl-header__inner { min-height: var(--zl-header-h-compact); }

/* 阅读进度线 */
.zl-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--zl-progress, 0));
  transform-origin: left center;
  background-image: linear-gradient(90deg, var(--zl-cinnabar), var(--zl-amber));
  transition: transform 0.12s linear;
}

/* 品牌 */
.zl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.zl-brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  font-family: var(--zl-font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--zl-cream);
  background-color: var(--zl-cinnabar);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.zl-brand__mark--lg { width: 46px; height: 46px; font-size: 15px; margin-bottom: 18px; }

.zl-brand__text { display: flex; flex-direction: column; min-width: 0; }

.zl-brand__name {
  font-family: var(--zl-font-title);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.zl-brand__tagline {
  font-family: var(--zl-font-ui);
  font-size: 11px;
  line-height: 1.5;
  color: var(--zl-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 导航 */
.zl-nav { display: block; }

.zl-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}

.zl-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 11px;
  font-family: var(--zl-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--zl-silver);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--zl-ease), border-color 0.2s var(--zl-ease);
}

.zl-nav__link:hover { color: var(--zl-cream); border-bottom-color: rgba(200, 206, 214, 0.5); }

.zl-nav__link[aria-current="page"] {
  color: var(--zl-cream);
  border-bottom-color: var(--zl-cinnabar);
}

.zl-nav__link[aria-current="page"]::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background-color: var(--zl-moss);
}

.zl-nav__idx {
  font-family: var(--zl-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(200, 206, 214, 0.54);
}

.zl-nav__link[aria-current="page"] .zl-nav__idx { color: var(--zl-cinnabar); }

.zl-nav__cta { display: none; }

.zl-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* 移动导航按钮 */
.zl-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--zl-line-dark);
  color: var(--zl-cream);
  font-family: var(--zl-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.zl-navtoggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.zl-navtoggle__bars i {
  display: block;
  height: 1px;
  background-color: currentColor;
  transition: transform 0.22s var(--zl-ease), opacity 0.22s var(--zl-ease);
}

.zl-header[data-nav-open] .zl-navtoggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.zl-header[data-nav-open] .zl-navtoggle__bars i:nth-child(2) { opacity: 0; }
.zl-header[data-nav-open] .zl-navtoggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   页脚：档案底页
   ============================================================ */
.zl-footer {
  margin-top: var(--zl-space-4);
  background-color: var(--zl-ink);
  color: var(--zl-silver);
  font-family: var(--zl-font-ui);
  background-image:
    repeating-linear-gradient(45deg, rgba(200, 206, 214, 0.04) 0 1px, transparent 1px 12px);
}

.zl-footer__top {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: var(--zl-space-2);
  padding: clamp(56px, 7vw, 96px) 0 48px;
}

.zl-footer__brand { grid-column: span 5; }

.zl-footer__name {
  font-family: var(--zl-font-title);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.2;
  color: var(--zl-cream);
}

.zl-footer__tagline {
  margin-top: 10px;
  font-size: 13px;
  color: var(--zl-mute);
}

.zl-footer__meta {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--zl-amber);
}

.zl-footer__col { grid-column: span 2; }

.zl-footer__coltitle {
  font-family: var(--zl-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(200, 206, 214, 0.6);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--zl-line-dark);
}

.zl-footer__list { margin-top: 14px; display: grid; gap: 10px; }

.zl-footer__link {
  position: relative;
  font-size: 14px;
  color: var(--zl-silver);
  transition: color 0.2s var(--zl-ease), padding-left 0.2s var(--zl-ease);
}

.zl-footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background-color: var(--zl-cinnabar);
  transition: width 0.2s var(--zl-ease);
}

.zl-footer__link:hover { color: var(--zl-cream); padding-left: 16px; }
.zl-footer__link:hover::before { width: 10px; }

.zl-footer__contact { grid-column: span 5; }

.zl-contact { margin-top: 14px; }

.zl-contact__line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--zl-line-dark);
}

.zl-contact__k { font-size: 13px; color: rgba(200, 206, 214, 0.6); }
.zl-contact__v { font-size: 14px; color: var(--zl-cream); word-break: break-word; }

.zl-footer__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--zl-mute);
}

.zl-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--zl-line-dark);
}

.zl-footer__legaline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--zl-mute);
}

.zl-footer__dot { color: var(--zl-moss); }

.zl-footer__bottomnote {
  font-size: 12px;
  color: rgba(200, 206, 214, 0.52);
  max-width: 46ch;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1120px) {
  .zl-header__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr) auto; gap: 16px; }
  .zl-nav__link { padding: 10px 8px; font-size: 13px; }
  .zl-nav__idx { display: none; }
  .zl-footer__brand { grid-column: span 6; }
  .zl-footer__col { grid-column: span 3; }
  .zl-footer__contact { grid-column: span 16; }
}

@media (max-width: 880px) {
  :root { --zl-header-h: 64px; --zl-header-h-compact: 56px; }

  #main-content { padding-top: var(--zl-header-h); }

  .zl-header__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .zl-brand__tagline { display: none; }
  .zl-header__actions .zl-btn { display: none; }
  .zl-navtoggle { display: inline-flex; }

  /* 右滑抽屉 */
  .zl-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 360px);
    padding: calc(var(--zl-header-h) + 28px) 24px 40px;
    background-color: var(--zl-ink);
    border-left: 1px solid var(--zl-line-dark);
    overflow-y: auto;
    z-index: 1;
    transform: translateX(101%);
    transition: transform 0.32s var(--zl-ease);
  }

  .zl-nav[data-open] { transform: translateX(0); }

  .zl-header[data-nav-open]::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: rgba(18, 20, 23, 0.6);
  }

  .zl-nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .zl-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 16px 2px;
    font-size: 17px;
    font-weight: 700;
    color: var(--zl-silver);
    border-bottom: 1px solid var(--zl-line-dark);
  }

  .zl-nav__idx { display: inline; font-size: 12px; }

  .zl-nav__cta { display: block; margin-top: 28px; }
  .zl-nav__cta .zl-btn { width: 100%; }

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

  .zl-board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .zl-tile, .zl-tile--1x1, .zl-tile--2x1, .zl-tile--3x1, .zl-tile--2x2 { grid-column: 1 / -1; }

  .zl-footer { margin-top: var(--zl-space-3); }
  .zl-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: 56px 0 32px; }
  .zl-footer__brand { grid-column: 1 / -1; }
  .zl-footer__col { grid-column: span 1; }
  .zl-footer__contact { grid-column: 1 / -1; }
  .zl-contact__line { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .zl-footer__bottomnote { max-width: none; }
}

@media (max-width: 640px) {
  :root { --zl-gutter: 20px; }
  body { font-size: 16px; }
  .zl-btn { padding: 11px 16px; }
  .zl-panel { padding: 24px 20px; }
  .zl-disclosure__trigger { font-size: 16px; padding: 18px 0; }
  .zl-figure--band { aspect-ratio: 16 / 9; }
  .zl-brand__name { font-size: 15px; }
}

/* ============================================================
   焦点与动效偏好
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--zl-amber);
  outline-offset: 2px;
}

.zl-panel--dark :focus-visible,
.zl-panel--data :focus-visible,
.zl-footer :focus-visible { outline-color: var(--zl-cream); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .zl-has-js .zl-reveal { opacity: 1; transform: none; }
  .zl-progress { transition: none; }
  .zl-nav { transition: none; }
}
