/* ==========================================================================
   一物一码溯源管理系统 · 后台样式
   设计基调：深色导航 + 浅色内容区 + 蓝色主色，圆角卡片与柔和阴影
   ========================================================================== */

:root {
    --primary: #2f6bff;
    --primary-dark: #1f4fd8;
    --primary-light: #eaf1ff;
    --primary-soft: #f4f7ff;

    --success: #12a45a;
    --success-light: #e8f8ef;
    --warning: #e8890c;
    --warning-light: #fef5e7;
    --danger: #e8443a;
    --danger-light: #fdeceb;
    --info: #0d9bd8;
    --info-light: #e8f6fc;

    --sidebar-bg: #131c31;
    --sidebar-bg-2: #18233d;
    --sidebar-text: #9aa8c4;
    --sidebar-text-active: #ffffff;

    --text: #10182b;
    --text-2: #4b5768;
    --text-3: #8592a6;
    --border: #e6eaf2;
    --bg: #f4f6fb;
    --card: #ffffff;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 43, .05);
    --shadow: 0 4px 16px rgba(16, 24, 43, .06);
    --shadow-lg: 0 18px 44px rgba(16, 24, 43, .14);

    --header-h: 64px;
    --sidebar-w: 226px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; color: var(--text); }

.icon { flex: none; vertical-align: middle; }

/* ---------------------------------------------------------------- 布局 */

.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex: none;
    background: linear-gradient(180deg, #16203a 0%, #101828 100%);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 60;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform .25s ease;
}

.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 3px; }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 20px 20px 18px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.sidebar-brand .logo {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3b7bff, #6aa2ff);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px; color: #fff;
    box-shadow: 0 8px 18px rgba(47, 107, 255, .4);
    flex: none;
}

.sidebar-brand .brand-text { line-height: 1.25; overflow: hidden; }
.sidebar-brand .brand-text strong { display: block; font-size: 15px; letter-spacing: .3px; }
.sidebar-brand .brand-text small { color: #7f8db0; font-size: 11px; }

.sidebar-user {
    margin: 14px 14px 4px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--radius);
    display: flex; align-items: center; gap: 10px;
}

