/* ==========================================================================
   KAIYUN 竞界云巅 · 共享样式层
   ========================================================================== */

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

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

/* ---------- 2. CSS 变量 ---------- */
:root {
  --primary-blue: #0A2E5C;
  --secondary-blue: #1A4A7A;
  --deep-blue: #061D3A;
  --accent-orange: #FF6B00;
  --highlight-yellow: #FFD700;
  --rock-gray: #9BA3AF;
  --off-white: #F8F5F0;
  --clay: #C07040;
  --moss-green: #4A6B3A;

  --font-heading: Impact, "Arial Black", "Haettenschweiler", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-data: "SF Mono", "Roboto Mono", "Cascadia Code", "Consolas", monospace;

  --container-w: 1200px;
  --radius: 4px;
  --shadow: 0 4px 20px rgba(6, 29, 58, 0.08);
  --shadow-raised: 0 8px 32px rgba(6, 29, 58, 0.16);
  --shadow-colored: 0 5px 22px rgba(255, 107, 0, 0.22);
  --transition-fast: 0.18s ease;
  --transition-base: 0.26s ease;
  --transition-slow: 0.42s ease;
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--primary-blue);
  background-color: var(--off-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  color: var(--primary-blue);
  letter-spacing: 0.01em;
}

p {
  margin-bottom: 1em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 4. 布局基础 ---------- */
.container {
  width: min(100%, var(--container-w));
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.main-content {
  outline: none;
}

#main-content:focus-visible {
  outline: 3px solid var(--highlight-yellow);
  outline-offset: -3px;
}

.page-main {
  padding-block: 40px 80px;
  min-height: 60vh;
}

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

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  background: var(--accent-orange);
  color: var(--primary-blue);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  box-shadow: var(--shadow-colored);
  transform: translateY(-120%);
  transition: transform var(--transition-base);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--highlight-yellow);
  outline-offset: 3px;
}

/* ---------- 6. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, var(--accent-orange), var(--highlight-yellow));
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-blue);
  color: var(--off-white);
  box-shadow: 0 4px 24px rgba(6, 29, 58, 0.18);
}

/* 上层：品牌说明区 */
.header-top {
  position: relative;
  background:
    linear-gradient(105deg, transparent 66%, rgba(255, 255, 255, 0.04) 66%, rgba(255, 255, 255, 0.04) 68%, transparent 68%),
    linear-gradient(115deg, transparent 82%, rgba(255, 255, 255, 0.03) 82%, rgba(255, 255, 255, 0.03) 84%, transparent 84%),
    linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 72%, var(--deep-blue) 100%);
  border-bottom: 2px solid rgba(255, 107, 0, 0.65);
}

.header-top::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 220px;
  height: 100%;
  background: repeating-linear-gradient(-45deg, transparent, transparent 9px, rgba(255, 255, 255, 0.035) 9px, rgba(255, 255, 255, 0.035) 11px);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.header-top-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  position: relative;
  z-index: 1;
}

/* 品牌组合 */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-orange);
  color: var(--primary-blue);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 2px 12px rgba(255, 107, 0, 0.35);
  transition: transform var(--transition-fast);
}

.brand:hover .brand-mark {
  transform: translateX(3px) skewX(-2deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--off-white);
  line-height: 1;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  color: rgba(248, 245, 240, 0.55);
  margin-top: 3px;
}

/* 上层标语 */
.header-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(248, 245, 240, 0.55);
  white-space: nowrap;
}

.tagline-line {
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange));
  flex-shrink: 0;
}

.tagline-text {
  text-transform: uppercase;
}

/* 实时倒计时 */
.header-live {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  background: rgba(6, 29, 58, 0.55);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-left: 3px solid var(--highlight-yellow);
  border-radius: 0 3px 3px 0;
  flex-shrink: 0;
  margin-left: 4px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  position: relative;
  flex-shrink: 0;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 0, 0.5);
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.live-label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: rgba(248, 245, 240, 0.6);
  white-space: nowrap;
  font-weight: 500;
}

.live-clock {
  font-family: var(--font-data);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--highlight-yellow);
  background: rgba(6, 29, 58, 0.8);
  border-radius: 3px;
  padding: 2px 8px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  min-width: 74px;
  text-align: center;
}

.live-clock.is-ticking {
  animation: tick-pop 0.24s ease;
}

@keyframes tick-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.09); }
  100% { transform: scale(1); }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(6, 29, 58, 0.5);
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: 3px;
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(255, 107, 0, 0.18);
  border-color: var(--accent-orange);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--off-white);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

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

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

