/* 基础样式继承自 style.css，此处仅写博客列表页专属样式 */

/* 导航激活状态 */
.nav-link.active,
.nav-mobile-link.active {
    color: #D4AF37; /* 金色（匹配原图选中态） */
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #D4AF37;
}

/* GET A QUOTE 按钮（原图右上角） */
.quote-btn {
    background-color: #D4AF37; /* 金色按钮 */
    color: #000 !important;
    padding: 6px 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quote-btn:hover {
    background-color: #b89628;
}

/* 博客头部Banner */
.blog-hero {

    
 background-image: url("../images/banner.jpg");
    background-repeat: no-repeat;    /* 不重复 */
    background-size: cover;          /* 铺满整个容器 */
    background-position: center;     /* 图片居中 */

    

    position: relative;
    height: 400px;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5); /* 黑色半透明遮罩 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding: 0 20px;
}

.blog-hero .breadcrumb-links {
    font-size: 14px;
    margin-bottom: 20px;
}

.blog-hero .breadcrumb-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-hero .breadcrumb-links a:hover {
    color: #D4AF37;
}

.blog-hero .breadcrumb-links span {
    color: #D4AF37;
    font-weight: 500;
}

.blog-hero-title {
    font-size: 56px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-hero-desc {
    font-size: 18px;
    max-width: 600px;
    line-height: 1.6;
    color: #f0f0f0;
}

/* 博客主内容区 */
.blog-main {
    padding: 60px 0;
}

.blog-container {
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 40px;
}

/* 左侧文章列表区 */
.blog-list-section {
    padding-right: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 30px;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 10px;
    display: inline-block;
}

/* 分类标签栏 */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #D4AF37;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #D4AF37;
}

.tab-btn:hover {
    color: #D4AF37;
}

/* 文章网格 */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.article-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-img {
    transform: scale(1.05);
}

.article-category {
    font-size: 12px;
    text-transform: uppercase;
    color: #D4AF37;
    font-weight: 600;
    padding: 15px 20px 5px;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    padding: 0 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}


.article-title a{

    text-decoration: none;
    
    font-size: 18px;
    font-weight: 700;
    color: #000;
    padding: 0 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}







.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 0 20px;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    padding: 0 20px 20px;
}

.meta-date, .meta-readtime {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #D4AF37;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
}

.article-card:hover .article-link {
    opacity: 1;
}

.article-link:hover {
    background-color: #000;
    color: #fff;
    transform: scale(1.1);
}

/* 分页控件 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    background-color: #fff;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active {
    background-color: #D4AF37;
    color: #000;
    border-color: #D4AF37;
}

.page-btn:hover:not(.active) {
    border-color: #D4AF37;
    color: #D4AF37;
}

.page-ellipsis {
    font-size: 16px;
    color: #999;
    padding: 0 5px;
}

.page-next {
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-next:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}

/* 右侧侧边栏 */
.blog-sidebar {
    padding-left: 20px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

/* 搜索框 */
.search-widget {
    position: relative;
    margin-bottom: 40px;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    font-size: 14px;
    color: #666;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #D4AF37;
}

.search-btn {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 45px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: #D4AF37;
    color: #000;
}

/* 分类列表 */
.categories-widget {
    background-color: #f9f9f9;
    padding: 25px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #D4AF37;
}

.categories-list {
    list-style: none;
}

.category-item {
    margin-bottom: 10px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #555;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #D4AF37;
}

.category-link i {
    font-size: 10px;
    margin-right: 8px;
    color: #999;
}

.category-name {
    flex: 1;
}

.category-count {
    color: #999;
    font-size: 14px;
}

/* 最新文章 */
.recent-posts-widget {
    background-color: #f9f9f9;
    padding: 25px;
}

.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-item-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}

.post-item-link:hover {
    color: #D4AF37;
}

.post-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-info .post-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-date {
    font-size: 12px;
    color: #666;
}

/* CTA 广告组件 */
.cta-widget-inner {
    background-color: #000;
    color: #fff;
    padding: 30px 20px;
    text-align: left;
}

.cta-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: none;
    padding-bottom: 0;
}

.cta-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.cta-btn {
    background-color: #D4AF37;
    color: #000 !important;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 100%;
    justify-content: center;
}

.cta-btn:hover {
    background-color: #fff;
    color: #000 !important;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-container {
        grid-template-columns: 70% 30%;
    }
}

@media (max-width: 992px) {
    .blog-hero-title {
        font-size: 48px;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .blog-list-section {
        padding-right: 0;
    }
    
    .blog-sidebar {
        padding-left: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .cta-widget {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 300px;
    }
    
    .blog-hero-title {
        font-size: 36px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        overflow-x: auto;
        padding-bottom: 15px;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        height: 250px;
    }
    
    .blog-hero-title {
        font-size: 28px;
    }
    
    .blog-hero-desc {
        font-size: 16px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-btn, .page-next {
        width: 35px;
        height: 35px;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
    
    .cta-widget-inner {
        padding: 20px 15px;
    }
    
    .cta-title {
        font-size: 18px;
    }
}