/* 自定义覆盖样式 - H5页面 - 全新科技绿风格 */

/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(145deg, #0c1929 0%, #1a2a3a 30%, #0f1f2f 70%, #081520 100%);
  background-size: cover;
  background-attachment: fixed;
  color: #e2e8f0;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* 背景装饰元素 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* 主题颜色 - 科技绿系配色方案 */
:root {
  --primary-color: #0891b2;
  --secondary-color: #059669;
  --accent-color: #22d3ee;
  --success-color: #10b981;
  --warning-color: #fbbf24;
  --error-color: #ef4444;
  --text-color: #f1f5f9;
  --text-light: #94a3b8;
  --bg-color: rgba(30, 41, 59, 0.9);
  --card-bg: rgba(30, 41, 59, 0.95);
  --border-color: rgba(0, 212, 255, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* 布局容器 */
.container, .page, .content {
  background-color: transparent !important;
  padding: 15px !important;
}

/* 卡片样式 - 玻璃态效果 */
.card, .uni-card, .weui-cell {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98)) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(8, 145, 178, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  margin-bottom: 24px !important;
  padding: 24px !important;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

/* 卡片顶部渐变光效 */
.card::before, .uni-card::before, .weui-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
}

/* 卡片悬停效果 */
.card:hover, .uni-card:hover, .weui-cell:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(8, 145, 178, 0.15) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 标题样式 - 渐变文字效果 */
h1, h2, h3, h4, h5, h6, .title, .uni-title {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  text-shadow: none !important;
  position: relative;
  padding-bottom: 12px !important;
  font-size: 20px !important;
}

/* 标题装饰线 */
h1::after, h2::after, h3::after, .title::after, .uni-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(8, 145, 178, 0.5);
}

/* 文本样式 - 更清晰的层次感 */
p, .text, .uni-text {
  color: var(--text-light) !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  margin-bottom: 14px !important;
}

/* 按钮样式 - 科技绿渐变 */
button, .btn, .uni-btn, .weui-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 16px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 8px 24px rgba(8, 145, 178, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

button::before, .btn::before, .uni-btn::before, .weui-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s ease;
}

button:hover::before, .btn:hover::before, .uni-btn:hover::before, .weui-btn:hover::before {
  left: 100%;
}

button:hover, .btn:hover, .uni-btn:hover, .weui-btn:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 
    0 14px 32px rgba(8, 145, 178, 0.5),
    0 0 30px rgba(34, 211, 238, 0.3) !important;
}

button:active, .btn:active, .uni-btn:active, .weui-btn:active {
  transform: translateY(-2px) scale(0.98) !important;
  box-shadow: 0 6px 16px rgba(8, 145, 178, 0.3) !important;
}

/* 表单元素样式 - 深色主题 */
input, textarea, select, .input, .uni-input, .weui-input {
  border: 1px solid var(--border-color) !important;
  border-radius: 14px !important;
  padding: 16px 20px !important;
  font-size: 15px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  color: var(--text-color) !important;
  transition: all 0.3s ease !important;
  box-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

input:focus, textarea:focus, select:focus, .input:focus, .uni-input:focus, .weui-input:focus {
  outline: none !important;
  border-color: var(--primary-color) !important;
  box-shadow: 
    0 0 0 4px rgba(8, 145, 178, 0.2),
    0 4px 20px rgba(8, 145, 178, 0.15) !important;
  transform: translateY(-2px) !important;
}

/* 输入框 placeholder 样式 */
input::placeholder, textarea::placeholder, .input::placeholder, .uni-input::placeholder {
  color: rgba(148, 163, 184, 0.5) !important;
}

/* 标签样式 - 更突出 */
label, .label, .uni-label, .weui-label {
  color: var(--text-color) !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  display: block !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* 列表样式 */
ul, ol, .list, .uni-list, .weui-cells {
  background-color: transparent !important;
}

li, .list-item, .uni-list-item, .weui-cell {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95)) !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 20px !important;
  border-radius: 12px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  border-left: 4px solid var(--primary-color) !important;
  transition: all 0.3s ease !important;
}

li:hover, .list-item:hover, .uni-list-item:hover, .weui-cell:hover {
  transform: translateX(8px) !important;
  box-shadow: 0 6px 24px rgba(8, 145, 178, 0.15) !important;
}

