/* ============================================================
   欧亿体育安装 · 全站共享样式 /assets/site.css
   版本 1.0.0
   设计体系：深蓝赛道基底 / 亮橙信号色 / 金色编号索引
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  background: var(--c-primary);
  color: var(--c-white);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { background: none; border: none; cursor: pointer; color: inherit; }
strong, b { font-weight: 700; }

::selection {
  background: var(--c-accent);
  color: var(--c-white);
}

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --c-primary: #0A1F44;
  --c-accent: #FF6B35;
  --c-gold: #FFD700;
  --c-white: #FFFFFF;
  --c-light: #F4F6F8;
  --c-muted: #8A94A6;
  --c-border: #1C2B36;
  --c-success: #00C853;

  --font-display: Impact, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --container: 1240px;
  --container-pad: clamp(20px, 4vw, 40px);
  --header-h: 76px;

  --radius: 6px;
  --radius-lg: 10px;

  --shadow-sm: 0 2px 10px rgba(10, 31, 68, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 31, 68, 0.14);
  --shadow-lg: 0 24px 64px rgba(10, 31, 68, 0.22);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slide: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 3. 基础排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-white);
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

h2 .accent { color: var(--c-accent); }
.gold { color: var(--c-gold); }

p { max-width: 70ch; }

a { transition: color 0.2s ease; }

/* ---------- 4. 布局与工具 ---------- */
.site-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.site-container--wide { max-width: 1440px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(100%);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.vertical-note {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--c-muted);
  line-height: 1.7;
  text-orientation: upright;
}

.section-block {
  padding: clamp(60px, 10vw, 120px) 0;
}

.section-block--tight {
  padding: clamp(40px, 6vw, 80px) 0;
}

/* ---------- 5. 焦点与跳转 ---------- */
.skip-link {
  position: fixed;
  top: -56px;
  left: 16px;
  z-index: 400;
  background: var(--c-accent);
  color: var(--c-white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow-md);
  transition: top 0.25s var(--ease-out), opacity 0.25s;
  opacity: 0;
}

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

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

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
  background: #E85828;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.4);
}

.btn-line {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-line:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  transform: translateY(-2px);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 20px 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted);
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.25);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

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

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

/* ---------- 9. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(10, 31, 68, 0.92);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 13px
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-accent);
  z-index: 0;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(10, 31, 68, 0.98);
  border-bottom-color: rgba(255, 107, 53, 0.2);
  box-shadow: 0 8px 30px rgba(10, 31, 68, 0.28);
}

.header-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  position: relative;
}

/* 品牌区 */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.25s;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.site-brand:hover .brand-mark {
  transform: rotate(-4deg);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.brand-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* ---------- 10. 主导航 ---------- */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-item + .nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  height: var(--header-h);
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-index {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--c-gold);
  opacity: 0.65;
  letter-spacing: 0.05em;
  transition: opacity 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-slide);
}

.nav-link:hover {
  color: var(--c-white);
}

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

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

.nav-link[aria-current="page"] .nav-index {
  opacity: 1;
}

/* ---------- 11. 页头工具 ---------- */
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.deco-slash {
  position: relative;
  width: 30px;
  height: 34px;
  flex-shrink: 0;
  pointer-events: none;
}

.deco-slash::before,
.deco-slash::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 2px;
  transform: skewX(-22deg);
}

.deco-slash::before {
  left: 2px;
  width: 3px;
  background: var(--c-accent);
  opacity: 0.9;
}

.deco-slash::after {
  left: 13px;
  top: 6px;
  width: 2px;
  height: 70%;
  background: var(--c-gold);
  opacity: 0.55;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  min-width: 170px;
}

.search-icon {
  font-size: 15px;
  line-height: 1;
  opacity: 0.6;
}

.search-placeholder {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.lang-switch::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  border-color: var(--c-accent);
  background: rgba(255, 107, 53, 0.1);
}

.toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s, background 0.3s;
}

.nav-toggle.is-active .toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--c-accent);
}

.nav-toggle.is-active .toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--c-accent);
}

