:root {
    --bili-pink: #FB7299;
    --bili-blue: #00A1D6;
    --bg-dark: #0f1115;
    --panel-bg: rgba(22, 24, 29, 0.85);
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --danger: #ef4444;
    --success: #22c55e;
    --font-mono: 'Fira Code', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'PingFang SC', sans-serif; }

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 15% 50%, rgba(0, 161, 214, 0.08), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(251, 114, 153, 0.08), transparent 25%);
    color: var(--text-main);
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; overflow: hidden; position: relative;
}

/* 赛博光晕动态背景 */
body::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 161, 214, 0.05), rgba(251, 114, 153, 0.05), transparent 30%);
    animation: rotate 15s linear infinite; z-index: 0; pointer-events: none;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }

.app-container {
    position: relative; z-index: 10;
    width: 90%; max-width: 900px;
    background: var(--panel-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    padding: 40px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.header { text-align: center; margin-bottom: 20px; }
.header h1 {
    font-size: 32px; letter-spacing: 2px; font-weight: 900;
    background: linear-gradient(90deg, var(--bili-pink), var(--bili-blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.subtitle { font-size: 12px; color: var(--text-muted); margin-top: 5px; letter-spacing: 1px; }

/* 免责声明样式 */
.disclaimer {
    font-size: 12px; color: var(--text-muted); text-align: center;
    background: rgba(0, 0, 0, 0.3); padding: 10px; border-radius: 8px;
    margin-bottom: 20px; border: 1px dashed rgba(255,255,255,0.1);
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.stat-card { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); padding: 15px; border-radius: 12px; text-align: center; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.stat-value { font-size: 24px; font-weight: bold; font-family: var(--font-mono); transition: color 0.3s; }
#ui-fans { color: var(--bili-pink); }

.progress-track { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s; }
#bar-hair { background-color: var(--bili-blue); width: 100%; }
#bar-spirit { background-color: var(--bili-pink); width: 100%; }

.console {
    background: #000; border: 1px solid rgba(0, 161, 214, 0.3); border-radius: 12px;
    padding: 20px; height: 160px; font-family: var(--font-mono); font-size: 14px; line-height: 1.8;
    color: #10b981; overflow-y: auto; margin-bottom: 25px; box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}
.console p { margin-bottom: 5px; animation: fadeIn 0.3s ease; }
.console span { color: var(--text-muted); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.console::-webkit-scrollbar { width: 6px; }
.console::-webkit-scrollbar-thumb { background: var(--bili-blue); border-radius: 3px; }
.console::-webkit-scrollbar-track { background: transparent; }

.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.btn {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: white;
    padding: 15px; border-radius: 12px; font-size: 15px; font-weight: bold; cursor: pointer;
    transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-video:hover { border-color: var(--bili-blue); box-shadow: 0 0 15px rgba(0, 161, 214, 0.3); }
.btn-trend:hover { border-color: var(--bili-pink); box-shadow: 0 0 15px rgba(251, 114, 153, 0.3); }
.btn-rest:hover { border-color: var(--success); box-shadow: 0 0 15px rgba(34, 197, 94, 0.3); }

.over-screen { display: none; flex-direction: column; align-items: center; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.certificate {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a); border: 2px solid var(--bili-pink);
    padding: 30px; border-radius: 16px; width: 100%; text-align: center; margin-bottom: 20px; position: relative; overflow: hidden;
}
.cert-title { color: var(--bili-pink); font-size: 24px; font-weight: bold; margin-bottom: 15px; }
.cert-content { font-size: 16px; line-height: 1.8; color: #ddd; margin-bottom: 20px; }
.cert-stats { display: flex; justify-content: space-around; font-family: var(--font-mono); color: var(--bili-blue); font-weight: bold; }
.share-hint { color: var(--bili-pink); font-size: 14px; margin-bottom: 15px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.btn-restart { background: linear-gradient(90deg, var(--bili-pink), var(--bili-blue)); border: none; padding: 12px 40px; border-radius: 30px; color: white; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-restart:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(251, 114, 153, 0.5); }
.hidden { display: none !important; }
