/* 资讯博客模板 - aisc2 扁平化绿色主题 */
/* 两栏布局，扁平化设计风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f4f3;
    color: #2d3436;
    line-height: 1.6;
    font-size: 16px;
}

.header-wrapper, .breadcrumb-wrapper, .main-wrapper, .content-layout, .footer-wrapper, .links-wrapper, .page-title-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.site-header {
    background-color: #27ae60;
    border-bottom: 2px solid #229954;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
}

.logo-image {
    max-height: 42px;
    width: auto;
    margin-right: 12px;
}

.site-name {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.search-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-field {
    padding: 9px 16px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    width: 260px;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
}

.search-field:focus {
    border-color: #229954;
    box-shadow: 0 0 0 3px rgba(34, 153, 84, 0.2);
}

.search-button {
    padding: 9px 22px;
    background-color: #229954;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #1e8449;
}

/* 主导航 */
.main-navigation {
    background-color: #229954;
}

.nav-items {
    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: 13px 22px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: #1e8449;
}

/* 面包屑导航 */
.breadcrumb-bar {
    background-color: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #d5dbdb;
}

.breadcrumb-items {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.separator {
    margin: 0 8px;
    color: #95a5a6;
}

.breadcrumb-item a {
    color: #27ae60;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #229954;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #7f8c8d;
}

/* 主要内容区域 */
.main-wrapper {
    padding: 35px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 25px;
}

/* 焦点文章区域 */
.featured-section {
    margin-bottom: 35px;
}

.featured-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.featured-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #d5f4e6;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    padding: 18px;
}

.featured-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-desc {
    font-size: 13px;
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #95a5a6;
}

.meta-sep {
    color: #bdc3c7;
}

/* 文章列表 */
.articles-section {
    margin-bottom: 35px;
}

.section-header {
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 3px solid #27ae60;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3436;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #d5f4e6;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 18px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-title a {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-title a:hover {
    color: #27ae60;
}

.card-summary {
    color: #636e72;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #95a5a6;
    flex-wrap: wrap;
}

.meta-date, .meta-hits {
    color: #95a5a6;
}

.meta-cat {
    color: #27ae60;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-cat:hover {
    color: #229954;
    text-decoration: underline;
}

/* 分页 */
.pagination-section {
    margin-bottom: 35px;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 9px 17px;
    background-color: #ffffff;
    color: #27ae60;
    text-decoration: none;
    border: 2px solid #27ae60;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #27ae60;
    color: #ffffff;
}

.page-btn.active {
    background-color: #27ae60;
    color: #ffffff;
    border-color: #27ae60;
}

/* 侧边栏 */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-widget {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.widget-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid #27ae60;
}

.widget-title {
    font-size: 17px;
    font-weight: 600;
    color: #2d3436;
}

.widget-list {
    list-style: none;
}

.widget-item {
    padding: 11px 0;
    border-bottom: 1px solid #ecf0f1;
}

.widget-item:last-child {
    border-bottom: none;
}

.widget-item.active .widget-link {
    color: #27ae60;
    font-weight: 600;
}

.widget-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #636e72;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.widget-link:hover {
    color: #27ae60;
}

