/**
 * ============================================================
 * 热搜页面 - 全新网格卡片布局 - 科技感设计
 * ============================================================
 */

.hot-search-page {
    background: #0a0e1a;
    color: #f1f5f9;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    padding: 40px 0;
}

.hot-search-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.hot-search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hot-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.hot-search-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.hot-search-subtitle {
    color: #94a3b8;
    font-size: 1rem;
}

.update-time {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 30px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.hot-platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.hot-platform-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hot-platform-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hot-platform-card[data-platform="construction"]:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.hot-platform-card[data-platform="toutiao"]:hover {
    border-color: rgba(249, 115, 22, 0.4);
}

.hot-platform-card[data-platform="weibo"]:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

.hot-platform-card[data-platform="zhihu"]:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.hot-platform-card[data-platform="douyin"]:hover {
    border-color: rgba(236, 72, 153, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.platform-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-icon {
    font-size: 1.5rem;
}

.platform-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.top-label {
    padding: 4px 12px;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-content-preview {
    padding: 16px;
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #f1f5f9;
    transition: all 0.2s ease;
}

.preview-item:hover {
    background: rgba(14, 165, 233, 0.1);
}

.preview-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.rank-2 {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
}

.rank-3 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.rank-other {
    background: #1e293b;
    color: #94a3b8;
}

.preview-title {
    flex: 1;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-heat {
    font-size: 0.75rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.preview-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    flex-shrink: 0;
}

.tag-bao {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.tag-re {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.tag-xin {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.tag-fei {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.card-content-expanded {
    display: none;
    padding: 16px;
    max-height: 500px;
    overflow-y: auto;
}

.expanded-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.expanded-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #f1f5f9;
    transition: all 0.2s ease;
}

.expanded-item:hover {
    background: rgba(14, 165, 233, 0.1);
}

.expanded-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.expanded-main {
    flex: 1;
    min-width: 0;
}

.expanded-title {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expanded-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.expanded-heat {
    font-size: 0.8rem;
    color: #94a3b8;
}

.expanded-tag {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.toggle-btn {
    width: 100%;
    padding: 12px;
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
}

.btn-text {
    font-size: 0.9rem;
}

.btn-icon {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.hot-platform-card.expanded .btn-icon {
    transform: rotate(180deg);
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.hot-search-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.hot-search-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.hot-search-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.hot-search-info-icon {
    font-size: 1.1rem;
}

.card-content-expanded::-webkit-scrollbar {
    width: 6px;
}

.card-content-expanded::-webkit-scrollbar-track {
    background: transparent;
}

.card-content-expanded::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
}

.card-content-expanded::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 1200px) {
    .hot-platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hot-platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hot-search-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hot-search-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .hot-platforms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hot-search-title {
        font-size: 1.75rem;
    }
    
    .hot-search-container {
        padding: 0 16px;
    }
    
    .card-header {
        padding: 16px;
    }
    
    .platform-name {
        font-size: 1rem;
    }
}
