/* ============ 易倍体育 共享样式 ============ */

/* 1. CSS 变量 */
:root {
  --navy: #0A1E3F;
  --navy-deep: #071429;
  --orange: #FF6B35;
  --light: #F5F7FA;
  --white: #FFFFFF;
  --text: #0A1E3F;
  --text-secondary: #5A6B7A;
  --border: #D0D7DE;
  --success: #2AB573;
  --warning: #FFC53D;
  --font-display: 'Archivo Black', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --container: 1280px;
  --header-h: 72px;
  --radius: 2px;
  --shadow-sm: 4px 4px 0 rgba(10, 30, 63, 0.08);
  --shadow: 8px 8px 0 rgba(10, 30, 63, 0.12);
  --shadow-lg: 12px 12px 0 rgba(10, 30, 63, 0.16);
  --ease: cubic-bezier(0.22, 0.8, 0.36, 1);
}

/* 2. 重置与基础 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
}

p { margin-block-end: 1rem; }

ul, ol { padding-inline-start: 1.25rem; }

a { color: inherit; }
a:visited { color: inherit; }

img { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

main { display: block; }

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

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

/* 3. 布局容器 */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.page-main { min-height: 62vh; }

.page-body { padding-block: clamp(2rem, 5vw, 4.5rem); }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* 4. 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  color: var(--navy);
  background: var(--white);
  box-shadow: 4px 4px 0 rgba(10, 30, 63, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(10, 30, 63, 0.18);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}

.btn-primary:hover {
  background: #FF8255;
  border-color: #FF8255;
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--navy);
}

/* 5. 图标按钮 */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  color: var(--white);
  background: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.14);
  color: var(--orange);
}

/* 6. 跳过链接 */
.skip-link {
  position: fixed;
  top: 0;
  left: -9999px;
  z-index: 3000;
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* 7. 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2500;
  width: 100%;
  height: 4px;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* 8. 头部 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--orange);
  box-shadow: 0 6px 0 rgba(7, 20, 41, 0.22);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(135deg, var(--orange) 0 12px, transparent 12px 24px);
  opacity: 0.5;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

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

.brand-mark {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--orange);
  border-radius: var(--radius);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3);
  transform: skewX(-10deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-slogan {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: nav;
}

.nav-links li { counter-increment: nav; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-link::before {
  content: counter(nav, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.68em;
  font-weight: 700;
  color: var(--orange);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.nav-link[aria-current="page"]::before { color: var(--navy); }

/* 头部操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.login-btn { white-space: nowrap; }

/* 9. 搜索 */
.search-wrap { position: relative; }

.search-toggle { position: relative; }

.search-toggle[aria-expanded="true"] {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.14);
  color: var(--orange);
}

.search-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1300;
  width: min(360px, calc(100vw - 2rem));
  padding: 1rem;
  background: var(--white);
  color: var(--text);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.search-panel[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.search-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--light);
  color: var(--text);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
}

.search-input::placeholder { color: var(--text-secondary); }

.search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.search-hints-label {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-hint {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.search-hint:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* 10. 移动导航开关 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 11. 页脚 */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
  border-top: 4px solid var(--orange);
}

.footer-streak {
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--orange) 0 14px, transparent 14px 28px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.3fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-lockup-footer { margin-bottom: 1.1rem; }

.footer-desc {
  max-width: 34em;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.footer-badges {
  display: flex;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}

.dot-success {
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(42, 181, 115, 0.35);
}

.dot-warning {
  background: var(--warning);
  box-shadow: 0 0 0 2px rgba(255, 197, 61, 0.35);
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.14);
}

.footer-contact-col .footer-title {
  border-bottom-color: rgba(255, 107, 53, 0.4);
}

.footer-links {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-contacts {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 4.2em 1fr;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.contact-tag {
  padding-top: 0.2em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-value {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-copy {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
}

/* 12. 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.85rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-item a:hover { color: var(--orange); }

.breadcrumb-item[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.breadcrumb-sep {
  color: var(--border);
  font-weight: 900;
}

/* 13. 网格 */
.grid {
  display: grid;
  gap: 1.5rem;
}

.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)); }

/* 14. 面板与卡片 */
.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  border-color: var(--navy-deep);
}

.panel-dark h1,
.panel-dark h2,
.panel-dark h3,
.panel-dark h4,
.panel-dark h5,
.panel-dark h6,
.panel-dark p { color: var(--white); }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-body { padding: 1.25rem; }

.card-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* 15. 图片容器 */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--light);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.figure:hover img { transform: scale(1.04); }

.figure-ratio-16-9 { aspect-ratio: 16 / 9; }
.figure-ratio-4-3 { aspect-ratio: 4 / 3; }
.figure-ratio-1-1 { aspect-ratio: 1 / 1; }

.figure-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 200px;
  padding: 1.5rem;
  background: repeating-linear-gradient(-45deg, var(--light) 0 12px, rgba(10, 30, 63, 0.045) 12px 24px);
  border: 2px dashed #B9C3CF;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

/* 16. 章节标头 */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--navy);
}

