/* ============================================================
   礼包生产智能管理系统 — MES 深色工业主题 v4.0
   设计规范：深蓝主色 + 青色高亮，玻璃拟态卡片，工业仪表盘风格
   ============================================================ */

:root {
    --bg-primary: #080c14;
    --bg-secondary: #0f1623;
    --bg-card: rgba(15, 22, 35, 0.88);
    --border-color: rgba(0, 212, 255, 0.12);
    --neon-blue: #00d4ff;
    --neon-purple: #9d4edd;
    --success-green: #00ff9d;
    --warning-red: #ff2e63;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glass-bg: rgba(15, 22, 35, 0.75);
    --glass-border: rgba(0, 212, 255, 0.18);
    --glass-border-strong: rgba(0, 212, 255, 0.3);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-blue: 0 0 24px rgba(0, 212, 255, 0.15);
    --shadow-purple: 0 0 24px rgba(157, 78, 221, 0.12);
    --shadow-hover: 0 8px 40px rgba(0, 212, 255, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 全局背景光晕 */
body::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(157, 78, 221, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 255, 157, 0.04) 0%, transparent 50%);
    pointer-events: none; z-index: 0;
}

/* ============================================================ */
/* 页面容器 */
/* ============================================================ */
.page-view { display: none; position: relative; z-index: 1; }
.app-container { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 16px; }

/* ============================================================ */
/* 头部 */
/* ============================================================ */
.app-header { text-align: center; padding: 0 16px 16px; margin-bottom: 0; position: relative; }
.app-header .header-icon { display: inline-block; margin-bottom: 12px; }
.app-header h1 {
    font-size: 45px; font-weight: 700; margin-top: -56px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 3px; margin-bottom: 6px;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}
.app-header .subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.header-divider {
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), transparent);
    opacity: 0.4;
}
.header-divider.admin-divider {
    background: linear-gradient(90deg, transparent, var(--neon-purple), var(--neon-blue), transparent);
}
.header-divider.super-divider {
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), var(--warning-red), transparent);
}

.header-top { display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 8px; }

/* ============================================================ */
/* 角色标识 */
/* ============================================================ */
.role-badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
}
.role-operator {
    background: rgba(0, 212, 255, 0.12); color: var(--neon-blue);
    border: 1px solid rgba(0, 212, 255, 0.3);
}
.role-admin {
    background: rgba(157, 78, 221, 0.12); color: var(--neon-purple);
    border: 1px solid rgba(157, 78, 221, 0.3);
}
.role-super_admin {
    background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(157,78,221,0.12));
    color: var(--neon-blue); border: 1px solid rgba(0,212,255,0.35);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}
.factory-code-badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    background: rgba(255, 214, 10, 0.12); color: var(--neon-yellow);
    border: 1px solid rgba(255, 214, 10, 0.3);
}

/* ============================================================ */
/* 导航 */
/* ============================================================ */
.nav-tabs {
    display: flex; gap: 6px; padding: 6px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: var(--radius-md); margin-bottom: 24px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.nav-tab {
    flex: 1; min-width: 80px; padding: 12px 8px; text-align: center;
    border: none; background: transparent; color: var(--text-secondary);
    font-size: 14px; font-weight: 500; cursor: pointer; border-radius: var(--radius-sm);
    transition: all 0.3s ease; white-space: nowrap; position: relative;
}
.nav-tab:hover { color: var(--text-primary); background: rgba(0, 212, 255, 0.08); }
.nav-tab.active {
    background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(157,78,221,0.2));
    color: var(--neon-blue); font-weight: 600;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}
.nav-tab.active::after {
    content: ''; position: absolute; bottom: -7px; left: 25%; right: 25%; height: 3px;
    background: var(--neon-blue); border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
}

/* ============================================================ */
/* 玻璃态卡片 */
/* ============================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), var(--neon-purple), transparent);
    opacity: 0.5;
}
.glass-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card-title {
    font-size: 18px; font-weight: 600; color: var(--neon-blue);
    margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
    padding-left: 14px; position: relative;
}
.card-title::before {
    content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
    border-radius: 2px;
}

/* ============================================================ */
/* 按钮 */
/* ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; min-height: 44px; text-decoration: none;
    position: relative; overflow: hidden;
}
/* 水波纹效果 */
.btn::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s;
}
.btn:active::after { width: 300px; height: 300px; }

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), #0099cc);
    color: #0a0e17; box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(0, 212, 255, 0.55); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-success {
    background: linear-gradient(135deg, var(--success-green), #00cc7a);
    color: #0a0e17; box-shadow: 0 0 20px rgba(0, 255, 157, 0.35);
}
.btn-success:hover { box-shadow: 0 0 30px rgba(0, 255, 157, 0.55); transform: translateY(-1px); }

