/* ==========================================================================
   巨星指南 · 共享样式 /assets/site.css
   头部 · 页脚 · 按钮 · 布局骨架 · 图片容器
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

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

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

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

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

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

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

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* 2. 变量 */
:root {
  --ink: #0B1B33;
  --ink-deep: #070D18;
  --sand: #F2E8D5;
  --ochre: #B85C38;
  --azurite: #2E6F8E;
  --gold: #D4A64A;
  --spot: #FF6B1A;
  --violet: #7C3AED;
  --gray: #6B7280;
  --smoke: #F8FAFC;

  --line: rgba(11, 27, 51, .16);
  --line-soft: rgba(11, 27, 51, .08);
  --line-invert: rgba(248, 250, 252, .16);

  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-h: 74px;
  --cut: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 3. 中文排版基座 */
body {
  background-color: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 9vw, 8rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
h4 { font-size: 1.05rem; letter-spacing: .01em; }

p { text-wrap: pretty; }

::selection { background: var(--spot); color: #fff; }

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

/* 4. 辅助与通用原子 */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ochre);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--spot);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--spot);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: top .22s var(--ease);
}

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

.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 82% at 74% -12%, rgba(255, 107, 26, .26), transparent 62%),
    radial-gradient(86% 64% at 8% 108%, rgba(124, 58, 237, .22), transparent 66%);
}

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

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

[data-reveal-delay="1"] { transition-delay: .09s; }
[data-reveal-delay="2"] { transition-delay: .18s; }
[data-reveal-delay="3"] { transition-delay: .27s; }

/* 5. 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}

.btn--spot {
  background-color: var(--spot);
  color: #fff;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}

.btn--spot:hover {
  background-color: #FF8339;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(255, 107, 26, .95);
}

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

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

.btn--ghost {
  border-color: rgba(212, 166, 74, .55);
  color: var(--sand);
  background-color: transparent;
}

.btn--ghost:hover {
  background-color: rgba(212, 166, 74, .16);
  color: #fff;
}

/* 6. 头部 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  color: var(--smoke);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 13, 24, .74), rgba(7, 13, 24, 0));
  transition: opacity .3s var(--ease);
}

.site-header[data-state="solid"] {
  background-color: rgba(11, 27, 51, .97);
  border-bottom-color: rgba(212, 166, 74, .32);
  box-shadow: 0 24px 52px -36px rgba(0, 0, 0, .95);
}

.site-header[data-state="solid"]::before { opacity: 0; }

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 8px 0;
}

.brand-mark {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  padding: 9px 11px;
  color: var(--ink);
  background-color: var(--gold);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

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

.brand-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--smoke);
}

.brand-tagline {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(248, 250, 252, .58);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  margin-left: auto;
}

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

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 11px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(248, 250, 252, .84);
  transition: color .2s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background-color: var(--spot);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s var(--ease), background-color .2s var(--ease);
}

.nav-list a:hover { color: var(--smoke); }
.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
}

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background-color: var(--gold);
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: clamp(10px, 1.4vw, 20px);
  border-left: 1px solid rgba(212, 166, 74, .32);
}

/* 索引锚点 */
.index-anchor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--smoke);
  background-color: rgba(7, 13, 24, .44);
  border: 1px dashed rgba(212, 166, 74, .62);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.index-anchor:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.anchor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--spot);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, .2);
  animation: anchor-pulse 2.6s var(--ease) infinite;
}

@keyframes anchor-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 107, 26, .2); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 26, 0); }
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--sand);
  background-color: rgba(7, 13, 24, .5);
  border: 1px solid rgba(212, 166, 74, .55);
}

.nav-toggle:hover { border-color: var(--gold); color: #fff; }

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

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background-color: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: rgba(248, 250, 252, .08);
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--spot), var(--gold));
}

body[data-lock] { overflow: hidden; }

/* 7. 页脚 */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-deep);
  color: rgba(248, 250, 252, .74);
}

