/* 追风今日热点 - 完整版样式（支持白天/黑夜模式） */

/* ========== CSS变量定义 ========== */
:root {
    /* 白天模式 */
    --zh-bg-primary: #ffffff;
    --zh-bg-secondary: #f5f7fa;
    --zh-bg-card: #ffffff;
    --zh-text-primary: #1a1a1a;
    --zh-text-secondary: #666666;
    --zh-text-muted: #999999;
    --zh-border-color: #e8e8e8;
    --zh-accent-color: #667eea;
    --zh-accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --zh-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --zh-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 黑夜模式 */
[data-theme="dark"] {
    --zh-bg-primary: #0d1117;
    --zh-bg-secondary: #161b22;
    --zh-bg-card: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    --zh-text-primary: #ffffff;
    --zh-text-secondary: rgba(255,255,255,0.85);
    --zh-text-muted: rgba(255,255,255,0.5);
    --zh-border-color: rgba(255,255,255,0.08);
    --zh-accent-color: #667eea;
    --zh-accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --zh-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --zh-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ========== 主题切换按钮 ========== */
.zh-theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.zh-theme-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--zh-accent-gradient);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--zh-shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh-theme-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--zh-shadow-hover);
}

/* ========== 热榜页面头部 ========== */
.zhuifeng-hot-page-header {
    background: var(--zh-bg-secondary);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--zh-border-color);
    transition: all 0.3s ease;
}

.zhuifeng-hot-page-header .page-title {
    color: var(--zh-text-primary);
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.zhuifeng-hot-page-header .page-intro {
    color: var(--zh-text-muted);
    font-size: 16px;
    margin: 0;
}

/* ========== 筛选标签 ========== */
.zh-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.zh-filter-label {
    color: var(--zh-text-muted);
    font-size: 14px;
    margin-right: 10px;
}

.zh-filter-btn {
    background: var(--zh-bg-card);
    border: 1px solid var(--zh-border-color);
    color: var(--zh-text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.zh-filter-btn:hover,
.zh-filter-btn.active {
    background: var(--zh-accent-gradient);
    border-color: transparent;
    color: #fff;
}

/* ========== 热榜网格 ========== */
.zh-hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

/* ========== 热榜卡片 ========== */
.zh-hot-card {
    background: var(--zh-bg-card);
    border: 1px solid var(--zh-border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--zh-shadow);
    transition: all 0.3s ease;
}

[data-theme="dark"] .zh-hot-card {
    backdrop-filter: blur(10px);
}

.zh-hot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--zh-shadow-hover);
    border-color: var(--zh-accent-color);
}

/* 卡片头部 */
.zh-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--zh-border-color);
}

.zh-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zh-source-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    padding: 2px;
}

.zh-source-name {
    color: var(--zh-text-primary);
    font-size: 16px;
    font-weight: 600;
}

.zh-card-more {
    color: var(--zh-accent-color);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.2s;
}

.zh-card-more:hover {
    background: var(--zh-accent-gradient);
    color: #fff;
}

/* 排序标签 */
.zh-sort-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--zh-accent-gradient);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* 热点列表 */
.zh-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zh-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--zh-text-secondary);
    transition: all 0.2s ease;
}

.zh-card-item:hover {
    background: var(--zh-bg-secondary);
    color: var(--zh-text-primary);
}

.zh-item-rank {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    background: var(--zh-bg-secondary);
    color: var(--zh-text-muted);
    flex-shrink: 0;
}

.zh-item-rank.top-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.zh-item-rank.top-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.zh-item-rank.top-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #fff;
}

.zh-item-text {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zh-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.zh-item-heat {
    font-size: 12px;
    color: #ff6b6b;
    font-weight: 500;
}

.zh-item-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--zh-bg-secondary);
    color: var(--zh-text-muted);
}

/* ========== 页脚 ========== */
.zh-hot-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--zh-border-color);
    text-align: center;
    color: var(--zh-text-muted);
    font-size: 13px;
}

.zh-refresh-btn {
    background: transparent;
    border: none;
    color: var(--zh-accent-color);
    cursor: pointer;
    font-size: 13px;
    margin-left: 10px;
}

.zh-refresh-btn:hover {
    text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .zh-theme-switcher {
        top: 10px;
        right: 10px;
    }
    
    .zh-theme-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .zhuifeng-hot-page-header {
        padding: 40px 0;
    }
    
    .zhuifeng-hot-page-header .page-title {
        font-size: 28px;
    }
    
    .zh-hot-grid {
        grid-template-columns: 1fr;
    }
    
    .zh-filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
}

/* ========== 小工具样式 ========== */
.zhuifeng-hot-widget {
    background: var(--zh-bg-card);
    border: 1px solid var(--zh-border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--zh-shadow);
}

.zh-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--zh-border-color);
}

.zh-widget-title {
    color: var(--zh-text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.zh-widget-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zh-widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--zh-text-secondary);
    font-size: 13px;
    transition: all 0.2s;
}

.zh-widget-item:hover {
    background: var(--zh-bg-secondary);
    color: var(--zh-text-primary);
}

.zh-widget-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--zh-bg-secondary);
    color: var(--zh-text-muted);
    flex-shrink: 0;
}

.zh-widget-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}