/* =====================================================
   半岛官网 共享样式层
   文件：/assets/site.css
   ===================================================== */

/* ---------- Reset 与基础变量 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* 色彩体系 */
  --bd-primary: #0A1F44;
  --bd-primary-alt: #132E5C;
  --bd-accent: #FF6B35;
  --bd-accent-alt: #FF8C5A;
  --bd-light: #F5F7FA;
  --bd-dark: #1E293B;
  --bd-night: #0B1632;
  --bd-border: #334155;
  --bd-green: #10B981;
  --bd-amber: #F59E0B;

  /* 字体 */
  --bd-font-display: Impact, "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bd-font-body: Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --bd-font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  /* 字号 */
  --bd-size-hero: clamp(2.5rem, 6vw, 4.5rem);
  --bd-size-h1: clamp(2rem, 4vw, 3rem);
  --bd-size-h2: clamp(1.5rem, 3vw, 2.25rem);
  --bd-size-h3: 1.25rem;
  --bd-size-body: 1rem;
  --bd-size-caption: 0.875rem;

  /* 布局 */
  --bd-container-w: 1240px;
  --bd-gutter: 24px;
  --bd-gutter-mobile: 16px;
  --bd-radius: 6px;
  --bd-header-h: 72px;
  --bd-header-h-mobile: 60px;

  /* 阴影 */
  --bd-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --bd-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --bd-shadow-lg: 0 16px 40px rgba(4, 10, 30, 0.35);
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--bd-font-body);
  font-size: var(--bd-size-body);
  line-height: 1.7;
  color: var(--bd-dark);
  background: var(--bd-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--bd-font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--bd-primary);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--bd-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* ---------- 通用工具类 ---------- */
.bd-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;
}

.bd-title-skew {
  display: inline-block;
  transform: skew(-5deg);
}

.bd-text-accent {
  color: var(--bd-accent);
}

/* ---------- 布局容器与章节 ---------- */
.bd-container {
  width: 100%;
  max-width: var(--bd-container-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bd-gutter);
  padding-right: var(--bd-gutter);
}

.bd-section {
  padding: 72px 0;
}

.bd-section-dark {
  background: var(--bd-primary);
  color: rgba(255, 255, 255, 0.85);
}

.bd-section-light {
  background: var(--bd-light);
}

.bd-section-accent {
  background: linear-gradient(120deg, var(--bd-accent) 0%, var(--bd-accent-alt) 100%);
  color: var(--bd-primary);
}

.bd-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  margin-bottom: 36px;
}

.bd-section-index {
  font-family: var(--bd-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--bd-accent);
  border: 1.5px solid rgba(255, 107, 53, 0.6);
  border-radius: 4px;
  padding: 3px 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.bd-section-title {
  flex: 1 1 auto;
  min-width: 220px;
  font-size: var(--bd-size-h2);
  color: inherit;
}

.bd-section-desc {
  flex-basis: 100%;
  max-width: 640px;
  font-size: 15px;
  color: inherit;
  opacity: 0.7;
}

.bd-hero {
  position: relative;
  min-height: calc(100vh - var(--bd-header-h));
  min-height: calc(100dvh - var(--bd-header-h));
  display: flex;
  align-items: center;
  background: var(--bd-primary);
  color: #fff;
  overflow: hidden;
}

/* ---------- 网格 ---------- */
.bd-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- 按钮 ---------- */
.bd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.bd-btn:active {
  transform: scale(0.97);
}

.bd-btn-primary {
  background: var(--bd-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.bd-btn-primary:hover {
  background: var(--bd-accent-alt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.bd-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

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

.bd-btn-light {
  background: var(--bd-light);
  color: var(--bd-dark);
}

.bd-btn-light:hover {
  background: #fff;
  box-shadow: var(--bd-shadow-md);
  transform: translateY(-2px);
}

.bd-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--bd-accent);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.bd-link::after {
  content: "→";
  font-family: var(--bd-font-mono);
  font-size: 14px;
}

.bd-link:hover {
  gap: 10px;
  color: var(--bd-accent-alt);
}

/* ---------- 卡片 ---------- */
.bd-card {
  background: #fff;
  border: 1px solid rgba(30, 41, 59, 0.1);
  border-radius: var(--bd-radius);
  padding: 24px;
  box-shadow: var(--bd-shadow-sm);
}

.bd-card-dark {
  background: linear-gradient(160deg, var(--bd-primary-alt) 0%, var(--bd-night) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--bd-radius);
  padding: 24px;
  color: rgba(255, 255, 255, 0.85);
}

.bd-card-stats {
  position: relative;
  overflow: hidden;
}

.bd-card-stats::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, transparent 45%, rgba(255, 107, 53, 0.12) 45%, rgba(255, 107, 53, 0.12) 55%, transparent 55%);
  background-size: 16px 16px;
  transform: rotate(-12deg);
}

.bd-card-num {
  font-family: var(--bd-font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bd-primary);
}

.bd-card-dark .bd-card-num {
  color: var(--bd-accent);
}

.bd-card-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--bd-dark);
  opacity: 0.65;
  letter-spacing: 0.02em;
}

