/* ============ og视讯会馆 · shared site kit (/assets/site.css) ============ */

*,
*::before,
*::after { box-sizing: border-box; }

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

body { margin: 0; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:root {
  --ink: #06121F;
  --panel: #0B2233;
  --panel-2: #081B29;
  --line: #12384A;
  --paper: #E8F1F2;
  --muted: #9FB3B8;
  --dim: #5B7A85;
  --cyan: #3BE0D0;
  --gold: #F2B84B;
  --moss: #6E8B6B;
  --clay: #B8735A;
  --mist: #D9E6E8;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 8% -8%, rgba(59, 224, 208, .09), transparent 62%),
    radial-gradient(900px 520px at 102% 4%, rgba(242, 184, 75, .06), transparent 58%),
    repeating-linear-gradient(0deg, rgba(18, 56, 74, .32) 0 1px, transparent 1px 72px);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}

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

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--muted);
}

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -90px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--cyan);
  color: #04121B;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #081B29 0%, #06121F 100%);
  border-bottom: 1px solid var(--line);
}

.status-rail {
  background:
    linear-gradient(90deg, rgba(59, 224, 208, .10), rgba(6, 18, 31, 0) 48%),
    #041019;
  border-bottom: 1px solid rgba(18, 56, 74, .9);
}

.status-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 42px;
  padding-block: 6px;
}

.status-rail__now {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.status-rail__value {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(110, 139, 107, .16);
  flex: none;
}

.status-dot--live {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(59, 224, 208, .16), 0 0 12px rgba(59, 224, 208, .5);
  animation: og-pulse 3.4s ease-in-out infinite;
}

@keyframes og-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .42; }
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 34, 51, .75);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.chip:hover {
  color: var(--paper);
  border-color: rgba(59, 224, 208, .5);
  background: rgba(59, 224, 208, .1);
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}
.chip__dot--gold { background: var(--gold); }
.chip__dot--moss { background: var(--moss); }
.chip__dot--clay { background: var(--clay); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  flex: none;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  align-items: end;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(59, 224, 208, .06);
  transition: border-color .22s var(--ease), background-color .22s var(--ease);
}
.brand:hover .brand__mark {
  border-color: rgba(59, 224, 208, .55);
  background: rgba(59, 224, 208, .12);
}
.brand__mark span {
  display: block;
  height: 16px;
  border-radius: 2px;
  background: var(--line);
}
.brand__mark span:nth-child(1) { height: 9px; background: var(--cyan); }
.brand__mark span:nth-child(2) { height: 16px; background: var(--gold); }
.brand__mark span:nth-child(3) { height: 5px; background: var(--moss); }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}
.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 34, 51, .85);
  font-size: 13px;
  color: var(--paper);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle:hover { border-color: rgba(59, 224, 208, .55); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4vw, 18px);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 4px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}
.site-nav__link:hover { color: var(--paper); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--paper); }
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 88px);
  background: linear-gradient(180deg, #06121F 0%, #040D16 100%);
  border-top: 1px solid var(--line);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(59, 224, 208, 0) 34%, rgba(242, 184, 75, 0) 62%, var(--gold));
  opacity: .6;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.5fr .8fr .8fr 1.25fr;
  gap: clamp(22px, 3vw, 44px);
  padding-block: clamp(36px, 5vw, 64px) clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.brand--footer { margin-bottom: 16px; }

.footer-brand__line {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 30ch;
}

.footer-brand__sign {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--dim);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.footer-col__list {
  display: grid;
  gap: 10px;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-link:hover {
  color: var(--paper);
  transform: translateX(3px);
}

.footer-col__text {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 14px;
}

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

.footer-info__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-info__key {
  flex: none;
  width: 42px;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--gold);
}

.footer-info__val { color: var(--paper); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px 28px;
}

.footer-legal {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.footer-legal__note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--dim);
}

