/**
 * =========================================================
 * 大华导航 Dahua Nav
 * Cyber 科技风模板样式：public/themes/cyber/assets/css/style.css
 * =========================================================
 */

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

:root {
  /* 基础色调 */
  --cy-bg: #080c14;
  --cy-bg-alt: #0d1220;
  --cy-surface: rgba(14, 20, 38, 0.72);
  --cy-surface-alt: rgba(20, 28, 50, 0.65);

  /* 霓虹色彩 */
  --cy-cyan: #00e5ff;
  --cy-cyan-dim: rgba(0, 229, 255, 0.18);
  --cy-magenta: #ff006e;
  --cy-magenta-dim: rgba(255, 0, 110, 0.18);
  --cy-purple: #7c3aed;
  --cy-purple-dim: rgba(124, 58, 237, 0.2);
  --cy-green: #39ff14;
  --cy-green-dim: rgba(57, 255, 20, 0.15);
  --cy-amber: #ffb800;

  /* 渐变 */
  --cy-gradient-cyan: linear-gradient(135deg, #00e5ff, #0098ff);
  --cy-gradient-magenta: linear-gradient(135deg, #ff006e, #ff5e00);
  --cy-gradient-purple: linear-gradient(135deg, #7c3aed, #a855f7);
  --cy-gradient-mixed: linear-gradient(135deg, #00e5ff 0%, #7c3aed 50%, #ff006e 100%);
  --cy-gradient-card: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, rgba(124,58,237,0.06) 50%, rgba(255,0,110,0.04) 100%);

  /* 发光 */
  --cy-glow-cyan: 0 0 12px rgba(0, 229, 255, 0.35), 0 0 40px rgba(0, 229, 255, 0.1);
  --cy-glow-magenta: 0 0 12px rgba(255, 0, 110, 0.35), 0 0 40px rgba(255, 0, 110, 0.1);
  --cy-glow-purple: 0 0 14px rgba(124, 58, 237, 0.4), 0 0 40px rgba(124, 58, 237, 0.12);
  --cy-glow-card: 0 0 20px rgba(0, 229, 255, 0.08), 0 0 50px rgba(124, 58, 237, 0.06);

  /* 文字 */
  --cy-text: #e0e6f0;
  --cy-text-dim: #8892a8;
  --cy-text-bright: #f0f4ff;

  /* 边框 */
  --cy-border: rgba(0, 229, 255, 0.12);
  --cy-border-active: rgba(0, 229, 255, 0.35);
  --cy-border-glow: rgba(0, 229, 255, 0.2);

  /* 圆角 */
  --cy-radius-sm: 8px;
  --cy-radius: 12px;
  --cy-radius-lg: 16px;
  --cy-radius-xl: 20px;

  /* 阴影 */
  --cy-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --cy-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  --cy-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);

  /* 过渡 */
  --cy-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --cy-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --cy-ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);

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

/* ---------------------------------------------------------
   2. 全局重置
--------------------------------------------------------- */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--cy-bg);
  color: var(--cy-text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.cyber-locked {
  overflow: hidden;
}

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

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

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

input {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---------------------------------------------------------
   3. 背景层
--------------------------------------------------------- */

#bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cy-bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}

.cy-bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
}

.cy-glow-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.28) 0%, transparent 70%);
  top: -250px;
  left: -150px;
  animation: cyGlowFloat1 18s ease-in-out infinite;
}

.cy-glow-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, transparent 70%);
  bottom: -200px;
  right: -120px;
  animation: cyGlowFloat2 22s ease-in-out infinite;
}

.cy-glow-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 0, 110, 0.2) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: cyGlowFloat3 20s ease-in-out infinite;
}

@keyframes cyGlowFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.08); }
  66% { transform: translate(-30px, -20px) scale(0.94); }
}

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

@keyframes cyGlowFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.25); }
}

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

.cy-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--cy-bg);
  transition: opacity 0.35s var(--cy-ease), visibility 0.35s var(--cy-ease);
}

