/**
 * 整形医院页面 - 特有样式
 */

/* ========== 医院推荐横向滚动 ========== */
.hospitals-section {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(116, 185, 255, 0.08));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.hospitals-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.hospitals-section__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hospitals-section__more {
    font-size: 13px;
    color: var(--primary-color);
}

.hospitals-section__more:hover {
    text-decoration: underline;
}

/* 医院横向滚动 - 布局和滚动条样式由 common.css 统一管理 */

/* 医院卡片基础样式由 common.css 统一管理，此处仅保留页面特定扩展 */

/* ========== 医院排名榜单 ========== */
.ranking-section {
    background: var(--section-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.ranking-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ranking-section__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ranking-section__more {
    font-size: 13px;
    color: var(--primary-color);
}

.ranking-section__more:hover {
    text-decoration: underline;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.ranking-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    transition: var(--transition);
}

.ranking-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.ranking-card__rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--border-color);
    color: var(--text-muted);
}

.ranking-card:nth-child(1) .ranking-card__rank {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #fff;
}

.ranking-card:nth-child(2) .ranking-card__rank {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #fff;
}

.ranking-card:nth-child(3) .ranking-card__rank {
    background: linear-gradient(135deg, #cd7f32, #b8722e);
    color: #fff;
}

.ranking-card__info {
    flex: 1;
    min-width: 0;
}

.ranking-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-card__meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 热门文章链接网格 ========== */
/* 使用 common.css 中的 .article-links-grid 和 .article-link */

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ranking-grid {
        grid-template-columns: 1fr;
    }
    .hospital-card {
        width: 230px;
    }
}

@media (max-width: 480px) {
    .hospital-card {
        width: 200px;
    }
}
