/* =========================================
   Site Kit / site.css
   皇冠入口 · hub-hg.com.cn
   ========================================= */

/* ---------- Reset 与基础变量 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

button {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  border: none;
  background: none;
  cursor: pointer;
}

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

:root {
  --bg-deep: #050810;
  --bg-main: #0A1128;
  --bg-panel: #1B2A6B;
  --line: #2E4A9F;
  --coral: #FF6B4A;
  --gold: #F5B84B;
  --text: #F0F3F8;
  --text-dim: #B8C0E0;
  --teal: #3FD0C9;
  --grad: linear-gradient(135deg, #0A1128, #1B2A6B);
  --font-display: Impact, 'Arial Narrow', 'Microsoft YaHei', sans-serif;
  --font-body: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
  --radius: 10px;
  --max-w: 1400px;
  --shadow: 0 16px 40px rgba(5, 8, 16, 0.35);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: linear-gradient(180deg, #0A1128 0%, #0c1534 60%, #050810 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  display: block;
  flex: 1;
}

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

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

::selection {
  background: var(--coral);
  color: #0A1128;
}

/* ---------- 通用容器与工具 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 无障碍跳转与滚动进度 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 18px;
  z-index: 600;
  padding: 12px 22px;
  background: var(--coral);
  color: #0A1128;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.35);
  transition: top 0.18s ease;
}

.skip-link:focus-visible {
  top: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 500;
  pointer-events: none;
  background: transparent;
}

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

/* ---------- 头部 / 报头刊头 ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: linear-gradient(180deg, #0d1739 0%, #0A1128 78%);
  border-bottom: 1px solid rgba(46, 74, 159, 0.45);
}

.header-announce {
  margin: 0;
  padding: 9px 20px;
  background: rgba(5, 8, 16, 0.8);
  border-bottom: 1px solid rgba(46, 74, 159, 0.3);
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead {
  position: relative;
  padding: 44px 24px 26px;
  text-align: center;
  border-bottom: 1px solid rgba(184, 192, 224, 0.28);
}

.masthead-meta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(184, 192, 224, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead-meta-left {
  left: 16px;
}

.masthead-meta-right {
  right: 16px;
}

.masthead-brand {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.14em;
  color: var(--text);
  margin: 0;
}

.masthead-brand::before {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--coral);
  margin: 0 auto 18px;
}

.masthead-link {
  color: inherit;
  text-decoration: none;
}

.masthead-sub {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--text-dim);
}

/* ---------- 导航 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(46, 74, 159, 0.6);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: var(--text);
}

.nav-toggle:hover .nav-toggle-bar {
  background: var(--coral);
}

.site-nav {
  background: rgba(5, 8, 16, 0.35);
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
  transition: color 0.14s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -2px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--coral);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--coral);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-deep);
  color: var(--text-dim);
  border-top: 1px solid rgba(46, 74, 159, 0.45);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 44px;
  padding-bottom: 52px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.14em;
  color: var(--text);
  margin: 0;
}

.footer-brand-sub {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-top: 4px;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 36em;
}

.footer-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(184, 192, 224, 0.7);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-info {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0 0 6px;
  line-height: 1.7;
}

.footer-phone {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--text);
}

.footer-address {
  line-height: 1.6;
}

.footer-worktime {
  font-size: 13px;
}

.footer-legal-list li {
  margin-bottom: 8px;
}

.footer-link {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.14s ease;
}

.footer-link:hover {
  color: var(--coral);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(46, 74, 159, 0.3);
  padding: 22px 0;
}

.footer-copy,
.footer-icp {
  font-size: 13px;
  color: rgba(184, 192, 224, 0.7);
  margin: 0;
}

/* ---------- 杂志式章节标题 ---------- */
.section {
  padding: 68px 0;
}

.section + .section {
  border-top: 1px solid rgba(46, 74, 159, 0.35);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid rgba(46, 74, 159, 0.5);
  padding-bottom: 14px;
  margin-bottom: 32px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--text);
}

.section-line {
  flex: 1;
  height: 1px;
  align-self: center;
  background: rgba(46, 74, 159, 0.35);
}

