/* =============================================
   微乐竞技场 · 全站共享样式
   文件路径：/assets/site.css
   职责：reset / 变量 / 排版 / 头部 / 页脚 /
         通用按钮 / 面包屑 / 正文容器 / 基础组件
   ============================================= */

/* ---------- 0. 根变量 ---------- */
:root {
  --wp-primary: #5B6CFF;
  --wp-primary-dark: #3A4AE0;
  --wp-accent: #FF7A00;
  --wp-accent-soft: #FFB27D;
  --wp-secondary: #00E5FF;
  --wp-bg-dark: #0B0D1A;
  --wp-bg-light: #F6F7FF;
  --wp-white: #FFFFFF;
  --wp-gray: #6B7280;
  --wp-border: #D1D5DB;
  --wp-dark-text: #0B0D1A;
  --wp-font-heading: "Archivo Black", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wp-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wp-font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --wp-radius: 16px;
  --wp-radius-sm: 10px;
  --wp-radius-xs: 6px;
  --wp-shadow-card: 0 14px 36px rgba(11, 13, 26, 0.1);
  --wp-shadow-pop: 0 24px 56px rgba(11, 13, 26, 0.18);
}

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

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

body {
  font-family: var(--wp-font-body);
  font-size: 16px;
  line-height: 1.75;
  color: #1F2430;
  background-color: var(--wp-bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas {
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--wp-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--wp-primary-dark);
}

p {
  overflow-wrap: break-word;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--wp-primary);
  color: var(--wp-white);
}

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

#main-content {
  flex: 1;
  width: 100%;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wp-font-heading);
  line-height: 1.15;
  color: var(--wp-dark-text);
  font-weight: 700;
}

/* ---------- 2. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 3. 辅助与可访问性 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- 4. 共享头部 ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--wp-bg-dark);
  color: var(--wp-white);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 300;
  background: var(--wp-secondary);
  color: var(--wp-dark-text);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 0 0 var(--wp-radius-sm) var(--wp-radius-sm);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0;
  outline: none;
  text-decoration: none;
}

/* ---------- 5. 刊头与品牌 ---------- */
.masthead {
  position: relative;
  overflow: hidden;
  padding: 26px 0 20px;
  background:
    radial-gradient(ellipse 420px 100px at 15% 0%, rgba(91, 108, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 420px 100px at 85% 0%, rgba(255, 122, 0, 0.12), transparent 60%),
    var(--wp-bg-dark);
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wp-primary) 20%, var(--wp-secondary) 48%, var(--wp-accent) 78%, transparent);
  opacity: 0.7;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.masthead-deco {
  flex: 1;
  max-width: 260px;
  height: 2px;
  border-radius: 2px;
  opacity: 0.5;
}

.masthead-deco-left {
  background: linear-gradient(90deg, transparent, var(--wp-secondary));
}

.masthead-deco-right {
  background: linear-gradient(90deg, var(--wp-primary), transparent);
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 3px;
  padding: 0 4px;
}

.brand-logo:hover {
  opacity: 0.92;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  margin-bottom: 8px;
  position: relative;
  background: linear-gradient(135deg, var(--wp-primary) 0%, var(--wp-secondary) 65%, var(--wp-accent) 130%);
  box-shadow: 0 6px 22px rgba(91, 108, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--wp-bg-dark);
  clip-path: polygon(50% 0%, 100% 100%, 50% 66%, 0% 100%);
}

.brand-text {
  font-family: var(--wp-font-heading);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: var(--wp-white);
  white-space: nowrap;
  text-shadow: 0 0 32px rgba(0, 229, 255, 0.28), 0 8px 24px rgba(11, 13, 26, 0.5);
}

.brand-tag {
  font-family: var(--wp-font-mono);
  font-size: 10px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--wp-accent-soft);
  margin-top: 2px;
  white-space: nowrap;
}

