/* ============================================================
   二维码管理系统 - 管理后台样式
   ============================================================ */
:root {
    --primary: #6366f1;
    --primary-2: #8b5cf6;
    --primary-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --text: #1e293b;
    --text-2: #64748b;
    --text-3: #94a3b8;
    --bg: #f4f5fa;
    --card: #ffffff;
    --border: #e8eaf2;
    --sidebar-bg: linear-gradient(180deg, #171432 0%, #1d1940 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    --shadow-lg: 0 12px 40px rgba(16, 24, 40, .16);
    --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* ---------------- 通用组件 ---------------- */
.btn {
    display: inline-flex; align-items: center; gap: 6px; justify-content: center;
    padding: 9px 18px; border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font); font-weight: 500; cursor: pointer;
    transition: all .18s ease; white-space: nowrap; user-select: none;
}
.btn .icon { flex: none; }
.btn-primary { background: var(--primary-grad); color: #fff; box-shadow: 0 4px 14px rgba(99, 102, 241, .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99, 102, 241, .45); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--primary); border-color: #c7d2fe; background: #eef2ff; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #f43f5e); color: #fff; box-shadow: 0 4px 14px rgba(239, 68, 68, .35); }
.btn-danger:hover { transform: translateY(-1px); }
.btn-danger-ghost:hover { color: var(--danger); border-color: #fecaca; background: var(--danger-bg); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field label em { color: var(--danger); font-style: normal; }
.field input[type="text"], .field input[type="password"], .field input[type="number"], .field input:not([type]) {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font); color: var(--text); background: #fff; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.field input::placeholder { color: var(--text-3); }
.field-tip { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.7; }

.badge { display: inline-flex; align-items: center; padding: 2.5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge-success { background: var(--success-bg); color: #047857; }
.badge-warning { background: var(--warning-bg); color: #b45309; }
.badge-danger { background: var(--danger-bg); color: #b91c1c; }
.badge-muted { background: #f1f5f9; color: #64748b; }

.form-error {
    background: var(--danger-bg); color: #b91c1c; border: 1px solid #fecaca;
    padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 18px;
}

/* 开关 */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px;
    transition: background .2s ease;
}
.switch .slider::before {
    content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: transform .2s ease;
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ---------------- 登录 / 安装页 ---------------- */
.auth-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
    padding: 20px; position: relative; overflow: hidden;
}
.auth-bg-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.blob-a { width: 480px; height: 480px; background: #818cf8; top: -160px; left: -120px; }
.blob-b { width: 420px; height: 420px; background: #d946ef; bottom: -140px; right: -100px; opacity: .4; }
.auth-card {
    width: 100%; max-width: 420px; background: rgba(255, 255, 255, .97);
    border-radius: 24px; padding: 40px 36px; box-shadow: 0 24px 80px rgba(20, 10, 60, .35);
    position: relative; animation: authIn .45s ease both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.auth-logo {
    width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 18px;
    background: var(--primary-grad); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(99, 102, 241, .45);
}
.auth-card h1 { text-align: center; font-size: 21px; letter-spacing: .5px; }
.auth-sub { text-align: center; color: var(--text-3); font-size: 13px; margin: 6px 0 28px; }
.auth-tip { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 18px; }
.auth-tip a { color: var(--primary); }
.auth-icp { position: fixed; left: 0; right: 0; bottom: 12px; text-align: center; pointer-events: none; }
.auth-icp a { color: rgba(255, 255, 255, .55); font-size: 12px; letter-spacing: .5px; pointer-events: auto; }
.auth-icp a:hover { color: rgba(255, 255, 255, .85); }
.install-ok {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    background: var(--success-bg); color: #047857; padding: 14px;
    border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 20px; font-size: 14px;
}

/* ---------------- 后台布局 ---------------- */
.admin-body { min-height: 100vh; }

.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 240px; z-index: 50;
    background: var(--sidebar-bg); color: #fff;
    display: flex; flex-direction: column; padding: 22px 16px;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-icon {
    width: 42px; height: 42px; border-radius: 13px; background: var(--primary-grad);
    display: flex; align-items: center; justify-content: center; color: #fff; flex: none;
    box-shadow: 0 6px 18px rgba(99, 102, 241, .5);
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: 1.5px; text-transform: uppercase; }
.sidebar-nav { flex: 1; padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px;
    color: rgba(255,255,255,.62); font-size: 14px; font-weight: 500; transition: all .18s;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active {
    color: #fff; background: var(--primary-grad);
    box-shadow: 0 8px 20px rgba(99, 102, 241, .4);
}
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 0 6px 12px; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary-grad); flex: none;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.user-name { font-size: 13px; font-weight: 600; }
.user-role { font-size: 11px; color: rgba(255,255,255,.45); }
.btn-logout {
    display: flex; align-items: center; gap: 7px; justify-content: center; padding: 8px;
    border-radius: 10px; color: rgba(255,255,255,.6); font-size: 13px; transition: all .18s;
}
.btn-logout:hover { color: #fda4af; background: rgba(239, 68, 68, .15); }

.admin-main { margin-left: 240px; padding: 28px 34px 60px; max-width: 1320px; }

/* 顶栏 */
.page-header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin-bottom: 24px; flex-wrap: wrap;
}
.page-title { font-size: 22px; font-weight: 700; letter-spacing: .3px; }
.page-desc { color: var(--text-3); font-size: 13px; margin-top: 3px; }
.breadcrumb { font-size: 12.5px; color: var(--text-3); margin-bottom: 4px; display: flex; gap: 7px; align-items: center; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-style: normal; opacity: .5; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card {
    background: var(--card); border-radius: var(--radius); padding: 20px 22px;
    display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow);
    transition: transform .18s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-icon {
    width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
    color: #fff; flex: none;
}
.si-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 8px 18px rgba(99,102,241,.35); }
.si-violet { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 8px 18px rgba(139,92,246,.35); }
.si-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); box-shadow: 0 8px 18px rgba(244,63,94,.35); }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--text-3); }
.stat-label small { font-size: 11.5px; }

/* ---------------- 项目卡片网格 ---------------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; }
.project-card {
    background: var(--card); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
    transition: transform .18s, box-shadow .18s; animation: cardIn .4s ease both;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pc-main { display: flex; gap: 18px; align-items: flex-start; }
.pc-qr {
    width: 108px; height: 108px; flex: none; background: #fff;
    border: 1.5px solid var(--border); border-radius: 14px; padding: 7px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pc-qr canvas, .pc-qr img { width: 100% !important; height: 100% !important; }
.pc-info { flex: 1; min-width: 0; }
.pc-name { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-name a:hover { color: var(--primary); }
.pc-desc {
    color: var(--text-2); font-size: 13px; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-chip {
    display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2);
    background: #f1f3f9; border-radius: 999px; padding: 2.5px 10px;
}
.pc-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px dashed var(--border); padding-top: 14px; }

/* 空状态 */
.empty-state {
    grid-column: 1 / -1; text-align: center; padding: 70px 20px;
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.empty-flat { box-shadow: none; background: transparent; padding: 50px 20px; }
.empty-icon { color: #c7d2fe; margin-bottom: 10px; }
.empty-state h3 { font-size: 17px; }
.empty-state p { color: var(--text-3); font-size: 13px; line-height: 1.9; margin-bottom: 14px; }

/* ---------------- 项目详情 ---------------- */
.detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 18px; margin-bottom: 22px; align-items: stretch; }
.entry-card, .info-card, .panel-card {
    background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card-head { margin-bottom: 18px; }
.card-head h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head h3 .icon { color: var(--primary); }
.card-head p { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.entry-qr-wrap {
    display: flex; justify-content: center; padding: 18px;
    background: #fafbff; border: 1.5px dashed #d5d9ea; border-radius: 14px; margin-bottom: 16px;
}
.entry-qr { background: #fff; }
.entry-qr canvas, .entry-qr img { display: block; }
.entry-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.entry-actions .btn { flex: 1; }

.info-list { list-style: none; }
.info-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 11px 4px; border-bottom: 1px solid #f1f2f8; font-size: 13.5px;
}
.info-list li:last-child { border-bottom: none; }
.info-list span { color: var(--text-3); flex: none; }
.info-list b { font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-list code { color: #4338ca; background: #eef2ff; padding: 2px 10px; border-radius: 6px; }
.entry-preview { margin-top: 14px; }
.entry-preview a {
    display: inline-flex; align-items: center; gap: 6px; color: var(--primary);
    font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 9px;
    background: #eef2ff; transition: all .15s;
}
.entry-preview a:hover { background: #e0e7ff; }

/* ---------------- 上传区 ---------------- */
.upload-card { margin-bottom: 22px; }
.upload-area {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    border: 2px dashed #d5d9ea; padding: 36px 24px; text-align: center; cursor: pointer;
    transition: all .2s ease;
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary); background: #f5f6ff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .12), var(--shadow);
}
.upload-area .icon { color: var(--primary); margin-bottom: 10px; }
.ua-main { font-size: 15px; font-weight: 600; }
.ua-sub { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.ua-title-row { margin-top: 16px; }
.ua-title-row input {
    width: min(420px, 100%); padding: 10px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-size: 13.5px; outline: none; font-family: var(--font);
    transition: border-color .15s, box-shadow .15s;
}
.ua-title-row input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.upload-area.uploading { pointer-events: none; opacity: .7; }
.upload-bar {
    height: 5px; width: min(420px, 90%); margin: 14px auto 0; background: #e8eaf6;
    border-radius: 99px; overflow: hidden; display: none;
}
.upload-bar.on { display: block; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--primary-grad); border-radius: 99px; transition: width .2s; }

/* ---------------- 二维码管理列表 ---------------- */
.section-head { margin-bottom: 16px; }
.section-head h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-head h3 .icon { color: var(--primary); }
.section-head p { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.qr-list { display: flex; flex-direction: column; gap: 12px; }
.qr-item {
    background: var(--card); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 16px; transition: all .18s; animation: cardIn .35s ease both;
}
.qr-item:hover { box-shadow: var(--shadow-lg); }
.qr-item.is-disabled { opacity: .58; background: #fafbfd; }
.qi-thumb {
    width: 76px; height: 76px; flex: none; border: 1.5px solid var(--border); border-radius: 12px;
    padding: 5px; background: #fff; cursor: zoom-in; overflow: hidden;
}
.qi-thumb img { width: 100%; height: 100%; object-fit: contain; }
.qi-body { flex: 1; min-width: 0; }
.qi-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.qi-title { font-size: 15px; font-weight: 700; cursor: pointer; border-bottom: 1.5px dashed transparent; }
.qi-title:hover { border-bottom-color: #c7d2fe; color: var(--primary); }
.qi-title i { font-style: normal; color: var(--text-3); font-weight: 400; font-size: 13.5px; }
.qi-title-input {
    font-size: 14px; font-family: var(--font); padding: 5px 10px; border: 1.5px solid #c7d2fe;
    border-radius: 8px; outline: none; width: 240px; color: var(--text);
}
.js-limit { cursor: pointer; border-bottom: 1.5px dashed transparent; }
.js-limit:hover { border-bottom-color: #c7d2fe; color: var(--primary); }
.qi-limit-input {
    font-size: 12.5px; font-family: var(--font); padding: 3px 8px; border: 1.5px solid #c7d2fe;
    border-radius: 6px; outline: none; width: 110px; color: var(--text);
}

/* 下载尺寸选择弹窗 */
.dl-opts { display: flex; flex-direction: column; gap: 10px; }
.dl-opt {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
    padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 12px;
    background: #fff; cursor: pointer; text-align: left; font-family: var(--font);
    transition: border-color .15s, box-shadow .15s;
}
.dl-opt:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(99, 102, 241, .12); }
.dl-opt b { font-size: 14px; color: var(--text); }
.dl-opt span { font-size: 12px; color: var(--text-3); }
.qi-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.qi-meta span { display: inline-flex; align-items: center; gap: 4px; }
.qi-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.qi-btns { display: flex; gap: 5px; }
.icon-btn {
    width: 32px; height: 32px; border-radius: 9px; border: none; background: #f1f3f9;
    color: var(--text-2); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.icon-btn:hover { background: #e0e7ff; color: var(--primary); transform: translateY(-1px); }
.icon-btn:last-child:hover { background: var(--danger-bg); color: var(--danger); }

/* ---------------- 设置页 ---------------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; align-items: start; }
.panel-actions { display: flex; justify-content: flex-end; }

/* ---------------- 模态框 ---------------- */
.modal-mask {
    position: fixed; inset: 0; background: rgba(15, 12, 32, .5); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 900;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 901; padding: 20px; }
.modal.show { display: flex; }
.modal-card {
    background: #fff; border-radius: 20px; width: 100%; max-width: 480px;
    box-shadow: var(--shadow-lg); animation: modalIn .25s cubic-bezier(.34,1.4,.64,1) both;
    max-height: calc(100vh - 40px); display: flex; flex-direction: column;
}
.modal-sm { max-width: 400px; }
@keyframes modalIn { from { opacity: 0; transform: scale(.92) translateY(16px); } to { opacity: 1; transform: none; } }
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px 0;
}
.modal-head h3 { font-size: 16.5px; font-weight: 700; }
.modal-close {
    width: 32px; height: 32px; border-radius: 9px; border: none; background: #f1f3f9;
    font-size: 20px; color: var(--text-2); cursor: pointer; line-height: 1; transition: all .15s;
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.confirm-icon {
    width: 58px; height: 58px; border-radius: 50%; background: var(--danger-bg); color: var(--danger);
    display: flex; align-items: center; justify-content: center; margin: 4px auto 14px;
}
.modal-body > p { text-align: center; color: var(--text-2); font-size: 14px; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-chip {
    display: flex; align-items: center; gap: 9px; cursor: pointer;
    border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 13.5px;
    transition: all .15s; color: var(--text-2);
}
.radio-chip:hover { border-color: #c7d2fe; }
.radio-chip input { accent-color: var(--primary); }
.radio-chip:has(input:checked) { border-color: var(--primary); background: #eef2ff; color: var(--text); font-weight: 500; }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    display: flex; align-items: center; gap: 9px; min-width: 240px; max-width: 380px;
    background: #fff; border-radius: 13px; padding: 13px 18px; font-size: 13.5px;
    box-shadow: var(--shadow-lg); animation: toastIn .3s ease both; color: var(--text);
    border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast .icon { flex: none; }
.toast.success .t-icon { color: var(--success); }
.toast.error .t-icon { color: var(--danger); }
.toast.fadeout { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(30px); } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
    .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .sidebar {
        position: static; width: auto; flex-direction: row; align-items: center;
        padding: 10px 16px; gap: 14px;
    }
    .sidebar-brand { border: none; padding: 0; }
    .brand-text, .sidebar-footer .user-meta, .btn-logout span { display: none; }
    .sidebar-nav { flex-direction: row; padding: 0; }
    .sidebar-footer { border: none; padding: 0; margin-left: auto; display: flex; align-items: center; gap: 6px; }
    .sidebar-user { padding: 0; }
    .btn-logout { padding: 8px; }
    .admin-main { margin-left: 0; padding: 20px 16px 50px; }
    .project-grid { grid-template-columns: 1fr; }
    .pc-main { flex-direction: column; }
    .qr-item { flex-wrap: wrap; }
    .qi-actions { width: 100%; justify-content: space-between; }
}
