/* 热榜主容器 */
.wht-container {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 头部样式 */
.wht-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.wht-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* 选项卡样式 */
.wht-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wht-tab-btn {
    padding: 6px 15px;
    border: none;
    border-radius: 20px;
    background: #f5f7fa;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    color: #666;
}

.wht-tab-btn:hover {
    background: #e6f0ff;
    color: #1a73e8;
}

.wht-tab-btn.active {
    background: #1a73e8;
    color: white;
    font-weight: 500;
}

/* 内容区样式 */
.wht-content {
    min-height: 300px;
    transition: opacity 0.3s;
}

.wht-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wht-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.wht-item:hover {
    background: #f9f9ff;
}

.wht-item:last-child {
    border-bottom: none;
}

.wht-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    text-align: center;
    background: #f5f7fa;
    border-radius: 5px;
    margin-right: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

.wht-item.wh-hot .wht-index {
    background: linear-gradient(135deg, #ff4d4d, #ff1a1a);
    color: white;
}

.wht-item.warm-hot .wht-index {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: white;
}

.wht-link {
    text-decoration: none;
    color: #333;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wht-link .wht-title {
    font-size: 0.95rem;
    line-height: 1.4;
}

.wht-heat-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.wht-heat-value {
    font-size: 0.75rem;
    color: #e74c3c;
    min-width: 40px;
    text-align: right;
}

.wht-heat-bar {
    height: 6px;
    background: linear-gradient(90deg, #ffb199, #ff5e62);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* 底部样式 */
.wht-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
    font-size: 0.85rem;
    color: #888;
}

.wht-refresh {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.2s;
}

.wht-refresh:hover {
    color: #1a73e8;
}

.wht-icon-refresh {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
}

/* 加载状态 */
.wht-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 15px;
}

.wht-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(26, 115, 232, 0.2);
    border-radius: 50%;
    border-top-color: #1a73e8;
    animation: wht-spin 1s linear infinite;
}

@keyframes wht-spin {
    to { transform: rotate(360deg); }
}

.wht-loading-text {
    font-size: 0.9rem;
    color: #666;
}

.wht-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .wht-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wht-tabs {
        justify-content: center;
        margin-top: 10px;
    }
    
    .wht-footer {
        flex-direction: column;
        gap: 8px;
    }
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    .wht-container {
        background: #1e1e2d;
        border-color: #2d2d3e;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }
    
    .wht-title, .wht-link .wht-title {
        color: #e0e0e0;
    }
    
    .wht-tab-btn {
        background: #2d2d3e;
        color: #a0a0b0;
    }
    
    .wht-tab-btn:hover {
        background: #3d3d4e;
        color: #d0d0e0;
    }
    
    .wht-tab-btn.active {
        background: #1a73e8;
        color: white;
    }
    
    .wht-item {
        border-color: #2d2d3e;
    }
    
    .wht-item:hover {
        background: #252536;
    }
    
    .wht-index {
        background: #2d2d3e;
        color: #a0a0b0;
    }
    
    .wht-link {
        color: #e0e0e0;
    }
    
    .wht-footer {
        border-color: #2d2d3e;
        color: #888;
    }
    
    .wht-no-data {
        color: #aaa;
    }
}