.sec-head-left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sec-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
}

.sec-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.sec-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
}

.sec-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* 17. 实时滚动条 */
.ticker {
  overflow: hidden;
  background: var(--orange);
  color: var(--navy);
  border-block: 3px solid var(--navy-deep);
  padding-block: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 1.5rem;
}

.ticker-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--navy-deep);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 18. 数据卡 */
.stat-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 44px;
  height: 44px;
  background: var(--orange);
  opacity: 0.18;
  transform: rotate(12deg);
}

.stat-card[data-accent] { border-top: 6px solid var(--orange); }

.stat-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy);
  margin-block: 0.3rem 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* 19. 滚动显现 */
.reveal { transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }

.reveal-init {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-init.reveal-left { transform: translateX(-28px); }
.reveal-init.reveal-right { transform: translateX(28px); }

.reveal-init.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal-init.is-in[data-reveal-delay="1"] { transition-delay: 0.08s; }
.reveal-init.is-in[data-reveal-delay="2"] { transition-delay: 0.16s; }
.reveal-init.is-in[data-reveal-delay="3"] { transition-delay: 0.24s; }
.reveal-init.is-in[data-reveal-delay="4"] { transition-delay: 0.32s; }
.reveal-init.is-in[data-reveal-delay="5"] { transition-delay: 0.4s; }

/* 20. 返回顶部 */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1500;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--navy);
  color: var(--white);
  border: 3px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(7, 20, 41, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s, background-color 0.15s ease, color 0.15s ease;
}

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

.back-to-top:hover {
  background: var(--orange);
  color: var(--navy);
}

/* 21. 工具类 */
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

/* 22. 响应式：头部与导航 */
@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1100;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--navy-deep);
    border-top: 2px solid var(--orange);
    box-shadow: 0 10px 0 rgba(7, 20, 41, 0.2);
  }

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

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
  }

  .nav-links li { width: 100%; }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--white);
  }

  .nav-link[aria-current="page"] {
    color: var(--navy);
    background: var(--orange);
  }

  .nav-link[aria-current="page"]::before { color: var(--navy); }
}

/* 23. 响应式：页脚 */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding-inline: 1rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand-col { grid-column: auto; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 24. 响应式：网格与卡片 */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* 25. 响应式：极小屏头部 */
@media (max-width: 480px) {
  .brand-slogan { display: none; }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .brand-name { font-size: 1.15rem; }

  .login-btn {
    width: 42px;
    padding: 0;
  }

  .login-btn span { display: none; }

  .login-btn svg {
    width: 20px;
    height: 20px;
  }
}

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

  .btn,
  .btn:hover,
  .btn:active { transition: none; }

  .back-to-top { transition: opacity 0.15s ease, visibility 0.15s ease; }

  .search-panel { transition: none; }

  .reveal { transition: none; }

  .reveal-init {
    opacity: 1;
    transform: none;
  }

  .reveal-init.is-in { transition: none; }

  .figure:hover img { transform: none; }

  .ticker-track { animation: none; }

  .ticker-group[aria-hidden="true"] { display: none; }

  .ticker-group:first-child { flex-wrap: wrap; }
}
