/* =========================================================
   皇冠真人会馆 · 共享站点样式 /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, figure, blockquote, dl, dd { margin: 0; }

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

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

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

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

table { border-collapse: collapse; border-spacing: 0; }

hr { border: 0; }

/* ---------- 2. 令牌 ---------- */
:root {
  --gold: #C9A227;
  --gold-light: #E6D28A;
  --ink: #0E1B2A;
  --ink-2: #233A52;
  --sand: #F5EFE2;
  --paper: #FBF7EE;
  --stone: #6F746F;
  --moss: #4F6B57;
  --clay: #A86B4C;
  --cinnabar: #B23A2E;

  --font-title: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-num: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .3s;

  --line-gold: rgba(201, 162, 39, .45);
  --line-soft: rgba(111, 116, 111, .22);
  --line-ink: rgba(245, 239, 226, .18);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--sand);
  background-image:
    linear-gradient(to right, rgba(111, 116, 111, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(111, 116, 111, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
}

h1 { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.08; }
h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.2; }

h3 {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

strong { font-weight: 700; }

.num,
.index-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

#main-content { display: block; scroll-margin-top: 128px; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.col-side { grid-column: 1 / span 3; }
.col-main { grid-column: 4 / span 9; }

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(to right, var(--gold), rgba(201, 162, 39, .08));
  margin-block: clamp(26px, 4vw, 48px);
}

.hairline { height: 1px; border: 0; background: var(--line-gold); }

/* ---------- 5. 无障碍跳转 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--gold-light);
  background: var(--ink);
  border: 1px solid var(--gold);
  transform: translateY(-220%);
  transition: transform var(--dur) var(--ease);
}

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

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sand);
  border-bottom: 1px solid rgba(201, 162, 39, .5);
}

/* 顶部索引带 */
.header-rail {
  background: var(--ink);
  border-bottom: 1px solid rgba(201, 162, 39, .45);
}

.header-rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 30px;
  padding-block: 5px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.rail-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rail-label {
  color: var(--gold-light);
  white-space: nowrap;
}

.rail-muted {
  color: rgba(245, 239, 226, .58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-tick {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(230, 210, 138, .45);
  flex: none;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .2);
}

/* 命令栏 */
.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  min-height: 72px;
  padding-block: 10px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  background:
    linear-gradient(135deg, rgba(201, 162, 39, .2), rgba(201, 162, 39, 0) 62%),
    var(--ink);
  border: 1px solid var(--gold);
}

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

.brand-name {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--ink);
}

.brand-tagline {
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--stone);
}

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

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-size: 14.5px;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}

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

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

.nav-link[aria-current="page"] { font-weight: 700; }

/* 右侧操作区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-status {
  display: none;
  align-items: center;
  gap: 7px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--stone);
  white-space: nowrap;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: .06em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

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

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(201, 162, 39, .65);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--gold-light);
  border-color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--sand);
  border-color: var(--ink);
}

.btn-ink:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ink);
  border: 1px solid rgba(201, 162, 39, .65);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: background-color var(--dur) var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 滚动进度金线 */
.scroll-progress {
  height: 2px;
  background: rgba(201, 162, 39, .16);
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--ink);
  color: rgba(245, 239, 226, .76);
  border-top: 3px solid var(--gold);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: clamp(38px, 5vw, 62px);
}

.footer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid rgba(201, 162, 39, .32);
}

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

.footer-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  background: rgba(201, 162, 39, .08);
  border: 1px solid rgba(201, 162, 39, .6);
}

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

.footer-summary {
  margin-top: 6px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(245, 239, 226, .6);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, .4);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(28px, 4vw, 44px);
}

.footer-col { min-width: 0; }

.footer-heading {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-heading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 9px;
  background: var(--gold);
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-link {
  font-size: 14px;
  color: rgba(245, 239, 226, .72);
  transition: color var(--dur) var(--ease);
}

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

.footer-link--contact { word-break: break-all; }

.footer-address {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 239, 226, .52);
}

.footer-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 162, 39, .22);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(245, 239, 226, .5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(201, 162, 39, .28);
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: rgba(245, 239, 226, .5);
}

