/* ============================================================
   皇冠品牌站 · 共享样式表 /assets/site.css
   深墨蓝 + 皇冠金 + 矿物米白，竖排轨道导航与展览画册式留白
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

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

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

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

hr {
  border: 0;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --ink: #0E2A47;
  --ink-deep: #0A1E34;
  --gold: #C8A253;
  --gold-hi: #E6C87A;
  --gold-text: #8A6A21;
  --stone: #4A5058;
  --cream: #F4F1EA;
  --sand: #E3DCCB;
  --red: #B4523C;
  --tea: #3F6B54;
  --black: #101418;

  /* 尺寸 */
  --rail-w: 96px;
  --bar-h: 60px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* 布局 */
  --maxw: 1280px;
  --pad-l: clamp(20px, 3.6vw, 64px);
  --pad-r: clamp(20px, 5.2vw, 88px);

  /* 动效 */
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
}

/* ---------- 3. 中文排版基底 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--stone);
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(112deg,
      rgba(14, 42, 71, .042) 0 1px,
      rgba(14, 42, 71, 0) 1px 112px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 300;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(46px, 7.4vw, 104px); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: 0; }
h4 { font-size: 22px; letter-spacing: 0; line-height: 1.35; }

p { max-width: 68ch; }

strong, b { font-weight: 500; color: var(--ink); }

mark {
  background: rgba(200, 162, 83, .26);
  color: var(--ink);
  padding: 0 .18em;
  border-radius: 4px;
}

::selection { background: rgba(200, 162, 83, .36); color: var(--ink-deep); }

/* ---------- 4. 可访问性工具 ---------- */
.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;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 12px);
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--gold-hi);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  transform: translateY(-190%);
  transition: transform .2s var(--ease);
}

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

/* ---------- 5. 宽度容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

/* ---------- 6. 侧边轨道 / 顶部品牌条 ---------- */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 0 18px;
  background: linear-gradient(180deg, #0E2A47 0%, #0A1E34 100%);
  color: var(--cream);
  overflow: visible;
}

.rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(200, 162, 83, .16), transparent 62%),
    repeating-linear-gradient(78deg,
      rgba(244, 241, 234, .05) 0 1px,
      rgba(244, 241, 234, 0) 1px 26px);
}

.rail__top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.brand__mark {
  width: 30px;
  height: 22px;
  flex: none;
  background: linear-gradient(150deg, var(--gold-hi) 0%, var(--gold) 100%);
  clip-path: polygon(0% 100%, 0% 30%, 20% 58%, 35% 8%, 50% 44%, 65% 8%, 80% 58%, 100% 30%, 100% 100%);
  transition: transform .3s var(--ease);
}

.brand:hover .brand__mark { transform: translateY(-3px); }

.brand__name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--cream);
}

.brand__sig {
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding-top: 8px;
  border-top: 1px solid rgba(200, 162, 83, .3);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .16em;
  color: rgba(200, 162, 83, .88);
}

.nav-toggle { display: none; }

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

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s var(--ease);
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.rail[data-open] .nav-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
.rail[data-open] .nav-toggle__bars::after { transform: translateY(-4.25px) rotate(-45deg); }

.rail__nav {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail__nav::-webkit-scrollbar { display: none; }

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.nav-link {
  position: relative;
  display: block;
  margin-inline: auto;
  padding: 12px 10px;
  border-radius: var(--r-pill);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .2em;
  color: rgba(244, 241, 234, .66);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav-link:hover {
  color: var(--cream);
  background-color: rgba(200, 162, 83, .13);
}

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

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 20px;
  border-radius: 2px;
  background: var(--gold);
}

.rail__utility {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 241, 234, .12);
}

.util-link {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(244, 241, 234, .6);
  transition: color .2s var(--ease);
}

.util-link:hover { color: var(--gold-hi); }

.status-dot {
  display: block;
  width: 6px;
  height: 6px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--tea);
  box-shadow: 0 0 0 3px rgba(63, 107, 84, .24);
}

