
:root {
    --primary: #3f4552;
    --secondary: #5a6270;
    --accent: #3f4552;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #1f2937;
    --text-muted: #6b7280;
    --bg: #eef1f6;
    --bg-card: rgba(255, 255, 255, 0.55);
    --border: rgba(255, 255, 255, 0.75);
    --gradient-1: #eef1f6;
    --gradient-2: rgba(255, 255, 255, 0.55);
    --gradient-3: #eef1f6;
    --gradient-4: rgba(255, 255, 255, 0.55);
}

body {
                /* 注意：!important 只能放在整条 shorthand 末尾 */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.4) 100%), url('../uploads/background/20260906094605_6a9cc5dd94089.png') center/cover no-repeat fixed !important;
        color: #1f2937;
        color: #1f2937;
}

.content-card, .card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-primary {
    background: linear-gradient(135deg, #3f4552, #5a6270);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #1f2937;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #3f4552;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
textarea,
select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #1f2937;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #3f4552;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.nav-bar,
.floating-top-nav {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}

.nav-action-btn,
.nav-icon {
    color: #6b7280;
}

.nav-action-btn:hover,
.nav-icon:hover {
    color: #3f4552;
}

a {
    color: #3f4552;
}

a:hover {
    color: #3f4552;
}

::-webkit-scrollbar-thumb {
    background: #3f4552;
}

::-webkit-scrollbar-track {
    background: #eef1f6;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
    color: #22c55e;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #f59e0b;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

.alert-info {
    background: rgba(99, 102, 241, 0.15);
    border-color: #3f4552;
    color: #3f4552;
}

/* ===== 模板样式二：纯白液态玻璃覆盖层（置于末尾以覆盖前述规则与页面内联样式） ===== */
html body .content-card, html body .card, html body .glass,
html body .product-card, html body .product-card-new, html body .category-card,
html body .staff-card, html body .order-card, html body .stat-card,
html body .info-card, html body .panel, html body .modal-content,
html body .section-header, html body .empty-state-new {
    background: rgba(255, 255, 255, 0.55) !important;
    -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
    backdrop-filter: blur(22px) saturate(165%) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 36px -16px rgba(31, 41, 55, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    color: #1f2937 !important;
}

/* 顶部导航栏玻璃化 */
html body .nav-bar, html body .floating-top-nav, html body .top-nav, html body header.nav {
    background: rgba(255, 255, 255, 0.62) !important;
    -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
    backdrop-filter: blur(24px) saturate(170%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75) !important;
    box-shadow: none !important;
}

/* 输入控件玻璃化 */
html body input[type="text"],
html body input[type="number"],
html body input[type="email"],
html body input[type="password"],
html body input[type="tel"],
html body textarea, html body select {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    color: #1f2937 !important;
    border-radius: 12px !important;
}
html body input:focus, html body textarea:focus, html body select:focus {
    border-color: rgba(63, 69, 82, 0.35) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6) !important;
}
html body input::placeholder, html body textarea::placeholder {
    color: #9ca3af !important;
}

/* 主按钮：白色玻璃 + 深灰字（无橙无蓝） */
html body .btn-primary {
    background: rgba(255, 255, 255, 0.7) !important;
    -webkit-backdrop-filter: blur(16px) saturate(165%) !important;
    backdrop-filter: blur(16px) saturate(165%) !important;
    color: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 20px -8px rgba(31, 41, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
html body .btn-primary:hover { background: rgba(255, 255, 255, 0.85) !important; }

/* 链接与文字：中性深灰 */
html body a { color: #3f4552 !important; }
html body a:hover { color: #1f2937 !important; }

/* 中和模板一的彩色渐变元素（页面级 header/banner/hero 等） */
html body .nav-logo {
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    background: none !important;
}
html body ::-webkit-scrollbar-thumb { background: rgba(63, 69, 82, 0.4) !important; }
html body ::-webkit-scrollbar-track { background: transparent !important; }

/* 弹窗 / 遮罩玻璃化 */
html body .modal, html body .overlay, html body .popup {
    background: rgba(255, 255, 255, 0.7) !important;
    -webkit-backdrop-filter: blur(28px) saturate(170%) !important;
    backdrop-filter: blur(28px) saturate(170%) !important;
}
