/* ==========================================================================
   皇家国际 · 共享样式 /assets/site.css
   骨架：左侧品牌轨道 + 悬浮胶囊导航 + 四列页脚
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --indigo-900: #0F1B36;
  --indigo-800: #142449;
  --indigo-700: #1A2A52;
  --indigo-500: #2B3F73;
  --gold: #C6A15B;
  --gold-light: #E3CB96;
  --ivory: #F6F1E6;
  --paper: #FFFFFF;
  --cinnabar: #B23A2E;
  --moss: #2E5A4B;
  --graphite: #333A47;
  --hairline: #D8D2C4;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --rail-w: clamp(72px, 7vw, 104px);
  --maxw: 1320px;
  --gutter: clamp(18px, 3vw, 40px);
  --radius: 3px;
  --shadow-soft: 0 2px 10px rgba(15, 27, 54, 0.06);
}

/* ---------- 2. 重置与基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 108px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--graphite);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul, ol { list-style: none; }

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

a { color: inherit; }

button { font: inherit; color: inherit; }

::selection {
  background: rgba(198, 161, 91, 0.35);
  color: var(--indigo-900);
}

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

/* ---------- 3. 通用工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 5vw, 80px); }

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

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

/* 展览标签式章节头 */
.section-marker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-marker__no {
  font-weight: 600;
  color: var(--gold);
}

.section-marker::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(198, 161, 91, 0));
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease,
              border-color 180ms ease, box-shadow 180ms ease;
}

.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--indigo-900);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(198, 161, 91, 0.22);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 8px 24px rgba(198, 161, 91, 0.3);
}

.btn--ghost {
  background: transparent;
  border-color: var(--indigo-500);
  color: var(--indigo-900);
}

.btn--ghost:hover {
  background: rgba(198, 161, 91, 0.1);
  border-color: var(--gold);
}

.btn--onDark {
  background: transparent;
  border-color: rgba(198, 161, 91, 0.55);
  color: var(--gold-light);
}

.btn--onDark:hover {
  background: rgba(227, 203, 150, 0.14);
  border-color: var(--gold);
  color: #fff;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: rgba(51, 58, 71, 0.62);
}

.breadcrumb a {
  text-decoration: none;
  transition: color 160ms ease;
}

.breadcrumb a:hover { color: var(--indigo-900); }

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

.breadcrumb [aria-current="page"] { color: var(--indigo-900); }

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--pending {
  color: var(--cinnabar);
  background: rgba(178, 58, 46, 0.08);
  border-color: rgba(178, 58, 46, 0.35);
}

.tag--done {
  color: var(--moss);
  background: rgba(46, 90, 75, 0.08);
  border-color: rgba(46, 90, 75, 0.35);
}

.tag--gold {
  color: #7A5A18;
  background: rgba(198, 161, 91, 0.14);
  border-color: rgba(198, 161, 91, 0.5);
}

/* 内容卡 */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(18px, 2vw, 26px);
  box-shadow: var(--shadow-soft);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--indigo-900);
}

.card__text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--graphite);
}

/* 可复用图片容器（页面阶段放置 <img>） */
.figure-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(198, 161, 91, 0.22), rgba(15, 27, 54, 0.92) 62%, rgba(26, 42, 82, 0.98));
}

.figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.05);
}

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

.figure-frame__caption {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(51, 58, 71, 0.6);
}

/* 滚动显现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

/* ---------- 4. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0F1B36 0%, #101E3C 58%, #142449 100%);
  border-bottom: 1px solid rgba(198, 161, 91, 0.3);
  transition: box-shadow 200ms ease;
}

.site-header[data-shrink] {
  box-shadow: 0 12px 32px rgba(8, 14, 28, 0.34);
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 200;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--gold-light);
  color: var(--indigo-900);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: none; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 30px);
  min-height: 94px;
  padding-right: clamp(14px, 3vw, 44px);
  transition: min-height 200ms ease;
}

.site-header[data-shrink] .site-header__inner { min-height: 70px; }

/* 品牌轨道 */
.brand-rail {
  flex: 0 0 auto;
  align-self: stretch;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 4px;
  background: #0C1730;
  border-right: 1px solid rgba(198, 161, 91, 0.32);
  text-decoration: none;
  transition: background 200ms ease;
}

.brand-rail:hover { background: #0A1429; }

.brand-rail__mark {
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.16), 0 0 12px rgba(198, 161, 91, 0.45);
}

.brand-rail__word {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--ivory);
  transition: color 180ms ease;
}

.brand-rail:hover .brand-rail__word { color: var(--gold-light); }

/* 服务区小标签 */
.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: clamp(6px, 1.4vw, 16px);
  padding-left: clamp(8px, 1.4vw, 18px);
  border-left: 1px solid rgba(198, 161, 91, 0.25);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: rgba(246, 241, 230, 0.55);
  white-space: nowrap;
}

.header-status__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(46, 90, 75, 0.25);
}

/* 胶囊导航 */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  align-self: center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(43, 63, 115, 0.5);
  border: 1px solid rgba(198, 161, 91, 0.2);
  box-shadow: inset 0 1px 0 rgba(246, 241, 230, 0.06);
  transition: padding 200ms ease;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 230, 0.82);
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-link:hover {
  background: rgba(227, 203, 150, 0.12);
  border-color: var(--gold);
  color: #fff;
}