.cy-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cy-loader-ring {
  width: 56px;
  height: 56px;
}

.cy-loader-svg {
  width: 100%;
  height: 100%;
  animation: cyLoaderRotate 1.4s linear infinite;
}

.cy-loader-track {
  stroke: rgba(0, 229, 255, 0.1);
}

.cy-loader-spin {
  stroke: var(--cy-cyan);
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  animation: cyLoaderDash 1.4s var(--cy-ease) infinite;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}

@keyframes cyLoaderRotate {
  100% { transform: rotate(360deg); }
}

@keyframes cyLoaderDash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.cy-loader-text {
  font-size: 14px;
  color: var(--cy-text-dim);
  letter-spacing: 0.5px;
}

/* ---------------------------------------------------------
   5. 主容器
--------------------------------------------------------- */

.cy-app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-bottom: calc(40px + var(--safe-bottom));
}

/* ---------------------------------------------------------
   6. 顶部导航栏
--------------------------------------------------------- */

.cy-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0 -20px;
  padding: 0 20px;
  background: rgba(8, 12, 20, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--cy-border);
}

.cy-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.cy-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cy-logo {
  height: 30px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 4px 10px rgba(0, 229, 255, 0.2));
}

.cy-brand-name {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--cy-gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 搜索框 */
.cy-search {
  flex: 1;
  max-width: 380px;
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.cy-search-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--cy-text-dim);
  pointer-events: none;
  transition: color 0.2s var(--cy-ease);
}

.cy-search-input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 38px;
  font-size: 13px;
  color: var(--cy-text);
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--cy-border);
  border-radius: 20px;
  transition: all 0.25s var(--cy-ease);
}

.cy-search-input::placeholder {
  color: var(--cy-text-dim);
}

.cy-search-input:focus {
  border-color: var(--cy-border-active);
  background: rgba(0, 229, 255, 0.07);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.08), 0 0 0 3px rgba(0, 229, 255, 0.04);
}

.cy-search-input:focus ~ .cy-search-icon {
  color: var(--cy-cyan);
}

.cy-search-clear {
  position: absolute;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--cy-text-dim);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s var(--cy-ease);
}

.cy-search-clear.visible {
  opacity: 1;
  visibility: visible;
}

.cy-search-clear:hover {
  color: var(--cy-text);
  background: rgba(255, 255, 255, 0.08);
}

/* CTA 按钮 */
.cy-header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cy-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cy-bg);
  background: var(--cy-gradient-cyan);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s var(--cy-ease), box-shadow 0.2s var(--cy-ease);
  box-shadow: var(--cy-glow-cyan);
}

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

.cy-cta-glow {
  position: absolute;
  inset: 0;
  background: var(--cy-gradient-mixed);
  opacity: 0;
  transition: opacity 0.3s var(--cy-ease);
}

.cy-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.45), 0 0 50px rgba(0, 229, 255, 0.15);
}

.cy-cta:hover .cy-cta-glow {
  opacity: 1;
}

.cy-cta:active {
  transform: scale(0.96);
}

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

.cy-marquee {
  margin-top: 10px;
  margin-bottom: 4px;
  overflow: hidden;
  border-radius: var(--cy-radius-sm);
  background: linear-gradient(90deg, rgba(0,229,255,0.06), rgba(124,58,237,0.06), rgba(255,0,110,0.04));
  border: 1px solid var(--cy-border);
  padding: 7px 0;
}

.cy-marquee-track {
  display: flex;
  animation: cyMarquee 22s linear infinite;
}

.cy-marquee-text {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 13px;
  color: var(--cy-text-dim);
  white-space: nowrap;
}

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

/* ---------------------------------------------------------
   8. 3D 轮播
--------------------------------------------------------- */

.cy-carousel {
  position: relative;
  margin-bottom: 6px;
  border-radius: var(--cy-radius-lg);
  overflow: hidden;
  background: var(--cy-surface);
  border: 1px solid var(--cy-border);
}

.cy-carousel-stage {
  perspective: 1200px;
  width: 100%;
  aspect-ratio: 2.6 / 1;
  min-height: 200px;
  max-height: 440px;
}

