/* 资讯博客模板 - aisc1 扁平化蓝色主题 */
/* 单栏居中布局，扁平化设计风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
    font-size: 16px;
}

.container, .header-container, .breadcrumb-container, .content-wrapper, .footer-container, .links-container, .page-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.site-header {
    background-color: #3498db;
    border-bottom: 3px solid #2980b9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
}

.logo-img {
    max-height: 45px;
    width: auto;
    margin-right: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 10px 16px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    width: 280px;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
}

.search-input:focus {
    border-color: #2980b9;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-btn {
    padding: 10px 24px;
    background-color: #2980b9;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #21618c;
}

/* 主导航 */
.main-nav {
    background-color: #2980b9;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.nav-item:last-child {
    border-right: none;
}

.nav-link {
    display: block;
    padding: 14px 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #21618c;
}

/* 面包屑导航 */
.breadcrumb-nav {
    background-color: #ecf0f1;
    padding: 12px 0;
    border-bottom: 1px solid #bdc3c7;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #95a5a6;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #7f8c8d;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* 焦点文章区域 */
.featured-section {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.featured-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #ecf0f1;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.featured-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-desc {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #95a5a6;
}

.meta-divider {
    color: #bdc3c7;
}

/* 文章列表 */
.articles-section {
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #ecf0f1;
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.article-thumb {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #ecf0f1;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #3498db;
}

.article-summary {
    color: #7f8c8d;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #95a5a6;
    flex-wrap: wrap;
}

.meta-time, .meta-hits {
    color: #95a5a6;
}

.meta-category {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-category:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 分页 */
.pagination-section {
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 18px;
    background-color: #ffffff;
    color: #3498db;
    text-decoration: none;
    border: 2px solid #3498db;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #3498db;
    color: #ffffff;
}

.page-link.active {
    background-color: #3498db;
    color: #ffffff;
    border-color: #3498db;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-box {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3498db;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.sidebar-list {
    list-style: none;
}

.sidebar-item {
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.sidebar-link:hover {
    color: #3498db;
}

.item-num {
    width: 28px;
    height: 28px;
    background-color: #3498db;
    color: #ffffff;
    text-align: center;
    line-height: 28px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.item-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-hits {
    color: #95a5a6;
    font-size: 12px;
    flex-shrink: 0;
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    padding: 6px 14px;
    background-color: #ecf0f1;
    color: #7f8c8d;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-link:hover {
    background-color: #3498db;
    color: #ffffff;
}

/* 列表页标题 */
.page-header-section {
    background-color: #3498db;
    color: #ffffff;
    padding: 35px 0;
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
}

.page-count {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* 内容页 */
.article-detail {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #ecf0f1;
}

.article-title-main {
    font-size: 36px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta-main {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #95a5a6;
    flex-wrap: wrap;
}

.article-featured-image {
    margin-top: 25px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ecf0f1;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #2c3e50;
    word-wrap: break-word;
}

.article-body * {
    font-size: inherit;
    color: inherit;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 6px;
}

.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 {
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.article-body h1 { font-size: 28px; }
.article-body h2 { font-size: 26px; }
.article-body h3 { font-size: 24px; }

.article-body ul, .article-body ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: #3498db;
    text-decoration: underline;
}

.article-body a:hover {
    color: #2980b9;
}

.article-body blockquote {
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 30px 0;
    background-color: #ecf0f1;
    border-radius: 4px;
    color: #7f8c8d;
    font-style: italic;
}

.article-body code {
    background-color: #ecf0f1;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 15px;
    color: #e74c3c;
}

.article-body pre {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.article-body table th, .article-body table td {
    border: 1px solid #ecf0f1;
    padding: 12px;
    text-align: left;
}

.article-body table th {
    background-color: #3498db;
    color: #ffffff;
    font-weight: 600;
}

.article-tags {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

/* 上下篇导航 */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-item {
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.nav-label {
    display: block;
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 8px;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    line-height: 1.5;
}

.nav-link:hover {
    color: #3498db;
}

.nav-next {
    text-align: right;
}

/* 相关文章 */
.related-section {
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.related-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: #ecf0f1;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 15px;
}

.related-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
}

.related-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.related-title a:hover {
    color: #3498db;
}

.related-meta {
    font-size: 12px;
    color: #95a5a6;
}

/* 文章信息 */
.info-list {
    list-style: none;
}

.info-item {
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: block;
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 8px;
}

.info-value {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.info-value.highlight {
    color: #3498db;
    font-size: 28px;
    font-weight: 600;
}

.info-value a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.info-value a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.tag-small {
    padding: 4px 10px;
    background-color: #ecf0f1;
    color: #7f8c8d;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.tag-small:hover {
    background-color: #3498db;
    color: #ffffff;
}

/* 友情链接区域 */
.links-section {
    background-color: #ffffff;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #ecf0f1;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.links-list {
    list-style: none;
}

.links-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ecf0f1;
}

.links-list li:last-child {
    border-bottom: none;
}

.links-list a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.links-list a:hover {
    color: #3498db;
}

/* 页脚 */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #ffffff;
}

.footer-desc {
    color: #bdc3c7;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-copy {
    color: #95a5a6;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #34495e;
}

.beian-text {
    margin-bottom: 10px;
}

.beian-text a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 13px;
}

.beian-text a:hover {
    color: #ecf0f1;
}

.copyright-text {
    color: #7f8c8d;
    font-size: 12px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
    z-index: 999;
    font-size: 20px;
    font-weight: bold;
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .search-input {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-thumb {
        width: 100%;
        height: 200px;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #ecf0f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* 284756 */

