/* ===== 环亚体育登录 · 共享样式 /assets/site.css ===== */

:root {
  --ink: #070B12;
  --panel: #0F1722;
  --paper: #F4F6F8;
  --mist: #E8EDF2;
  --steel: #C8D0DA;
  --blue: #0A5CFF;
  --blue-lift: #4C8DFF;
  --lime: #B6FF3B;
  --flare: #FF5A2A;
  --slate: #1B2A44;

  --line: rgba(200, 208, 218, 0.16);
  --line-soft: rgba(200, 208, 218, 0.1);
  --line-strong: rgba(200, 208, 218, 0.3);

  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step: 8px;
  --r: 2px;
  --head-pad: clamp(16px, 4vw, 56px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

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

/* ---------- base ---------- */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 82% -12%, rgba(10, 92, 255, 0.16), transparent 62%),
    repeating-linear-gradient(90deg, rgba(200, 208, 218, 0.045) 0 1px, transparent 1px 132px);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--blue); color: #fff; }

/* ---------- layout helpers ---------- */
.wrap {
  width: min(1280px, calc(100% - clamp(32px, 8vw, 112px)));
  margin-inline: auto;
}

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

.prose { max-width: 68ch; color: rgba(244, 246, 248, 0.82); }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose a { color: var(--blue-lift); border-bottom: 1px solid rgba(76, 141, 255, 0.45); }
.prose a:hover { color: #fff; border-bottom-color: var(--lime); }

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  line-height: 1.22;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-lift);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.sec-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(200, 208, 218, 0.3);
  transition: color 0.3s ease;
}

[data-section].is-active .sec-num { color: var(--lime); }

[data-section-link] {
  transition: color 0.2s ease, border-color 0.2s ease;
}
[data-section-link][data-active="true"] {
  color: var(--lime);
  border-color: rgba(182, 255, 59, 0.6);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2, .grid--3 { grid-template-columns: 1fr; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1.15fr 0.85fr; }
  .split--rev { grid-template-columns: 0.85fr 1.15fr; }
  .split--rev > :first-child { order: 2; }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: rgba(200, 208, 218, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue); }
.btn--primary:hover { --btn-bg: #0b51e4; --btn-bd: #0b51e4; }

.btn--line { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: rgba(200, 208, 218, 0.34); }
.btn--line:hover { --btn-bd: var(--blue-lift); --btn-fg: #fff; }

.btn--lime { --btn-bg: var(--lime); --btn-fg: #08110A; --btn-bd: var(--lime); }
.btn--lime:hover { --btn-bg: #c6ff6b; --btn-bd: #c6ff6b; }

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: rgba(200, 208, 218, 0.88);
  white-space: nowrap;
}
.tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.tag--live {
  color: var(--lime);
  border-color: rgba(182, 255, 59, 0.45);
  background: rgba(182, 255, 59, 0.08);
}
.tag--fresh {
  color: #fff;
  border-color: var(--flare);
  background: var(--flare);
}

@media (prefers-reduced-motion: no-preference) {
  .tag--live .tag__dot { animation: tagPulse 2.4s ease-in-out infinite; }
}
@keyframes tagPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(200, 208, 218, 0.55);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: rgba(200, 208, 218, 0.28); }
.crumbs a { color: rgba(200, 208, 218, 0.78); transition: color 0.18s ease; }
.crumbs a:hover { color: var(--blue-lift); }
.crumbs [aria-current="page"] { color: var(--paper); }

/* ---------- panels / sheets ---------- */
.sheet {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 34px);
}
.sheet--paper {
  background: var(--mist);
  color: var(--ink);
  border-color: rgba(7, 11, 18, 0.12);
}
.sheet--stack { box-shadow: 6px 6px 0 0 rgba(10, 92, 255, 0.26); }

/* ---------- media ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background-color: var(--slate);
  background-image:
    linear-gradient(118deg, rgba(10, 92, 255, 0.42), transparent 58%),
    repeating-linear-gradient(90deg, rgba(200, 208, 218, 0.13) 0 1px, transparent 1px 15px);
  aspect-ratio: 16 / 9;
}
.media img,
.media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media--cut { clip-path: polygon(0 0, 100% 0, 100% 84%, 88% 100%, 0 100%); }

.media__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 8px;
  border: 1px solid rgba(200, 208, 218, 0.24);
  border-radius: var(--r);
  background: rgba(7, 11, 18, 0.62);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: rgba(244, 246, 248, 0.9);
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  font-size: 0.88rem;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 8px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-inline: var(--head-pad);
  background: rgba(7, 11, 18, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.site-head__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-lift);
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(10, 92, 255, 0.42), rgba(7, 11, 18, 0.25));
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.brand__mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid var(--lime);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(38deg);
}
.brand:hover .brand__mark { border-color: var(--lime); }
.brand__text { display: grid; gap: 1px; }
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--paper);
}
.brand__tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: rgba(200, 208, 218, 0.58);
}

/* status pill */
.head-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(182, 255, 59, 0.28);
  border-radius: var(--r);
  background: rgba(182, 255, 59, 0.06);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: rgba(200, 208, 218, 0.78);
  white-space: nowrap;
}
.lamp {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(182, 255, 59, 0.16);
}
@media (prefers-reduced-motion: no-preference) {
  .lamp { animation: lampPulse 2.6s ease-in-out infinite; }
}
@keyframes lampPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(182, 255, 59, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(182, 255, 59, 0.04); }
}

