/* /assets/site.css */

:root {
  --bg-main: #F5F2ED;
  --navy: #0A1F44;
  --navy-deep: #071834;
  --gold: #C9A063;
  --gold-light: #E3C78E;
  --red: #A62B2B;
  --teal: #0E4D4A;
  --warm: #E9E4D8;
  --text: #333333;
  --data: #C0392B;
  --text-light: #F5F2ED;
  --text-dim: rgba(245, 242, 237, .78);

  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(227, 199, 142, .10) 0, transparent 32%),
    radial-gradient(circle at 95% 35%, rgba(14, 77, 74, .07) 0, transparent 28%);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul,
ol {
  list-style: none;
}

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

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

::selection {
  background: var(--gold);
  color: var(--navy);
}

#main-content {
  min-height: 60vh;
}

/* 容 器 */
.container {
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
}

.container-wide {
  width: min(calc(100% - 32px), 1440px);
  margin-inline: auto;
}

.container-narrow {
  width: min(calc(100% - 48px), 880px);
  margin-inline: auto;
}

/* 跳 过 链 接 */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 300;
  background: var(--gold);
  color: var(--navy);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .55em 1.25em;
  border-radius: 3px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* 页 头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 160, 99, .28);
  color: var(--text-light);
}

.progress-rule {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(245, 242, 237, .05);
  pointer-events: none;
}

[data-progress-bar] {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 0 3px 3px 0;
}

.header-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2rem;
  padding: .3rem 1.2rem;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(201, 160, 99, .12);
}

.topbar-meta {
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--text-dim);
}

.masthead {
  position: relative;
  padding: clamp(1.2rem, 3vw, 2rem) 8rem clamp(.9rem, 2vw, 1.3rem);
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(201, 160, 99, .06) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(45deg, rgba(166, 43, 43, .045) 0 1px, transparent 1px 20px),
    var(--navy);
}

.masthead-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .12rem;
  line-height: 1.15;
}

.masthead-en {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: .3em;
  margin-left: .3em;
  color: var(--gold);
}

.masthead-cn {
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .52em;
  margin-left: .52em;
  color: var(--gold-light);
}

.masthead-tag {
  display: inline-block;
  margin-top: .7rem;
  padding: .28em 1.05em;
  font-size: .75rem;
  letter-spacing: .3em;
  color: rgba(227, 199, 142, .84);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(201, 160, 99, .5);
  border-radius: 2px;
  transform: rotate(-3deg);
}

.header-quota {
  position: absolute;
  top: 50%;
  right: 1.2rem;
  transform: translateY(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .35em .85em;
  font-family: var(--font-sans);
  background: rgba(201, 160, 99, .1);
  border: 1px solid rgba(201, 160, 99, .4);
  border-radius: 20px;
  pointer-events: none;
}

.header-quota-label {
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--text-dim);
}

.header-quota-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold-light);
}

/* 导 航 */
.nav-bar {
  position: relative;
  background: var(--navy-deep);
  border-top: 1px solid rgba(201, 160, 99, .15);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .55em;
  padding: .45em .85em;
  font-size: .88rem;
  letter-spacing: .2em;
  color: var(--gold-light);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(201, 160, 99, .35);
  border-radius: 3px;
}

.nav-toggle:hover {
  background: rgba(201, 160, 99, .1);
  border-color: var(--gold);
}

.nav-toggle-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 14px;
  vertical-align: middle;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: top .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nav-toggle-icon::before {
  top: 0;
  box-shadow: 0 6px 0 0 currentColor;
}

.nav-toggle-icon::after {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 6px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  bottom: auto;
  top: 6px;
  transform: rotate(-45deg);
}

.header-nav {
  background: transparent;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.nav-link {
  display: block;
  padding: 0 1.3rem;
  line-height: 3.1rem;
  font-size: .98rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.nav-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  background: rgba(255, 255, 255, .04);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--red);
  background: rgba(201, 160, 99, .1);
}

/* 窄 屏 导 航 */
@media (max-width: 961px) {
  .header-topbar {
    display: none;
  }

  .masthead {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 4.6rem;
    text-align: center;
  }

  .masthead-link {
    flex-direction: row;
    align-items: baseline;
    gap: .4rem;
  }

  .masthead-en {
    font-size: 1.6rem;
    letter-spacing: .18em;
  }

  .masthead-cn {
    font-size: 1rem;
    letter-spacing: .38em;
  }

  .masthead-tag {
    display: none;
  }

  .header-quota {
    right: .75rem;
    padding: .25em .65em;
  }

  .header-quota-label {
    font-size: .65rem;
  }

  .header-quota-value {
    font-size: .9rem;
  }

  .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 1rem;
  }

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

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 80;
    background: var(--navy-deep);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 16px 32px rgba(7, 24, 52, .36);
  }

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

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

  .nav-item {
    border-bottom: 1px solid rgba(245, 242, 237, .07);
  }

  .nav-link {
    display: block;
    padding: .85rem 1.2rem;
    line-height: 1.4;
    border-bottom: none;
  }

  .nav-link:hover {
    background: rgba(201, 160, 99, .1);
  }

  .nav-link[aria-current="page"] {
    background: rgba(201, 160, 99, .16);
    border-bottom: none;
    color: var(--gold);
  }
}