/* ---------- 12. 移动导航状态 ---------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-search,
  .deco-slash {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: block;
    padding: 0 0 20px;
    background: rgba(10, 31, 68, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.36s var(--ease-out), transform 0.36s var(--ease-out), visibility 0.36s;
    overflow-y: auto;
  }

  .main-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px var(--container-pad) 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item + .nav-item::before {
    display: none;
  }

  .nav-link {
    width: 100%;
    height: 52px;
    padding: 0 2px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
  }

  .nav-link::after {
    content: "↗";
    position: static;
    margin-left: auto;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.25s, color 0.25s;
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    transform: none;
    opacity: 1;
    color: var(--c-accent);
  }

  .nav-link:hover {
    color: var(--c-white);
  }

  .nav-link[aria-current="page"] {
    color: var(--c-gold);
  }

  .nav-link[aria-current="page"] .nav-index {
    color: var(--c-accent);
    opacity: 1;
  }
}

/* ---------- 13. 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background: var(--c-accent);
  color: var(--c-white);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s, transform 0.3s var(--ease-out), background 0.25s, box-shadow 0.25s;
  pointer-events: none;
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-top:hover {
  background: var(--c-gold);
  color: var(--c-primary);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.35);
}

/* ---------- 14. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--c-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-gold) 45%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 0 48px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.footer-brand-text {
  display: grid;
  gap: 2px;
}

.footer-brand-text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.footer-brand-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--c-muted);
  white-space: nowrap;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  max-width: 36ch;
  margin-bottom: 20px;
}

.footer-slogan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 107, 53, 0.22);
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
}

.slogan-line { color: var(--c-gold); }

.slogan-dot { color: var(--c-accent); font-size: 18px; line-height: 1; }

.footer-col { min-width: 0; }

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: var(--c-white);
  padding-left: 4px;
}

.footer-contact {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.footer-meta {
  display: grid;
  gap: 12px;
}

.footer-meta li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.meta-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: 4px;
  font-size: 11px;
  color: var(--c-accent);
  margin-top: 2px;
}

.meta-text {
  line-height: 1.6;
}

.footer-note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.38);
}

/* 页脚底线 */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--c-gold);
}

.copy-sep {
  color: rgba(255, 255, 255, 0.22);
}

.footer-icp {
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.04em;
}

.footer-trademark {
  padding: 14px 0 28px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- 15. 通用内容组件 ---------- */
.page-hero {
  padding: clamp(48px, 9vw, 120px) 0;
  background: var(--c-primary);
  color: var(--c-white);
  position: relative;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-accent);
}

.chapter-mark {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.85;
  color: rgba(255, 215, 0, 0.14);
  letter-spacing: 0.02em;
  user-select: none;
  pointer-events: none;
  margin-bottom: 10px;
}

.rule-accent {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
  border-radius: 2px;
  border: 0;
  display: block;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag-pill--gold {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.24);
  color: var(--c-gold);
}

.info-card {
  background: var(--c-white);
  border: 1px solid rgba(28, 43, 54, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s var(--ease-out);
}

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

.info-card--accent {
  border-top: 3px solid var(--c-accent);
}

.article-body {
  font-size: 16px;
  line-height: 2;
  color: var(--c-border);
}

.article-body p {
  margin-bottom: 1.2em;
}

.article-body h2,
.article-body h3 {
  color: var(--c-primary);
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4em; }

.text-link {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.text-link:hover { color: var(--c-gold); }

/* 图片容器 */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #0A1F44 0%, #16294F 60%, #1F3968 100%);
  border-radius: var(--radius);
  overflow: hidden;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 107, 53, 0.06) 0%, transparent 55%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 14px
    );
}

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

.img-hero {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  background: linear-gradient(115deg, #0A1F44 0%, #1B3058 70%, #263F6B 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.img-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 107, 53, 0.08) 0%, transparent 45%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 14px
    );
}

.img-hero img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 16. 显现动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1200px) {
  .nav-link {
    padding: 0 12px;
    font-size: 14px;
  }

  .header-search {
    min-width: 140px;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 44px;
    column-gap: 32px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .header-toolbar {
    gap: 12px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-copy {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .brand-text small {
    display: none;
  }

  .lang-switch {
    display: none;
  }
}

@media (max-width: 420px) {
  .back-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ---------- 18. 减少动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .nav-link::after {
    transition: none;
  }

  .back-top {
    transition: opacity 0.01ms, transform 0.01ms;
  }
}