/* 下层：主导航 */
.header-nav {
  background: var(--deep-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 14px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: rgba(248, 245, 240, 0.8);
  white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-list li:first-child a {
  border-left: none;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 8px;
  height: 3px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav-list a:hover {
  color: var(--off-white);
  background: rgba(255, 107, 0, 0.1);
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--highlight-yellow);
  background: linear-gradient(180deg, transparent, rgba(255, 107, 0, 0.12));
}

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  background:
    linear-gradient(115deg, transparent 78%, rgba(255, 255, 255, 0.025) 78%, rgba(255, 255, 255, 0.025) 80%, transparent 80%),
    var(--deep-blue);
  color: rgba(248, 245, 240, 0.72);
}

.footer-top-line {
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent-orange) 0,
    var(--accent-orange) 12px,
    var(--deep-blue) 12px,
    var(--deep-blue) 16px
  );
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 48px 56px;
  padding: 56px 0 48px;
}

/* 品牌列 */
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--accent-orange);
  color: var(--primary-blue);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--off-white);
  line-height: 1;
}

.footer-sub {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(248, 245, 240, 0.4);
  margin-top: 3px;
}

.footer-about {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(248, 245, 240, 0.58);
  margin-bottom: 14px;
  max-width: 30em;
}

.footer-trust {
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(248, 245, 240, 0.42);
  border-left: 3px solid var(--moss-green);
  padding-left: 12px;
  max-width: 30em;
  margin-bottom: 0;
}

/* 导航 / 合规列 */
.footer-col {
  min-width: 0;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.35);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading-second {
  margin-top: 32px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  color: rgba(248, 245, 240, 0.78);
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast), transform var(--transition-fast);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--transition-fast);
}

.footer-links a:hover {
  color: var(--highlight-yellow);
  padding-left: 6px;
}

.footer-links a:hover::before {
  width: 100%;
}

/* 联系列 */
.footer-contact li {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 0.88rem;
}

.contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.32);
  margin-bottom: 2px;
}

.contact-value {
  color: rgba(248, 245, 240, 0.78);
  word-break: break-word;
}

/* 底栏 */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 0;
  font-size: 0.78rem;
  color: rgba(248, 245, 240, 0.42);
}

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

.footer-domain {
  font-family: var(--font-data);
  letter-spacing: 0.08em;
  color: rgba(248, 245, 240, 0.3);
}

/* ---------- 9. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 30px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 0;
  position: relative;
  isolation: isolate;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--primary-blue);
  box-shadow: var(--shadow-colored);
}

.btn-primary::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 0;
  width: 14px;
  height: 100%;
  z-index: -1;
  background: var(--accent-orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: background var(--transition-fast);
}

.btn-primary:hover {
  background: var(--highlight-yellow);
  transform: translateX(3px);
  box-shadow: 0 6px 26px rgba(255, 215, 0, 0.28);
}

.btn-primary:hover::after {
  background: var(--highlight-yellow);
}

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

.btn-outline::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 0;
  width: 14px;
  height: 100%;
  z-index: -1;
  background: var(--primary-blue);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.btn-outline:hover {
  background: rgba(10, 46, 92, 0.06);
  transform: translateX(3px);
}

.btn-lg {
  padding: 16px 38px;
  font-size: 1rem;
}

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

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  font-size: 0.84rem;
  color: var(--rock-gray);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 6px;
  color: var(--rock-gray);
  opacity: 0.55;
  font-family: var(--font-data);
}

.breadcrumb a {
  color: var(--primary-blue);
  font-weight: 500;
}

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

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

/* ---------- 11. 页面首屏 ---------- */
.page-hero {
  position: relative;
  padding: clamp(40px, 6vw, 64px) 0 40px;
  background:
    linear-gradient(105deg, transparent 70%, rgba(255, 255, 255, 0.045) 70%, rgba(255, 255, 255, 0.045) 72%, transparent 72%),
    linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 66%, var(--deep-blue) 100%);
  color: var(--off-white);
  overflow: hidden;
  border-bottom: 4px solid var(--accent-orange);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 38%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.04) 10px, rgba(255, 255, 255, 0.04) 13px);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-kicker {
  font-family: var(--font-data);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--highlight-yellow);
  margin-bottom: 8px;
  display: block;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--off-white);
  margin: 6px 0 14px;
  text-shadow: 0 3px 16px rgba(6, 29, 58, 0.5);
}

.page-hero-desc {
  font-size: 0.96rem;
  line-height: 1.75;
  color: rgba(248, 245, 240, 0.75);
  max-width: 46em;
  margin-bottom: 0;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ---------- 12. 章节标题 ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 28px;
  margin-bottom: 36px;
}

.section-head-main {
  position: relative;
  padding-left: 18px;
  min-width: 0;
}

.section-head-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-orange), var(--highlight-yellow));
  border-radius: 2px;
}

.section-kicker {
  display: block;
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.18;
  color: var(--primary-blue);
}

.section-note {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--rock-gray);
  max-width: 26em;
  text-align: right;
}

