/* =========================================================
   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, h6,
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

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

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

a { color: inherit; }

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

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0A1230;
  --ink-2: #141F45;
  --ink-3: #070D24;
  --jade: #1FC8B4;
  --jade-deep: #0E8C7F;
  --rape: #F5B93E;
  --flare: #FF5B3D;
  --mist: #F2F5FC;
  --t1: #E8EDF9;
  --t2: #A8B8D6;
  --line: #2A3762;
  --line-soft: rgba(42, 55, 98, .65);

  --edge: 64px;
  --grid-max: 1280px;
  --measure: 34em;

  --radius: 12px;
  --radius-lg: 20px;
  --pill: 999px;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --dur: 200ms;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
               "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC",
                Georgia, "Times New Roman", serif;

  --grad-jade: linear-gradient(140deg, #1FC8B4 0%, #0E8C7F 55%, #0B3F5C 100%);
  --shadow-pill: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 44px -30px rgba(0, 0, 0, .95);
  --shadow-pill-up: 0 26px 64px -34px rgba(0, 0, 0, 1), 0 0 0 1px rgba(31, 200, 180, .10);
}

/* ---------- 3. Base ---------- */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(90% 60% at 88% -8%, rgba(31, 200, 180, .09), transparent 62%),
    radial-gradient(70% 50% at 4% 0%, rgba(245, 185, 62, .06), transparent 58%);
  background-repeat: no-repeat;
  color: var(--t1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#main-content { scroll-margin-top: 104px; }
#main-content:focus { outline: none; }

::selection { background: rgba(31, 200, 180, .32); color: #fff; }

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 999;
  transform: translate(-50%, -180%);
  padding: 10px 20px;
  border-radius: var(--pill);
  background: var(--rape);
  color: #241700;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
  transition: transform 180ms var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px var(--edge) 0;
  transition: padding-top var(--dur) var(--ease);
}

.header-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--grid-max);
  margin-inline: auto;
  padding: 9px 12px 9px 16px;
  background: rgba(20, 31, 69, .82);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: var(--shadow-pill);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.site-header[data-scrolled] { padding-top: 10px; }

.site-header[data-scrolled] .header-pill {
  background: rgba(7, 13, 36, .95);
  border-color: rgba(31, 200, 180, .30);
  box-shadow: var(--shadow-pill-up);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  color: var(--t1);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  background: var(--grad-jade);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18),
              0 10px 22px -14px rgba(31, 200, 180, .9);
  color: #04191f;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub {
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: .16em;
  color: var(--jade);
  white-space: nowrap;
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--pill);
  color: var(--t2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease), background-color 160ms var(--ease),
              box-shadow 160ms var(--ease);
}

.nav-list a:hover {
  color: var(--t1);
  background: rgba(31, 200, 180, .10);
}

.nav-list a[aria-current="page"] {
  color: var(--jade);
  background: rgba(31, 200, 180, .13);
  box-shadow: inset 0 0 0 1px rgba(31, 200, 180, .40);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 16px;
  border-radius: var(--pill);
  background: var(--rape);
  color: #251800;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 30px -20px rgba(245, 185, 62, .95);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}

.nav-cta::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .75;
}

.nav-cta:hover {
  background: #FFC95C;
  transform: translateY(-1px);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px 8px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(10, 18, 48, .7);
  color: var(--t1);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.nav-toggle:hover { border-color: rgba(31, 200, 180, .5); }

.nav-toggle-box {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--jade);
  transition: transform 200ms var(--ease), opacity 160ms var(--ease);
}

.nav-toggle-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.site-header[data-open] .nav-toggle {
  border-color: var(--jade);
  background: rgba(31, 200, 180, .12);
}

.site-header[data-open] .nav-toggle-box span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-box span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background-color: var(--ink-3);
  background-image:
    radial-gradient(120% 90% at 10% 0%, rgba(31, 200, 180, .12), transparent 58%),
    radial-gradient(90% 80% at 94% 6%, rgba(245, 185, 62, .08), transparent 62%);
  background-repeat: no-repeat;
  color: var(--t2);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--jade), rgba(31, 200, 180, 0) 62%);
  opacity: .55;
}

.footer-inner {
  max-width: var(--grid-max);
  margin-inline: auto;
  padding: 64px var(--edge) 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr .85fr .85fr 1.5fr;
  gap: 40px;
}

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

.footer-intro {
  max-width: 24em;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--t2);
}

.footer-stamp {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid rgba(31, 200, 180, .45);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--t2);
}

.footer-stamp .period {
  font-size: 15px;
  margin-right: 2px;
}

.footer-col-title {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--jade);
}

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

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--t2);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.footer-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 1px;
  background: var(--line);
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}

.footer-list a:hover { color: var(--jade); }
.footer-list a:hover::before { background: var(--jade); transform: translateX(2px); }

