/* ==========================================================================
   必一体育 SPORT — 共享样式表
   对应 CSS 变量 / 重置 / 排版 / 页头 / 导航 / 页脚 / 共享组件
   ========================================================================== */

/* ---------- CSS 变量 ---------- */
:root {
  /* 主色 */
  --bg-deep: #0A1F1C;
  --bg-forest: #154A41;
  --gold: #E6B31E;
  --gold-dark: #C49A2C;
  --paper: #F5F0E6;
  --ivory: #FCFAF5;
  --charcoal: #2B2B2B;
  --red: #D64545;
  --yellow: #F2C94C;
  --blue: #4A90E2;

  /* 字体族 */
  --font-title: "Stretch Pro", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "Roboto Mono", "SF Mono", "Fira Code", "Consolas", "Liberation Mono", monospace;

  /* 尺寸 */
  --rail-w: 80px;
  --header-h: 56px;
  --container-w: 1440px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 0.32s;

  /* 字号 */
  --fs-h1: clamp(2.25rem, 4.5vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 2.6vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-body: clamp(0.95rem, 1vw, 1rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-mono: clamp(0.875rem, 1.2vw, 1rem);

  /* 行高 */
  --lh-body: 1.7;
  --lh-head: 1.2;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ivory);
  background-color: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: var(--lh-head);
  color: var(--ivory);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

em {
  font-style: normal;
}

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

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

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 179, 30, 0.3);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(230, 179, 30, 0.1);
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

/* ---------- 无障碍跳转 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}

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

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 10000;
  pointer-events: none;
}

/* ---------- 页头 Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-deep);
}

/* 页头内部品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.03em;
  color: var(--ivory);
  white-space: nowrap;
}

.brand-name em {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7em;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-left: 2px;
}

/* 移动端顶栏 */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 1rem;
  border-bottom: 1px solid rgba(230, 179, 30, 0.25);
  background: var(--bg-deep);
}

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

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(21, 74, 65, 0.6);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-icon:hover {
  background: rgba(230, 179, 30, 0.25);
  color: var(--gold);
}

.icon-frame {
  width: 18px;
  height: 18px;
}

/* 汉堡按钮 */
.nav-toggle {
  position: relative;
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-toggle-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.site-nav[data-open] ~ * .nav-toggle-icon span:nth-child(1),
.site-nav[data-open] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-nav[data-open] ~ * .nav-toggle-icon span:nth-child(2),
.site-nav[data-open] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.site-nav[data-open] ~ * .nav-toggle-icon span:nth-child(3),
.site-nav[data-open] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 导航轨 ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-deep);
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
  z-index: 1002;
  border-right: 1px solid rgba(230, 179, 30, 0.15);
}

.site-nav[data-open] {
  transform: translateX(0);
}

/* 导航内品牌 */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(230, 179, 30, 0.2);
  margin-bottom: 0.5rem;
}

.nav-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ivory);
  letter-spacing: 0.03em;
}

/* 导航列表 */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1.25rem;
  color: var(--ivory);
  position: relative;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link:hover {
  background: rgba(230, 179, 30, 0.08);
  color: var(--gold);
}

.nav-link[aria-current="page"] {
  background: rgba(230, 179, 30, 0.15);
  color: var(--gold);
}

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--gold-dark);
  width: 24px;
  text-align: right;
  flex-shrink: 0;
}

.nav-label {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

/* 导航底部 */
.nav-bottom {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 1px solid rgba(230, 179, 30, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(10, 31, 28, 0.95);
}

.rail-bigscreen {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(230, 179, 30, 0.4);
  border-radius: 4px;
  color: var(--gold);
  font-size: 0.875rem;
  background: transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.rail-bigscreen:hover {
  background: rgba(230, 179, 30, 0.1);
  border-color: var(--gold);
}

.bigscreen-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.nav-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(252, 250, 245, 0.55);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(230, 179, 30, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(230, 179, 30, 0); }
}

/* 移动端：body 打开抽屉锁滚动 */
body.nav-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 28, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1001;
  }
}

/* ---------- 桌面端导航轨(>=1024px) ---------- */
@media (min-width: 1024px) {
  body {
    margin-left: var(--rail-w);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rail-w);
    height: 100vh;
    background: var(--bg-deep);
    border-right: 1px solid rgba(230, 179, 30, 0.2);
    display: flex;
    flex-direction: column;
  }

  .header-bar {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none;
    width: 100%;
    height: 100%;
    background: transparent;
    border-right: none;
    display: flex;
    flex-direction: column;
    overflow: visible;
    transition: none;
  }

  .site-nav[data-open] {
    transform: none;
  }

  .nav-brand {
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 0 1rem;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(230, 179, 30, 0.15);
    margin-bottom: 0.75rem;
  }

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

  .nav-brand-name {
    display: block;
    font-size: 0.6rem;
    color: rgba(252, 250, 245, 0.5);
    letter-spacing: 0.2em;
  }

  .nav-list {
    gap: 0.125rem;
    padding: 0;
  }

  .nav-link {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.65rem 0.125rem;
  }

  .nav-link[aria-current="page"]::before {
    top: auto;
    bottom: 0;
    left: 20%;
    right: 20%;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }

  .nav-index {
    display: block;
    width: auto;
    text-align: center;
    font-size: 9px;
    margin-bottom: 2px;
    color: var(--gold-dark);
  }

  .nav-label {
    display: block;
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.01em;
  }

  .nav-bottom {
    margin-top: auto;
    padding: 0.75rem 0.5rem;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid rgba(230, 179, 30, 0.15);
  }

  .rail-bigscreen {
    padding: 0.4rem 0.25rem;
    justify-content: center;
  }

  .rail-bigscreen .icon-frame {
    width: 16px;
    height: 16px;
  }

  .bigscreen-text {
    display: block;
    font-size: 0.625rem;
    text-align: center;
    line-height: 1.2;
  }

  .nav-live {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }

  .live-text {
    font-size: 0.625rem;
  }

  .scroll-progress {
    left: var(--rail-w);
    width: calc(100% - var(--rail-w));
  }
}

