/* =========================================================
   尊龙手机版 · 官方主页
   共享站点样式 /assets/site.css
   东方未来主义：墨夜底 · 鎏金 · 朱砂 · 青玉
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

ul, ol { list-style: none; padding: 0; }

img, svg, video { 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%; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0B0F;
  --ink-2: #14141C;
  --ink-3: #1C1C26;
  --gold: #D4A34A;
  --gold-hi: #F2D08A;
  --cinnabar: #C8382E;
  --jade: #2FA79B;
  --silver: #E8E6E1;
  --silver-2: #9A97A0;
  --line: #6A5327;
  --line-soft: rgba(106, 83, 39, .5);
  --paper: #F7F3E8;
  --blood: #3A1414;

  --bar-h: 66px;
  --shell: 1280px;
  --gutter: clamp(16px, 4.4vw, 40px);

  --font-display: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-body: 'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC', system-ui, -apple-system, 'Microsoft YaHei', sans-serif;
  --font-num: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);

  --scale-image:
    radial-gradient(circle 11px at 50% 100%, rgba(212, 163, 74, 0) 0 9.4px, rgba(212, 163, 74, .11) 9.8px 10.6px, rgba(212, 163, 74, 0) 11px),
    radial-gradient(circle 11px at 50% 100%, rgba(212, 163, 74, 0) 0 9.4px, rgba(212, 163, 74, .07) 9.8px 10.6px, rgba(212, 163, 74, 0) 11px);
}

/* ---------- 3. 排版与页面底色 ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 18px);
  background-color: var(--ink);
  background-image:
    radial-gradient(72vw 46vw at 84% -10%, rgba(212, 163, 74, .11), transparent 68%),
    radial-gradient(58vw 40vw at 6% 1%, rgba(200, 56, 46, .11), transparent 70%);
  background-repeat: no-repeat;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background: transparent;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--scale-image);
  background-size: 22px 13px, 22px 13px;
  background-position: 0 0, 11px 6.5px;
  opacity: .9;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: .02em;
  color: var(--paper);
}

p { text-wrap: pretty; }

strong { color: var(--gold-hi); font-weight: 700; }

::selection { background: rgba(200, 56, 46, .45); color: var(--paper); }

/* ---------- 4. 焦点、动效降级、跳转链接 ---------- */
:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: var(--gutter);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--gold);
  font-size: 13px;
  letter-spacing: .14em;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 12px; }

#main-content { scroll-margin-top: calc(var(--bar-h) + 14px); }

/* ---------- 5. 布局工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.grid--split { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }

.stack { display: block; }
.stack > * + * { margin-top: var(--stack-gap, 18px); }

.prose {
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .04em;
  color: rgba(232, 230, 225, .9);
}

.prose > * + * { margin-top: 1.2em; }

.prose h2,
.prose h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--silver);
  letter-spacing: .03em;
}

.prose a {
  color: var(--gold-hi);
  border-bottom: 1px solid var(--line);
}

.prose a:hover { border-bottom-color: var(--gold-hi); }

/* ---------- 6. 章节与取景框 ---------- */
.section { position: relative; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-bottom: clamp(16px, 2.6vw, 26px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.section__index {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--gold);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 38px);
  color: var(--paper);
}

.section__note {
  margin-left: auto;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--silver-2);
}

.frame-box {
  position: relative;
  padding: clamp(18px, 3.4vw, 34px);
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(20, 20, 28, .94), rgba(11, 11, 15, .94));
}

.frame-box::before,
.frame-box::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  pointer-events: none;
}

.frame-box::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.frame-box::after {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
}

.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  white-space: nowrap;
}

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--silver-2);
}

.crumbs__item { display: inline-flex; align-items: center; }

.crumbs__item::after {
  content: "／";
  margin-left: 6px;
  color: var(--line);
}

.crumbs__item:last-child::after { content: ""; }

.crumbs__link { color: var(--silver-2); transition: color .2s var(--ease); }

.crumbs__link:hover { color: var(--gold-hi); }

/* ---------- 8. 图片容器（页面阶段放 <img alt>） ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink-3), var(--ink));
  border: 1px solid var(--line-soft);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--scale-image);
  background-size: 22px 13px, 22px 13px;
  background-position: 0 0, 11px 6.5px;
  opacity: .6;
}

.media > img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media--frame {
  padding: 10px;
  background: linear-gradient(155deg, rgba(20, 20, 28, .97), rgba(11, 11, 15, .97));
}

.media--frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 2;
  border: 1px solid var(--line);
  pointer-events: none;
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: .14em;
  text-align: center;
  transition: color .22s var(--ease), border-color .22s var(--ease),
              box-shadow .22s var(--ease), background-color .22s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  color: var(--gold-hi);
  border-color: var(--gold);
}

.btn--gold {
  color: var(--gold-hi);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 163, 74, .16), rgba(212, 163, 74, .04));
  box-shadow: 0 0 10px rgba(212, 163, 74, .12);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  box-shadow: 0 0 24px rgba(212, 163, 74, .38);
}

/* =========================================================
   10. 头部：紧凑命令栏
   ========================================================= */
.command-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(11, 11, 15, .97), rgba(20, 20, 28, .93));
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.command-bar__frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  width: 100%;
  max-width: var(--shell);
  min-height: var(--bar-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.command-bar__progress {
  position: absolute;
  right: var(--gutter);
  bottom: -1px;
  left: var(--gutter);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold), var(--gold-hi));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s linear;
  pointer-events: none;
}

/* 品牌 */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 4px 4px 4px 0;
}

.brand-mark__seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold));
  color: var(--ink);
  border: 1px solid var(--gold-hi);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  box-shadow: 0 0 20px rgba(212, 163, 74, .3);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}

