/* ===== 全局重置（限定在 .web-news 内） ===== */
.web-news * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

.web-news a {
    text-decoration: none;
    color: inherit;
}

.web-news ul {
    list-style: none;
}

/* ===== 科室导航 ===== */
.web-news .dept-nav {
    width: 100%;
    height: 125px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 1%;
}

.web-news .dept-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.web-news .dept-item.active {
    background: #0072bc;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
}

.web-news .dept-item.active .dept-icon {
    background: #fff;
    color: #0072bc;
}

.web-news .dept-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.web-news .dept-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.web-news .dept-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== 面包屑 ===== */
.web-news .breadcrumb {
    width: 70%;
    margin: 15px auto;
    font-size: 12px;
    color: #666;
}

.web-news .breadcrumb a {
    color: #0072bc;
}

/* ===== 主内容区 ===== */
.web-news .main-container {
    width: 70%;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

.web-news .content-left {
    flex: 3;
}

.web-news .content-right {
    flex: 1;
}

/* ===== 广告横幅 ===== */
.web-news .ad-banner {
    width: 100%;
    background: linear-gradient(90deg, #d9232e, #ff6a00);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: #fff;
    margin-bottom: 20px;
    padding: 1% 0;
}

.web-news .ad-title {
    font-size: 16px;
    font-weight: bold;
}

.web-news .ad-subtitle {
    font-size: 12px;
}

.web-news .ad-tag {
    background: #fff;
    color: #d9232e;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 14px;
}

.web-news .ad-price {
    font-size: 32px;
    font-weight: bold;
}

.web-news .ad-price small {
    font-size: 14px;
}

.web-news .ad-desc {
    font-size: 14px;
}

.web-news .ad-btn {
    background: #ffd700;
    color: #d9232e;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* ===== 文章列表 ===== */
.web-news .news-list {
    padding: 20px 0;
}

.web-news .news-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.web-news .news-item {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.web-news .news-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
    color: #333;
    text-decoration: none;
}

.web-news .news-title:hover {
    color: #0072bc;
}

.web-news .news-time {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
}

/* ===== 分页 ===== */
.web-news .pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.web-news .pagination-info {
    color: #666;
    font-size: 14px;
}

.web-news .pagination-info strong {
    color: #0072bc;
}

.web-news .pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.web-news .page-size-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    outline: none;
    height: 32px;
}

.web-news .page-size-select:focus {
    border-color: #0072bc;
}

.web-news .page-btn {
    padding: 5px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    height: 32px;
    transition: all 0.3s ease;
}

.web-news .page-btn:hover:not(:disabled) {
    background: #0072bc;
    color: #fff;
    border-color: #0072bc;
}

.web-news .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.web-news .page-numbers {
    display: flex;
    gap: 4px;
}

.web-news .page-num {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.web-news .page-num:hover:not(.active) {
    border-color: #0072bc;
    color: #0072bc;
}

.web-news .page-num.active {
    background: #0072bc;
    color: #fff;
    border-color: #0072bc;
}

.web-news .page-jumper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.web-news .page-input {
    width: 48px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    outline: none;
}

.web-news .page-input:focus {
    border-color: #0072bc;
}

.web-news .page-input::-webkit-inner-spin-button,
.web-news .page-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.web-news .page-input[type="number"] {
    -moz-appearance: textfield;
}

/* ===== 文章按钮 ===== */
.web-news .article-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.web-news .article-btn {
    background: #b8860b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.web-news .article-btn.orange {
    background: #d2691e;
}

.web-news .article-btn:hover {
    opacity: 0.85;
}

/* ===== 咨询模块 ===== */
.web-news .consult-box {
    width: 100%;
    background: #7ccd7c;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 30px;
}

.web-news .consult-title {
    text-align: center;
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.web-news .consult-subtitle {
    font-size: 12px;
}

.web-news .consult-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.web-news .consult-item {
    background: #fff;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    display: block;
}

.web-news .consult-item.orange {
    background: #ee9a49;
    color: #fff;
}

.web-news .consult-item.blue {
    background: #6495ed;
    color: #fff;
}

.web-news .consult-item:hover {
    opacity: 0.85;
}

/* ===== 右侧边栏 ===== */
.web-news .sidebar-module {
    margin-bottom: 20px;
}

.web-news .sidebar-title {
    font-size: 16px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.web-news .brand-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.web-news .brand-tag {
    background: #0072bc;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    text-align: center;
    border-radius: 4px;
}

/* ===== 搜索框 ===== */
.web-news .search-box {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.web-news .search-input {
    flex: 1;
    height: 28px;
    border: 1px solid #ddd;
    padding: 0 10px;
    border-radius: 4px;
    outline: none;
}

.web-news .search-input:focus {
    border-color: #0072bc;
}

.web-news .search-btn {
    background: #0072bc;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 4px;
}

.web-news .search-btn:hover {
    opacity: 0.85;
}

/* ===== 医生卡片 ===== */
.web-news .doctor-card {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.web-news .doctor-img {
    width: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.web-news .doctor-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.web-news .doctor-info {
    padding: 10px;
    background: #696969;
    color: #fff;
}

.web-news .doctor-name {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.web-news .doctor-name div:first-child {
    font-size: 18px;
    font-weight: bold;
}

.web-news .doctor-name div:last-child {
    font-size: 16px;
}

.web-news .doctor-skill {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.web-news .doctor-btns {
    display: flex;
    gap: 5px;
}

.web-news .doctor-btn {
    flex: 1;
    padding: 5px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    display: block;
}

.web-news .doctor-btn.blue {
    background: #0072bc;
    color: #fff;
}

.web-news .doctor-btn.orange {
    background: #d2691e;
    color: #fff;
}

.web-news .doctor-btn:hover {
    opacity: 0.85;
}

/* ===== 地图 ===== */
.web-news .map {
    width: 100%;
    height: 400px;
}

/* ===== 服务按钮 ===== */
.web-news .service-btns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    margin-bottom: 15px;
}

.web-news .service-btn {
    background: #0072bc;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    display: block;
}

.web-news .service-btn:hover {
    opacity: 0.85;
}

.web-news .service-desc {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

/* ===== 官方热线 ===== */
.web-news .hotline-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.web-news .hotline-label {
    font-size: 14px;
    color: #666;
}

.web-news .hotline-text {
    font-size: 22px;
    font-weight: bold;
    color: #0072bc;
    text-decoration: none;
    display: block;
}

.web-news .hotline-text:hover {
    text-decoration: underline;
}

/* ===== 底部按钮 ===== */
.web-news .bottom-btns {
    display: flex;
    gap: 5px;
}

.web-news .bottom-btn {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.web-news .bottom-btn.blue {
    background: #0072bc;
}

.web-news .bottom-btn.orange {
    background: #d2691e;
}

.web-news .bottom-btn:hover {
    opacity: 0.85;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .web-news .main-container {
        width: 90%;
        flex-direction: column;
    }
    .web-news .breadcrumb {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .web-news .dept-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 15px;
    }
    .web-news .dept-item {
        width: 30%;
    }
    .web-news .ad-banner {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }
    .web-news .consult-grid {
        grid-template-columns: 1fr;
    }
    .web-news .article-btns {
        flex-direction: column;
        align-items: center;
    }
    .web-news .service-btns {
        grid-template-columns: 1fr;
    }
    .web-news .pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .web-news .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    .web-news .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}