.btn-danger {
    background: linear-gradient(135deg, var(--warning-red), #cc0044);
    color: white; box-shadow: 0 0 20px rgba(255, 46, 99, 0.35);
}
.btn-danger:hover { box-shadow: 0 0 30px rgba(255, 46, 99, 0.55); transform: translateY(-1px); }

.btn-secondary {
    background: var(--glass-bg); color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover { border-color: var(--neon-blue); box-shadow: var(--shadow-blue); }

.btn-sm { padding: 6px 14px; font-size: 13px; min-height: 36px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* 退出按钮 */
.btn-logout {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; background: rgba(255, 46, 99, 0.08);
    border: 1px solid rgba(255, 46, 99, 0.2); border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 13px; cursor: pointer;
    transition: all 0.3s ease;
}
.btn-logout:hover {
    background: rgba(255, 46, 99, 0.18); border-color: var(--warning-red);
    color: var(--warning-red); box-shadow: 0 0 16px rgba(255, 46, 99, 0.2);
}

/* ============================================================ */
/* KPI 概览 */
/* ============================================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.kpi-card {
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.16);
    border-radius: var(--radius-md); padding: 18px 16px;
    text-align: center; position: relative; overflow: hidden;
    transition: all 0.3s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.16);
    border-color: rgba(0, 212, 255, 0.35);
}
.kpi-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0.35;
}
.kpi-icon { margin-bottom: 8px; opacity: 0.9; }
.kpi-value {
    font-size: 32px; font-weight: 700; line-height: 1.2;
    background: linear-gradient(135deg, var(--neon-blue), #0088cc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.kpi-value.green {
    background: linear-gradient(135deg, #00cc7a, var(--success-green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.kpi-value.red {
    background: linear-gradient(135deg, #cc0044, var(--warning-red));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.kpi-value.purple {
    background: linear-gradient(135deg, var(--neon-purple), #5a189a);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.kpi-label { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }

/* ============================================================ */
/* 表单 */
/* ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; color: var(--text-secondary);
    font-size: 13px; margin-bottom: 6px;
}
.form-control {
    width: 100%; padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 15px; outline: none;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
}
.form-control::placeholder { color: var(--text-secondary); opacity: 0.5; }
.form-control[readonly] { opacity: 0.7; cursor: default; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
select.form-control { cursor: pointer; }

/* ============================================================ */
/* 表格 */
/* ============================================================ */
.table-container {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: 12px; border: 1px solid var(--glass-border);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
    background: rgba(0, 212, 255, 0.08);
    color: var(--neon-blue); padding: 10px 12px;
    text-align: left; font-weight: 600; white-space: nowrap;
}
td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
tr:hover td { background: rgba(0, 212, 255, 0.04); }
tr.fefo-active td {
    background: rgba(0, 255, 157, 0.08) !important;
    border-left: 3px solid var(--success-green);
}
tr.expiry-warning td {
    background: rgba(255, 46, 99, 0.12) !important;
    border-left: 3px solid var(--warning-red);
}
tr.expiry-warn td { background: rgba(255, 46, 99, 0.1) !important; }

/* ============================================================ */
/* 扫码 */
/* ============================================================ */
.scanner-section { text-align: center; }
.scanner-video-container {
    position: relative; width: 100%; max-width: 420px; margin: 0 auto 16px;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.25);
    background: #000; aspect-ratio: 4/3;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.12), inset 0 0 20px rgba(0, 0, 0, 0.5);
}
#scannerVideo, #asmScannerVideo { width: 100%; height: 100%; object-fit: cover; }
.scanner-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid var(--neon-blue); border-radius: 16px; pointer-events: none;
    box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.06);
}
.scanner-overlay::after {
    content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: scanLine 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
}
@keyframes scanLine {
    0% { top: 5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 92%; opacity: 0; }
}