.item-rank {
    width: 26px;
    height: 26px;
    background-color: #27ae60;
    color: #ffffff;
    text-align: center;
    line-height: 26px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.item-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-count {
    color: #95a5a6;
    font-size: 12px;
    flex-shrink: 0;
}

/* 标签云 */
.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag-item {
    padding: 6px 13px;
    background-color: #d5f4e6;
    color: #636e72;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-item:hover {
    background-color: #27ae60;
    color: #ffffff;
}

/* 列表页标题 */
.page-title-section {
    background-color: #27ae60;
    color: #ffffff;
    padding: 32px 0;
    margin-bottom: 28px;
}

.page-heading {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 9px;
}

.page-description {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 9px;
}

.page-total {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* 内容页 */
.article-main {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 38px;
    margin-bottom: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 2px solid #ecf0f1;
}

.article-heading {
    font-size: 34px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 18px;
    line-height: 1.3;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #95a5a6;
    flex-wrap: wrap;
}

.meta-date, .meta-hits {
    color: #95a5a6;
}

.meta-category {
    color: #27ae60;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-category:hover {
    color: #229954;
    text-decoration: underline;
}

.article-featured-img {
    margin-top: 22px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #d5f4e6;
}

.article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #2d3436;
    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: 28px auto;
    border-radius: 6px;
}

.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 {
    margin-top: 32px;
    margin-bottom: 18px;
    font-weight: 600;
    color: #2d3436;
    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: #27ae60;
    text-decoration: underline;
}

.article-body a:hover {
    color: #229954;
}

.article-body blockquote {
    border-left: 4px solid #27ae60;
    padding: 15px 20px;
    margin: 28px 0;
    background-color: #d5f4e6;
    border-radius: 4px;
    color: #636e72;
    font-style: italic;
}

.article-body code {
    background-color: #d5f4e6;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 15px;
    color: #e74c3c;
}

.article-body pre {
    background-color: #2d3436;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 28px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
}

.article-body table th, .article-body table td {
    border: 1px solid #ecf0f1;
    padding: 12px;
    text-align: left;
}

.article-body table th {
    background-color: #27ae60;
    color: #ffffff;
    font-weight: 600;
}

.article-tags-bar {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 2px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.tags-label {
    color: #636e72;
    font-size: 14px;
    font-weight: 500;
}

.tag-badge {
    padding: 6px 13px;
    background-color: #d5f4e6;
    color: #636e72;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-badge:hover {
    background-color: #27ae60;
    color: #ffffff;
}

/* 上下篇导航 */
.article-nav-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 35px;
}

.nav-box {
    padding: 18px;
    background-color: #ffffff;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-box:hover {
    border-color: #27ae60;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.15);
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 7px;
}

.nav-link {
    color: #2d3436;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    line-height: 1.5;
}

.nav-link:hover {
    color: #27ae60;
}

.nav-next {
    text-align: right;
}

/* 相关文章 */
.related-section {
    margin-bottom: 35px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.related-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.related-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: #d5f4e6;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 15px;
}

.related-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 9px;
}

.related-title a {
    color: #2d3436;
    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: #27ae60;
}

.related-meta {
    font-size: 12px;
    color: #95a5a6;
}

/* 文章信息 */
.info-list {
    list-style: none;
}

.info-item {
    padding: 14px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: block;
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 7px;
}

.info-value {
    font-size: 15px;
    color: #2d3436;
    font-weight: 500;
}

.info-value.highlight {
    color: #27ae60;
    font-size: 26px;
    font-weight: 600;
}

.info-value a {
    color: #27ae60;
    text-decoration: none;
    transition: color 0.3s;
}

.info-value a:hover {
    color: #229954;
    text-decoration: underline;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 5px;
}

.tag-mini {
    padding: 4px 9px;
    background-color: #d5f4e6;
    color: #636e72;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.tag-mini:hover {
    background-color: #27ae60;
    color: #ffffff;
}

/* 友情链接区域 */
.links-area {
    background-color: #ffffff;
    padding: 28px 0;
    margin-top: 35px;
    border-top: 1px solid #ecf0f1;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
}

.links-items {
    list-style: none;
}

.links-items li {
    padding: 7px 0;
    border-bottom: 1px dashed #ecf0f1;
}

.links-items li:last-child {
    border-bottom: none;
}

.links-items a {
    color: #636e72;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.links-items a:hover {
    color: #27ae60;
}

/* 页脚 */
.site-footer {
    background-color: #2d3436;
    color: #ecf0f1;
    padding: 48px 0 28px;
    margin-top: 48px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    margin-bottom: 28px;
}

.footer-heading {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-info {
    color: #bdc3c7;
    margin-bottom: 9px;
    font-size: 14px;
}

.footer-copyright {
    color: #95a5a6;
    font-size: 13px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid #34495e;
}

.beian-info {
    margin-bottom: 9px;
}

.beian-info a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 13px;
}

.beian-info a:hover {
    color: #ecf0f1;
}

.footer-note {
    color: #7f8c8d;
    font-size: 12px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background-color: #27ae60;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    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: #229954;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-area {
        margin-top: 28px;
    }
    
    .featured-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }
    
    .search-field {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-items {
        flex-wrap: wrap;
    }
    
    .featured-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-nav-bar {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #ecf0f1;
}

::-webkit-scrollbar-thumb {
    background: #27ae60;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #229954;
}

/* 362748 */

