/* 品牌活动页面样式 */
.brand-activities-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3% 80px;
    background-color: #fff;
}

/* 注意：列表页的子导航栏使用 base.css 中的通用样式 .sub-nav-tabs */

/* 文章网格布局 */
.news-grid {
    display: grid;
    /* PC 端固定 3 列，每条卡片宽度一致 */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-bottom: 60px;
}

/* 文章卡片 */
.news-card {
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 文章图片 */
.news-card-image {
    width: 100%;
    /* height: 360px; */
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 20px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

/* 文章内容 */
.news-card-content {
    padding: 0 10px;
}

.news-card-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}

.news-card-title {
    font-size: 18px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: normal;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 54px;
}

.news-card-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 67px;
}

/* 分页样式 */
.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.pagination-box {
    display: inline-block;
}

.pagination-box ul.pagination {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-box ul.pagination li {
    display: inline-block;
    margin: 0 5px;
}

.pagination-box ul.pagination li a,
.pagination-box ul.pagination li span {
    display: inline-block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.pagination-box ul.pagination li a:hover {
    color: #333;
    border-color: #bdbdbd;
    background-color: #f5f5f5;
}

.pagination-box ul.pagination li.active span,
.pagination-box ul.pagination li.active a {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.pagination-box ul.pagination li.disabled span,
.pagination-box ul.pagination li.disabled a {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eaeaea;
    pointer-events: none;
}

/* 空数据提示 */
.nothing {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 新闻详情页面样式 */
.news-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    background-color: #fff;
}

/* 详情页子导航栏样式 - 使用独立的类名避免影响列表页 */
.detail-sub-nav-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 50px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0;
}

.detail-sub-nav-tab {
    display: inline-block;
    padding: 12px 40px;
    font-size: 16px;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: -1px;
    position: relative;
}

.detail-sub-nav-tab:hover {
    color: #333;
}

.detail-sub-nav-tab.active {
    color: #333;
    border-bottom-color: #bdbdbd;
    font-weight: 500;
}

/* 详情页 sub-nav-tabs 在PC模式下左对齐，与主菜单对齐 */
@media screen and (min-width: 1025px) {
    .detail-sub-nav-tabs {
        justify-content: flex-start;
        padding-left: 280px;
        text-align: left;
    }
}

/* 文章详情区域 */
.newsdetail {
    max-width: 100%;
}

.newsdetail-title {
    font-size: 46px;
    color: #333;
    margin: 0 0 30px 0;
    font-weight: 100;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-align: center;
}

.newsdetail-meta {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
}

.newsdetail-meta .meta-item {
    display: inline-block;
    font-size: 14px;
    color: #666;
    margin-right: 30px;
    font-weight: 100;
}

.newsdetail-meta .meta-item:last-child {
    margin-right: 0;
}

/* 文章内容区域 */
.newsdetail-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
}

.newsdetail-content p {
    margin: 0;
    text-align: justify;
}

.newsdetail-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 4px;
}

.newsdetail-content h1,
.newsdetail-content h2,
.newsdetail-content h3,
.newsdetail-content h4,
.newsdetail-content h5,
.newsdetail-content h6 {
    margin: 30px 0 20px 0;
    color: #333;
    font-weight: normal;
}

.newsdetail-content h1 {
    font-size: 28px;
}

.newsdetail-content h2 {
    font-size: 22px;
}

.newsdetail-content h3 {
    font-size: 18px;
    position: relative;
    padding-left: 28px;
    line-height: 1.5;
    padding-top: 8px;
    margin: 0;
}

.newsdetail-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: url("../img/icon1.svg") no-repeat center/contain;
}

/* 文章详情 h2 内的 em 标签样式（红底白字编号） */
.newsdetail-content h2 em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e31b1a;
    color: #fff;
    height: 32px;
    padding: 8px 5px 0 20px;
    border-radius: 0;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    box-sizing: border-box;
    margin-right: 5px;
}

.newsdetail-content h4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fcd7a1;
    color: #333;
    border-radius: 20px;
    font-style: normal;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding: 5px 20px 0 10px;
}
.newsdetail-content ul,
.newsdetail-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.newsdetail-content li {
    margin: 10px 0;
    line-height: 1.8;
    list-style-type: disc;
}

.newsdetail-content a {
    color: #9c27b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.newsdetail-content a:hover {
    color: #7b1fa2;
    text-decoration: underline;
}

.newsdetail-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid #9c27b0;
    background-color: #f5f5f5;
    font-style: italic;
}

.newsdetail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.newsdetail-content table th,
.newsdetail-content table td {
    padding: 10px;
    border: 1px solid #eaeaea;
    text-align: left;
}

.newsdetail-content table th {
    background-color: #f5f5f5;
    font-weight: normal;
}

/* 响应式设计 */
@media screen and (max-width: 991px) {
    .brand-activities-wrapper {
        padding: 0 3% 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 20px;
    }
    
    /* 详情页子导航栏响应式样式 */
    .detail-sub-nav-tabs {
        margin-top: 20px;
        margin-bottom: 40px;
    }
    
    .detail-sub-nav-tab {
        padding: 10px 30px;
        font-size: 15px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        margin-bottom: 40px;
    }
    
    .news-card-image {
        height: auto;
    }
    
    .news-card-image img {
        height: auto;
        object-fit: contain;
    }
    
    .news-card-title {
        font-size: 16px;
        min-height: 48px;
    }
    
    .news-card-desc {
        font-size: 13px;
        min-height: 60px;
    }
    
    /* 新闻详情页响应式 */
    .news-detail-wrapper {
        padding: 40px 15px 60px;
    }
    
    .newsdetail-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .newsdetail-meta {
        margin-bottom: 35px;
    }
    
    .newsdetail-content {
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .brand-activities-wrapper {
        padding: 0 3% 50px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    /* 详情页子导航栏响应式样式 */
    .detail-sub-nav-tabs {
        margin-bottom: 30px;
    }
    
    .detail-sub-nav-tab {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-card-image {
        height: auto;
    }
    
    .news-card-image img {
        height: auto;
        object-fit: contain;
    }
    
    .news-card-title {
        font-size: 16px;
        min-height: auto;
    }
    
    .news-card-desc {
        font-size: 13px;
        min-height: auto;
    }
    
    .pagination-wrapper {
        margin-top: 40px;
    }
    
    /* 新闻详情页响应式 */
    .news-detail-wrapper {
        padding: 30px 15px 50px;
    }
    
    .newsdetail-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .newsdetail-meta {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    .newsdetail-meta .meta-item {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .newsdetail-content {
        font-size: 14px;
    }
    
    .newsdetail-content img {
        margin: 20px auto;
    }
}