/* ============================================================ */
/* 组装助手 */
/* ============================================================ */
.assembly-status {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.asm-ready {
    background: rgba(0, 255, 157, 0.1); border: 1px solid var(--success-green);
    border-radius: 12px; padding: 16px; text-align: center;
    color: var(--success-green); font-weight: 600; font-size: 16px;
}
.asm-insufficient {
    background: rgba(255, 46, 99, 0.1); border: 1px solid var(--warning-red);
    border-radius: 12px; padding: 16px; text-align: center;
    color: var(--warning-red); font-weight: 600; font-size: 16px;
}

/* ============================================================ */
/* 库存看板 */
/* ============================================================ */
.inv-group { margin-bottom: 24px; }
.inv-group-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}
.inv-pkg-name { font-size: 16px; font-weight: 600; color: var(--neon-purple); }

/* ============================================================ */
/* 扫描结果 */
/* ============================================================ */
.scanner-result { padding: 16px; border-radius: 12px; margin-top: 12px; font-size: 15px; font-weight: 600; }
.scan-success {
    background: rgba(0, 255, 157, 0.1); border: 1px solid var(--success-green);
    border-radius: var(--radius-sm); padding: 12px;
    color: var(--success-green); font-weight: 600;
}
.scan-fail {
    background: rgba(255, 46, 99, 0.1); border: 1px solid var(--warning-red);
    border-radius: var(--radius-sm); padding: 12px;
    color: var(--warning-red); font-weight: 600;
}

/* ============================================================ */
/* 标签 */
/* ============================================================ */
.tag {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 12px; font-weight: 600;
}
.tag-success { background: rgba(0, 255, 157, 0.12); color: var(--success-green); }
.tag-danger { background: rgba(255, 46, 99, 0.12); color: var(--warning-red); }

