/* =========================================================
   博澳体育 · night-lamp-boao.com.cn
   共享样式表 /assets/site.css
   ========================================================= */

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

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

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

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

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

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

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #070B14;
  --ink-2: #0E1524;
  --line: #1C2739;
  --text: #E6EDF7;
  --muted: #93A4BC;
  --lamp: #F2B75C;
  --screen: #35D6C4;
  --amber: #FF8A3D;
  --turf: #1E6B5A;
  --glow: #F7EFE2;

  --lit: 1;
  --bar: 72px;
  --shell: 1320px;
  --edge: clamp(20px, 4.2vw, 64px);
  --gap: clamp(56px, 8vh, 128px);
  --hair: 2px solid var(--line);
  --shadow: 6px 6px 0 rgba(0, 0, 0, .5);

  --font-display: "Oswald", "Bebas Neue", "Arial Narrow",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Helvetica Neue", system-ui, -apple-system,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "IBM Plex Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-lamp="dim"] {
  --lit: .32;
  --ink: #04060C;
  --ink-2: #080E1A;
  --line: #141D2C;
  --text: #BFCBDE;
  --muted: #6C7C94;
}

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

/* ---------- 3. 中文排版基座 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 88% -12%, rgba(53, 214, 196, .07), transparent 60%),
    radial-gradient(90% 70% at 4% 2%, rgba(242, 183, 92, .08), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

p { max-width: 66ch; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--text);
}

strong { font-weight: 700; }

::selection { background: rgba(242, 183, 92, .3); color: var(--glow); }

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

html[data-lamp="dim"] :focus-visible { outline-color: var(--lamp); }

.skip {
  position: absolute;
  top: 10px;
  left: -9999px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--lamp);
  color: #150F07;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .06em;
}

.skip:focus { left: var(--edge); }

/* ---------- 4. 命令栏头部 ---------- */
.cmdbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar);
  border-bottom: var(--hair);
  background: var(--ink);
  transition: height .3s var(--ease), box-shadow .3s var(--ease);
}

.cmdbar[data-condensed="true"] {
  --bar: 56px;
  box-shadow: 0 16px 26px -18px rgba(0, 0, 0, .95);
}

.cmdbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 30px);
  width: min(var(--shell), calc(100% - var(--edge) * 2));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__bulb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 0 4px rgba(242, 183, 92, .15);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

html[data-lamp="dim"] .brand__bulb {
  background: var(--muted);
  box-shadow: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  letter-spacing: .03em;
}

.brand__status {
  padding: 4px 6px;
  border: 1px solid rgba(242, 183, 92, .42);
  color: var(--lamp);
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

html[data-lamp="dim"] .brand__status {
  color: var(--muted);
  border-color: var(--line);
}

.chan {
  display: flex;
  align-items: center;
  min-width: 0;
}

.chan__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.chan__link {
  position: relative;
  display: inline-block;
  padding: 6px 1px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .2s var(--ease);
}

.chan__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .26s var(--ease);
}

.chan__link:hover { color: var(--text); }
.chan__link:hover::after { transform: scaleX(1); }

.chan__link[aria-current="page"] { color: var(--text); }
.chan__link[aria-current="page"]::after { transform: scaleX(1); }

.cmdbar__side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.scoreline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: var(--hair);
  background: var(--ink-2);
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .04em;
}

.scoreline__label { color: var(--screen); }

.scoreline__num {
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scoreline__vs { color: var(--muted); }

.lamprope {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  border: var(--hair);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .06em;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

.lamprope__cord {
  position: relative;
  width: 2px;
  height: 15px;
  background: currentColor;
}

.lamprope__cord::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: background-color .25s var(--ease);
}

.lamprope[aria-pressed="true"] {
  border-color: rgba(242, 183, 92, .55);
  color: var(--lamp);
}

.lamprope[aria-pressed="true"] .lamprope__cord::after { background: var(--lamp); }

.navbtn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: var(--hair);
  color: var(--text);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .06em;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

.navbtn__bars {
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.navbtn[aria-expanded="true"] {
  border-color: var(--amber);
  color: var(--amber);
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  overflow: hidden;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--screen);
  transition: width .15s linear;
}

html[data-lamp="dim"] .progress__bar { background: var(--muted); }

/* ---------- 5. 面包屑 ---------- */
.crumbs {
  width: min(var(--shell), calc(100% - var(--edge) * 2));
  margin-inline: auto;
  padding-top: 16px;
}

.crumbs__list {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .06em;
}

.crumbs__list a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.crumbs__list a:hover {
  color: var(--lamp);
  border-bottom-color: currentColor;
}

.crumbs__sep { color: rgba(147, 164, 188, .5); }

.crumbs__now { color: var(--text); }

/* ---------- 6. 版式单元 ---------- */
.wrap {
  width: min(var(--shell), calc(100% - var(--edge) * 2));
  margin-inline: auto;
}

.section { padding-block: var(--gap); }
.section--tight { padding-block: calc(var(--gap) * .55); }
.section--flush { padding-block: 0; }

.stack > * + * { margin-top: clamp(14px, 1.6vw, 22px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--screen);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.h1 { font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -.025em; }
.h2 { font-size: clamp(28px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -.02em; }
.h3 { font-size: clamp(20px, 2vw, 32px); line-height: 1.1; }
.h4 { font-size: 22px; line-height: 1.2; }

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.7;
}

.data {
  font-family: var(--font-data);
  font-size: 16px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--muted); }

.rule {
  height: 2px;
  border: 0;
  background: var(--line);
}

/* ---------- 7. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: var(--hair);
  background: var(--ink-2);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  letter-spacing: .08em;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .45);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
    border-color .18s var(--ease), color .18s var(--ease),
    background-color .18s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  border-color: var(--lamp);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .5);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}

.btn--lamp {
  background: var(--lamp);
  border-color: var(--lamp);
  color: #150F07;
  font-weight: 600;
}

.btn--ghost { background: transparent; }

.btn--screen {
  background: transparent;
  border-color: rgba(53, 214, 196, .6);
  color: var(--screen);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .06em;
}

.tag--amber { color: var(--amber); border-color: rgba(255, 138, 61, .5); }
.tag--screen { color: var(--screen); border-color: rgba(53, 214, 196, .5); }
.tag--lamp { color: var(--lamp); border-color: rgba(242, 183, 92, .5); }

/* ---------- 8. 容器：面板 / 主题带 / 监视器墙 ---------- */
.panel {
  background: var(--ink-2);
  border: var(--hair);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.2vw, 32px);
}

