/* ==========================================================================
   银河服务 · 共享站点样式  /assets/site.css
   语言：框架式导航 / 星图轨道 / 编辑部目录
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #081426;
  --navy: #0B1E3F;
  --violet: #5B3FA6;
  --teal: #0E3B3E;
  --indigo: #163A5F;
  --silver: #C7CEDB;
  --moon: #F4F6FB;
  --signal: #FF7A1A;
  --gold: #D9B36C;
  --mist: #8D7BC4;

  --line-light: rgba(199, 206, 219, 0.22);
  --line-dark: rgba(199, 206, 219, 0.14);
  --line-ink: rgba(8, 20, 38, 0.12);
  --muted-ink: #55637C;

  --shell: min(1320px, 100% - 32px);
  --radius: 2px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-display);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shadow-soft: 0 18px 42px -34px rgba(8, 20, 38, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

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

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

body {
  background-color: var(--moon);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

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

a, button { -webkit-tap-highlight-color: transparent; }

/* ---------- 3. 中文排版与基础元素 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(32px, 5.2vw, 64px); }
h2 { font-size: clamp(24px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

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

/* ---------- 4. 容器与分区 ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  width: var(--shell);
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 88px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background-color: currentColor;
  flex: none;
}

/* ---------- 5. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-ink);
}

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

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(8, 20, 38, 0.28);
}

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid rgba(8, 20, 38, 0.18);
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 6. 按钮与链接 ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s ease,
              color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cta:hover { transform: translateY(-1px); }
.cta:active { transform: translateY(0); }

.cta--signal {
  background-color: var(--signal);
  color: var(--ink);
  box-shadow: 0 12px 26px -18px rgba(255, 122, 26, 0.95);
}

.cta--signal:hover { background-color: #FF8C3D; }

.cta--ghost {
  background-color: transparent;
  color: var(--moon);
  border-color: var(--line-light);
}

.cta--ghost:hover {
  background-color: rgba(91, 63, 166, 0.32);
  border-color: rgba(217, 179, 108, 0.6);
}

.cta--ink {
  background-color: var(--ink);
  color: var(--moon);
}

.cta--ink:hover { background-color: var(--indigo); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 63, 166, 0.35);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.link-more::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform 0.18s var(--ease);
}

.link-more:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.link-more:hover::after { transform: translateX(3px); }

/* ---------- 7. 标签 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 13px;
  border: 1px solid rgba(91, 63, 166, 0.32);
  border-radius: 999px;
  background-color: rgba(91, 63, 166, 0.07);
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pill:hover {
  background-color: rgba(91, 63, 166, 0.18);
  border-color: var(--violet);
}

/* ---------- 8. 栅格与卡片 ---------- */
.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)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 26px);
  background-color: #FFFFFF;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- 9. 正文区 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
}

.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }

/* ---------- 10. 图片容器基础规则 ---------- */
.media-figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background-color: var(--indigo);
  background-image:
    radial-gradient(120% 90% at 12% 8%, rgba(91, 63, 166, 0.85), transparent 62%),
    radial-gradient(90% 80% at 88% 96%, rgba(14, 59, 62, 0.95), transparent 66%),
    linear-gradient(160deg, #163A5F, #0B1E3F);
}

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }

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

.media-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted-ink);
}

/* ---------- 11. 页头：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--navy);
  background-image: linear-gradient(180deg, rgba(11, 30, 63, 0.99), rgba(8, 20, 38, 0.97));
  color: var(--moon);
  border-bottom: 1px solid rgba(217, 179, 108, 0.26);
  transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.site-header[data-scrolled="true"] {
  border-bottom-color: rgba(217, 179, 108, 0.5);
  box-shadow: 0 16px 40px -30px rgba(0, 0, 0, 0.95);
}

.header-frame {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
  min-height: 76px;
  padding-block: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
}

/* 跳过链接 */
.skip-link {
  position: absolute;
  left: 12px;
  top: 6px;
  z-index: 120;
  transform: translateY(-180%);
  padding: 10px 18px;
  background-color: var(--signal);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease);
}

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

/* 品牌 */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--moon);
}

.brand-glyph {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 179, 108, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
  background-image: radial-gradient(circle at 32% 26%, rgba(141, 123, 196, 0.55), transparent 66%);
  transition: border-color 0.2s ease, transform 0.24s var(--ease);
}

.brand-mark:hover .brand-glyph {
  border-color: var(--gold);
  transform: rotate(45deg);
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(199, 206, 219, 0.62);
  line-height: 1.5;
}

/* 导航 */
.site-nav { justify-self: end; }

