/**
 * 黑客主题样式 - 多站合一音乐搜索
 */

/* 全局样式重置和基础设置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: #000;
  color: #00ff00;
  overflow-x: hidden;
}

body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  background-color: #000;
  color: #00ff00;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 1. 矩阵风格背景 - 代码雨动画 */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
}

/* 2. 扫描线效果 */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    transparent,
    transparent 2px,
    rgba(0, 255, 0, 0.05) 2px,
    rgba(0, 255, 0, 0.05) 4px
  );
  pointer-events: none;
  z-index: 1000;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px);
  }
}

/* 3. 数字故障艺术(Glitch)效果 */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #ff00ff;
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #00ffff;
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(79px, 9999px, 69px, 0);
  }
  20% {
    clip: rect(14px, 9999px, 38px, 0);
  }
  40% {
    clip: rect(64px, 9999px, 72px, 0);
  }
  60% {
    clip: rect(84px, 9999px, 16px, 0);
  }
  80% {
    clip: rect(23px, 9999px, 11px, 0);
  }
  100% {
    clip: rect(34px, 9999px, 84px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(36px, 9999px, 84px, 0);
  }
  20% {
    clip: rect(16px, 9999px, 26px, 0);
  }
  40% {
    clip: rect(76px, 9999px, 64px, 0);
  }
  60% {
    clip: rect(14px, 9999px, 34px, 0);
  }
  80% {
    clip: rect(64px, 9999px, 46px, 0);
  }
  100% {
    clip: rect(24px, 9999px, 74px, 0);
  }
}

@keyframes tab-pulse {
  0% {
    box-shadow: 0 0 5px #00ff00;
  }
  50% {
    box-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00;
  }
  100% {
    box-shadow: 0 0 5px #00ff00;
  }
}

/* 4. 二进制数字流动画 */
.binary-flow {
  position: fixed;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  line-height: 10px;
  color: rgba(0, 255, 0, 0.3);
  z-index: -1;
  overflow: hidden;
}

/* 5. 网络节点连接动画 */
.network-nodes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* 6. 黑客风格按钮 */
.btn-hacker {
  background-color: #000;
  color: #00ff00;
  border: 1px solid #00ff00;
  padding: 10px 20px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-hacker:hover {
  background-color: #00ff00;
  color: #000;
  box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

.btn-hacker::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
  transition: all 0.5s;
}

.btn-hacker:hover::before {
  left: 100%;
}

/* 7. 黑客风格输入框 */
.input-hacker {
  background-color: #000;
  color: #00ff00;
  border: 1px solid #00ff00;
  padding: 10px;
  font-family: 'Courier New', monospace;
  position: relative;
  transition: all 0.3s;
}

.input-hacker:focus {
  outline: none;
  box-shadow: 0 0 10px #00ff00;
  border-color: #00ff00;
  background-color: rgba(0, 255, 0, 0.05);
}

/* 8. 命令行打字效果 */
.typewriter {
  overflow: hidden;
  border-right: 0.15em solid #00ff00;
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: #00ff00;
  }
}

/* 9. 系统日志滚动效果 */
.log-scroll {
  font-family: 'Courier New', monospace;
  color: #00ff00;
  background-color: #000;
  border: 1px solid #00ff00;
  padding: 10px;
  height: 200px;
  overflow-y: auto;
  position: relative;
}

.log-scroll::-webkit-scrollbar {
  width: 8px;
}

.log-scroll::-webkit-scrollbar-track {
  background: #000;
}

.log-scroll::-webkit-scrollbar-thumb {
  background: #00ff00;
}

/* 10. 黑客风格弹窗 */
.modal-hacker {
  background-color: rgba(0, 0, 0, 0.9);
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

/* 11. 代码高亮与动态显示 */
.code-highlight {
  font-family: 'Courier New', monospace;
  background-color: #000;
  color: #00ff00;
  padding: 10px;
  border: 1px solid #00ff00;
  white-space: pre-wrap;
  position: relative;
}

.code-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 0%, rgba(0, 255, 0, 0.1) 50%, transparent 100%);
  animation: code-glow 2s infinite;
  pointer-events: none;
}

@keyframes code-glow {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* 12. 黑客风格加载指示器 */
.loader-hacker {
  border: 2px solid #000;
  border-top: 2px solid #00ff00;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 13. 终端错误提示效果 */
.error-terminal {
  color: #ff0000;
  font-family: 'Courier New', monospace;
  animation: error-blink 1s infinite;
}

@keyframes error-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.5;
  }
}

/* 14. 十六进制颜色代码动态变化 */
.hex-color {
  font-family: 'Courier New', monospace;
  animation: hex-change 3s infinite;
}

