/* ==========================================================
   亚星体育竞界 — 全站共享样式 /assets/site.css
   设计体系：竞界索引（Arena Index）
   ========================================================== */

/* ---------- 1. Reset / 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--electric);
  text-decoration: none;
}

ul[class],
ol[class] {
  list-style: none;
}

[hidden] {
  display: none !important;
}

#main-content {
  display: block;
  min-height: 50vh;
}

#main-content:focus {
  outline: none;
}

/* ---------- 2. CSS 变量 ---------- */
:root {
  /* 色彩体系 */
  --paper: #F5F0E6;
  --ink: #1A1614;
  --ink-2: #2A211C;
  --ember: #E85D2A;
  --electric: #2A86FF;
  --stone: #3A5A6A;
  --ash: #8C837B;
  --sand: #D8CDBB;
  --glass-light: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(18, 16, 14, 0.55);

  /* 字体 */
  --font-display: "DIN Condensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* 尺寸 */
  --container-max: 1440px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 72px;
  --gap: 1.5rem;

  /* 动效 */
  --ease: 200ms ease;
}

/* ---------- 3. 通用工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section--tight {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

/* ---------- 4. 中文正文排版 ---------- */
.prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

.prose p {
  margin-bottom: 1.25em;
  max-width: 70ch;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose blockquote {
  border-left: 3px solid var(--ember);
  padding-left: 1rem;
  color: var(--ash);
  font-style: italic;
  margin: 1.5em 0;
}

.prose strong {
  color: var(--ink);
  border-bottom: 2px solid var(--sand);
}

.prose a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose a:hover {
  color: #c4471d;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  background: var(--ember);
  color: var(--dark, #1A1614);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  transform: translateY(-300%);
  transition: transform var(--ease);
  box-shadow: 0 4px 16px rgba(26, 22, 20, 0.3);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 6. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(18, 16, 14, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 205, 187, 0.14);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.015) 10px,
    rgba(255, 255, 255, 0.015) 11px
  );
  pointer-events: none;
}

.site-header[data-scrolled="true"] {
  background: rgba(18, 16, 14, 0.92);
  border-bottom-color: rgba(216, 205, 187, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  position: relative;
  z-index: 2;
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--ember);
  box-shadow: 0 0 12px rgba(232, 93, 42, 0.55);
  z-index: 3;
  transition: width 80ms linear;
}

/* ---------- 7. 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--paper);
  flex-shrink: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ember) 0%, #f08755 100%);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand__text small {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--ash);
  letter-spacing: 0.12em;
}

.brand--light .brand__text strong {
  color: var(--paper);
}

/* ---------- 8. 导航 ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  color: rgba(245, 240, 230, 0.82);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.6em 0.5em;
  transition: color var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.5em;
  right: 0.5em;
  bottom: 0.2em;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease);
}

.site-nav__link:hover {
  color: var(--paper);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav__link[aria-current="page"] {
  color: var(--paper);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--ember);
  letter-spacing: 0.06em;
}

.site-nav__cta {
  display: inline-block;
  background: var(--ember);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.65em 1.35em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}

.site-nav__cta:hover {
  background: #f0763e;
  box-shadow: 0 0 24px rgba(232, 93, 42, 0.35);
  transform: translateY(-1px);
}

/* ---------- 9. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 1px solid rgba(216, 205, 187, 0.35);
  cursor: pointer;
  transition: border-color var(--ease);
  z-index: 1100;
}

.nav-toggle:hover {
  border-color: var(--ember);
}

.nav-toggle__line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.is-active {
  border-color: var(--ember);
}

.nav-toggle.is-active .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.6em;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.btn--primary {
  background: var(--ember);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn--primary:hover {
  background: #f0763e;
  box-shadow: 0 6px 24px rgba(232, 93, 42, 0.3);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--sand);
  color: var(--ink);
}

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

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1em 2.2em;
  font-size: 1.0625rem;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--ink);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(216, 205, 187, 0.025) 0,
    rgba(216, 205, 187, 0.025) 1px,
    transparent 1px,
    transparent 32px
  );
  color: var(--paper);
  margin-top: 4rem;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ember) 0, var(--ember) 160px, var(--sand) 160px, var(--sand) 161px, transparent 161px);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: 3.5rem;
  padding-bottom: 2.75rem;
}

.site-footer__brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.site-footer__about {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.78);
  max-width: 34ch;
}

.site-footer__trust {
  font-size: 0.75rem;
  color: var(--ash);
  border-left: 2px solid var(--stone);
  padding-left: 0.75rem;
  line-height: 1.6;
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(216, 205, 187, 0.18);
}

.site-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__list a {
  color: rgba(245, 240, 230, 0.82);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--ease), padding-left var(--ease);
}

.site-footer__list a:hover {
  color: var(--ember);
  padding-left: 4px;
}

.site-footer__contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: rgba(245, 240, 230, 0.82);
  line-height: 1.6;
  word-break: break-all;
}

.site-footer__bottom {
  border-top: 1px solid rgba(216, 205, 187, 0.12);
  padding: 1.25rem 0;
}

.site-footer__bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ash);
}

.site-footer__support {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(138, 131, 123, 0.8);
  line-height: 1.6;
}

/* ---------- 12. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ash);
  padding: 1rem 0 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--sand);
}

.breadcrumb__item a {
  color: var(--ash);
  text-decoration: none;
  transition: color var(--ease);
}

.breadcrumb__item a:hover {
  color: var(--ember);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 13. 章节与索引 ---------- */
