/* ============================================
   安装APP · 极简入口 — 全站共享样式
   深空蓝赛事控制台 / 赛博朋克粗野主义
   ============================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --bg: #0A0E27;
  --bg-alt: #11182F;
  --surface: #161C33;
  --text: #F5F0E1;
  --text-dim: #A0A6B8;
  --accent: #FF6B00;
  --accent-soft: #FFB300;
  --cyan: #00D4FF;
  --border: #2A3148;
  --shadow: #000000;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --display-size: clamp(3.5rem, 10vw, 7rem);
  --heading-size: clamp(2rem, 5vw, 3.5rem);
  --body-size: 1rem;
  --caption-size: 0.875rem;

  --display-lh: 1.1;
  --heading-lh: 1.3;
  --body-lh: 1.7;

  --container-w: 1280px;
  --header-main-h: 76px;
  --radius: 0;
  --shadow-offset: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  scrollbar-color: var(--accent) var(--bg-alt);
}

body {
  font-family: var(--font);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul,
ol {
  padding-left: 1.5rem;
}

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

img,
video {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
}

a {
  color: var(--cyan);
  transition: color 0.25s var(--ease);
}

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

[hidden] {
  display: none !important;
}

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

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

/* ---------- 3. 基础排版 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--heading-size);
  line-height: var(--heading-lh);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  max-width: 60ch;
}

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

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

.text-cyan {
  color: var(--cyan);
}

.text-dim {
  color: var(--text-dim);
}

.text-center {
  text-align: center;
}

.container {
  width: min(100%, var(--container-w));
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section-tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.site-main {
  min-height: 60vh;
}

.site-main:focus {
  outline: none;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 18px rgba(255, 107, 0, 0.45);
}

.btn-outline {
  border-color: var(--cyan);
  color: var(--cyan);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

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

/* ---------- 6. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 2000;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 7. 头部框架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(10, 14, 39, 0.96);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--cyan));
  z-index: 6;
  pointer-events: none;
}

/* 顶部状态行 */
.header-frame {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.header-frame-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 30px;
  padding-block: 0.25rem;
}

.frame-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-dim);
}

.frame-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  font-style: normal;
  animation: frame-pulse 2.4s ease-in-out infinite;
}

@keyframes frame-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 6px var(--cyan);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 14px var(--cyan);
  }
}

.frame-spec {
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 主行 */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-main-h);
  position: relative;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  flex: none;
}

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

.brand-mark {
  position: relative;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--cyan);
  background: linear-gradient(to bottom, transparent 0 46%, var(--accent) 46% 54%, transparent 54%);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

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

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

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

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

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.55rem 0.7rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0, 212, 255, 0.04);
}

.nav-link:hover::before,
.nav-link[aria-current="page"]::before {
  height: 1.3em;
}

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

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

/* 头部右侧动作 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.header-cta .btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease);
}

.header-cta:hover .btn-arrow {
  transform: translateX(4px);
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) 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(-8px) rotate(-45deg);
}

/* 扫描光带 */
.scan-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent);
  background-size: 200% 100%;
  opacity: 0.4;
  pointer-events: none;
  animation: scan-drift 6s linear infinite;
}

@keyframes scan-drift {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ---------- 8. 移动端头部断点 ---------- */
@media (max-width: 960px) {
  .site-header .nav-toggle {
    display: flex;
  }

  .header-inner {
    min-height: 64px;
    gap: 1rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-cta {
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--bg-alt);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 24px 36px rgba(0, 0, 0, 0.45);
    transition: max-height 0.35s var(--ease), visibility 0s linear 0.35s;
  }

  .nav[data-open] {
    max-height: 480px;
    overflow-y: auto;
    visibility: visible;
    transition: max-height 0.35s var(--ease), visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
    padding: 0.75rem;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-left: 2px solid transparent;
  }

  .nav-link::before,
  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--accent);
    background: rgba(0, 212, 255, 0.06);
    color: var(--text);
  }

  .nav-link:hover {
    background: rgba(0, 212, 255, 0.08);
  }
}

@media (max-width: 720px) {
  .header-frame {
    display: none;
  }

  .header-inner {
    min-height: 60px;
  }

  .brand-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .brand-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 420px) {
  .header-cta .btn-arrow {
    display: none;
  }

  .header-cta {
    padding: 0.5rem 0.7rem;
    font-size: 0.8125rem;
  }
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--bg-alt);
  border-top: 2px solid var(--border);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 240px;
  height: 2px;
  background: var(--accent);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.brand-footer {
  margin-bottom: 0.25rem;
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer-trust::before {
  content: "●";
  font-size: 0.55rem;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}

.footer-desc {
  color: var(--text-dim);
  font-size: 0.875rem;
  max-width: 32ch;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-nav,
.footer-col-contact,
.footer-col-legal {
  justify-content: flex-start;
}

.footer-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  line-height: 1.6;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--border);
  padding-block: 1rem;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.footer-copy,
.footer-icp {
  letter-spacing: 0.03em;
}

@media (max-width: 980px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

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

.breadcrumb li + li::before {
  content: "›";
  color: var(--border);
  font-size: 1rem;
}

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

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

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

/* ---------- 11. 页面头 ---------- */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
  position: relative;
}

.page-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

.page-title {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.page-desc {
  color: var(--text-dim);
  font-size: 1.125rem;
  max-width: 46ch;
  margin-top: 1rem;
}

/* ---------- 12. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-7-5 {
  grid-template-columns: 7fr 5fr;
}

@media (max-width: 860px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-7-5 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 13. 卡片与面板 ---------- */
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.55);
}

.card-hover:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.55);
}

.panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.panel-accent {
  border-left: 4px solid var(--accent);
}

/* ---------- 14. 徽标、标签、分割线 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.3rem 0.6rem;
}

.badge-cyan {
  color: var(--cyan);
}

.badge-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  margin: 0 0.25rem 0.25rem 0;
  text-decoration: none;
  background: transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--border), transparent);
  margin: 2.5rem 0;
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

/* ---------- 15. 数据指标与仪表行 ---------- */
.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
}

.metric-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.metric-value em {
  color: var(--accent);
  font-style: normal;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.progress {
  margin: 0.75rem 0;
}

.progress-track {
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.progress-thumb {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  width: 50%;
  transition: width 0.4s var(--ease);
}

/* ---------- 16. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  background-color: var(--bg-alt);
  background-image: var(--media-bg, none);
  background-position: center;
  background-size: cover;
  min-height: 160px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

.media img,
.media video,
.media picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}

.media:hover img,
.media:hover video {
  transform: scale(1.03);
}

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

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

.media-ratio-1x1 {
  aspect-ratio: 1 / 1;
}

.media[data-caption]::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.media:hover[data-caption]::after {
  opacity: 1;
}

.media-vignette::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0) 40%, rgba(10, 14, 39, 0.65) 100%);
  pointer-events: none;
}

/* ---------- 17. 页面内筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.35);
}

/* ---------- 18. 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

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

/* ---------- 19. 减少动效 ---------- */
@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: 0s !important;
  }

  .scan-line {
    animation: none;
    opacity: 0.2;
  }

  .frame-dot {
    animation: none;
  }

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