.rail__progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-hi) 100%);
  z-index: 3;
}

/* ---------- 7. 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(80px, 11vw, 160px);
  padding: clamp(48px, 7vw, 96px) 0 32px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(180deg, #0E2A47 0%, #0A1E34 100%);
  color: rgba(244, 241, 234, .74);
  overflow: hidden;
}

.site-foot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 82% at 10% 0%, rgba(200, 162, 83, .16), transparent 58%),
    repeating-linear-gradient(102deg,
      rgba(244, 241, 234, .04) 0 1px,
      rgba(244, 241, 234, 0) 1px 34px);
}

.site-foot .shell { position: relative; z-index: 2; }

.foot__top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.foot__mark {
  width: 38px;
  height: 28px;
  margin-bottom: 16px;
  background: linear-gradient(150deg, var(--gold-hi) 0%, var(--gold) 100%);
  clip-path: polygon(0% 100%, 0% 30%, 20% 58%, 35% 8%, 50% 44%, 65% 8%, 80% 58%, 100% 30%, 100% 100%);
}

.foot__name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--cream);
  max-width: none;
}

.foot__sig {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .14em;
  color: rgba(200, 162, 83, .88);
  max-width: none;
}

.foot__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.foot__title {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--gold);
  max-width: none;
}

.foot__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot__link {
  display: inline-block;
  font-size: 15px;
  font-weight: 300;
  color: rgba(244, 241, 234, .72);
  transition: color .2s var(--ease);
}

.foot__link:hover,
.foot__link:focus-visible { color: var(--gold-hi); }

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: baseline;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgba(244, 241, 234, .14);
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(244, 241, 234, .56);
}

.foot__contact,
.foot__legal { max-width: none; }

/* ---------- 8. 通用按钮 ---------- */
.cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.3;
  transition: transform .22s var(--ease), background-color .22s var(--ease),
    color .22s var(--ease), border-color .22s var(--ease);
}

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

.cap:active { transform: translateY(0); }

.cap--gold {
  background: var(--gold);
  color: var(--ink-deep);
}

.cap--gold:hover { background: var(--gold-hi); }

.cap--ink {
  background: var(--ink);
  color: var(--cream);
}

.cap--ink:hover { background: var(--ink-deep); }

.cap--line {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14, 42, 71, .26);
}

.cap--line:hover {
  border-color: var(--gold);
  background: rgba(200, 162, 83, .1);
}

.cap--onDark {
  background: rgba(200, 162, 83, .14);
  color: var(--gold-hi);
  border-color: rgba(200, 162, 83, .42);
}

.cap--onDark:hover { background: rgba(200, 162, 83, .24); }

/* ---------- 9. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.tag--ok {
  color: var(--tea);
  background: rgba(63, 107, 84, .1);
  border-color: rgba(63, 107, 84, .26);
}

.tag--warn {
  color: var(--red);
  background: rgba(180, 82, 60, .1);
  border-color: rgba(180, 82, 60, .26);
}

.tag--gold {
  color: var(--gold-text);
  background: rgba(200, 162, 83, .14);
  border-color: rgba(200, 162, 83, .36);
}

/* ---------- 10. 索引标签 / 面包屑 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--ink);
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold);
  flex: none;
}

.eyebrow--inverse { color: rgba(244, 241, 234, .84); }

.eyebrow--inverse::before { background: var(--gold-hi); }

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .08em;
  color: var(--stone);
}

.crumb a { color: var(--stone); transition: color .2s var(--ease); }
.crumb a:hover { color: var(--ink); }
.crumb__sep { color: rgba(74, 80, 88, .42); }
.crumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- 11. 章节 / 面板 / 分隔线 ---------- */
.section { margin-block: clamp(72px, 10vw, 140px); }
.section--tight { margin-block: clamp(40px, 5.5vw, 72px); }
.section--narrow { max-width: 720px; }

.panel {
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--sand);
  color: var(--stone);
}

.panel--dark {
  background: var(--ink);
  color: rgba(244, 241, 234, .82);
}