/* 大编号章节 */
.chapter {
  position: relative;
  padding: 52px 0;
  border-bottom: 1px solid rgba(10, 46, 92, 0.09);
}

.chapter:first-of-type {
  padding-top: 24px;
}

.chapter::before {
  content: attr(data-chapter);
  position: absolute;
  right: 0;
  top: 26px;
  font-family: var(--font-heading);
  font-size: clamp(4.2rem, 8vw, 6.8rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(10, 46, 92, 0.06);
  z-index: 0;
  pointer-events: none;
}

.chapter > * {
  position: relative;
  z-index: 1;
}

/* ---------- 13. 数据卡片 ---------- */
.data-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.data-card {
  background: var(--off-white);
  border: 1px solid rgba(10, 46, 92, 0.12);
  border-top: 3px solid var(--primary-blue);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.data-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
}

.data-card.is-highlight {
  border-top-color: var(--accent-orange);
}

.data-card-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rock-gray);
  text-transform: uppercase;
}

.data-card-value {
  display: block;
  font-family: var(--font-data);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-blue);
  margin-top: 6px;
}

.data-card-value.is-accent {
  color: var(--accent-orange);
}

.data-card-value.is-record {
  color: var(--clay);
}

.data-card-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--rock-gray);
  margin-top: 8px;
  border-top: 1px solid rgba(10, 46, 92, 0.08);
  padding-top: 8px;
}

/* ---------- 14. 通用卡片网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

/* ---------- 15. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--secondary-blue);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

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

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

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.media-tag {
  position: absolute;
  left: 0;
  top: 14px;
  z-index: 2;
  background: var(--accent-orange);
  color: var(--deep-blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 6px 14px 6px 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(6, 29, 58, 0.2);
}

.media-tag.is-dark {
  background: var(--deep-blue);
  color: var(--highlight-yellow);
}

.media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: repeating-linear-gradient(-45deg, var(--secondary-blue), var(--secondary-blue) 12px, var(--primary-blue) 12px, var(--primary-blue) 14px);
  color: rgba(248, 245, 240, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- 16. 标签胶囊 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 100px;
  background: var(--secondary-blue);
  color: var(--off-white);
  line-height: 1.4;
  white-space: nowrap;
}

.chip.is-live {
  background: var(--moss-green);
  color: var(--off-white);
}

.chip.is-warn {
  background: var(--accent-orange);
  color: var(--deep-blue);
}

.chip.is-yellow {
  background: var(--highlight-yellow);
  color: var(--primary-blue);
}

/* ---------- 17. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid rgba(10, 46, 92, 0.12);
  background: var(--off-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table-wrap table {
  min-width: 560px;
}

.table-wrap th {
  background: var(--primary-blue);
  color: var(--off-white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}

.table-wrap td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(10, 46, 92, 0.07);
  font-size: 0.9rem;
  color: var(--primary-blue);
}

.table-wrap tr:nth-child(even) td {
  background: rgba(10, 46, 92, 0.028);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

/* ---------- 18. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* ---------- 19. Focus 可见性 ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--highlight-yellow);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- 20. 平板 ---------- */
@media (max-width: 1023px) {
  .header-tagline {
    display: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .page-hero::after {
    width: 30%;
  }
}

/* ---------- 21. 手机 ---------- */
@media (max-width: 767px) {
  .header-top {
    border-bottom-width: 1px;
  }

  .header-top-inner {
    min-height: 64px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

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

  .brand-name {
    font-size: 1.2rem;
    letter-spacing: 0.06em;
  }

  .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.24em;
  }

  .header-live {
    margin-left: auto;
    padding: 4px 8px;
    gap: 6px;
  }

  .live-label {
    display: none;
  }

  .live-clock {
    font-size: 0.92rem;
    min-width: 62px;
    padding: 2px 6px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-nav[data-open] {
    display: block;
  }

  .header-nav {
    box-shadow: inset 0 8px 16px rgba(6, 29, 58, 0.2);
  }

  .nav-list {
    flex-direction: column;
    padding: 8px 0;
  }

  .nav-list a {
    padding: 14px 24px;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list a::after {
    left: 24px;
    right: auto;
    width: 44px;
    bottom: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 0 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-heading-second {
    margin-top: 24px;
  }

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

  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .section-note {
    text-align: left;
  }

  .chapter::before {
    top: 18px;
  }

  .data-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .data-cards {
    grid-template-columns: 1fr;
  }

  .brand-sub {
    display: none;
  }

  .live-clock {
    font-size: 0.86rem;
    min-width: 58px;
  }
}

/* ---------- 22. 降级动效 ---------- */
@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: 0ms !important;
  }

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

  .scroll-progress {
    display: none;
  }

  .live-clock.is-ticking {
    animation: none;
  }

  .live-dot::after {
    animation: none;
    display: none;
  }

  .nav-toggle-bar {
    transition: none;
  }
}
