/* ================================================================
   pg问鼎苹果 · 全站共享样式
   文件：/assets/site.css
   设计体系：苹果红数据控制台
   ================================================================ */

/* ---------- 变量 ---------- */
:root {
  color-scheme: dark;
  --red: #E63946;
  --red-deep: #B01E2E;
  --bg: #1C1C1E;
  --bg-2: #2C2C2E;
  --text: #F5F5F7;
  --text-2: #A1A1A6;
  --gold: #D4AF37;
  --gold-light: #F0D98C;
  --yellow: #FFD60A;
  --link: #0A84FF;
  --glass-border: rgba(245, 245, 247, 0.1);
  --header-height: 68px;
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --font-head: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(55% 35% at 78% 0%, rgba(230, 57, 70, 0.05) 0%, rgba(230, 57, 70, 0) 60%);
  background-repeat: no-repeat;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

/* ---------- 排版 ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.0625rem;
}

p {
  margin-bottom: 1rem;
}

small,
.caption {
  font-size: 0.8125rem;
  color: var(--text-2);
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #3A3A3C;
  border-radius: 6px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

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

/* ---------- 工具类 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  word-wrap: normal;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

.page-wrap {
  min-height: 70vh;
  padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 8vw, 120px);
}

.gold-rule {
  display: block;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(212, 175, 55, 0.25) 60%, transparent 100%);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), background 250ms var(--ease), border-color 250ms var(--ease), color 250ms var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.45);
  color: #fff;
}

.btn-ghost {
  background: rgba(245, 245, 247, 0.02);
  border-color: rgba(245, 245, 247, 0.2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.06);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 0.875rem;
  color: var(--text-2);
}

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

.breadcrumb li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--red);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: none;
}

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 400;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
  transition: top 200ms var(--ease);
}

.skip-link:hover {
  text-decoration: none;
  color: #fff;
}

.skip-link:focus {
  top: 12px;
  outline: none;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 28, 30, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(245, 245, 247, 0.08);
  transition: box-shadow 300ms var(--ease), border-color 300ms var(--ease);
}

.site-header[data-scrolled] {
  border-bottom-color: rgba(212, 175, 55, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header {
    background: rgba(28, 28, 30, 0.97);
  }
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-height);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ---------- 顶部阅读进度线 ---------- */
.progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(44, 44, 46, 0.5);
  z-index: 10;
  pointer-events: none;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 70%, var(--gold-light) 100%);
  box-shadow: 0 1px 8px rgba(230, 57, 70, 0.5);
  transition: width 100ms linear;
}

/* ---------- 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(135deg, var(--red) 0%, #A51C29 100%);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

.brand-mark::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.55);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 导航 ---------- */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 250ms var(--ease), background 250ms var(--ease), box-shadow 250ms var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: rgba(230, 57, 70, 0.1);
  text-decoration: none;
}

.nav-link:active {
  transform: scale(0.97);
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(230, 57, 70, 0.12);
  box-shadow: inset 0 -2px 0 var(--red);
}

.nav-tip {
  display: none;
}

/* ---------- 右侧操作区 ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.header-search {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: color 250ms var(--ease), border-color 250ms var(--ease), background 250ms var(--ease);
}

.header-search::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 9px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.header-search::after {
  content: '';
  position: absolute;
  right: 9px;
  bottom: 10px;
  width: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}

.header-search:hover {
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
  text-decoration: none;
}

.header-search:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 50%;
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: rgba(245, 245, 247, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 250ms var(--ease), border-color 250ms var(--ease);
}

.nav-toggle:hover {
  background: rgba(245, 245, 247, 0.08);
  border-color: rgba(230, 57, 70, 0.4);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  pointer-events: none;
  transition: transform 300ms var(--ease), opacity 200ms var(--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;
}

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

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, #141416 100%);
  border-top: 1px solid rgba(245, 245, 247, 0.06);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(212, 175, 55, 0.55) 55%, transparent 100%);
  pointer-events: none;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

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

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

.footer-brand-col {
  max-width: 40ch;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text);
}

.footer-brand:hover {
  text-decoration: none;
  color: var(--text);
}

.footer-brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(135deg, var(--red) 0%, #A51C29 100%);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.25);
}

.footer-brand-mark::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.footer-brand-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-desc {
  max-width: 34ch;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-contact {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-heading::before {
  content: '';
  flex: none;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

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

.footer-links a {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 200ms var(--ease), padding-left 200ms var(--ease);
}

.footer-links a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 0;
  transition: width 200ms var(--ease), margin 200ms var(--ease);
}

.footer-links a:hover {
  color: var(--text);
  padding-left: 4px;
  text-decoration: none;
}

.footer-links a:hover::before {
  width: 14px;
  margin-right: 6px;
}

.footer-trust {
  margin-top: 20px;
  padding: 12px 14px;
  background: rgba(230, 57, 70, 0.08);
  border-left: 2px solid var(--red);
  border-radius: 0 12px 12px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.6;
}

.footer-address {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(245, 245, 247, 0.08);
  font-size: 0.8125rem;
  color: var(--text-2);
}

.footer-bottom p {
  margin-bottom: 0;
}

/* ---------- 通用组件：玻璃面板 ---------- */
.glass-panel {
  background: rgba(44, 44, 46, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(245, 245, 247, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass-panel {
    background: rgba(44, 44, 46, 0.92);
  }
}

/* ---------- 通用组件：研究板卡片 ---------- */
.board-card {
  position: relative;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid rgba(245, 245, 247, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.board-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--red) 0%, var(--gold) 100%);
}

.board-summary {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 16px;
}

.board-evidence {
  padding: 16px 18px;
  background: rgba(28, 28, 30, 0.6);
  border-radius: 12px;
  border-left: 2px solid var(--gold);
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 16px;
}

.board-term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  padding: 5px 14px;
}