.sidebar-user .avatar {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    background: linear-gradient(135deg, #ffb457, #ff8a3d);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
}

.sidebar-user .meta { overflow: hidden; }
.sidebar-user .meta b { display: block; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .meta span { font-size: 11px; color: #7f8db0; }

.nav-group-title {
    padding: 16px 20px 7px;
    font-size: 11px;
    letter-spacing: 1.2px;
    color: #5d6b8a;
    text-transform: uppercase;
}

.nav { padding: 6px 10px 18px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--sidebar-text);
    font-size: 13.5px;
    margin-bottom: 2px;
    position: relative;
    transition: background .16s ease, color .16s ease;
}

.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.nav-item.active {
    background: linear-gradient(90deg, rgba(47, 107, 255, .9), rgba(47, 107, 255, .55));
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 107, 255, .28);
}

.nav-item .nav-badge {
    margin-left: auto;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.nav-sub { padding-left: 4px; }
.nav-sub .nav-item { padding-left: 30px; font-size: 13px; }
.nav-sub .nav-item::before {
    content: '';
    position: absolute;
    left: 17px; top: 50%;
    width: 4px; height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: currentColor;
    opacity: .5;
}

.sidebar-toggle-group { cursor: pointer; }
.sidebar-toggle-group .chevron { margin-left: auto; transition: transform .2s ease; }
.sidebar-toggle-group.open .chevron { transform: rotate(90deg); }
.nav-sub { display: none; }
.nav-sub.open { display: block; }

.main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar .page-title { font-size: 16px; font-weight: 600; }
.topbar .page-crumb { font-size: 12px; color: var(--text-3); margin-top: -3px; }

.topbar-spacer { flex: 1; }

.hamburger { display: none; }

.content { padding: 22px 24px 40px; flex: 1; }

.content-narrow { max-width: 1080px; }

/* ---------------------------------------------------------------- 卡片 */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.card-head {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 12px; color: var(--text-3); }
.card-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.card-body { padding: 20px; }
.card-body.tight { padding: 14px 20px; }
.card-body.flush { padding: 0; }

.card-foot {
    padding: 13px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fbfcfe;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------------------------------------------------------------- 栅格 */

.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row.gap-sm { gap: 10px; }
.col { flex: 1 1 0; min-width: 0; }
.col-2 { flex: 0 0 calc(16.666% - 14px); }
.col-3 { flex: 0 0 calc(25% - 12px); }
.col-4 { flex: 0 0 calc(33.333% - 11px); }
.col-6 { flex: 0 0 calc(50% - 8px); }
.col-8 { flex: 0 0 calc(66.666% - 6px); }
.col-9 { flex: 0 0 calc(75% - 4px); }
.col-12 { flex: 0 0 100%; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .col-3, .col-4, .col-6, .col-8, .col-9 { flex: 0 0 100%; }
}

/* ---------------------------------------------------------------- 数据卡片 */

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-card .stat-icon {
    width: 46px; height: 46px; flex: none;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
}

.stat-card.is-green .stat-icon { background: var(--success-light); color: var(--success); }
.stat-card.is-orange .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-card.is-cyan .stat-icon { background: var(--info-light); color: var(--info); }
.stat-card.is-red .stat-icon { background: var(--danger-light); color: var(--danger); }

.stat-card .stat-body { min-width: 0; flex: 1; }
.stat-card .stat-label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.stat-card .stat-value { font-size: 25px; font-weight: 700; letter-spacing: -.5px; line-height: 1.3; }
.stat-card .stat-value small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.stat-card .stat-foot { font-size: 11.5px; color: var(--text-3); }
.stat-card .stat-foot .up { color: var(--success); font-weight: 600; }
.stat-card .stat-foot .down { color: var(--danger); font-weight: 600; }

/* ---------------------------------------------------------------- 按钮 */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all .16s ease;
    font-family: inherit;
    line-height: 1.5;
}

.btn:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 16px rgba(47, 107, 255, .28); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

.btn-primary { background: linear-gradient(135deg, #3b7bff, #2f6bff); }

.btn-ghost { background: #fff; border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); border-color: #c9daff; box-shadow: none; }

.btn-light { background: var(--primary-light); color: var(--primary); }
.btn-light:hover { background: #dbe7ff; color: var(--primary-dark); box-shadow: none; }

.btn-success { background: var(--success); }
.btn-success:hover { background: #0e8c4c; box-shadow: 0 6px 16px rgba(18, 164, 90, .28); }

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #cf372e; box-shadow: 0 6px 16px rgba(232, 68, 58, .28); }

.btn-danger-ghost { background: #fff; border-color: #ffd6d3; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-light); color: var(--danger); box-shadow: none; }

.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-xs { padding: 3px 8px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 11px 24px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-icon { padding: 7px; width: 32px; height: 32px; }
.btn-icon.btn-sm { padding: 5px; width: 28px; height: 28px; }

.btn-group { display: inline-flex; gap: 6px; align-items: center; }

.link-btn {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--primary); font-size: inherit; font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

/* ---------------------------------------------------------------- 表单 */

.form-item { margin-bottom: 16px; }
.form-item:last-child { margin-bottom: 0; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 7px;
}

.form-label .req { color: var(--danger); margin-left: 2px; }
.form-label .hint { color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 6px; }

.form-control,
input[type="text"], input[type="password"], input[type="number"],
input[type="email"], input[type="url"], input[type="date"], input[type="search"],
select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color .16s ease, box-shadow .16s ease;
    outline: none;
}

.form-control:hover, input:hover, select:hover, textarea:hover { border-color: #cfd8e8; }

.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

.form-control::placeholder, textarea::placeholder { color: #a9b3c4; }

textarea { resize: vertical; min-height: 88px; line-height: 1.7; }

select { appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238592a6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 32px;
}

.form-help { font-size: 12px; color: var(--text-3); margin-top: 6px; line-height: 1.6; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; }

.form-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-inline .form-control { width: auto; }

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.search-box { position: relative; }
.search-box .form-control { padding-left: 34px; }
.search-box .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
    width: 42px; height: 23px; border-radius: 20px; background: #d8dfeb;
    position: relative; transition: background .2s ease; flex: none;
}
.switch .track::after {
    content: ''; position: absolute; top: 2.5px; left: 2.5px;
    width: 18px; height: 18px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease;
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(19px); }
.switch .switch-text { font-size: 13px; color: var(--text-2); }

/* 单选卡片 */
.radio-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card {
    flex: 1 1 140px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    transition: all .16s ease;
    background: #fff;
}
.radio-card:hover { border-color: #c9daff; }
.radio-card input { display: none; }
.radio-card .rc-title { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.radio-card .rc-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.radio-card.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .1);
}

/* 文件上传 */
.upload-box {
    border: 1.5px dashed #cfd8e8;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    background: #fcfdff;
    cursor: pointer;
    transition: all .16s ease;
    position: relative;
}
.upload-box:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-box .upload-icon { color: var(--primary); margin-bottom: 6px; }
.upload-box .upload-title { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.upload-box .upload-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.upload-box input[type="file"] { display: none; }

.upload-preview { position: relative; display: inline-block; }
.upload-preview img { max-width: 100%; border-radius: var(--radius-sm); display: block; border: 1px solid var(--border); }
.upload-preview .remove {
    position: absolute; top: -8px; right: -8px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--danger); color: #fff; border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    font-size: 12px; line-height: 1;
}

/* ---------------------------------------------------------------- 表格 */

.table-wrap { overflow-x: auto; }

table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

table.table thead th {
    background: #f8fafd;
    color: var(--text-3);
    font-weight: 600;
    font-size: 12.5px;
    text-align: left;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f4f9;
    color: var(--text-2);
    vertical-align: middle;
}

table.table tbody tr:hover { background: #fafbff; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table td.strong, table.table td .strong { color: var(--text); font-weight: 600; }
table.table .cell-actions { white-space: nowrap; }
table.table .cell-actions .btn { margin-right: 4px; }

.table-empty { padding: 52px 20px; text-align: center; color: var(--text-3); }
.table-empty .icon { color: #ccd4e2; margin-bottom: 10px; }

.code-chip {
    font-family: Consolas, Monaco, monospace;
    background: #f4f7fd;
    border: 1px solid #e3e9f5;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--primary-dark);
    letter-spacing: .4px;
}

/* ---------------------------------------------------------------- 徽标 */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2.5px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #f0f3f9;
    color: var(--text-2);
    white-space: nowrap;
}

.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-info    { background: var(--info-light); color: var(--info); }
.badge-default { background: #f0f3f9; color: var(--text-2); }

.badge-dot::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; display: inline-block;
}

/* ---------------------------------------------------------------- 页签 */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab {
    padding: 10px 16px;
    font-size: 13.5px;
    color: var(--text-3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border-top: 0; border-left: 0; border-right: 0;
    font-family: inherit;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 胶囊页签 */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-2);
    cursor: pointer;
}
.pill:hover { border-color: #c9daff; color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }

/* ---------------------------------------------------------------- 提示 */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-bottom: 16px;
    line-height: 1.7;
}
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--success-light); color: #0f7d46; border: 1px solid #c6efd8; }
.alert-danger  { background: var(--danger-light); color: #c0392b; border: 1px solid #ffd6d3; }
.alert-warning { background: var(--warning-light); color: #a35f05; border: 1px solid #ffe3b8; }
.alert-info    { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #d8e3ff; }

.toast-area { position: fixed; top: 78px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    box-shadow: var(--shadow-lg);
    font-size: 13.5px;
    min-width: 220px;
    animation: slideIn .25s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 弹窗 */

.modal-mask {
    position: fixed; inset: 0;
    background: rgba(11, 18, 34, .45);
    backdrop-filter: blur(2px);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    overflow-y: auto;
}
.modal-mask.open { display: flex; }

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-lg);
    animation: modalIn .22s ease;
    margin: auto;
}
.modal.modal-lg { max-width: 760px; }
.modal.modal-xl { max-width: 1000px; }

@keyframes modalIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-head h3 { font-size: 15.5px; flex: 1; }
.modal-head .modal-close {
    background: none; border: 0; cursor: pointer; color: var(--text-3);
    padding: 4px; border-radius: 7px; display: flex;
}
.modal-head .modal-close:hover { background: #f2f4f9; color: var(--text); }

.modal-body { padding: 22px; max-height: 66vh; overflow-y: auto; }
.modal-foot {
    padding: 15px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fbfcfe;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ---------------------------------------------------------------- 分页 */

.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-info { font-size: 12.5px; color: var(--text-3); margin-right: auto; }
.pagination a, .pagination span.page {
    min-width: 32px; height: 32px;
    padding: 0 9px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ---------------------------------------------------------------- 空状态 */

.empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-3);
}
.empty .empty-icon {
    width: 72px; height: 72px; margin: 0 auto 14px;
    border-radius: 22px; background: #f2f5fb;
    display: flex; align-items: center; justify-content: center;
    color: #c3ccdd;
}
.empty h4 { font-size: 15px; color: var(--text-2); margin-bottom: 6px; }
.empty p { font-size: 13px; margin: 0 0 16px; }

/* ---------------------------------------------------------------- 描述列表 */

.desc-list { display: grid; grid-template-columns: 150px 1fr; gap: 0; font-size: 13.5px; }
.desc-list dt {
    padding: 11px 14px;
    background: #fafbfe;
    color: var(--text-3);
    border-bottom: 1px solid #f1f4f9;
    font-weight: 400;
}
.desc-list dd {
    margin: 0;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f4f9;
    color: var(--text);
    word-break: break-all;
}
.desc-list dt:last-of-type, .desc-list dd:last-of-type { border-bottom: 0; }

/* ---------------------------------------------------------------- 统计条 */

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bar-chart .bar {
    width: 100%;
    max-width: 34px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #6ea2ff, #2f6bff);
    min-height: 3px;
    transition: height .3s ease;
    position: relative;
}
.bar-chart .bar:hover { background: linear-gradient(180deg, #8db6ff, #4a83ff); }
.bar-chart .bar-label { font-size: 10.5px; color: var(--text-3); white-space: nowrap; transform: rotate(-32deg); }

.progress { height: 7px; border-radius: 6px; background: #eef1f7; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4a83ff, #2f6bff); }

/* ---------------------------------------------------------------- 富文本编辑器 */

.editor { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.editor-toolbar {
    display: flex; gap: 2px; padding: 6px 8px;
    background: #f8fafd; border-bottom: 1px solid var(--border);
    flex-wrap: wrap; align-items: center;
}
.editor-toolbar button {
    width: 30px; height: 30px;
    border: 0; background: none; border-radius: 6px;
    cursor: pointer; color: var(--text-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; font-family: inherit;
}
.editor-toolbar button:hover { background: #e9eefb; color: var(--primary); }
.editor-toolbar .sep { width: 1px; height: 18px; background: var(--border); margin: 0 5px; }
.editor-body {
    min-height: 170px; padding: 14px 16px; outline: none;
    font-size: 13.5px; line-height: 1.85; color: var(--text-2);
    background: #fff; overflow-y: auto; max-height: 460px;
}
.editor-body:empty::before { content: attr(data-placeholder); color: #a9b3c4; }
.editor-body img { max-width: 100%; border-radius: 8px; }

/* ---------------------------------------------------------------- 模块列表（可拖拽） */

.module-list { display: flex; flex-direction: column; gap: 10px; }

.module-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: box-shadow .16s ease, border-color .16s ease;
}
.module-item.is-dragging { opacity: .5; border-style: dashed; }
.module-item.is-over { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.module-item.is-off { background: #fbfcfe; }
.module-item.is-off .module-head { opacity: .6; }

.module-head {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 15px;
}

.module-head .drag-handle {
    cursor: grab; color: #b6c0d2; display: flex; padding: 3px;
    border-radius: 6px;
}
.module-head .drag-handle:hover { color: var(--primary); background: var(--primary-soft); }
.module-head .drag-handle:active { cursor: grabbing; }

.module-head .module-icon {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}

.module-head .module-title { font-size: 14px; font-weight: 600; }
.module-head .module-sub { font-size: 12px; color: var(--text-3); }
.module-head .module-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.module-body { padding: 0 15px 15px 60px; }

.module-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 13px;
    border: 1px dashed #cfd8e8;
    border-radius: 9px;
    background: #fff;
    color: var(--text-2);
    font-size: 12.5px;
    cursor: pointer;
}
.module-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.module-palette { display: flex; flex-wrap: wrap; gap: 8px; }

.ad-list { display: flex; flex-wrap: wrap; gap: 12px; }
.ad-item {
    width: 168px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fcfdff;
    position: relative;
}
.ad-item .ad-thumb {
    height: 82px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef3ff, #f7faff);
    color: #b8c6e4;
    font-size: 11.5px;
    overflow: hidden;
}
.ad-item .ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-item .ad-meta { padding: 7px 10px; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.ad-item .ad-meta span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-item .ad-del {
    position: absolute; top: 6px; right: 6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(16, 24, 43, .55); color: #fff;
    border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ad-item .ad-del:hover { background: var(--danger); }

.link-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    margin-bottom: 8px;
}
.link-item .link-icon {
    width: 36px; height: 36px; border-radius: 10px; flex: none;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.link-item .link-body { flex: 1; min-width: 0; }
.link-item .link-body b { display: block; font-size: 13.5px; }
.link-item .link-body span { font-size: 12px; color: var(--text-3); word-break: break-all; }

/* ---------------------------------------------------------------- 手机预览 */

.preview-frame {
    width: 340px;
    margin: 0 auto;
    background: #fff;
    border: 10px solid #1d2740;
    border-radius: 34px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.preview-frame .preview-top {
    height: 26px; background: #1d2740; color: #8e9bb8;
    display: flex; align-items: center; justify-content: center; font-size: 10.5px;
}
.preview-scroll { height: 560px; overflow-y: auto; background: #f2f5fa; }
.preview-scroll::-webkit-scrollbar { width: 0; }

.pv-header {
    padding: 16px;
    color: #fff;
    background: linear-gradient(135deg, #2f6bff, #6aa2ff);
    text-align: center;
}
.pv-header h4 { color: #fff; font-size: 15px; }
.pv-header p { margin: 4px 0 0; font-size: 11.5px; opacity: .88; }

.pv-block {
    background: #fff;
    margin: 10px;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(16, 24, 43, .05);
}
.pv-block .pv-title {
    font-size: 13px; font-weight: 600; margin-bottom: 9px;
    display: flex; align-items: center; gap: 6px;
}
.pv-block .pv-title::before {
    content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--primary);
}
.pv-text { font-size: 12.5px; color: var(--text-2); line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.pv-result-ok {
    display: flex; align-items: center; gap: 9px;
    color: var(--success); font-weight: 600; font-size: 13.5px;
    margin-bottom: 9px;
}
.pv-result-ok .pv-check {
    width: 24px; height: 24px; border-radius: 50%; background: var(--success);
    color: #fff; display: flex; align-items: center; justify-content: center;
}
.pv-code-box {
    background: #f8fafd; border: 1px dashed #d8e0ee; border-radius: 8px;
    padding: 9px 11px; font-size: 12px; color: var(--text-2);
    display: flex; gap: 8px; align-items: center; justify-content: space-between;
}
.pv-carousel { position: relative; border-radius: 10px; overflow: hidden; }
.pv-carousel .slides { display: flex; transition: transform .35s ease; }
.pv-carousel .slide { min-width: 100%; height: 130px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef3ff, #f7faff); color: #b8c6e4; font-size: 12px; }
.pv-carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.pv-carousel .dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.pv-carousel .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.pv-carousel .dots i.on { background: #fff; width: 16px; border-radius: 4px; }
.pv-ad-row img, .pv-ad-row .ph { width: 100%; border-radius: 10px; display: block; margin-bottom: 8px; }
.pv-ad-row .ph { height: 120px; background: linear-gradient(135deg, #eef3ff, #f7faff); color: #b8c6e4; display: flex; align-items: center; justify-content: center; font-size: 12px; }

.pv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pv-grid .pv-cell {
    text-align: center; padding: 10px 4px; border-radius: 9px; background: #f8fafd;
    font-size: 11px; color: var(--text-2);
}
.pv-grid .pv-cell .icon { color: var(--primary); margin-bottom: 4px; }

.pv-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 9px; }
.pv-tabs span { font-size: 12px; padding: 5px 9px; color: var(--text-3); }
.pv-tabs span.on { color: var(--primary); border-bottom: 2px solid var(--primary); font-weight: 600; }

/* ---------------------------------------------------------------- 登录页 */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: #f4f6fb;
}

.auth-side {
    flex: 1.05;
    background: linear-gradient(150deg, #101a33 0%, #1c2f5e 45%, #2f6bff 100%);
    color: #fff;
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-side::after {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    right: -160px; bottom: -190px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .22), transparent 62%);
}

.auth-side .auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-side .auth-brand .logo {
    width: 44px; height: 44px; border-radius: 13px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 19px;
}
.auth-side h2 { color: #fff; font-size: 21px; }
.auth-side .auth-tag { font-size: 12px; color: rgba(255, 255, 255, .7); }

.auth-side .auth-hero { margin-top: auto; margin-bottom: auto; position: relative; z-index: 2; }
.auth-side .auth-hero h1 { color: #fff; font-size: 32px; line-height: 1.4; letter-spacing: -.5px; }
.auth-side .auth-hero p { color: rgba(255, 255, 255, .76); font-size: 14px; margin-top: 14px; max-width: 460px; line-height: 1.9; }

.auth-side .auth-features { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.auth-side .auth-feature { font-size: 13px; color: rgba(255, 255, 255, .82); display: flex; align-items: center; gap: 8px; }
.auth-side .auth-feature .icon { color: #8fd0ff; }

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card { width: 100%; max-width: 380px; }
.auth-card h3 { font-size: 23px; margin-bottom: 6px; }
.auth-card .auth-desc { color: var(--text-3); font-size: 13px; margin-bottom: 28px; }

.auth-card .btn-lg { margin-top: 6px; }

.auth-tip {
    margin-top: 24px;
    padding: 13px 15px;
    background: #fff;
    border: 1px dashed #dbe3f1;
    border-radius: var(--radius);
    font-size: 12.5px;
    color: var(--text-3);
    line-height: 1.9;
}
.auth-tip code { background: var(--primary-soft); color: var(--primary-dark); padding: 1px 6px; border-radius: 5px; }

/* 品牌选择 */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }

.brand-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    cursor: pointer;
    transition: all .18s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 178px;
}
.brand-card:hover { border-color: var(--primary); box-shadow: 0 14px 34px rgba(47, 107, 255, .16); transform: translateY(-3px); }

.brand-card .brand-logo {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, #3b7bff, #7aa9ff);
    color: #fff; font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}
.brand-card .brand-logo img { width: 100%; height: 100%; object-fit: cover; }

.brand-card .brand-name { font-size: 16.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.brand-card .brand-meta { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.brand-card .brand-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; }
.brand-card .brand-foot .enter { margin-left: auto; color: var(--primary); font-size: 13px; display: flex; align-items: center; gap: 3px; }

.brand-card.is-new {
    align-items: center;
    justify-content: center;
    border-style: dashed;
    color: var(--text-3);
    text-align: center;
}
.brand-card.is-new:hover { color: var(--primary); }
.brand-card.is-new .plus-circle {
    width: 50px; height: 50px; border-radius: 16px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}

/* ---------------------------------------------------------------- 消费者端页面 */

.consumer-wrap {
    max-width: 420px;
    margin: 0 auto;
    background: #eef1f7;
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(16, 24, 43, .12);
}

.consumer-nav {
    height: 42px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-2);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.consumer-nav .back {
    position: absolute; left: 12px; color: var(--text-3);
    display: flex; align-items: center;
}

.consumer-foot {
    text-align: center;
    padding: 18px 12px 26px;
    font-size: 11.5px;
    color: #9aa5b8;
    line-height: 1.9;
}

.pv-input-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.pv-input-row input {
    flex: 1;
    border: 1px solid #dbe2ee;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
}
.pv-input-row input:focus { border-color: var(--primary); }
.pv-input-row button {
    padding: 0 18px;
    border-radius: 9px;
    border: 0;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.pv-line {
    display: flex;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-2);
    padding: 5px 0;
    border-bottom: 1px dashed #eef1f7;
}
.pv-line:last-child { border-bottom: 0; }
.pv-line span:first-child { color: var(--text-3); min-width: 76px; }

.pv-timeline { position: relative; padding-left: 18px; }
.pv-timeline::before {
    content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
    width: 2px; background: #e6ecf7;
}
.pv-timeline .node { position: relative; padding-bottom: 14px; }
.pv-timeline .node:last-child { padding-bottom: 0; }
.pv-timeline .node::before {
    content: ''; position: absolute; left: -17px; top: 4px;
    width: 9px; height: 9px; border-radius: 50%;
    background: #fff; border: 2px solid var(--primary);
}
.pv-timeline .node h5 { font-size: 12.5px; margin: 0 0 3px; }
.pv-timeline .node p { margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.75; }
.pv-timeline .node time { font-size: 11px; color: #a8b3c6; }

.pv-result-bad .pv-check { background: var(--danger); }
.pv-result-bad { color: var(--danger); }
.pv-result-warn .pv-check { background: var(--warning); }
.pv-result-warn { color: var(--warning); }

/* ---------------------------------------------------------------- 二维码缩略图 */

.qr-thumb {
    display: block;
    width: 56px;
    height: 56px;
    padding: 3px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    image-rendering: pixelated;
    transition: border-color .15s;
}

a:hover > .qr-thumb {
    border-color: var(--primary);
}

.qr-empty {
    display: inline-block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    font-size: 11px;
    color: var(--text-3);
    border: 1px dashed var(--border);
    border-radius: 6px;
}

/* ---------------------------------------------------------------- 二维码标签 */

.label-thumb {
    display: block;
    width: 56px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s;
}

a:hover > .label-thumb {
    border-color: var(--primary);
}

.label-hint {
    margin-top: 3px;
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
}

.pin-chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(47, 107, 255, .1);
    color: var(--primary);
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 标签打印 */

.print-area {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.label-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.label-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #e2e8f4;
    border-radius: 8px;
    padding: 8px;
    min-height: 150px;
}

.label-item img {
    max-width: 100%;
    height: auto;
}

.label-error {
    font-size: 12px;
    color: var(--danger);
}

@media print {
    .sidebar,
    .topbar,
    .no-print,
    .flash-wrap {
        display: none !important;
    }

    .layout,
    .main {
        display: block !important;
    }

    .content {
        padding: 0 !important;
    }

    .print-area {
        border: 0;
        padding: 0;
        border-radius: 0;
    }

    .label-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .label-item {
        border: 0;
        min-height: 0;
        padding: 6px;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ---------------------------------------------------------------- 工具类 */

.text-muted { color: var(--text-3); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11.5px; }
.text-lg { font-size: 16px; }
.text-strong { font-weight: 600; color: var(--text); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mono { font-family: Consolas, Monaco, "Courier New", monospace; }
.nowrap { white-space: nowrap; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.ml-auto { margin-left: auto; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.hidden { display: none !important; }
.w-100 { width: 100%; }
.pointer { cursor: pointer; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.var-tag {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 6px;
    background: var(--primary-soft); border: 1px solid #d8e3ff;
    color: var(--primary-dark); font-size: 11.5px; cursor: pointer;
    font-family: Consolas, monospace;
}
.var-tag:hover { background: var(--primary-light); }

.section-title {
    font-size: 13px; font-weight: 600; color: var(--text);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
}
.section-title::before {
    content: ''; width: 3px; height: 14px; border-radius: 2px;
    background: linear-gradient(180deg, #4a83ff, #2f6bff);
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    margin: 0 -20px -20px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10;
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    body.sidebar-open .sidebar { transform: none; }
    body.sidebar-open::after {
        content: ''; position: fixed; inset: 0; background: rgba(11, 18, 34, .4); z-index: 55;
    }
    .main { margin-left: 0; }
    .hamburger { display: flex; }
    .auth-side { display: none; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .content { padding: 16px 14px 32px; }
    .topbar { padding: 0 14px; }
}

@media (max-width: 640px) {
    .grid-4 { grid-template-columns: 1fr; }
    .desc-list { grid-template-columns: 108px 1fr; }
    .preview-frame { width: 100%; }
}