.brand-mark__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--gold-hi);
}

.brand-mark__sub {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--silver-2);
}

/* 导航 */
.command-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.command-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, .8vw, 12px);
  flex-wrap: nowrap;
}

.command-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(8px, 1vw, 14px);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--silver-2);
  white-space: nowrap;
  transition: color .2s var(--ease), box-shadow .2s var(--ease);
}

.command-nav__link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cinnabar);
  transform: translateX(-50%);
  transition: width .24s var(--ease);
}

.command-nav__link:hover {
  color: var(--gold-hi);
  box-shadow: inset 0 0 0 1px var(--line);
}

.command-nav__link[aria-current="page"] { color: var(--gold-hi); }

.command-nav__link[aria-current="page"]::after { width: 18px; }

/* 尾部 */
.command-bar__tail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  background: rgba(47, 167, 155, .09);
  color: var(--silver-2);
  font-size: 12px;
  letter-spacing: .1em;
  white-space: nowrap;
}

.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 8px rgba(47, 167, 155, .9);
  animation: jade-pulse .4s var(--ease) 1;
}

@keyframes jade-pulse {
  0% { transform: scale(.7); opacity: .5; }
  60% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.command-bar__cta {
  min-height: 48px;
  padding: 0 16px;
  font-size: 14px;
  letter-spacing: .12em;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  color: var(--silver);
  font-size: 13px;
  letter-spacing: .14em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover { border-color: var(--gold); color: var(--gold-hi); }

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(5.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* =========================================================
   11. 页脚
   ========================================================= */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 9vw, 110px);
  background: linear-gradient(180deg, rgba(20, 20, 28, .88), rgba(11, 11, 15, .99));
  border-top: 1px solid var(--line-soft);
  color: var(--silver-2);
}

.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-image: repeating-linear-gradient(90deg,
    transparent 0 7px,
    rgba(212, 163, 74, .45) 7px 8px,
    transparent 8px 15px);
  opacity: .7;
  pointer-events: none;
}

.site-foot__frame {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) var(--gutter) clamp(24px, 4vw, 40px);
}

.site-foot__brand {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--cinnabar);
}

.foot-brand__seal {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  background: linear-gradient(150deg, var(--gold-hi), var(--gold));
  color: var(--ink);
  border: 1px solid var(--gold-hi);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
}

.foot-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--paper);
}

.foot-brand__desc {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold);
}

.foot-brand__meta {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--silver-2);
}

.site-foot__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.foot-col__title {
  display: block;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--gold);
}

.foot-col__list { display: block; }

.foot-col__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--silver-2);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.foot-col__link:hover,
.foot-col__link:focus-visible {
  color: var(--gold-hi);
  padding-left: 6px;
}

.site-foot__base {
  border-top: 1px solid rgba(106, 83, 39, .38);
  background: rgba(11, 11, 15, .72);
}

.site-foot__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--silver-2);
}

.foot-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.foot-contact span { white-space: nowrap; }

.foot-legal {
  color: var(--silver-2);
  white-space: nowrap;
}

/* ---------- 12. 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: clamp(14px, 4vw, 28px);
  bottom: calc(clamp(14px, 4vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 20, 28, .95), rgba(11, 11, 15, .95));
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .24s var(--ease), transform .24s var(--ease),
              visibility .24s, border-color .2s var(--ease), color .2s var(--ease);
}

.back-to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  border-color: var(--gold-hi);
  color: var(--gold-hi);
}

/* ---------- 13. 显现与目录跟随 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.has-js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

[data-toc-link] { transition: color .2s var(--ease); }

[data-toc-link][data-active] { color: var(--gold-hi); }

/* =========================================================
   14. 响应式
   ========================================================= */
@media (max-width: 1120px) {
  .command-nav__link {
    padding: 0 8px;
    font-size: 13px;
    letter-spacing: .06em;
  }
}

@media (max-width: 980px) {
  :root { --bar-h: 60px; }

  .status-chip { display: none; }

  .nav-toggle { display: inline-flex; }

  .command-nav {
    position: fixed;
    top: var(--bar-h);
    right: 0;
    left: 0;
    z-index: 79;
    display: block;
    max-height: calc(100dvh - var(--bar-h));
    overflow-y: auto;
    padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(20, 20, 28, .99), rgba(11, 11, 15, .99));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px rgba(0, 0, 0, .62);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }

  .command-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .command-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
  }

  .command-nav__link {
    min-height: 54px;
    padding: 0 4px;
    font-size: 16px;
    letter-spacing: .1em;
    border-bottom: 1px solid rgba(106, 83, 39, .28);
    box-shadow: none;
  }

  .command-nav__link::after {
    top: 50%;
    bottom: auto;
    left: 0;
    width: 0;
    height: 20px;
    transform: translateY(-50%);
    transition: width .24s var(--ease);
  }

  .command-nav__link[aria-current="page"]::after { width: 3px; }

  .site-foot__frame {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--two,
  .grid--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }

  .brand-mark__seal { width: 34px; height: 34px; font-size: 17px; }

  .brand-mark__name { font-size: 15.5px; }

  .command-bar__cta { padding: 0 13px; letter-spacing: .08em; }

  .foot-contact { gap: 4px 14px; }
}

@media (max-width: 520px) {
  .brand-mark__sub { display: none; }

  .nav-toggle__label { display: none; }

  .nav-toggle { padding: 0 12px; }

  .foot-legal { white-space: normal; }

  .media--frame { padding: 7px; }
}

/* ---------- 15. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .status-chip::before { animation: none; }

  .command-bar__progress { transition: none; }
}
