/* ===== 人生模拟器 - 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #0a0e1a;
    color: #e0e0e0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* 玻璃卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 动画脉冲 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(79, 195, 247, 0.3); }
    50% { box-shadow: 0 0 20px rgba(79, 195, 247, 0.6); }
}

.fade-in { animation: fadeIn 0.5s ease; }
.slide-up { animation: slideUp 0.6s ease; }

/* 滚动条 */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* 输入框通用 */
input, select, textarea {
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}
input:focus, select:focus {
    border-color: rgba(79, 195, 247, 0.4);
    box-shadow: 0 0 15px rgba(79, 195, 247, 0.1);
}

/* 按钮通用 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary {
    background: linear-gradient(135deg, #c9a84c, #d4b85a);
    color: #0a0e1a;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}
.btn-danger {
    background: linear-gradient(135deg, #f44336, #ff7043);
    color: #fff;
}
.btn-ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}
.btn-ghost:hover {
    background: rgba(79, 195, 247, 0.12);
    border-color: rgba(79, 195, 247, 0.3);
    color: #fff;
}