/* ---------- 6. 导航条 ---------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(8, 9, 18, 0.96);
  border-bottom: 1px solid rgba(91, 108, 255, 0.25);
}

.nav-bar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: var(--wp-accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.35;
  pointer-events: none;
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 58px;
  gap: 16px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--wp-radius-xs);
  color: var(--wp-white);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle-box {
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--wp-white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.nav-toggle-label {
  font-size: 13px;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--wp-bg-dark);
  border-bottom: 2px solid var(--wp-primary);
  box-shadow: var(--wp-shadow-pop);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.32s ease, visibility 0s 0.3s;
}

.site-nav[data-open="true"] {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.32s ease;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 24px 20px;
}

.nav-item {
  position: relative;
}

.nav-item + .nav-item .nav-link {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
}

.nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--wp-radius-xs);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.84);
  border-left: 3px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--wp-secondary);
  background: rgba(0, 229, 255, 0.06);
  border-left-color: var(--wp-secondary);
}

.nav-link[aria-current="page"] {
  color: var(--wp-accent);
  background: rgba(255, 122, 0, 0.08);
  border-left-color: var(--wp-accent);
  font-weight: 700;
}

.nav-cta {
  flex-shrink: 0;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--wp-font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-accent {
  background: var(--wp-accent);
  border-color: var(--wp-accent);
  color: var(--wp-white);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.32);
}

.btn-accent:hover {
  background: #E66F00;
  border-color: #E66F00;
  color: var(--wp-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.4);
}

.btn-primary {
  background: var(--wp-primary);
  border-color: var(--wp-primary);
  color: var(--wp-white);
  box-shadow: 0 8px 20px rgba(91, 108, 255, 0.32);
}

.btn-primary:hover {
  background: var(--wp-primary-dark);
  border-color: var(--wp-primary-dark);
  color: var(--wp-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(91, 108, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--wp-primary);
  color: var(--wp-primary);
}

.btn-outline:hover {
  background: rgba(91, 108, 255, 0.08);
  border-color: var(--wp-primary-dark);
  color: var(--wp-primary-dark);
  transform: translateY(-2px);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wp-gray);
  padding: 16px 0;
}

.breadcrumbs a {
  color: var(--wp-gray);
}

.breadcrumbs a:hover {
  color: var(--wp-primary);
}

.breadcrumbs .sep {
  font-family: var(--wp-font-mono);
  font-size: 11px;
  color: var(--wp-border);
}

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

/* ---------- 9. 文本与区块排版 ---------- */
.section {
  padding: 48px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--wp-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wp-accent);
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "◆";
  font-size: 9px;
  color: var(--wp-secondary);
}

.display-title {
  font-family: var(--wp-font-heading);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  color: var(--wp-dark-text);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.display-title em {
  font-style: normal;
  color: var(--wp-primary);
}

.lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--wp-gray);
  max-width: 660px;
}

/* ---------- 10. 卡片与栅格 ---------- */
.card {
  background: var(--wp-white);
  border: 1px solid var(--wp-border);
  border-radius: var(--wp-radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--wp-primary), var(--wp-secondary));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--wp-primary);
  box-shadow: var(--wp-shadow-card);
}

