/* 全局样式 */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h2 {
    color: #0056b3;
    padding-bottom: 0.5rem;
}

h3 {
    color: #007bff;
}

/* 卡片样式 */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: none;
}

.card-header {
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
}

/* 表格样式 */
.table {
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.03);
}

.table-primary {
    background-color: #e6f2ff;
}

/* 图片样式 */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.figure-caption {
    font-style: italic;
    color: #6c757d;
}

/* 列表样式 */
ul, ol {
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* 引用样式 */
blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin-left: 0;
    color: #6c757d;
}

/* 强调文本 */
strong {
    color: #0056b3;
}

/* 链接样式 */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: #343a40;
    color: #f8f9fa;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* 打印样式 */
@media print {
    .navbar, footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    .card {
        break-inside: avoid;
    }
}

/* 滚动到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 0.8;
}

.scroll-to-top:hover {
    opacity: 1;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* 高亮部分 */
.highlight {
    background-color: #fff3cd;
    padding: 0.25rem;
    border-radius: 4px;
}

/* 表格响应式 */
.table-responsive {
    margin-bottom: 1rem;
}

/* 手风琴样式 */
.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0056b3;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}
