/* ============================================================
   鸿运国际站 · 共享样式表 /assets/site.css
   夜航墨底 + 深酒红轨道 + 鎏金编号 · 粗野主义数据地图
   ============================================================ */

/* ---------- 1. 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, blockquote, dl, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

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

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

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

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

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 品牌色 */
  --wine: #4A0E1E;
  --wine-soft: #7B1E38;
  --gold: #D8A94A;
  --gold-bright: #F2D386;
  --neon: #21D4C2;
  --harbor: #2F6BA8;
  --violet: #6C4BE8;

  /* 中性 */
  --ink: #17151C;
  --ink-2: #201D26;
  --paper: #F4F1EC;
  --gray-gold: #B9A98A;
  --text-dark: #1E1B22;
  --line: #2C2833;

  /* 字体 */
  --font-head: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 字号 */
  --h1: clamp(42px, 6vw, 88px);

  /* 骨架 */
  --shell: 1280px;
  --gutter: 20px;
  --border-w: 2px;
  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.45);
  --shadow-gold: 6px 6px 0 rgba(216, 169, 74, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(135deg, rgba(74, 14, 30, 0.42) 0%, rgba(23, 21, 28, 0) 46%),
    linear-gradient(315deg, rgba(108, 75, 232, 0.10) 0%, rgba(23, 21, 28, 0) 38%);
  background-attachment: fixed;
}

#main-content { flex: 1 1 auto; }

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4 {
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: condensed;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1, .h1 { font-size: var(--h1); line-height: 1.02; letter-spacing: -0.02em; }
h2, .h2 { font-size: 34px; }
h3, .h3 { font-size: 22px; }
h4, .h4 { font-size: 17px; }

p { text-wrap: pretty; }

.num,
.contact-value,
.stat-value,
.brand-lines,
.eyebrow,
.breadcrumb {
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -96px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--wine);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: var(--border-w) solid var(--ink);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  transition: top 0.2s var(--ease);
}

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

/* ---------- 5. 容器 / 分区 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 68px 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--wine { background: var(--wine); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--text-dark); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 4px solid var(--gold);
  padding-left: 10px;
  margin-bottom: 14px;
}

.section--paper .eyebrow { color: var(--wine-soft); border-left-color: var(--wine-soft); }

.section-title { margin-bottom: 16px; }

.section--paper .section-title { color: var(--text-dark); }

.lead {
  font-size: 17px;
  line-height: 1.8;
  max-width: 62ch;
  color: var(--gray-gold);
}

.section--paper .lead { color: #4A4550; }

.divider {
  height: var(--border-w);
  border: 0;
  margin: 30px 0;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 26px);
  opacity: 0.55;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.05em;
  border: var(--border-w) solid transparent;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}

.btn-ghost {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: transparent;
  box-shadow: 4px 4px 0 rgba(216, 169, 74, 0.22);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--wine);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.btn--solid {
  background: var(--gold);
  color: var(--wine);
  border-color: var(--gold);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.btn--solid:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: var(--border-w) solid rgba(216, 169, 74, 0.5);
}

.header-strip {
  max-height: 44px;
  overflow: hidden;
  background: var(--wine);
  border-bottom: 1px solid rgba(216, 169, 74, 0.32);
  transition: max-height 0.28s var(--ease), opacity 0.28s var(--ease);
}

.site-header[data-scrolled] .header-strip {
  max-height: 0;
  opacity: 0;
}

.strip-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 6px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.strip-note {
  color: rgba(242, 211, 134, 0.86);
}

.strip-link {
  flex: none;
  font-family: var(--font-mono);
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.strip-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 76px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  transition: min-height 0.28s var(--ease);
}

.site-header[data-scrolled] .header-inner { min-height: 62px; }

/* 品牌轨道 */
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: none;
  margin-left: calc(var(--gutter) * -1);
  padding: 12px 22px 12px var(--gutter);
  min-width: 252px;
  background: var(--wine);
  border-right: 3px solid var(--gold);
  transition: padding 0.28s var(--ease);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  background: var(--wine-soft);
  border: var(--border-w) solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: condensed;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

.brand-lines {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: var(--gray-gold);
  white-space: nowrap;
}

.site-header[data-scrolled] .brand { padding-top: 8px; padding-bottom: 8px; }
.site-header[data-scrolled] .brand-lines { display: none; }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

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

.nav-item { position: relative; }

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
  background-color: rgba(74, 14, 30, 0.55);
}

.nav-link[aria-current="page"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
  background-color: rgba(74, 14, 30, 0.75);
}

.nav-cta { flex: none; }

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  align-self: center;
  padding: 10px 14px;
  border: var(--border-w) solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold-bright);
  transition: opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0.3; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  margin-top: auto;
  background-color: var(--wine);
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 44%),
    linear-gradient(180deg, rgba(216, 169, 74, 0.12) 0%, rgba(0, 0, 0, 0) 26%);
  color: var(--paper);
  border-top: 3px solid var(--gold);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter) 34px;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.3fr;
  gap: 42px;
}

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

.footer-brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-stretch: condensed;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

