/* ============================================
   爱游戏中文官网 · 草原战术板
   共享样式 /assets/site.css
   ============================================ */

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

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-mist);
  padding-top: clamp(84px, 8vw, 96px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--c-blue);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--c-green);
}

ul[class],
ol[class],
menu[class] {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-ink);
}

h1 {
  font-size: var(--font-display);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-h2);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-h3);
}

p {
  max-width: 70ch;
}

.card p,
.site-footer p {
  max-width: none;
}

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

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

::selection {
  background: var(--c-green);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(33, 150, 243, .65);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

/* ---------- Design Tokens ---------- */
:root {
  --c-green: #3E7C4F;
  --c-green-dark: #2E5E3B;
  --c-green-soft: rgba(62, 124, 79, .12);
  --c-blue: #2196F3;
  --c-blue-dark: #1565C0;
  --c-blue-soft: rgba(33, 150, 243, .12);
  --c-silver: #B0B7C3;
  --c-orange: #FF6B35;
  --c-orange-soft: rgba(255, 107, 53, .13);
  --c-ink: #1A1F1A;
  --c-slate: #6B7280;
  --c-mist: #F4F6F8;
  --c-paper: #FFFFFF;
  --c-violet: #7F5AF0;
  --c-violet-soft: rgba(127, 90, 240, .13);

  --bg-page: var(--c-mist);
  --bg-card: var(--c-paper);
  --text-main: var(--c-ink);
  --text-sub: var(--c-slate);
  --line: var(--c-silver);
  --line-soft: rgba(176, 183, 195, .4);

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

  --shadow-card: 0 1px 3px rgba(26, 31, 26, .06), 0 12px 32px rgba(26, 31, 26, .05);
  --shadow-lift: 0 18px 44px rgba(26, 31, 26, .12);
  --shadow-capsule: 0 8px 30px rgba(26, 31, 26, .1);

  --container: 1180px;
  --section-space: clamp(64px, 10vw, 112px);
  --font-display: clamp(2.5rem, 6vw, 4.5rem);
  --font-h2: clamp(1.6rem, 3.2vw, 2.4rem);
  --font-h3: clamp(1.2rem, 2vw, 1.55rem);
}

/* ---------- Layout Primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section {
  padding-block: var(--section-space);
}

.section--tight {
  padding-block: calc(var(--section-space) * .6);
}

.content-block {
  max-width: 720px;
  margin-inline: auto;
}

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

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--c-green);
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .25s ease;
}

.skip-link:hover {
  background: var(--c-green-dark);
  color: #fff;
}

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

/* ---------- Fixed Header & Floating Capsule ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px clamp(16px, 3vw, 36px);
  pointer-events: none;
  transition: padding .3s ease;
}

.site-header.is-scrolled {
  padding-block: 10px;
}

.site-header__capsule {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 24px);
  max-width: var(--container);
  margin-inline: auto;
  padding: 10px 12px 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(176, 183, 195, .4);
  box-shadow: var(--shadow-capsule);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  pointer-events: auto;
  transition: box-shadow .3s ease, background .3s ease, padding .3s ease;
}

.site-header.is-scrolled .site-header__capsule {
  padding-block: 6px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 24px rgba(26, 31, 26, .14);
}

.site-header__progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 1100;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-blue) 60%, var(--c-orange) 100%);
  pointer-events: none;
  transition: width .12s linear;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-ink);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--c-green-dark);
}

.brand__crest {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 2px 10px rgba(62, 124, 79, .35);
}

.brand__crest::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 1.5px;
  background: rgba(255, 255, 255, .75);
  transform: translateX(-50%);
}

.brand__crest::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.brand__label {
  font-weight: 800;
}

/* ---------- Navigation ---------- */
.site-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.site-nav__link {
  display: inline-block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-ink);
  transition: background .22s ease, color .22s ease;
}

.site-nav__link:hover {
  background: var(--c-green-soft);
  color: var(--c-green-dark);
}

.site-nav__link[aria-current="page"] {
  background: var(--c-green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(62, 124, 79, .32);
}

/* ---------- Mobile Nav Toggle ---------- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-pill);
  background: var(--c-green-soft);
  transition: background .2s ease;
}

.nav-toggle:hover {
  background: rgba(62, 124, 79, .22);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: var(--c-green-dark);
  transition: transform .25s ease, opacity .2s ease;
}

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

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

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

/* ---------- Mobile Breakpoint ---------- */
@media (max-width: 920px) {
  body {
    padding-top: clamp(72px, 14vw, 88px);
  }

  .site-header {
    padding: 12px 12px;
  }

  .site-header.is-scrolled {
    padding-block: 8px;
  }

  .site-header__capsule {
    flex-wrap: wrap;
    border-radius: 26px;
    padding: 10px 12px 10px 16px;
  }

  .site-header.is-scrolled .site-header__capsule {
    padding-block: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 1 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s ease, opacity .25s ease, visibility .25s ease;
  }

  .site-nav[data-open] {
    max-height: 70vh;
    opacity: 1;
    visibility: visible;
    padding: 12px 6px 8px;
  }

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

  .site-nav__link {
    display: block;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 1rem;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: var(--section-space);
  background: var(--c-ink);
  color: rgba(244, 246, 248, .78);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      var(--c-green) 0%, var(--c-green) 24%,
      var(--c-blue) 24%, var(--c-blue) 48%,
      var(--c-violet) 48%, var(--c-violet) 68%,
      var(--c-orange) 68%, var(--c-orange) 100%);
}

.site-footer a {
  color: rgba(244, 246, 248, .72);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2.1fr 1.1fr 1.1fr 1.6fr;
  gap: clamp(28px, 5vw, 56px);
  padding: 64px 0 48px;
}

.site-footer__brand .brand {
  color: #fff;
}

.site-footer__brand .brand__crest {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .07), 0 2px 12px rgba(0, 0, 0, .4);
}