.cy-carousel-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s var(--cy-ease-spring);
}

.cy-car-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
}

.cy-car-face a {
  display: block;
  width: 100%;
  height: 100%;
}

.cy-car-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cy-car-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(124,58,237,0.06));
  gap: 12px;
}

.cy-car-placeholder-icon {
  font-size: 40px;
  opacity: 0.5;
}

.cy-car-placeholder-text {
  font-size: 14px;
  color: var(--cy-text-dim);
}

/* 前后按钮 */
.cy-car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 12, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--cy-border);
  color: var(--cy-text);
  opacity: 0;
  transition: opacity 0.3s var(--cy-ease), transform 0.2s var(--cy-ease), box-shadow 0.2s var(--cy-ease);
}

.cy-carousel:hover .cy-car-btn {
  opacity: 1;
}

.cy-car-btn:hover {
  border-color: var(--cy-border-active);
  box-shadow: var(--cy-glow-cyan);
  color: var(--cy-cyan);
  transform: translateY(-50%) scale(1.08);
}

.cy-car-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.cy-car-prev { left: 14px; }
.cy-car-next { right: 14px; }

/* 圆点指示器 */
.cy-car-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.cy-car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s var(--cy-ease);
}

.cy-car-dot.active {
  width: 26px;
  border-radius: 10px;
  background: var(--cy-cyan);
  border-color: var(--cy-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* ---------------------------------------------------------
   9. 图标滚动条
--------------------------------------------------------- */

.cy-icon-strip {
  margin-bottom: 8px;
  padding: 8px 0;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
  border-radius: var(--cy-radius-sm);
  background: rgba(0, 229, 255, 0.02);
  border: 1px solid var(--cy-border);
}

.cy-icon-strip:active {
  cursor: grabbing;
}

.cy-icon-track {
  display: flex;
  gap: 10px;
  will-change: transform;
}

.cy-icon-item {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cy-surface);
  border: 1px solid var(--cy-border);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s var(--cy-ease), box-shadow 0.25s var(--cy-ease), transform 0.2s var(--cy-ease);
}

.cy-icon-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cy-icon-item:hover {
  border-color: var(--cy-border-active);
  box-shadow: var(--cy-glow-cyan);
  transform: translateY(-2px);
}

.cy-icon-item:active {
  transform: scale(0.92);
}

/* ---------------------------------------------------------
   10. 分类标签页
--------------------------------------------------------- */

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

.cy-main-header {
  margin-bottom: 14px;
}

.cy-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cy-tab {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cy-text-dim);
  background: var(--cy-surface);
  border: 1px solid var(--cy-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s var(--cy-ease);
  white-space: nowrap;
}

.cy-tab:hover {
  color: var(--cy-text);
  border-color: rgba(0, 229, 255, 0.25);
}

.cy-tab.active {
  color: var(--cy-bg);
  background: var(--cy-gradient-cyan);
  border-color: transparent;
  box-shadow: var(--cy-glow-cyan);
}

/* ---------------------------------------------------------
   11. 卡片网格
--------------------------------------------------------- */

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

/* 卡片 */
.cy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px 14px;
  background: var(--cy-surface);
  border: 1px solid var(--cy-border);
  border-radius: var(--cy-radius);
  cursor: pointer;
  transition: transform 0.3s var(--cy-ease-bounce), border-color 0.3s var(--cy-ease), box-shadow 0.3s var(--cy-ease), background 0.3s var(--cy-ease);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* 霓虹顶部发光线 */
.cy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--cy-gradient-cyan);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.3s var(--cy-ease), transform 0.35s var(--cy-ease);
}

.cy-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cy-gradient-card);
  opacity: 0;
  transition: opacity 0.35s var(--cy-ease);
  pointer-events: none;
}

.cy-card:hover {
  transform: translateY(-4px);
  border-color: var(--cy-border-active);
  box-shadow: var(--cy-glow-card), var(--cy-shadow);
}