/* mobile toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(200, 208, 218, 0.22);
  border-radius: var(--r);
  background: rgba(15, 23, 34, 0.72);
  color: var(--steel);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--blue-lift); color: #fff; }
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-head[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-head[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-head[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-head[data-open] .nav-toggle {
  border-color: var(--blue-lift);
  color: #fff;
  background: rgba(10, 92, 255, 0.18);
}

/* navigation — mobile panel */
.site-nav {
  display: none;
  padding-bottom: 14px;
  border-top: 1px solid var(--line-soft);
}
.site-head[data-open] .site-nav { display: block; }

.site-nav__list {
  counter-reset: navcount;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
}
.site-nav__item {
  counter-increment: navcount;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-nav__item::before {
  content: counter(navcount, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(200, 208, 218, 0.42);
  transition: color 0.18s ease;
}
.site-nav__link {
  display: inline-block;
  padding: 9px 2px;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: rgba(244, 246, 248, 0.8);
  transition: color 0.18s ease, box-shadow 0.18s ease;
}
.site-nav__link:hover { color: var(--blue-lift); }
.site-nav__link[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 0 var(--blue-lift);
}

/* navigation — desktop: brand left, columns right */
@media (min-width: 960px) {
  .site-head {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
  }
  .site-head__bar { padding-block: 14px; flex: 0 0 auto; }
  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    margin-left: auto;
    padding-bottom: 0;
    border-top: 0;
  }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: clamp(14px, 2vw, 30px);
    padding-top: 0;
  }
  .site-nav__item { gap: 6px; }
  .site-nav__item::before { font-size: 0.6rem; }
  .site-nav__link { padding: 6px 0; font-size: 0.92rem; }
  .site-nav__item:hover::before { color: var(--blue-lift); }
}

@media (max-width: 420px) {
  .head-status { display: none; }
  .brand__tag { display: none; }
}

/* reading progress rail */
.read-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(200, 208, 218, 0.1);
  overflow: hidden;
}
.read-rail__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-lift) 58%, var(--lime) 100%);
  transition: width 0.08s linear;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-foot {
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(32px, 5vw, 56px) var(--head-pad) 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  color: rgba(244, 246, 248, 0.8);
  font-size: 0.92rem;
  position: relative;
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent 62%);
}

.site-foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  max-width: 1280px;
  margin-inline: auto;
}

@media (min-width: 780px) {
  .site-foot__grid { grid-template-columns: 1.4fr 0.9fr 1.2fr; }
}

.foot-brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--paper);
}
.foot-brand__line {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--blue-lift);
}
.foot-brand__note {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(200, 208, 218, 0.62);
}

.foot-col__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(200, 208, 218, 0.52);
}

.foot-links li + li { margin-top: 9px; }
.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: rgba(244, 246, 248, 0.78);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.foot-link::before {
  content: "";
  width: 7px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.foot-link:hover {
  color: #fff;
  border-bottom-color: var(--blue-lift);
}

.foot-facts { display: grid; gap: 10px; }
.foot-facts__row { display: flex; gap: 10px; align-items: baseline; }
.foot-facts dt {
  flex: 0 0 3.4em;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(200, 208, 218, 0.48);
}
.foot-facts dd {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(244, 246, 248, 0.84);
  word-break: break-word;
}

.site-foot__stamp {
  max-width: 1280px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.stamp {
  padding: 4px 9px;
  border: 1px dashed rgba(200, 208, 218, 0.28);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: rgba(200, 208, 218, 0.64);
}
.stamp--muted { border-color: transparent; padding-inline: 0; }

/* =========================================================
   reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
  .brand:hover .brand__mark { border-color: var(--blue-lift); }
}
