/* ========== 全局基础 ========== */
:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --border: #e3e8ef;
    --text: #1a2332;
    --muted: #6b7785;
    --primary: #2f6fed;
    --primary-dark: #1f56c4;
    --danger: #d64545;
    --success: #2e8b57;
    --warning: #c77a00;
    --radius: 10px;
    --shadow: none;
}
/* 去除全站阴影 */
* { box-shadow: none !important; }

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

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container {
    width: 100%;
    max-width: 1200px;   /* 参考主流 SaaS 落地页：Bootstrap 5 xl=1140 / Tailwind max-w-7xl=1280 */
    margin: 0 auto;
    padding: 0 24px;
}
/* 列表/管理页用满宽容器，看台账更舒展 */
.container-fluid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}
/* 顶栏专用：背景由 .topbar 满宽，内容与主容器同宽对齐 */
.container-full {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 顶栏 ========== */
.topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 60px;
}
.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.brand-logo {
    display: block;
    height: 30px;
    width: auto;
    max-width: 100%;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
}
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-link-text {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}
.user-chip {
    color: var(--muted);
    font-size: 14px;
    padding: 4px 10px;
    background: #eef3fb;
    border-radius: 20px;
}
.user-avatar {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}
.user-avatar img {
    width: 28px;
    height: 28px;
    object-fit: cover;
}
.user-menu { position: relative; display: inline-flex; align-items: center; }
.user-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 0;
    z-index: 20;
}
.user-menu-panel a {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    font-size: 14px;
}
.user-menu-panel a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* 桌面端隐藏汉堡按钮 */
.nav-toggle {
    display: none;
}

/* 移动端：导航栏改为汉堡菜单 + 抽屉式展开 */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        align-items: center;
        gap: 0;
    }
    .brand { flex: 1 1 auto; }
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--card);
        cursor: pointer;
        align-items: center;
        transition: background .15s, border-color .15s;
        margin-left: 12px;
    }
    .nav-toggle:hover {
        background: #f5f7fa;
        border-color: var(--primary);
    }
    .nav-toggle-bar {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
        border-radius: 1px;
        transition: transform .28s ease, opacity .2s;
    }
    /* 激活时三横线变 × */
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background: var(--primary);
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background: var(--primary);
    }
    /* 链接区默认隐藏，垂直展开 */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 6px 0 10px;
        margin-top: 10px;
        border-top: 1px solid var(--border);
        background: var(--card);
    }
    .nav-links.open {
        display: flex;
        animation: navSlideDown .2s ease-out;
    }
    .nav-actions {
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }
    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .nav-links a,
    .nav-links .btn,
    .nav-links .user-chip {
        width: 100%;
        padding: 13px 8px;
        border-bottom: 1px solid #f0f3f7;
        white-space: nowrap;
        text-align: left;
        border-radius: 0;
        font-size: 15px;
        transition: background .12s, padding-left .12s;
    }
    .nav-links .btn {
        margin: 0;
        border: none;
        justify-content: flex-start;
    }
    .nav-links a:hover,
    .nav-links .btn:hover {
        background: #f5f7fa;
        padding-left: 14px;
        color: var(--primary);
    }
    .nav-links a.active {
        color: var(--primary);
        background: #eef3fb;
    }
    .nav-links > *:last-child { border-bottom: none; }
    /* 移动端：头像下拉改为直接展示"个人中心/退出"两个菜单项 */
    .nav-links .user-menu { width: 100%; }
    .nav-links .user-avatar { display: none; }
    .nav-links .user-menu-panel {
        position: static;
        display: block !important;
        min-width: 0;
        border: none;
        border-radius: 0;
        padding: 0;
        background: transparent;
    }
    .nav-links .user-menu-panel a:last-child { border-bottom: none; }
    .main { padding: 20px 14px 32px; }
}
@media (max-width: 480px) {
    .main { padding: 16px 10px 24px; }
    .container, .container-fluid { padding: 0 10px; }
    .card { padding: 16px; }
    .page-title { font-size: 19px; }
}

/* ========== 主区 ========== */
.main {
    flex: 1;
    padding: 28px 20px 40px;
}
.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.page-subtitle {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 14px;
}

/* ========== 卡片 ========== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 20px;
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #2c3a4b;
}
.form-group .hint {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}
textarea.form-control { min-height: 90px; resize: vertical; font-family: inherit; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}
/* 注册页：同意条款复选行 */
.agree-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.agree-row input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex: 0 0 auto;
}
.agree-row label {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    cursor: pointer;
}

/* 用户管理：个人上限内联编辑 */
.limit-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.limit-cell .limit-now {
    font-size: 12px;
    color: var(--muted);
}
.limit-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.limit-form .form-control {
    width: 70px;
    padding: 3px 6px;
    font-size: 12px;
}

/* 仪表盘：资产上限徽标 */
.limit-badge {
    font-size: 12px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}
.limit-badge.is-full {
    color: var(--danger);
    border-color: var(--danger);
    background: #fff0f0;
}
.btn-disabled {
    opacity: .5;
    pointer-events: none;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    table.data { font-size: 13px; min-width: 560px; }
    table.data th, table.data td { padding: 8px 10px; }
    .row-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; }
    .row-actions a { margin-right: 0; }
    .toolbar { gap: 10px; }
    .search-form { min-width: 100%; flex-wrap: wrap; }
    .search-form input, .search-form select { font-size: 13px; padding: 8px 10px; }
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 7px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    box-sizing: border-box;
    min-height: 38px;
    background: var(--primary);
    color: #fff;
    transition: background 0.15s, transform 0.05s;
    text-decoration: none;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 12px; font-size: 13px; min-height: 32px; }
