/* 资讯博客模板 - aisc5 扁平化红色主题 */
/* 杂志式布局，扁平化设计风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", "Microsoft YaHei", sans-serif;
    background-color: #fff5f5;
    color: #3d1f1f;
    line-height: 1.6;
    font-size: 16px;
}

.header-area, .breadcrumb-content, .main-area, .main-layout, .footer-area, .links-content, .page-title-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background-color: #e53935;
    border-bottom: 2px solid #c62828;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
}

.logo-pic {
    max-height: 36px;
    width: auto;
    margin-right: 10px;
}

.logo-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-input {
    padding: 7px 12px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    width: 200px;
    font-size: 13px;
    outline: none;
    background-color: #ffffff;
}

.search-input:focus {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.2);
}

.search-button {
    padding: 7px 18px;
    background-color: #c62828;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #b71c1c;
}

.nav-area {
    background-color: #c62828;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-li {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.nav-li:last-child {
    border-right: none;
}

.nav-link {
    display: block;
    padding: 11px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #b71c1c;
}

.breadcrumb-area {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #ffcdd2;
}

.breadcrumb-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.breadcrumb-li {
    display: flex;
    align-items: center;
}

.breadcrumb-sep {
    margin: 0 7px;
    color: #ef9a9a;
}

.breadcrumb-li a {
    color: #e53935;
    text-decoration: none;
}

.breadcrumb-li a:hover {
    color: #c62828;
    text-decoration: underline;
}

.breadcrumb-li.active {
    color: #c62828;
}

.main-area {
    padding: 28px 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 22px;
}

.featured-area {
    margin-bottom: 28px;
}

.featured-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.featured-post {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.featured-large {
    grid-row: 1 / 3;
}

.post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-image {
    width: 100%;
    flex: 1;
    overflow: hidden;
    background-color: #fff5f5;
}

.featured-large .post-image {
    height: 400px;
}

.featured-post:not(.featured-large) .post-image {
    height: 150px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 14px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #3d1f1f;
    margin-bottom: 9px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-large .post-title {
    font-size: 22px;
    -webkit-line-clamp: 3;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #c62828;
}

.articles-area {
    margin-bottom: 28px;
}

.section-header {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e53935;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #3d1f1f;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.article-post {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.post-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: #fff5f5;
}

.post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    padding: 16px;
}

.post-heading {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 9px;
}

.post-heading a {
    color: #3d1f1f;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.post-heading a:hover {
    color: #e53935;
}

.post-desc {
    color: #8e5a5a;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #c62828;
    flex-wrap: wrap;
}

.meta-views {
    color: #c62828;
}

.meta-type {
    color: #e53935;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-type:hover {
    color: #c62828;
    text-decoration: underline;
}

.pagination-area {
    margin-bottom: 28px;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.page-item {
    padding: 8px 15px;
    background-color: #ffffff;
    color: #e53935;
    text-decoration: none;
    border: 2px solid #e53935;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.page-item:hover {
    background-color: #e53935;
    color: #ffffff;
}

.page-item.active {
    background-color: #e53935;
    color: #ffffff;
    border-color: #e53935;
}

.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget-box {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15);
}

.widget-header {
    margin-bottom: 13px;
    padding-bottom: 9px;
    border-bottom: 3px solid #e53935;
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #3d1f1f;
}

.widget-list {
    list-style: none;
}

.widget-item {
    padding: 10px 0;
    border-bottom: 1px solid #fff5f5;
}

.widget-item:last-child {
    border-bottom: none;
}

.widget-item.active .widget-link {
    color: #e53935;
    font-weight: 600;
}

.widget-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8e5a5a;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.widget-link:hover {
    color: #e53935;
}

.item-number {
    width: 22px;
    height: 22px;
    background-color: #e53935;
    color: #ffffff;
    text-align: center;
    line-height: 22px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

.item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-views {
    color: #ef9a9a;
    font-size: 11px;
    flex-shrink: 0;
}

.tags-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    padding: 5px 11px;
    background-color: #fff5f5;
    color: #c62828;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.tag-link:hover {
    background-color: #e53935;
    color: #ffffff;
}

.page-title-area {
    background-color: #e53935;
    color: #ffffff;
    padding: 26px 0;
    margin-bottom: 24px;
}

.page-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 7px;
}

.page-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 7px;
}

.page-count {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
}

.article-main {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15);
}

.article-header {
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 2px solid #fff5f5;
}

.article-heading {
    font-size: 30px;
    font-weight: 600;
    color: #3d1f1f;
    margin-bottom: 14px;
    line-height: 1.3;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #c62828;
    flex-wrap: wrap;
}

.meta-date, .meta-views {
    color: #c62828;
}

.meta-category {
    color: #e53935;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-category:hover {
    color: #c62828;
    text-decoration: underline;
}

.article-featured {
    margin-top: 18px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff5f5;
}

.article-featured img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #3d1f1f;
    word-wrap: break-word;
}

.article-body * {
    font-size: inherit;
    color: inherit;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
    border-radius: 8px;
}

.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 {
    margin-top: 28px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #3d1f1f;
    line-height: 1.4;
}

.article-body h1 { font-size: 26px; }
.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 22px; }

.article-body ul, .article-body ol {
    padding-left: 28px;
    margin-bottom: 18px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: #e53935;
    text-decoration: underline;
}

.article-body a:hover {
    color: #c62828;
}

.article-body blockquote {
    border-left: 4px solid #e53935;
    padding: 14px 18px;
    margin: 24px 0;
    background-color: #fff5f5;
    border-radius: 4px;
    color: #8e5a5a;
    font-style: italic;
}

.article-body code {
    background-color: #fff5f5;
    padding: 3px 7px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #d32f2f;
}

.article-body pre {
    background-color: #3d1f1f;
    color: #fff5f5;
    padding: 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.article-body table th, .article-body table td {
    border: 1px solid #ffcdd2;
    padding: 11px;
    text-align: left;
}

.article-body table th {
    background-color: #e53935;
    color: #ffffff;
    font-weight: 600;
}

.article-tags {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 2px solid #fff5f5;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tags-label {
    color: #8e5a5a;
    font-size: 13px;
    font-weight: 500;
}

.tag-badge {
    padding: 5px 11px;
    background-color: #fff5f5;
    color: #c62828;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.tag-badge:hover {
    background-color: #e53935;
    color: #ffffff;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.nav-item {
    padding: 16px;
    background-color: #ffffff;
    border: 2px solid #fff5f5;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-item:hover {
    border-color: #e53935;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15);
}

.nav-label {
    display: block;
    font-size: 11px;
    color: #c62828;
    margin-bottom: 6px;
}

.nav-link {
    color: #3d1f1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    line-height: 1.5;
}

.nav-link:hover {
    color: #e53935;
}

.nav-next {
    text-align: right;
}

.related-area {
    margin-bottom: 28px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-post {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.related-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background-color: #fff5f5;
}

.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-body {
    padding: 14px;
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.related-title a {
    color: #3d1f1f;
    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: #e53935;
}

.related-meta {
    font-size: 11px;
    color: #c62828;
}

.info-list {
    list-style: none;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid #fff5f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: block;
    font-size: 11px;
    color: #c62828;
    margin-bottom: 6px;
}

.info-value {
    font-size: 14px;
    color: #3d1f1f;
    font-weight: 500;
}

.info-value.highlight {
    color: #e53935;
    font-size: 24px;
    font-weight: 600;
}

.info-value a {
    color: #e53935;
    text-decoration: none;
    transition: color 0.3s;
}

.info-value a:hover {
    color: #c62828;
    text-decoration: underline;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.tag-mini {
    padding: 3px 9px;
    background-color: #fff5f5;
    color: #c62828;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
    transition: all 0.3s;
}

.tag-mini:hover {
    background-color: #e53935;
    color: #ffffff;
}

.links-area {
    background-color: #ffffff;
    padding: 24px 0;
    margin-top: 28px;
    border-top: 1px solid #fff5f5;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.links-list {
    list-style: none;
}

.links-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #fff5f5;
}

.links-list li:last-child {
    border-bottom: none;
}

.links-list a {
    color: #8e5a5a;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.links-list a:hover {
    color: #e53935;
}

.site-footer {
    background-color: #3d1f1f;
    color: #fff5f5;
    padding: 42px 0 22px;
    margin-top: 42px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 22px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.footer-text {
    color: #ef9a9a;
    margin-bottom: 7px;
    font-size: 12px;
}

.footer-copy {
    color: #c62828;
    font-size: 11px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-nav a {
    color: #ef9a9a;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid #5d2f2f;
}

.beian-text {
    margin-bottom: 7px;
}

.beian-text a {
    color: #c62828;
    text-decoration: none;
    font-size: 11px;
}

.beian-text a:hover {
    color: #fff5f5;
}

.footer-note {
    color: #8e5a5a;
    font-size: 10px;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background-color: #e53935;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transition: all 0.3s;
    z-index: 999;
    font-size: 18px;
    font-weight: bold;
}

.back-to-top:hover {
    background-color: #c62828;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-area {
        margin-top: 24px;
    }
    
    .featured-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .featured-large {
        grid-row: auto;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .search-input {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .featured-layout {
        grid-template-columns: 1fr;
    }
    
    .article-nav {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #fff5f5;
}

::-webkit-scrollbar-thumb {
    background: #e53935;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c62828;
}

/* 472836 */