.board-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.board-more::after {
  content: '→';
  display: inline-block;
  transition: transform 200ms var(--ease);
}

.board-more:hover {
  text-decoration: underline;
}

.board-more:hover::after {
  transform: translateX(4px);
}

/* ---------- 通用组件：标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.tag-red {
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: #FF6B76;
}

.tag-gold {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
}

.tag-yellow {
  background: rgba(255, 214, 10, 0.08);
  border: 1px solid rgba(255, 214, 10, 0.2);
  color: var(--yellow);
}

/* ---------- 通用组件：章节标签 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  flex: none;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

/* ---------- 通用组件：数据统计 ---------- */
.data-stat {
  display: inline-flex;
  flex-direction: column;
  padding: 18px 22px;
  background: var(--bg-2);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
}

.data-stat-value {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.data-stat-label {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-2);
}

/* ---------- 通用组件：媒体容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 90% at 20% 10%, #38383A 0%, #232325 55%, #1C1C1E 100%);
  border: 1px solid rgba(245, 245, 247, 0.08);
}

.media-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.18) 0%, transparent 45%),
              radial-gradient(60% 50% at 82% 82%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.media-frame-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(245, 245, 247, 0.85);
  background: rgba(28, 28, 30, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 245, 247, 0.1);
}

/* ---------- 通用组件：对角切片 ---------- */
.slice-zone {
  position: relative;
  overflow: hidden;
}

.slice-zone::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -12%;
  z-index: 1;
  width: 48%;
  height: 130%;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.22) 0%, rgba(230, 57, 70, 0) 55%);
  clip-path: polygon(28% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

/* ---------- 栅格 ---------- */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

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

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

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

/* ---------- 滚动观察 ---------- */
[data-observe] {
  scroll-margin-top: calc(var(--header-height) + 24px);
  transition: box-shadow 300ms var(--ease);
}

[data-observe][data-active] {
  box-shadow: inset 3px 0 0 var(--red);
}

[data-current-label] {
  font-weight: 700;
  color: var(--gold-light);
}

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

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

/* ---------- 窄屏适配 ---------- */
@media (min-width: 961px) and (max-width: 1200px) {
  .nav-link {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(86vw, 380px);
    height: calc(100vh - var(--header-height));
    padding: 36px 28px 28px;
    background: linear-gradient(180deg, #222224 0%, #1C1C1E 70%);
    border-left: 1px solid rgba(245, 245, 247, 0.1);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    transition: transform 350ms var(--ease);
    overflow-y: auto;
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    border-left: 3px solid transparent;
    color: var(--text-2);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(245, 245, 247, 0.05);
    color: var(--text);
  }

  .nav-link[aria-current="page"] {
    color: var(--text);
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.16), transparent);
    border-left-color: var(--red);
    box-shadow: none;
  }

  .nav-tip {
    display: block;
    margin-top: auto;
    padding: 24px 4px 0;
    border-top: 1px solid rgba(245, 245, 247, 0.08);
    font-size: 0.8125rem;
    color: var(--text-2);
    line-height: 1.6;
  }

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

  body[data-nav-open] {
    overflow: hidden;
  }

  body[data-nav-open]::after {
    content: '';
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 98;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: nav-fade-in 250ms var(--ease);
  }

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

  .grid-layout {
    gap: 16px;
  }

  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 12;
  }
}

@keyframes nav-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

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

  .brand-gap {
    gap: 10px;
  }

  .header-actions {
    gap: 6px;
    margin-left: 4px;
  }

  .header-search {
    width: 34px;
    height: 34px;
  }

  .header-search::before {
    top: 8px;
    left: 8px;
    width: 11px;
    height: 11px;
  }

  .header-search::after {
    right: 8px;
    bottom: 9px;
    width: 6px;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
    padding: 9px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

/* ---------- 减少动态偏好 ---------- */
@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;
  }

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

  .site-nav,
  .progress-bar {
    transition: none !important;
  }
}