.btn-lg { padding: 11px 24px; font-size: 15px; min-height: 42px; }
.btn-outline {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover { background: #f0f4fa; color: var(--text); }
.btn-line {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0;
    padding: 8px 20px;
    font-size: 14px;
}
.btn-sm.btn-line { padding: 5px 14px; }
.btn-lg.btn-line { padding: 11px 24px; font-size: 15px; }
.btn-line:hover { background: #eaf1ff; color: var(--primary); }
.btn i { line-height: 1; }
.btn-line.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}
.btn-line.btn-danger:hover {
    background: #fdf0f3;
    color: var(--danger);
}
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b53838; color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eef1f5; color: var(--text); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d68910; color: #fff; }
.btn-success { background: #27ae60; color: #fff; }
.btn-success:hover { background: #229954; color: #fff; }
.inline-form { display: inline; margin: 0; padding: 0; }
.inline-form button { vertical-align: middle; }

/* 资产编辑页 - 模板选择条 */
.tpl-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 4px;
    padding: 10px 14px;
    background: #f5f7fa;
    border: 1px solid var(--border);
    border-radius: 10px;
}
@media (max-width: 600px) {
    .tpl-bar { flex-wrap: wrap; }
}

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ========== 提示 ========== */
.alert {
    padding: 11px 15px;
    border-radius: 7px;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
}
.alert-error {
    background: #fdeeee;
    color: #a02929;
    border-color: #f3c4c4;
}
.alert-success {
    background: #eaf5ef;
    color: #1f6b3e;
    border-color: #c3e0cf;
}

/* ========== 工具栏 ========== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.search-form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 240px;
}
.search-form input, .search-form select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 14px;
    background: #fff;
}
.search-form input { flex: 1; }

/* ========== 表格 ========== */
.table-wrap {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 720px;
}
table.data th, table.data td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
table.data th {
    background: #f7f9fc;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fafcff; }
/* 分类列：至少容纳 4 个汉字，避免三字换行 */
table.data .col-category { min-width: 6em; white-space: nowrap; }
.code-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #eef3fb;
    border-radius: 5px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--primary-dark);
}
.row-actions a { margin-right: 8px; font-size: 13px; }
/* 操作列下拉菜单：fixed 定位（坐标由 JS 按按钮位置计算），
   避免被 table-wrap 的 overflow 滚动容器裁切或撑出滚动条 */
.action-menu { display: inline-block; }
.action-dropdown {
    position: fixed;
    min-width: 96px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 200;
    padding: 4px 0;
}
.action-dropdown[hidden] { display: none; }
.action-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}
.action-item:hover { background: #f5f7fa; color: var(--primary); }
.action-danger { color: #d0342c; }
.action-danger:hover { background: #fdeeed; color: #b02a24; }
/* 备注列：限宽自动换行，不撑宽整列 */
.col-desc {
    max-width: 240px;
    white-space: normal;
    word-break: break-word;
    color: var(--muted);
    font-size: 13px;
}
.empty {
    text-align: center;
    color: var(--muted);
    padding: 50px 20px;
}

/* 状态徽章 */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge-use   { background: #e3f3e8; color: #1f6b3e; }
.badge-idle  { background: #fdf3e0; color: #8a5a00; }
.badge-repair { background: #e8f0fe; color: #1a56db; }
.badge-lend  { background: #eef5ff; color: #2b6cb0; }
.badge-pending-scrap { background: #fff0e6; color: #c05621; }
.badge-scrapped { background: #fbe7e7; color: #a02929; }
.badge-lost  { background: #eee; color: #555; }

/* ========== 详情页 ========== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 720px) {
    .detail-grid { grid-template-columns: 1fr; }
}
.detail-list dt {
    color: var(--muted);
    font-size: 13px;
    margin-top: 14px;
}
.detail-list dd {
    margin: 2px 0 0;
    font-size: 15px;
    word-break: break-all;
}
.detail-list dt:first-child { margin-top: 0; }

.qr-card {
    text-align: center;
}
.qr-card .qr-box {
    background: #fff;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 14px;
}
.qr-card canvas, .qr-card img { display: block; }
.qr-printable {
    display: none;
}
.qr-card .scan-url {
    font-size: 11px;
    color: var(--muted);
    word-break: break-all;
    margin-top: 8px;
}

@media print {
    .topbar, .footer, .actions, .nav, .toolbar, .no-print { display: none !important; }
    .main { padding: 0; }
    .qr-printable {
        display: block;
        text-align: center;
        page-break-after: always;
    }
    .qr-printable h3 { margin: 12px 0 6px; font-size: 18px; }
    .qr-printable .meta { color: #444; font-size: 13px; }
}

/* ========== 自定义字段 ========== */
.custom-field-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}
.custom-field-row input { flex: 1; }
.custom-field-row .remove-field {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
}
.field-label-preview {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

/* ========== 统计卡片 ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
}
.stat-card .stat-num {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
}
.stat-card .stat-label {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

/* ========== 认证页 ========== */
.auth-wrap {
    max-width: 400px;
    margin: 60px auto;
}
.auth-card-head {
    text-align: center;
    margin-bottom: 22px;
}
.auth-card-head h1 {
    font-size: 22px;
    margin-bottom: 4px;
}
.auth-card-head p { color: var(--muted); font-size: 14px; }
.auth-foot {
    text-align: center;
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.captcha-row .form-control {
    flex: 1 1 auto;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.captcha-img {
    flex: 0 0 auto;
    height: 44px;
    width: 120px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    background: #f5f7fa;
    transition: opacity .15s;
}
.captcha-img:hover { opacity: .85; }

/* ========== 微信扫码（登录/注册/绑定） ========== */
.wx-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.wx-tab {
    flex: 1;
    padding: 10px 0 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}
.wx-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.wx-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px 0 4px;
}
.wx-qr-box img {
    padding: 16px;
    width: 220px;
    height: 220px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    object-fit: contain;
}
.wx-qr-img {
    width: 220px;
    height: 220px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wx-qr-tip {
    font-size: 14px;
    color: var(--text);
    margin: 0;
    text-align: center;
    min-height: 20px;
}
.wx-qr-tip.wx-err { color: var(--danger); }
.wx-qr-hint {
    margin: 14px 0 4px;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
}
.wx-go-reg {
    display: inline-block;
    width: auto;
    padding: 8px 18px;
    font-size: 14px;
}
.wx-step-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: rgba(39, 174, 96, .07);
    border: 1px solid rgba(39, 174, 96, .25);
    border-radius: var(--radius);
    font-size: 13.5px;
    color: #1e8c4f;
}
.bind-wx-wrap {
    max-width: 460px;
    margin: 24px auto 0;
}
.bind-wx-head { text-align: center; margin-bottom: 18px; }
.bind-wx-head h2 { font-size: 20px; margin-bottom: 6px; }
.bind-wx-head p { color: var(--muted); font-size: 14px; }

/* ========== 落地页：Hero（左文案 + 右手机 mockup） ========== */
/* 100vw 含滚动条宽度，满宽元素可能横向溢出一条滚动条的宽度；clip 不产生滚动容器，不影响 sticky 顶栏 */
body { overflow-x: clip; }
/* 首页：hero 紧贴顶栏，去掉 .main 的顶部内边距 */
body.page-home .main { padding-top: 0; padding-bottom: 0; }
.home-hero {
    /* 满宽浅色大气首屏：白底 + 品牌蓝格子纹理 + 中央光晕（参考豆花AI /services） */
    position: relative;
    overflow: hidden;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 96px calc(50vw - 50%) 88px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}
/* 格子背景层：1px 品牌蓝细格线、60px 方格，从顶部清晰往下淡出 */
.home-hero::before {
    content: "";
    position: absolute;
    inset: -1px 0 0 0;
    background-image:
        linear-gradient(90deg, rgba(47, 111, 237, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(47, 111, 237, 0.08) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px;
    -webkit-mask-image: linear-gradient(#000 0%, transparent 92%);
    mask-image: linear-gradient(#000 0%, transparent 92%);
    pointer-events: none;
}
/* 中央品牌蓝径向光晕：显式 370px 半径、多段缓慢衰减，确保在元素内衰减到零
   （不写半径时默认 farthest-corner≈对角线，会在元素硬边处截断成方形色块） */
.home-hero::after {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    left: 50%;
    top: -380px;
    transform: translateX(-50%);
    background-image: radial-gradient(circle 370px at 50% 50%,
        rgba(47, 111, 237, 0.14) 0%,
        rgba(47, 111, 237, 0.11) 24%,
        rgba(47, 111, 237, 0.07) 48%,
        rgba(47, 111, 237, 0.04) 68%,
        rgba(47, 111, 237, 0.015) 86%,
        transparent 100%);
    pointer-events: none;
}
.hero-copy {
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-copy h1 {
    font-size: 48px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
    color: #1a2332;
}
.hero-copy h1 em {
    font-style: normal;
    color: #2f6fed;
}
.hero-copy > p {
    color: #1a2332;
    font-size: 17px;
    line-height: 1.85;
    max-width: 560px;
    margin: 0 auto 32px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
/* 首屏主按钮：白底胶囊，深色背景上最醒目 */
.home-hero .hero-actions .btn-lg {
    background: #2f6fed;
    color: #ffffff;
    border-radius: 999px;
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 400;
    box-shadow: 0 12px 32px -12px rgba(6, 18, 52, 0.6);
}
.home-hero .hero-actions .btn-lg:hover {
    background: #6995ec;
    
}
.home-hero .hero-actions .btn-lg.hero-quick {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.home-hero .hero-actions .btn-lg.hero-quick:hover {
    background: #eaf1ff;
    color: var(--primary);
}

/* 扫码演示区：手机 mockup + 二维码贴纸（已从 banner 迁至页底） */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding-bottom: 26px;
}
.demo-section .section-head { text-align: center; }
/* 限宽让贴纸贴住手机右缘，复刻原 banner 里的构图 */
.demo-section .hero-visual {
    max-width: 590px;
    margin: 0 auto;
}
.hero-phone {
    width: 300px;
    max-width: 100%;
    border: 8px solid #1a2332;
    border-radius: 32px;
    background: var(--card);
    overflow: hidden;
    box-shadow: 0 18px 40px -14px rgba(26, 35, 50, 0.35);
}
.phone-screen {
    background: #f7f9fc;
    padding: 20px 14px 16px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
}
.phone-demo-tag {
    display: block;
    width: fit-content;
    margin: 0 auto 10px;
    font-size: 11px;
    color: var(--muted);
    background: #eef2f8;
    border-radius: 3px;
    padding: 2px 10px;
    letter-spacing: 0.04em;
}
.mini-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 14px 8px;
}
.mini-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 6px;
}
.mini-head strong { font-size: 15px; letter-spacing: -0.01em; }
.mini-badge {
    background: rgba(46, 139, 87, 0.1);
    color: var(--success);
    font-size: 12px;
    border-radius: 3px;
    padding: 2px 10px;
    white-space: nowrap;
}
.mini-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f3f8;
}
.mini-row:last-child { border-bottom: 0; }
.mini-row span { color: var(--muted); flex: 0 0 auto; }
.mini-row b { font-weight: 600; text-align: right; }
.hero-qr-sticker {
    position: absolute;
    right: 0;
    bottom: 36%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 14px 10px;
    text-align: center;
    box-shadow: 0 10px 24px -10px rgba(26, 35, 50, 0.25);
}
.hero-qr-sticker .hero-qr {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-qr-sticker .hero-qr img,
.hero-qr-sticker .hero-qr canvas { display: block; }
.hero-qr-sticker p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

/* ========== 通用区块标题 ========== */
.section-head {
    text-align: left;
    margin-bottom: 24px;
}

/* ========== 功能特性：去盒子化卡片（左图标右文 + 底线分隔，参考草料 /features） ========== */
#features {
    /* 满宽分节：不吃 .home-section 的上边距，靠自身 padding 控制留白；白底衬托细线分隔 */
    margin-top: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    padding-top: 70px;
    padding-bottom: 70px;
    background: #fff;
    border-bottom: 1px solid #eef1f6;
}
/* 卡片去盒子化：无边框无阴影无圆角，靠底部细线分隔（草料同款手法） */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
}
.fcard {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 30px 4px;
    border-bottom: 1px solid #eef0f2;
}
.fcard:nth-last-child(-n+2) { border-bottom: none; }
.fcard-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #f4f6fa;
    overflow: hidden;
}
.fcard-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}
.fcard-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.fcard-body p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
    max-width: 400px;
}
/* 入场 reveal：进入视口时淡入上移（草料同款 cubic-bezier） */
.fcard {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.fcard.in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .fcard { opacity: 1; transform: none; transition: none; }
}

/* ========== 使用流程：白色圆角卡片步骤（灰带上浮出层次） ========== */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.flow-step {
    text-align: center;
    /*padding: 34px 26px 30px;*/
    /*background: #fffffff;*/
    /*border-radius: 14px;*/
    /* 覆盖全站 box-shadow:none!important 重置（特异性 .flow-step > *） */
    /*box-shadow: 0 4px 18px -6px rgba(15, 30, 60, 0.1) !important;*/
}
.flow-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f6fed, #1f56c4);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 12px 24px -10px rgba(31, 86, 196, 0.5);
    margin-bottom: 18px;
}
.flow-step h3 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.flow-step p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
    max-width: 280px;
    margin: 0 auto;
}

/* ========== 适用场景：居中标签 + 高亮条 ========== */
.scene-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.scene-tags span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: #f0f4fb;
    border: 1px solid #e4ebf7;
    border-radius: 999px;
    padding: 9px 26px;
}
.scene-lead {
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
    max-width: 640px;
    margin: 0 auto 32px;
}
.scene-sync {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 32px;
    background: linear-gradient(135deg, #f3f7ff, #eaf1fe);
    border: 1px solid #dde8fa;
    border-radius: 16px;
}
.scene-sync .sync-copy { flex: 1; }
.sync-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid #e1e9f8;
    overflow: hidden;
}
.sync-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}
.sync-copy strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.sync-copy p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }

@media (max-width: 900px) {
    .feature-cards { grid-template-columns: 1fr; }
    .fcard:nth-last-child(-n+2) { border-bottom: 1px solid #eef0f2; }
    .fcard:last-child { border-bottom: none; }
    .flow-steps { grid-template-columns: 1fr; gap: 34px; }
    .scene-sync { flex-direction: column; text-align: center; }
    .scene-sync .sync-copy { order: 2; }
    .sync-icon { order: 1; }
}

@media (max-width: 900px) {
    .hero-copy h1 { font-size: 38px; }
    .home-section .section-title { font-size: 30px; }
}
@media (max-width: 600px) {
    .home-hero { padding-top: 56px; }
    .hero-copy h1 { font-size: 30px; }
    .home-section .section-title { font-size: 26px; }
    .cta-band h2 { font-size: 22px; }
    .feature-cards { grid-template-columns: 1fr; }
    .hero-phone { width: 100%; }
    .hero-qr-sticker {
        transform: scale(0.85);
        transform-origin: bottom right;
        right: 0;
    }
}

/* ========== 图片查看器（点击放大 / 滚轮缩放 / 拖动平移） ========== */
.img-viewer {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.img-viewer[hidden] { display: none; }
.img-viewer-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform .08s ease-out;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    border-radius: 6px;
}
.img-viewer-img.dragging { cursor: grabbing; transition: none; }
.img-viewer-close {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.img-viewer-close:hover { background: rgba(255, 255, 255, 0.26); }
.img-viewer-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: .04em;
    pointer-events: none;
    text-align: center;
}

/* ========== 扫码极简页 ========== */
.scan-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 16px 40px;
}
.scan-wrap {
    width: 100%;
    max-width: 560px;
}
.scan-head {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}
.scan-head h1 {
    font-size: 22px;
    margin-bottom: 0;
    word-break: break-word;
}
/* 资产状态卡片 */
.scan-status-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px 22px;
    margin: 0 0 18px;
}
.scan-status-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.scan-status-card-body {
    text-align: center;
    padding: 28px 8px 10px;
}
.scan-status-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
}
.scan-status-value.is-use { color: #22c55e; }
.scan-status-value.is-idle { color: #d97706; }
.scan-status-value.is-scrapped { color: #dc2626; }
.scan-status-value.is-lost { color: #6b7280; }
.scan-status-time {
    margin-top: 10px;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.4;
}
/* 扫码页行式列表：一行一条记录，dt 左 dd 右，底部横线分隔 */
.scan-body .detail-list {
    margin: 0;
}
.scan-row {
    display: flex;
    align-items: flex-start;
    min-height: 46px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.scan-row:last-child { border-bottom: none; }
.scan-row dt {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
    flex: 0 0 34%;
    display: flex;
    align-items: center;
    line-height: 21px;
}
.scan-row dd {
    margin: 0;
    font-size: 15px;
    word-break: break-all;
    flex: 1;
    text-align: right;
    line-height: 21px;
}
.scan-actions {
    margin-top: 24px;
    text-align: center;
}
.scan-actions .btn { min-width: 140px; }
.scan-images {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.scan-images h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px;
}
.scan-image-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.scan-image-item {
    margin: 0;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    cursor: zoom-in;
}
.scan-image-item img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}
.scan-empty {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
}
/* 底部平台标识横幅（浅色底）+ 点击折叠展开的自定义菜单 */
.scan-footer {
    align-self: stretch;
    margin: auto -16px -40px; /* 左右/底部吃掉 body 内边距，通栏到屏幕边缘 */
    padding-top: 24px;
    /* 整条底栏避开手机底部小横条 */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
}
.scan-footer-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-top: 1px solid #e8ecf1;
    padding: 14px 16px 20px;
    background: #fff;
    color: #6b7785;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.7;
    cursor: pointer;
}
button.scan-footer-label:hover { background: #f7f8fa; color: #4a5568; }
.scan-footer-plain .scan-footer-label { cursor: default; }
/* 移动端：禁用双击缩放/点击延迟，保证横幅与菜单即点即响应 */
.scan-footer-label,
.scan-footer-menu a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.scan-footer-arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
}
.scan-footer.open .scan-footer-arrow { transform: rotate(180deg); }
/* 折叠菜单：横幅下方向下展开（grid 行高 0fr→1fr 实现精确高度动画） */
.scan-footer-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
    background: #fff;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}
.scan-footer.open .scan-footer-menu { grid-template-rows: 1fr; }
.scan-footer-menu-inner {
    overflow: hidden;
    min-height: 0;
}
.scan-footer-menu a {
    display: block;
    padding: 12px 16px;
    text-align: center;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.scan-footer-menu a:last-child { border-bottom: none; }
.scan-footer-menu a:hover { background: #f0f4fa; color: var(--primary); }

/* ========== 二维码弹窗（列表行内按钮调用） ========== */
.qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 40, 80, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.qr-modal[hidden] { display: none; }
.qr-modal-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    padding: 24px 24px 18px;
    width: 320px;
    max-width: 90vw;
    position: relative;
    text-align: center;
}
.qr-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.qr-modal-close:hover { color: var(--text); }
.qr-modal-box {
    display: flex;
    justify-content: center;
    margin: 14px 0 10px;
}
.qr-modal-box canvas, .qr-modal-box img {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px;
    background: #fff;
}
.qr-modal-name {
    color: var(--muted);
    font-size: 13px;
    word-break: break-all;
}

/* 删除确认弹窗（输入"确认删除"才可提交） */
.del-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 40, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 20px;
}
.del-modal[hidden] { display: none; }
.del-modal-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(0,0,0,0.22);
    padding: 28px 28px 22px;
    width: 360px;
    max-width: 92vw;
    text-align: center;
    animation: del-pop .18s ease;
}
@keyframes del-pop {
    from { transform: scale(.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.del-modal-icon { font-size: 34px; color: var(--danger); margin-bottom: 10px; }
.del-modal-title { margin: 0 0 8px; font-size: 18px; }
.del-modal-msg { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.del-modal-tip { margin: 0 0 8px; font-size: 13px; color: var(--text); }
.del-modal-tip b { color: var(--danger); font-weight: 600; letter-spacing: 1px; }
.del-modal-input {
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}
.del-modal-input:focus {
    outline: none;
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}
.del-modal-actions { display: flex; gap: 10px; justify-content: center; }
.del-modal-actions .btn { flex: 1; }
.del-modal-actions .btn-danger[disabled] {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* 行内二维码小按钮（继承 .btn 主色实心样式，data-* 属性供 JS 读取） */
.btn-qr { cursor: pointer; }

/* 二维码下载格式选项 */
.qr-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.format-tabs {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #f5f7fa;
}
.format-tab {
    padding: 7px 14px;
    font-size: 13px;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s, color .15s;
    border-right: 1px solid var(--border);
}
.format-tab:last-child { border-right: none; }
.format-tab:hover { color: var(--text); background: #eaeef3; }
.format-tab.active {
    background: var(--primary);
    color: #fff;
}

/* ========== 落地页：使用步骤 ========== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}
.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px 22px;
    text-align: center;
    position: relative;
}
.step-num {
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(47, 111, 237, 0.25);
}
.step h3 { font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.step p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }

/* ========== 落地页：板块间距（大留白节奏） ========== */
.home-section {
    margin-top: 72px;
}
/* 首页各区块标题统一居中 + 下方品牌色小分隔条 */
.home-section .section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}
.home-section .section-head::after {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2f6fed, #1f56c4);
    margin: 16px auto 0;
}
.home-section .section-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.home-section .section-subtitle {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 0;
    line-height: 1.7;
}

/* 首页瀑布流实景图（按图片数量收窄列数并居中，少图时不贴左突兀） */
.home-waterfall {
    --hg-gap: 14px;
    --hg-col-w: 270px;
    --hg-cols: 4;
    column-count: var(--hg-cols);
    column-gap: var(--hg-gap);
    width: min(100%, calc(var(--hg-cols) * var(--hg-col-w) + (var(--hg-cols) - 1) * var(--hg-gap)));
    max-width: 1200px;
    margin-inline: auto;
}
.home-waterfall--cols-1 { --hg-cols: 1; }
.home-waterfall--cols-2 { --hg-cols: 2; }
.home-waterfall--cols-3 { --hg-cols: 3; }
.home-waterfall--cols-4 { --hg-cols: 4; }
.home-waterfall-item {
    break-inside: avoid;
    margin: 0 0 14px;
    overflow: hidden;
    background: #eef1f6;
}
.home-waterfall-item img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}
@media (max-width: 960px) {
    .home-waterfall {
        --hg-col-w: 220px;
    }
    .home-waterfall--cols-4 { --hg-cols: 3; }
}
@media (max-width: 640px) {
    .home-waterfall {
        --hg-gap: 10px;
        --hg-col-w: 160px;
    }
    .home-waterfall--cols-2,
    .home-waterfall--cols-3,
    .home-waterfall--cols-4 { --hg-cols: 2; }
    .home-waterfall--cols-1 { --hg-cols: 1; }
    .home-waterfall-item { margin-bottom: 10px; }
}
.home-waterfall-more {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin: 28px auto 0;
    line-height: 1.6;
    max-width: 560px;
}

/* 交替底色满宽浅灰带：与白底区块形成板块节奏 */
.home-section.home-band {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    padding-top: 70px;    /* 带内上下留白，避免内容贴边 */
    padding-bottom: 70px;
    background: #ffffff;
    border-top: 1px solid #eef1f6;
    border-bottom: 1px solid #eef1f6;
}

/* ========== CTA：全宽条（边缘到边缘，非浮动圆角卡） ========== */
.cta-band {
    margin-top: 72px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(135deg, #2f6fed, #1f56c4);
}
/* CTA 在 main 外、紧贴 footer，去掉二者之间的空隙 */
.cta-band + .footer {
    margin-top: 0;
    border-top: none;
}
body.page-with-cta .main {
    padding-bottom: 0;
}
.cta-band-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 68px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}
.cta-band h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}
.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}
.cta-band .btn-light {
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid #fff;
    border-radius: 999px;
    padding: 13px 36px;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}
.cta-band .btn-light:hover {
    background: #f0f4ff;
    color: var(--primary-dark);
}
@media (max-width: 600px) {
    .cta-band .btn-light { align-self: stretch; text-align: center; }
}

/* ========== 落地页：FAQ ========== */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: #fff;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
    content: '▸';
    color: var(--primary);
    margin-right: 8px;
    display: inline-block;
    transition: transform .15s;
}
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
@media (max-width: 720px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
}

/* ========== 文章查看页 ========== */
body.page-article { background: #fff; }
.article-layout {
    margin-top: 8px;
}
.article-layout.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 36px;
    align-items: start;
}
.article {
    padding: 8px 0 0;
    margin-top: 0;
    min-width: 0;
}
.article-layout:not(.has-sidebar) .article {
    margin-top: 8px;
}
.article-sidebar {
    position: sticky;
    top: 80px;
    padding: 16px 14px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fafbfc;
}
.article-sidebar-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.article-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.article-sidebar-list li + li {
    border-top: 1px solid var(--border);
}
.article-sidebar-list a {
    display: block;
    padding: 10px 2px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
    text-decoration: none;
}
.article-sidebar-list a:hover {
    color: var(--primary);
}
.article-sidebar-more {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--primary);
}
.article-sidebar-more:hover {
    color: var(--primary-dark);
}
@media (max-width: 900px) {
    .article-layout.has-sidebar {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .article-sidebar {
        position: static;
        order: 2;
    }
}
/* 文章/分类页面包屑导航 */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.6; }

/* 分类列表页文章列表 */
.category-article-list { list-style: none; padding: 0; margin: 0; }
.category-article-list li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.category-article-list li:last-child { border-bottom: none; }
.category-article-list li a { color: var(--text); text-decoration: none; font-size: 15px; }
.category-article-list li a:hover { color: var(--primary); }
.category-article-list li time { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) {
    .category-article-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

.article-title {
    font-size: 32px;
    line-height: 1.35;
    margin: 0 0 12px;
    padding: 0;
    color: var(--text);
}
.article-meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.article-content {
    color: #3d4858;
    font-size: 17px;
    line-height: 1.85;
}
.article-content h2 {
    font-size: 22px;
    margin: 22px 0 10px;
}
.article-content h3 {
    font-size: 18px;
    margin: 18px 0 8px;
}
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 { color: var(--text); }
.article-content p { margin: 10px 0; }
.article-content ul, .article-content ol {
    margin: 10px 0;
    padding-left: 24px;
}
.article-content li { margin: 4px 0; }
.article-content pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0;
}
.article-content code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}
.article-content pre code { background: none; padding: 0; }
.article-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 12px 0; -webkit-user-drag: none; user-select: none; }
.article-content blockquote {
    border-left: 3px solid var(--primary);
    margin: 12px 0;
    padding: 4px 16px;
    color: var(--muted);
    background: var(--bg);
    border-radius: 0 6px 6px 0;
}
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}
.article-content th,
.article-content td {
    border: 1px solid #c5cdd8;
    padding: 8px 12px;
    text-align: left;
}
.article-content th {
    background: var(--bg);
    font-weight: 600;
}
.article-foot {
    margin-top: 24px;
}
.article-foot .btn { margin-right: 8px; }
.article-disclaimer {
    margin-top: 36px;
    padding: 18px 20px;
    border-top: 1px solid var(--border);
    background: #f7f9fc;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}
.article-disclaimer-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.article-disclaimer p {
    margin: 0 0 8px;
}
.article-disclaimer p:last-child {
    margin-bottom: 0;
}
.article-disclaimer strong {
    color: #4a5568;
    font-weight: 600;
}
@media (max-width: 600px) {
    .article-title { font-size: 24px; }
}

/* ========== 页脚 ========== */
.footer {
    margin-top: auto;
    width: 100%;
    background: var(--card);
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px 40px;
    padding: 44px 24px 32px;
}
.footer-left {
    max-width: 420px;
}
.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    line-height: 0;
}
.footer-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
}
.footer-slogan {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}
.footer-menus {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 48px;
}
.footer-menu-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-menus h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: .04em;
}
.footer-menus a {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    transition: color .15s;
}
.footer-menus a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    padding: 14px 24px;
    color: var(--muted);
    font-size: 13px;
}
.footer-bottom-inner a { color: var(--muted); }
.footer-bottom-inner a:hover { color: var(--primary); }
@media (max-width: 720px) {
    .footer-inner { flex-direction: column; gap: 24px; padding: 32px 20px 24px; }
    .footer-bottom-inner { padding: 12px 20px; }
}

