/* ============================================
   全局样式 & CSS变量
   盲盒易拉罐 - 一只打工猫的逆袭故事
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;600;700;900&display=swap');

:root {
    --bg-primary: #0f0e17;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-modal: rgba(15, 14, 23, 0.95);
    --text-primary: #fffffe;
    --text-secondary: #a7a9be;
    --accent-gold: #ffd93d;
    --accent-orange: #ff6b35;
    --accent-red: #e74c3c;
    --accent-green: #6bcb77;
    --accent-blue: #4d96ff;
    --accent-purple: #9b59b6;
    --accent-pink: #ff6b9d;
    --border-color: rgba(255, 255, 255, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-glow: 0 0 20px rgba(255, 217, 61, 0.3);
    --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

button {
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

input, select {
    font-family: var(--font-main);
}

/* 通用动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 217, 61, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 217, 61, 0.6); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(30px); }
}

/* 通用类 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.rarity-common { color: #95a5a6; }
.rarity-uncommon { color: #2ecc71; }
.rarity-rare { color: #3498db; }
.rarity-epic { color: #9b59b6; }
.rarity-legendary { color: #f39c12; }
.rarity-mythical { color: #e74c3c; }
.rarity-supreme { color: #ffd93d; text-shadow: 0 0 10px rgba(255, 217, 61, 0.5); }
