/* 视图模式切换器样式 */
.view-mode-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-mode-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.view-mode-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.view-mode-btn i {
    font-size: 1rem;
}

/* 市场概览统计 */
.markets-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.overview-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.overview-stat i {
    font-size: 2rem;
    color: #667eea;
    opacity: 0.8;
}

.overview-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.overview-stat .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 分类标签页 */
.category-tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.category-tabs-list::-webkit-scrollbar {
    height: 6px;
}

.category-tabs-list::-webkit-scrollbar-track {
    background: transparent;
}

.category-tabs-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-tab i {
    font-size: 1rem;
}

.category-tab .count {
    padding: 0.125rem 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-tab.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* 标准模式网格 */
.markets-grid.standard-mode {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.market-card.standard {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.market-card.standard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.market-card.standard .market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.market-card.standard .market-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    color: #667eea;
}

.market-card.standard .hot-badge {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #f5576c 0%, #ff6b6b 100%);
    border-radius: 12px;
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
}

.market-card.standard .market-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.market-card.standard .market-stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.market-card.standard .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.market-card.standard .stat-item i {
    color: #667eea;
}

.market-card.standard .stat-item.apy {
    color: #43e97b;
    font-weight: 600;
}

.market-card.standard .market-odds {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.market-card.standard .odds-item {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
}

.market-card.standard .odds-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.market-card.standard .odds-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.market-card.standard .odds-percentage {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.market-card.standard .market-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.market-card.standard .creator-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-card.standard .creator-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.market-card.standard .end-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .view-mode-switcher {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .view-mode-btn span {
        display: none;
    }

    .view-mode-btn {
        padding: 0.5rem;
    }

    .markets-overview {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .category-tabs-list {
        gap: 0.375rem;
        padding: 0.375rem;
    }

    .category-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .markets-grid.standard-mode {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .overview-stat i {
        font-size: 1.5rem;
    }

    .overview-stat .stat-value {
        font-size: 1.25rem;
    }
}