@keyframes hex-change {
  0% {
    color: #00ff00;
  }
  25% {
    color: #00ffff;
  }
  50% {
    color: #ff00ff;
  }
  75% {
    color: #ffff00;
  }
  100% {
    color: #00ff00;
  }
}

/* 15. 黑客命令执行反馈动画 */
.command-feedback {
  font-family: 'Courier New', monospace;
  color: #00ff00;
  position: relative;
}

.command-feedback::before {
  content: '$ ';
  color: #ff00ff;
}

.command-feedback.success::after {
  content: ' [SUCCESS]';
  color: #00ff00;
}

.command-feedback.error::after {
  content: ' [ERROR]';
  color: #ff0000;
}

/* 16. 数字雨文字特效 */
.digital-rain {
  font-family: 'Courier New', monospace;
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
  animation: digital-rain-fall 2s infinite linear;
}

@keyframes digital-rain-fall {
  0% {
    opacity: 1;
    transform: translateY(-20px);
  }
  100% {
    opacity: 0;
    transform: translateY(100px);
  }
}

/* 17. 黑客入侵界面元素 */
.invasion-screen {
  background-color: #000;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.invasion-screen.active {
  opacity: 1;
  pointer-events: all;
}

/* 18. 数据流动画 */
.data-flow {
  position: relative;
  overflow: hidden;
}

.data-flow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.3), transparent);
  animation: data-flow-animation 2s infinite;
}

@keyframes data-flow-animation {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 19. ASCII字符动画 */
.ascii-animation {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  line-height: 10px;
  color: #00ff00;
  white-space: pre;
  animation: ascii-anim 3s infinite;
}

@keyframes ascii-anim {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* 20. 终端命令行模拟效果 */
.terminal {
  background-color: #000;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  padding: 10px;
  border: 1px solid #00ff00;
  position: relative;
}

.terminal-header {
  background-color: #222;
  padding: 5px 10px;
  border-bottom: 1px solid #00ff00;
  display: flex;
  align-items: center;
  gap: 5px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.close {
  background-color: #ff0000;
}

.terminal-button.minimize {
  background-color: #ffff00;
}

.terminal-button.maximize {
  background-color: #00ff00;
}

.terminal-content {
  padding: 10px;
  min-height: 200px;
}

.terminal-line {
  margin-bottom: 5px;
  position: relative;
}

.terminal-line::before {
  content: '$ ';
  color: #ff00ff;
}

/* 音乐搜索器特定样式覆盖 */
.about {
  background: transparent !important;
  color: #00ff00 !important;
  position: relative;
  z-index: 1;
}

.about-color {
  color: #00ff00 !important;
}

.about-title {
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px #00ff00;
}

.music-tabs > li > a {
  color: #00ff00 !important;
  background-color: transparent !important;
  border: 1px solid #00ff00 !important;
  margin: 0 5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.music-tabs > li > a:hover {
  background-color: rgba(0, 255, 0, 0.1) !important;
  text-shadow: 0 0 10px #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  transform: translateY(-2px);
}

.music-tabs > li > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
  transition: all 0.5s ease;
}

.music-tabs > li > a:hover::before {
  left: 100%;
}

.music-tabs > li.am-active > a {
  background-color: rgba(0, 255, 0, 0.1) !important;
  color: #00ff00 !important;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
  border-color: #00ff00 !important;
}

.music-tabs > li.am-active > a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00ff00;
  box-shadow: 0 0 10px #00ff00;
  animation: tab-pulse 2s infinite;
}

.music-type .am-radio-inline,
.music-type label {
  color: #00ff00 !important;
  font-family: 'Courier New', monospace;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  margin: 5px;
}

.music-type label:hover {
  background-color: rgba(0, 255, 0, 0.1) !important;
  border-color: #00ff00 !important;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  transform: translateY(-2px);
}

.music-type label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
  transition: all 0.5s ease;
}

.music-type label:hover::before {
  left: 100%;
}

.platform-selected {
  animation: platform-pulse 0.5s ease-in-out;
}

@keyframes platform-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    transform: scale(1);
  }
}

.music-type .am-icon-unchecked,
.music-type .am-icon-checked {
  color: #00ff00 !important;
  transition: all 0.3s ease;
}

.music-type input[type="radio"]:checked + .am-icon-checked {
  text-shadow: 0 0 10px #00ff00;
  transform: scale(1.2);
}

.music-type input[type="radio"] {
  position: relative;
  z-index: 2;
}

.music-main input {
  background-color: #000 !important;
  color: #00ff00 !important;
  border: 1px solid #00ff00 !important;
  font-family: 'Courier New', monospace;
}

