/* =========================================================
   尊龙A9旗舰厅 · 共享样式 /assets/site.css
   1 reset  2 变量与基础排版  3 通用组件  4 页头  5 页脚
   6 响应式  7 无障碍与动效偏好
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #0B0D10;
  scroll-behavior: smooth;
}

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

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

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

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

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

a { color: inherit; text-decoration: none; }

table { width: 100%; border-collapse: collapse; }

/* 2 变量与基础排版 ----------------------------------------- */
:root {
  --ink: #0B0D10;
  --ink-2: #14181F;
  --graphite: #1E242C;
  --gold: #C8A24A;
  --gold-light: #EFD9A3;
  --cinnabar: #C0392B;
  --cinnabar-deep: #8E2A20;
  --jade: #3FA79C;
  --paper: #F2EDE4;
  --silver: #9AA1A9;

  --line: rgba(200, 162, 74, 0.26);
  --line-soft: rgba(242, 237, 228, 0.10);

  --shell: 1240px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --font-title: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-body: "Inter", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, "Courier New", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.03em;
}

strong { color: var(--gold-light); font-weight: 600; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--gold-light);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

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

/* 3 通用组件 ----------------------------------------------- */
.shell {
  width: min(var(--shell), 100% - 48px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
}

.section-head { max-width: 62ch; margin-bottom: 34px; }

.section-title {
  font-size: clamp(28px, 4.4vw, 48px);
  color: var(--paper);
}

.section-lead {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--silver);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.index-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.rule {
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 162, 74, 0));
}

.stack { display: flex; flex-direction: column; gap: 18px; }

.blueprint-grid { position: relative; }

.blueprint-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.55;
}

.grid { display: grid; gap: 22px; }

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

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

.card {
  position: relative;
  display: block;
  padding: 26px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card--link { display: block; }

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 44px -26px rgba(200, 162, 74, 0.55);
}

.card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.card__title {
  margin-top: 10px;
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.42;
  color: var(--paper);
}

.card__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--silver);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(200, 162, 74, 0.08);
  color: var(--gold-light);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.tag--red {
  border-color: rgba(192, 57, 43, 0.5);
  background: rgba(192, 57, 43, 0.16);
  color: #F1AAA1;
}

.tag--jade {
  border-color: rgba(63, 167, 156, 0.5);
  background: rgba(63, 167, 156, 0.15);
  color: #93DAD3;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-light));
  color: #14181F;
}

.btn--gold:hover { transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--line);
  background: rgba(200, 162, 74, 0.06);
  color: var(--gold-light);
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(200, 162, 74, 0.14);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--silver);
}

.crumbs li { display: flex; align-items: center; gap: 10px; }

.crumbs li + li::before {
  content: "/";
  color: var(--gold);
  opacity: 0.65;
}

.crumbs a:hover { color: var(--gold-light); }

.crumbs [aria-current="page"] { color: var(--gold-light); }

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--paper);
}

.prose p + p { margin-top: 1.1em; }

.prose h2,
.prose h3 {
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  color: var(--paper);
}

.prose h2 { font-size: 26px; }

.prose h3 { font-size: 20px; }

.prose ul { margin-top: 0.8em; display: flex; flex-direction: column; gap: 8px; }

.prose li {
  position: relative;
  padding-left: 20px;
  color: var(--silver);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

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

.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink-2), var(--graphite));
}

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 21 / 9; }

.media--tall { aspect-ratio: 4 / 5; }

.media--square { aspect-ratio: 1 / 1; }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(11, 13, 16, 0), rgba(11, 13, 16, 0.88));
}

.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

.reveal--lag { transition-delay: 0.12s; }

.has-js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

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

/* 4 页头 --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 13, 16, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-rail {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, var(--ink-2), rgba(30, 36, 44, 0.55));
}

.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-block: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--silver);
}

.rail-brand { display: flex; align-items: center; gap: 10px; }

.rail-name {
  color: var(--gold-light);
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.rail-sep {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}

.rail-desc { white-space: nowrap; }

.rail-meta { display: flex; align-items: center; gap: 18px; }

.rail-item { white-space: nowrap; }

.rail-link {
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.rail-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.rail-status { display: flex; align-items: center; gap: 8px; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 4px rgba(63, 167, 156, 0.16);
}

.status-text {
  color: var(--gold-light);
  letter-spacing: 0.12em;
}

.header-main { position: relative; }

.main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(200, 162, 74, 0.24), rgba(11, 13, 16, 0.92));
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }

.brand-name {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--silver);
}

.site-nav { display: block; }

.nav-list { display: flex; align-items: center; gap: 24px; }

.nav-link {
  position: relative;
  display: block;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--silver);
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover { color: var(--paper); }

.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--gold-light); }

.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(200, 162, 74, 0.07);
  color: var(--gold-light);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.25s 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(4.25px) rotate(45deg); }

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

.nav-toggle-text { line-height: 1; }

.header-scanline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold) 45%, var(--gold-light));
  opacity: 0.9;
  transition: transform 0.12s linear;
}

/* 5 页脚 --------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink);
  border-top: 1px solid var(--line);
  color: var(--silver);
}

.footer-ornament {
  position: relative;
  height: 46px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(200, 162, 74, 0.16) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}

.footer-ornament::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    repeating-linear-gradient(45deg, rgba(200, 162, 74, 0.22) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(-45deg, rgba(200, 162, 74, 0.22) 0 1px, transparent 1px 16px);
}

.footer-ornament::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 162, 74, 0), var(--gold), rgba(200, 162, 74, 0));
}

.footer-inner { padding-block: 54px 26px; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand { display: flex; align-items: center; gap: 14px; }

.footer-brand-text { display: flex; flex-direction: column; gap: 3px; }

.footer-brand-name {
  font-family: var(--font-title);
  font-size: 24px;
  letter-spacing: 0.12em;
  color: var(--paper);
}

.footer-brand-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--silver);
}

.footer-note {
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-block: 36px 30px;
}

.footer-col {
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}

.footer-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.footer-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14.5px;
  color: var(--silver);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-item-plain {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.footer-address {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.75;
}

.footer-contact-item {
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact-key {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.footer-meta { color: var(--silver); }

/* 6 响应式 ------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-list { gap: 16px; }
  .nav-link { font-size: 14.5px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px -30px rgba(0, 0, 0, 0.95);
  }

  .site-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: row;
    gap: 8px;
    padding: 14px 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list li { flex: 0 0 auto; scroll-snap-align: start; }

  .nav-link {
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(242, 237, 228, 0.03);
    font-size: 14px;
    white-space: nowrap;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    background: linear-gradient(120deg, var(--gold), var(--gold-light));
    border-color: transparent;
    color: var(--ink);
  }

  .main-inner { padding-block: 12px; }

  .brand-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 14px; }

  .brand-name { font-size: 20px; }
}

@media (max-width: 760px) {
  .rail-inner { gap: 10px; font-size: 11px; letter-spacing: 0.06em; }
  .rail-meta { gap: 12px; }
  .footer-note { max-width: none; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }

  .rail-desc,
  .rail-item--icp { display: none; }

  .brand-sub { display: none; }

  .footer-inner { padding-block: 40px 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-block: 28px 22px; }

  .footer-col {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .card { padding: 22px 18px; }
}

/* 7 无障碍与动效偏好 --------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .card:hover,
  .card:focus-within { transform: none; }
}
