/* ============================================================
   平博APP中国站 / 共享样式 / /assets/site.css
   竞技场绿 · 冲刺橙 · 冠军金
   ============================================================ */

:root {
  --green: #0B3D2E;
  --green-deep: #0A2B20;
  --green-dark: #1F5C48;
  --green-mist: #E0F2E9;
  --orange: #FF6B35;
  --orange-soft: #FFB08A;
  --gold: #F2C94C;
  --white: #FFFFFF;
  --ink: #333333;
  --text-soft: rgba(255, 255, 255, 0.82);
  --text-mute: rgba(255, 255, 255, 0.56);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-head: 'Archivo Black', 'Arial Black', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --container-w: 1440px;
  --radius: 0.75rem;
  --shadow-hard: 8px 8px 0 var(--green-deep);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-soft);
  background-color: var(--green);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 16px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--white);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

#main-content:focus {
  outline: none;
}

#main-content {
  scroll-margin-top: 6rem;
}

/* ===== 辅助 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* ===== 跳过链接 ===== */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(180deg, var(--orange) 0%, #e85a22 100%);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
  transform: translateY(-250%);
  transition: transform 0.25s ease;
  pointer-events: auto;
}

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

/* ===== 页头 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem clamp(0.75rem, 3vw, 2rem) 0;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  pointer-events: auto;
  max-width: var(--container-w);
  margin-inline: auto;
  min-height: 4.25rem;
  padding: 0.5rem 0.65rem 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(10, 43, 32, 0.86);
  border: 2px solid rgba(242, 201, 76, 0.28);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(3, 18, 12, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  color: var(--white);
}

.site-header__mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem 0.75rem 0.75rem 0.25rem;
  background: linear-gradient(135deg, var(--orange) 0%, #e04e1e 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.05rem;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 4px 12px rgba(255, 107, 53, 0.35);
}

.site-header__name {
  font-family: var(--font-head);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-header__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(242, 201, 76, 0.12);
  border: 1px solid rgba(242, 201, 76, 0.35);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.site-header__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pingbo-pulse 2s ease-out infinite;
}

@keyframes pingbo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.site-header__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-header__link {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.site-header__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.site-header__link[aria-current="page"] {
  color: var(--orange);
  background: rgba(255, 107, 53, 0.14);
  border-color: rgba(255, 107, 53, 0.45);
}

.site-header__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange) 0%, #e85a22 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 5px 14px rgba(255, 107, 53, 0.4);
}

.site-header__cta:hover {
  color: #fff;
  transform: translateY(-1px);
  background: #ff7f52;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 18px rgba(255, 107, 53, 0.5);
}

.site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__toggle:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.site-header__toggle-box {
  display: block;
  width: 20px;
}

.site-header__toggle-bar {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header__toggle-bar + .site-header__toggle-bar {
  margin-top: 5px;
}

.site-header__toggle[data-open] .site-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__toggle[data-open] .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header__toggle[data-open] .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--text-soft);
  overflow: hidden;
}

.site-footer__accent {
  position: relative;
  height: 6px;
  background: var(--orange);
}

.site-footer__accent::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 9%;
  width: 10%;
  background: var(--gold);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
}

.site-footer__inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) 2.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem 2rem;
}

.site-footer__brand {
  grid-column: span 4;
}

.site-footer__nav {
  grid-column: span 2;
}

.site-footer__legal {
  grid-column: span 2;
}

.site-footer__contact {
  grid-column: span 4;
}

.site-footer__brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.site-footer__brand-link:hover {
  color: var(--gold);
}

.site-footer__mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, #ebc53a 100%);
  color: var(--green-deep);
  border-radius: 0.75rem 0.75rem 0.75rem 0.25rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(242, 201, 76, 0.35);
}

.site-footer__name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.site-footer__trust {
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-soft);
  border-left: 3px solid var(--orange);
  padding-left: 1rem;
}

.site-footer__heading {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}

.site-footer__links {
  display: grid;
  gap: 0.7rem;
}

.site-footer__link {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.site-footer__link:hover {
  color: var(--gold);
}

.site-footer__text {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
  display: block;
}

.site-footer__bottom {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem) 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.8rem;
  font-size: 0.88rem;
}

.site-footer__copyright {
  color: var(--text-mute);
}

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.site-footer__bottom-link {
  color: var(--text-mute);
}

.site-footer__bottom-link:hover {
  color: var(--gold);
}

.site-footer__icp {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}

/* ===== 章节分区 ===== */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

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