.bd-card-dark .bd-card-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 标签 ---------- */
.bd-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.bd-tag-live {
  background: rgba(16, 185, 129, 0.12);
  color: #057A52;
}

.bd-tag-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bd-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.bd-tag-hot {
  background: rgba(255, 107, 53, 0.12);
  color: #C2410C;
}

.bd-tag-new {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
}

/* ---------- 控制台与状态面板 ---------- */
.bd-console-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--bd-radius);
  padding: 8px 0;
}

.bd-console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.bd-console-row:last-child {
  border-bottom: 0;
}

.bd-console-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.bd-console-value {
  font-family: var(--bd-font-mono);
  font-weight: 700;
  color: var(--bd-accent);
}

.bd-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bd-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* ---------- 图片容器 ---------- */
.bd-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--bd-radius);
  background: linear-gradient(140deg, var(--bd-primary-alt), var(--bd-night));
  aspect-ratio: 16 / 9;
  min-height: 120px;
}

.bd-media-4x3 {
  aspect-ratio: 4 / 3;
}

.bd-media-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, transparent, rgba(10, 31, 68, 0.7));
}

/* ---------- 面包屑 ---------- */
.bd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-size: 14px;
  color: rgba(30, 41, 59, 0.6);
}

.bd-breadcrumb a {
  color: rgba(30, 41, 59, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.bd-breadcrumb-sep {
  font-family: var(--bd-font-mono);
  font-size: 13px;
  opacity: 0.45;
}

.bd-breadcrumb-current {
  color: var(--bd-accent);
  font-weight: 600;
}

.bd-breadcrumb-dark {
  color: rgba(255, 255, 255, 0.55);
}

.bd-breadcrumb-dark a {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- 装饰视觉 ---------- */
.bd-field-lines {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bd-diagonal-cut {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}

/* ---------- 跳转链接 ---------- */
.bd-skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 5000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bd-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 20px;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  box-shadow: var(--bd-shadow-lg);
  transition: top 0.2s ease;
}

.bd-skip-link:focus {
  top: 0;
}

/* ---------- 头部 ---------- */
.bd-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--bd-primary) 0%, var(--bd-primary-alt) 100%);
  box-shadow: var(--bd-shadow-lg);
}

.bd-header::after {
  content: "";
  display: block;
  width: 38%;
  height: 3px;
  background: linear-gradient(90deg, var(--bd-accent) 0%, var(--bd-accent-alt) 65%, transparent 100%);
}

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

/* 滚动进度线 */
.bd-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bd-accent), var(--bd-accent-alt));
  z-index: 4000;
  pointer-events: none;
  will-change: width;
}

/* 品牌 */
.bd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.bd-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--bd-accent) 0%, var(--bd-accent-alt) 100%);
  color: var(--bd-primary);
  font-family: var(--bd-font-display);
  font-size: 18px;
  font-weight: 900;
  border-radius: 4px;
  transform: skew(-7deg);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.45);
  flex-shrink: 0;
}