/* ========== 右下角悬浮组件：联系客服 + 返回顶部 ========== */
.float-dock {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 17px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, opacity 0.25s, transform 0.25s;
}
.float-btn:hover {
    color: var(--primary);
    border-color: rgba(47, 111, 237, 0.45);
    background: #f5f8fe;
}
.float-contact {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.float-contact:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
/* 返回顶部：滚过一屏前隐藏，不占位 */
.float-top {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
.float-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* hover 文字提示 */
.float-tip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    white-space: nowrap;
    font-size: 12px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.float-btn:hover .float-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
@media (max-width: 480px) {
    .float-dock { right: 12px; bottom: 16px; }
    .float-btn { width: 40px; height: 40px; font-size: 15px; }
}

/* ========== 列设置下拉面板（仪表盘自定义展示列） ========== */
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.col-settings {
    position: relative;
}
.col-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    width: 220px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(20, 40, 80, 0.12);
    padding: 12px 14px 10px;
}
.col-panel[hidden] { display: none; }
.col-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}
.col-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: background .12s;
}
.col-item:hover { background: #f5f7fa; }
.col-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}
.col-item input[type="checkbox"]:disabled { cursor: not-allowed; }
.col-label {
    flex: 1;
    font-size: 14px;
    color: var(--text);
}
.col-req {
    font-size: 11px;
    color: var(--muted);
    background: #eef1f5;
    padding: 1px 6px;
    border-radius: 8px;
}
.col-panel-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
@media (max-width: 600px) {
    .col-panel {
        right: auto;
        left: 0;
        width: 240px;
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* ========== 批量操作条 ========== */
.bulk-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0 10px;
}
.bulk-count {
    color: var(--muted);
    font-size: 14px;
}
.col-check {
    width: 40px;
    text-align: center;
}
.col-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #9cbcec;
    cursor: pointer;
    vertical-align: middle;
}

