/* ============================================================
   金年会主站 · 共享站点样式  /assets/site.css
   深墨绿 / 炭黑 / 品牌金 · 转播台战术板美学
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink-deep:    #07100D;
  --ink-green:   #0B1F18;
  --green-layer: #12362A;
  --gold:        #C9A227;
  --gold-light:  #F2D27A;
  --paper:       #F7F9F6;
  --mist:        #D9DED8;
  --slate:       #AEB8B0;
  --amber:       #E38B2C;
  --cyan:        #3FA9C9;

  --line-gold: rgba(201, 162, 39, 0.32);
  --line-soft: rgba(217, 222, 216, 0.14);
  --line-ghost: rgba(217, 222, 216, 0.08);

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 3.8vw, 52px);
  --shell: 1320px;
  --radius: 2px;

  --shadow-panel: 0 26px 70px -34px rgba(0, 0, 0, 0.92);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-break: 1199px;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(1200px 620px at 78% -10%, rgba(201, 162, 39, 0.09), transparent 62%),
    radial-gradient(900px 520px at -8% 6%, rgba(63, 169, 201, 0.06), transparent 58%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul, ol { padding: 0; }

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

a { color: inherit; }

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

[hidden] { display: none !important; }

/* ---------- 3. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 4. 容器与排版工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 88px); }

.section--paper {
  background: var(--paper);
  color: var(--ink-green);
}

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

@media (min-width: 900px) {
  .grid--split { grid-template-columns: 5fr 7fr; }
  .grid--aside { grid-template-columns: 3fr 9fr; }
}

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink-deep);
  border-bottom: 1px solid var(--line-gold);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: rgba(201, 162, 39, 0.58);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, 0.95);
}

.header-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 5.1 公告细条 */
.header-rail {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.13) 0%, rgba(201, 162, 39, 0) 52%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.16);
}
.header-rail__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
}
.rail-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(227, 139, 44, 0.16);
  animation: rail-pulse 2.6s ease-in-out infinite;
}
@keyframes rail-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.32; }
}
.rail-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate);
}
.rail-stamp {
  flex: none;
  margin-left: auto;
  padding-left: 12px;
  border-left: 1px solid rgba(201, 162, 39, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(201, 162, 39, 0.75);
  white-space: nowrap;
}

/* 5.2 命令栏主体 */
.header-core { position: relative; }

.header-core__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav toggle";
  align-items: center;
  gap: clamp(16px, 2.6vw, 40px);
  padding-block: 12px;
}

/* 5.3 品牌 */
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--paper);
  min-width: 0;
}

.brand-mark {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
  align-items: end;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 1px solid rgba(201, 162, 39, 0.44);
  background: rgba(201, 162, 39, 0.09);
  border-radius: 1px;
}
.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 1px;
  font-style: normal;
}
.brand-mark i:nth-child(1) { height: 8px;  background: rgba(201, 162, 39, 0.55); }
.brand-mark i:nth-child(2) { height: 12px; background: rgba(201, 162, 39, 0.8); }
.brand-mark i:nth-child(3) { height: 18px; background: var(--gold); }

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.18;
}
.brand-line {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.brand-descriptor {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  color: var(--slate);
  white-space: nowrap;
}
.brand:hover .brand-line { color: var(--gold-light); }

.brand--footer .brand-line { font-size: 17px; }

/* 5.4 导航 */
.site-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.8vw, 28px);
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.5vw, 22px);
  list-style: none;
}

.nav-item { flex: none; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-block: 6px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease-out);
}
.nav-link:hover { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--gold-light); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] .nav-index { color: var(--gold); }

.nav-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(174, 184, 176, 0.55);
  font-variant-numeric: tabular-nums;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 5.5 移动开关 */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(201, 162, 39, 0.08);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.16); }

