/* ==========================================================================
   巨星品牌 / e-juxing.com.cn — 共享站点样式 /assets/site.css
   1. Reset  2. 变量  3. 中文排版  4. 头部  5. 页脚  6. 通用组件  7. 动效
   ========================================================================== */

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

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { 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;
  padding: 0;
  cursor: pointer;
}

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

/* 2. 变量 ---------------------------------------------------------------- */
:root {
  --ink: #0B1F33;
  --ink-2: #132C47;
  --gold: #E3A83B;
  --coral: #F06A4D;
  --cream: #F4EFE6;
  --paper: #FBF8F2;
  --mist: #D9DEE5;
  --rock: #5D6B7A;
  --teal: #3C8C86;

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Serif SC", "Noto Serif SC", "Songti SC",
    Georgia, "SimSun", serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Courier New", monospace;

  --shell: 1200px;
  --wide: 1320px;
  --pad: clamp(16px, 4vw, 40px);

  --r-xl: 36px;
  --r-lg: 26px;
  --r-md: 18px;
  --pill: 999px;

  --ease: cubic-bezier(.22, .75, .3, 1);
}

/* 3. 中文排版基座 --------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* 跳转链接 */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  padding: 11px 22px;
  transform: translate(-50%, -180%);
  border-radius: var(--pill);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  transition: transform .22s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* 顶部路径进度线 */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
  background: rgba(11, 31, 51, .14);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

/* 4. 头部 ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-bottom: 14px;
}

/* 4.1 元数据轨 */
.header-rail {
  background: var(--ink);
  border-bottom: 1px solid rgba(227, 168, 59, .22);
}
.rail-inner {
  max-width: var(--wide);
  margin-inline: auto;
  padding: 8px var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, .64);
}
.rail-mono { white-space: nowrap; }
.rail-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.rail-hours {
  margin-left: auto;
  color: rgba(227, 168, 59, .9);
  white-space: nowrap;
}

/* 4.2 悬浮胶囊浮岛 */
.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc(100% - var(--pad) * 2);
  max-width: calc(var(--wide) - var(--pad) * 2);
  margin: 12px auto 0;
  padding: 9px 12px 9px 14px;
  border-radius: var(--pill);
  background: rgba(251, 248, 242, .95);
  border: 1px solid rgba(11, 31, 51, .09);
  box-shadow: 0 14px 34px -22px rgba(11, 31, 51, .6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .25s ease;
}
.site-header[data-scrolled] .header-shell {
  box-shadow: 0 20px 44px -24px rgba(11, 31, 51, .78);
}

/* 4.3 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding-right: 4px;
  border-radius: var(--r-md);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 14px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  transform: rotate(-4deg);
  transition: transform .3s var(--ease), background .3s ease;
}
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: rotate(0deg) scale(1.05);
  background: var(--ink-2);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand-line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  color: var(--rock);
}

/* 4.4 主导航 */
.primary-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item { list-style: none; }
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--gold);
  transition: color .2s ease;
}
.nav-link:hover { background: rgba(11, 31, 51, .07); }
.nav-link[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.nav-link[aria-current="page"] .nav-num { color: var(--gold); }
.nav-cta { display: none; }

/* 4.5 头部右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  transition: background .2s ease;
}
.nav-toggle:hover { background: var(--ink-2); }
.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform .25s var(--ease), opacity .25s ease;
}
.site-header[data-open] .nav-toggle-bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.site-header[data-open] .nav-toggle-bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}
.nav-toggle-label { white-space: nowrap; }

/* 4.6 移动端折叠 */
@media (max-width: 1080px) {
  .header-shell { gap: 10px; padding: 8px 10px 8px 12px; }
  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 12px;
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid rgba(11, 31, 51, .1);
    box-shadow: 0 30px 60px -30px rgba(11, 31, 51, .7);
  }
  .site-header[data-open] .primary-nav { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link {
    justify-content: flex-start;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--r-md);
    background: rgba(11, 31, 51, .035);
  }
  .nav-link:hover { background: rgba(11, 31, 51, .08); }
  .nav-num { font-size: 11px; }
  .nav-cta {
    display: flex;
    width: 100%;
    margin-top: 10px;
  }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .rail-hours { display: none; }
  .brand-line { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; font-size: 17px; }
  .brand-name { font-size: 16px; }
  .rail-inner { font-size: 10.5px; letter-spacing: .07em; }
}

@media (max-width: 380px) {
  .rail-mono:last-of-type { display: none; }
}

/* 5. 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 26px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: rgba(251, 248, 242, .78);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}
.footer-glow {
  position: absolute;
  top: -32%;
  right: -12%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 168, 59, .22), transparent 66%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(250px, 1.5fr)
    minmax(104px, .72fr)
    minmax(104px, .72fr)
    minmax(104px, .72fr)
    minmax(214px, 1.15fr);
  gap: clamp(24px, 3vw, 46px);
  padding-bottom: clamp(32px, 4vw, 54px);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--paper);
}
.footer-summary {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(251, 248, 242, .7);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid rgba(227, 168, 59, .5);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.to-top-arrow { font-family: var(--font-mono); font-size: 14px; line-height: 1; }

.footer-nav {
  display: contents;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  display: inline-block;
  padding: 2px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(251, 248, 242, .76);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--gold);
}

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-row {
  display: grid;
  grid-template-columns: 3.4em 1fr;
  gap: 10px;
  align-items: baseline;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(227, 168, 59, .85);
}
.contact-value {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(251, 248, 242, .86);
  word-break: break-word;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(251, 248, 242, .14);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(251, 248, 242, .55);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer-legal-links .footer-link { font-size: 13px; }

@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* 6. 通用组件 ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(48px, 7vw, 104px); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .lede { color: rgba(251, 248, 242, .74); }
.section--ink .eyebrow { color: rgba(251, 248, 242, .6); }
.section--ink .section-title { color: var(--paper); }
.section--ink .btn-ghost {
  --btn-fg: var(--paper);
  border-color: rgba(251, 248, 242, .32);
}
.section--ink .btn-ghost:hover {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  border-color: var(--paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rock);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--ink);
}
.lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.85;
  color: var(--rock);
}

/* 按钮 */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 14px 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s ease,
    color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px rgba(11, 31, 51, .75);
}
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--coral); --btn-fg: #ffffff; }
.btn-primary:hover { --btn-bg: #e0563a; }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(11, 31, 51, .22);
}
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* 索引标签 */
.index-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: rgba(227, 168, 59, .18);
  color: #7a5a12;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.index-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* 面包屑 */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--rock);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb-item { display: flex; align-items: center; gap: 8px; }
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--mist);
}
.breadcrumb-link {
  color: var(--rock);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.breadcrumb-link:hover { color: var(--ink); border-bottom-color: var(--gold); }
.breadcrumb-current { color: var(--ink); }

/* 连续画布块 */
.surface {
  padding: clamp(22px, 3.4vw, 44px);
  border-radius: var(--r-xl);
  background: var(--paper);
}
.section--ink .surface { background: rgba(251, 248, 242, .06); }

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--ink) 0%, var(--ink-2) 58%, #1d3b58 100%);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(227, 168, 59, .16), transparent 46%,
    rgba(11, 31, 51, .48));
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

.media-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: rgba(11, 31, 51, .72);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--rock);
}
.section--ink .media-caption { color: rgba(251, 248, 242, .6); }

/* 7. 动效 ---------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .btn:hover { transform: none; }
}
