/* 资讯文章模板 - 自定义样式 */
/* 基于Bootstrap 5优化 */

/* 全局样式优化 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 文章内容区域样式优化 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
}

.article-content * {
    font-size: inherit;
    color: inherit;
}

.article-content p,
.article-content div,
.article-content span,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.article-content li,
.article-content a {
    font-size: 16px !important;
    color: #333 !important;
    line-height: 1.8 !important;
}

.article-content h1 {
    font-size: 24px !important;
    font-weight: bold;
    margin: 20px 0 15px 0;
}

.article-content h2 {
    font-size: 22px !important;
    font-weight: bold;
    margin: 18px 0 12px 0;
}

.article-content h3 {
    font-size: 20px !important;
    font-weight: bold;
    margin: 16px 0 10px 0;
}

.article-content h4 {
    font-size: 18px !important;
    font-weight: bold;
    margin: 14px 0 8px 0;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.article-content ul,
.article-content ol {
    padding-left: 30px;
    margin-bottom: 15px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content a {
    color: #0d6efd;
    text-decoration: underline;
}

.article-content a:hover {
    color: #0a58ca;
}

.article-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 15px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 14px;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: left;
}

.article-content table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* 导航栏优化 */
.navbar-brand img {
    max-height: 40px;
    width: auto;
}

/* 卡片样式优化 */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 2px solid #dee2e6;
    border-radius: 8px 8px 0 0 !important;
}

/* 文章列表项样式 */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 20px;
    transition: background-color 0.3s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* 轮播图优化 */
.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
}

/* 分页样式优化 */
.pagination {
    margin-top: 30px;
}

.page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
}

.page-link:hover {
    background-color: #e9ecef;
    color: #0a58ca;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 标签云样式 */
.badge {
    padding: 6px 12px;
    font-weight: normal;
    font-size: 14px;
    transition: transform 0.2s;
}

.badge:hover {
    transform: scale(1.05);
}

/* 侧边栏样式 */
aside .card {
    margin-bottom: 25px;
}

aside .list-group-item {
    padding: 12px 15px;
}

aside .list-group-item:hover {
    background-color: #e9ecef;
}

/* 面包屑导航优化 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .article-content {
        font-size: 15px;
    }
    
    .carousel-item img {
        height: 250px;
    }
    
    .list-group-item {
        padding: 15px;
    }
    
    aside {
        margin-top: 30px;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .breadcrumb,
    aside,
    footer,
    .btn,
    .pagination {
        display: none;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}

/* 滚动条美化（Webkit浏览器） */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 文本选择颜色 */
::selection {
    background-color: #0d6efd;
    color: white;
}

::-moz-selection {
    background-color: #0d6efd;
    color: white;
}

/* 链接过渡效果 */
a {
    transition: color 0.3s ease;
}

/* 图片懒加载占位符 */
img[loading="lazy"] {
    background-color: #f8f9fa;
    min-height: 100px;
}

/* 代码高亮样式优化 */
.article-content pre {
    background-color: #282c34;
    color: #abb2bf;
}

.article-content pre code {
    color: #abb2bf;
}

/* 表格响应式 */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* 482731 */
