/* ==========================================================================
   皇冠现金中心 · 共享外壳样式 / assets/site.css
   档案室 × 滨海展厅：曜黑底、深金线、等宽编号、锐利直角、精密网格
   ========================================================================== */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }

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

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

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

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

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

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

:focus-visible {
  outline: 2px solid #F2C15B;
  outline-offset: 3px;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink: #0B0B0D;
  --ink-2: #15181D;
  --champagne: #F4EEE2;
  --ivory: #FBFAF7;
  --gold: #C8912A;
  --gold-bright: #F2C15B;
  --gold-ink: #7A5410;
  --blue: #1F7A8C;
  --coral: #E4693F;
  --graphite: #6B7079;
  --muted: #9AA1AB;

  /* 线条 */
  --line: rgba(200, 145, 42, 0.30);
  --line-soft: rgba(244, 238, 226, 0.12);

  /* 金属四档 */
  --tier-1: linear-gradient(90deg, #C8912A, #8A5F14);
  --tier-2: linear-gradient(90deg, #2A93A8, #1F7A8C);
  --tier-3: linear-gradient(90deg, #E4693F, #B84A24);
  --tier-4: linear-gradient(90deg, #B9BEC6, #7E858F);

  /* 结构 */
  --maxw: 1440px;
  --gutter: clamp(18px, 4vw, 64px);
  --rail: 280px;

  /* 字体 */
  --font-sans: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-geo: "Archivo", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--champagne);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ivory);
}

strong { font-weight: 800; color: var(--ivory); }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 11px 20px;
  background: var(--gold-bright);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: top 0.18s ease-out;
}

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

/* ---------- 5. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.section__title {
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.section__lede {
  max-width: 62ch;
  font-size: 16px;
  color: var(--muted);
}

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

.rule--soft { background: var(--line-soft); }

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.prose { max-width: 72ch; }
.prose p + p { margin-top: 1.1em; }
.prose a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 6. 文字装饰组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.section-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.note-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--gold-bright);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease-out;
}

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

.breadcrumb__sep {
  color: var(--gold);
  opacity: 0.6;
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}

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

.btn--solid {
  background-image: linear-gradient(115deg, #C8912A 0%, #F2C15B 52%, #C8912A 100%);
  border-color: transparent;
  color: #1A1204;
}

.btn--solid:hover {
  background-image: linear-gradient(115deg, #F2C15B 0%, #C8912A 100%);
  color: #1A1204;
}

.btn--ghost {
  border-color: rgba(244, 238, 226, 0.28);
  color: var(--champagne);
}

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

/* ---------- 9. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
}

.media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }

.media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background-image: linear-gradient(0deg, rgba(11, 11, 13, 0.94), rgba(11, 11, 13, 0));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--gold-bright);
}

/* ---------- 10. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(11, 11, 13, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--champagne);
  transition: box-shadow 0.24s ease-out;
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.96);
}

.header-top {
  border-bottom: 1px solid var(--line-soft);
  background-image: linear-gradient(90deg, rgba(200, 145, 42, 0.09), rgba(200, 145, 42, 0) 46%);
}

.header-top__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding-block: 12px;
  transition: padding 0.24s ease-out;
}

.site-header[data-scrolled="true"] .header-top__inner {
  padding-block: 7px;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  background-image: linear-gradient(150deg, rgba(200, 145, 42, 0.30), rgba(200, 145, 42, 0.02));
  color: var(--gold-bright);
  font-family: var(--font-geo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 2px;
  transition: width 0.24s ease-out, height 0.24s ease-out, font-size 0.24s ease-out;
}

.site-header[data-scrolled="true"] .brand__mark {
  width: 30px;
  height: 30px;
  font-size: 10px;
}

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

.brand__name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ivory);
  white-space: nowrap;
}

.brand__line {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity 0.2s ease-out, visibility 0.2s;
}

.site-header[data-scrolled="true"] .brand__line {
  opacity: 0;
  visibility: hidden;
}

.brand-promise {
  justify-self: center;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: opacity 0.2s ease-out, visibility 0.2s;
}

.site-header[data-scrolled="true"] .brand-promise {
  opacity: 0;
  visibility: hidden;
}

/* 元信息标签 */
.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background-color: rgba(200, 145, 42, 0.07);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: nowrap;
  border-radius: 2px;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out, color 0.18s ease-out;
}