/* ---------- 页脚 Footer ---------- */
.site-footer {
  background-color: var(--bg-deep);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0px, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0px, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 60px);
  border-top: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 360px;
  height: 360px;
  border: 2px solid rgba(230, 179, 30, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.footer-topline {
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 30%, transparent 80%);
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 100%, 0 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--container-pad) 3rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ivory);
  letter-spacing: 0.03em;
}

.footer-brand-text em {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.65em;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-left: 3px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(252, 250, 245, 0.55);
  max-width: 30ch;
}

.footer-heading {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(230, 179, 30, 0.25);
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(252, 250, 245, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-links a::before {
  content: "→";
  font-family: var(--font-mono);
  font-size: 0.75em;
  color: var(--gold-dark);
  transition: transform 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-links a:hover::before {
  transform: translateX(2px);
}

.footer-phone,
.footer-email,
.footer-address,
.footer-note {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: rgba(252, 250, 245, 0.7);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-phone {
  font-size: 1.125rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

.footer-email {
  color: rgba(252, 250, 245, 0.65);
}

.footer-address {
  color: rgba(252, 250, 245, 0.55);
}

.footer-note {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(252, 250, 245, 0.4);
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(230, 179, 30, 0.15);
  padding: 1rem var(--container-pad);
  background: rgba(7, 18, 16, 0.6);
}

.footer-bottom-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-icp,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(252, 250, 245, 0.4);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 5fr 3fr 4fr;
    gap: 2.5rem;
  }

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

/* ---------- 共享组件 ---------- */
/* 章节头部 */
.section-header {
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "//";
  color: var(--gold-dark);
  font-weight: 500;
}

.section-title {
  font-family: var(--font-title);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: var(--fs-sm);
  color: rgba(252, 250, 245, 0.55);
  max-width: 60ch;
}

/* 卡片 */
.card {
  background: var(--bg-forest);
  border-radius: 6px;
  padding: 1.5rem;
  border: 1px solid rgba(230, 179, 30, 0.08);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  border-color: rgba(230, 179, 30, 0.25);
  box-shadow: 0 8px 30px rgba(10, 31, 28, 0.4);
}

.clip-card {
  background: var(--bg-forest);
  padding: 1.75rem;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  transition: background-color 0.3s var(--ease);
}

.clip-card:hover {
  background: rgba(21, 74, 65, 0.85);
}

/* 数据统计卡片 */
.stat-card {
  background: var(--bg-forest);
  border-radius: 4px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--gold);
}

.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1.1;
  display: block;
}

.stat-card .stat-label {
  font-size: var(--fs-sm);
  color: rgba(252, 250, 245, 0.6);
  margin-top: 0.5rem;
  display: block;
}

/* 数据表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(230, 179, 30, 0.1);
}

.data-table th {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(21, 74, 65, 0.4);
}

.data-table td {
  color: rgba(252, 250, 245, 0.8);
}

.data-table tr:hover td {
  background: rgba(230, 179, 30, 0.03);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border-radius: 3px;
}

.tag-gold {
  background: rgba(230, 179, 30, 0.15);
  color: var(--gold);
  border: 1px solid rgba(230, 179, 30, 0.3);
}

.tag-red {
  background: rgba(214, 69, 69, 0.15);
  color: #FF8A8A;
  border: 1px solid rgba(214, 69, 69, 0.3);
}

.tag-green {
  background: rgba(21, 74, 65, 0.6);
  color: rgba(252, 250, 245, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 球场纹理背景 */
.pitch-bg {
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 50px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 50px);
}

/* 图片容器 */
.img-cover {
  position: relative;
  overflow: hidden;
  background: var(--bg-forest);
  border-radius: 4px;
}

.img-cover--16x9 {
  aspect-ratio: 16 / 9;
}

.img-cover--4x3 {
  aspect-ratio: 4 / 3;
}

.img-cover--square {
  aspect-ratio: 1 / 1;
}

.img-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

/* 大屏模式 */
body.bigscreen-mode .container {
  max-width: 1780px;
}

body.bigscreen-mode .footer-inner,
body.bigscreen-mode .footer-bottom-inner {
  max-width: 1780px;
}

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

[data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式调整 ---------- */
@media (max-width: 767px) {
  :root {
    --fs-h1: 1.75rem;
    --fs-h2: 1.25rem;
    --fs-h3: 1.125rem;
  }

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

/* ---------- 大屏下按钮与卡片细节 ---------- */
@media (min-width: 1024px) {
  .btn {
    padding: 0.875rem 2rem;
  }
}

/* ---------- 焦点可见样式 ---------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 减少动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .live-dot {
    animation: none;
  }
}
