/* ===== 全局重置 ===== */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;font-family:"Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;font-size:14px;color:#303133;background:#f0f2f5}
a{text-decoration:none;color:inherit}
ul,ol{list-style:none}
input,select,textarea,button{font-family:inherit;font-size:inherit;outline:none}

/* ===== CSS变量 ===== */
:root{
    --sidebar-bg:#1e293b;
    --sidebar-hover:#334155;
    --sidebar-active:#3b82f6;
    --primary:#3b82f6;
    --primary-dark:#2563eb;
    --success:#22c55e;
    --warning:#f97316;
    --danger:#ef4444;
    --info:#06b6d4;
    --text-primary:#1f2937;
    --text-secondary:#6b7280;
    --text-placeholder:#9ca3af;
    --border-color:#e5e7eb;
    --bg-page:#f0f2f5;
    --bg-card:#ffffff;
    --radius:8px;
    --radius-lg:16px;
    --shadow:0 1px 3px rgba(0,0,0,.08);
    --shadow-lg:0 4px 20px rgba(0,0,0,.12);
}

/* ===== 登录页 ===== */
.login-page{display:flex;min-height:100vh;background:#fff;overflow:hidden}
.login-illustration{flex:0 0 42%;background:#4A7FC1;display:flex;align-items:center;justify-content:center;
    position:relative;overflow:hidden}
.login-illustration::after{content:'';position:absolute;top:-10%;right:-18%;width:36%;height:120%;
    background:#fff;border-radius:50%}
.login-art{width:78%;max-width:380px;height:auto;position:relative;z-index:1}
.login-panel{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
    padding:40px;min-height:100vh}
.login-brand{text-align:center;margin-bottom:40px}
.login-logo{max-width:200px;width:auto;height:auto;margin:0 auto 14px;display:block;
    background:#fff;border-radius:10px;padding:6px 18px;box-shadow:0 2px 12px rgba(0,0,0,.1)}
.login-brand h1{font-size:18px;font-weight:500;color:#999;letter-spacing:3px}

/* ===== 双系统切换 ===== */
.system-switcher{display:flex;gap:12px;width:100%;max-width:340px;margin-bottom:30px}
.system-tab{flex:1;padding:16px 12px;border:2px solid #e5e7eb;border-radius:10px;background:#fafafa;
    cursor:pointer;transition:all .25s;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.system-tab:hover{border-color:#4A9EFF;background:#f0f7ff;transform:translateY(-2px);box-shadow:0 4px 12px rgba(74,158,255,.15)}
.system-tab.active{border-color:#4A9EFF;background:#fff;box-shadow:0 4px 16px rgba(74,158,255,.2)}
.system-tab.active .system-tab-icon{transform:scale(1.1)}
.system-tab-icon{font-size:28px;transition:transform .2s}
.system-tab-name{font-size:13px;font-weight:500;color:#555}
.system-tab.active .system-tab-name{color:#4A9EFF;font-weight:600}

/* 不动产系统入口 */
.real-estate-entry{width:100%;max-width:340px;text-align:center;padding:30px 20px}
.real-estate-icon{font-size:64px;margin-bottom:16px}
.real-estate-title{font-size:20px;font-weight:600;color:#333;margin-bottom:8px}
.real-estate-desc{font-size:14px;color:#888;margin-bottom:24px}
.btn-real-estate{background:#4A9EFF;margin-bottom:16px}
.btn-real-estate:hover{background:#3a8ee6}
.real-estate-tip{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:#999}

.login-form{width:100%;max-width:340px}
.input-group{position:relative;margin-bottom:16px}
.input-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;
    color:#bbb;pointer-events:none;z-index:1}
.input-group input{width:100%;height:42px;padding:0 12px 0 40px;border:1px solid #e0e0e0;
    border-radius:6px;font-size:14px;color:#333;background:#fafafa;transition:all .2s;box-sizing:border-box}
.input-group input:focus{border-color:#4A9EFF;background:#fff;box-shadow:0 0 0 3px rgba(74,158,255,.1)}
.input-group input::placeholder{color:#bbb}
.captcha-group input{padding-right:112px}
.captcha-canvas{position:absolute;right:4px;top:50%;transform:translateY(-50%);height:34px;
    width:100px;border-radius:4px;cursor:pointer;border:1px solid #e0e0e0;z-index:1}
.remember-me{display:flex;align-items:center;gap:6px;font-size:13px;color:#666;
    margin-bottom:20px;cursor:pointer;user-select:none}
.remember-me input[type=checkbox]{width:15px;height:15px;accent-color:#4A9EFF;cursor:pointer}
.btn-login{width:100%;height:42px;background:#4A9EFF;color:#fff;border:none;border-radius:6px;
    font-size:15px;font-weight:500;cursor:pointer;transition:background .2s;letter-spacing:4px}
.btn-login:hover{background:#3a8ee6}
.btn-login:active{background:#2e7fd6}

/* ===== 测试账号快速选择 ===== */
.test-accounts{margin-top:24px;padding-top:20px;border-top:1px dashed #e0e6ed}
.test-acc-title{display:flex;align-items:center;gap:6px;font-size:13px;color:#888;margin-bottom:12px}
.test-acc-icon{font-size:14px}
.test-acc-list{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.test-acc-item{padding:10px 6px;border:1px solid #e5e7eb;border-radius:8px;background:#fafafa;
    cursor:pointer;transition:all .2s;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}
.test-acc-item:hover{border-color:#4A9EFF;background:#f0f7ff;transform:translateY(-2px);box-shadow:0 4px 12px rgba(74,158,255,.15)}
.test-acc-role{font-size:11px;padding:2px 6px;border-radius:4px;font-weight:500}
.test-acc-user{font-size:12px;font-weight:600;color:#333}
.test-acc-desc{font-size:10px;color:#999}

@media (max-width:900px){
    .test-acc-list{grid-template-columns:repeat(3,1fr)}
}

/* ===== 主应用布局 ===== */
.app{display:flex;height:100vh;overflow:hidden}
.sidebar{width:220px;background:var(--sidebar-bg);display:flex;flex-direction:column;
    transition:width .3s;flex-shrink:0;overflow:hidden}
.sidebar.collapsed{width:64px}
.sidebar-header{min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;
    padding:12px 10px;color:#fff;border-bottom:1px solid rgba(255,255,255,.08);flex-shrink:0;gap:8px;
    background:linear-gradient(180deg,rgba(59,130,246,.06) 0%,transparent 100%)}
.sidebar-logo-img{height:22px;width:auto;max-width:calc(100% - 20px);object-fit:contain;flex-shrink:0;
    background:#fff;border-radius:6px;padding:5px 10px;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.sidebar-title{font-size:13px;font-weight:600;color:#f1f5f9;text-align:center;line-height:1.4;
    overflow-wrap:break-word;word-break:break-word;hyphens:auto;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
    overflow:hidden;text-overflow:ellipsis;max-width:100%;letter-spacing:.5px;padding:0 4px}
.sidebar.collapsed .sidebar-title{display:none}
.sidebar.collapsed .sidebar-header{min-height:56px;gap:0;padding:10px 4px}
.sidebar.collapsed .sidebar-logo-img{height:36px;width:36px;max-width:none;padding:0;
    border-radius:8px;object-fit:cover;object-position:center}
.sidebar-menu{flex:1;overflow-y:auto;padding:12px 0}
.sidebar-menu::-webkit-scrollbar{width:4px}
.sidebar-menu::-webkit-scrollbar-thumb{background:rgba(255,255,255,.15);border-radius:2px}
.menu-item{display:flex;align-items:center;height:44px;padding:0 20px;color:#94a3b8;cursor:pointer;
    transition:all .2s;white-space:nowrap;position:relative;margin:2px 12px;border-radius:8px}
.menu-item:hover{background:var(--sidebar-hover);color:#e2e8f0}
.menu-item.active{background:var(--sidebar-active);color:#fff}
.menu-item .menu-icon{width:20px;height:20px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.menu-item .menu-label{margin-left:12px;font-size:14px}
.sidebar.collapsed .menu-label{display:none}
.sidebar.collapsed .menu-item{justify-content:center;padding:0}

/* ===== 顶栏 ===== */
.main-wrapper{flex:1;display:flex;flex-direction:column;overflow:hidden}
.topbar{height:60px;background:#fff;display:flex;align-items:center;justify-content:space-between;
    padding:0 20px;box-shadow:var(--shadow);z-index:10;flex-shrink:0}
.topbar-left{display:flex;align-items:center;gap:12px}
.btn-toggle{width:36px;height:36px;border:none;background:transparent;cursor:pointer;
    display:flex;align-items:center;justify-content:center;border-radius:8px;color:#6b7280}
.btn-toggle:hover{background:#f3f4f6}
.breadcrumb{font-size:16px;font-weight:600;color:#1f2937}
.topbar-right{display:flex;align-items:center;gap:16px;position:relative}
.user-info{display:flex;align-items:center;gap:8px;cursor:pointer;padding:6px 12px;border-radius:8px;transition:background .2s}
.user-info:hover{background:#f3f4f6}
.user-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#1e40af);
    color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600}
.user-name{font-size:14px;color:#374151}
.user-meta{display:flex;flex-direction:column;gap:2px;line-height:1.2}
.user-role-badge{font-size:11px;color:var(--primary);background:#eff6ff;
    padding:2px 8px;border-radius:10px;white-space:nowrap;width:fit-content}
.user-dropdown{position:absolute;top:100%;right:0;background:#fff;border:1px solid var(--border-color);
    border-radius:8px;box-shadow:var(--shadow-lg);min-width:120px;display:none;z-index:100}
.user-dropdown.show{display:block}
.user-dropdown a{display:block;padding:10px 16px;color:#374151;cursor:pointer;font-size:14px}
.user-dropdown a:hover{background:#f3f4f6;color:var(--primary)}

/* ===== 内容区 ===== */
.content{flex:1;overflow-y:auto;padding:20px;background:#f0f2f5}
.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.page-title{font-size:20px;font-weight:600;color:#1f2937}
.page-header .header-actions{display:flex;gap:8px}

/* ===== 统计卡片 ===== */
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}
.stat-card{background:#fff;border-radius:var(--radius-lg);padding:20px;display:flex;align-items:center;gap:16px;
    box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;border:1px solid #f0f0f0}
.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.stat-icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;
    color:#fff;flex-shrink:0}
.stat-icon.purple{background:linear-gradient(135deg,#8b5cf6,#6366f1)}
.stat-icon.green{background:linear-gradient(135deg,#14b8a6,#22c55e)}
.stat-icon.orange{background:linear-gradient(135deg,#f97316,#fbbf24)}
.stat-icon.red{background:linear-gradient(135deg,#ef4444,#f87171)}
.stat-icon.cyan{background:linear-gradient(135deg,#06b6d4,#0ea5e9)}
.stat-icon.dark{background:linear-gradient(135deg,#374151,#1f2937)}
.stat-info{flex:1}
.stat-value{font-size:28px;font-weight:700;color:#1f2937;line-height:1.2}
.stat-label{font-size:13px;color:#9ca3af;margin-top:4px}

/* ===== 图表卡片 ===== */
chart-grid,.chart-row{display:grid;gap:16px;margin-bottom:20px}
.chart-grid{grid-template-columns:1fr 1fr}
.chart-row{grid-template-columns:1fr}
.chart-card{background:#fff;border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow);border:1px solid #f0f0f0}
.chart-card h3{font-size:16px;font-weight:600;color:#1f2937;margin-bottom:16px}

/* ===== 查询表单卡片 ===== */
.search-card{background:#fff;border-radius:8px;box-shadow:var(--shadow);padding:18px 20px 4px;
    margin-bottom:16px;border:1px solid #f0f0f0}
.search-form{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:flex-end}
.search-form-item{display:flex;flex-direction:column;gap:6px;flex:0 0 auto}
.search-label{font-size:13px;color:#606266;font-weight:400;line-height:1}
.search-form-item .search-input{width:200px;height:32px;font-size:13px;border-radius:4px;
    border:1px solid #dcdfe6;padding:0 10px;background:#fff;transition:border-color .2s}
.search-form-item .search-input:focus{border-color:#409eff;outline:none}
.search-form-item select.search-input{cursor:pointer;appearance:none;
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23909399' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 8px center;padding-right:28px}
.search-form-btns{margin-left:auto;display:flex;gap:10px;padding-bottom:0}
.search-form-btns .btn{height:32px;padding:0 16px;font-size:13px;border-radius:4px}

/* ===== 表格区域 ===== */
.table-card{background:#fff;border-radius:8px;box-shadow:var(--shadow);border:1px solid #f0f0f0;position:relative}
.table-scroll{overflow-x:auto}
.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 20px;border-bottom:1px solid #ebeef5;background:#fff}
.toolbar-left{display:flex;align-items:center;gap:12px;flex:1;flex-wrap:wrap}
.toolbar-right{display:flex;align-items:center;gap:8px}
.search-input{height:36px;padding:0 12px;border:1px solid var(--border-color);border-radius:6px;
    width:240px;transition:border-color .2s}
.search-input:focus{border-color:var(--primary)}
.filter-select{height:36px;padding:0 28px 0 12px;border:1px solid var(--border-color);border-radius:6px;
    background:#fff;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 10px center}

/* ===== 按钮 ===== */
.btn{height:36px;padding:0 16px;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;
    display:inline-flex;align-items:center;gap:6px;transition:all .2s;white-space:nowrap}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark)}
.btn-success{background:var(--success);color:#fff}
.btn-success:hover{background:#16a34a}
.btn-danger{background:var(--danger);color:#fff}
.btn-danger:hover{background:#dc2626}
.btn-warning{background:var(--warning);color:#fff}
.btn-warning:hover{background:#ea580c}
.btn-default{background:#fff;color:#374151;border:1px solid var(--border-color)}
.btn-default:hover{color:var(--primary);border-color:var(--primary)}
.btn-sm{height:28px;padding:0 10px;font-size:12px}
.btn-link{background:none;border:none;color:var(--primary);cursor:pointer;font-size:13px;padding:0 4px}
.btn-link:hover{text-decoration:underline}
.btn-link.danger{color:var(--danger)}

/* ===== 表格 ===== */
.data-table{width:100%;border-collapse:collapse;table-layout:fixed}
.data-table th{background:#f8fafc;padding:8px 10px;text-align:left;font-size:13px;font-weight:600;
    color:#64748b;white-space:nowrap;border-bottom:1px solid var(--border-color);overflow:hidden;text-overflow:ellipsis}
.data-table td{padding:8px 10px;font-size:13px;color:#374151;border-bottom:1px solid #f1f5f9;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.data-table tbody tr:hover{background:#f8fafc}
.data-table tbody tr:last-child td{border-bottom:none}
.data-table td.no-ellipsis{overflow:visible}
.table-actions{display:flex;align-items:center;gap:2px}
.qr-td{text-align:center}
.qr-thumb{width:32px;height:32px;cursor:pointer;border-radius:4px;border:1px solid #e5e7eb;
    transition:transform .2s}
.qr-thumb:hover{transform:scale(1.2);border-color:var(--primary)}

/* ===== 工具栏图标按钮 ===== */
.toolbar-icon-btn{
    display:inline-flex;align-items:center;justify-content:center;
    width:36px;height:36px;border-radius:6px;background:transparent;
    border:1px solid var(--border-color);color:#6b7280;cursor:pointer;
    margin-left:4px;transition:all .2s
}
.toolbar-icon-btn:hover{background:#f3f4f6;color:#1f2937;border-color:#d1d5db}

/* ===== 列设置面板 ===== */
.col-setting-panel{
    position:absolute;top:56px;right:12px;width:200px;
    background:#fff;border-radius:8px;box-shadow:0 6px 24px rgba(0,0,0,.12);
    z-index:100;display:none;overflow:hidden;border:1px solid #e4e7ed
}
.col-setting-header{
    padding:10px 16px;border-bottom:1px solid #e4e7ed;
    display:flex;justify-content:space-between;align-items:center;
    font-weight:500;color:#303133;font-size:14px;background:#fff
}
.col-reset{
    font-size:12px;color:#409eff;text-decoration:none;cursor:pointer;font-weight:400
}
.col-reset:hover{text-decoration:underline}
.col-setting-list{max-height:340px;overflow-y:auto;padding:4px 0}
.col-setting-item{
    padding:0 16px;display:flex;align-items:center;
    transition:background-color .15s;height:34px
}
.col-setting-item:hover{background-color:#f5f7fa}
.col-setting-all{
    border-bottom:1px solid #f0f0f0;margin-bottom:4px
}
.col-setting-all + .col-setting-item{margin-top:4px}
.col-check-label{
    display:flex;align-items:center;cursor:pointer;color:#606266;font-size:13px;flex:1
}
.col-check-label input[type="checkbox"]{
    width:14px;height:14px;margin-right:8px;cursor:pointer;
    accent-color:#409eff;vertical-align:middle
}

/* ===== 密度面板 ===== */
.density-panel{
    position:absolute;top:56px;right:52px;width:130px;
    background:#fff;border-radius:8px;box-shadow:0 6px 24px rgba(0,0,0,.12);
    z-index:100;display:none;overflow:hidden;border:1px solid #e4e7ed
}
.density-header{
    padding:10px 16px;border-bottom:1px solid #e4e7ed;
    font-weight:500;color:#303133;font-size:13px;background:#fff
}
.density-list{padding:4px 0}
.density-item{
    padding:0 16px;display:flex;align-items:center;cursor:pointer;
    font-size:13px;color:#606266;transition:background-color .15s;height:34px
}
.density-item:hover{background-color:#ecf5ff;color:#409eff}
.density-item.active{background-color:#ecf5ff;color:#409eff;font-weight:400}
.density-icon{margin-right:8px;font-size:14px;line-height:1}

/* ===== 表格密度 ===== */
.table-density-compact .data-table th,
.table-density-compact .data-table td{
    padding:6px 10px;font-size:12px
}
.table-density-compact .asset-img-cell{width:32px;height:32px}
.table-density-compact .asset-img-icon{font-size:14px}

.table-density-default .data-table th,
.table-density-default .data-table td{
    padding:10px 12px;font-size:13px
}
.table-density-default .asset-img-cell{width:40px;height:40px}
.table-density-default .asset-img-icon{font-size:18px}

.table-density-comfortable .data-table th,
.table-density-comfortable .data-table td{
    padding:14px 16px;font-size:14px
}
.table-density-comfortable .asset-img-cell{width:48px;height:48px}
.table-density-comfortable .asset-img-icon{font-size:22px}

/* 工具栏密度适配 */
.table-density-compact .toolbar{padding:10px 16px}
.table-density-comfortable .toolbar{padding:18px 24px}

/* ===== 状态标签 ===== */
.tag{display:inline-block;padding:2px 10px;border-radius:4px;font-size:12px;font-weight:500;line-height:1.6}
.tag-success{background:#dcfce7;color:#16a34a}
.tag-warning{background:#fef3c7;color:#d97706}
.tag-danger{background:#fee2e2;color:#dc2626}
.tag-info{background:#dbeafe;color:#2563eb}
.tag-default{background:#f1f5f9;color:#64748b}
.tag-purple{background:#f3e8ff;color:#9333ea}

/* ===== 分页 ===== */
.pagination{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:16px 20px}
.pagination button{min-width:32px;height:32px;border:1px solid var(--border-color);background:#fff;
    border-radius:6px;cursor:pointer;font-size:13px;color:#374151;display:flex;align-items:center;justify-content:center}
.pagination button:hover{color:var(--primary);border-color:var(--primary)}
.pagination button.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.pagination button:disabled{color:#cbd5e1;cursor:not-allowed}
.pagination .page-info{font-size:13px;color:#6b7280;margin-right:12px}

/* ===== 弹窗 ===== */
.modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;display:flex;align-items:center;justify-content:center}
.modal-mask{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.45)}
.modal-dialog{position:relative;background:#fff;border-radius:12px;width:600px;max-width:90vw;max-height:85vh;
    display:flex;flex-direction:column;box-shadow:var(--shadow-lg);animation:modalIn .2s ease}
.modal-dialog.large{width:800px}
.modal-dialog.group-by-modal{width:720px}

/* 归类链接 */
.cat-link{color:#3b82f6;cursor:pointer;text-decoration:none;border-bottom:1px dashed transparent;
    transition:all .2s}
.cat-link:hover{color:#2563eb;border-bottom-color:#3b82f6}
.link-btn{color:#3b82f6;cursor:pointer;text-decoration:none}
.link-btn:hover{text-decoration:underline}

/* 归类弹窗面板 */
.group-by-panel{font-size:13px}
.group-by-header{display:flex;justify-content:space-between;align-items:center;
    padding:16px 20px;background:linear-gradient(135deg,#eff6ff,#f0f9ff);border-radius:8px;margin-bottom:16px}
.group-by-title{font-size:15px;font-weight:600;color:#1e3a5f;display:flex;align-items:center;gap:8px}
.group-by-icon{font-size:20px}
.group-by-value{color:#2563eb}
.group-by-stats{display:flex;gap:20px}
.group-by-stats .stat-item{text-align:center}
.group-by-stats .stat-num{font-size:18px;font-weight:700;color:#1e3a5f}
.group-by-stats .stat-label{font-size:11px;color:#6b7280;margin-top:2px}

.group-by-subtitle{font-size:13px;font-weight:600;color:#374151;margin:16px 0 10px;
    padding-left:8px;border-left:3px solid #3b82f6}

/* 状态分布条 */
.status-dist{display:flex;flex-direction:column;gap:8px;padding:0 4px}
.dist-item{display:flex;align-items:center;gap:10px}
.dist-label{width:60px;font-size:12px;color:#6b7280;display:flex;align-items:center;gap:6px;flex-shrink:0}
.dist-dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.dist-bar{flex:1;height:16px;background:#f3f4f6;border-radius:8px;overflow:hidden;position:relative}
.dist-fill{height:100%;border-radius:8px;transition:width .5s ease}
.dist-count{width:50px;font-size:11px;color:#9ca3af;text-align:right;flex-shrink:0}

.group-by-table-wrap{max-height:320px;overflow-y:auto;border:1px solid #e5e7eb;border-radius:6px}
table.data-table.compact th,table.data-table.compact td{padding:8px 10px;font-size:12px}
table.data-table.compact th{background:#f9fafb;font-weight:600}
@keyframes modalIn{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;
    border-bottom:1px solid var(--border-color);flex-shrink:0}
.modal-title{font-size:16px;font-weight:600;color:#1f2937}
.modal-close{width:28px;height:28px;border:none;background:transparent;font-size:20px;color:#9ca3af;
    cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center}
.modal-close:hover{background:#f3f4f6;color:#374151}
.modal-body{padding:20px;overflow-y:auto;flex:1}
.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:16px 20px;
    border-top:1px solid var(--border-color);flex-shrink:0}

/* ===== 权限矩阵 ===== */
.perm-matrix{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-height:400px;overflow-y:auto;padding:4px}
.perm-group{border:1px solid #e5e7eb;border-radius:8px;background:#fafafa;overflow:hidden}
.perm-group-header{padding:8px 10px;background:#fff;border-bottom:1px solid #e5e7eb}
.perm-menu-check{display:flex;align-items:center;cursor:pointer;font-size:13px;color:#374151}
.perm-actions{padding:8px 10px;display:flex;flex-wrap:wrap;gap:8px}
.perm-action-check{display:inline-flex;align-items:center;gap:4px;cursor:pointer;
    font-size:12px;color:#6b7280;padding:3px 6px;border-radius:4px;background:#fff;
    border:1px solid #e5e7eb;transition:all .15s}
.perm-action-check:hover{border-color:#3b82f6;color:#3b82f6}
.perm-action-check:has(input:checked){background:#eff6ff;border-color:#3b82f6;color:#1e40af}

/* ===== 表单 ===== */
.form-row{display:flex;gap:16px;margin-bottom:16px}
.form-row .form-item{flex:1}
.form-item{margin-bottom:16px}
.form-item label{display:block;font-size:13px;color:#374151;margin-bottom:6px;font-weight:500}
.form-item label .required{color:var(--danger);margin-left:2px}
.form-item input,.form-item select,.form-item textarea{width:100%;height:38px;padding:0 12px;
    border:1px solid var(--border-color);border-radius:6px;transition:border-color .2s;font-size:14px;color:#374151}
.form-item input:focus,.form-item select:focus,.form-item textarea:focus{
    border-color:var(--primary);box-shadow:0 0 0 3px rgba(59,130,246,.1)}
.form-item textarea{height:80px;padding:8px 12px;resize:vertical}
.form-item select{appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 10px center}
.form-item .hint{font-size:12px;color:#9ca3af;margin-top:4px}

/* ===== Toast通知 ===== */
.toast{position:fixed;top:20px;left:50%;transform:translateX(-50%) translateY(-100px);
    background:#1f2937;color:#fff;padding:12px 24px;border-radius:8px;font-size:14px;z-index:2000;
    transition:transform .3s;box-shadow:var(--shadow-lg);max-width:400px}
.toast.show{transform:translateX(-50%) translateY(0)}
.toast.success{background:#16a34a}
.toast.error{background:#dc2626}
.toast.warning{background:#d97706}

/* ===== 空状态 ===== */
empty-state,.empty{text-align:center;padding:60px 20px;color:#9ca3af}
.empty svg{margin-bottom:12px;opacity:.4}

/* ===== RFID协议配置 ===== */
.protocol-card{background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow);margin-bottom:16px;overflow:hidden}
.protocol-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;
    border-bottom:1px solid var(--border-color);background:#f8fafc}
.protocol-header h3{font-size:15px;font-weight:600;color:#1f2937}
.protocol-body{padding:20px}
.protocol-status{display:flex;align-items:center;gap:6px;font-size:13px}
.status-dot{width:8px;height:8px;border-radius:50%}
.status-dot.online{background:var(--success)}
.status-dot.offline{background:var(--danger)}

/* ===== 标签页 ===== */
.tabs{display:flex;gap:0;border-bottom:2px solid var(--border-color);margin-bottom:20px}
.tab{padding:10px 20px;cursor:pointer;font-size:14px;color:#6b7280;border-bottom:2px solid transparent;
    margin-bottom:-2px;transition:all .2s}
.tab:hover{color:var(--primary)}
.tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}

/* ===== 进度条 ===== */
.progress{height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden}
.progress-bar{height:100%;border-radius:4px;transition:width .3s}
.progress-bar.success{background:var(--success)}
.progress-bar.warning{background:var(--warning)}
.progress-bar.danger{background:var(--danger)}

/* ===== 详情视图 ===== */
.detail-grid,.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.detail-item{display:flex;flex-direction:column}
.detail-item .label{font-size:12px;color:#9ca3af;margin-bottom:4px}
.detail-item .value{font-size:14px;color:#1f2937;font-weight:500;word-break:break-all}
.detail-view{display:flex;gap:24px;align-items:flex-start;flex-direction:column}
.detail-qr{flex-shrink:0;text-align:center}

/* ===== 资产图片 ===== */
.asset-img-cell{width:44px;height:44px;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .2s;margin:0 auto;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.asset-img-cell:hover{transform:scale(1.1)}
.asset-img-icon{font-size:20px;line-height:1}
.asset-img-thumb{width:100%;height:100%;object-fit:cover}
.asset-img-placeholder{color:#cbd5e1;display:flex;align-items:center;justify-content:center;width:100%;height:100%}

.asset-detail-image{position:relative;width:100%;max-height:280px;border-radius:12px;overflow:hidden;background:#f3f4f6;cursor:pointer;margin-bottom:4px}
.asset-detail-image img{width:100%;height:280px;object-fit:contain;background:#fafafa}
.asset-detail-image:hover .asset-image-overlay{opacity:1}
.asset-image-overlay{position:absolute;inset:0;background:rgba(0,0,0,.4);color:#fff;display:flex;align-items:center;justify-content:center;gap:6px;opacity:0;transition:opacity .3s;font-size:14px}
.asset-detail-image.asset-no-image{height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:default}
.asset-no-image .no-image-icon{color:#cbd5e1;margin-bottom:12px}
.asset-no-image p{color:#9ca3af;font-size:14px;margin:0 0 4px 0}
.asset-no-image span{color:#d1d5db;font-size:12px}

.image-upload-area{border:2px dashed #d1d5db;border-radius:10px;overflow:hidden;transition:all .2s;background:#fafafa}
.image-upload-area:hover{border-color:#3b82f6;background:#f0f7ff}
.image-upload-placeholder{padding:32px;text-align:center;cursor:pointer}
.image-upload-placeholder .upload-icon{color:#9ca3af;margin-bottom:8px;display:flex;justify-content:center}
.image-upload-placeholder:hover .upload-icon{color:#3b82f6}
.upload-text{font-size:14px;color:#374151;margin-bottom:4px;font-weight:500}
.upload-hint{font-size:12px;color:#9ca3af}
.image-preview-box{position:relative;display:inline-block;width:100%;text-align:center;padding:16px}
.image-preview-box img{max-width:200px;max-height:200px;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.1);cursor:pointer}
.image-remove-btn{display:inline-block;margin-top:10px;padding:6px 16px;background:#fef2f2;color:#ef4444;border-radius:6px;font-size:13px;cursor:pointer;transition:all .2s}
.image-remove-btn:hover{background:#fee2e2}

/* ===== 响应式 ===== */
@media(max-width:1200px){
    .stat-grid{grid-template-columns:repeat(2,1fr)}
    .chart-grid{grid-template-columns:1fr}
}
@media(max-width:768px){
    .sidebar{position:fixed;z-index:100;height:100vh;transform:translateX(-100%);width:260px}
    .sidebar.show{transform:translateX(0)}
    .sidebar.collapsed{width:260px}
    .sidebar.collapsed .menu-label{display:block}
    .sidebar.collapsed .sidebar-title{display:block}
    .sidebar.collapsed .sidebar-logo-img{height:22px;width:auto;max-width:calc(100% - 20px);padding:5px 10px;border-radius:6px}
    .sidebar.collapsed .sidebar-header{min-height:64px;gap:8px;padding:12px 10px}
    .sidebar.collapsed .menu-item{justify-content:flex-start;padding:0 20px}
    .stat-grid{grid-template-columns:1fr}
    .form-row{flex-direction:column}
    .detail-grid{grid-template-columns:1fr}
    .toolbar-left{width:100%}
    .search-input{width:100%}
}

/* ========================================================================
 * 标签绑定中心样式
 * ====================================================================== */

/* 统计卡片行 */
.bind-stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.bind-stat-card{background:#fff;border-radius:12px;padding:20px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.06);border:1px solid #f0f0f0}
.bind-stat-num{font-size:32px;font-weight:700;line-height:1.2;margin-bottom:6px}
.bind-stat-label{font-size:13px;color:#6b7280}

/* 绑定进度条 */
.bind-progress-bar{background:#fff;border-radius:10px;padding:16px 20px;margin-bottom:20px;box-shadow:0 1px 3px rgba(0,0,0,.06);border:1px solid #f0f0f0}
.bind-progress-info{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#374151;margin-bottom:8px;font-weight:500}

/* 左右分栏布局 */
.bind-split-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.bind-panel{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.06);border:1px solid #f0f0f0;display:flex;flex-direction:column;max-height:520px}
.bind-panel-header{padding:14px 18px;border-bottom:1px solid #f0f0f0;background:#fafbfc}
.bind-panel-header h3{font-size:14px;font-weight:600;color:#374151;display:flex;align-items:center;gap:8px;margin:0}
.bind-panel-body{flex:1;overflow-y:auto;padding:12px}

/* 绑定列表项 */
.bind-item{padding:12px 14px;border-radius:8px;border:1px solid #e5e7eb;margin-bottom:8px;cursor:pointer;transition:all .2s;position:relative;background:#fff}
.bind-item:hover{border-color:#3b82f6;background:#f0f7ff;box-shadow:0 2px 6px rgba(59,130,246,.12)}
.bind-item.selected{border-color:#3b82f6;background:#eff6ff;box-shadow:0 0 0 2px rgba(59,130,246,.15)}
.bind-item-main{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.bind-item-code{font-family:monospace;font-size:13px;color:#3b82f6;font-weight:600}
.bind-item-name{font-size:14px;color:#1f2937;font-weight:500}
.bind-item-meta{font-size:12px;color:#9ca3af}
.bind-item-arrow{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:18px;color:#3b82f6;font-weight:700}

/* 标签项特殊样式 */
.bind-item.tag-item{border-style:dashed}
.bind-item.tag-item.clickable{cursor:pointer}
.bind-item.tag-item:not(.clickable){opacity:.6;cursor:not-allowed}

/* 空状态 */
.bind-empty{text-align:center;padding:40px 20px;color:#9ca3af}
.bind-empty p{margin-top:8px;font-size:14px}
.bind-empty p:last-child{font-size:12px}

/* 快捷绑定弹窗布局 */
.quick-bind-layout{display:grid;grid-template-columns:200px 1fr;gap:24px;align-items:start}
.quick-bind-asset{background:#f8fafc;border-radius:10px;padding:16px}
.quick-bind-tags{min-height:200px}
.bind-tag-list{display:flex;flex-direction:column;gap:8px;max-height:340px;overflow-y:auto}
.bind-tag-item{padding:12px 14px;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .2s;background:#fff;display:flex;align-items:center;justify-content:space-between}
.bind-tag-item:hover{border-color:#3b82f6;background:#f0f7ff;transform:translateX(2px)}
.bind-tag-item:active{background:#dbeafe}

/* 资产标识统一卡片 */
.asset-ident-card{display:flex;gap:24px;align-items:center;padding:20px;background:linear-gradient(135deg,#f0f7ff 0%,#faf5ff 100%);border-radius:12px;border:1px solid #e0e7ff;margin-bottom:20px}
.ident-qr-section{text-align:center;flex-shrink:0}
.ident-rfid-section{flex:1}
.rfid-bound{padding:12px}
.rfid-unbound{text-align:center;padding:20px}

/* 小按钮 */
.btn-sm{padding:4px 12px;font-size:12px}

/* 二维码扫描框 */
.qr-scan-box{display:flex;align-items:center;gap:16px;padding:16px 20px;background:linear-gradient(135deg,#f0f7ff 0%,#faf5ff 100%);border-radius:12px;border:1px solid #e0e7ff;margin-bottom:20px}
.qr-scan-icon{color:var(--primary);flex-shrink:0}
.qr-scan-input-wrap{display:flex;gap:10px;flex:1;align-items:center}

/* 二维码缩略图作废状态 */
.qr-thumb.invalid{opacity:.4;filter:grayscale(100%);border-color:#d1d5db}

/* ===== 智能标签打印管理 ===== */
.lp-main-layout{display:grid;grid-template-columns:320px 1fr;gap:20px;margin-bottom:24px}
.lp-panel-title{font-size:15px;font-weight:600;color:#1f2937;margin-bottom:12px;display:flex;align-items:center;gap:6px}

/* 模板列表 */
.lp-template-list{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.lp-template-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;transition:all .2s}
.lp-template-item:hover{border-color:#3b82f6;background:#f8fafc}
.lp-template-item.active{border-color:#3b82f6;background:#eff6ff;box-shadow:0 0 0 2px rgba(59,130,246,.15)}
.lp-template-icon{color:#3b82f6;flex-shrink:0}
.lp-template-name{font-size:13px;font-weight:600;color:#1f2937}
.lp-template-desc{font-size:11px;color:#9ca3af;margin-top:2px}

/* 预览区 */
.lp-preview-panel{background:#f8fafc;border-radius:10px;padding:14px;border:1px dashed #d1d5db}
.lp-preview-card{width:280px;background:#fff;border-radius:10px;padding:16px;margin:0 auto;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.lp-preview-header{text-align:center;font-size:14px;font-weight:600;color:#1f2937;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #eee}
.lp-preview-body{display:flex;gap:12px;align-items:center}
.lp-preview-qr{width:80px;height:80px;flex-shrink:0}
.lp-preview-qr img{width:76px;height:76px;border:1px solid #e5e7eb;border-radius:6px;padding:3px}
.lp-preview-info{flex:1;font-size:11px;color:#374151}
.lp-preview-info div{margin-bottom:3px}
.lp-preview-code{font-family:monospace;font-weight:600;color:#3b82f6;font-size:12px}
.lp-preview-footer{margin-top:10px;padding-top:10px;border-top:1px solid #eee;font-size:10px;color:#9ca3af;text-align:center}

/* 资产面板 */
.lp-asset-panel{background:#fff;border-radius:12px;padding:16px;border:1px solid #e5e7eb}
.lp-smart-actions{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.lp-selected-bar{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#f0f7ff;border-radius:8px;margin-bottom:12px;font-size:13px;font-weight:500;color:#1f2937}

/* 历史记录 */
.lp-history-section{background:#fff;border-radius:12px;padding:16px;border:1px solid #e5e7eb;margin-top:20px}
.lp-history-list .data-table{font-size:12px}

/* 响应式 - 智能标签打印 */
@media(max-width:900px){
    .bind-stats-row{grid-template-columns:repeat(2,1fr)}
    .bind-split-layout{grid-template-columns:1fr}
    .quick-bind-layout{grid-template-columns:1fr}
    .asset-ident-card{flex-direction:column;text-align:center}
    .qr-scan-box{flex-direction:column;align-items:stretch}
    .qr-scan-input-wrap{flex-direction:column}
    .lp-main-layout{grid-template-columns:1fr}
    .lp-preview-card{width:240px}
}

/* ========================================================================
 * 移动端全面自适应样式
 * ====================================================================== */

/* 侧边栏遮罩层 */
.sidebar-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:99;opacity:0;transition:opacity .3s}
.sidebar-overlay.show{display:block;opacity:1}

/* 平板适配 (769px~1024px) */
@media(max-width:1024px){
    .chart-grid{grid-template-columns:1fr}
    .bind-stats-row{grid-template-columns:repeat(2,1fr)}
    .lp-main-layout{grid-template-columns:280px 1fr}
}

/* 小屏手机适配 (≤768px) */
@media(max-width:768px){
    /* === 登录页 === */
    .login-page{flex-direction:column;overflow-y:auto;overflow-x:hidden}
    .login-illustration{display:none}
    .login-panel{flex:none;min-height:auto;padding:30px 20px;justify-content:flex-start;
        padding-top:calc(30px + env(safe-area-inset-top));
        padding-bottom:calc(30px + env(safe-area-inset-bottom))}
    .login-brand{margin-bottom:24px}
    .login-logo{max-width:140px}
    .login-brand h1{font-size:16px;margin:0}
    .login-form{max-width:100%}
    .input-group input{height:46px;font-size:16px;padding:0 12px 0 44px}
    .captcha-canvas{height:38px;width:90px}
    .btn-login{height:48px;font-size:16px;letter-spacing:2px}
    /* 双系统切换手机适配 */
    .system-switcher{max-width:100%;gap:8px;margin-bottom:24px}
    .system-tab{padding:12px 8px}
    .system-tab-icon{font-size:24px}
    .system-tab-name{font-size:12px}
    /* 测试账号手机适配 */
    .test-accounts{margin-top:20px;padding-top:16px}
    .test-acc-list{grid-template-columns:repeat(3,1fr)}

    /* === 主布局 === */
    .app{flex-direction:column}
    .main-wrapper{width:100%;height:100vh}
    .sidebar{position:fixed;top:0;left:0;bottom:0;width:280px;z-index:101;
        transform:translateX(-100%);transition:transform .3s ease;box-shadow:2px 0 20px rgba(0,0,0,.15)}
    .sidebar.show{transform:translateX(0)}

    /* === 顶栏 === */
    .topbar{height:54px;padding:0 12px}
    .breadcrumb{font-size:15px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .user-name{display:none}
    .user-avatar{width:32px;height:32px;font-size:12px}
    .btn-toggle{width:40px;height:40px}
    .topbar-right{gap:8px}
    .user-info{padding:4px 8px}

    /* === 内容区 === */
    .content{padding:12px;padding-top:calc(12px + env(safe-area-inset-top));padding-bottom:calc(12px + env(safe-area-inset-bottom))}

    /* === 页面标题 === */
    .page-title{font-size:17px}
    .page-header{margin-bottom:12px;flex-wrap:wrap;gap:10px}
    .header-actions{width:100%;justify-content:flex-start}
    .header-actions .btn{flex:1;min-width:80px;height:38px;font-size:13px}

    /* === 统计卡片 === */
    .stat-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:14px}
    .stat-card{padding:14px;gap:12px;border-radius:12px}
    .stat-icon{width:44px;height:44px;border-radius:10px}
    .stat-value{font-size:22px}
    .stat-label{font-size:12px}

    /* === 图表卡片 === */
    .chart-card{padding:14px;border-radius:12px}
    .chart-card h3{font-size:14px;margin-bottom:12px}

    /* === 搜索栏 === */
    .search-form{flex-direction:column;gap:8px;align-items:stretch}
    .search-form-item{width:100%}
    .search-label{display:none}
    .search-input{width:100%;height:42px;font-size:14px}
    .filter-select{width:100%;height:42px;font-size:14px}
    .search-btn{width:100%;height:42px;font-size:14px}

    /* === 表格 === */
    .table-card{border-radius:12px}
    .toolbar{padding:10px 12px;flex-direction:column;align-items:stretch;gap:10px}
    .toolbar-left{flex-direction:column;gap:8px;width:100%}
    .toolbar-right{justify-content:flex-start;flex-wrap:wrap;width:100%;gap:6px}
    .toolbar-right .btn{flex:1;min-width:70px;height:38px;font-size:12px;padding:0 8px}
    .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .data-table{font-size:12px;min-width:600px}
    .data-table th{padding:10px 8px;font-size:12px;position:sticky;top:0;background:#f8fafc;z-index:1}
    .data-table td{padding:10px 8px;font-size:12px}
    .table-actions{flex-wrap:wrap;gap:6px}
    .btn-link{font-size:13px;padding:6px 10px;min-height:36px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
    .btn{height:40px;padding:0 14px;font-size:14px;border-radius:8px}
    .btn-sm{height:34px;padding:0 10px;font-size:12px}
    .btn-primary,.btn-success,.btn-warning,.btn-danger,.btn-default{min-height:40px}

    /* === 分页 === */
    .pagination{padding:10px 12px;flex-wrap:wrap;justify-content:center;gap:6px}
    .pagination button{min-width:36px;height:36px;font-size:13px;border-radius:8px}
    .pagination .page-info{width:100%;text-align:center;margin:0 0 4px 0;font-size:12px}

    /* === 弹窗 - 底部弹出式 === */
    .modal{align-items:flex-end}
    .modal-dialog{width:100%;max-width:100%;max-height:88vh;border-radius:16px 16px 0 0;margin:0;
        animation:modalSlideUp .3s ease}
    .modal-dialog.large{width:100%;max-width:100%}
    .modal-dialog.group-by-modal{width:100%;max-width:100%}
    .modal-header{padding:14px 16px}
    .modal-title{font-size:16px}
    .modal-body{padding:14px 16px;overflow-y:auto;-webkit-overflow-scrolling:touch}
    .modal-footer{padding:12px 16px;flex-wrap:wrap;gap:8px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
    .modal-footer .btn{flex:1;min-width:100px;height:42px;font-size:14px}

    @keyframes modalSlideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}

    /* === 表单 === */
    .form-row{flex-direction:column;gap:0}
    .form-item input,.form-item select,.form-item textarea{height:44px;font-size:15px;border-radius:8px}
    .form-item textarea{height:80px;padding-top:10px}
    .form-item label{font-size:13px;margin-bottom:6px}

    /* === 详情页 === */
    .detail-view{flex-direction:column;gap:16px}
    .detail-qr{margin:0 auto}
    .detail-grid{grid-template-columns:1fr}

    /* === 绑定中心 === */
    .bind-stats-row{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:14px}
    .bind-stat-card{padding:14px}
    .bind-stat-num{font-size:24px}
    .bind-stat-label{font-size:11px}
    .bind-split-layout{grid-template-columns:1fr;gap:14px}
    .bind-panel{max-height:none}
    .quick-bind-layout{grid-template-columns:1fr;gap:14px}

    /* === 二维码管理 === */
    .qr-scan-box{flex-direction:column;align-items:stretch;padding:12px}
    .qr-scan-input-wrap{flex-direction:column;gap:8px}
    .qr-thumb{width:28px;height:28px}

    /* === 智能标签打印 === */
    .lp-main-layout{grid-template-columns:1fr;gap:14px}
    .lp-preview-card{width:100%;max-width:280px}
    .lp-template-list{flex-direction:row;overflow-x:auto;gap:8px;padding-bottom:6px}
    .lp-template-item{flex-shrink:0;min-width:160px}
    .lp-smart-actions{flex-direction:row;overflow-x:auto;flex-wrap:nowrap}
    .lp-smart-actions .btn{flex-shrink:0}
    .lp-selected-bar{flex-wrap:wrap;gap:8px}
    .lp-history-list{overflow-x:auto}

    /* === 归类弹窗手机适配 === */
    .group-by-header{flex-direction:column;gap:12px;align-items:flex-start;padding:14px}
    .group-by-stats{width:100%;justify-content:space-around}
    .group-by-table-wrap{max-height:250px}

    /* === 测试账号卡片手机适配 === */
    .test-acc-list{grid-template-columns:repeat(3,1fr)}

    /* === 通用工具类 === */
    .hide-mobile{display:none!important}
    .full-width-mobile{width:100%!important}
    .mobile-sticky-bottom{position:sticky;bottom:0;background:#fff;padding:10px 0;
        border-top:1px solid var(--border-color);z-index:10}

    /* === 资产卡片布局（手机端） === */
    .m-asset-card-list{padding:4px 0}
    .m-asset-card{background:var(--surface-card);border-radius:12px;padding:14px;
        margin-bottom:10px;box-shadow:0 1px 3px rgba(0,0,0,0.06);cursor:pointer;
        transition:transform .15s, box-shadow .15s;border:1px solid var(--border)}
    .m-asset-card:active{transform:scale(0.98);box-shadow:0 1px 2px rgba(0,0,0,0.04)}
    .m-asset-card-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
    .m-asset-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;
        justify-content:center;font-size:24px;flex-shrink:0;color:#fff}
    .m-asset-info{flex:1;min-width:0}
    .m-asset-name{font-size:15px;font-weight:600;color:var(--text);margin-bottom:4px;
        overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .m-asset-code{font-size:11px;color:var(--text-muted);font-family:monospace}
    .m-status-badge{padding:3px 8px;border-radius:6px;font-size:11px;font-weight:500;
        flex-shrink:0}
    .m-status-badge.在用,.m-status-badge.in-use{background:#dcfce7;color:#16a34a}
    .m-status-badge.闲置,.m-status-badge.idle{background:#dbeafe;color:#2563eb}
    .m-status-badge.维修,.m-status-badge.repair{background:#fef3c7;color:#d97706}
    .m-status-badge.报废,.m-status-badge.scrapped{background:#fee2e2;color:#dc2626}
    .m-asset-card-body{border-top:1px solid var(--border);padding-top:10px}
    .m-asset-meta-row{display:flex;align-items:center;justify-content:space-between;
        margin-bottom:6px;gap:10px}
    .m-asset-meta-row:last-child{margin-bottom:0}
    .m-loc-link{color:var(--brand);font-size:12px;text-decoration:none;cursor:pointer}
    .m-loc-link:active{opacity:0.6}
    .m-asset-model{font-size:12px;color:var(--text-muted);margin-top:8px;
        padding-top:8px;border-top:1px dashed var(--border);
        overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .m-asset-card-actions{display:flex;gap:8px;margin-top:12px;padding-top:12px;
        border-top:1px solid var(--border)}
    .m-action-btn{flex:1;height:34px;border:none;border-radius:8px;font-size:12px;
        background:var(--surface-muted);color:var(--text-muted);cursor:pointer;
        display:flex;align-items:center;justify-content:center;gap:3px;padding:0 4px}
    .m-action-btn:active{opacity:0.7}
    .m-action-btn.primary{background:#dbeafe;color:#2563eb}
    .m-action-btn.warn{background:#fef3c7;color:#d97706}
    .m-action-btn.danger{background:#fee2e2;color:#dc2626}

    /* 手机端表格工具栏优化 */
    .toolbar{flex-direction:column;gap:10px}
    .toolbar-left{width:100%}
    .toolbar-left .search-input{width:100%;height:42px;font-size:14px}
    .toolbar-right{width:100%;justify-content:flex-start;flex-wrap:wrap;gap:6px}
    .toolbar-right .btn{flex:1;min-width:70px;height:38px;font-size:12px;padding:0 8px}
    .table-card .toolbar .filter-select{height:42px;font-size:14px}
}

/* 超小屏手机适配 (≤380px) */
@media(max-width:380px){
    .stat-grid{grid-template-columns:1fr}
    .bind-stats-row{grid-template-columns:1fr}
    .stat-card{flex-direction:row;justify-content:flex-start}
    .stat-value{font-size:20px}
    .login-logo{max-width:140px}
    .breadcrumb{font-size:14px}
    .topbar{padding:0 8px}
    .content{padding:10px}
    .btn{height:32px;padding:0 10px;font-size:12px}
}

/* 横屏模式优化 */
@media(max-width:768px) and (orientation:landscape){
    .login-panel{min-height:100vh;padding:20px}
    .modal-dialog{max-height:85vh}
    .bind-panel{max-height:300px}
}

/* 触摸优化 */
@media(hover:none) and (pointer:coarse){
    .menu-item:hover,.btn:hover,.stat-card:hover,.bind-item:hover{
        transform:none
    }
    .btn:active{opacity:.8}
    .menu-item:active{background:var(--sidebar-hover)}
    .qr-thumb:hover{transform:none}
    /* 增大表格行点击区域 */
    .data-table tr{min-height:48px}
    .data-table td{vertical-align:middle}
    /* 去除点击高亮 */
    *{-webkit-tap-highlight-color:transparent}
    /* 输入框优化 */
    input,select,textarea{font-size:16px!important} /* 防止iOS缩放 */
    /* 按钮点击反馈 */
    .btn-link:active{opacity:.6}
    .cat-link:active{opacity:.6}
    .link-btn:active{opacity:.6}
}

/* 打印样式 */
@media print{
    .sidebar,.topbar,.toolbar,.pagination,.page-header .header-actions{display:none!important}
    .content{padding:0;overflow:visible}
    .main-wrapper{height:auto}
    .modal{position:static}
    .modal-mask{display:none}
    .modal-dialog{width:100%;max-width:100%;box-shadow:none;border-radius:0}
}

/* ===== 科技感首页统计卡片 ===== */
.tech-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin-bottom:20px}
.tech-stat-card{
    position:relative;
    background:#fff;
    border-radius:12px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:14px;
    overflow:hidden;
    border:1px solid #e2e8f0;
    transition:all .3s ease;
}
.tech-stat-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px -8px rgba(59,130,246,.25);
    border-color:transparent;
}
.tech-card-glow{
    position:absolute;
    top:-30px;
    right:-30px;
    width:100px;
    height:100px;
    border-radius:50%;
    opacity:.15;
    filter:blur(20px);
}
.tech-card-blue .tech-card-glow{background:linear-gradient(135deg,#3b82f6,#8b5cf6)}
.tech-card-purple .tech-card-glow{background:linear-gradient(135deg,#8b5cf6,#ec4899)}
.tech-card-cyan .tech-card-glow{background:linear-gradient(135deg,#06b6d4,#3b82f6)}
.tech-card-orange .tech-card-glow{background:linear-gradient(135deg,#f97316,#fbbf24)}
.tech-card-green .tech-card-glow{background:linear-gradient(135deg,#22c55e,#4ade80)}
.tech-card-red .tech-card-glow{background:linear-gradient(135deg,#ef4444,#f97316)}

.tech-stat-card::before{
    content:'';
    position:absolute;
    top:0;left:0;
    width:4px;height:100%;
}
.tech-card-blue::before{background:linear-gradient(180deg,#60a5fa,#3b82f6,#2563eb)}
.tech-card-purple::before{background:linear-gradient(180deg,#a78bfa,#8b5cf6,#7c3aed)}
.tech-card-cyan::before{background:linear-gradient(180deg,#22d3ee,#06b6d4,#0891b2)}
.tech-card-orange::before{background:linear-gradient(180deg,#fdba74,#f97316,#ea580c)}
.tech-card-green::before{background:linear-gradient(180deg,#4ade80,#22c55e,#16a34a)}
.tech-card-red::before{background:linear-gradient(180deg,#f87171,#ef4444,#dc2626)}

.tech-card-icon{
    font-size:32px;
    flex-shrink:0;
    filter:drop-shadow(0 2px 8px rgba(0,0,0,.1));
}
.tech-card-content{flex:1;min-width:0}
.tech-card-value{
    font-size:24px;
    font-weight:700;
    color:#1e293b;
    line-height:1.2;
    margin-bottom:4px;
    font-family:"Segoe UI",system-ui,sans-serif;
}
.tech-card-label{
    font-size:13px;
    color:#64748b;
    margin-bottom:8px;
}
.tech-card-bar{
    height:4px;
    background:#f1f5f9;
    border-radius:2px;
    overflow:hidden;
}
.tech-card-bar span{
    display:block;
    height:100%;
    border-radius:2px;
    background:linear-gradient(90deg,#60a5fa,#3b82f6);
    transition:width .6s ease;
}
.tech-card-blue .tech-card-bar span{background:linear-gradient(90deg,#60a5fa,#3b82f6)}
.tech-card-purple .tech-card-bar span{background:linear-gradient(90deg,#a78bfa,#8b5cf6)}
.tech-card-cyan .tech-card-bar span{background:linear-gradient(90deg,#22d3ee,#06b6d4)}
.tech-card-orange .tech-card-bar span{background:linear-gradient(90deg,#fdba74,#f97316)}
.tech-card-green .tech-card-bar span{background:linear-gradient(90deg,#4ade80,#22c55e)}
.tech-card-red .tech-card-bar span{background:linear-gradient(90deg,#f87171,#ef4444)}

/* ===== 科技感图表卡片 ===== */
.tech-chart-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:20px}
.tech-chart-row{margin-bottom:20px}
.tech-chart-card{
    background:#fff;
    border-radius:12px;
    border:1px solid #e2e8f0;
    overflow:hidden;
    transition:all .3s ease;
}
.tech-chart-card:hover{
    box-shadow:0 8px 24px -6px rgba(0,0,0,.12);
    border-color:#cbd5e1;
}
.tech-card-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 20px;
    border-bottom:1px solid #f1f5f9;
    background:linear-gradient(180deg,#f8fafc,#fff);
}
.tech-card-title{
    font-size:15px;
    font-weight:600;
    color:#1e293b;
    position:relative;
    padding-left:12px;
}
.tech-card-title::before{
    content:'';
    position:absolute;
    left:0;top:50%;
    transform:translateY(-50%);
    width:4px;height:16px;
    border-radius:2px;
    background:linear-gradient(180deg,#60a5fa,#3b82f6);
}
.tech-card-badge{
    font-size:11px;
    padding:3px 10px;
    border-radius:20px;
    background:linear-gradient(135deg,rgba(59,130,246,.1),rgba(139,92,246,.1));
    color:#6366f1;
    font-weight:500;
    border:1px solid rgba(99,102,241,.2);
}
.tech-chart-body{
    padding:16px 20px 20px;
}
.tech-chart-body canvas{display:block;max-width:100%}

/* ===== 移动端适配 - 科技感卡片 ===== */
@media (max-width:1200px){
    .tech-stat-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:768px){
    .tech-stat-grid{grid-template-columns:repeat(2,1fr);gap:10px}
    .tech-stat-card{padding:12px;gap:10px;border-radius:10px}
    .tech-card-icon{font-size:24px}
    .tech-card-value{font-size:18px}
    .tech-card-label{font-size:11px;margin-bottom:6px}
    .tech-chart-grid{grid-template-columns:1fr;gap:12px}
    .tech-card-header{padding:12px 14px}
    .tech-chart-body{padding:12px}
    .tech-chart-card{border-radius:10px}
}
