/**
 * =========================================================
 * 大华导航 Dahua Nav
 * 深色科技模板主样式：public/themes/dark/assets/css/style.css
 * =========================================================
 *
 * 设计语言：深色科技风 / 赛博霓虹 (Dark Tech / Cyberpunk Neon)
 * - 深邃暗色基底
 * - 霓虹光效边框与阴影
 * - 科技感网格 + 扫描线
 * - 灵动悬浮微交互
 * =========================================================
 */

/* ---------------------------------------------------------
   1. 设计令牌
--------------------------------------------------------- */

:root {
  /* 背景 */
  --bg-deep: #06060e;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-strong: rgba(255, 255, 255, 0.08);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-hover: rgba(255, 255, 255, 0.10);
  --bg-active: rgba(255, 255, 255, 0.14);

  /* 边框 */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* 霓虹色彩 */
  --neon-cyan: #00d4ff;
  --neon-blue: #3b82f6;
  --neon-purple: #a855f7;
  --neon-pink: #ff2d95;
  --neon-gradient: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  --neon-gradient-warm: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  --neon-gradient-cool: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));

  /* 文字 */
  --text-primary: #e2e8f0;
  --text-secondary: rgba(226, 232, 240, 0.70);
  --text-muted: rgba(226, 232, 240, 0.42);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  /* 阴影 */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  --neon-glow: 0 0 20px rgba(0, 212, 255, 0.12);
  --neon-glow-cyan: 0 0 24px rgba(0, 212, 255, 0.20);
  --neon-glow-purple: 0 0 24px rgba(168, 85, 247, 0.20);

  /* 安全区 */
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* 动画 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------------------------------------------------
   2. 基础重置
--------------------------------------------------------- */

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

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

body {
  min-height: 100vh;
  color: var(--text-primary);
  font-family:
    "SF Pro Display", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC",
    sans-serif;
  line-height: 1.6;
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

img {
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

[hidden] {
  display: none !important;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* ---------------------------------------------------------
   3. 背景层 — 深邃太空 + 霓虹光晕 + 网格 + 扫描线
--------------------------------------------------------- */

.dark-page {
  position: relative;
  background:
    radial-gradient(900px 550px at 20% 15%, rgba(0, 212, 255, 0.08), transparent 60%),
    radial-gradient(750px 450px at 80% 20%, rgba(168, 85, 247, 0.06), transparent 55%),
    radial-gradient(600px 400px at 50% 80%, rgba(59, 130, 246, 0.05), transparent 50%),
    linear-gradient(170deg, #06060e 0%, #0a0a18 40%, #060610 70%, #020208 100%);
  background-attachment: fixed;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -4;
  opacity: 0.50;
  will-change: transform;
}

.bg-orb-1 {
  width: 650px;
  height: 650px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%);
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.bg-orb-2 {
  width: 500px;
  height: 500px;
  bottom: -120px;
  right: -60px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14), transparent 70%);
  animation: orbFloat 24s ease-in-out infinite alternate-reverse;
}

.bg-orb-3 {
  width: 400px;
  height: 400px;
  top: 45%;
  left: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.10), transparent 70%);
  animation: orbFloat 28s ease-in-out infinite alternate;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(50px, -40px) scale(1.10); }
  66%  { transform: translate(-30px, 50px) scale(0.94); }
  100% { transform: translate(40px, -30px) scale(1.06); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.5) 1px, transparent 1px);
  background-size: 55px 55px;
}

/* 扫描线动画 */
.bg-scanline {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.08) 2px,
    rgba(0, 212, 255, 0.08) 4px
  );
}

/* ---------------------------------------------------------
   4. 加载状态
--------------------------------------------------------- */

.dark-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dark-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 40px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md), var(--neon-glow);
}

.loader-ring {
  width: 48px;
  height: 48px;
  position: relative;
}

.ring-segment {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--neon-cyan);
  border-right-color: var(--neon-purple);
  animation: ringSpin 0.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.4));
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.loader-text {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ---------------------------------------------------------
   5. 域名锁定
--------------------------------------------------------- */

.domain-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 6, 14, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lock-modal {
  max-width: 400px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.lock-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.lock-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.lock-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------------------------------------------------------
   6. 主容器
--------------------------------------------------------- */

.app-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  padding-bottom: calc(24px + var(--safe-bottom));
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------
   7. HEADER — 全宽深色栏 + 霓虹下划线
--------------------------------------------------------- */

.dk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -16px 14px;
  padding: 0 16px;
  background: rgba(6, 6, 14, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-default);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  max-width: 1180px;
  margin: 0 auto;
}

.dk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  font-size: 17px;
}

.dk-logo {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.25));
  border-radius: 8px;
}

.dk-brand-name {
  white-space: nowrap;
  letter-spacing: 0.5px;
  background: var(--neon-gradient-cool);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dk-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--neon-gradient);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
  transition:
    transform 0.28s var(--ease-spring),
    box-shadow 0.28s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.dk-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--neon-gradient-warm);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dk-cta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.40), 0 0 60px rgba(168, 85, 247, 0.15);
}