/* ============================================================ */
/* 弹窗 */
/* ============================================================ */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    z-index: 10000; padding: 16px;
}
.modal-overlay[style*="display: flex"] { display: flex !important; }
.modal-content {
    background: var(--bg-secondary); border: 1px solid var(--glass-border-strong);
    border-radius: 16px; padding: 24px; width: 100%; max-width: 600px;
    max-height: 80vh; overflow-y: auto;
    animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title { font-size: 18px; font-weight: 600; color: var(--neon-blue); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: flex-end; }

.modal-box { background: var(--bg-secondary); border: 1px solid var(--glass-border-strong); border-radius: 16px; padding: 24px; width: 100%; animation: modalSlideIn 0.25s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-size: 18px; font-weight: 600; color: var(--neon-blue); }
.modal-close { background: none; border: none; color: var(--text-tertiary); font-size: 24px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { margin-bottom: 20px; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; }
.form-input { width: 100%; padding: 8px 14px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-primary); font-size: 14px; outline: none; box-sizing: border-box; }
.form-input:focus { border-color: var(--neon-blue); }

/* ============================================================ */
/* Toast */
/* ============================================================ */
.toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 11000;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    padding: 12px 20px; border-radius: var(--radius-sm); font-size: 14px;
    font-weight: 500; color: white; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.3s ease; max-width: 360px;
}
.toast.success { background: linear-gradient(135deg, #00cc7a, var(--success-green)); color: #0a0e17; }
.toast.error { background: linear-gradient(135deg, #cc0044, var(--warning-red)); }
.toast.info { background: linear-gradient(135deg, #005580, var(--neon-blue)); }
.toast.warn { background: linear-gradient(135deg, #cc8800, #ffaa00); color: #0a0e17; }
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================================ */
/* 加载动画 */
/* ============================================================ */
.loading-spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 2px solid var(--glass-border); border-top-color: var(--neon-blue);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ */
/* 空状态 */
/* ============================================================ */
.empty-hint { text-align: center; color: var(--text-secondary); padding: 32px 16px; font-size: 14px; }

/* ============================================================ */
/* 页脚 */
/* ============================================================ */
.app-footer {
    text-align: center; padding: 24px 16px; color: var(--text-muted);
    font-size: 12px; border-top: 1px solid var(--glass-border); margin-top: 40px;
}

/* ============================================================ */
/* 工厂标签 */
/* ============================================================ */
.factory-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 6px 14px; margin: 4px 6px 4px 0;
    font-size: 13px; color: var(--text-primary);
    transition: all 0.2s ease;
}
.factory-chip:hover { border-color: var(--neon-blue); box-shadow: var(--shadow-blue); }
.chip-del {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 14px; font-weight: 700;
    padding: 0 2px; line-height: 1; transition: color 0.2s;
}
.chip-del:hover { color: var(--warning-red); }
.chip-edit {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 13px; padding: 0 2px;
    line-height: 1; transition: color 0.2s;
}
.chip-edit:hover { color: var(--neon-blue); }

/* 工厂只读列表 */
.factory-list-readonly {
    display: flex; flex-wrap: wrap; gap: 4px;
}
.factory-list-readonly .factory-chip { cursor: default; }
.factory-list-readonly .factory-chip:hover { border-color: var(--glass-border); box-shadow: none; }

/* ============================================================ */
/* 管理后台布局 */
/* ============================================================ */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
}
.admin-card { max-width: none; }

/* 警告区卡片 */
.admin-card-warn { border-color: rgba(255, 46, 99, 0.2); }
.admin-card-warn::before {
    background: linear-gradient(90deg, transparent, rgba(255,46,99,0.5), transparent) !important;
}

.admin-hint {
    color: var(--text-muted); font-size: 12px; margin-top: 10px;
    font-style: italic;
}

/* 密码修改行 */
.change-pw-row {
    display: flex; gap: 12px; flex-wrap: wrap; align-items: end;
}

/* 密码管理分组 */
.pw-section { text-align: left; }
.pw-section-title {
    font-size: 14px; font-weight: 600; color: var(--neon-purple);
    margin-bottom: 8px;
}

/* 品项内容物行 */
.pkg-item-row {
    display: flex; gap: 8px; align-items: center; margin-bottom: 8px;
}

/* ============================================================ */
/* 登录页面 */
/* ============================================================ */
.login-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.login-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(0, 255, 157, 0.05) 0%, transparent 50%),
        var(--bg-primary);
    z-index: 0;
}
.login-container {
    position: relative; z-index: 1; text-align: center;
    max-width: 520px; width: 100%;
    animation: loginFadeIn 0.8s ease;
}
@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.login-logo { margin-bottom: 28px; position: relative; display: flex; justify-content: center; }
.logo-glow {
    width: 104px; height: 104px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.25), transparent 70%);
    position: absolute; top: -13px;
}
.logo-box { width: 83px; height: 73px; position: relative; display: flex; flex-direction: column; align-items: center; }
.logo-box-body {
    width: 73px; height: 47px;
    background: linear-gradient(135deg, var(--neon-blue), #0088cc);
    border-radius: 8px; position: absolute; bottom: 0;
    box-shadow: 0 0 32px rgba(0, 212, 255, 0.5);
}
.logo-box-lid {
    width: 83px; height: 21px;
    background: linear-gradient(135deg, #00e0ff, var(--neon-blue));
    border-radius: 5px 5px 0 0; position: absolute; top: 0;
    box-shadow: 0 2px 16px rgba(0, 212, 255, 0.6);
}
.logo-box-ribbon-h {
    width: 73px; height: 5px; background: var(--neon-purple);
    position: absolute; top: 31px; opacity: 0.9;
}
.logo-box-ribbon-v {
    width: 5px; height: 47px; background: var(--neon-purple);
    position: absolute; top: 21px; left: 34px; opacity: 0.9;
}
.logo-box-bow-left, .logo-box-bow-right {
    width: 18px; height: 13px; background: var(--neon-purple);
    border-radius: 50%; position: absolute; top: 26px;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.6);
}
.logo-box-bow-left { left: 13px; transform: rotate(-20deg); }
.logo-box-bow-right { right: 13px; transform: rotate(20deg); }

/* 登录标题 */
.login-title {
    font-size: 28px; font-weight: 700;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 10px; letter-spacing: 3px;
}
.login-welcome { color: var(--text-secondary); font-size: 18px; margin-bottom: 6px; }
.login-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 36px; opacity: 0.7; }

/* 登录表单 */
.login-form { margin-bottom: 24px; }
.login-input-wrapper { position: relative; margin-bottom: 20px; }
.login-input-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: var(--text-secondary); display: flex; align-items: center;
}
.login-input {
    width: 100%; padding: 16px 16px 16px 52px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border); border-radius: 12px;
    color: var(--text-primary); font-size: 16px; outline: none;
    transition: all 0.3s ease;
}
.login-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}
.login-input::placeholder { color: var(--text-secondary); opacity: 0.5; }

