/**
 * 易数 - 自定义CSS样式
 */

/* 全局样式覆盖 */
:root {
  --highlight-color: #00FFFF;
  --secondary-color: #FF00FF;
  --tertiary-color: #FFFF00;
  --background-color: #000000;
  --text-color: #FFFFFF;
  --gray-dark: #111111;
  --gray-medium: #333333;
  --gray-light: #666666;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 通用样式修复 */
.highlight-text {
  color: var(--highlight-color);
}

.secondary-text {
  color: var(--secondary-color);
}

/* 按钮样式增强 */
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.25);
}

button:active {
  transform: translateY(0);
}

/* 表单元素增强 */
input, select, textarea {
  transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--highlight-color) !important;
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2) !important;
  outline: none !important;
}

/* 卡片悬停效果 */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
  }
  
  h2 {
    font-size: 1.8rem !important;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

/* 辅助类 */
.text-glow {
  text-shadow: 0 0 10px var(--highlight-color);
}

.border-glow {
  box-shadow: 0 0 15px var(--highlight-color);
}

/* 修复特定布局问题 */
.compass-arrow {
  transform-origin: left center !important;
}

.history-item {
  transition: all 0.3s ease;
}

.history-item:hover {
  border-color: var(--highlight-color);
  transform: translateY(-2px);
}

/* 解决字体渲染问题 */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 解决图标间距问题 */
i.fas, i.far, i.fab {
  margin-right: 0.5rem;
}

/* 提高可访问性 */
*:focus-visible {
  outline: 2px solid var(--highlight-color) !important;
  outline-offset: 2px !important;
} 