.dk-cta:hover::before {
  opacity: 1;
}

.dk-cta:active {
  transform: scale(0.97);
}

.cta-text,
.cta-arrow {
  position: relative;
  z-index: 1;
}

.cta-arrow {
  font-size: 16px;
  transition: transform 0.24s ease;
}

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

/* ---------------------------------------------------------
   8. 公告跑马灯
--------------------------------------------------------- */

.dk-marquee {
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.10);
}

.marquee-track {
  padding: 6px 16px;
  white-space: nowrap;
  overflow: hidden;
}

.marquee-content {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  animation: marqueeScroll 22s linear infinite;
  padding-left: 100%;
  will-change: transform;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ---------------------------------------------------------
   9. 轮播图 — 霓虹边框
--------------------------------------------------------- */

.dk-carousel {
  margin-bottom: 14px;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0, 212, 255, 0.05);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.carousel-track .car-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 2.8 / 1;
  min-height: 180px;
  max-height: 380px;
  overflow: hidden;
}

.carousel-track .car-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-track .car-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.carousel-track .car-slide:hover img {
  transform: scale(1.04);
}

.car-slide-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.car-slide-empty strong {
  font-size: 16px;
  color: var(--text-secondary);
}

/* 轮播箭头 */
.car-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.10);
  border: 1px solid rgba(0, 212, 255, 0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.28s var(--ease-out), background 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
}

.carousel-viewport:hover .car-arrow {
  opacity: 1;
}

.car-arrow-left {
  left: 12px;
}

.car-arrow-right {
  right: 12px;
}

.car-arrow:hover {
  background: rgba(0, 212, 255, 0.18);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.20);
  transform: translateY(-50%) scale(1.08);
}

.car-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* 轮播指示点 */
.car-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  padding: 0;
}

.car-dot.active {
  width: 26px;
  border-radius: 4px;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.50);
}

.car-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.car-dot.active:hover {
  background: var(--neon-cyan);
}

/* ---------------------------------------------------------
   10. 图标滚动条 — 方块霓虹图标
--------------------------------------------------------- */

.dk-icon-strip {
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 8px 0;
}

.icon-strip-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  will-change: transform;
}

.icon-strip-item {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-surface-strong);
  border: 1px solid var(--border-default);
  transition: transform 0.24s var(--ease-out), box-shadow 0.24s ease, border-color 0.24s ease;
  cursor: pointer;
}

.icon-strip-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--neon-glow);
  border-color: rgba(0, 212, 255, 0.25);
}

.icon-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 1px);
}

/* ---------------------------------------------------------
   11. 主体区域 — 分类标签
--------------------------------------------------------- */

.dk-main {
  margin-bottom: 30px;
}

.main-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.dk-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.dk-tabs::-webkit-scrollbar {
  display: none;
}

.dk-tab {
  flex: 0 0 auto;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.28s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.dk-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.dk-tab.active {
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.08);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.20);
}

.dk-tab.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  border-radius: 1px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.50);
}

/* ---------------------------------------------------------
   12. 卡片网格 — 霓虹边框 + 光效悬浮
--------------------------------------------------------- */

.dk-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 10px;
}

.dk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px 14px;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: cardFadeIn 0.5s var(--ease-out) forwards;
  animation-delay: var(--stagger, 0ms);
  overflow: hidden;
}

/* 卡片顶部霓虹光晕 */
.dk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dk-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  background: var(--neon-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(12px);
}

.dk-card:hover {
  background: var(--bg-hover);
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 24px rgba(0, 212, 255, 0.12);
}

.dk-card:hover::before {
  opacity: 1;
}

.dk-card:active {
  transform: translateY(-1px) scale(0.98);
  background: var(--bg-active);
}

@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 卡片角标 */
.dk-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  background: var(--neon-gradient-warm);
  box-shadow: 0 0 12px rgba(255, 45, 149, 0.30);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

/* 卡片图标 */
.dk-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.30);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.dk-card:hover .dk-card-icon {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* 卡片标题 */
.dk-card-title {
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* 卡片描述 */
.dk-card-desc {
  max-width: 100%;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ---------------------------------------------------------
   13. 空状态
--------------------------------------------------------- */

.dk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
}

.dk-empty .empty-symbol {
  font-size: 40px;
  opacity: 0.20;
  margin-bottom: 4px;
}

.dk-empty .empty-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-secondary);
}

.dk-empty .empty-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
   14. FOOTER
--------------------------------------------------------- */

.dk-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-default);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0 4px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-img {
  height: 22px;
  width: auto;
  opacity: 0.5;
  border-radius: 6px;
}

.footer-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ---------------------------------------------------------
   15. 无 JS 提示
--------------------------------------------------------- */

.nojs-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-strong);
  border: 1px solid rgba(255, 180, 60, 0.15);
  color: #ffb347;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

/* ---------------------------------------------------------
   16. 工具类
--------------------------------------------------------- */

.fade-in {
  animation: fadeIn 0.35s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dk-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .carousel-track {
    transition: none;
  }

  .marquee-content {
    animation: none;
  }
}
