/* 优化的颜色方案 - 解决对比度问题 */

/* 主要颜色变量 */
:root {
    /* 高对比度白色文本 */
    --text-white: #ffffff;
    --text-white-90: #f0f0f0;
    --text-white-80: #e0e0e0;
    --text-white-70: #d0d0d0;
    
    /* 高对比度背景 */
    --bg-white-20: rgba(255, 255, 255, 0.2);
    --bg-white-15: rgba(255, 255, 255, 0.15);
    --bg-white-10: rgba(255, 255, 255, 0.1);
    
    /* 边框颜色 */
    --border-white-40: rgba(255, 255, 255, 0.4);
    --border-white-30: rgba(255, 255, 255, 0.3);
    --border-white-20: rgba(255, 255, 255, 0.2);
    
    /* 强调色 */
    --accent-blue: #4f46e5;
    --accent-blue-light: #6366f1;
    --accent-purple: #7c3aed;
    --accent-purple-light: #8b5cf6;
    
    /* 状态颜色 */
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --error-red: #ef4444;
    --info-blue: #3b82f6;
}

/* 高对比度文本样式 */
.text-high-contrast {
    color: var(--text-white) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-high-contrast-90 {
    color: var(--text-white-90) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.text-high-contrast-80 {
    color: var(--text-white-80) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 高对比度链接样式 */
.link-high-contrast {
    color: var(--text-white) !important;
    text-decoration: none;
    font-weight: 600;
    background: var(--bg-white-20);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-white-30);
    transition: all 0.3s ease;
}

.link-high-contrast:hover {
    background: var(--bg-white-15);
    border-color: var(--border-white-40);
    transform: translateY(-1px);
}

/* 高对比度标签样式 */
.label-high-contrast {
    color: var(--text-white) !important;
    background: var(--bg-white-20);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-white-30);
    font-weight: 500;
}

/* 高对比度按钮样式 */
.btn-high-contrast {
    color: var(--text-white) !important;
    background: var(--bg-white-20);
    border: 1px solid var(--border-white-30);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-high-contrast:hover {
    background: var(--bg-white-15);
    border-color: var(--border-white-40);
    transform: translateY(-1px);
}

/* 状态指示器高对比度 */
.status-high-contrast {
    color: var(--text-white) !important;
    background: var(--bg-white-20);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-white-30);
    font-weight: 600;
}

/* 输入框高对比度 */
.input-high-contrast {
    background: var(--bg-white-20) !important;
    border: 1px solid var(--border-white-30) !important;
    color: var(--text-white) !important;
}

.input-high-contrast:focus {
    border-color: var(--border-white-40) !important;
    box-shadow: 0 0 0 2px var(--bg-white-10) !important;
}

/* 卡片高对比度 */
.card-high-contrast {
    background: var(--bg-white-20) !important;
    border: 1px solid var(--border-white-30) !important;
}

/* 表格高对比度 */
.table-high-contrast th,
.table-high-contrast td {
    color: var(--text-white) !important;
    border-color: var(--border-white-20) !important;
}

.table-high-contrast th {
    background: var(--bg-white-20) !important;
    font-weight: 600;
}

/* 进度条高对比度 */
.progress-high-contrast {
    background: var(--bg-white-20) !important;
    border: 1px solid var(--border-white-30) !important;
}

.progress-fill-high-contrast {
    background: var(--accent-blue) !important;
    border: 1px solid var(--border-white-40) !important;
}

/* 警告和错误消息高对比度 */
.alert-high-contrast {
    color: var(--text-white) !important;
    background: var(--bg-white-20) !important;
    border: 1px solid var(--border-white-30) !important;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 8px 0;
}

.alert-success {
    border-left: 4px solid var(--success-green) !important;
}

.alert-warning {
    border-left: 4px solid var(--warning-orange) !important;
}

.alert-error {
    border-left: 4px solid var(--error-red) !important;
}

.alert-info {
    border-left: 4px solid var(--info-blue) !important;
}

/* 响应式高对比度 */
@media (max-width: 768px) {
    .link-high-contrast {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .label-high-contrast {
        padding: 3px 8px;
        font-size: 12px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-white: #ffffff;
        --text-white-90: #f5f5f5;
        --text-white-80: #e5e5e5;
        --text-white-70: #d5d5d5;
        
        --bg-white-20: rgba(255, 255, 255, 0.25);
        --bg-white-15: rgba(255, 255, 255, 0.2);
        --bg-white-10: rgba(255, 255, 255, 0.15);
        
        --border-white-40: rgba(255, 255, 255, 0.5);
        --border-white-30: rgba(255, 255, 255, 0.4);
        --border-white-20: rgba(255, 255, 255, 0.3);
    }
} 