.footer-beam {
  position: absolute;
  top: -46%;
  left: -12%;
  width: 68%;
  height: 190%;
  pointer-events: none;
  transform: rotate(-14deg);
  background: radial-gradient(closest-side, rgba(255, 107, 26, .18), transparent 72%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.55fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 92px) var(--gutter) clamp(34px, 4vw, 54px);
}

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

.footer-brand-line {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.4vw, 27px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--smoke);
}

.footer-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
}

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

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

.footer-heading {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 166, 74, .3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.footer-list a {
  display: inline-block;
  font-size: 15px;
  color: rgba(248, 250, 252, .72);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.footer-list a:hover {
  color: var(--spot);
  transform: translateX(4px);
}

.footer-contact {
  padding-left: clamp(0px, 2vw, 26px);
  border-left: 1px solid rgba(212, 166, 74, .2);
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-list__value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--sand);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(248, 250, 252, .5);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 15px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--smoke);
  border: 1px solid rgba(248, 250, 252, .22);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.to-top::before {
  content: "";
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--spot), var(--gold));
  transition: width .28s var(--ease);
}

.to-top:hover {
  color: var(--gold);
  border-color: var(--gold);
  background-color: rgba(212, 166, 74, .08);
}

.to-top:hover::before { width: 36px; }

.footer-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid rgba(248, 250, 252, .12);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(248, 250, 252, .48);
}

.footer-icp { color: rgba(248, 250, 252, .56); }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-links a { transition: color .2s var(--ease); }
.legal-links a:hover { color: var(--gold); }

.footer-year { letter-spacing: .08em; }

/* 8. 页面骨架 */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.section { padding-block: clamp(48px, 7vw, 104px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.cut-panel {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  background-color: var(--smoke);
  border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--azurite);
  background-color: rgba(46, 111, 142, .1);
  border: 1px solid rgba(46, 111, 142, .3);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}

.tag:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 24px -16px rgba(11, 27, 51, .8);
}

.tag--spot {
  color: var(--ochre);
  background-color: rgba(255, 107, 26, .12);
  border-color: rgba(255, 107, 26, .36);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--gray);
  opacity: .7;
}

.breadcrumb a { color: var(--gray); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--spot); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* 9. 图片容器（页面阶段放置占位图） */
.figure {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
}

.figure__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(11, 27, 51, .96), rgba(46, 111, 142, .55) 58%, rgba(184, 92, 56, .5)),
    var(--ink);
}

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

.figure__caption {
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .09em;
  color: var(--gray);
}

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

/* 10. 响应式 */
@media (max-width: 1180px) {
  .nav-utility { display: none; }
}

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

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 89;
    display: block;
    margin-left: 0;
    padding: 18px var(--gutter) 30px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background-color: rgba(7, 13, 24, .98);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 36px 64px -32px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s var(--ease);
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .nav-list a {
    display: block;
    padding: 14px 4px;
    font-size: 17px;
    font-weight: 700;
    color: var(--smoke);
    border-bottom: 1px solid rgba(248, 250, 252, .08);
  }

  .nav-list a::after { display: none; }

  .nav-utility {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
    padding-left: 0;
    border-left: 0;
  }

  .nav-utility .btn { justify-content: center; }

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

  .footer-contact {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(212, 166, 74, .2);
    padding-top: 22px;
  }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --header-h: 62px; --cut: 14px; }

  .brand-tagline { display: none; }

  .brand-mark { font-size: 10.5px; padding: 8px 9px; letter-spacing: .1em; }

  .brand-name { font-size: 15.5px; }

  .index-anchor { font-size: 10px; padding: 7px 9px; letter-spacing: .04em; gap: 6px; }

  .nav-toggle-label { display: none; }

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

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

  .footer-legal { justify-content: flex-start; }
}

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

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

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

  .anchor-dot { animation: none; }
}
