/* ===================================== */
/* 百度热搜榜单模块（精致优化版） */
/* ===================================== */
.w-hot-search {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 20px;
    padding: 20px 18px;
    max-width: 480px;
    margin: 20px auto;
}
.w-hot-search:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* 顶部标题栏 */
.hot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f4f8;
    position: relative;
}
.hot-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #3688FF, #00B4FF);
}
.hot-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hot-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(135deg, #3688FF, #00B4FF);
    border-radius: 2px;
}

/* 状态圆点（模仿百度热搜动效） */
.hot-status {
    display: flex;
    gap: 4px;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}
.status-dot:nth-child(1) {
    background: #ff4d4f;
    animation-delay: 0s;
}
.status-dot:nth-child(2) {
    background: #faad14;
    animation-delay: 0.6s;
}
.status-dot:nth-child(3) {
    background: #52c41a;
    animation-delay: 1.2s;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

/* 热搜列表 */
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 列表项 基础样式 */
.hot-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
}
.hot-item:last-child {
    border-bottom: none;
}
.hot-item:hover {
    background: #f0f7ff;
    padding-left: 6px;
    border-radius: 8px;
    margin-left: -6px;
}

/* ====================== */
/* 排名：无背景，只有颜色 */
/* ====================== */
.hot-rank {
    font-weight: bold;
    margin-right: 10px;
    font-size: 15px;
    min-width: 20px;
    background: transparent !important;
    border-radius: 0 !important;
    color: #666; /* 默认4-10名颜色 */
}
.hot-rank.hot-rank-top {
    color: #52c41a; /* 顶字绿色 */
}
.hot-rank.rank-1 {
    color: #ff4d4f; /* 第1名红色 */
}
.hot-rank.rank-2 {
    color: #fa8c16; /* 第2名橙色 */
}
.hot-rank.rank-3 {
    color: #52c41a; /* 第3名绿色 */
}

/* ====================== */
/* 精致优化：标题+标签完美排版 */
/* ====================== */
.hot-content {
    flex: 1;
    font-size: 14px;
    color: #334155;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.hot-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #334155;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.hot-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.hot-tag.hot-tag-new {
    background: #1890ff;
}
.hot-tag.hot-tag-re {
    background: #fa8c16;
}
.hot-tag.hot-tag-bao {
    background: #ff4d4f;
}
.hot-tag.hot-tag-default {
    background: #94a3b8;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .w-hot-search {
        padding: 16px 14px;
    }
    .hot-title {
        font-size: 16px;
    }
    .hot-item {
        padding: 8px 0;
    }
    .hot-rank {
        font-size: 13px;
    }
    .hot-content {
        font-size: 13px;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px 0;
    color: #94a3b8;
}
.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}