.login-btn {
    width: 100%; padding: 16px 24px;
    background: linear-gradient(135deg, var(--neon-blue), #0099cc);
    border: none; border-radius: 12px;
    color: #0a0e17; font-size: 17px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 10px; transition: all 0.3s ease;
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}
.login-btn:hover {
    box-shadow: 0 0 36px rgba(0, 212, 255, 0.55);
    transform: translateY(-2px);
}
.login-btn:active { transform: translateY(0); }

.login-hint { color: var(--neon-blue); font-size: 13px; text-align: center; margin-top: 12px; }
.login-hint a.forgot-link { color: var(--neon-blue); text-decoration: none; }
.login-hint a.forgot-link:hover { color: #66e3ff; text-decoration: underline; }

/* ============================================================ */
/* 响应式 */
/* ============================================================ */
@media (max-width: 768px) {
    .app-container { padding: 2px; }
    .app-header h1 { font-size: 33px; margin-top: -40px; letter-spacing: 1px; }
    .nav-tab { font-size: 12px; padding: 8px 4px; min-width: 60px; }
    .nav-tab.active::after { bottom: -5px; height: 2px; }
    .glass-card { padding: 16px; border-radius: 12px; }
    .card-title { font-size: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .btn { min-height: 48px; font-size: 15px; }
    td, th { padding: 8px 6px; font-size: 12px; }
    .toast-container { top: auto; bottom: 20px; right: 12px; left: 12px; }
    .toast { max-width: 100%; }
    .admin-grid { grid-template-columns: 1fr; gap: 16px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .kpi-card { padding: 14px 10px; }
    .kpi-value { font-size: 24px; }
    .kpi-label { font-size: 12px; }
    .login-container { padding: 0 8px; }

    /* 成品出库 - 移动端大按钮大输入框 */
    .ob-input { min-height: 48px; font-size: 16px; padding: 10px 12px; }
    .ob-submit-btn { min-height: 48px; font-size: 16px; width: 100%; }
}

@media (min-width: 769px) {
    .dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
}

@media print {
    body { background: white; color: black; }
    .nav-tabs, .btn, .app-header, .app-footer { display: none !important; }
    .glass-card { background: white; border: 1px solid #ccc; }
}

/* ============================================================ */
/*  员工操作页 — 功能模块卡片 */
/* ============================================================ */
.module-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.admin-module-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.module-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--success-green));
    opacity: 0;
    transition: opacity 0.3s;
}

.module-card:hover {
    border-color: var(--glass-border-strong);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.module-card:hover::before { opacity: 1; }

.module-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.3s;
}

.module-card:hover .module-card-icon {
    background: rgba(0, 212, 255, 0.14);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.module-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.module-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.module-card-arrow {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: var(--neon-blue);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s;
}

.module-card:hover .module-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================ */
/*  头部按钮：管理员锁 / 超级管理员星 */
/* ============================================================ */
.btn-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(157, 78, 221, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(157, 78, 221, 0.1);
    color: #b388ff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-lock:hover {
    background: rgba(157, 78, 221, 0.2);
    border-color: rgba(157, 78, 221, 0.55);
    box-shadow: 0 0 16px rgba(157, 78, 221, 0.2);
    color: #d0b0ff;
}

.btn-superadmin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-superadmin:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
    color: #ffe44d;
}

.btn-return {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--neon-blue);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-return:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--neon-blue);
}

/* ============================================================ */
/*  小型弹窗（密码验证 / 找回） */
/* ============================================================ */
.modal-sm {
    max-width: 400px;
    width: 90%;
}

.modal-forgot-link {
    font-size: 13px;
    color: var(--neon-blue);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    margin-right: auto;
}

.modal-forgot-link:hover {
    color: #66e3ff;
    text-decoration: underline;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.recovery-hint {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

#recoveryResult {
    border: 1px solid var(--glass-border);
}

/* ============================================================ */
/*  登录页忘记密码链接 */
/* ============================================================ */
.forgot-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #66e3ff;
    text-decoration: underline;
}