.cy-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.cy-card:hover::after {
  opacity: 1;
}

.cy-card:active {
  transform: scale(0.95);
  transition: transform 0.12s var(--cy-ease);
}

/* 弹跳动画 */
.cy-card.bounce {
  animation: cyCardBounce 0.45s var(--cy-ease-bounce);
}

@keyframes cyCardBounce {
  0% { transform: scale(1); }
  30% { transform: scale(0.88); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* 卡片图标 */
.cy-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 229, 255, 0.04);
  border: 2px solid rgba(0, 229, 255, 0.12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--cy-ease), border-color 0.3s var(--cy-ease), box-shadow 0.3s var(--cy-ease);
}

.cy-card:hover .cy-card-icon {
  transform: scale(1.1);
  border-color: var(--cy-border-active);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 卡片标题 */
.cy-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--cy-text);
  text-align: center;
  line-height: 1.3;
}

/* 卡片描述 */
.cy-card-desc {
  font-size: 11px;
  color: var(--cy-text-dim);
  text-align: center;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 角标 */
.cy-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--cy-gradient-magenta);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(255, 0, 110, 0.3);
  z-index: 2;
  pointer-events: none;
}

/* 卡片入场动画 */
.cy-card.enter {
  animation: cyCardEnter 0.45s var(--cy-ease) both;
}

@keyframes cyCardEnter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------------------------------------------------------
   12. 空状态
--------------------------------------------------------- */

.cy-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.cy-empty[hidden] {
  display: none;
}

.cy-empty-symbol {
  font-size: 42px;
  color: var(--cy-text-dim);
  margin-bottom: 14px;
  opacity: 0.5;
}

.cy-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--cy-text-dim);
  margin-bottom: 6px;
}

.cy-empty-desc {
  font-size: 13px;
  color: var(--cy-text-dim);
  opacity: 0.7;
}

/* ---------------------------------------------------------
   13. 底部
--------------------------------------------------------- */

.cy-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--cy-border);
}

.cy-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.cy-footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cy-footer-logo {
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--cy-border);
  background: var(--cy-surface);
}

.cy-footer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--cy-text-dim);
}

.cy-footer-desc {
  font-size: 11px;
  color: var(--cy-text-dim);
  opacity: 0.6;
}

.cy-footer-copy {
  font-size: 11px;
  color: var(--cy-text-dim);
  opacity: 0.5;
}

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

.cy-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 20, 0.96);
}

.cy-lock-overlay[hidden] {
  display: none;
}

.cy-lock-modal {
  text-align: center;
  padding: 40px 30px;
  border: 1px solid var(--cy-border);
  border-radius: var(--cy-radius-lg);
  background: var(--cy-surface);
  box-shadow: var(--cy-shadow-lg);
  max-width: 380px;
}

.cy-lock-icon {
  font-size: 48px;
  color: var(--cy-magenta);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.5));
}

.cy-lock-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cy-text);
  margin-bottom: 8px;
}

.cy-lock-desc {
  font-size: 13px;
  color: var(--cy-text-dim);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   15. NoScript
--------------------------------------------------------- */

.cy-nojs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 10px 16px;
  font-size: 13px;
  text-align: center;
  background: rgba(255, 0, 110, 0.9);
  color: #fff;
}

/* ---------------------------------------------------------
   16. 自定义滚动条
--------------------------------------------------------- */

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.35);
}

/* ---------------------------------------------------------
   17. 水印
--------------------------------------------------------- */

.wm {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 80px,
    rgba(0, 229, 255, 0.015) 80px,
    rgba(0, 229, 255, 0.015) 81px
  );
}

body.watermark-on .wm {
  display: block;
}

/* ---------------------------------------------------------
   18. 图标条暂停状态
--------------------------------------------------------- */

.cy-icon-strip.paused .cy-icon-track {
  animation-play-state: paused;
}

/* ---------------------------------------------------------
   19. 减少动画偏好
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cy-bg-glow { animation: none !important; }
  .cy-marquee-track { animation: none !important; }
}