.site-footer__tagline {
  margin-top: 18px;
  max-width: 34ch;
  font-size: .9375rem;
  line-height: 1.8;
  color: rgba(244, 246, 248, .55);
}

.site-footer__heading {
  margin-bottom: 18px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(176, 183, 195, .7);
}

.site-footer__col {
  min-width: 0;
}

.site-footer__list {
  display: grid;
  gap: 10px;
}

.site-footer__list a {
  font-size: .9375rem;
}

.site-footer__contact {
  display: grid;
  gap: 10px;
  font-style: normal;
  font-size: .9375rem;
  color: rgba(244, 246, 248, .62);
}

.site-footer__trust {
  border-top: 1px dashed rgba(176, 183, 195, .18);
  padding: 18px 0;
  font-size: .875rem;
  color: rgba(176, 183, 195, .68);
}

.site-footer__trust p {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 4px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(176, 183, 195, .14);
  font-size: .875rem;
  color: rgba(176, 183, 195, .62);
}

.site-footer__note {
  color: rgba(176, 183, 195, .5);
}

@media (max-width: 960px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.btn--primary {
  background: var(--c-green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-green-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(62, 124, 79, .3);
}

.btn--blue {
  background: var(--c-blue);
  color: #fff;
}

.btn--blue:hover {
  background: var(--c-blue-dark);
  color: #fff;
  box-shadow: 0 8px 20px rgba(33, 150, 243, .28);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--c-silver);
  color: var(--c-ink);
}

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

.btn--large {
  padding: 16px 34px;
  font-size: 1.0625rem;
}

.btn--small {
  padding: 8px 16px;
  font-size: .875rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px 0 20px;
  font-size: .875rem;
  color: var(--text-sub);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--c-green);
}

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

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: var(--c-silver);
}

/* ---------- Section Marker & Titles ---------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-green-soft);
  color: var(--c-green-dark);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.section-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-orange);
}

.section-tag--green {
  background: var(--c-green-soft);
  color: var(--c-green-dark);
}

.section-tag--green::before {
  background: var(--c-green);
}

.section-tag--blue {
  background: var(--c-blue-soft);
  color: var(--c-blue-dark);
}

.section-tag--blue::before {
  background: var(--c-blue);
}

.section-tag--orange {
  background: var(--c-orange-soft);
  color: #C2531C;
}

.section-tag--orange::before {
  background: var(--c-orange);
}

.section-tag--violet {
  background: var(--c-violet-soft);
  color: var(--c-violet);
}

.section-tag--violet::before {
  background: var(--c-violet);
}

.section-title {
  margin-top: 6px;
}

.lead-text {
  margin-top: 12px;
  max-width: 60ch;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-sub);
}

/* ---------- Cards ---------- */
.card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.card--hover {
  transition: transform .25s ease, box-shadow .25s ease;
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.grid--align-start {
  align-items: start;
}

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

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

/* ---------- Data & Status ---------- */
.data-list {
  border-top: 1px solid var(--line-soft);
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px dotted var(--c-silver);
}

.data-label {
  font-size: .9375rem;
  color: var(--text-sub);
}

.data-value {
  font-weight: 800;
  color: var(--c-ink);
  white-space: nowrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-paper);
  border: 1px solid var(--line-soft);
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-ink);
}

.stat-pill--green {
  background: var(--c-green);
  border-color: transparent;
  color: #fff;
}

.stat-pill--orange {
  background: var(--c-orange);
  border-color: transparent;
  color: #fff;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  vertical-align: middle;
}

.status-dot--orange {
  background: var(--c-orange);
}

.status-dot--blue {
  background: var(--c-blue);
}

.status-dot--violet {
  background: var(--c-violet);
}

.badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-orange);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
}

/* ---------- Filter Pills ---------- */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--c-paper);
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.filter-pill:hover {
  border-color: var(--c-blue);
  color: var(--c-blue-dark);
}

.filter-pill.is-active,
.filter-pill[aria-pressed="true"] {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

/* ---------- Image Containers ---------- */
.image-figure {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: linear-gradient(130deg, #E4E9EF 0%, var(--c-mist) 55%, #DFE5EC 100%);
  box-shadow: var(--shadow-card);
}

.image-figure--wide {
  aspect-ratio: 21 / 9;
}

.image-figure--square {
  aspect-ratio: 1 / 1;
}

.image-figure--portrait {
  aspect-ratio: 3 / 4;
}

.image-figure__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--c-slate);
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .55) 0 40px, transparent 41px);
}

.image-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Tactics Board Background ---------- */
.pitch-marks {
  background-image:
    radial-gradient(circle at 50% 58%, transparent 0 180px, rgba(62, 124, 79, .055) 181px 182px, transparent 183px),
    linear-gradient(to right, rgba(62, 124, 79, .045) 0 1px, transparent 1px);
  background-size: auto, 25% 100%;
  background-position: center top, left top;
}

/* ---------- Reveal Motion ---------- */
.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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