/* ============================================================ */
/*  响应式 — 员工操作页 */
/* ============================================================ */
@media (max-width: 768px) {
    .module-cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 16px 0;
    }
    .admin-module-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 16px 0;
    }

    .module-card {
        padding: 20px 16px;
    }

    .module-card-icon {
        width: 60px;
        height: 60px;
    }

    .module-card-title {
        font-size: 16px;
    }

    .btn-lock, .btn-superadmin, .btn-return {
        padding: 6px 10px;
        font-size: 12px;
    }

    .btn-lock span, .btn-superadmin span, .btn-return span, .btn-logout span {
        display: none;
    }

    .btn-lock, .btn-superadmin, .btn-return, .btn-logout {
        padding: 8px;
        min-width: 36px;
        justify-content: center;
    }
}

/* ============================================================
   物料领入弹窗
============================================================ */
.mr-overlay {
    display: none;
    position: fixed; inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.75);
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn .25s ease;
}
.mr-panel {
    width: min(92vw, 1100px);
    max-height: 92vh;
    background: #1a1d2a;
    border: 1px solid #2a2d3a;
    border-radius: 16px;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    animation: slideUp .3s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.mr-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #2a2d3a;
    flex-shrink: 0;
}
.mr-header-left {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 600; color: #e0e0e0;
}
.mr-close {
    width: 36px; height: 36px;
    background: none; border: 1px solid #333; border-radius: 8px;
    color: #999; font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.mr-close:hover { color: #fff; border-color: #666; background: #252836; }

/* Tabs */
.mr-tabs {
    display: flex; gap: 0;
    padding: 0 24px; flex-shrink: 0;
    border-bottom: 1px solid #2a2d3a;
}
.mr-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 20px;
    background: none; border: none; border-bottom: 2px solid transparent;
    color: #777; font-size: 14px; cursor: pointer;
    transition: all .25s;
}
.mr-tab:hover { color: #aaa; }
.mr-tab.active {
    color: #00d4ff; border-bottom-color: #00d4ff;
}

/* Body */
.mr-body {
    padding: 20px 24px; flex-shrink: 0;
}
.mr-tab-content { display: none; }
.mr-tab-content.active { display: block; }

/* Upload Zone */
.mr-upload-zone {
    border: 2px dashed #3a3d50;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
}
.mr-upload-zone:hover,
.mr-upload-zone.dragover {
    border-color: #00d4ff;
    background: rgba(0,212,255,.05);
}
.mr-upload-hint { color: #ccc; font-size: 15px; margin-top: 12px; }
.mr-upload-sub { color: #666; font-size: 12px; margin-top: 6px; }

/* Import Result */
.mr-import-result {
    margin-top: 14px; padding: 14px 18px;
    border-radius: 10px; font-size: 14px; line-height: 1.6;
}
.mr-import-success { background: rgba(0,255,157,.08); border: 1px solid rgba(0,255,157,.2); color: #00ff9d; }
.mr-import-warning { background: rgba(255,193,7,.08); border: 1px solid rgba(255,193,7,.2); color: #ffc107; }
.mr-import-error   { background: rgba(255,77,79,.08);  border: 1px solid rgba(255,77,79,.2);  color: #ff4d4f; }

/* Form */
.mr-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    align-items: start;
}
.mr-form-row { display: flex; flex-direction: column; gap: 5px; position: relative; }
.mr-form-row label { font-size: 13px; color: #999; }
.mr-form-row .required { color: #ff4d4f; }
.mr-form-row input {
    background: #252836; border: 1px solid #333;
    color: #e0e0e0; padding: 10px 12px; border-radius: 8px;
    font-size: 14px; outline: none; transition: border .2s;
}
.mr-form-row input:focus { border-color: #00d4ff; }
.mr-form-row input[type="date"] { color-scheme: dark; }
.mr-form-full { grid-column: 1 / -1; }
.mr-submit-btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }

/* Auto-complete */
.mr-autocomplete-list {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #1e2030; border: 1px solid #333; border-radius: 0 0 8px 8px;
    max-height: 180px; overflow-y: auto; z-index: 100;
}
.mr-autocomplete-item {
    padding: 8px 12px; cursor: pointer; font-size: 13px; color: #ccc;
    border-bottom: 1px solid #252836;
}
.mr-autocomplete-item:hover, .mr-autocomplete-item.active { background: #2a3a50; color: #00d4ff; }
.mr-autocomplete-item small { color: #666; display: block; font-size: 11px; }

/* Bottom Panels */
.mr-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; flex: 1; min-height: 0;
    border-top: 1px solid #2a2d3a;
    overflow: hidden;
}
.mr-bottom-half {
    padding: 16px 20px; overflow: hidden; display: flex; flex-direction: column;
}
.mr-bottom-half:first-child { border-right: 1px solid #2a2d3a; }
.mr-bottom-half h3 {
    font-size: 15px; color: #ccc; margin-bottom: 10px; flex-shrink: 0;
}
.mr-bottom-half h3 small { color: #666; font-weight: 400; font-size: 12px; }

.mr-table-wrap {
    overflow-y: auto; flex: 1; min-height: 0;
}
.mr-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
}
.mr-table thead {
    position: sticky; top: 0; z-index: 1;
}
.mr-table th {
    background: #252836; color: #999;
    padding: 9px 10px; text-align: left; font-weight: 500;
    border-bottom: 1px solid #333;
}
.mr-table td {
    padding: 8px 10px; color: #ccc;
    border-bottom: 1px solid #1f2233;
}
.mr-table tbody tr:hover { background: rgba(255,255,255,.03); }
.mr-stock { color: #00ff9d; }
.mr-empty, .mr-loading { text-align: center; color: #666; padding: 24px !important; }

/* Mobile adjust */
@media (max-width: 768px) {
    .mr-panel { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
    .mr-form { grid-template-columns: 1fr; }
    .mr-bottom { grid-template-columns: 1fr; }
    .mr-bottom-half:first-child { border-right: none; border-bottom: 1px solid #2a2d3a; }
    .mr-header { padding: 12px 16px; }
    .mr-tabs, .mr-body { padding-left: 16px; padding-right: 16px; }
    .mr-bottom-half { padding: 12px 16px; }
}

/* ============================================================
   拍照识别弹窗
============================================================ */
.cam-overlay {
    display: none;
    position: fixed; inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.8);
    align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
    animation: fadeIn .25s ease;
}
.cam-panel {
    width: min(90vw, 520px);
    background: #1a1d2a;
    border: 1px solid #2a2d3a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    animation: slideUp .3s ease;
}
.cam-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #2a2d3a;
    color: #e0e0e0; font-size: 16px; font-weight: 600;
}
.cam-close {
    width: 32px; height: 32px;
    background: none; border: 1px solid #333; border-radius: 8px;
    color: #999; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.cam-close:hover { color: #fff; border-color: #666; background: #252836; }
.cam-body { padding: 20px; }

/* 预览区 4:3 */
.cam-preview {
    position: relative; width: 100%;
    aspect-ratio: 4 / 3;
    background: #0d0f16;
    border-radius: 12px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.cam-preview video,
.cam-preview img { width: 100%; height: 100%; object-fit: contain; }
.cam-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #555; font-size: 14px; gap: 10px;
}

/* 控件 */
.cam-controls {
    display: flex; gap: 10px; justify-content: center;
    margin-top: 16px; flex-wrap: wrap;
}
.cam-recognize {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; margin-top: 14px;
}

/* Loading spinner */
.spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2px solid rgba(0,212,255,.3);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cam-loading {
    display: flex; align-items: center; gap: 8px;
    color: #00d4ff; font-size: 14px;
}

/* 识别结果 */
.cam-result {
    padding: 10px 16px; border-radius: 8px; font-size: 14px; text-align: center;
}
.cam-result-ok { background: rgba(0,255,157,.08); border: 1px solid rgba(0,255,157,.2); color: #00ff9d; }
.cam-result-err { background: rgba(255,77,79,.08); border: 1px solid rgba(255,77,79,.2); color: #ff4d4f; }

/* 手工录入 tab 中的拍照按钮 */
.mr-camera-btn {
    margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}

/* Mobile */
@media (max-width: 768px) {
    .cam-panel { width: 100vw; height: auto; max-height: 100vh; border-radius: 0; }
    .cam-header { padding: 12px 16px; }
    .cam-body { padding: 16px; }
}

/* 密码输入框 + 小眼睛 */
.pw-input-wrap {
    position: relative; display: flex; align-items: center;
}
.pw-input-wrap .form-control {
    padding-right: 42px;
}
.pw-eye-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; cursor: pointer;
    color: var(--text-muted); padding: 4px; border-radius: 4px;
    line-height: 0; transition: color .2s;
}
.pw-eye-btn:hover { color: var(--neon-blue); }

/* 工厂 chip 按钮 */
.factory-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; margin-bottom: 8px;
    background: var(--bg-secondary); border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border); font-size: 14px;
}
.factory-chip .chip-code { color: var(--neon-blue); font-weight: 700; }
.factory-chip .chip-name { flex: 1; }
.chip-btn {
    background: transparent; border: 1px solid var(--glass-border);
    color: var(--text-secondary); cursor: pointer;
    padding: 4px 10px; border-radius: 6px; font-size: 13px;
    transition: all .2s; white-space: nowrap;
}
.chip-btn:hover { background: var(--glass-border); color: var(--neon-blue); }
.chip-btn-del { color: var(--warning-red); border-color: rgba(255,46,99,.3); }
.chip-btn-del:hover { background: rgba(255,46,99,.12); color: var(--warning-red); }

/* 库存工具栏 */
.mr-inv-toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.mr-inv-search {
    flex: 1; min-width: 160px; padding: 7px 14px;
    background: rgba(255,255,255,.04); border: 1px solid var(--glass-border);
    border-radius: 8px; color: var(--text-primary); font-size: 13px;
    outline: none; transition: border-color .2s;
}
.mr-inv-search:focus { border-color: var(--neon-blue); }
.mr-inv-search::placeholder { color: var(--text-tertiary); }
.btn-outline {
    background: transparent; border: 1px solid var(--glass-border);
    color: var(--text-secondary); cursor: pointer;
    padding: 6px 14px; border-radius: 8px; font-size: 13px;
    transition: all .2s; white-space: nowrap;
}
.btn-outline:hover { border-color: var(--neon-blue); color: var(--neon-blue); }

/* ============================================================ */
/* 版面核对页面 */
/* ============================================================ */
.vc-main { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.vc-upload-row {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.vc-upload-box { text-align: center; }
.vc-upload-area { position: relative; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.vc-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 40px 20px; border: 2px dashed var(--glass-border);
    border-radius: var(--radius-md); cursor: pointer;
    transition: all 0.3s ease; width: 100%;
}
.vc-placeholder:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}
.vc-placeholder p { font-size: 15px; font-weight: 600; color: var(--text-secondary); margin: 0; }
.vc-placeholder small { font-size: 12px; color: var(--text-muted); }

.vc-preview {
    max-width: 100%; max-height: 340px; object-fit: contain;
    border-radius: var(--radius-sm); border: 1px solid var(--glass-border-strong);
}

.vc-reupload { margin-top: 10px; }

.vc-compare-center {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px; padding-top: 80px;
}
.vc-compare-btn {
    width: 120px; height: 120px; border-radius: 50%;
    font-size: 16px; flex-direction: column; gap: 6px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.35);
}
.vc-compare-btn:disabled {
    background: var(--glass-bg); color: var(--text-muted);
    border: 1px solid var(--glass-border); box-shadow: none;
    cursor: not-allowed;
}
.vc-compare-hint { font-size: 13px; color: var(--text-secondary); text-align: center; margin: 0; }

/* 对比结果 */
.vc-result-card { margin-bottom: 24px; }
.vc-result-body { padding-top: 8px; }
.vc-result-summary h3 { font-size: 18px; margin: 0; }
.vc-result-detail { margin-top: 8px; }
.vc-result-detail h4 { margin-bottom: 6px; }
.vc-result-detail ul { color: var(--text-secondary); }
.vc-result-image { margin-top: 16px; text-align: center; }
.vc-result-actions { margin-top: 16px; text-align: center; }

/* AI 视觉分析区块 */
.vc-result-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}
.vc-result-section:last-of-type { border-bottom: none; }
.vc-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600;
    color: var(--text-primary); margin-bottom: 12px;
}
.vc-ai-content { margin-top: 8px; }
.vc-ai-text {
    color: var(--text-secondary); line-height: 1.8;
    background: var(--glass-bg); border-radius: var(--radius-sm);
    padding: 12px 16px; margin-top: 8px;
    border: 1px solid var(--glass-border);
    white-space: pre-line;
}

/* 历史记录 */
.vc-history-card { margin-bottom: 20px; }

/* 响应式 */
@media (max-width: 768px) {
    .vc-upload-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .vc-compare-center { padding-top: 20px; }
    .vc-compare-btn { width: 100px; height: 100px; font-size: 14px; }
}