/* ============================================================
   ACOUSTIC WAKE · 声学觉醒 — 共享主题样式
   ============================================================ */
:root {
    --accent-gold: #D4AF37;
    --accent-gold-soft: rgba(212, 175, 55, 0.4);
    --deep-black: #050505;
    --panel-bg: #0a0a0a;
    --panel-border: rgba(212, 175, 55, 0.1);
    --btn-radius: 2rem;
    --text-dim: #888;
    --green: #00FF00;
    --red: #ff4d4d;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--deep-black);
    color: #f0f0f0;
    font-family: 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.font-tracking { letter-spacing: 0.4em; }
.font-chinese { font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }

.text-gold { color: var(--accent-gold); }

/* ---------- 背景动画层 ---------- */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--deep-black);
    overflow: hidden;
    pointer-events: none;
}
.grid-canvas {
    position: absolute;
    top: -100px; left: -100px;
    width: calc(100% + 200px); height: calc(100% + 200px);
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.08) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.08) 1.5px, transparent 1.5px);
    background-size: 60px 60px;
    transform: rotate(-5deg);
    animation: gridMove 15s linear infinite;
}
@keyframes gridMove {
    from { transform: rotate(-5deg) translateY(0); }
    to   { transform: rotate(-5deg) translateY(60px); }
}
.radial-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.85) 100%);
}

/* ---------- 玻璃面板 ---------- */
.glass-panel {
    background: rgba(10, 10, 10, 0.62);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--panel-border);
    border-radius: 3rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

/* ---------- 高级按钮 ---------- */
.btn-premium {
    background: linear-gradient(145deg, #121212, #080808);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--btn-radius);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    cursor: pointer;
    user-select: none;
}
.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.btn-premium:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.15);
}
.btn-premium:hover::before { opacity: 1; }
.btn-premium:active { transform: scale(0.98); }
.btn-premium:disabled { opacity: 0.5; cursor: not-allowed; transform: scale(0.98); }

/* 通用小按钮 */
.btn-ghost {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.78);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-ghost:hover { border-color: var(--accent-gold); color: var(--accent-gold); transform: translateY(-2px); }
.btn-gold {
    background: var(--accent-gold);
    color: #050505;
    border: none;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,175,55,0.35); }

/* ---------- 滚动条 ---------- */
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #080808; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.3); border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.6); }

/* ---------- 弹窗 ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
    background: linear-gradient(180deg, rgba(212,175,55,0.06), rgba(8,8,8,0) 34%), #080808;
    border: 1px solid rgba(212,175,55,0.22);
    border-radius: 26px;
    padding: 28px;
    max-width: 620px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    box-shadow: 0 28px 80px rgba(0,0,0,0.62), 0 0 45px rgba(212,175,55,0.06);
}

/* ---------- 表单 ---------- */
input[type="text"], input[type="number"], select, textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #f0f0f0;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-gold); }
input::placeholder { color: #555; }

/* ---------- 状态徽章 ---------- */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.status-good { background: rgba(0,255,0,0.12); color: #00e676; border: 1px solid rgba(0,255,0,0.25); }
.status-warn { background: rgba(212,175,55,0.12); color: var(--accent-gold); border: 1px solid rgba(212,175,55,0.3); }

/* ---------- 工具类 ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.uppercase { text-transform: uppercase; }
.font-mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-12 { margin-top: 48px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.rounded-2xl { border-radius: 20px; }
.rounded-3xl { border-radius: 28px; }
.bg-black\/40 { background: rgba(0,0,0,0.4); }
.bg-white\/5 { background: rgba(255,255,255,0.05); }
.border { border: 1px solid rgba(255,255,255,0.08); }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 28px; }
.text-gray-400 { color: #aaa; }
.text-gray-500 { color: #888; }
.text-white\/40 { color: rgba(255,255,255,0.4); }

/* ---------- 加载器 ---------- */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--deep-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-hub {
    position: relative;
    width: 260px; height: 260px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transform: scale(0.8);
    z-index: 10;
}
@media (min-width: 768px) { .loader-hub { transform: scale(1); } }
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent-gold-soft);
    animation: rotate 10s linear infinite;
}
.orbit-1 { inset: 0; border-style: dashed; opacity: 0.3; }
.orbit-2 { inset: 30px; border: 1px double var(--accent-gold); opacity: 0.5; animation-direction: reverse; }
.orbit-3 { inset: 60px; border: 2px solid var(--accent-gold); clip-path: polygon(0 0, 50% 50%, 0 100%); opacity: 0.8; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.core-glow {
    width: 10px; height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 30px 10px var(--accent-gold);
    animation: heartBeat 1.5s ease-in-out infinite;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 50px 20px var(--accent-gold); }
}
#main-content { opacity: 0; display: none; }
.reveal-active { display: flex !important; opacity: 1 !important; }

/* 术语雨 */
.term-rain {
    position: absolute; top: 0; bottom: 0;
    width: 25%; max-width: 200px;
    overflow: hidden; pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    font-family: monospace; font-size: 10px; opacity: 0.25;
    z-index: 1;
}
.rain-l { left: 5%; text-align: right; }
.rain-r { right: 5%; text-align: left; }
@media (min-width: 768px) { .rain-l { left: 10%; } .rain-r { right: 10%; } }
.term-track {
    display: flex; flex-direction: column;
    animation: termScroll 60s linear infinite;
}
@keyframes termScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