.footer-copy { color: rgba(245, 239, 226, .5); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a { color: rgba(245, 239, 226, .62); }
.footer-legal a:hover { color: var(--gold-light); }

.footer-icp { color: rgba(245, 239, 226, .45); }

/* ---------- 8. 通用内容组件 ---------- */
.breadcrumb {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(251, 247, 238, .6);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 13px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--stone);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: rgba(201, 162, 39, .8);
}

.breadcrumb-list a:hover { color: var(--ink); }
.breadcrumb-list [aria-current="page"] { color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clay);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-family: var(--font-title);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  color: var(--ink-2);
}

.prose {
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(14, 27, 42, .86);
}

.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2em; }
.prose strong { color: var(--ink); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-num);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.tag-gold { color: var(--gold); }
.tag-moss { color: var(--moss); }
.tag-clay { color: var(--clay); }
.tag-red  { color: var(--cinnabar); }

.side-note {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--stone);
  writing-mode: vertical-rl;
}

.index-list {
  display: grid;
  border-top: 1px solid var(--line-gold);
}

.index-list li { border-bottom: 1px solid var(--line-soft); }

.index-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  font-size: 14px;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}

.index-link:hover { color: var(--cinnabar); }

.index-num {
  display: inline-block;
  min-width: 24px;
  font-size: 11px;
  color: var(--gold);
}

.paper {
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid rgba(201, 162, 39, .42);
  box-shadow:
    5px 5px 0 -1px var(--sand),
    5px 5px 0 0 rgba(168, 107, 76, .45);
}

/* 图片容器基础 */
.media {
  display: grid;
  gap: 10px;
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, .12), rgba(201, 162, 39, 0) 58%),
    var(--ink);
  border: 1px solid rgba(201, 162, 39, .42);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(230, 210, 138, .16);
  pointer-events: none;
}

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

.media-caption {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--stone);
}

/* 可展开内容组 */
.disclosure {
  border-top: 1px solid var(--line-soft);
}

.disclosure-item { border-bottom: 1px solid var(--line-soft); }

.disclosure-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}

.disclosure-btn:hover { color: var(--ink-2); }

.disclosure-btn::after {
  content: "+";
  flex: none;
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  transition: transform var(--dur) var(--ease);
}

.disclosure-item[data-open] .disclosure-btn::after {
  content: "−";
  transform: rotate(180deg);
}

.disclosure-panel {
  height: 0;
  overflow: hidden;
  transition: height var(--dur) var(--ease);
}

.disclosure-inner {
  padding: 0 2px 18px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(14, 27, 42, .82);
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid rgba(201, 162, 39, .42);
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 14.5px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.data-table thead th {
  background: rgba(79, 107, 87, .1);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--moss);
  white-space: nowrap;
}

.data-table tbody tr { transition: background-color var(--dur) var(--ease); }
.data-table tbody tr:hover { background: rgba(201, 162, 39, .07); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 9. 响应式 ---------- */
@media (min-width: 1181px) {
  .header-status { display: inline-flex; }
}

@media (max-width: 1180px) {
  .header-cta--secondary { display: none; }
  .nav-link { padding-inline: 9px; font-size: 14px; }
  .nav-link::after { left: 9px; right: 9px; }
}

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    padding: 6px var(--gutter) 22px;
    background: var(--paper);
    border-top: 1px solid var(--line-gold);
    border-bottom: 1px solid var(--gold);
    box-shadow: 0 18px 32px -24px rgba(14, 27, 42, .55);
  }

  .site-header[data-open] .site-nav { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link::after {
    left: 0;
    right: auto;
    width: 26px;
    bottom: 8px;
  }

  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-side { grid-column: 1 / -1; }
  .col-main { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .header-rail-inner > .rail-group:last-child { display: none; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; }
}

@media (max-width: 560px) {
  .header-bar { gap: 10px; }
  .header-cta { display: none; }
  .brand-tagline { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .paper { box-shadow: 4px 4px 0 -1px var(--sand), 4px 4px 0 0 rgba(168, 107, 76, .42); }
}

/* ---------- 10. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .disclosure-panel { transition: none; }
}
