/* 额外的样式增强 */

/* 导入Google字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 基础样式增强 */
body {
    font-family: 'Noto Sans SC', sans-serif;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
}

/* 导航栏增强 */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(78, 115, 223, 0.95) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 打印样式 */
@media print {
    .navbar, 
    #back-to-top, 
    footer, 
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        padding: 1rem 0 !important;
    }
    
    .section-title::after {
        display: none !important;
    }
}

/* 表格增强 */
.table th {
    background-color: rgba(78, 115, 223, 0.1);
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

/* 图标增强 */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 卡片组样式 */
.card-deck {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.card-deck .card {
    flex: 1 0 300px;
    margin-right: 15px;
    margin-left: 15px;
    margin-bottom: 30px;
}

/* 进度条样式 */
.progress {
    height: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.progress-bar {
    background-color: var(--primary-color);
}

/* 暗黑模式增强 */
body.dark-mode .progress {
    background-color: #2c3e50;
}

body.dark-mode .icon-circle {
    background-color: rgba(78, 115, 223, 0.2);
}

/* 辅助类 */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a5fc8;
}

body.dark-mode::-webkit-scrollbar-track {
    background: #16213e;
}

/* 加载动画 */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示增强 */
.tooltip {
    font-family: 'Noto Sans SC', sans-serif;
}

.tooltip-inner {
    max-width: 200px;
    padding: 8px 12px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.bs-tooltip-auto[x-placement^=top] .arrow::before, 
.bs-tooltip-top .arrow::before {
    border-top-color: var(--primary-color);
}

/* 按钮悬停效果 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #3a5fc8;
    border-color: #3a5fc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 图片效果 */
.img-hover-zoom {
    overflow: hidden;
    border-radius: var(--card-border-radius);
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* 页面过渡动画 */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
} 