/* ---------- shared content primitives ---------- */
.section { padding-block: clamp(36px, 5.5vw, 76px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 22px;
  padding-bottom: 14px;
  margin-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}

.section__title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--cyan);
}

.display {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
}

.lede {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
}

.card {
  position: relative;
  display: block;
  background: linear-gradient(158deg, #0C2536 0%, #081A28 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 24px);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.card:hover {
  border-color: rgba(59, 224, 208, .45);
  transform: translateY(-2px);
}

.card__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(6, 18, 31, .6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}
.tag--cyan { color: var(--cyan); border-color: rgba(59, 224, 208, .35); background: rgba(59, 224, 208, .08); }
.tag--gold { color: var(--gold); border-color: rgba(242, 184, 75, .35); background: rgba(242, 184, 75, .08); }
.tag--moss { color: #A6C2A2; border-color: rgba(110, 139, 107, .45); background: rgba(110, 139, 107, .12); }
.tag--clay { color: #D79B84; border-color: rgba(184, 115, 90, .45); background: rgba(184, 115, 90, .12); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 34, 51, .85);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover {
  border-color: rgba(59, 224, 208, .6);
  background: rgba(59, 224, 208, .1);
  transform: translateY(-1px);
}

.btn--gold {
  background: linear-gradient(180deg, #F2B84B 0%, #D89A2C 100%);
  border-color: transparent;
  color: #0A1A26;
  font-weight: 700;
}
.btn--gold:hover {
  background: linear-gradient(180deg, #FFC965 0%, #E3A63A 100%);
  border-color: transparent;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(159, 179, 184, .4);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--paper); }
.breadcrumb__sep { color: var(--line); }

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.prose {
  max-width: 72ch;
  color: rgba(232, 241, 242, .87);
}
.prose h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-top: 1.7em;
}
.prose h3 {
  font-size: 19px;
  margin-top: 1.5em;
}
.prose p { margin-top: .9em; }
.prose ul, .prose ol {
  margin-top: .9em;
  padding-left: 1.25em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: .45em; }
.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(59, 224, 208, .4);
}

.toc {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.toc__link {
  display: block;
  padding: 7px 8px;
  font-size: 13.5px;
  color: var(--muted);
  border-radius: 6px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.toc__link:hover { color: var(--paper); background: rgba(59, 224, 208, .07); }
.toc__link.is-active {
  color: var(--cyan);
  background: rgba(59, 224, 208, .1);
  box-shadow: inset 2px 0 0 var(--cyan);
}

/* ---------- responsive media containers ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #0B2233 0%, #06121F 62%);
}
.media > img,
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(6, 18, 31, 0), rgba(6, 18, 31, .9));
}

/* ---------- reading progress ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  pointer-events: none;
}

/* ---------- reveal ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- copy button ---------- */
[data-copy] { position: relative; }
[data-copy][data-copy-state="done"] {
  border-color: rgba(110, 139, 107, .8) !important;
  color: #A6C2A2 !important;
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- mobile nav breakpoint ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: 120px; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: block;
    padding: 6px var(--gutter) 18px;
    background: var(--panel-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px rgba(0, 0, 0, .5);
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__link {
    display: flex;
    justify-content: space-between;
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 1px solid rgba(18, 56, 74, .8);
  }
  .site-nav__link::after { display: none; }
  .site-nav__item:last-child .site-nav__link { border-bottom: 0; }
  .site-nav__link[aria-current="page"] { color: var(--cyan); }

  .has-js .site-nav { display: none; }
  .has-js .site-nav[data-open="true"] { display: block; }
  .has-js .nav-toggle { display: inline-flex; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .status-rail__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-block: 9px;
  }
  .chip-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .chip-list::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .masthead__inner {
    min-height: 64px;
    gap: 12px;
  }
  .brand { gap: 10px; }
  .brand__name { font-size: 17px; }
  .brand__tag { font-size: 9.5px; letter-spacing: .12em; }

  .footer-shell { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}

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