/* =========================================================
   亚盈体育主站 · 共享样式 /assets/site.css
   夜幕深蓝底层 + 纸张叠层 + 经幡亮黄强调
   ========================================================= */

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

/* ---------- 2. Tokens ---------- */
:root {
  --night: #0A1024;
  --plate: #101A36;
  --stack: #182952;
  --line: #2B4070;
  --line-soft: rgba(43, 64, 112, .62);
  --yellow: #F2C14E;
  --red: #E4572E;
  --green: #2FA36B;
  --white: #F4F7FF;
  --paper: #E9EEF9;
  --sky: #4C8DD9;
  --muted: #8C9AC0;
  --text-soft: #C9D3EC;
  --rail: 128px;
  --radius-pill: 999px;
  --shadow-panel: 0 26px 60px -34px rgba(0, 0, 0, .88);
  --font-head: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", Inter, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, .7, .25, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100%;
  background-color: var(--night);
  background-image:
    radial-gradient(1200px 520px at 78% -10%, rgba(76, 141, 217, .17), transparent 62%),
    radial-gradient(900px 480px at 6% 6%, rgba(242, 193, 78, .07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.012em;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--night); }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- 5. Layout ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 32px);
}
#main-content {
  display: block;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.section { padding-block: clamp(40px, 6vw, 80px); }
.section--tight { padding-block: clamp(22px, 3vw, 40px); }
.rule { height: 1px; background: var(--line-soft); margin-block: clamp(24px, 3vw, 40px); }

@media (min-width: 1080px) {
  #main-content { padding-left: var(--rail); }
}

/* ---------- 6. Grid ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2, .grid--3, .grid--split { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .grid--split { grid-template-columns: 7fr 5fr; }
}

/* ---------- 7. Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.section-title { font-size: clamp(1.5rem, 3.2vw, 1.75rem); }
.sub-title { font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; }
.lead { font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--muted); max-width: 34em; }
.prose { color: var(--text-soft); }
.prose p { max-width: 34em; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.note { font-size: 13px; color: var(--muted); max-width: 34em; }

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 16, 36, .92);
  border-bottom: 1px solid var(--line-soft);
}
.header-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-inline: clamp(14px, 3vw, 32px);
  background: rgba(10, 16, 36, .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; padding: 6px 4px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--yellow);
  color: var(--night);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 16px; letter-spacing: .02em; }
.brand-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }

.header-tools { display: flex; align-items: center; gap: 10px; }

.ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(24, 41, 82, .6);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  animation: breathe 4s ease-in-out infinite;
}
.ticker-label { color: var(--muted); }
.ticker-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--yellow);
  min-width: 2ch;
  text-align: right;
}
.ticker-num::before { content: "≤"; margin-right: 1px; color: var(--muted); font-weight: 400; }
.ticker-unit { color: var(--muted); }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(24, 41, 82, .6);
  color: var(--white);
  font-size: 13px;
}
.nav-toggle-bars { position: relative; width: 16px; height: 12px; flex: none; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle-bars::before { top: 2px; }
.nav-toggle-bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }
.nav-toggle-text { font-family: var(--font-mono); letter-spacing: .08em; }

/* 左侧经幡式栏目列 */
.site-nav {
  position: fixed;
  top: 96px;
  left: clamp(12px, 1.4vw, 22px);
  width: 96px;
  z-index: 55;
}
.nav-list { display: flex; flex-direction: column; gap: 6px; }
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(16, 26, 54, .74);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), background .22s var(--ease);
}
.nav-index { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: rgba(140, 154, 192, .7); }
.nav-label { letter-spacing: .02em; }
.nav-link:hover { transform: translateY(-3px); border-color: var(--line); color: var(--white); }
.nav-link[aria-current="page"] {
  border-color: var(--yellow);
  color: var(--white);
  background: linear-gradient(180deg, rgba(242, 193, 78, .22), rgba(242, 193, 78, 0));
}
.nav-link[aria-current="page"] .nav-index { color: var(--yellow); }

/* 滚动后收拢 */
.site-header[data-condensed] .brand-sub { display: none; }
.site-header[data-condensed] .nav-index { display: none; }
.site-header[data-condensed] .nav-link {
  padding: 7px 6px;
  font-size: 12px;
  background: rgba(16, 26, 54, .92);
}

/* ---------- 9. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(24, 41, 82, .45);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}
.btn:hover { transform: translateY(-4px); border-color: var(--yellow); }
.btn--accent { background: var(--yellow); border-color: var(--yellow); color: var(--night); font-weight: 700; }
.btn--accent:hover { background: #F7CD6B; border-color: #F7CD6B; color: var(--night); }
.btn--ghost { background: transparent; }

/* ---------- 10. Panels & cards ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.6vw, 34px);
  background: var(--plate);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}
.panel--stack {
  box-shadow:
    8px 8px 0 -1px rgba(24, 41, 82, .55),
    16px 16px 0 -1px rgba(43, 64, 112, .28),
    var(--shadow-panel);
}
.panel--paper { background: var(--paper); color: var(--night); border-color: rgba(10, 16, 36, .16); }
.panel--paper h1, .panel--paper h2, .panel--paper h3, .panel--paper h4 { color: var(--night); }
.panel--paper .lead, .panel--paper .muted, .panel--paper .note { color: #41527C; }
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 900; }

.card {
  position: relative;
  padding: clamp(18px, 2vw, 26px);
  background: var(--stack);
  border: 1px solid var(--line);
  transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 22px 40px -30px rgba(0, 0, 0, .9);
}
.card-title { font-family: var(--font-head); font-size: 1.125rem; font-weight: 800; margin-bottom: 8px; }
.card-body { font-size: 15px; color: var(--text-soft); }

.callout {
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--paper);
  border: 1px solid rgba(10, 16, 36, .16);
  color: var(--night);
}
.callout-title { font-family: var(--font-head); font-size: 1.125rem; font-weight: 900; color: var(--night); margin-bottom: 8px; }

/* ---------- 11. Editorial index ---------- */
.index-list { border-top: 1px solid var(--line-soft); }
.index-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.index-item:hover { background: rgba(24, 41, 82, .5); transform: translateY(-2px); }
.index-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--yellow); }
.index-body { min-width: 0; }
.index-title { font-size: 15px; font-weight: 500; }
.index-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 12. Data ---------- */
.stat-row { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px 14px; background: rgba(24, 41, 82, .5); border: 1px solid var(--line); }
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--yellow);
}
.stat-label { margin-top: 6px; font-size: 13px; color: var(--muted); }

