/* ============================================
   ZhongShiYao Live - Modern Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #f43f5e;
    --accent-glow: rgba(244, 63, 94, 0.4);
    --success: #10b981;
    --warning: #f59e0b;
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #1e1e35;
    --bg-card-hover: #252545;
    --bg-glass: rgba(30, 30, 53, 0.85);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(99, 102, 241, 0.2);
    --border-hover: rgba(99, 102, 241, 0.5);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Utility --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.clearfix::after { content: ''; display: table; clear: both; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Animations --- */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px var(--accent-glow); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* --- Live Badge --- */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}
.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}
.live-badge.offline {
    background: var(--text-muted);
    animation: none;
}
.live-badge.offline::before { animation: none; }

/* --- Viewer Count --- */
.viewer-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    background: rgba(0,0,0,0.4);
    padding: 2px 8px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}
.viewer-count svg { width: 12px; height: 12px; }

/* --- Button Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}
.btn-accent {
    background: linear-gradient(135deg, var(--accent), #e11d48);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}
.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    border-color: var(--border-hover);
    background: rgba(99, 102, 241, 0.15);
}
.btn-follow {
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 20px;
}
.btn-follow:hover { background: var(--primary-light); }
.btn-follow.following {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* --- Coin Display --- */
.coin-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
}
.coin-display::before {
    content: '💰';
    font-size: 12px;
}

/* --- Page Banner (列表页顶部) --- */
.page-banner {
    padding: 32px 0 8px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%);
}
.page-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.page-title i { color: var(--primary-light); }

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 36px 0 8px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-1px);
}
.pagination .current, .pagination span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* --- Tag/Badges --- */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.tag-hot {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent);
    border-color: rgba(244, 63, 94, 0.3);
}
