:root {
  --brand-deep: #0A2E5C;
  --brand-royal: #1A4B7C;
  --brand-glow: #3B7BBF;
  --accent: #FF6B35;
  --accent-gold: #F5B942;
  --ink: #111111;
  --ink-soft: #2A2A2A;
  --bg-mist: #F2F2F2;
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.6);
  --info-blue: #D6E4F0;
  --grid: 12;
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --font-title: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'PingFang SC', 'Arial', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 12px 40px rgba(10, 46, 92, 0.12);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg-mist);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-deep);
  text-decoration-skip-ink: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* 内容限宽容器 */
.site-header__inner,
.site-footer__inner,
.site-crumbs,
.page-container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 跳过链接 */
.data-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 20px;
  background: var(--brand-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transform: translateY(-180px);
  transition: transform 0.25s var(--ease);
}

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

/* 头部 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 0 rgba(10, 46, 92, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  position: relative;
}

/* 品牌 */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brand-deep);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
  flex-shrink: 0;
}

.site-brand--light {
  color: var(--white);
}

.site-brand__mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-block;
  flex-shrink: 0;
}

.site-brand__mark-core {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--brand-deep);
}

.site-brand--light .site-brand__mark-core {
  box-shadow: 0 0 0 3px var(--white);
  border-color: var(--brand-deep);
}

.site-brand__mark-orbit {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  transform: rotate(18deg);
  transition: transform 0.5s var(--ease);
}

.site-brand:hover .site-brand__mark-orbit {
  transform: rotate(45deg);
}

.site-brand--light {
  color: var(--white);
}

/* 导航容器 */
.site-nav__wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav__link {
  display: inline-block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav__link:hover {
  background: var(--white);
  border-color: rgba(10, 46, 92, 0.12);
}

.site-nav__link[aria-current="page"] {
  background: var(--brand-deep);
  color: var(--white);
  border-color: var(--brand-deep);
}

/* CTA 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.btn--primary:hover {
  background: #e85a28;
  border-color: #e85a28;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.34);
}

.head-cta {
  margin-left: 8px;
  padding: 11px 20px;
  font-size: 13px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.nav-toggle__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-deep);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.1em;
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}

.scroll-progress::after {
  content: '';
  display: block;
  width: var(--sp, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
  border-radius: 0 3px 3px 0;
  transition: width 0.1s linear;
}

/* 移动端断点 */
@media (max-width: 960px) {
  .site-nav__wrap {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: var(--gutter);
    left: var(--gutter);
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 999;
  }

  .site-nav__wrap[data-open],
  .site-nav__wrap.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

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

  .site-nav__link {
    display: block;
    padding: 14px 12px;
    font-size: 16px;
  }

  .head-cta {
    margin: 8px 0 0 0;
    justify-content: center;
    width: 100%;
  }

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

  .site-nav__wrap[data-open] .nav-toggle__line:nth-child(1),
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-nav__wrap[data-open] .nav-toggle__line:nth-child(2),
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .site-nav__wrap[data-open] .nav-toggle__line:nth-child(3),
  .nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* 页脚 */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

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

.site-footer::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), transparent 70%);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand {
  max-width: 340px;
}

.footer__tagline {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-gold);
}

.footer__trust {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 18px;
  font-family: var(--font-title);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a,
.footer__contact a,
.footer__legal a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s var(--ease);
}

.footer__links a:hover,
.footer__contact a:hover,
.footer__legal a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer__contact-list {
  list-style: none;
}

.footer__contact-list li {
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.footer__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  border-left: 2px solid var(--accent-gold);
  padding-left: 12px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__legal span {
  opacity: 0.4;
}

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer__legal {
    justify-content: center;
  }
}

/* 通用容器 */
.page-container {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 48px;
}

/* 面包屑 */
.site-crumbs {
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 13px;
}

.site-crumbs a {
  color: var(--brand-royal);
  text-decoration: none;
}

.site-crumbs a:hover {
  color: var(--accent);
}

.site-crumbs [aria-current] {
  color: var(--ink-soft);
  font-weight: 600;
}

/* 章节标签 */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
}

/* 正文容器 */
.prose {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

.prose p {
  margin-bottom: 1em;
}

/* 标题目 */
.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink);
}

/* 玻璃卡片 */
.glass-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid), 1fr);
  gap: 20px;
}

/* 图像占位容器 */
.img-block {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(145deg, var(--brand-royal), var(--brand-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  min-height: 120px;
}

.img-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.08) 40%, transparent 60%),
    radial-gradient(circle at 70% 20%, rgba(255, 107, 53, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(245, 185, 66, 0.15) 0%, transparent 40%);
}

.img-block::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

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

.img-block--ratio-1x1 {
  aspect-ratio: 1 / 1;
}

/* 筛选按钮协议 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--brand-royal);
  background: transparent;
  color: var(--brand-deep);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.is-active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--white);
}

[data-filter-target] .filter-item {
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

[data-filter-target] .filter-item.is-hidden {
  display: none;
}

/* 显现动画 */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* 焦点可访问性 */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .site-brand__mark-orbit,
  .btn,
  [data-reveal] {
    transition: none;
  }

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