/* ========== 后台侧边布局（admin_header / admin_footer） ========== */
.admin-body { overflow-x: hidden; }
.admin-layout {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
    flex: 1 1 auto;
}
.admin-sidebar {
    width: 220px;
    flex: 0 0 220px;
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 30;
}
.admin-brand {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    line-height: 0;
}
.admin-brand img {
    display: block;
    height: 30px;
    width: auto;
    max-width: 100%;
}
.admin-nav {
    flex: 1 1 auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-nav a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}
.admin-nav a:hover { background: var(--bg); color: var(--primary); }
.admin-nav a.active { background: #eaf1ff; color: var(--primary); }
/* 菜单图标：独立图片（assets/img/menu/），固定列宽对齐；换图标直接替换同名文件 */
.admin-nav .menu-icon,
.admin-nav-toggle .menu-icon,
.admin-nav-label .menu-icon,
.admin-back-home .menu-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.admin-nav a:hover .menu-icon,
.admin-nav a.active .menu-icon,
.admin-nav-toggle:hover .menu-icon,
.admin-nav-toggle.active .menu-icon {
    filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(1800%) hue-rotate(204deg) brightness(95%);
}
.admin-nav-label .menu-icon.menu-icon-sm { width: 14px; height: 14px; margin-right: 8px; }
.admin-nav-group { margin-top: 14px; }
.admin-nav-label {
    display: flex;
    align-items: center;
    padding: 8px 14px 4px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-sidebar-footer {
    padding: 10px;
    border-top: 1px solid var(--border);
}
.admin-back-home {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 15px;
}
.admin-back-home:hover { background: var(--bg); color: var(--primary); }

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    height: 67px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 20;
}
.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.admin-page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
/* 顶栏头像下拉菜单（<details>/<summary> 原生折叠） */
.admin-user-menu { position: relative; }
.admin-user-menu > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    line-height: 0;
}
.admin-user-menu > summary::-webkit-details-marker { display: none; }
.admin-user-menu > summary:hover { opacity: 0.85; }
.admin-user-menu > summary img {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
.admin-user-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(15, 30, 60, 0.12) !important;
    padding: 6px 0;
    z-index: 40;
}
.admin-user-name {
    margin: 0;
    padding: 8px 14px 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    word-break: break-all;
}
.admin-user-panel a {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
}
.admin-user-panel a:hover { background: var(--bg); color: var(--primary); }
.admin-user-upgrade {
    margin: 4px 10px 8px;
    padding: 6px 10px !important;
    border-radius: 0;
    background: transparent;
    color: var(--primary) !important;
    font-weight: 500;
    border: 1px solid var(--primary);
    justify-content: center;
}
.admin-user-upgrade:hover {
    background: #eaf1ff !important;
    color: var(--primary) !important;
}
.admin-user-upgrade .menu-icon {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(1800%) hue-rotate(204deg) brightness(95%);
}
.admin-user-panel .admin-user-logout { color: #d03050; }
.admin-user-panel .admin-user-logout:hover { background: #fdf0f3; color: #b02a46; }
/* 侧边栏抽屉按钮（仅移动端显示） */
.admin-sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    align-items: center;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.admin-sidebar-toggle:hover {
    background: #f5f7fa;
    border-color: var(--primary);
}
.admin-sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}
.admin-content {
    flex: 1 1 auto;
    padding: 24px 20px 40px;
}
/* 顶栏现在承载页面标题/头像菜单，桌面与移动端均显示
   （汉堡按钮仍仅移动端显示，见 .admin-sidebar-toggle） */
/* 侧边栏折叠子菜单（<details>/<summary> 原生折叠） */
.admin-nav-collapse { margin-top: 2px; }
.admin-nav-collapse > summary {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border: none;
    background: none;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    user-select: none;
}
.admin-nav-collapse > summary::-webkit-details-marker { display: none; }
.admin-nav-collapse > summary:hover { background: var(--bg); color: var(--primary); }
.admin-nav-collapse > summary.active { color: var(--primary); }
.admin-nav-collapse > summary::after {
    content: '';
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-top: -3px;
}
.admin-nav-collapse[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: 1px;
}
.admin-nav-sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 6px 12px;
    margin: 2px 0 4px 10px;
    border-left: 2px solid var(--border);
}
.admin-nav-sub a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}
.admin-nav-sub a:hover { background: var(--bg); color: var(--primary); }
.admin-nav-sub a.active { color: var(--primary); }
.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 25;
}

