:root {
    --primary: #fe2c55;
    --secondary: #25f4ee;
    --bg: #0f0f23;
    --card-bg: #1a1a2e;
    --text: #ffffff;
    --text-secondary: #a0a0b0;
    --border: #2a2a3e;
    --up: #00d26a;
    --down: #ff4757;
    --new: #ffa502;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
    background: linear-gradient(135deg, var(--card-bg) 0%, transparent 100%);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.last-update {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.last-update::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--up);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(254, 44, 85, 0.1);
}

.stat-card.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 100%);
    border-color: transparent;
}

.stat-card.highlight .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-card.highlight .stat-value {
    color: white;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 筛选器 */
.filters {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn, .category-btn {
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover, .category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active, .category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-btn.highlight {
    border-color: var(--new);
    color: var(--new);
}

.filter-btn.highlight.active {
    background: var(--new);
    color: var(--bg);
}

/* 区块 */
.section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
}

.section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 趋势标签 */
.trend-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.trend-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.trend-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.trend-tab.active {
    color: var(--primary);
    background: rgba(254, 44, 85, 0.1);
}

/* 列表项 */
.hot-list, .trend-list, .cross-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-item, .trend-item, .cross-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.hot-item:hover, .trend-item:hover, .cross-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
    transform: translateX(5px);
}

.rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-right: 15px;
    flex-shrink: 0;
}

.rank.top3 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
}

.rank.top10 {
    background: var(--primary);
    color: white;
}

.rank.other {
    background: var(--border);
    color: var(--text-secondary);
}

.content {
    flex: 1;
    min-width: 0;
}

.title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tag {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(37, 244, 238, 0.1);
    color: var(--secondary);
}

.tag.tech { background: rgba(0, 210, 106, 0.1); color: #00d26a; }
.tag.life { background: rgba(255, 165, 2, 0.1); color: #ffa502; }
.tag.travel { background: rgba(255, 71, 87, 0.1); color: #ff4757; }
.tag.ent { background: rgba(254, 44, 85, 0.1); color: var(--primary); }

.hot-value {
    text-align: right;
    margin-left: 15px;
}

.hot-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.hot-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* 趋势变化 */
.trend-change {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
    font-weight: 600;
}

.trend-change.up {
    color: var(--up);
}

.trend-change.down {
    color: var(--down);
}

.trend-change.new {
    color: var(--new);
}

/* 跨平台特殊样式 */
.cross-platform-section {
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.05) 0%, rgba(37, 244, 238, 0.05) 100%);
    border-color: rgba(254, 44, 85, 0.2);
}

.cross-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.cross-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cross-platforms {
    display: flex;
    gap: 20px;
    padding-left: 55px;
}

.platform-info {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.platform-name {
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-name.douyin { color: var(--primary); }
.platform-name.bilibili { color: var(--secondary); }

.similarity {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: var(--new);
    color: var(--bg);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 加载更多按钮 - 新样式 */
.load-more-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin: 20px 0;
    background: linear-gradient(135deg, #fe2c55 0%, #ff6b8a 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 44, 85, 0.4);
    background: linear-gradient(135deg, #ff1f4b 0%, #ff5a7f 100%);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(254, 44, 85, 0.3);
}

.load-more-btn::after {
    content: '↓';
    margin-left: 8px;
    font-size: 14px;
}

/* 加载动画 */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.close:hover {
    color: var(--text);
}

/* 响应式 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .filters {
        align-items: stretch;
    }

    .filter-group {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .title {
        font-size: 0.9rem;
    }

    .meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}