.section--deep {
  background: var(--green-deep);
  color: var(--text-soft);
}

.section--light {
  background: var(--green-mist);
  color: var(--ink);
}

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

.section--accent {
  background: linear-gradient(115deg, var(--green-mist) 0%, var(--green-mist) 58%, var(--orange-soft) 130%);
  color: var(--ink);
}

.section--light h1,
.section--light h2,
.section--light h3,
.section--white h1,
.section--white h2,
.section--white h3,
.section--accent h1,
.section--accent h2,
.section--accent h3 {
  color: var(--green-deep);
}

/* ===== 分屏与网格 ===== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--side {
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  align-items: start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.grid--tight {
  gap: 1rem;
}

/* ===== 章节标题 ===== */
.section-head {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head__num {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 0.85;
  color: var(--orange);
}

.section-head__title {
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
  color: var(--white);
}

.section-head__lead {
  flex-basis: 100%;
  max-width: 38rem;
  color: var(--text-mute);
}

.section--light .section-head__title,
.section--white .section-head__title,
.section--accent .section-head__title {
  color: var(--green-deep);
}

.section--light .section-head__lead,
.section--white .section-head__lead,
.section--accent .section-head__lead {
  color: var(--ink);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 5px 0 rgba(4, 22, 16, 0.4), 0 10px 24px rgba(255, 107, 53, 0.35);
}

.btn--primary:hover {
  background: #ff854f;
  color: #fff;
  box-shadow: 0 7px 0 rgba(4, 22, 16, 0.35), 0 16px 28px rgba(255, 107, 53, 0.42);
}

.btn--gold {
  background: var(--gold);
  color: var(--green-deep);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 5px 0 rgba(4, 22, 16, 0.4);
}

.btn--gold:hover {
  background: #ffd969;
  color: var(--green-deep);
}

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

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

.section--light .btn--ghost,
.section--white .btn--ghost,
.section--accent .btn--ghost {
  color: var(--green-deep);
  border-color: var(--green-dark);
}

.section--light .btn--ghost:hover,
.section--white .btn--ghost:hover,
.section--accent .btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* ===== 面包屑 ===== */
.breadcrumbs {
  padding-block: 1.4rem;
  font-size: 0.88rem;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: ' / ';
  margin-inline: 0.35rem;
  color: var(--text-mute);
}

.breadcrumbs__link {
  color: var(--text-mute);
}

.breadcrumbs__link:hover {
  color: var(--gold);
}

.breadcrumbs__current {
  font-weight: 600;
  color: var(--white);
}

.breadcrumbs--light .breadcrumbs__link {
  color: var(--green-dark);
}

.breadcrumbs--light .breadcrumbs__link:hover {
  color: var(--orange);
}

.breadcrumbs--light .breadcrumbs__current {
  color: var(--green-deep);
}

.breadcrumbs--light .breadcrumbs__item + .breadcrumbs__item::before {
  color: rgba(10, 43, 32, 0.4);
}

/* ===== 资料卡 ===== */
.card {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  box-shadow: 8px 8px 0 var(--green-deep);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  border-color: var(--orange);
  box-shadow: 11px 11px 0 var(--green-deep);
}

.card--dark {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-deep) 100%);
  color: var(--text-soft);
}

.card--dark h1,
.card--dark h2,
.card--dark h3,
.card--dark h4 {
  color: var(--white);
}

.card--light {
  background: var(--green-mist);
}

.card--flat {
  box-shadow: 4px 4px 0 var(--green-deep);
}

.card h1,
.card h2,
.card h3,
.card h4 {
  color: var(--green-deep);
}

/* ===== 档案夹 ===== */
.folder {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--green-dark);
  border-radius: 0 0.75rem 0.75rem 0.75rem;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 8px 8px 0 var(--green-deep);
  margin-top: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.folder:hover {
  transform: translate(-3px, -3px);
  border-color: var(--orange);
  box-shadow: 12px 12px 0 var(--green-deep);
}

.folder__tab {
  position: absolute;
  top: -1.25rem;
  left: 0.9rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 82%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.45rem 1.05rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green-deep);
  background: linear-gradient(180deg, #ffe27a 0%, var(--gold) 100%);
  border: 2px solid var(--green-dark);
  border-bottom: none;
  border-radius: 0.55rem 0.55rem 0 0;
}

.folder--dark {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-deep) 100%);
  color: var(--text-soft);
}

.folder--dark h1,
.folder--dark h2,
.folder--dark h3,
.folder--dark h4 {
  color: var(--white);
}