/* 工作台（后台默认首页） */
.workbench-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
    margin-top: 36px;
}
.workbench-layout.is-no-hero {
    margin-top: 12px;
}
.workbench-main { min-width: 0; }
.workbench-side {
    position: sticky;
    top: 84px;
}
.workbench-tutorial {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    padding: 16px 14px 12px;
}
.workbench-tutorial-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.workbench-tutorial-title i {
    color: var(--primary);
    font-size: 14px;
}
.workbench-tutorial-empty {
    margin: 0;
    padding: 8px 4px 10px;
    color: var(--muted);
    font-size: 13px;
}
.workbench-tutorial-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.workbench-tutorial-list li + li {
    border-top: 1px solid var(--border);
}
.workbench-tutorial-list a {
    display: block;
    padding: 11px 0;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.45;
}
.workbench-tutorial-list a:hover {
    color: var(--primary);
}
.workbench-hero {
    text-align: center;
    padding: 44px 16px 8px;
}
.workbench-hi {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}
.workbench-sub {
    margin-top: 10px;
    font-size: 14px;
    color: var(--muted);
}
.workbench-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0;
}
.workbench-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 26px 24px 22px;
    background: linear-gradient(180deg, #f4f8ff 0%, #fff 64%);
    border: 1.5px solid #c9dbff;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.workbench-card:hover {
    border-color: var(--primary);
    background: #eaf1ff;
    color: inherit;
    box-shadow: 0 10px 28px rgba(47, 111, 237, 0.14);
    transform: translateY(-2px);
}
.workbench-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eaf1ff;
    color: var(--primary);
    font-size: 24px;
}
.workbench-card-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    /* 与侧栏菜单图标同源 SVG，着色为主题蓝 */
    filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(1800%) hue-rotate(204deg) brightness(95%);
}
.workbench-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
}
.workbench-card-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--muted);
    flex: 1 1 auto;
}
.workbench-card-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
}
.workbench-card:hover .workbench-card-go {
    background: var(--primary-dark);
    color: #fff;
}
.workbench-card:hover .workbench-card-go i {
    transform: translateX(3px);
}
.workbench-card-go i { transition: transform 0.15s ease; }

