/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link:hover {
    opacity: 0.8;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-title {
    color: #1a73e8;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: #0d62d0;
    border-color: #0d62d0;
}

/* 欢迎区域 */
.welcome-section {
    background-color: #e8f0fe;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.welcome-section h2 {
    color: #1a73e8;
    margin-bottom: 1rem;
}

/* 页脚样式 */
footer {
    margin-top: 3rem;
}

/* 表单样式 */
.form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

/* 数据分析图表容器 */
.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 表格样式 */
.table {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f1f3f4;
    border-bottom: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
    }
}

/* 深色模式样式 */
body.dark-theme {
    background-color: #1e1e1e;
    color: #e4e4e4;
}

body.dark-theme .card {
    background-color: #2d2d2d;
    border-color: #444;
}

body.dark-theme .card-header {
    background-color: #333;
    border-bottom-color: #444;
}

body.dark-theme .list-group-item {
    background-color: #2d2d2d;
    color: #e4e4e4;
    border-color: #444;
}

body.dark-theme .list-group-item.active {
    background-color: #1a73e8;
    color: white;
}

body.dark-theme .modal-content {
    background-color: #2d2d2d;
    color: #e4e4e4;
}

body.dark-theme .form-control,
body.dark-theme .form-select {
    background-color: #333;
    border-color: #444;
    color: #e4e4e4;
}

body.dark-theme .table {
    color: #e4e4e4;
}

body.dark-theme .table thead th {
    background-color: #333;
}

body.dark-theme .text-muted {
    color: #aaa !important;
}

/* 个人中心页面增强样式 */
.timeline-icon {
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
}

.tab-pane {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 数据卡片悬停效果 */
.bg-light .card-body {
    transition: all 0.3s ease;
}

.bg-light:hover .card-body {
    transform: translateY(-5px);
}

.bg-light:hover h3 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* 颜色选择器按钮样式 */
.btn.p-0 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.btn.p-0:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
    z-index: 1;
} 