.panel--dark h2,
.panel--dark h3,
.panel--dark h4 { color: var(--cream); }

.panel--outline {
  background: transparent;
  border: 1.5px solid rgba(14, 42, 71, .14);
}

.rule {
  height: 1px;
  border: 0;
  margin-block: clamp(32px, 5vw, 56px);
  background: linear-gradient(90deg, var(--gold) 0%, rgba(200, 162, 83, 0) 82%);
}

/* ---------- 12. 网格与正文 ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

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

.lead {
  max-width: 62ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.72;
  color: var(--stone);
}

/* ---------- 13. 图片容器（供页面阶段放置素材） ---------- */
.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid rgba(14, 42, 71, .08);
  background-color: var(--sand);
  background-image:
    repeating-linear-gradient(58deg,
      rgba(14, 42, 71, .07) 0 1px,
      rgba(14, 42, 71, 0) 1px 24px);
}

.figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide { aspect-ratio: 16 / 9; }
.figure--band { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--square { aspect-ratio: 1 / 1; }

.figure__cap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(244, 241, 234, .88);
  color: var(--stone);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.6;
}

/* ---------- 14. 标签页 ---------- */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--sand);
}

.tab {
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--stone);
  transition: background-color .24s var(--ease), color .24s var(--ease);
}

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

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

.tab-panel {
  margin-top: clamp(20px, 3vw, 32px);
  animation: tabFade .24s var(--ease) both;
}

.tab-panel[hidden] { display: none; }

@keyframes tabFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 15. 滚动显现 ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

html.has-js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 16. 平板 ---------- */
@media (max-width: 1100px) {
  .foot__top { grid-template-columns: 1fr; gap: 36px; }
  .grid--asym { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { padding-left: 0; font-size: 16px; }

  .skip-link { left: 14px; }

  .rail {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 clamp(14px, 4vw, 22px);
  }

  .rail::after {
    background: radial-gradient(90% 160% at 6% 0%, rgba(200, 162, 83, .18), transparent 66%);
  }

  .rail__top {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 9px;
  }

  .brand__mark { width: 24px; height: 18px; }

  .brand__name {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 15px;
    letter-spacing: .08em;
  }

  .brand__sig { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border: 1px solid rgba(200, 162, 83, .34);
    border-radius: var(--r-pill);
    background: rgba(200, 162, 83, .14);
    color: var(--gold-hi);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
  }

  .rail__nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--bar-h);
    z-index: 85;
    display: block;
    flex: none;
    width: auto;
    max-height: calc(100vh - var(--bar-h));
    padding: 16px clamp(14px, 4vw, 22px) 26px;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    background: linear-gradient(180deg, #0E2A47 0%, #0B2138 100%);
    box-shadow: 0 26px 48px rgba(10, 30, 52, .28);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s var(--ease), opacity .24s var(--ease),
      visibility 0s linear .24s;
  }

  .rail[data-open] .rail__nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .24s var(--ease), opacity .24s var(--ease),
      visibility 0s linear 0s;
  }

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

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-inline: 0;
    padding: 14px 16px;
    border-radius: var(--r-md);
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 16px;
    letter-spacing: .06em;
    color: rgba(244, 241, 234, .78);
  }

  .nav-link[aria-current="page"] {
    background: rgba(200, 162, 83, .15);
    color: var(--gold-hi);
  }

  .nav-link[aria-current="page"]::before { display: none; }

  .rail__utility,
  .rail__progress { display: none; }

  .site-foot { border-radius: var(--r-lg) var(--r-lg) 0 0; }

  .foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }

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

/* ---------- 17. 手机 ---------- */
@media (max-width: 560px) {
  .foot__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cap {
    width: 100%;
    padding: 14px 20px;
  }

  .tabs__list {
    width: 100%;
    border-radius: var(--r-lg);
  }

  .tab { flex: 1 1 auto; text-align: center; }
}

/* ---------- 18. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

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

  .cap:hover { transform: none; }
  .brand:hover .brand__mark { transform: none; }
}
