/* 基础通用样式 - 不包含特定主题色 */

/* CSS变量定义 - 中性色彩 */
:root {
    --text-dark: #2d3748;
    --text-muted: #718096;
    --border-radius: 15px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --transition-base: all 0.3s ease;
}

/* 全局字体和基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 通用卡片样式 */
.modern-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 通用按钮样式 */
.btn-modern {
    border-radius: 50px;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: var(--transition-base);
}

/* 边框渐变效果 */
.border-gradient {
    border: 2px solid transparent;
    border-radius: var(--border-radius);
}

/* 现代化输入框样式 */
.modern-input {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: var(--transition-base);
    font-weight: 500;
}

.modern-input:focus {
    border-color: #5B9BD5;
    box-shadow: 0 0 0 0.2rem rgba(91, 155, 213, 0.15);
    transform: translateY(-1px);
}

/* 消息提示样式 */
.alert-modern {
    color: white;
    border: none;
    border-radius: var(--border-radius);
}

.alert-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.alert-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.alert-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.alert-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

/* 加载动画 */
.spinner-border {
    border-width: 3px;
    width: 2.5rem;
    height: 2.5rem;
}

/* 悬停效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover) !important;
}

/* 特色图标样式 */
.feature-icon {
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.feature-icon:hover::before {
    width: 100px;
    height: 100px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5B9BD5 0%, #4A90C2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4A90C2 0%, #5B9BD5 100%);
}

/* 十字格线背景效果 */
.grid-background {
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    z-index: 1;
}

.grid-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    z-index: -1;
}

/* Bootstrap颜色类重定义 */
.text-primary {
    color: #5B9BD5 !important;
}

.bg-primary {
    background-color: #5B9BD5 !important;
}

.btn-primary {
    background-color: #5B9BD5;
    border-color: #5B9BD5;
}

.btn-primary:hover {
    background-color: #4A90C2;
    border-color: #4A90C2;
}

.btn-outline-primary {
    color: #5B9BD5;
    border-color: #5B9BD5;
}

.btn-outline-primary:hover {
    background-color: #5B9BD5;
    border-color: #5B9BD5;
}

.border-primary {
    border-color: #5B9BD5 !important;
}

.text-info {
    color: #5B9BD5 !important;
}

.bg-info {
    background-color: #5B9BD5 !important;
}

.btn-info {
    background-color: #5B9BD5;
    border-color: #5B9BD5;
}

.btn-info:hover {
    background-color: #4A90C2;
    border-color: #4A90C2;
}

.btn-outline-info {
    color: #5B9BD5;
    border-color: #5B9BD5;
}

.btn-outline-info:hover {
    background-color: #5B9BD5;
    border-color: #5B9BD5;
}

/* 导航栏样式增强 */
.navbar {
    z-index: 1030 !important;
}

.navbar-dark .nav-link {
    color: white !important;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 下拉菜单修复 */
.dropdown-menu {
    z-index: 1055 !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-radius: 15px !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .modern-card {
        border-radius: 10px !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .btn-modern {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .btn-modern {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
} 