.bd-brand-name {
  font-family: var(--bd-font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

/* 导航 */
.bd-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bd-nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.bd-nav-link:hover {
  color: #fff;
}

.bd-nav-link[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--bd-accent);
}

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

.bd-nav-index {
  font-family: var(--bd-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 107, 53, 0.8);
  line-height: 1;
}

.bd-nav-label {
  display: inline-block;
  line-height: 1.4;
}

/* 头部右侧操作 */
.bd-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bd-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bd-header-btn:hover {
  background: var(--bd-accent);
  border-color: var(--bd-accent);
  color: #fff;
}

.bd-header-btn-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.bd-score-icon {
  display: inline-block;
  width: 15px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}

.bd-score-icon::before,
.bd-score-icon::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

.bd-score-icon::before {
  left: 2px;
  background: var(--bd-green);
}

.bd-score-icon::after {
  right: 2px;
  background: var(--bd-accent-alt);
}

.bd-member-icon {
  display: inline-block;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  position: relative;
  margin-top: 6px;
  flex-shrink: 0;
}

.bd-member-icon::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  margin-bottom: 1px;
}

/* 移动导航按钮 */
.bd-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

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

.bd-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.bd-nav-toggle[aria-expanded="true"] .bd-toggle-bar:nth-child(2) {
  opacity: 0;
}

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

/* ---------- 页脚 ---------- */
.bd-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bd-night) 0%, var(--bd-primary) 140%);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 64px;
}

.bd-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52%;
  height: 4px;
  background: linear-gradient(90deg, var(--bd-accent) 0%, var(--bd-accent-alt) 70%, transparent 100%);
  z-index: 1;
}

.bd-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.bd-footer-brand {
  padding-right: 20px;
}

.bd-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.bd-footer-logo .bd-brand-mark {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.bd-footer-logo-text {
  font-family: var(--bd-font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}

.bd-footer-desc {
  margin-top: 16px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.bd-footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

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

.bd-footer-title {
  position: relative;
  padding-left: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.bd-footer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: var(--bd-accent);
  transform: skewX(-15deg);
}

.bd-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bd-footer-links a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.bd-footer-links a:hover {
  color: var(--bd-accent);
  padding-left: 2px;
}

.bd-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.bd-footer-contact-label {
  display: inline-block;
  width: 30px;
  font-family: var(--bd-font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
}

.bd-footer-service {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 107, 53, 0.45);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

.bd-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

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

.bd-footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}

.bd-footer-icp {
  font-family: var(--bd-font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.48);
}

/* ---------- 滚动显现 ---------- */
.bd-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.bd-js [data-reveal][data-visible] {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.bd-js [data-reveal][data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

.bd-js [data-reveal][data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

.bd-js [data-reveal][data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .bd-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bd-header-inner {
    min-height: var(--bd-header-h-mobile);
    justify-content: flex-start;
    gap: 12px;
  }

  .bd-header-actions {
    margin-left: auto;
  }

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

  .bd-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    background: linear-gradient(180deg, var(--bd-primary) 0%, var(--bd-primary-alt) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--bd-shadow-lg);
  }

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

  .bd-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .bd-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    white-space: normal;
  }

  .bd-nav-link[aria-current="page"] {
    background: rgba(255, 107, 53, 0.12);
    border-bottom-color: transparent;
    border-left: 3px solid var(--bd-accent);
    color: #fff;
  }

  .bd-nav-index {
    font-size: 12px;
  }

  .bd-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .bd-footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .bd-container {
    padding-left: var(--bd-gutter-mobile);
    padding-right: var(--bd-gutter-mobile);
  }

  .bd-section {
    padding: 56px 0;
  }

  .bd-grid-2,
  .bd-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .bd-header-btn-label {
    display: none;
  }

  .bd-header-btn {
    padding: 7px;
  }

  .bd-brand-mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .bd-brand-name {
    font-size: 16px;
  }

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

  .bd-footer-bottom-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

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

  .bd-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .bd-scroll-progress {
    display: none;
  }
}