.index-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.index-head__num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ember);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.index-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.index-head__title::after {
  content: "";
  display: inline-block;
  width: 4em;
  height: 4px;
  background: var(--sand);
  margin-left: 1rem;
  vertical-align: middle;
}

.index-head--dark .index-head__title {
  color: var(--paper);
}

.index-head--dark .index-head__title::after {
  background: rgba(216, 205, 187, 0.25);
}

/* ---------- 14. 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sand);
}

.filter-bar__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ash);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: transparent;
  border: 1px solid var(--sand);
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.5em 1.1em;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

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

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 15. 卡片 ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--sand);
  padding: 1.5rem;
  position: relative;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.card:hover {
  border-color: var(--ember);
  box-shadow: 0 12px 28px rgba(26, 22, 20, 0.08);
  transform: translateY(-3px);
}

.card--dark {
  background: var(--ink);
  border-color: rgba(216, 205, 187, 0.18);
  color: var(--paper);
}

.card--dark:hover {
  border-color: var(--ember);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
  margin-bottom: 0.5rem;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ash);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: inherit;
  opacity: 0.85;
}

/* ---------- 16. 网格 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

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

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

/* ---------- 17. 媒体框架 ---------- */
.media-frame {
  position: relative;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(216, 205, 187, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 205, 187, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--sand);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(216, 205, 187, 0.28);
  pointer-events: none;
  z-index: 2;
}

.media-frame::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 2.5rem;
  height: 2.5rem;
  border-top: 2px solid var(--ember);
  border-left: 2px solid var(--ember);
  pointer-events: none;
  z-index: 3;
}

.media-frame__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(232, 93, 42, 0.65);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  z-index: 1;
}

.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 4;
}

/* ---------- 18. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border: 1px solid currentColor;
}

.tag--live {
  color: var(--ember);
  background: rgba(232, 93, 42, 0.08);
}

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}

.tag--data {
  color: var(--electric);
  background: rgba(42, 134, 255, 0.08);
}

.tag--muted {
  color: var(--ash);
  background: transparent;
}

/* ---------- 19. 数据指标 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  border-left: 3px solid var(--ember);
  background: rgba(245, 240, 230, 0.05);
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--paper);
}

.stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ash);
  text-transform: uppercase;
}

/* ---------- 20. 框景首屏 ---------- */
.hero-view {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  background-color: var(--ink);
  background-image: linear-gradient(rgba(216, 205, 187, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 205, 187, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2.5rem) var(--container-pad) 3.5rem;
  overflow: hidden;
}

.hero-view::before {
  content: "";
  position: absolute;
  inset: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(216, 205, 187, 0.22);
  pointer-events: none;
  z-index: 1;
}

.hero-view::after {
  content: "";
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  left: clamp(12px, 2vw, 24px);
  width: 60px;
  height: 14px;
  border-top: 3px solid var(--ember);
  border-left: 3px solid var(--ember);
  pointer-events: none;
  z-index: 1;
}

/* ---------- 21. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .site-footer__contact {
    grid-column: span 3;
    border-top: 1px solid rgba(216, 205, 187, 0.12);
    padding-top: 1.5rem;
  }

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

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: rgba(18, 16, 14, 0.97);
    border: 1px solid rgba(216, 205, 187, 0.25);
    padding: 1.25rem 1.5rem 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
    z-index: 1050;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

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

  .site-nav__item {
    border-bottom: 1px solid rgba(216, 205, 187, 0.1);
  }

  .site-nav__item:last-child {
    border-bottom: none;
  }

  .site-nav__link {
    display: flex;
    align-items: baseline;
    padding: 0.9rem 0;
    font-size: 1rem;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    color: var(--ember);
  }

  .site-nav__cta {
    margin-top: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    padding-top: 3rem;
  }

  .site-footer__brand-block {
    grid-column: 1 / -1;
  }

  .site-footer__contact {
    grid-column: 1 / -1;
  }

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

  .index-head__title::after {
    width: 2em;
  }
}

@media (max-width: 540px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__brand-block {
    grid-column: auto;
  }

  .site-footer__contact {
    grid-column: auto;
  }

  .site-footer__bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .hero-view {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 2.5rem;
  }
}

/* ---------- 23. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-header--fixed,
  .site-header {
    transition: none;
  }

  .tag--live::before {
    animation: none;
  }
}

/* ---------- 24. 动画 ---------- */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}