.nav-link--member {
  background: rgba(227, 203, 150, 0.14);
  border-color: var(--gold);
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(227, 203, 150, 0.22), 0 3px 14px rgba(198, 161, 91, 0.16);
}

.nav-link--member:hover {
  background: rgba(227, 203, 150, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(227, 203, 150, 0.4), 0 4px 18px rgba(198, 161, 91, 0.28);
}

.member-mark {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.18);
}

.nav-link[aria-current="page"] {
  background: rgba(246, 241, 230, 0.1);
  border-color: rgba(198, 161, 91, 0.55);
  color: #fff;
}

.nav-link[aria-current="page"]::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(198, 161, 91, 0.45);
  border-radius: 999px;
  background: rgba(43, 63, 115, 0.55);
  color: var(--ivory);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.nav-toggle:hover {
  background: rgba(227, 203, 150, 0.14);
  border-color: var(--gold);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1.5px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform 180ms ease;
}

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

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

.nav-toggle__text { line-height: 1; }

/* 滚动进度条 */
.scroll-meter {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 55%, var(--gold) 100%);
  opacity: 0.9;
  pointer-events: none;
  will-change: transform;
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--indigo-900);
  color: rgba(246, 241, 230, 0.78);
  border-top: 1px solid rgba(198, 161, 91, 0.35);
  padding-top: clamp(38px, 5vw, 68px);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    rgba(198, 161, 91, 0.55) 0 2px,
    transparent 2px 11px
  );
  opacity: 0.5;
}

.footer-top {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
  gap: clamp(22px, 3vw, 52px);
  padding-bottom: clamp(30px, 4vw, 52px);
}

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

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.25;
  color: var(--ivory);
}

.footer-brand__meta {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold-light);
}

.footer-note {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: 0.86rem;
  line-height: 1.85;
  color: rgba(246, 241, 230, 0.64);
}

.footer-domain {
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(198, 161, 91, 0.22);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: rgba(198, 161, 91, 0.9);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-light);
}

.footer-col__title::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gold);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-link {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  font-size: 0.9rem;
  color: rgba(246, 241, 230, 0.75);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-link:hover {
  color: var(--gold-light);
  border-bottom-color: rgba(198, 161, 91, 0.6);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-contact__row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.86rem;
}

.footer-contact__label {
  flex: 0 0 3.2em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(198, 161, 91, 0.85);
}

.footer-contact__value {
  margin: 0;
  color: rgba(246, 241, 230, 0.8);
  word-break: break-word;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(198, 161, 91, 0.5);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-action::after { content: "→"; }

.footer-action:hover {
  color: #fff;
  border-bottom-color: var(--gold-light);
}

.footer-filing {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(246, 241, 230, 0.55);
}

.footer-bottom {
  border-top: 1px solid rgba(198, 161, 91, 0.2);
  background: rgba(12, 23, 48, 0.6);
  padding: 14px 0;
}

.footer-bottom__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: rgba(246, 241, 230, 0.58);
}

.footer-copyright { margin: 0; }

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-lang__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(46, 90, 75, 0.25);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(198, 161, 91, 0.4);
  border-radius: 999px;
  color: var(--gold-light);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.back-to-top:hover {
  background: rgba(227, 203, 150, 0.14);
  border-color: var(--gold);
  color: #fff;
}

/* ---------- 6. 平板 ---------- */
@media (max-width: 1180px) {
  .header-status { display: none; }
}

@media (max-width: 1080px) and (min-width: 921px) {
  .site-header__inner { min-height: 84px; gap: 10px; }
  .brand-rail { width: 78px; }
  .nav-link { padding: 0.55rem 0.72rem; font-size: 0.8rem; }
  .nav-link--member { padding-inline: 0.85rem; }
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-note { max-width: 46ch; }
}

/* ---------- 7. 移动端 ---------- */
@media (max-width: 920px) {
  html { scroll-padding-top: 84px; }

  .site-header__inner {
    min-height: 64px;
    padding: 9px 14px;
    gap: 10px;
  }

  .site-header[data-shrink] .site-header__inner { min-height: 58px; }

  .brand-rail {
    flex-direction: row;
    align-self: center;
    width: auto;
    gap: 8px;
    padding: 0;
    background: transparent;
    border-right: 0;
  }

  .brand-rail:hover { background: transparent; }

  .brand-rail__word {
    writing-mode: horizontal-tb;
    text-indent: 0;
    letter-spacing: 0.2em;
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 3;
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 120;
    margin-left: 0;
    display: block;
    align-self: auto;
    padding: 10px;
    border-radius: 16px;
    background: rgba(15, 27, 54, 0.97);
    border: 1px solid rgba(198, 161, 91, 0.42);
    box-shadow: 0 22px 54px rgba(5, 10, 22, 0.55);
    max-height: 72vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.98);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
  }

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

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

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.72rem 0.9rem;
    border-radius: 10px;
    font-size: 0.94rem;
  }

  .nav-link[aria-current="page"]::after { margin-left: auto; }

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

  .footer-bottom__inner {
    gap: 8px 16px;
    font-size: 0.72rem;
  }

  .back-to-top { margin-left: 0; }

  .footer-note { max-width: none; }
}

@media (max-width: 480px) {
  .footer-contact__row { flex-wrap: wrap; gap: 0.2rem 0.65rem; }
  .footer-contact__label { flex-basis: 100%; }
}

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

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

  .scroll-meter { opacity: 0.45; }
}