.music-main input:focus,
.music-main input:hover {
  background-color: rgba(0, 255, 0, 0.05) !important;
  border-color: #00ff00 !important;
  color: #00ff00 !important;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.music-tips {
  color: #00ff00 !important;
  font-family: 'Courier New', monospace;
}

.music-tips blockquote {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border-left: 3px solid #00ff00 !important;
  color: #00ff00 !important;
}

.music-tips p b {
  color: #ff0000 !important;
}

.music-tips p u {
  color: #00ffff !important;
  text-decoration: underline !important;
}

.footer {
  background-color: #000 !important;
  border-top: 1px solid #00ff00 !important;
}

.footer p {
  color: #00ff00 !important;
}

.footer p a {
  color: #00ff00 !important;
  text-decoration: underline !important;
  transition: all 0.3s;
}

.footer p a:hover {
  color: #00ffff !important;
  text-shadow: 0 0 5px #00ffff;
}

.am-alert {
  background-color: rgba(255, 0, 0, 0.1) !important;
  color: #ff0000 !important;
  border: 1px solid #ff0000 !important;
}

/* APlayer 样式覆盖 */
.aplayer {
  background-color: #000 !important;
  border: 1px solid #00ff00 !important;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important;
}

.aplayer .aplayer-info .aplayer-music .aplayer-title,
.aplayer .aplayer-info .aplayer-music .aplayer-author {
  color: #00ff00 !important;
  font-family: 'Courier New', monospace !important;
}

.aplayer .aplayer-list ol li {
  color: #00ff00 !important;
  background-color: transparent !important;
  border-top: 1px solid rgba(0, 255, 0, 0.2) !important;
}

.aplayer .aplayer-list ol li:hover {
  background-color: rgba(0, 255, 0, 0.1) !important;
}

.aplayer .aplayer-list ol li.aplayer-list-light {
  background-color: rgba(0, 255, 0, 0.2) !important;
}

.aplayer .aplayer-lrc p {
  color: #00ff00 !important;
  font-family: 'Courier New', monospace !important;
}

.aplayer .aplayer-bar-wrap .aplayer-bar {
  background: rgba(0, 255, 0, 0.2) !important;
}

.aplayer .aplayer-bar-wrap .aplayer-bar .aplayer-loaded {
  background: rgba(0, 255, 0, 0.4) !important;
}

.aplayer .aplayer-bar-wrap .aplayer-bar .aplayer-played {
  background: #00ff00 !important;
  box-shadow: 0 0 5px #00ff00 !important;
}

.aplayer .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb {
  background: #00ff00 !important;
  box-shadow: 0 0 5px #00ff00 !important;
}

.aplayer .aplayer-pic {
  border: 1px solid #00ff00 !important;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important;
}

/* 按钮样式覆盖 */
.am-btn {
  background-color: #000 !important;
  color: #00ff00 !important;
  border: 1px solid #00ff00 !important;
  font-family: 'Courier New', monospace !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.am-btn:hover {
  background-color: rgba(0, 255, 0, 0.1) !important;
  color: #00ff00 !important;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5) !important;
  transform: translateY(-2px);
}

.am-btn:active {
  transform: translateY(0);
}

.am-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.3), transparent);
  transition: all 0.6s ease;
}

.am-btn:hover::before {
  left: 100%;
}

.am-btn-primary {
  background-color: rgba(0, 255, 0, 0.1) !important;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important;
}

.am-btn-primary:hover {
  background-color: rgba(0, 255, 0, 0.2) !important;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6) !important;
}

.btn-pressed {
  transform: scale(0.95) !important;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.8) !important;
}

.am-btn-success {
  background-color: rgba(0, 255, 0, 0.1) !important;
}

.am-btn-success:hover {
  background-color: rgba(0, 255, 0, 0.2) !important;
}

/* 表单元素样式覆盖 */
.am-form-field {
  background-color: #000 !important;
  color: #00ff00 !important;
  border: 1px solid #00ff00 !important;
  font-family: 'Courier New', monospace !important;
}

.am-form-field:focus {
  border-color: #00ff00 !important;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00cc00;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .about-title {
    font-size: 1.5rem !important;
  }
  
  .music-tabs > li > a {
    padding: 0.3em 0.8em !important;
    font-size: 0.9rem !important;
  }
  
  .music-type .am-radio-inline {
    display: inline-block !important;
    margin-bottom: 10px !important;
    margin-right: 5px !important;
  }
  
  .music-type label {
    padding: 6px 8px !important;
    margin: 3px !important;
    font-size: 0.85rem !important;
  }
}

/* 打印样式 */
@media print {
  body {
    background-color: white !important;
    color: black !important;
  }
  
  .matrix-bg,
  body::after {
    display: none !important;
  }
}