/* ============================================================
   右侧栏组件样式（作用域：.web-news-right）
   引用：<link rel="stylesheet" th:href="@{/assets/right.css}"/>
   ============================================================ */
.web-news-right * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

.web-news-right a {
    text-decoration: none;
    color: inherit;
}

.web-news-right ul {
    list-style: none;
}

/* ===== 根节点宽度约束（关键：防止撑宽父容器） ===== */
.web-news-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    display: block;
    flex: 1;
}

/* ===== 模块通用 ===== */
.web-news-right .sidebar-module {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.web-news-right .sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a3b5d;
    padding: 10px 0 10px 16px;
    margin-bottom: 14px;
    border-left: 4px solid #1a5e9c;
    background: linear-gradient(90deg, rgba(26, 94, 156, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 0 6px 6px 0;
    letter-spacing: 1px;
    position: relative;
    width: 100%;
    max-width: 100%;
    word-break: break-all;
    overflow-wrap: break-word;
}

.web-news-right .sidebar-title::after {
    content: '';
    position: absolute;
    left: 16px;
    bottom: 4px;
    width: 30px;
    height: 2px;
    background: #1a5e9c;
    border-radius: 1px;
    opacity: 0.5;
}

/* ===== 最新热议 ===== */
.web-news-right .qa-module {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.web-news-right .qa-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.web-news-right .qa-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px dashed #e8ecf1;
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.web-news-right .qa-list li:last-child {
    border-bottom: none;
}

.web-news-right .qa-badge {
    flex-shrink: 0;
    display: inline-block;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #1a5e9c;
    border-radius: 4px;
    margin-top: 1px;
}

.web-news-right .qa-body {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.web-news-right .qa-list a {
    display: block;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.2s;
}

.web-news-right .qa-list a:hover {
    color: #1a5e9c;
}

.web-news-right .qa-time {
    font-size: 12px;
    color: #999;
}

.web-news-right .qa-empty {
    font-size: 13px;
    color: #999;
    text-align: center;
    padding: 12px 0;
}

/* ===== 复明品牌 ===== */
.web-news-right .brand-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 10px;
}

.web-news-right .brand-tag {
    background: #0072bc;
    color: #fff;
    padding: 5px 10px;
    font-size: 14px;
    text-align: center;
    border-radius: 4px;
    width: 100%;
    max-width: 100%;
}

/* ===== 医生轮播 ===== */
.web-news-right .doctor-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.web-news-right .carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}

.web-news-right .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.web-news-right .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(26, 94, 156, 0.85);
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.web-news-right .carousel-arrow:hover {
    background: #0f3f6e;
}

.web-news-right .carousel-arrow.prev {
    left: 4px;
}

.web-news-right .carousel-arrow.next {
    right: 4px;
}

.web-news-right .carousel-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.web-news-right .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d3dfec;
    cursor: pointer;
    transition: background 0.2s;
}

.web-news-right .carousel-dot.active {
    background: #1a5e9c;
}

/* ===== 医生卡片 ===== */
.web-news-right .doctor-card {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.web-news-right .doctor-img {
    width: 100%;
    max-width: 100%;
    height: 222px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.web-news-right .doctor-img img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.web-news-right .doctor-info {
    padding: 10px;
    background: #696969;
    color: #fff;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.web-news-right .doctor-name {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.web-news-right .doctor-name div:first-child {
    font-size: 18px;
    font-weight: bold;
}

.web-news-right .doctor-name div:last-child {
    font-size: 16px;
}

.web-news-right .doctor-skill {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    word-break: break-all;
    overflow-wrap: break-word;
}

.web-news-right .doctor-btns {
    display: flex;
    gap: 5px;
}

.web-news-right .doctor-btn {
    flex: 1;
    padding: 5px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    display: block;
    min-width: 0;
}

.web-news-right .doctor-btn.blue {
    background: #0072bc;
    color: #fff;
}

.web-news-right .doctor-btn.orange {
    background: #d2691e;
    color: #fff;
}

.web-news-right .doctor-btn:hover {
    opacity: 0.85;
}

/* ===== 地图 ===== */
.web-news-right .map {
    width: 100%;
    max-width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

/* ===== 咨询热线 ===== */
.web-news-right .hotline-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.web-news-right .hotline-label {
    font-size: 14px;
    color: #666;
}

.web-news-right .hotline-text {
    font-size: 22px;
    font-weight: bold;
    color: #0072bc;
    display: block;
    word-break: break-all;
}

.web-news-right .hotline-text:hover {
    text-decoration: underline;
}

/* ===== 服务按钮 ===== */
.web-news-right .service-btns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.web-news-right .service-btn {
    background: #0072bc;
    color: #fff;
    padding: 10px 4px;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.web-news-right .service-btn:hover {
    opacity: 0.85;
}

.web-news-right .service-desc {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
    max-width: 100%;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .web-news-right .carousel-arrow.prev {
        left: 0;
    }

    .web-news-right .carousel-arrow.next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .web-news-right .doctor-img {
        height: 180px;
    }

    .web-news-right .service-btns {
        grid-template-columns: 1fr 1fr;
    }
}