/* ============================================================
   璀璨中央空调 门店销售统计系统 —— 样式
   品牌基调：深紫红渐变 + 金色点缀（参考璀璨合同封面）
   ============================================================ */
:root {
    --bg: #f5f3f0;
    --card: #ffffff;
    --ink: #2b2b33;
    --muted: #8a8a94;
    --line: #e8e4df;
    --brand1: #5a0e2e;   /* 深紫红 */
    --brand2: #8a1e3f;
    --brand3: #a8264b;
    --gold: #c9a15a;
    --gold-soft: #e6cf9f;
    --ok: #1a7f4b;
    --err: #c0392b;
    --warn: #b9770e;
    --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
}

a { color: var(--brand3); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: Consolas, Menlo, monospace; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-weight: normal; font-size: 14px; }

/* ---------- 顶栏 ---------- */
.topbar {
    background: linear-gradient(135deg, var(--brand1) 0%, var(--brand3) 60%, #6b1533 100%);
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(90, 14, 46, .25);
}
.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand-mark {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 3px;
    font-size: 20px;
    color: var(--gold-soft);
    font-weight: bold;
}
.brand-title { font-size: 15px; color: #ffe9c9; }
.brand-sub { font-size: 11px; color: rgba(255, 233, 201, .8); letter-spacing: 1px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-links .who { color: var(--gold-soft); font-size: 14px; }
.link-light { color: #fff; font-size: 14px; }
.link-light:hover { color: var(--gold-soft); text-decoration: none; }

/* ---------- 布局 ---------- */
.container { max-width: 1200px; margin: 22px auto 40px; padding: 0 16px; }
.container-narrow { max-width: 760px; }
.container-wide { max-width: 1080px; }

/* ---------- 提示 ---------- */
.alert {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert ul { margin: 4px 0; padding-left: 20px; }
.alert-error { background: #fdecea; color: var(--err); border: 1px solid #f5c6c0; }
.alert-ok { background: #e9f7ef; color: var(--ok); border: 1px solid #bfe3cd; }
.alert-warn { background: #fdf6e7; color: var(--warn); border: 1px solid #ecdcb0; }

/* ---------- 统计卡片 ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value {
    font-size: 26px;
    font-weight: 700;
    margin: 4px 0 2px;
    color: var(--brand2);
    font-variant-numeric: tabular-nums;
}
.stat-sub { font-size: 12px; color: var(--muted); }

/* ---------- 图表卡片 ---------- */
.charts-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
@media (max-width: 860px) { .charts-grid { grid-template-columns: 1fr; } }
.chart-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.chart-title { margin: 0 0 12px; font-size: 15px; color: var(--brand2); }

/* 柱状图（近12个月） */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 170px;
    padding-top: 8px;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}
.bar-val { font-size: 11px; color: var(--brand2); margin-bottom: 2px; white-space: nowrap; }
.bar {
    width: 70%;
    max-width: 30px;
    background: linear-gradient(180deg, var(--brand3), var(--brand1));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
}
.bar-label { font-size: 11px; color: var(--muted); margin-top: 5px; white-space: nowrap; }

/* 横向条 */
.h-bar-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.h-bar-name { width: 130px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-bar-track { flex: 1; height: 14px; background: #f1ede7; border-radius: 7px; overflow: hidden; }
.h-bar { height: 100%; background: linear-gradient(90deg, var(--brand3), var(--brand1)); border-radius: 7px; }
.h-bar-gold { background: linear-gradient(90deg, var(--gold), #b8862f); }
.h-bar-val { width: 96px; font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }

/* ---------- 面板 / 表格 ---------- */
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    margin-bottom: 16px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head h2 { margin: 0; font-size: 17px; color: var(--brand2); }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}
.filter-bar input[type=search], .filter-bar input[type=date] {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}
.filter-bar input[type=search] { flex: 1; min-width: 180px; }
.filter-sep { color: var(--muted); font-size: 13px; }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { color: var(--muted); font-weight: 600; background: #faf8f5; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fdfbf7; }
.td-clip { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops { white-space: nowrap; }

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}
.tag-fg { background: #f3e2e9; color: var(--brand2); }
.tag-dlj { background: #e9e4f7; color: #5b4a9e; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: all .15s;
}
.btn:hover { border-color: var(--gold); color: var(--brand2); text-decoration: none; }
.btn-primary {
    background: linear-gradient(135deg, var(--brand1), var(--brand3));
    border-color: transparent;
    color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); color: #fff; }
.btn-danger { color: var(--err); border-color: #f0c4bf; }
.btn-danger:hover { background: #fdecea; border-color: var(--err); color: var(--err); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; border-radius: 6px; }
.btn-block { width: 100%; }

.admin-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }
.pager-info { color: var(--muted); font-size: 13px; }

/* ---------- 空状态 ---------- */
.empty-tip { text-align: center; color: var(--muted); padding: 34px 10px; font-size: 14px; }

/* ---------- 表单 ---------- */
.form-panel { padding: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-item label { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 5px; }
.form-item input, .form-item select, .form-item textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14.5px;
    background: #fff;
    color: var(--ink);
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 161, 90, .18);
}
.form-item-full { grid-column: 1 / -1; }
.req { color: var(--err); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- 报价单明细区 ---------- */
.items-section { margin-top: 22px; }
.items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
}
.items-head h3 { margin: 0; font-size: 15.5px; color: var(--brand2); }
.item-tbl th { background: #faf6f2; }
.item-tbl td { padding: 5px 4px; }
.item-tbl input {
    width: 100%;
    min-width: 40px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13.5px;
    background: #fff;
}
.item-tbl input:focus { outline: none; border-color: var(--gold); }
.item-tbl .it-amount { background: #faf6f2; border-color: transparent; font-weight: 600; color: var(--brand2); }
.item-tbl tfoot td { border-top: 2px solid var(--brand2); background: #fbf8f4; }

/* 成本与利润子行 */
.item-tbl .eq-cost-row td {
    background: #f7f4ee;
    border-bottom: 1px solid var(--line);
    padding: 8px 6px;
}
.cost-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    font-size: 12.5px;
    color: var(--muted);
}
.cost-inline label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    white-space: nowrap;
}
.cost-inline input {
    width: 86px;
    padding: 5px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    text-align: right;
}
.cost-inline input:focus { outline: none; border-color: var(--gold); }
.cost-tag {
    background: linear-gradient(135deg, var(--brand1), var(--brand3));
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}
.cost-result strong { color: var(--brand2); font-size: 13.5px; }
.cost-result .it-profit { color: var(--err); }
.summary-profit strong { color: var(--err); font-size: 17px; }
.summary-divider { border-bottom: 2px solid var(--brand2); margin: 6px 0; }

/* 成本利润核算页表格（紧凑版：桌面一屏放下，手机卡片换行不滑动） */
.pf-tbl { font-size: 12px; border-collapse: collapse; width: 100%; }
.pf-tbl th { white-space: nowrap; background: #f4ece6; padding: 4px 2px; font-size: 11px; }
.pf-tbl td { padding: 3px 2px; vertical-align: middle; }
.pf-tbl td.num, .pf-tbl th { text-align: right; }
.pf-tbl td.mono { text-align: left; }
.pf-tbl td:first-child { white-space: nowrap; min-width: 62px; }
.pf-tbl td:nth-child(2) { white-space: nowrap; min-width: 86px; }
.pf-tbl input {
    width: 42px;
    min-width: 0;
    padding: 2px 2px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 12px;
    text-align: right;
    background: #fff;
    box-sizing: border-box;
}
.pf-tbl input:focus { outline: none; border-color: var(--gold); }
.pf-tbl .pf-actual { font-weight: 600; color: var(--brand2); white-space: nowrap; }
.pf-tbl .pf-profit { font-weight: 700; color: var(--err); white-space: nowrap; }
.pf-summary { margin-top: 16px; }
.filter-label { font-size: 14px; color: var(--text); margin-right: 4px; }
/* 手机端标签：桌面隐藏，手机端显示 */
.pf-lbl { display: none; }

/* 手机（≤640px）：每台设备一张卡片，字段换行排列，无需横向滑动 */
@media (max-width: 640px) {
    .pf-tbl { display: block; width: 100%; min-width: 0; }
    .pf-tbl thead { display: none; }
    .pf-tbl tbody { display: block; }
    .pf-tbl .pf-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 7px 10px;
        padding: 10px 12px;
        margin: 0 0 12px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff;
    }
    .pf-tbl .pf-row td {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-end;
        padding: 0;
        border: none;
        text-align: left;
    }
    .pf-tbl .pf-row td:first-child {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
        font-size: 14px;
        font-weight: 600;
        color: var(--brand2);
    }
    .pf-tbl .pf-row td:nth-child(2) {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
        font-size: 12px;
        color: #888;
        margin-bottom: 2px;
    }
    .pf-tbl .pf-row td:first-child .pf-lbl,
    .pf-tbl .pf-row td:nth-child(2) .pf-lbl { display: none; }
    .pf-tbl .pf-row td:nth-child(3),
    .pf-tbl .pf-row td:nth-child(4),
    .pf-tbl .pf-row td:nth-child(5) {
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
        font-size: 12px;
    }
    .pf-lbl { display: block; font-size: 11px; color: #777; margin-bottom: 2px; }
    .pf-tbl input { width: 100%; padding: 6px 5px; font-size: 13px; }
    .pf-actual, .pf-profit { font-size: 13px; font-weight: 700; }
}

/* ---------- 工程报价汇总 ---------- */
.summary-box {
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fdfbf8;
    padding: 14px 18px;
    max-width: 460px;
}
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 14.5px;
    border-bottom: 1px dashed var(--line);
}
.summary-row:last-child { border-bottom: none; }
.summary-main strong { color: var(--brand2); font-size: 16px; }
.summary-final strong { color: var(--err); font-size: 18px; }
.sum-input {
    width: 140px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14.5px;
    text-align: right;
}

/* ---------- 报价单打印明细 ---------- */
.print-section { margin: 18px 0 6px; }
.print-section-title { font-size: 14px; font-weight: 700; color: var(--brand2); margin-bottom: 6px; }
.print-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.print-tbl th, .print-tbl td { border: 1px solid #d8d2ca; padding: 6px 8px; text-align: left; }
.print-tbl th { background: #f7f2ec; color: #6b4b3a; font-weight: 600; }
.print-tbl tfoot td { background: #faf6f2; font-weight: 600; }
.print-summary {
    margin-top: 16px;
    border: 1px solid #d8d2ca;
    border-radius: 8px;
    padding: 10px 16px;
    background: #fdfbf8;
}
.ps-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.ps-main strong { color: var(--brand2); }
.ps-final strong { color: var(--err); font-size: 16px; }

/* ---------- 登录 / 初始化 ---------- */
.login-body, .setup-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(168, 38, 75, .18), transparent 60%),
        linear-gradient(160deg, #f7f4ef 0%, #efe7dc 100%);
    padding: 20px;
}
.login-card, .setup-card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border-radius: 16px;
    padding: 28px 26px 22px;
    box-shadow: 0 10px 34px rgba(90, 14, 46, .14);
    border: 1px solid var(--line);
}
.login-card h1, .setup-card h1 { font-size: 20px; margin: 14px 0 4px; color: var(--brand2); text-align: center; }
.login-tip { text-align: center; color: var(--muted); font-size: 12.5px; margin: 2px 0 18px; }
.setup-tip { font-size: 14px; color: var(--muted); margin: 6px 0 16px; text-align: center; }
.login-card label, .setup-card label { display: block; font-size: 13.5px; margin: 12px 0 5px; }
.login-card input, .setup-card input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
}
.login-card input:focus, .setup-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,161,90,.18); }
.login-card .btn-block { margin-top: 18px; }
.login-foot { text-align: center; margin-top: 16px; font-size: 13px; }
.login-card .brand, .setup-card .brand { align-items: center; text-align: center; }

/* ---------- 合同详情 ---------- */
.detail-body { background: #efe9e0; }
.contract-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 24px rgba(90, 14, 46, .10);
    overflow: hidden;
}
.contract-head {
    background: linear-gradient(135deg, var(--brand1), var(--brand3));
    color: #fff;
    text-align: center;
    padding: 26px 20px 20px;
}
.contract-brand { font-family: Georgia, serif; font-size: 22px; letter-spacing: 4px; color: var(--gold-soft); font-weight: bold; }
.contract-brand-sub { font-size: 12px; color: #ffe9c9; letter-spacing: 2px; margin-top: 2px; }
.contract-head h1 { margin: 12px 0 8px; font-size: 19px; }
.contract-no { font-size: 13px; color: #ffe9c9; }
.contract-body { padding: 22px 24px; }
.contract-row { display: flex; gap: 14px; margin-bottom: 12px; }
@media (max-width: 640px) { .contract-row { flex-direction: column; gap: 8px; } }
.contract-item { flex: 1; min-width: 0; }
.contract-item-wide { flex: 2; }
.c-label { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.c-value { font-size: 15.5px; word-break: break-all; }
.contract-foot {
    border-top: 1px dashed var(--line);
    padding: 14px 24px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/* ---------- 页脚 ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 20px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    background: #faf8f5;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer .brand-sub { color: var(--brand2); font-size: 12px; letter-spacing: 2px; margin-bottom: 4px; }

/* ---------- 打印 ---------- */
@media print {
    .topbar { display: none; }
    body { background: #fff; }
    .container { margin: 0; max-width: none; padding: 0; }
    .contract-card { box-shadow: none; border: 1px solid #ccc; }
    .contract-foot { display: none; }
    .profit-section { display: none; }   /* 成本利润为门店内部数据，不随合同打印给客户 */
}

/* ============================================================
   手机适配（窄屏 ≤ 640px）
   ============================================================ */
@media (max-width: 640px) {
    body { font-size: 15px; }
    .container { margin: 12px auto 26px; padding: 0 10px; }
    .topbar-inner { padding: 0 10px; }
    .topbar-right { gap: 10px; flex: 1 1 100%; justify-content: flex-end; }
    .brand-mark { font-size: 18px; }
    .stat-value { font-size: 22px; }
    .stat-card { padding: 13px 15px; }

    /* 筛选栏：搜索框整行，下拉与日期自适应 */
    .filter-bar input[type=search] { flex: 1 1 100%; min-width: 0; font-size: 15px; padding: 9px 11px; }
    .filter-bar select {
        flex: 1;
        min-width: 0;
        padding: 9px 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        font-size: 15px;
        background: #fff;
    }
    .filter-bar input[type=date] { flex: 1; min-width: 0; font-size: 15px; }
    .filter-sep { display: none; }

    /* 列表表格：保持横向滚动，压缩单元格 */
    .tbl th, .tbl td { padding: 8px 6px; font-size: 13px; }

    /* 表单输入加大字号，避免 iOS 聚焦缩放 */
    .form-panel { padding: 14px; }
    .form-item input, .form-item select, .form-item textarea { font-size: 16px; padding: 10px 11px; }
    .form-actions .btn { flex: 1; padding: 12px 10px; font-size: 16px; }

    /* 报价单明细：表格转卡片堆叠 */
    .items-head h3 { font-size: 15px; }
    .items-head .btn-sm { padding: 8px 12px; font-size: 14px; }
    .item-tbl thead { display: none; }
    .item-tbl tfoot { display: none; }          /* 小计由下方汇总区展示 */
    .item-tbl, .item-tbl tbody, .item-tbl tr, .item-tbl td { display: block; width: 100%; }
    .item-tbl tbody tr {
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 6px 10px;
        margin-bottom: 10px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
    }
    .item-tbl tbody tr:last-child { margin-bottom: 0; }
    .item-tbl td {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 5px 0;
        border: none;
    }
    .item-tbl td::before {
        content: attr(data-label);
        flex: 0 0 78px;
        font-size: 12px;
        color: var(--muted);
    }
    .item-tbl td:last-child { justify-content: flex-end; }
    .item-tbl td:last-child::before { content: ''; flex: 0; }
    .item-tbl input, .item-tbl select {
        font-size: 15px;
        padding: 8px 10px;
        min-width: 0;
    }
    .item-tbl .btn-sm { padding: 8px 16px; font-size: 15px; }

    /* 成本子行：输入框整行展开 */
    .cost-inline { gap: 6px 10px; }
    .cost-inline label { flex: 1 1 44%; white-space: nowrap; }
    .cost-inline input { width: 100%; flex: 1 1 90px; }
    .cost-result { flex: 1 1 46%; }

    /* 报价汇总 */
    .summary-box { max-width: none; padding: 12px 14px; }
    .summary-row { font-size: 15px; }
    .sum-input { width: 110px; font-size: 16px; padding: 8px 10px; }
    .summary-final strong { font-size: 17px; }

    /* 合同详情：窄屏明细表横向滚动 */
    .print-section { overflow-x: auto; }
    .print-tbl { min-width: 520px; }
    .contract-body { padding: 16px 14px; }
    .contract-foot { padding: 12px 14px; }

    /* 登录卡片 */
    .login-card, .setup-card { padding: 22px 18px 18px; }
    .login-card input, .setup-card input { font-size: 16px; }

    /* 按钮触控区域 */
    .btn { padding: 10px 16px; }
    .btn-sm { padding: 6px 12px; }
}


/* 整单利润统计卡（前台首页） */
.stat-profit { border-top: 3px solid var(--err); }
.stat-profit .stat-value { color: var(--err); }