/* ---------- 12 列非对称栅格 ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}

.col-span-3 {
  grid-column: span 3;
}

.col-span-4 {
  grid-column: span 4;
}

.col-span-6 {
  grid-column: span 6;
}

.col-span-8 {
  grid-column: span 8;
}

.col-span-9 {
  grid-column: span 9;
}

.col-span-12 {
  grid-column: 1 / -1;
}

/* ---------- 卡片与按钮 ---------- */
.card {
  background: rgba(27, 42, 107, 0.3);
  border: 1px solid rgba(46, 74, 159, 0.5);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  background: linear-gradient(135deg, rgba(27, 42, 107, 0.85), rgba(10, 17, 40, 0.9));
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.14s ease, color 0.14s ease, box-shadow 0.2s ease, transform 0.14s ease;
}

.btn-coral {
  background: var(--coral);
  color: #0A1128;
}

.btn-coral:hover {
  background: #ff8361;
  color: #0A1128;
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.28);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ---------- 状态徽章与数字指标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 184, 75, 0.08);
  border: 1px solid rgba(245, 184, 75, 0.4);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.metric {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  margin: 0;
}

.metric-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* ---------- 图片占位容器 ---------- */
.image-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(46, 74, 159, 0.6);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(27, 42, 107, 0.9), rgba(10, 17, 40, 0.96));
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 74, 159, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 74, 159, 0.3) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

.image-frame::after {
  content: "图";
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(184, 192, 224, 0.45);
}

.image-frame--wide {
  aspect-ratio: 16 / 9;
}

.image-frame--square {
  aspect-ratio: 1 / 1;
}

/* ---------- 正文与面包屑 ---------- */
.prose {
  max-width: 76ch;
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.prose h2 {
  font-size: 30px;
  margin-top: 1.6em;
}

.prose h3 {
  font-size: 22px;
  margin-top: 1.4em;
}

.prose ul {
  list-style: square;
  margin-left: 1.2em;
  padding-left: 0.4em;
}

.prose ol {
  list-style: decimal;
  margin-left: 1.2em;
  padding-left: 0.4em;
}

.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--coral);
}

.prose strong {
  color: var(--text);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin: 18px 0 0;
}

.breadcrumb a {
  color: var(--text-dim);
}

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

.breadcrumb-sep {
  opacity: 0.55;
}

/* ---------- 滚动显现 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .masthead {
    padding: 32px 12px 22px;
  }

  .masthead-brand {
    font-size: clamp(40px, 8vw, 64px);
  }

  .nav-link {
    padding: 13px 10px;
    font-size: 14px;
    letter-spacing: 0.04em;
  }

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

  .section {
    padding: 52px 0;
  }

  .col-span-3,
  .col-span-4 {
    grid-column: span 6;
  }

  .col-span-8,
  .col-span-9 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 18px;
  }

  .header-announce {
    white-space: normal;
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 8px 14px;
  }

  .masthead {
    padding: 26px 0 18px;
    border-bottom: 0;
  }

  .masthead-meta {
    display: none;
  }

  .masthead-brand {
    font-size: clamp(36px, 12vw, 52px);
    letter-spacing: 0.08em;
  }

  .masthead-sub {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .js .nav-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav[data-open] {
    display: block;
  }

  .site-nav {
    border-top: 1px solid rgba(46, 74, 159, 0.35);
    background: rgba(5, 8, 16, 0.8);
  }

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

  .nav-link {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(46, 74, 159, 0.25);
  }

  .nav-link::after {
    left: 4px;
    right: 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

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

  .grid-12 {
    gap: 18px;
  }

  .col-span-3,
  .col-span-4,
  .col-span-6,
  .col-span-8,
  .col-span-9,
  .col-span-12 {
    grid-column: 1 / -1;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-index {
    font-size: 24px;
  }

  .section-title {
    font-size: 24px;
  }
}

/* ---------- 低动态偏好 ---------- */
@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress-inner {
    transition: none;
  }

  .nav-link::after {
    transition: none;
  }
}
