/* 通用样式 - Alpha积分管理系统 */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei',
                 Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: #0b1120;
    color: #f8fafc;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 通用按钮样式 */
button {
    font-family: inherit;
    cursor: pointer;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

button:active {
    transform: scale(0.98);
}

/* 输入框通用样式 */
input,
textarea,
select {
    font-family: inherit;
    outline: none;
}

/* 链接样式 */
a {
    color: inherit;
    text-decoration: none;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

/* 文字选择颜色 */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #f1f5f9;
}

/* 通用动画类 */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 移动端优化 */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    button,
    .clickable {
        min-height: 44px;
        min-width: 44px;
    }
}

/* 暗色主题变量 */
:root {
    --color-bg-primary: #0b1120;
    --color-bg-secondary: #111827;
    --color-bg-tertiary: #1f2937;

    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5f5;
    --color-text-muted: #94a3b8;

    --color-accent-primary: #6366f1;
    --color-accent-secondary: #8b5cf6;

    --color-success: #22c55e;
    --color-danger: #f87171;
    --color-warning: #fbbf24;
    --color-info: #60a5fa;

    --shadow-sm: 0 1px 2px rgba(8, 13, 23, 0.45);
    --shadow-md: 0 8px 18px rgba(8, 13, 23, 0.45);
    --shadow-lg: 0 24px 48px rgba(8, 13, 23, 0.55);

    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.45s ease;
}