.card:hover::before {
  opacity: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ---------- 11. 数据统计区 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stat-item {
  background: var(--wp-white);
  border-radius: var(--wp-radius);
  padding: 24px 20px;
  border-top: 3px solid var(--wp-primary);
  box-shadow: 0 6px 18px rgba(11, 13, 26, 0.05);
}

.stat-number {
  font-family: var(--wp-font-heading);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  color: var(--wp-primary);
  margin-bottom: 6px;
}

.stat-number::after {
  content: attr(data-suffix);
  font-size: 0.45em;
  font-family: var(--wp-font-body);
  font-weight: 700;
  color: var(--wp-accent);
  margin-left: 4px;
  position: relative;
  top: -0.3em;
}

.stat-label {
  font-size: 13px;
  color: var(--wp-gray);
  letter-spacing: 0.06em;
}

/* ---------- 12. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--wp-radius);
  background: linear-gradient(145deg, #191E38, #0C0F20);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(91, 108, 255, 0.18);
}

.media-frame::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--wp-accent), var(--wp-secondary));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(91, 108, 255, 0.14) 0%, transparent 45%),
    linear-gradient(300deg, rgba(255, 122, 0, 0.1) 0%, transparent 40%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.media-frame:hover img {
  transform: scale(1.04);
}

.media-frame.is-square {
  aspect-ratio: 1 / 1;
}

.media-frame.is-tall {
  aspect-ratio: 4 / 5;
}

.media-frame.is-wide {
  aspect-ratio: 21 / 9;
}

/* ---------- 13. 共享页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  background:
    radial-gradient(ellipse 600px 200px at 90% 0%, rgba(255, 122, 0, 0.06), transparent 60%),
    var(--wp-bg-dark);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, var(--wp-primary), var(--wp-secondary), var(--wp-accent));
}

.site-footer::after {
  content: "WEILE // ARENA";
  position: absolute;
  right: -20px;
  bottom: 10px;
  z-index: 0;
  font-family: var(--wp-font-mono);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wp-font-heading);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--wp-white);
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.footer-logo:hover {
  color: var(--wp-secondary);
}

.footer-logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 7px;
  position: relative;
  background: linear-gradient(135deg, var(--wp-primary), var(--wp-accent));
  box-shadow: 0 4px 14px rgba(91, 108, 255, 0.35);
}

.footer-logo-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--wp-bg-dark);
  clip-path: polygon(50% 0%, 100% 100%, 50% 70%, 0% 100%);
}

.footer-trust {
  max-width: 240px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 122, 0, 0.07);
  border-left: 3px solid var(--wp-accent);
  border-radius: 0 var(--wp-radius-sm) var(--wp-radius-sm) 0;
  padding: 12px 16px;
  margin-top: 12px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  font-family: var(--wp-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp-white);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--wp-secondary);
}

.footer-links li + li {
  margin-top: 7px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-label {
  flex-shrink: 0;
  font-family: var(--wp-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--wp-accent-soft);
  background: rgba(255, 122, 0, 0.09);
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: 2px;
}

.footer-contact-value {
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-copy,
.footer-icp {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* ---------- 14. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1000;
  background: linear-gradient(90deg, var(--wp-primary), var(--wp-secondary), var(--wp-accent));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- 15. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease var(--reveal-delay, 0s), transform 0.6s ease var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 响应式：平板 / 桌面 ---------- */
@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-bar-inner {
    min-height: 62px;
  }

  .site-nav {
    position: static;
    flex: 1;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    transition: none;
  }

  .nav-list {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 0;
  }

  .nav-item + .nav-item .nav-link {
    border-top: none;
    border-radius: 0;
  }

  .nav-link {
    position: relative;
    padding: 12px 2px;
    border-left: none;
    background: transparent;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.86);
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--wp-secondary), var(--wp-accent));
    transform: translateX(-50%);
    transition: width 0.25s ease;
  }

  .nav-link:hover {
    background: transparent;
    border-left: none;
    color: var(--wp-white);
  }

  .nav-link:hover::after {
    width: 100%;
  }

  .nav-link[aria-current="page"] {
    background: transparent;
    border-left: none;
    color: var(--wp-accent);
  }

  .nav-link[aria-current="page"]::after {
    width: 100%;
  }

  .nav-cta {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 44px;
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .footer-cols {
    grid-column: span 3;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

/* ---------- 17. 小屏细节 ---------- */
@media (max-width: 767px) {
  .masthead {
    padding: 18px 0 14px;
  }

  .masthead-deco {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    margin-bottom: 6px;
  }

  .brand-mark::after {
    inset: 6px;
  }

  .brand-tag {
    font-size: 9px;
    letter-spacing: 0.32em;
  }

  .nav-bar-inner {
    min-height: 52px;
  }

  .breadcrumbs {
    font-size: 12px;
  }
}

/* ---------- 18. 无障碍：减少动效 ---------- */
@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;
    transition-delay: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scroll-progress {
    display: none;
  }
}
