/* 基础样式重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* 通用按钮样式 */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

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

/* 通用链接样式 */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* 工具类 */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* 温和警告提示 */
.gentle-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 10000;
    max-width: 500px;
    opacity: 0;
    transition: all 0.3s ease;
}

.gentle-warning.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.gentle-warning-content {
    background: #fff4e6;
    border: 2px solid #ffa726;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.gentle-warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.gentle-warning-message {
    color: #e65100;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.gentle-warning-close {
    background: none;
    border: none;
    color: #e65100;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.gentle-warning-close:hover {
    background: rgba(255, 152, 0, 0.1);
}

/* 简单的黑底灰字提示 */
.simple-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    color: #ccc;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.simple-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

