/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* 卡片 */
.card {
    border-radius: 10px;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background-color: #fff !important;
}

/* 按钮 */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

/* 表格 */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    border-top: none;
}

/* 徽章 */
.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
}

/* 表单 */
.form-control, .form-select {
    border-radius: 6px;
}

.form-control:focus, .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

/* 进度条 */
.progress {
    border-radius: 10px;
}

.progress-bar {
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 20px;
}

/* 页脚 */
.footer {
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

/* 模态框 */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
}

/* 统计卡片图标 */
.card i.bi {
    opacity: 0.8;
}

/* 题目内容 */
.question-content {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #4f46e5;
}

/* 选项 */
.form-check-label {
    cursor: pointer;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .display-1 {
        font-size: 4rem;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 统计卡片悬停效果 */
.hover-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