.nav-toggle-box {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle-box span {
  display: block;
  height: 2px;
  background: var(--gold);
  transition: transform 0.24s var(--ease-out), opacity 0.18s linear;
}
.nav-toggle[data-open="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[data-open="true"] .nav-toggle-box span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}
.nav-toggle-text { line-height: 1; }

/* 5.6 滚动进度 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.header-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 62%, var(--amber) 100%);
  transition: width 0.12s linear;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out),
              color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out);
}
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #0A1510;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #0A1510;
}
.btn-ghost {
  background: transparent;
  border-color: rgba(247, 249, 246, 0.28);
  color: var(--paper);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink-deep);
  border-top: 1px solid var(--line-gold);
  color: var(--paper);
}
.site-footer::before {
  content: "";
  display: block;
  height: 7px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(201, 162, 39, 0.55) 0 1px,
    transparent 1px 26px
  );
  opacity: 0.65;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top { padding-block: clamp(38px, 5.5vw, 68px) clamp(30px, 4vw, 50px); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.6fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

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

.footer-summary {
  margin-top: 20px;
  max-width: 36ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--slate);
}
.footer-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(201, 162, 39, 0.72);
}

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

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

.footer-group-title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  line-height: 1.4;
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 9px;
}
.footer-list a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}
.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--gold-light);
  padding-left: 6px;
}

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

.footer-contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.footer-contact-list li { display: grid; gap: 3px; }

.footer-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(174, 184, 176, 0.68);
}
.footer-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
  word-break: break-word;
}
.footer-value--mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.footer-base {
  border-top: 1px solid var(--line-soft);
  padding-block: 18px;
  background: linear-gradient(180deg, rgba(18, 54, 42, 0.28), rgba(7, 16, 13, 0));
}
.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(174, 184, 176, 0.78);
}
.footer-copy { color: rgba(247, 249, 246, 0.82); }
.footer-icp { color: var(--slate); }
.footer-note { color: rgba(174, 184, 176, 0.6); }

/* ---------- 8. 面包屑 ---------- */
.crumbs {
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.crumbs a {
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.crumbs a:hover,
.crumbs a:focus-visible { color: var(--gold-light); }
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(174, 184, 176, 0.4);
}
.crumbs [aria-current="page"] { color: var(--gold); }

/* ---------- 9. 图片容器（页面阶段复用） ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background:
    linear-gradient(152deg, rgba(18, 54, 42, 0.92) 0%, rgba(7, 16, 13, 0.96) 100%);
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(201, 162, 39, 0.07) 0 1px,
    transparent 1px 14px
  );
}
.figure > img,
.figure > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--portrait { aspect-ratio: 3 / 4; }
.figure--square   { aspect-ratio: 1 / 1; }
.figure--wide     { aspect-ratio: 21 / 9; }

.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate);
}

/* ---------- 10. 分段切换 ---------- */
.segmented { display: block; }

.segmented-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(18, 54, 42, 0.55);
}

.segmented-btn {
  padding: 9px 16px;
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.segmented-btn:hover { color: var(--gold-light); }
.segmented-btn.is-active,
.segmented-btn[aria-selected="true"] {
  background: var(--gold);
  color: #0A1510;
  font-weight: 600;
}

.segmented-panel { padding-top: 22px; }
.segmented-panel.is-active {
  animation: panel-in 0.32s var(--ease-out) both;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 11. 响应式：平板与手机 ---------- */
@media (max-width: 1199px) {
  .header-core__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle";
    gap: 12px;
    padding-block: 11px;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    justify-content: flex-start;
    padding: 18px var(--gutter) 22px;
    background: var(--ink-green);
    border-block: 1px solid var(--line-gold);
    box-shadow: var(--shadow-panel);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s var(--ease-out),
                transform 0.24s var(--ease-out),
                visibility 0.24s linear;
  }
  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-item { width: 100%; }
  .nav-link {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-ghost);
  }
  .nav-link::after { display: none; }
  .nav-index { font-size: 11px; }
  .nav-link[aria-current="page"] {
    color: var(--gold-light);
    box-shadow: inset 3px 0 0 var(--gold);
    background: rgba(201, 162, 39, 0.08);
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
  }
  .nav-actions .btn { width: 100%; }

  .rail-stamp { display: none; }

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

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

  .rail-text { font-size: 11px; }

  .brand-mark { width: 28px; height: 28px; padding: 5px; }
  .brand-mark i:nth-child(3) { height: 16px; }
  .brand-mark i:nth-child(2) { height: 10px; }
  .brand-mark i:nth-child(1) { height: 7px; }
  .brand-line { font-size: 15.5px; }
  .brand-descriptor {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    white-space: normal;
  }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base__inner { font-size: 11.5px; gap: 6px 16px; }

  .segmented-list { width: 100%; }
  .segmented-btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 420px) {
  .nav-toggle-text { display: none; }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 12. 动效降级 ---------- */
@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;
    scroll-behavior: auto !important;
  }
  .rail-dot { animation: none; }
  .segmented-panel.is-active { animation: none; }
}