/* 桌 面 重 置 */
@media (min-width: 962px) {
  .header-nav {
    display: block;
    position: static;
  }

  .nav-list {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* 页 脚 */
.site-footer {
  background: var(--navy-deep);
  color: var(--text-light);
  border-top: 1px solid rgba(201, 160, 99, .25);
}

.footer-rule {
  height: 12px;
  background:
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(201, 160, 99, .35) 8px 10px),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(166, 43, 43, .16) 16px 18px),
    linear-gradient(90deg, var(--navy), var(--teal));
}

.footer-inner {
  display: grid;
  gap: 2.2rem;
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
  padding: 3rem 0 2rem;
}

.footer-logo {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--gold);
}

.footer-logo span {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold-light);
}

.footer-sub {
  margin-top: .4rem;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(245, 242, 237, .88);
}

.footer-desc {
  margin-top: .7rem;
  max-width: 42ch;
  font-size: .88rem;
  line-height: 1.8;
  color: rgba(245, 242, 237, .72);
}

.footer-heading {
  margin-bottom: .9rem;
  padding-bottom: .4rem;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 160, 99, .2);
}

.footer-links li + li {
  margin-top: .35rem;
}

.footer-links a {
  display: inline-block;
  font-size: .94rem;
  color: rgba(245, 242, 237, .8);
  transition: color .2s ease, padding-left .2s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: .3rem;
}

.footer-contact-item {
  margin: .25rem 0;
  font-size: .92rem;
  color: rgba(245, 242, 237, .82);
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
  padding: 1.1rem 0 1rem;
  font-size: .82rem;
  letter-spacing: .05em;
  color: rgba(245, 242, 237, .62);
  border-top: 1px solid rgba(245, 242, 237, .1);
}

.footer-icp {
  font-family: var(--font-mono);
}

/* 页 脚 响 应 式 */
@media (min-width: 700px) and (max-width: 1079px) {
  .footer-inner {
    grid-template-columns: repeat(12, 1fr);
  }

  .footer-brand-col {
    grid-column: span 6;
  }

  .footer-col {
    grid-column: span 3;
  }

  .footer-contact {
    grid-column: span 6;
  }
}

@media (min-width: 1080px) {
  .footer-inner {
    grid-template-columns: repeat(12, 1fr);
  }

  .footer-brand-col {
    grid-column: span 4;
  }

  .footer-col {
    grid-column: span 2;
  }

  .footer-contact {
    grid-column: span 4;
  }
}

/* 面 包 屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4em;
  padding: .6rem 0;
  font-size: .88rem;
  color: var(--gold);
}

.breadcrumb a {
  color: var(--navy);
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb .sep {
  color: rgba(201, 160, 99, .55);
}

/* 按 钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .7em 1.5em;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .06em;
  background: var(--navy);
  color: var(--text-light);
  border: 1px solid transparent;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.btn:hover {
  background: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 31, 68, .18);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(201, 160, 99, .35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10, 31, 68, .4);
}

.btn-outline:hover {
  background: rgba(10, 31, 68, .06);
  border-color: var(--navy);
}

/* 章 节 标 题 */
.section-head {
  padding-bottom: .9rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(10, 31, 68, .12);
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: .18em 0 .25em;
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}

.section-note {
  max-width: 62ch;
  color: var(--text);
  font-size: .96rem;
}

/* 网 格 */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 卡 片 */
.card {
  display: block;
  background: var(--warm);
  border: 1px solid rgba(10, 31, 68, .08);
  border-radius: 6px;
  padding: 1.6rem 1.7rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(10, 31, 68, .1);
  border-color: rgba(201, 160, 99, .5);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}

.card-text {
  font-size: .92rem;
  color: #555;
}

.card-metric {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--data);
}

/* 数 据 胶 囊 */
.data-pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .25em .85em;
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--gold-light);
  background: var(--navy);
  border-radius: 20px;
}

.data-pill--gold {
  color: var(--navy);
  background: var(--gold);
}

/* 纹 样 分 隔 条 */
.section-rule {
  height: 10px;
  border: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(201, 160, 99, .5) 8px 10px),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(166, 43, 43, .2) 16px 18px),
    linear-gradient(90deg, var(--navy), var(--teal));
}

/* 图 片 容 器 */
.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy) 0%, var(--teal) 100%);
  box-shadow: 0 8px 22px rgba(10, 31, 68, .14);
}

.image-frame::before {
  content: "BSPORTS·必一";
  padding: .55em 1.1em;
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, .55);
  border: 1px dashed rgba(245, 242, 237, .35);
  border-radius: 3px;
}

.image-frame--portrait {
  aspect-ratio: 4 / 5;
}

.image-frame--dataviz::before {
  content: "数据可视化";
  background: rgba(201, 160, 99, .14);
  border-color: rgba(201, 160, 99, .5);
  color: rgba(227, 199, 142, .85);
}

/* 显 现 动 效 */
html.js [data-reveal]:not([data-revealed]) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

html.js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* 降 低 动 效 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  html.js [data-reveal]:not([data-revealed]) {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
