/* =============================================
   谈球吧官方中国站 — 共享样式
   File: /assets/site.css
   设计语言：展览画册 / 运动杂志 / 玻璃浮岛
   ============================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --forest: #0D3B2E;
  --cream: #F7F3EA;
  --gold: #D4AF37;
  --orange: #FF6B35;
  --grass: #1F6B4A;
  --ink: #111111;
  --moss: #4A6B5A;
  --emerald: #2A9D8F;
  --alert: #E63946;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.16);

  --font-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "Roboto Mono", "SF Mono", "Cascadia Mono", "Consolas", "Courier New", "Noto Sans SC", sans-serif;

  --container-w: 1280px;
  --gutter: 28px;
  --header-top: 16px;
  --header-h: 64px;

  --radius-pill: 999px;
  --radius-lg: 24px;
  --radius-md: 12px;

  --shadow-glass: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 6px 28px rgba(0, 0, 0, 0.10);
  --shadow-btn: 0 4px 18px rgba(255, 107, 53, 0.35);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--forest);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  list-style: none;
}

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

address {
  font-style: normal;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

main {
  display: block;
}

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

:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

#main-content {
  display: block;
  min-height: 70vh;
  padding-top: calc(var(--header-top) + var(--header-h) + 32px);
  scroll-margin-top: 120px;
}

/* ---------- 3. 布局工具 ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container-w));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 28px;
}

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

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

.section-forest {
  background: var(--forest);
  color: var(--cream);
}

.section-cream {
  background: var(--cream);
  color: var(--ink);
}

.section-grass {
  background: var(--grass);
  color: var(--cream);
}

.section-forest .section-title,
.section-grass .section-title {
  color: #fff;
}

.section-forest .section-label,
.section-grass .section-label {
  color: var(--gold);
}

.section-forest .section-label::before,
.section-grass .section-label::before {
  background: var(--gold);
}

.section-cream .section-label {
  color: var(--moss);
}

.section-cream .section-label::before {
  background: var(--gold);
}

.content-block {
  max-width: 68ch;
  margin-inline: auto;
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
}

/* ---------- 4. 标题与文字组件 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex: 0 0 auto;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.4em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--moss);
  max-width: 40em;
}

.highlight {
  color: var(--gold);
}

.data-number {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-transform: uppercase;
}

.tag-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.16);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: #E85726;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 107, 53, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-outline:hover {
  background: var(--gold);
  color: var(--forest);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--cream);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- 6. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--moss);
  padding: 24px 0;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

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

.breadcrumb-sep {
  opacity: 0.4;
}

/* ---------- 7. 图片容器 ---------- */
.img-container {
  position: relative;
  overflow: hidden;
  background-color: var(--grass);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.06) 75%, transparent 75%, transparent);
  background-size: 24px 24px;
}

.img-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

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

.img-container:hover img {
  transform: scale(1.03);
}

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

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

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

/* ---------- 8. 球场装饰图形 ---------- */
.pitch-deco {
  position: relative;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  flex: 0 0 auto;
}

.pitch-deco::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(212, 175, 55, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-deco::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(212, 175, 55, 0.18);
  transform: translate(-50%, -50%);
}

/* ---------- 9. 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--header-top) var(--gutter) 0;
  pointer-events: none;
}

.header-shell {
  position: relative;
  pointer-events: auto;
  max-width: var(--container-w);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 22px;
  background: rgba(13, 59, 46, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glass);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
  z-index: 1002;
}

.scroll-progress::after {
  content: "";
  display: block;
  width: var(--scroll-pct, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--orange) 100%);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 28px;
  background: var(--orange);
  color: #fff;
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transition: top 0.25s var(--ease);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-crest {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-crest::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--forest);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.brand-crest::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--forest);
  transform: translateY(-50%);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.brand-tag {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold);
}

.nav-link[aria-current="page"] {
  background: var(--gold);
  color: var(--forest);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.header-cta:hover {
  background: #E85726;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 107, 53, 0.45);
}

.header-cta:active {
  transform: translateY(0);
}

.header-cta-text {
  display: inline-block;
}

.header-cta-arrow {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  margin-top: auto;
  position: relative;
  background: var(--forest);
  color: var(--cream);
  overflow: hidden;
}

.footer-pitch {
  height: 24px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(212, 175, 55, 0.12) 0,
    rgba(212, 175, 55, 0.12) 12px,
    transparent 12px,
    transparent 24px
  );
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.2fr;
  gap: 48px;
  padding: 64px 0 44px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream);
  margin-bottom: 8px;
}

.footer-brand .brand-name {
  font-size: 22px;
}

.footer-desc {
  max-width: 26em;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  color: rgba(247, 243, 234, 0.72);
  margin-top: 16px;
}

.footer-col-heading {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: rgba(247, 243, 234, 0.85);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.78);
}

.footer-address-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-address-line::before {
  content: "·";
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 700;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.24);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(247, 243, 234, 0.65);
}

.footer-trust {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.55);
  max-width: 34em;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    --header-top: 12px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: var(--header-top) var(--gutter) 0;
  }

  .header-shell {
    gap: 8px;
    padding: 8px 10px 8px 16px;
  }

  .brand-crest {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tag {
    font-size: 10px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: rgba(13, 59, 46, 0.96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    box-shadow: var(--shadow-glass);
  }

  .main-nav[data-open] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-md);
  }

  .header-cta {
    padding: 9px 16px;
    font-size: 13px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--glass-border);
    transition: background-color 0.2s;
  }

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

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px 0;
  }

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

@media (max-width: 640px) {
  .brand-tag {
    display: none;
  }

  .header-cta {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .header-cta-text {
    display: none;
  }

  .header-cta-arrow {
    font-size: 16px;
  }

  .footer-grid {
    padding: 36px 0;
  }
}

/* ---------- 12. 无障碍与降级动效 ---------- */
@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;
  }

  html {
    scroll-behavior: auto;
  }
}
