/* style-main.css - 全站共享样式文件 */
:root {
    --color-primary: #818cf8; /* 柔和的靛蓝色 */
    --color-primary-dark: #6366f1;
    --color-danger: #f87171;
    --color-danger-dark: #ef4444;
    --color-warning: #facc15;
    --color-warning-dark: #eab308;
    --color-text: #e5e7eb; /* 亮灰色文字 */
    --color-bg: #030712; /* 深邃的藏蓝色背景 */
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden; /* 防止横向滚动 */
}

canvas#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 玻璃拟态卡片风格 */
.glass-card {
    background: rgba(17, 24, 39, 0.6); /* 半透明深灰蓝 */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2rem;
}

/* 艺术化表单输入框 */
.art-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    padding: 0.75rem 0.25rem;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.art-input:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
    transform: scale(1.02);
}

.art-input::placeholder {
    color: #6b7280; /* 暗灰色 */
}

/* 统一按钮风格 */
.btn {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* 胶囊形状 */
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 7px 25px rgba(99, 102, 241, 0.4);
}

.btn-danger { background: linear-gradient(45deg, var(--color-danger), var(--color-danger-dark)); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3); }
.btn-warning { background: linear-gradient(45deg, var(--color-warning), var(--color-warning-dark)); box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3); }

/* SweetAlert2 深色主题适配 */
.swal2-popup {
    background: #1f2937 !important;
    color: var(--color-text) !important;
    border-radius: 1rem !important;
}
.swal2-title { color: var(--color-text) !important; }
.swal2-html-container { color: #d1d5db !important; }
.swal2-input { color: var(--color-text) !important; border: 1px solid #4b5563 !important; }