.nav-list {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background-color: rgba(8, 20, 38, 0.4);
  overflow: hidden;
}

.nav-list li { display: flex; }

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(244, 246, 251, 0.84);
  text-decoration: none;
  border-left: 1px solid var(--line-dark);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-list li:first-child a { border-left: 0; }

.nav-list a:hover {
  color: #FFFFFF;
  background-color: rgba(91, 63, 166, 0.34);
}

.nav-list a[aria-current="page"] {
  color: var(--moon);
  font-weight: 700;
  background-image: linear-gradient(180deg, rgba(91, 63, 166, 0.6), rgba(22, 58, 95, 0.6));
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background-color: var(--signal);
}

/* 头部右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background-color: rgba(244, 246, 251, 0.06);
  color: var(--moon);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.nav-toggle:hover {
  background-color: rgba(91, 63, 166, 0.36);
  border-color: rgba(217, 179, 108, 0.5);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-text { line-height: 1; }

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background-color: var(--navy);
  background-image:
    radial-gradient(120% 80% at 6% 0%, rgba(91, 63, 166, 0.42), transparent 62%),
    radial-gradient(96% 74% at 94% 8%, rgba(14, 59, 62, 0.7), transparent 62%),
    linear-gradient(180deg, #0B1E3F 0%, #071022 100%);
  color: var(--silver);
  border-top: 1px solid rgba(199, 206, 219, 0.16);
}

.star-band {
  height: 3px;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(217, 179, 108, 0.16) 12%,
    rgba(217, 179, 108, 0.9) 44%,
    rgba(141, 123, 196, 0.85) 62%,
    rgba(199, 206, 219, 0.2) 88%,
    transparent 100%
  );
}

.footer-frame {
  width: var(--shell);
  margin-inline: auto;
  padding-top: clamp(40px, 5vw, 64px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2.2fr;
  gap: clamp(28px, 4vw, 64px);
}

.footer-brand { display: grid; gap: 10px; align-content: start; }

.footer-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--moon);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(199, 206, 219, 0.82);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(199, 206, 219, 0.55);
}

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

.footer-col { display: grid; gap: 14px; align-content: start; }

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(199, 206, 219, 0.16);
}

.footer-list {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.65;
}

.footer-list a {
  color: rgba(199, 206, 219, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-list a:hover {
  color: var(--moon);
  border-bottom-color: rgba(217, 179, 108, 0.72);
}

.footer-list--plain li { color: rgba(199, 206, 219, 0.8); }
.footer-list--plain .mono { color: rgba(244, 246, 251, 0.92); word-break: break-all; }

.footer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: clamp(32px, 4vw, 52px);
  padding: 11px 16px;
  border: 1px solid rgba(199, 206, 219, 0.16);
  border-radius: var(--radius);
  background-color: rgba(8, 20, 38, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.strip-label { color: var(--gold); }

.footer-strip a {
  color: rgba(244, 246, 251, 0.9);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-strip a:hover {
  color: var(--gold);
  border-bottom-color: rgba(217, 179, 108, 0.6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 20px;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(199, 206, 219, 0.14);
  font-size: 13px;
  color: rgba(199, 206, 219, 0.66);
}

.footer-legal .mono { color: rgba(199, 206, 219, 0.6); }

/* ---------- 13. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.62s ease, transform 0.62s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-frame {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 64px;
  }

  .header-cta { display: none; }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 10px 0 18px;
    background-color: var(--navy);
    background-image: linear-gradient(180deg, rgba(11, 30, 63, 0.99), rgba(8, 20, 38, 0.99));
    border-bottom: 1px solid rgba(217, 179, 108, 0.32);
    box-shadow: 0 32px 64px -44px #000000;
  }

  .site-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: column;
    width: var(--shell);
    margin-inline: auto;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    overflow: visible;
  }

  .nav-list li { border-bottom: 1px solid var(--line-dark); }
  .nav-list li:first-child { border-top: 1px solid var(--line-dark); }

  .nav-list a {
    padding: 14px 4px;
    min-height: 52px;
    border-left: 0;
    font-size: 15px;
  }

  .nav-list a[aria-current="page"] { background-image: none; }

  .nav-list a[aria-current="page"]::after {
    left: 4px;
    right: auto;
    width: 22px;
    bottom: 6px;
  }
}

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

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

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

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

  .brand-sub { display: none; }

  .header-frame { min-height: 60px; padding-block: 8px; }

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

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

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

  .footer-strip { font-size: 11.5px; }
}

/* ---------- 15. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

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

  .cta:hover,
  .link-more:hover::after,
  .brand-mark:hover .brand-glyph {
    transform: none;
  }
}