.footer-tagline {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-clues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.clue-link {
  display: inline-block;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  border: var(--border-w) solid rgba(216, 169, 74, 0.55);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

.clue-link:hover {
  background: var(--gold);
  color: var(--wine);
  border-color: var(--gold);
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: var(--border-w) solid rgba(216, 169, 74, 0.32);
}

.footer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-bottom: 26px;
}

.footer-list a {
  font-size: 14px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-list a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.footer-contact {
  display: grid;
  gap: 11px;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.contact-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray-gold);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--paper);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: var(--border-w) solid rgba(216, 169, 74, 0.28);
}

.footer-legal a {
  font-size: 13px;
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.footer-legal a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 18px max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
  background: rgba(0, 0, 0, 0.26);
  border-top: var(--border-w) solid rgba(216, 169, 74, 0.28);
}

.footer-note {
  font-size: 13px;
  color: var(--gray-gold);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.footer-icp { color: var(--paper); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray-gold);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

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

.breadcrumb a {
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(242, 211, 134, 0.4);
}

.breadcrumb a:hover { border-bottom-color: var(--gold-bright); }

/* ---------- 10. 网格与卡片 ---------- */
.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;
  min-width: 0;
  padding: 22px 20px;
  background: var(--ink-2);
  border: var(--border-w) solid var(--line);
  box-shadow: var(--shadow-hard);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease),
              box-shadow 0.24s var(--ease);
}

.card:hover,
.card:focus-within {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.section--paper .card {
  background: #fff;
  border-color: var(--text-dark);
  box-shadow: 6px 6px 0 rgba(30, 27, 34, 0.16);
}

.section--paper .card:hover,
.section--paper .card:focus-within {
  border-color: var(--wine-soft);
  box-shadow: 6px 6px 0 rgba(123, 30, 56, 0.24);
}

.card-index {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.card-meta {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gray-gold);
}

/* ---------- 11. 数据模块 ---------- */
.stat {
  padding: 18px 18px 20px;
  border: var(--border-w) solid var(--line);
  border-left: 6px solid var(--gold);
  background: rgba(32, 29, 38, 0.86);
}

.section--paper .stat {
  background: #fff;
  border-color: var(--text-dark);
  border-left-color: var(--wine-soft);
}

.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  color: var(--gold-bright);
}

.section--paper .stat-value { color: var(--wine); }

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gray-gold);
}

/* ---------- 12. 标签 ---------- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray-gold);
  border: 1px solid var(--gray-gold);
  background: transparent;
}

.tag--neon { color: var(--neon); border-color: var(--neon); }
.tag--harbor { background: var(--harbor); border-color: var(--harbor); color: #fff; }
.tag--violet { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- 13. 图片容器基础规则 ---------- */
.figure { margin: 0; }

.figure-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: var(--border-w) solid var(--line);
  background-color: var(--ink-2);
  background-image: linear-gradient(135deg, rgba(74, 14, 30, 0.9) 0%, rgba(23, 21, 28, 0.95) 62%);
  box-shadow: var(--shadow-hard);
}

.figure-frame > img,
.figure-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.figure--wide .figure-frame { aspect-ratio: 21 / 9; }
.figure--tall .figure-frame { aspect-ratio: 3 / 4; }

.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gray-gold);
}

.section--paper .figure-caption { color: #6E6570; }

/* ---------- 14. 标签页 / 分段切换 ---------- */
.tabs { margin: 0; }

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: var(--border-w) solid var(--line);
}

.tab {
  padding: 12px 18px;
  margin-bottom: -2px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--gray-gold);
  border: var(--border-w) solid transparent;
  border-bottom: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}

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

.tab[aria-selected="true"] {
  background: var(--wine);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.tab-panel { padding: 24px 0 0; }
.tab-panel[hidden] { display: none; }

/* ---------- 15. 滚动进度与入场 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--neon) 55%, var(--violet) 100%);
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(-20px, 0, 0);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1180px) {
  .brand { min-width: 210px; }
  .site-nav { gap: 12px; }
  .nav-link { padding: 9px 9px; font-size: 14px; }
  .btn { padding: 10px 16px; font-size: 14px; }
}

@media (max-width: 980px) {
  .section { padding: 52px 0; }

  .header-inner { flex-wrap: wrap; align-items: center; padding-top: 8px; padding-bottom: 8px; }

  .brand {
    min-width: 0;
    margin-left: calc(var(--gutter) * -1);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 18px;
    border-top: var(--border-w) solid var(--line);
  }

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

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

  .nav-link {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(216, 169, 74, 0.18);
  }

  .nav-cta {
    margin-top: 16px;
    align-self: flex-start;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    padding-top: 44px;
  }

  .footer-zone--contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  body { font-size: 15.5px; }

  h2, .h2 { font-size: 27px; }
  h3, .h3 { font-size: 20px; }

  .section { padding: 42px 0; }

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

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

  .footer-zone--contact { grid-column: auto; }

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

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .brand-name { font-size: 17px; }
  .brand-lines { font-size: 10px; letter-spacing: 0.08em; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
}

/* ---------- 17. 减动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress { display: none; }
}