/* 导航栏样式 - 深色渐变 */
.navbar, .uni-navbar, .weui-navbar {
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  color: white !important;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(8, 145, 178, 0.08) !important;
  height: 64px !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.navbar .title, .uni-navbar .uni-navbar__title, .weui-navbar__title {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700 !important;
  font-size: 20px !important;
}

/* 底部导航 - 深色设计 */
.tabbar, .uni-tabbar, .weui-tabbar {
  background: linear-gradient(145deg, #0f172a, #1e293b) !important;
  border-top: 1px solid var(--border-color) !important;
  box-shadow: 
    0 -8px 24px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(8, 145, 178, 0.05) !important;
  height: 72px !important;
  padding: 12px 0 !important;
}

.tabbar-item, .uni-tabbar__item, .weui-tabbar__item {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tabbar-item.active, .uni-tabbar__item.uni-tabbar__item--active, .weui-tabbar__item.weui-bar__item--on {
  color: var(--accent-color) !important;
  font-weight: 700 !important;
  transform: scale(1.05) !important;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(8, 145, 178, 0.5);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 应用动画 */
.fade-in, .card, .uni-card, .weui-cell {
  animation: fadeIn 0.6s ease-out forwards !important;
}

.navbar, .uni-navbar, .weui-navbar {
  animation: slideInLeft 0.5s ease-out forwards !important;
}

button, .btn, .uni-btn, .weui-btn {
  animation: pulseGlow 2s ease-in-out infinite !important;
}

/* 装饰元素 */
.card::after, .uni-card::after, .weui-cell::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.08;
  z-index: 0;
}

/* 图片样式增强 */
img {
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

img:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4) !important;
}

/* 分隔线样式 */
.divider, .uni-divider, .weui-cell__bd {
  background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent) !important;
  height: 2px !important;
  margin: 24px 0 !important;
  border-radius: 1px;
}

/* 徽章样式增强 */
.badge, .uni-badge, .weui-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
  border-radius: 16px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: 
    0 4px 12px rgba(8, 145, 178, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 开关样式增强 */
.switch, .uni-switch, .weui-switch {
  border-radius: 24px !important;
  width: 56px !important;
  height: 32px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid var(--border-color) !important;
}

.switch:checked, .uni-switch.uni-switch--checked, .weui-switch:checked {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  box-shadow: 0 0 20px rgba(8, 145, 178, 0.5);
}

/* 进度条样式增强 */
.progress, .uni-progress, .weui-progress {
  border-radius: 24px !important;
  height: 10px !important;
  background-color: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid var(--border-color) !important;
}

.progress-bar, .uni-progress-bar, .weui-progress__bar {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color)) !important;
  border-radius: 24px !important;
  height: 10px !important;
  box-shadow: 0 0 20px rgba(8, 145, 178, 0.4);
}

/* 验证码按钮样式 */
.codeyes, .codeyes[data-v-562930ae], .codeyes[data-v-59cf7cf8], .codeyes[data-v-14a57d4e] {
  background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  color: white !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  padding: 10px 20px !important;
  box-shadow: 
    0 6px 20px rgba(8, 145, 178, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.codeyes:hover, .codeyes[data-v-562930ae]:hover, .codeyes[data-v-59cf7cf8]:hover, .codeyes[data-v-14a57d4e]:hover {
  transform: scale(1.05) !important;
  box-shadow: 
    0 8px 24px rgba(8, 145, 178, 0.5),
    0 0 20px rgba(34, 211, 238, 0.3) !important;
}

/* 全局滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
}

/* 按钮组样式 */
.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-group .btn {
  flex: 1;
  max-width: 200px;
}

/* 悬浮按钮 */
.fab, .float-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  width: 56px;
  height: 56px;
  border-radius: 50% !important;
  box-shadow: 
    0 8px 24px rgba(8, 145, 178, 0.5),
    0 0 30px rgba(34, 211, 238, 0.3) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fab:hover, .float-btn:hover {
  transform: scale(1.15) rotate(90deg) !important;
}

/* 警告提示 */
.alert, .warning, .success, .error {
  border-radius: 12px !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
  border-left: 4px solid;
}

.alert.warning {
  background: rgba(251, 191, 36, 0.1) !important;
  border-color: var(--warning-color);
  color: #fbbf24;
}

.alert.success {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: var(--success-color);
  color: #10b981;
}

.alert.error {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: var(--error-color);
  color: #ef4444;
}