.footer-list--data li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.footer-k {
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(168, 184, 214, .72);
}

.footer-v {
  font-size: 13px;
  line-height: 1.55;
  color: var(--t1);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: rgba(168, 184, 214, .85);
}

.footer-copy { letter-spacing: .02em; }
.footer-icp { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.footer-note { color: rgba(168, 184, 214, .7); }

/* ---------- 7. Back-to-top ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20, 31, 69, .92);
  color: var(--jade);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.92);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease),
              visibility 200ms linear, border-color 160ms var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { border-color: rgba(31, 200, 180, .65); }

.to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.to-top-bar {
  fill: none;
  stroke: var(--jade);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 144.5;
  stroke-dashoffset: 144.5;
}

.to-top-arrow {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* ---------- 8. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--grid-max);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.section { padding-block: 48px; }
.section--tight { padding-block: 24px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.grid--split {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

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

/* ---------- 9. Type ---------- */
.title-xl {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.012em;
  font-weight: 900;
  text-wrap: balance;
}

.title-lg {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -.008em;
  font-weight: 800;
  text-wrap: balance;
}

.title-md {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.35;
  letter-spacing: -.004em;
  font-weight: 700;
}

.lede {
  max-width: var(--measure);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--t2);
}

.prose {
  max-width: var(--measure);
  font-size: 15.5px;
  line-height: 1.75;
}

.prose p { margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }

.period {
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--rape);
  letter-spacing: -.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--jade);
}

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

/* ---------- 10. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
              color 160ms var(--ease), transform 160ms var(--ease);
}

.btn--primary {
  background: var(--jade);
  color: #04211e;
  box-shadow: 0 16px 34px -22px rgba(31, 200, 180, .95);
}

.btn--primary:hover {
  background: #35DAC6;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--t1);
}

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

/* ---------- 11. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: rgba(42, 55, 98, .45);
  color: var(--t2);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .06em;
  white-space: nowrap;
}

.tag--jade { background: var(--jade); border-color: transparent; color: #032521; }
.tag--rape { background: var(--rape); border-color: transparent; color: #2A1C00; }
.tag--flare { background: var(--flare); border-color: transparent; color: #2A0A04; }

/* ---------- 12. Card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease),
              box-shadow 200ms var(--ease);
}

.card::before {
  content: "";
  display: block;
  height: 3px;
  flex: none;
  background: var(--card-bar, var(--jade));
}

.card:hover {
  border-color: rgba(31, 200, 180, .45);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -34px rgba(0, 0, 0, 1);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}

.card__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.006em;
}

.card__meta {
  flex: none;
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--t2);
}

.card__body {
  padding: 10px 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--t2);
}

.card__points {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--t2);
}

.card__points li {
  position: relative;
  padding-left: 14px;
}

.card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 1px;
  background: var(--jade);
}

.card__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 16px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--jade);
}

.card__foot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.card__bar { background: var(--card-bar, var(--jade)); }

/* ---------- 13. Media placeholder ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #0B1330;
  background-image:
    radial-gradient(120% 120% at 18% 0%, rgba(31, 200, 180, .22), transparent 56%),
    linear-gradient(160deg, #16224A 0%, #0B1330 72%);
}

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media > img:only-child { position: absolute; inset: 0; }

/* ---------- 14. Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12.5px;
  color: var(--t2);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs a {
  color: var(--t2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.breadcrumbs a:hover {
  color: var(--jade);
  border-bottom-color: currentColor;
}

.breadcrumbs [aria-current="page"] { color: var(--t1); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1180px) {
  :root { --edge: 48px; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
}

@media (max-width: 1024px) {
  :root { --edge: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .header-pill {
    flex-wrap: nowrap;
    padding: 8px 8px 8px 14px;
    border-radius: 24px;
    gap: 12px;
  }

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

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-left: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(7, 13, 36, .98);
    box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 1);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease),
                visibility 180ms linear;
  }

  .site-header[data-open] .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 4px;
    padding: 13px 16px;
    border-radius: 12px;
  }

  .grid--split { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .to-top { width: 46px; height: 46px; }
}

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

  .site-header { padding-top: 12px; }
  .site-header[data-scrolled] { padding-top: 8px; }

  .brand-sub { display: none; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }
  .brand-name { font-size: 14.5px; }

  .nav-toggle { padding: 8px 12px; }
  .nav-toggle-text { display: none; }

  .section { padding-block: 32px; }

  .footer-inner { padding: 44px var(--edge) 24px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-intro { max-width: none; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 34px;
  }

  .card__title { font-size: 16.5px; }
  .btn { padding: 11px 18px; font-size: 14px; }
}

@media (max-width: 420px) {
  .nav-list a { font-size: 14.5px; }
  .to-top { width: 44px; height: 44px; }
}

/* ---------- 16. 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;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .nav-cta:hover,
  .btn--primary:hover { transform: none; }
}