.band {
  padding-block: clamp(26px, 4vh, 54px);
  border-block: var(--hair);
  background: linear-gradient(90deg, rgba(53, 214, 196, .07), rgba(7, 11, 20, 0) 62%);
}

.wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  border: var(--hair);
  background: var(--line);
}

.wall > * {
  background: var(--ink-2);
  padding: clamp(18px, 2.2vw, 30px);
}

/* ---------- 9. 图片容器基础规则 ---------- */
.frame {
  position: relative;
  overflow: hidden;
  border: var(--hair);
  background: var(--ink-2);
  box-shadow: var(--shadow);
}

.frame > *:not(.frame__cap) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame__plate {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 72% 10%, rgba(242, 183, 92, .24), transparent 58%),
    radial-gradient(90% 80% at 14% 92%, rgba(53, 214, 196, .18), transparent 62%),
    linear-gradient(160deg, var(--ink-2), var(--ink));
}

.frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 12px;
  background: linear-gradient(0deg, rgba(4, 6, 12, .92), rgba(4, 6, 12, 0));
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
}

.frame--wide { aspect-ratio: 16 / 9; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--square { aspect-ratio: 1 / 1; }

/* ---------- 10. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 34px);
}

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

.grid--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

/* ---------- 11. 灯光渐亮 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

/* ---------- 12. 页脚 ---------- */
.foot {
  position: relative;
  overflow: hidden;
  margin-top: clamp(64px, 10vh, 140px);
  border-top: var(--hair);
  background: linear-gradient(180deg, var(--ink-2), var(--ink) 72%);
}

.foot::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 92, .16), transparent 68%);
  opacity: var(--lit);
  pointer-events: none;
  transition: opacity .4s var(--ease);
}

.foot__inner {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - var(--edge) * 2));
  margin-inline: auto;
  padding-block: clamp(48px, 6vh, 84px) 24px;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 3vw, 56px);
}

.foot__col { min-width: 0; }

.lamporb {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
}

.lamporb__glow {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 183, 92, .38), rgba(242, 183, 92, 0) 70%);
  opacity: var(--lit);
  transition: opacity .4s var(--ease);
}

.lamporb__core {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--glow);
  opacity: calc(.18 + .72 * var(--lit));
  transition: opacity .4s var(--ease);
}

.foot__brand {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: .02em;
}

.foot__tag {
  max-width: 20ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.foot__title {
  margin-bottom: 16px;
  color: var(--screen);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.foot__list li + li { margin-top: 10px; }

.foot__list a {
  color: var(--muted);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.foot__list a:hover {
  color: var(--lamp);
  border-bottom-color: currentColor;
}

.foot__list--meta li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.foot__k {
  flex: 0 0 62px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
}

.foot__v {
  min-width: 0;
  color: var(--text);
  font-family: var(--font-data);
  font-size: 13px;
  word-break: break-word;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.foot__links a {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.foot__links a:hover {
  color: var(--screen);
  border-bottom-color: var(--screen);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(32px, 5vh, 64px);
  padding-top: 16px;
  border-top: var(--hair);
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
}

.foot__note { max-width: 62ch; }
.foot__copy { white-space: nowrap; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .navbtn { display: inline-flex; }

  .chan {
    position: fixed;
    top: var(--bar);
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--bar));
    overflow-y: auto;
    padding: 10px var(--edge) 26px;
    border-bottom: var(--hair);
    background: var(--ink-2);
    box-shadow: 0 26px 42px -26px rgba(0, 0, 0, .9);
  }

  .chan[data-open] { display: block; }

  .chan__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .chan__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    letter-spacing: .04em;
  }

  .chan__link::after { display: none; }
  .chan__link[aria-current="page"] { color: var(--amber); }

  .cmdbar[data-condensed="true"] { --bar: 72px; }

  .scoreline,
  .brand__status { display: none; }
}

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

@media (max-width: 640px) {
  :root { --edge: 20px; }

  body { background-attachment: scroll; font-size: 16px; }

  .brand__name { font-size: 17px; }
  .lamprope { padding: 5px 8px; }
  .lamprope__text { display: none; }

  .foot__grid { grid-template-columns: 1fr; gap: 34px; }
  .foot__base { flex-direction: column; }
  .foot__copy { white-space: normal; }
}

/* ---------- 14. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}