.meta-chip--copy:hover {
  border-color: var(--gold-bright);
  background-color: rgba(200, 145, 42, 0.16);
}

.meta-chip--plain {
  border-color: var(--line-soft);
  background-color: transparent;
  color: var(--muted);
}

.meta-chip__done { display: none; }

.meta-chip.is-copied {
  border-color: var(--gold-bright);
  background-color: rgba(242, 193, 91, 0.18);
}

.meta-chip.is-copied .meta-chip__value { display: none; }
.meta-chip.is-copied .meta-chip__done { display: inline; }

/* 下层主栏 */
.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 11px;
  transition: padding 0.24s ease-out;
}

.site-header[data-scrolled="true"] .header-main__inner {
  padding-block: 8px;
}

/* ---------- 11. 导航 ---------- */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 34px);
}

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--champagne);
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  transition: color 0.18s ease-out;
}

.nav__link::before {
  content: attr(data-index);
  margin-right: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--graphite);
  transition: color 0.18s ease-out;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease-out;
}

.nav__link:hover { color: var(--gold-bright); }
.nav__link:hover::before { color: var(--gold); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--gold-bright); }
.nav__link[aria-current="page"]::before { color: var(--gold-bright); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { flex: 0 0 auto; }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background-color: transparent;
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  border-radius: 2px;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out;
}

.nav-toggle:hover {
  background-color: rgba(200, 145, 42, 0.14);
  border-color: var(--gold-bright);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  background-color: currentColor;
  transition: background-color 0.22s ease-out;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background-color: currentColor;
  transition: transform 0.22s ease-out;
}

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

.site-header[data-open="true"] .nav-toggle__bars {
  background-color: transparent;
}

.site-header[data-open="true"] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 0;
  height: 2px;
  background-image: linear-gradient(90deg, var(--gold), var(--gold-bright));
  pointer-events: none;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  background-color: var(--ink-2);
  border-top: 1px solid var(--line);
  color: var(--champagne);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(48px, 6vw, 88px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 44ch;
}

.brand--footer .brand__mark {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.brand--footer .brand__name { font-size: 18px; }

.footer-note {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-cta { margin-top: 2px; }

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

.footer-title {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.footer-list a {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--champagne);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease-out, border-color 0.18s ease-out;
}

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

.footer-list--contact { gap: 14px; }

.footer-list--contact li {
  display: grid;
  gap: 4px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}

.footer-value {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--champagne);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-domain { color: var(--gold); }

/* ---------- 13. 进入视口显现 ---------- */
html.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.34s ease-out, transform 0.34s ease-out;
}

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

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-top {
    grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(140px, 1fr));
  }
  .footer-col--contact {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
  }
  .footer-list--contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .header-top__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .brand-promise { display: none; }

  .header-main__inner {
    position: relative;
    justify-content: space-between;
  }

  .header-cta { display: none; }

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: min(74vh, 560px);
    overflow-y: auto;
    background-color: var(--ink-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0.22s;
  }

  .site-header[data-open="true"] .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 18px;
  }

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

  .nav__item:last-child { border-bottom: 0; }

  .nav__link {
    display: block;
    padding: 15px 0;
    font-size: 17px;
  }

  .nav__link::before {
    display: none;
  }

  .nav__link::after {
    right: auto;
    width: 46px;
  }
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .meta-chip--plain { display: none; }

  .brand__line { display: none; }

  .brand__mark { width: 32px; height: 32px; font-size: 11px; }

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

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

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

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

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

  .scroll-progress { transition: none !important; }
}