.folder--dark .folder__tab {
  background: linear-gradient(180deg, var(--orange) 0%, #e85a22 100%);
  color: #fff;
  border-color: var(--orange);
}

.folder h1,
.folder h2,
.folder h3,
.folder h4 {
  color: var(--green-deep);
}

/* ===== 标签 ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.tag--orange {
  background: rgba(255, 107, 53, 0.14);
  color: var(--orange);
  border-color: rgba(255, 107, 53, 0.4);
}

.tag--gold {
  background: var(--gold);
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.tag--green {
  background: var(--green-dark);
  color: var(--white);
}

.tag--ghost {
  color: inherit;
  border-color: currentColor;
}

/* ===== 折叠面板 ===== */
.fold {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--green-dark);
  border-radius: 0.75rem;
  box-shadow: 5px 5px 0 var(--green-deep);
  overflow: hidden;
}

.fold + .fold {
  margin-top: 1rem;
}

.fold__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--green-deep);
  cursor: pointer;
  list-style: none;
}

.fold__head::-webkit-details-marker {
  display: none;
}

.fold__head::after {
  content: '+';
  font-size: 1.6rem;
  line-height: 1;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.fold[open] .fold__head {
  color: var(--orange);
}

.fold[open] .fold__head::after {
  transform: rotate(45deg);
}

.fold__body {
  padding: 0 1.4rem 1.5rem;
  color: var(--ink);
  line-height: 1.7;
}

/* ===== 大号数据 ===== */
.stat {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.stat--orange {
  color: var(--orange);
}

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

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}

/* ===== 编号章节 ===== */
.chapter {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  align-items: start;
  padding-block: 2.25rem;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.22);
}

.chapter:last-child {
  border-bottom: 0;
}

.chapter__num {
  grid-row: 1 / span 2;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.9;
  color: var(--orange);
}

@supports (-webkit-text-stroke: 2px var(--orange)) {
  .chapter__num {
    color: transparent;
    -webkit-text-stroke: 2px var(--orange);
  }
}

.chapter__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
}

.chapter__body {
  color: var(--text-mute);
  max-width: 52rem;
}

.section--light .chapter,
.section--white .chapter,
.section--accent .chapter {
  border-color: rgba(10, 43, 32, 0.25);
}

.section--light .chapter__title,
.section--white .chapter__title,
.section--accent .chapter__title {
  color: var(--green-deep);
}

.section--light .chapter__body,
.section--white .chapter__body,
.section--accent .chapter__body {
  color: var(--ink);
}

/* ===== 图片容器 ===== */
.img-frame {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-deep) 100%);
  border: 2px solid var(--green-dark);
  border-radius: 0.5rem;
  box-shadow: 7px 7px 0 rgba(10, 43, 32, 0.35);
}

.img-frame::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(242, 201, 76, 0.28), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 10px);
  pointer-events: none;
}

.img-frame > img,
.img-frame > svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

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

/* ===== 滚动显现 ===== */
[data-reveal] {
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not([data-revealed]) {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1023.98px) {
  .site-header {
    padding: 0.75rem 0.75rem 0;
  }

  .site-header__inner {
    border-radius: 1.15rem;
    min-height: 3.7rem;
  }

  .site-header__live {
    display: none;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .site-header__nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
    background: rgba(10, 43, 32, 0.97);
    border: 2px solid rgba(242, 201, 76, 0.35);
    border-radius: 1.15rem;
    box-shadow: 0 20px 44px rgba(3, 18, 12, 0.6);
  }

  .site-header__nav[data-open] {
    display: flex;
  }

  .site-header__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-header__link {
    border-radius: 0.8rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.98rem;
    text-align: left;
  }

  .site-header__cta {
    width: 100%;
    margin-top: 0.2rem;
    border-radius: 0.8rem;
  }

  .split,
  .split--side {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__brand {
    grid-column: span 12;
  }

  .site-footer__nav,
  .site-footer__legal,
  .site-footer__contact {
    grid-column: span 4;
  }
}

@media (max-width: 639.98px) {
  .site-footer__nav,
  .site-footer__legal,
  .site-footer__contact {
    grid-column: span 12;
  }

  .site-footer__inner {
    gap: 2.2rem;
  }

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

  .site-footer__icp {
    margin-left: 0;
  }

  .chapter {
    grid-template-columns: 3.6rem 1fr;
  }
}

/* ===== 减弱动效 ===== */
@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;
  }
}