/* 工作台：存储空间用量 */
.workbench-storage {
    width: 100%;
    margin: 26px auto 0;
    padding: 20px 26px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.workbench-storage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.workbench-storage-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.workbench-storage-title i {
    color: var(--primary);
    margin-right: 8px;
}
.workbench-storage-quota {
    font-size: 13px;
    color: var(--muted);
}
.storage-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--bg);
    overflow: hidden;
}
.storage-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.storage-bar.is-warn .storage-bar-fill { background: var(--warning); }
.storage-bar.is-over .storage-bar-fill { background: var(--danger); }
.workbench-storage-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}
.workbench-storage-meta b { color: var(--text); }
.storage-danger {
    color: var(--danger);
    font-weight: 600;
}

/* 工作台：升级会员横幅 */
.workbench-upgrade {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 26px auto 0;
    padding: 18px 26px;
    background: linear-gradient(135deg, #2f6fed, #1f56c4);
    border-radius: var(--radius);
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.workbench-upgrade:hover { opacity: 0.92; }
.workbench-upgrade-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffd76a;
    font-size: 20px;
}
.workbench-upgrade-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.workbench-upgrade-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #fff;
}
.workbench-upgrade-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.82);
}
.workbench-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    font-size: 13.5px;
    font-weight: 700;
}
.workbench-upgrade-btn i { transition: transform 0.15s ease; }
.workbench-upgrade:hover .workbench-upgrade-btn i { transform: translateX(3px); }

@media (max-width: 960px) {
    .workbench-layout {
        grid-template-columns: 1fr;
    }
    .workbench-side {
        position: static;
    }
}
@media (max-width: 600px) {
    .workbench-actions { grid-template-columns: 1fr; }
    .workbench-layout { margin-top: 28px; }
    .workbench-hi { font-size: 22px; }
    .workbench-hero { padding-top: 28px; }
    .workbench-upgrade { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
    .workbench-upgrade-btn { margin-left: 0; }
}

/* 打印：后台不打印侧栏与顶栏 */
@media print {
    .admin-sidebar, .admin-topbar, .admin-sidebar-backdrop { display: none !important; }
    .admin-content { padding: 0; }
}

/* 移动端：侧边栏变抽屉，顶栏显示汉堡按钮 */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-sidebar-toggle { display: inline-flex; }
    .admin-content { padding: 18px 14px 32px; }
}
@media (max-width: 480px) {
    .admin-content { padding: 14px 10px 24px; }
    .admin-topbar { padding: 0 14px; }
}

/* ============== 资产图片上传 / 缩略图 ============== */
.img-count {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    font-size: 12px;
    color: var(--muted);
    background: var(--bg);
    border-radius: 10px;
    font-weight: 400;
}
.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.img-grid-view {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.img-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
}
.img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.img-thumb.uploading {
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-spin {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: imgSpin 0.8s linear infinite;
}
@keyframes imgSpin { to { transform: rotate(360deg); } }
.img-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}
.img-thumb:hover .img-del { opacity: 1; }
.img-del:hover { background: var(--danger); }
.img-grid-view .img-thumb { cursor: zoom-in; }
.img-thumb-zoom { cursor: zoom-in; }

/* 图片灯箱 */
.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: imgLbFade 0.18s ease;
}
.img-lightbox[hidden] { display: none; }
@keyframes imgLbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.img-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.img-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 24px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease;
}
.img-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
.img-add {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.img-hint {
    font-size: 12px;
    color: var(--muted);
}

/* ============== 管理员图片总览 ============== */
.admin-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 8px;
}
.ai-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.ai-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.ai-thumb {
    aspect-ratio: 4 / 3;
    background: var(--bg);
    overflow: hidden;
}
.ai-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ai-meta {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}
.ai-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    word-break: break-all;
}
.ai-row i {
    color: var(--muted);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.ai-row a { color: var(--primary); }
.ai-row a:hover { text-decoration: underline; }
.ai-size {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}
@media (max-width: 480px) {
    .img-grid,
    .img-grid-view {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    .admin-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* ============== 会员价格页 / 支付结果页 ============== */
/* hidden 属性修复：防止组件 display 样式覆盖隐藏 */
[hidden] {
    display: none !important;
}
.pricing-hero {
    text-align: center;
    padding: 20px 0 8px;
}
.pricing-hero h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
}
.pricing-hero p {
    color: var(--muted);
    font-size: 14px;
}
.member-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px auto 0;
    max-width: 1120px;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}
.member-banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.member-banner-plan {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    background: #e3f3e8;
    color: #1f6b3e;
    font-weight: 600;
    font-size: 13px;
}
.member-banner-plan.member-banner-free {
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--border);
}
.member-banner-meta {
    color: var(--muted);
    font-size: 13px;
}
.member-banner-meta b { color: var(--text); }

/* 我的订单：会员状态摘要卡 */
.member-order-summary {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(47, 111, 237, 0.06) 0%, rgba(255, 255, 255, 0.9) 42%, #fff 100%),
        var(--card);
    position: relative;
    overflow: hidden;
}
.member-order-summary-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf1ff;
    color: var(--primary);
    font-size: 20px;
}
.member-order-summary.is-member .member-order-summary-icon {
    background: #e3f3e8;
    color: #1f6b3e;
}
.member-order-summary-body {
    flex: 1;
    min-width: 0;
}
.member-order-summary-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.member-order-summary-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.member-order-summary-plan {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--border);
}
.member-order-summary.is-member .member-order-summary-plan {
    background: #e3f3e8;
    color: #1f6b3e;
    border-color: transparent;
}
.member-order-summary-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}
.member-order-summary-meta b { color: var(--text); font-weight: 600; }
.member-order-summary-sep {
    width: 1px;
    height: 12px;
    background: var(--border);
}
.member-order-summary-desc {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
@media (max-width: 560px) {
    .member-order-summary { padding: 16px; gap: 12px; }
    .member-order-summary-icon { width: 42px; height: 42px; font-size: 18px; }
    .member-order-summary-sep { display: none; }
}

.pricing-form {
    max-width: 1120px;
    margin: 0 auto 24px;
}
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 32px;
}
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 22px 22px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.plan-card:hover { border-color: #b9c8e8; }
.plan-card.selected { border-color: var(--primary); }
.plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
/* 免费版卡片（仅展示，不可购买） */
.plan-card-static {
    cursor: default;
    border-style: dashed;
    background: transparent;
}
.plan-card-static:hover { border-color: var(--border); }
.plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
}
.plan-badge.current {
    color: #1f6b3e;
    background: #e3f3e8;
    border-color: #cbe8d5;
}
.plan-btn-static {
    cursor: default;
    font-weight: 400 !important;
    color: var(--muted) !important;
    background: var(--bg) !important;
    border-color: var(--border) !important;
}
.plan-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: var(--border);
    color: var(--card);
    font-size: 13px;
    font-weight: 700;
}
.plan-card.selected .plan-check {
    background: var(--primary);
    color: #fff;
}
.plan-head h3 {
    font-size: 19px;
    margin-bottom: 4px;
}
.plan-tagline {
    color: var(--muted);
    font-size: 13px;
}
.plan-price {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}
.plan-price .cur {
    font-size: 18px;
    font-weight: 600;
    margin-right: 2px;
    color: var(--muted);
}
.plan-price .per {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 4px;
}
.plan-btn {
    margin-top: auto;
    text-align: center;
    padding: 9px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.plan-card.selected .plan-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pricing-subtitle {
    margin: 36px 0 0;
    font-size: 17px;
}
.year-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.year-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 96px;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.year-tab:hover { border-color: #b9c8e8; }
.year-tab.selected { border-color: var(--primary); }
.year-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.year-tab b { font-size: 15px; color: var(--text); }
.year-tab span { font-size: 12px; color: var(--muted); }
.year-tab.selected span { color: var(--primary); }

.pay-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}
.pay-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.pay-channel-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.pay-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.pay-channel-btn:hover { border-color: var(--primary); color: var(--primary); }
.pay-channel-btn.active {
    border-color: var(--primary);
    background: #eaf1ff;
    color: var(--primary);
}
.pay-channel-btn .fa-weixin { color: #07c160; }
.pay-channel-btn .fa-alipay { color: #1677ff; }
.pay-channel-btn.active .fa-weixin,
.pay-channel-btn.active .fa-alipay { color: inherit; }
.pay-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 2px;
}
.pay-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.pay-amount .cur {
    font-size: 17px;
    margin-right: 2px;
    color: var(--primary);
}
.pay-original {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}
.pay-credit {
    font-size: 13px;
    color: #1f6b3e;
    background: #e3f3e8;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    margin-top: 6px;
}
.pay-warn {
    margin-top: 6px;
    font-size: 13px;
    color: var(--danger);
}

/* 支付结果页 */
.pay-result {
    display: flex;
    justify-content: center;
    padding: 48px 0;
}
.pay-result-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    padding: 40px 32px;
}
.pay-result-card h1 { font-size: 26px; margin-bottom: 12px; }
.pay-result-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}
.pay-result-ok .pay-result-icon { background: var(--success); }
.pay-result-wait .pay-result-icon { background: var(--warning); }
.pay-result-bad .pay-result-icon { background: var(--danger); }
.pay-result-sub {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    word-break: break-all;
}
.pay-result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* 会员权益对比表 */
.compare-section {
    max-width: 1120px;
    margin: 0 auto 24px;
}
.pricing-faq-section {
    max-width: 1120px;
    margin: 0 auto 36px;
}
.pricing-faq-list {
    margin-top: 14px;
}
.pricing-faq-list .faq-item {
    margin-bottom: 10px;
}
.compare-wrap {
    margin-top: 14px;
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 14px;
}
.compare-table th,
.compare-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.compare-table tr:last-child th,
.compare-table tr:last-child td {
    border-bottom: none;
}
.compare-table thead th {
    background: var(--bg);
    color: var(--text);
    white-space: nowrap;
}
.compare-table tbody th {
    text-align: left;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}
