/* 详情页专用样式 */
.detail-page {
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

/* 内容区域 */
.content-section {
    background: #fff;
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    margin-bottom: 30px;
}

/* 头部区域 */
.header_topd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 20px 25px 15px; */
    border-bottom: 1px solid #e0e0e0;
}

.section-headers {
    display: flex;
    align-items: center;
    display: flex;
    margin-bottom: 5px;
    position: relative;
}

.section-headers:after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background-color: #ccc;
}
.section-icon {
    margin-right: 10px;
}

.hot-icon {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.news-header {
    display: flex;
    align-items: center;
}

.more-link {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.more-link:hover {
    color: #40a9ff;
}

/* 横幅区域 */
.bandner_hedwe {
    display: flex;
    gap: 30px;
    /* padding: 25px; */
}

/* 左侧轮播图 */
.carousel-section {
    flex: 1;
}

.carousel-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

.carousel-image {
    position: relative;
    width: 100%;
    /* height: 300px; */
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 20px 15px 15px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
}

/* 右侧新闻列表 */
.news-section {
    flex: 1;
    max-width: 400px;
}

.hot-recommendations {
    background: #fff;
    /* border-radius: 8px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.hot-news-list {
    padding: 0 20px 20px;
}

.hot-news-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hot-news-item:last-child {
    border-bottom: none;
}

.news-content {
    flex: 1;
    margin-right: 15px;
}

.hot-news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.3s;
}

.hot-news-title:hover {
    color: #1890ff;
}

.hot-news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-action {
    flex-shrink: 0;
    margin-top: 5px;
}

.view-details {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.3s;
}

.view-details:hover {
    color: #40a9ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bandner_hedwe {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .news-section {
        max-width: 100%;
    }
    
    .carousel-image {
        height: 250px;
    }
    
    .hot-news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-content {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .news-action {
        align-self: flex-end;
    }
}

/* 主题适配 */
.blue-theme .section-title {
    color: #333;
}

.blue-theme .more-link,
.blue-theme .view-details {
    color: #1890ff;
}

.blue-theme .more-link:hover,
.blue-theme .view-details:hover {
    color: #40a9ff;
}

.green-theme .section-title {
    color: #03830B;
}

.green-theme .more-link,
.green-theme .view-details {
    color: #03830B;
}

.green-theme .more-link:hover,
.green-theme .view-details:hover {
    color: #03830B;
} 

/* 新闻列表样式 */
.news-list-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.news-list {
    margin-bottom: 20px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    /* background-color: #f8f9fa; 移除固定背景色，让主题色覆盖 */
}

.news-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-right: 20px;
}

.news-date {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-arrow,
.page-number,
.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.page-arrow:hover,
.page-number:hover {
    border-color: var(--primary-color, #1890ff);
    color: var(--primary-color, #1890ff);
}

.page-number.active {
    background-color: var(--primary-color, #03830B);
    border-color: var(--primary-color, #03830B);
    color: #fff;
}

.page-ellipsis {
    border: none;
    cursor: default;
    min-width: 24px;
}

.page-ellipsis:hover {
    border: none;
    color: #666;
}

.pagination-options {
    display: flex;
    align-items: center;
    gap: 20px;
}

.items-per-page {
    color: #666;
    font-size: 14px;
}

.jump-to-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.jump-input {
    width: 50px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.jump-input:focus {
    outline: none;
    border-color: var(--primary-color, #1890ff);
}

.jump-btn {
    height: 32px;
    padding: 0 12px;
    background-color: var(--primary-color, #03830B);
    border: 1px solid var(--primary-color, #03830B);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jump-btn:hover {
    background-color: var(--primary-hover, #03830B);
    border-color: var(--primary-hover, #03830B);
}

/* 主题适配 */
.blue-theme .page-number.active {
    background-color: #1890ff;
    border-color: #1890ff;
}

.blue-theme .jump-btn {
    background-color: #1890ff;
    border-color: #1890ff;
}

.blue-theme .jump-btn:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
}

.green-theme .page-number.active {
    background-color: #03830B;
    border-color: #03830B;
}

.green-theme .jump-btn {
    background-color: #03830B;
    border-color: #03830B;
}

.green-theme .jump-btn:hover {
    background-color: #03830B;
    border-color: #03830B;
} 