.data-table { font-size: 14px; }
.data-table th {
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--stack);
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  color: var(--text-soft);
}
.data-table tr:hover td { background: rgba(24, 41, 82, .42); }
.data-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--yellow); }

/* ---------- 13. Tags & dots ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(24, 41, 82, .45);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tag--yellow { border-color: var(--yellow); color: var(--yellow); }
.tag--red { border-color: rgba(228, 87, 46, .7); color: var(--red); }
.tag--green { border-color: rgba(47, 163, 107, .7); color: var(--green); }

.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot--yellow { background: var(--yellow); }
.dot--red { background: var(--red); }
.dot--green { background: var(--green); animation: breathe 4s ease-in-out infinite; }

/* ---------- 14. Media ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--stack);
  border: 1px solid var(--line);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--slat { clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(202deg, rgba(10, 16, 36, .55), transparent 58%);
}
.media-note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 15. Breadcrumb ---------- */
.breadcrumb { padding-block: 18px; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb-item:not(:last-child)::after { content: "／"; margin-left: 8px; color: var(--line); }
.breadcrumb-link { color: var(--muted); transition: color .2s var(--ease); }
.breadcrumb-link:hover { color: var(--yellow); }
.breadcrumb-item[aria-current="page"] { color: var(--white); }

/* ---------- 16. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding: 84px clamp(18px, 3vw, 32px) 32px;
  background: var(--night);
  border-top: 1px solid var(--line-soft);
}
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 62px;
  bottom: 22px;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  border: 1px solid var(--line);
  background: var(--stack);
  pointer-events: none;
}
.site-footer::before { transform: translateX(-50%) translate(-10px, -10px); opacity: .45; }
.site-footer::after { transform: translateX(-50%) translate(10px, -10px); opacity: .24; }

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(26px, 4vw, 46px);
  background: var(--plate);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}
.footer-top { display: grid; gap: clamp(24px, 3.4vw, 44px); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.05fr 1.6fr; } }

.footer-brand-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 900; color: var(--white); }
.footer-brand-line { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--yellow); }
.footer-brand-note { margin-top: 12px; max-width: 30em; font-size: 14px; color: var(--muted); }

.footer-cols { display: grid; gap: 22px 28px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-col-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-soft);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-link:hover { color: var(--yellow); transform: translateY(-2px); }

.footer-contact {
  display: grid;
  gap: 14px 28px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 760px) {
  .footer-contact { grid-template-columns: repeat(2, 1fr); }
  .footer-fact--wide { grid-column: 1 / -1; }
}
.footer-fact { font-size: 14px; line-height: 1.7; color: var(--text-soft); }
.footer-fact-key {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}
.footer-mono { font-family: var(--font-mono); font-size: 14px; letter-spacing: .02em; color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.footer-legal { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* ---------- 17. Motion ---------- */
@keyframes breathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(47, 163, 107, .55); }
  50% { opacity: .58; box-shadow: 0 0 0 5px rgba(47, 163, 107, 0); }
}
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 18. Responsive：移动导航 ---------- */
@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: auto;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 14px clamp(16px, 4vw, 24px) 22px;
    background: linear-gradient(180deg, rgba(10, 16, 36, .99), rgba(10, 16, 36, .95));
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s var(--ease);
  }
  .site-nav[data-open] { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .nav-link {
    flex-direction: row;
    gap: 8px;
    padding: 10px 15px;
    border-radius: var(--radius-pill);
    border-color: var(--line);
    background: rgba(24, 41, 82, .5);
    font-size: 14px;
  }
  .site-header[data-condensed] .nav-link { font-size: 14px; padding: 10px 15px; }
  .site-header[data-condensed] .nav-index { display: inline; }
  html.is-nav-open { overflow: hidden; }
}
@media (max-width: 720px) {
  .ticker-label, .ticker-unit { display: none; }
  .ticker-num::before { content: "≤"; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .header-cta { padding: 8px 12px; font-size: 13px; }
  .nav-toggle-text { display: none; }
  .site-footer { padding-top: 62px; }
  .site-footer::before, .site-footer::after { top: 44px; }
}

/* ---------- 19. Desktop footer rail 对齐 ---------- */
@media (min-width: 1080px) {
  .site-footer { padding-left: var(--rail); }
  .site-footer::before,
  .site-footer::after { left: calc(50% + var(--rail) / 2); }
}

/* ---------- 20. 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;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .nav-link:hover, .card:hover, .btn:hover, .footer-link:hover, .index-item:hover { transform: none; }
  .skip-link { transition: none; }
}