.compare-table td {
    color: var(--text);
    white-space: nowrap;
}
.compare-table .ct-yes {
    color: #1f6b3e;
    font-weight: 700;
}
.compare-table .ct-no {
    color: var(--muted);
}

@media (max-width: 768px) {
    .plan-grid { grid-template-columns: 1fr; }
    .pricing-hero { padding-top: 12px; }
    .pricing-hero h1 { font-size: 20px; }
    .pay-bar { flex-direction: column; align-items: stretch; }
    .pay-bar .btn-lg { width: 100%; }
    .year-grid { gap: 8px; }
    .year-tab { min-width: 0; flex: 1; padding: 10px 8px; }
    .compare-table th,
    .compare-table td { padding: 10px 12px; font-size: 13px; }
}

/* ---- 工单 ---- */
.nav-badge {
    display: inline-block;
    min-width: 18px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 9px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    vertical-align: middle;
}
.nav-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--danger);
    vertical-align: middle;
}
.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
}
.ticket-msg {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
}
.ticket-msg.is-admin {
    background: #f5f8ff;
    border-color: #d7e3ff;
}
.ticket-msg.is-user {
    background: #fafbfc;
}
.ticket-msg-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--muted);
}
.ticket-msg-meta strong {
    color: var(--text);
    font-size: 13px;
}
.ticket-msg-body {
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
}
.ticket-msg-imgs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.ticket-msg-imgs img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: zoom-in;
}
@media (max-width: 640px) {
    .ticket-msg-imgs img {
        width: 96px;
        height: 96px;
    }
}

/* ---- 站内信顶栏 ---- */
.admin-notify { position: relative; }
.admin-notify > summary {
    list-style: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #4a5568;
    cursor: pointer;
    line-height: 1;
}
.admin-notify > summary::-webkit-details-marker { display: none; }
.admin-notify > summary:hover { background: var(--bg); color: var(--primary); }
.admin-notify > summary i { font-size: 16px; }
.admin-notify-dot {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 1.5px solid #fff;
    pointer-events: none;
}
.admin-notify-dot[hidden] { display: none !important; }
.admin-notify-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(360px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(20, 30, 50, 0.12);
    z-index: 40;
    overflow: hidden;
}
.admin-notify-head {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.admin-notify-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 6px 0;
}
.admin-notify-empty,
.admin-notify-end {
    margin: 0;
    padding: 22px 14px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.admin-notify-end { padding: 10px 14px 16px; }
.admin-notify-item {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f3f7;
}
.admin-notify-item:last-child { border-bottom: none; }
.admin-notify-item.is-unread {
    background: #f7faff;
}
.admin-notify-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.admin-notify-item-body {
    font-size: 13px;
    line-height: 1.55;
    color: #4a5568;
    word-break: break-word;
}
.admin-notify-item-meta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}
.admin-notify-item-meta a {
    color: var(--primary);
    text-decoration: none;
}
.admin-notify-item-meta a:hover { text-decoration: underline; }

/* ---- 站内信选人搜索 ---- */
.notify-user-picker { position: relative; }
.notify-user-results {
    list-style: none;
    margin: 6px 0 0;
    padding: 4px 0;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(20, 30, 50, 0.08);
}
.notify-user-results li { margin: 0; }
.notify-user-results button {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
}
.notify-user-results button:hover { background: #f3f7ff; color: var(--primary); }
.notify-user-empty {
    padding: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.notify-user-selected {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f5f8ff;
    border: 1px solid #d7e3ff;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.notify-user-clear {
    border: none;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    flex-shrink: 0;
}

/* ========== 固定资产标签设计器 ========== */
.label-designer {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    gap: 20px;
    align-items: start;
}
.label-designer-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.label-designer-side .card { margin: 0; }
.label-panel-title {
    margin: 0 0 12px;
    font-size: 15px;
}
.label-preview-card { margin: 0; }
.label-preview-toolbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.label-preview-hint {
    color: var(--muted);
    font-size: 12px;
}
.label-preview-stage {
    background: #eef1f6;
    border-radius: 10px;
    padding: 28px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 380px;
}
.label-preview-sheet {
    background: transparent;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}
.label-tpl-nav {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #334155;
    box-shadow: 0 2px 10px rgba(20, 30, 50, 0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.label-tpl-nav:hover {
    background: #1e293b;
    color: #fff;
}
.label-tpl-nav:active {
    transform: scale(0.96);
}
.label-tpl-nav:focus-visible {
    outline: 2px solid #2f6fed;
    outline-offset: 2px;
}
#labelCanvas {
    display: block;
    max-width: none;
    height: auto;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20, 30, 50, 0.1);
}
.label-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.label-preview-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}
.label-msg {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}
.label-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
}
.label-swatch {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12);
    padding: 0;
    cursor: pointer;
    box-sizing: border-box;
    flex: 0 0 auto;
}
.label-swatch:hover { transform: scale(1.08); }
.label-swatch.is-active {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}
.label-swatch[data-color="#ffffff"],
.label-swatch[data-color="#FFFFFF"] {
    box-shadow: inset 0 0 0 1px #ddd;
}
.label-dl-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 40, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 20px;
}
.label-dl-modal[hidden] { display: none; }
.label-dl-modal-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(0,0,0,0.22);
    padding: 20px 22px 18px;
    width: 400px;
    max-width: 96vw;
    animation: del-pop .18s ease;
}
.label-dl-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.label-dl-opt {
    text-align: left;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-family: inherit;
}
.label-dl-opt:hover {
    border-color: var(--primary);
    background: #eaf1ff;
}
.label-dl-opt strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}
.label-dl-opt span {
    font-size: 12px;
    color: var(--muted);
}

.label-style-tip {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.label-text-editor {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(20, 40, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.label-text-editor[hidden] { display: none; }
.label-text-editor-card {
    position: relative;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.22);
    border: 1px solid var(--border);
    padding: 18px 18px 14px;
    animation: del-pop .18s ease;
}
.label-text-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.label-text-editor-head strong { font-size: 14px; }
.label-text-editor-close {
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 2px;
}
.label-text-editor-close:hover { color: var(--text); }
.label-edit-value-hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}
.label-text-editor .btn { width: 100%; margin-top: 4px; }
#labelCanvas { cursor: pointer; }

.label-msg.ok { background: #e6f7ec; color: #1e8449; }
.label-msg.err { background: #fdecea; color: #b03a2e; }
.label-current-tpl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.label-current-tpl-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.label-current-tpl-info strong {
    font-size: 14px;
    font-weight: 600;
}
.label-current-tpl-meta {
    color: var(--muted);
    font-size: 12px;
}
.label-tpl-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 40, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 20px;
}
.label-tpl-modal[hidden] { display: none; }
.label-tpl-modal-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(0,0,0,0.22);
    padding: 20px 22px 18px;
    width: 720px;
    max-width: 96vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    animation: del-pop .18s ease;
}
.label-tpl-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.label-tpl-modal-head h3 {
    margin: 0;
    font-size: 17px;
}
.label-tpl-modal-close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 4px;
}
.label-tpl-modal-close:hover { color: var(--text); }
.label-tpl-modal .label-template-filters { flex-shrink: 0; }
.label-tpl-modal .label-template-grid {
    grid-template-columns: 1fr 1fr 1fr;
    max-height: none;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.label-template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 2px;
}
.label-template-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.label-filter-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}
.label-filter-btn:hover { color: var(--primary); border-color: var(--primary); }
.label-filter-btn.active {
    background: #eaf1ff;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}
.label-template-card {
    text-align: left;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px 12px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.label-template-card:hover { border-color: var(--primary); }
.label-template-card.active {
    border-color: var(--primary);
    background: #eaf1ff;
}
.label-template-card.is-match:not(.active) {
    box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.25);
}
.label-template-thumb {
    display: block;
    height: 54px;
    border-radius: 6px;
    border: 1px solid #dbe2ea;
    background: #f7f9fc;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}
.label-template-thumb::before,
.label-template-thumb::after {
    content: "";
    position: absolute;
    background: #c5d0de;
    border-radius: 2px;
}
/* 简易版式缩略示意 */
.label-template-thumb[data-layout="side_right"]::before { left: 8px; top: 10px; width: 46%; height: 8px; box-shadow: 0 12px #c5d0de, 0 24px #c5d0de; }
.label-template-thumb[data-layout="side_right"]::after { right: 8px; top: 10px; width: 28%; height: 34px; background: #9aa8bc; }
.label-template-thumb[data-layout="side_left"]::before { right: 8px; top: 10px; width: 46%; height: 8px; box-shadow: 0 12px #c5d0de, 0 24px #c5d0de; }
.label-template-thumb[data-layout="side_left"]::after { left: 8px; top: 10px; width: 28%; height: 34px; background: #9aa8bc; }
.label-template-thumb[data-layout="top"]::before { left: 30%; top: 6px; width: 40%; height: 22px; background: #9aa8bc; }
.label-template-thumb[data-layout="top"]::after { left: 12px; bottom: 8px; width: 70%; height: 7px; box-shadow: 0 11px #c5d0de; }
.label-template-thumb[data-layout="bottom"]::before { left: 12px; top: 8px; width: 70%; height: 7px; box-shadow: 0 11px #c5d0de, 0 22px #c5d0de; }
.label-template-thumb[data-layout="bottom"]::after { left: 30%; bottom: 6px; width: 40%; height: 18px; background: #9aa8bc; }
.label-template-thumb[data-layout="header_side"]::before { left: 0; top: 0; right: 0; height: 12px; width: 100%; background: #2f6fed; border-radius: 0; }
.label-template-thumb[data-layout="header_side"]::after { right: 8px; top: 18px; width: 26%; height: 28px; background: #9aa8bc; }
.label-template-thumb[data-layout="table"]::before {
    left: 4px; top: 4px; right: 4px; bottom: 4px; width: auto; height: auto;
    background: transparent; border: 1px solid #111; border-radius: 0;
    box-shadow: inset 0 14px 0 -13px #111, inset 0 28px 0 -27px #111;
}
.label-template-thumb[data-layout="table"]::after { right: 10px; bottom: 8px; width: 18%; height: 18px; background: #9aa8bc; }
.label-template-thumb[data-layout="simple_table"]::before {
    left: 3px; top: 3px; right: 3px; bottom: 3px; width: auto; height: auto;
    background: transparent; border: 1px solid #111; border-radius: 0;
    box-shadow: inset 0 10px 0 -9px #111, inset 0 20px 0 -19px #111, inset 0 30px 0 -29px #111;
}
.label-template-thumb[data-layout="simple_table"]::after {
    right: 5px; bottom: 5px; width: 22%; height: 26px; background: #9aa8bc; border-radius: 0;
}
.label-template-thumb[data-layout="big_id"]::before { left: 8px; top: 14px; width: 50%; height: 14px; background: #7f8ea3; }
.label-template-thumb[data-layout="big_id"]::after { right: 8px; top: 10px; width: 28%; height: 34px; background: #9aa8bc; }
.label-template-thumb[data-layout="stack"]::before { left: 0; top: 0; width: 100%; height: 10px; background: #2f6fed; border-radius: 0; }
.label-template-thumb[data-layout="stack"]::after { left: 28%; bottom: 6px; width: 44%; height: 16px; background: #9aa8bc; }
.label-template-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.label-template-meta {
    display: block;
    font-size: 11px;
    color: var(--primary);
}
.label-template-desc {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.label-template-use {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}
.label-field-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
}
.label-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}
.label-field-row.is-empty { opacity: 0.55; }
.label-field-row.is-locked { opacity: 0.5; }
.label-template-thumb[data-layout="classic"]::before {
    left: 8px; top: 8px; width: 42%; height: 8px; background: #7f8ea3;
    box-shadow: 0 12px 0 -4px #d0d5dd, 0 20px #c5d0de, 0 30px #c5d0de, 0 40px #c5d0de;
}
.label-template-thumb[data-layout="classic"]::after {
    right: 8px; top: 18px; width: 28%; height: 28px; background: #9aa8bc;
}
.label-template-thumb[data-layout="simple_qr"]::before {
    left: 28%; top: 6px; width: 44%; height: 28px; background: #9aa8bc;
}
.label-template-thumb[data-layout="simple_qr"]::after {
    left: 18%; bottom: 8px; width: 64%; height: 8px; background: #7f8ea3;
}
.label-template-thumb[data-layout="simple_qr_sub"]::before {
    left: 28%; top: 4px; width: 44%; height: 24px; background: #9aa8bc;
}
.label-template-thumb[data-layout="simple_qr_sub"]::after {
    left: 16%; bottom: 6px; width: 68%; height: 7px; background: #7f8ea3;
    box-shadow: 0 10px #c5d0de;
}
.label-field-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 400;
    font-size: 13px;
    min-width: 0;
}
.label-field-key {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.label-field-empty {
    color: var(--muted);
    font-size: 11px;
    flex-shrink: 0;
}
.label-field-alias { padding: 6px 8px; font-size: 12px; }
.label-field-move { display: flex; gap: 2px; }
.form-control-color {
    padding: 2px 4px;
    height: 36px;
    cursor: pointer;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 960px) {
    .label-designer { grid-template-columns: 1fr; }
    .label-tpl-modal .label-template-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .label-field-row { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .label-tpl-modal .label-template-grid { grid-template-columns: 1fr; }
    .label-current-tpl { flex-direction: column; align-items: stretch; }
}

/* ========== 404 页面 ========== */
body.page-404 {
    min-height: 100vh;
}
.page-404-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 64px;
}
.page-404-panel {
    text-align: center;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}
.page-404-panel--embed {
    padding: 48px 16px 64px;
}
.page-404-code {
    font-size: clamp(72px, 18vw, 112px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--primary);
    opacity: 0.18;
    margin-bottom: 8px;
    user-select: none;
}
.page-404-panel h1 {
    font-size: 24px;
    font-weight: 650;
    margin-bottom: 10px;
    color: var(--text);
}
.page-404-desc {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.7;
}
.page-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 22px;
}
.page-404-hint {
    font-size: 13px;
    color: var(--muted);
}
.page-404 .footer {
    margin-top: auto;
}
@media (max-width: 480px) {
    .page-404-actions { flex-direction: column; }
    .page-404-actions .btn { width: 100%; }
}

/* ========== 联系我们 ========== */
body.page-contact { background: #fff; }
.contact-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 0 72px;
}
.contact-hero {
    text-align: center;
    margin-bottom: 48px;
}
.contact-hero h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.contact-hero > p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}
.contact-about {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.contact-about h2,
.contact-way h2 {
    font-size: 20px;
    font-weight: 650;
    margin-bottom: 14px;
}
.contact-about p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.85;
    margin: 0;
}
.contact-ways {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
}
.contact-way p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0 0 20px;
}
.contact-way .btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 9px 22px;
}
.contact-meta {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    font-size: 13px !important;
}
.contact-meta a { color: var(--primary); }
@media (max-width: 720px) {
    .contact-page { padding: 32px 0 56px; }
    .contact-ways {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .contact-about {
        margin-bottom: 36px;
        padding-bottom: 32px;
    }
}

