/* 手机租赁站 · 共用样式（2026-11-03） */
:root {
    --brand: #ff6a00;
    --brand-dark: #e85f00;
    --ink: #1f2937;
    --ink-2: #4b5563;
    --mut: #8b95a5;
    --line: #e9edf3;
    --bg: #f5f6f9;
    --ok: #12a150;
    --warn: #c2410c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 14px 40px; }

/* 顶栏 */
.top {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.top-in {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.brand i {
    width: 26px; height: 26px; border-radius: 8px;
    background: linear-gradient(150deg, #ff7a1a, #f05500);
    color: #fff; font-style: normal; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.top-nav a {
    display: inline-flex; align-items: center; justify-content: center;
    height: 30px; padding: 0 13px; border-radius: 999px;
    background: #f4f6f9; border: 1px solid transparent;
    color: var(--ink-2); font-weight: 500; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.top-nav a:hover { background: #fff4e9; border-color: #ffe0c5; color: var(--brand); }
.top-nav a.is-on { background: #fff1e2; border-color: #ffd6b2; color: var(--brand); }
.top-nav a.nav-login { background: var(--brand); border-color: var(--brand); color: #fff; }
.top-nav a.nav-login:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.top-nav .me {
    display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
    border-radius: 999px; background: #f4f6f9; color: var(--mut); font-size: 12.5px;
    max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 通用卡片 */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}
.card + .card { margin-top: 12px; }
.card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }

.page-title { margin: 18px 0 12px; font-size: 18px; font-weight: 600; }
.page-title small { display: block; font-size: 12.5px; color: var(--mut); font-weight: 400; margin-top: 4px; }

/* 机型网格 */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 767px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.dev {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .15s, transform .15s;
}
.dev:hover { border-color: #ffd2b3; transform: translateY(-2px); }

.dev-img {
    height: 132px;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c8d0da;
    font-size: 12px;
    overflow: hidden;
}
.dev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dev-body { padding: 10px 12px 12px; }
.dev-name { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-meta { margin-top: 4px; font-size: 11.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-price { margin-top: 8px; display: flex; align-items: baseline; gap: 4px; }
.dev-price b { color: var(--brand); font-size: 17px; font-weight: 600; }
.dev-price span { color: var(--mut); font-size: 11.5px; }
.dev-stock { margin-top: 2px; font-size: 11.5px; color: var(--mut); }
.dev-stock.none { color: #d4380d; }

/* 详情 */
.detail { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
@media (max-width: 767px) { .detail { grid-template-columns: 1fr; } }
/* grid 子项默认 min-width:auto，内部单行省略文本会把整页撑宽（真机上整页被缩小） */
.detail > * { min-width: 0; }
/* 详情页机型名与描述允许换行，完整显示，不沿用列表卡片的单行省略 */
.detail .dev-name, .detail .dev-meta {
    white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5;
}

/* 详情页机型简要说明 */
.dev-brand { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }
.dev-brand span {
    display: inline-block; padding: 1px 9px; border-radius: 999px;
    background: #f2f5f9; color: #5d6b7e; font-size: 11.5px; line-height: 1.7;
}
.dev-desc {
    margin-top: 10px; display: flex; align-items: flex-start; gap: 8px;
    padding: 9px 12px; background: #f8fafc;
    border: 1px solid #e8eef6; border-left: 3px solid #ffb27a;
    border-radius: 8px;
}
.dev-desc-k {
    flex: none; margin-top: 1px; padding: 0 6px; border-radius: 4px;
    background: #fff0e1; color: #d26000; font-size: 11px; font-weight: 600;
    line-height: 18px;
}
.dev-desc-v { font-size: 13px; line-height: 1.7; color: #435061; overflow-wrap: anywhere; }
.detail-img {
    position: relative;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    height: 280px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #c8d0da;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-img.zoomable img { cursor: zoom-in; }
.zoom-hint {
    position: absolute; right: 10px; bottom: 10px;
    padding: 4px 9px; border-radius: 999px;
    background: rgba(17, 24, 39, .58); color: #fff;
    font-size: 11.5px; line-height: 1.4; letter-spacing: .2px;
    pointer-events: none; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}

/* 全站图片放大查看 */
.lb {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column;
    background: #0b0e13;
    animation: lbIn .16s ease;
}
.lb[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0 } to { opacity: 1 } }
.lb-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top));
    color: rgba(255, 255, 255, .66); font-size: 12px;
}
.lb-tip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-close {
    flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .14); color: #fff;
    font-size: 20px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .24); }
.lb-stage {
    flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
    overflow: hidden; touch-action: none;
    padding: 0 10px calc(14px + env(safe-area-inset-bottom));
}
.lb-stage img {
    max-width: 100%; max-height: 100%;
    object-fit: contain; transform-origin: center center;
    -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
    will-change: transform;
}
body.lb-open { overflow: hidden; }
.specs { color: var(--ink-2); font-size: 13px; white-space: pre-wrap; }

/* 表单 */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 9px 11px; border: 1px solid #dfe5ee; border-radius: 10px;
    font-size: 14px; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 0, .12);
}
.field textarea { min-height: 70px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 按钮 */
.btn {
    display: inline-block; padding: 10px 18px; border-radius: 10px; border: 0;
    background: var(--brand); color: #fff; font-size: 14px; font-weight: 500;
    cursor: pointer; font-family: inherit; text-align: center;
}
.btn:hover { background: var(--brand-dark); }
.btn[disabled] { background: #d8dee8; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink-2); border: 1px solid #dfe5ee; }
.btn-ghost:hover { background: #f7f9fc; color: var(--ink); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { display: block; width: 100%; }

/* 价格明细 */
.sum { background: #fbfcfe; border: 1px dashed #e3e9f2; border-radius: 12px; padding: 12px 14px; }
.sum-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); padding: 4px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; color: var(--ink); font-size: 14px; }
.sum-row.total b { color: var(--brand); font-size: 18px; }

/* 订单 */
/* ---- 订单卡（后台） ---- */
.order {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 16px 18px; margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.order:last-of-type { margin-bottom: 0; }

.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.oh-left { min-width: 0; }
.order-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 15px; font-weight: 600; line-height: 1.4; }
.order-dev { overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; }
.badge.s1 { background: #fff4e6; color: #c2410c; }
.badge.s2 { background: #e8f5ec; color: #127a3f; }
.badge.s3 { background: #eaf1ff; color: #2b5fd9; }
.badge.s4 { background: #f1f3f6; color: #6b7280; }
.badge.s9 { background: #f5f5f5; color: #9aa3af; }
.tag-type {
    font-size: 11px; font-weight: 400; color: var(--ink-2);
    background: #f1f4f9; border-radius: 6px; padding: 1px 7px; white-space: nowrap;
}
.order-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; font-size: 11.5px; color: var(--mut); }
.order-meta .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .2px; }
.om-warn { color: #b42318; font-weight: 600; }
.oh-right { flex: none; text-align: right; }
.order-sum { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.15; letter-spacing: -.2px; }
.oh-right .badge { margin-top: 5px; }

/* 前台「我的租赁」订单卡沿用旧结构 */
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-name { font-size: 14px; font-weight: 600; }
.order-no { font-size: 11.5px; color: var(--mut); margin-top: 2px; }

/* 指标块：用 1px 网格缝隙代替分隔线 */
.order-metrics {
    margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--line); border: 1px solid var(--line);
    border-radius: 12px; overflow: hidden;
}
.metric { background: #fff; padding: 10px 12px; }
.metric span { display: block; font-size: 11.5px; color: var(--mut); }
.metric b { display: block; margin-top: 3px; font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.2px; }
@media (max-width: 640px) { .order-metrics { grid-template-columns: repeat(2, 1fr); } }

/* 涨粉凭证 */
.order-proof {
    margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 9px 12px; border-radius: 10px; font-size: 12.5px; color: #7a4a00;
    background: #fff8ec; border: 1px solid #ffe2b0;
}
.proof-k { flex: none; font-size: 11px; font-weight: 600; color: #c2410c; background: #ffe6c4; border-radius: 5px; padding: 1px 6px; }
.proof-v b { color: #7a4a00; }
.order-proof a { margin-left: auto; color: #c2410c; font-weight: 500; }
.proof-none { color: #b3a894; }

/* 收货 / 单号 */
.order-rows {
    margin-top: 12px; border: 1px solid var(--line); border-radius: 12px;
    background: #fbfcfe; padding: 4px 12px;
}
.orow { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; font-size: 12.5px; }
.orow + .orow { border-top: 1px dashed #eef2f7; }
.orow-k { flex: none; width: 60px; color: var(--mut); font-size: 12px; }
.orow-v { color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.orow-v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; }

/* 内部备注（仅后台可见，默认收起） */
.order-internal {
    margin-top: 12px; border: 1px dashed #dfe5ee; border-radius: 12px;
    background: #fcfdff; padding: 9px 12px;
}
.order-internal > summary {
    display: flex; align-items: baseline; gap: 8px; cursor: pointer;
    list-style: none; -webkit-tap-highlight-color: transparent;
}
.order-internal > summary::-webkit-details-marker { display: none; }
.order-internal > summary::after {
    content: '展开'; margin-left: auto; font-size: 11.5px; color: var(--mut);
}
.order-internal[open] > summary::after { content: '收起'; }
.order-internal[open] > summary { margin-bottom: 10px; }
.order-internal-form { margin: 0; }
.oi-title { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.oi-tip { font-size: 11px; color: var(--mut); }
.oi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; align-items: end; }
.ifield { display: block; min-width: 0; }
.ifield > span { display: block; font-size: 11.5px; color: var(--mut); margin-bottom: 3px; }
.ifield input {
    width: 100%; padding: 7px 10px; border: 1px solid #dfe5ee; border-radius: 9px;
    font-size: 12.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.ifield input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 0, .12); }
.ifield input[name="auth_code"] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .4px; }
.ifield-note { grid-column: auto; }
.oi-grid .btn-save { grid-column: 1 / -1; justify-self: end; }
@media (max-width: 640px) { .oi-grid { grid-template-columns: 1fr; } }

/* 底部操作区 */
.order-foot { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.foot-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.foot-form input[type="text"], .foot-form input[type="number"] {
    flex: 1; min-width: 150px; padding: 8px 10px; border: 1px solid #dfe5ee; border-radius: 9px;
    font-size: 13px; font-family: inherit; background: #fff; color: var(--ink);
}
.foot-form input[type="number"] { flex: 0 0 110px; min-width: 0; }
.foot-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 0, .12); }
.foot-form .btn { flex: none; }
.btn-danger { background: #b42318; }
.btn-danger:hover { background: #93150c; }
.btn-save { background: var(--brand); }
@media (max-width: 420px) {
    .foot-form input[type="text"], .foot-form input[type="number"] { flex: 1 1 100%; }
    .foot-form .btn { width: 100%; }
}

/* 状态筛选条 */
.status-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.status-filter a {
    padding: 5px 11px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2);
    background: #fff; border: 1px solid var(--line);
}
.status-filter a b { color: var(--mut); font-weight: 600; }
.status-filter a.on { background: #1f2937; border-color: #1f2937; color: #fff; }
.status-filter a.on b { color: rgba(255, 255, 255, .7); }
@media (max-width: 420px) {
    /* 窄屏改成单行横滑，别占三行 */
    .status-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .status-filter::-webkit-scrollbar { display: none; }
    .status-filter a { flex: none; }
}

/* 提示 */
.badge.s1 { background: #fff4e6; color: #c2410c; }
.badge.s2 { background: #e8f5ec; color: #127a3f; }
.badge.s3 { background: #eaf1ff; color: #2b5fd9; }
.badge.s4 { background: #f1f3f6; color: #6b7280; }
.badge.s9 { background: #f5f5f5; color: #9aa3af; }

.order-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 12px; }
@media (max-width: 640px) { .order-grid { grid-template-columns: repeat(2, 1fr); } }
.order-grid div { font-size: 12px; color: var(--mut); }
.order-grid b { display: block; color: var(--ink); font-size: 13px; font-weight: 500; margin-top: 2px; }
.order-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* 提示 */
.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
.alert.ok { background: #e9f7ef; color: #127a3f; }
.alert.err { background: #fdecec; color: #b42318; }
.alert.info { background: #eef3ff; color: #2b5fd9; }

.empty { text-align: center; color: var(--mut); font-size: 13px; padding: 40px 0; }
.foot { text-align: center; color: #a8b0bd; font-size: 12px; padding: 26px 0 10px; }

/* 后台 */
.admin-tabs { display: flex; gap: 8px; margin: 16px 0 12px; flex-wrap: wrap; }
.admin-tabs a { padding: 7px 14px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.admin-tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 后台订单搜索 */
.order-search { display: flex; gap: 8px; margin: 0 0 6px; }
.order-search input[type="text"] {
    flex: 1; min-width: 0; padding: 9px 12px; background: #fff; color: var(--ink);
    border: 1px solid #dfe5ee; border-radius: 10px; font-size: 13px; font-family: inherit;
}
.order-search input[type="text"]:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 0, .12);
}
.order-search .btn { white-space: nowrap; }
.order-search-hint { margin: 6px 0 4px; font-size: 12px; color: var(--mut); }
.order-search-hint b { color: var(--brand); }

/* 订单卡里的抖音昵称 / 抖音号补录行 */
.meta-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 9px; }
.meta-form .mf-tag { font-size: 12px; color: var(--mut); white-space: nowrap; }
.meta-form input[type="text"] {
    flex: 1; min-width: 128px; padding: 7px 10px; background: #fff; color: var(--ink);
    border: 1px solid #dfe5ee; border-radius: 9px; font-size: 12.5px; font-family: inherit;
}
.meta-form input[type="text"]:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 0, .12);
}
.meta-form .btn { margin-left: auto; } /* 换行到第二行时仍靠右，和搜索按钮对齐 */

/* 两个备注表单相邻时加分隔，避免两排「保存」按钮挨太近 */
.meta-form + .meta-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #eef2f7; }

/* 授权码：等宽字体便于核对，后台专用 */
.oc-form input[name="auth_code"] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
    font-size: 13px; letter-spacing: .6px;
}

table.list { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
table.list th, table.list td { padding: 9px 10px; border-bottom: 1px solid #f0f3f7; text-align: left; vertical-align: middle; }
table.list th { font-weight: 500; color: var(--mut); font-size: 12px; background: #fbfcfe; white-space: nowrap; }
table.list tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.td-sub { font-size: 11.5px; color: var(--mut); }

/* 窄屏：表格改成卡片，避免横向滚动把「操作」列挤出屏幕 */
@media (max-width: 640px) {
    .table-wrap { border: 0; overflow: visible; border-radius: 0; }
    table.list, table.list tbody, table.list tr, table.list td { display: block; width: 100%; }
    table.list thead { display: none; }
    table.list tr {
        border: 1px solid var(--line); border-radius: 12px; background: #fff;
        padding: 10px 12px; margin-bottom: 10px;
    }
    table.list tr:last-child { margin-bottom: 0; }
    table.list td {
        display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
        padding: 3px 0; border: 0; font-size: 13px;
    }
    table.list td::before {
        content: attr(data-label); flex: none; color: var(--mut); font-size: 12px; padding-top: 1px;
    }
    table.list td[data-label="ID"] { display: none; }
    table.list td[data-label="机型"] {
        display: block; font-weight: 600; font-size: 14px;
        padding-bottom: 6px; margin-bottom: 2px;
    }
    table.list td[data-label="机型"]::before { display: none; }
    table.list td.td-act {
        justify-content: flex-end; margin-top: 6px; padding-top: 8px;
        border-top: 1px dashed #eef2f7;
    }
    table.list td.td-act::before { display: none; }
}

/* 窄屏：顶栏放不下时隐藏品牌文字，只留图标 */
@media (max-width: 420px) {
    .brand-tx { display: none; }
    .top-nav { gap: 6px; }
    .top-nav a { height: 28px; padding: 0 10px; font-size: 12px; }
    .top-nav .me { height: 28px; padding: 0 9px; max-width: 62px; font-size: 12px; }
    .top-in { gap: 8px; }
}

/* ============ 地址簿 ============ */

/* 下单页：地址选择卡 */
.addr-pick { display: grid; gap: 8px; }
.addr-opt {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 10px 12px; border: 1px solid #dfe5ee; border-radius: 12px;
    background: #fff; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.addr-opt:hover { border-color: #ffd2b3; }
.addr-opt.on { border-color: var(--brand); background: #fff8f2; }
.addr-opt input { margin: 3px 0 0; flex: none; accent-color: var(--brand); width: 15px; height: 15px; }
.addr-opt-b { display: block; min-width: 0; flex: 1; }
.addr-opt-h {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
    font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.addr-opt-h em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }
.addr-opt-a { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; word-break: break-all; }
.addr-pick-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 7px; font-size: 12px; color: var(--mut);
}
.addr-tag { font-style: normal; font-size: 11px; color: var(--brand); background: #fff1e6; border-radius: 6px; padding: 1px 6px; font-weight: 400; }
.addr-def { font-style: normal; font-size: 11px; color: #127a3f; background: #e9f7ef; border-radius: 6px; padding: 1px 6px; font-weight: 400; }

/* 勾选框 */
.chk {
    display: flex; align-items: center; gap: 7px;
    font-size: 12.5px; color: var(--ink-2); margin: 0 0 12px; cursor: pointer;
}
.chk input { width: 15px; height: 15px; accent-color: var(--brand); flex: none; }

/* 选中已存地址时收起收货表单（地址卡上已有完整信息）；仅「使用新地址」时展开 */
#addrForm.hide { display: none; }
#addrForm.hide + .btn-block { margin-top: 14px; }

/* 涨粉凭证：截图上传 + 初始粉丝数 */
.fans-tip {
    font-size: 12px; color: #8a5a00; background: #fff7e6;
    border: 1px solid #ffe2b0; border-radius: 8px;
    padding: 7px 10px; margin-bottom: 12px; line-height: 1.5;
}
.req { color: #e03131; font-weight: 600; }
.field-hint { margin-top: 5px; font-size: 11.5px; color: var(--mut); line-height: 1.5; }
.upload-box {
    position: relative; display: block; cursor: pointer;
    border: 1px dashed #d9e1ee; border-radius: 10px; background: #fbfcfe;
    padding: 14px; text-align: center; font-size: 12.5px; color: var(--ink-2);
    line-height: 1.5; transition: border-color .15s, background .15s;
}
.upload-box:hover { border-color: var(--brand); background: #fff8f2; }
.upload-box input[type="file"] {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.upload-box img {
    display: block; max-width: 100%; max-height: 220px;
    margin: 10px auto 0; border-radius: 8px; border: 1px solid #e6ecf5;
}
/* 预览图浮到文件选择控件之上，点图放大而不是重新选文件 */
.upload-box img[data-zoom] {
    position: relative; z-index: 2; cursor: zoom-in;
}

/* 订单里的涨粉凭证条 */
.fans-evidence {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 8px; padding: 7px 10px;
    background: #fff8ec; border: 1px solid #ffe2b0; border-radius: 8px;
    font-size: 12.5px; color: #7a4a00;
}
.fans-evidence b { font-weight: 600; }
.fans-evidence a { color: #c2410c; white-space: nowrap; }

/* 涨粉数量：可直接输入，限 1000 的整数倍；下方给几个快捷档位 */
.qty-input input {
    font-size: 16px; font-weight: 600; letter-spacing: .3px;
}
.qty-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qty-chip {
    padding: 4px 11px; border-radius: 999px; cursor: pointer;
    border: 1px solid #e2e8f2; background: #fff; color: var(--ink-2);
    font-family: inherit; font-size: 12px; line-height: 1.7;
    transition: border-color .15s, color .15s, background .15s;
}
.qty-chip:hover { border-color: var(--brand); color: var(--brand); }
.qty-chip.on { border-color: var(--brand); background: #fff6ee; color: var(--brand); font-weight: 600; }

/* 实时算出的赠送 15% / 实发 / 目标粉丝 */
.qty-calc {
    margin-top: 9px; padding: 9px 11px; border-radius: 9px;
    background: #fff8ec; border: 1px solid #ffe2b0; line-height: 1.6;
}
.qty-calc-main { font-size: 13px; font-weight: 600; color: #c2410c; }
.qty-calc-sub { margin-top: 3px; font-size: 12px; color: #8a5a00; }
@media (max-width: 420px) {
    .qty-chip { padding: 4px 8px; font-size: 11.5px; }
}

.mini-link { font-size: 12.5px; color: var(--brand); white-space: nowrap; }
.mini-link:hover { color: var(--brand-dark); }

/* 地址管理页：地址卡片 */
.addr-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.addr-card + .addr-card { margin-top: 12px; }
.addr-card.def { border-color: #ffd2b3; background: #fffdfa; }
.addr-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.addr-card-top b { font-size: 14px; font-weight: 600; }
.addr-card-top span { font-size: 12.5px; color: var(--ink-2); }
.addr-card-tx { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.6; word-break: break-all; }
.addr-card-act { margin-top: 11px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 380px) {
    .top-nav { gap: 4px; }
    .top-nav a { padding: 0 8px; font-size: 11.5px; }
    .top-nav .me { max-width: 52px; padding: 0 7px; font-size: 11.5px; }
}

/* ============ 租赁方式（普通 / 涨粉用户） ============ */
.rent-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rent-opt {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 10px 12px; border: 1px solid #dfe5ee; border-radius: 12px;
    background: #fff; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.rent-opt:hover { border-color: #ffd2b3; }
.rent-opt.on { border-color: var(--brand); background: #fff8f2; }
.rent-opt input { margin: 3px 0 0; flex: none; accent-color: var(--brand); width: 15px; height: 15px; }
.rent-b { display: block; min-width: 0; }
.rent-h { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.rent-p { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--brand); }
.rent-tip { margin-top: 6px; font-size: 12px; color: var(--mut); line-height: 1.5; }

/* 订单里的「涨粉」标记 */
.tag-fans {
    font-style: normal; font-size: 11px; font-weight: 400;
    color: #7048e8; background: #f0ebff; border-radius: 6px;
    padding: 1px 6px; margin-left: 6px; white-space: nowrap;
}

/* ---------- 我的租赁：余额概览与订单卡（2026-11-03） ---------- */
.bal-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin: 0 0 18px; padding: 22px 24px; border-radius: 18px;
    background: #fff4e9;
    border: 1px solid #ffe4cd;
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(255, 106, 0, .08);
}
.bal-k { font-size: 12.5px; letter-spacing: .4px; color: #9a7350; }
.bal-v { margin-top: 2px; font-size: 38px; font-weight: 700; line-height: 1.08; letter-spacing: -.6px; color: var(--brand-dark); }
.bal-v span { margin-right: 3px; font-size: 19px; font-weight: 500; opacity: .9; }
.bal-tip { margin-top: 7px; font-size: 12px; color: #a98363; }
.bal-side { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.bal-stat {
    min-width: 82px; padding: 9px 14px; border-radius: 13px; text-align: center;
    background: rgba(255,255,255,.75); border: 1px solid #ffe3cb;
}
.bal-stat b { display: block; font-size: 21px; line-height: 1.2; font-weight: 700; color: var(--ink); }
.bal-stat span { font-size: 11.5px; color: #a98363; }
.bal-go {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 16px; border-radius: 11px;
    background: var(--brand); color: #fff; font-size: 13px; font-weight: 500;
}
.bal-go:hover { background: var(--brand-dark); }
.bal-go i { font-style: normal; }

@media (max-width: 640px) {
    .bal-hero { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
    .bal-v { font-size: 33px; }
    .bal-side { justify-content: flex-start; }
    .bal-stat { flex: 1; min-width: 0; }
    .bal-go { flex: 1; justify-content: center; }
}

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.sec-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.sec-head span { font-size: 12px; color: var(--mut); }

.order { transition: box-shadow .18s ease, border-color .18s ease; }
.order:hover { border-color: #dde4ee; box-shadow: 0 10px 24px rgba(16, 24, 40, .06); }
.order-thumb {
    width: 44px; height: 44px; flex: none; object-fit: cover;
    border-radius: 11px; border: 1px solid var(--line); background: #f5f6f9;
}
.order-thumb.ph {
    display: inline-flex; align-items: center; justify-content: center;
    color: #c3ccd8; font-size: 13px; font-weight: 600;
}
.order-title { font-size: 15px; }
.order-sum { font-size: 21px; }
.order-metrics { margin-top: 13px; }
.order-subline {
    display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px;
    font-size: 12px; color: var(--mut);
}
.order-subline b { margin-left: 2px; color: var(--ink-2); font-weight: 500; }
.order-actions { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); justify-content: flex-end; }

@media (max-width: 640px) {
    .order-actions { justify-content: stretch; }
    .order-actions .btn { flex: 1; }
    .order-actions > span { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
    .order-head { gap: 10px; }
    .order-thumb { width: 38px; height: 38px; }
    .order-sum { font-size: 18px; }
}

.empty-card { padding: 40px 16px; text-align: center; }
.empty-ico {
    width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    background: #fff2e8; color: var(--brand); font-size: 20px; font-weight: 700;
}
.empty-t { font-size: 15px; font-weight: 600; color: var(--ink); }
.empty-s { margin: 4px 0 16px; font-size: 12.5px; color: var(--mut); }

/* ============ 个人中心 ============ */
.acc-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 24px; margin: 0 0 16px; border-radius: 18px;
    background: #fff4e9; border: 1px solid #ffe4cd;
    box-shadow: 0 8px 22px rgba(255, 106, 0, .08);
}
.acc-person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.acc-ava {
    width: 56px; height: 56px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff; font-size: 22px; font-weight: 600;
}
.acc-idbox { min-width: 0; }
.acc-name {
    font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-sub { margin-top: 3px; font-size: 12px; color: #a98363; }
.acc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.acc-tags span {
    padding: 2px 8px; border-radius: 999px; font-size: 11px;
    color: #9a7350; background: rgba(255,255,255,.75); border: 1px solid #ffe3cb;
}
.acc-wallet { flex: none; text-align: right; }
.acc-wallet-k { font-size: 12.5px; color: #9a7350; }
.acc-wallet-v {
    font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.6px;
    color: var(--brand-dark);
}
.acc-wallet-v span { margin-right: 2px; font-size: 17px; font-weight: 500; }
.acc-wallet-t { margin-top: 4px; font-size: 12px; color: #a98363; }

.acc-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.acc-link {
    display: flex; align-items: center; gap: 11px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    transition: border-color .15s, background .15s;
}
.acc-link:hover { border-color: #ffd8b5; background: #fffaf5; }
.acc-ico {
    width: 36px; height: 36px; border-radius: 11px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: #fff1e2; color: var(--brand); font-style: normal;
    font-size: 14px; font-weight: 600;
}
.acc-link b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.acc-link span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--mut); }

.acc-orders { padding: 4px 16px; }
.acc-order { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef2f7; }
.acc-order:last-child { border-bottom: 0; }
.acc-order > img, .acc-order-ph {
    width: 44px; height: 44px; border-radius: 11px; flex: none; object-fit: cover;
}
.acc-order-ph {
    display: flex; align-items: center; justify-content: center;
    background: #f3f5f8; color: #a0a8b6; font-size: 12px;
}
.acc-order-dev { flex: 1; min-width: 0; }
.acc-order-dev b {
    display: block; font-size: 13.5px; font-weight: 500; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-order-dev span {
    display: block; margin-top: 3px; font-size: 11.5px; color: var(--mut);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-order-r { flex: none; text-align: right; }
.acc-order-r b { display: block; font-size: 14px; color: var(--ink); }
.acc-order-r .badge { margin-top: 3px; }

.acc-info { margin-top: 16px; }
.acc-info-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 9px 0; border-bottom: 1px dashed #eef2f7; font-size: 13px;
}
.acc-info-row:last-of-type { border-bottom: 0; }
.acc-info-row span { flex: none; color: var(--mut); }
.acc-info-row b { font-weight: 500; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.acc-note { margin-top: 9px; font-size: 12px; line-height: 1.65; color: var(--mut); }
.acc-logout { margin-top: 12px; }

.sec-head a { font-size: 12.5px; color: var(--brand); }
.sec-head a:hover { color: var(--brand-dark); }

@media (max-width: 640px) {
    .acc-hero { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
    .acc-wallet { text-align: left; }
    .acc-wallet-v { font-size: 30px; }
    .acc-links { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .acc-link { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
    .acc-link span { display: none; }
    .acc-orders { padding: 4px 14px; }
    .acc-order-dev span { white-space: normal; line-height: 1.45; }
    .acc-logout { display: block; width: 100%; text-align: center; }
}

/* ============ 后台订单 · 紧凑版 ============ */
.admin-order {
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 10px;
}
.admin-order[data-status="1"] { border-left: 3px solid #ff8a3d; }
.admin-order[data-status="3"] { border-left: 3px solid #4c8dff; }
.admin-order .order-head { gap: 12px; }
.admin-order .order-title { font-size: 14px; line-height: 1.35; gap: 6px; }
.admin-order .order-dev { font-weight: 600; }
.admin-order .order-meta { margin-top: 4px; gap: 3px 10px; font-size: 11px; }
.admin-order .order-meta .mono { font-size: 10.5px; }
.admin-order .order-meta .om-days {
    padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 600;
    color: #127a3f; background: #e8f5ec;
}
.admin-order .order-meta .om-days.om-warn { color: #b42318; background: #fdecec; }
.admin-order .order-sum { font-size: 19px; color: var(--brand-dark); }
.admin-order .oh-right .badge { margin-top: 3px; padding: 2px 8px; }
.admin-order[data-status="1"] .badge.s1 { background: #c2410c; color: #fff; }
.admin-order[data-status="3"] .badge.s3 { background: #2b5fd9; color: #fff; }

.admin-order .order-facts {
    margin-top: 10px; border: 1px solid var(--line); border-radius: 11px;
    background: #fff; overflow: hidden;
}
.admin-order .order-metrics {
    margin: 0; padding: 8px 12px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    background: #f7f9fc; border: 0; border-radius: 0;
    overflow: visible;
}
.admin-order .metric { padding: 0 10px; min-width: 0; background: transparent; }
.admin-order .metric:first-child { padding-left: 0; }
.admin-order .metric:last-child { padding-right: 0; }
.admin-order .metric + .metric { border-left: 1px solid #e7edf5; }
.admin-order .metric span { font-size: 10.5px; line-height: 1.3; color: #8b95a5; }
.admin-order .metric b {
    margin-top: 2px; font-size: 13px; line-height: 1.35; color: #26313f;
    font-variant-numeric: tabular-nums;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-order .order-metrics .metric:last-child b { color: var(--brand-dark); }

.admin-order .order-proof {
    margin: 0; padding: 8px 12px; font-size: 12px;
    border: 0; border-top: 1px solid #f1e4cf; border-radius: 0;
    background: #fffaf2;
}
.admin-order .order-rows {
    margin: 0; padding: 8px 12px 9px;
    border: 0; border-top: 1px solid #eef2f7; border-radius: 0;
    background: #fff; display: flex; flex-direction: column; gap: 3px;
}
.admin-order .orow {
    display: grid; grid-template-columns: 56px minmax(0, 1fr);
    align-items: baseline; gap: 8px; padding: 1px 0; font-size: 12.5px;
}
.admin-order .orow + .orow { border-top: 0; }
.admin-order .orow-k {
    width: auto; color: #8b95a5; font-size: 11px; line-height: 1.6;
    white-space: nowrap;
}
.admin-order .orow-v {
    color: #33404f; font-size: 12.5px; line-height: 1.6;
    overflow-wrap: anywhere; min-width: 0;
}
.admin-order .orow-phone { font-style: normal; margin-left: 8px; color: #7d8898; font-size: 12px; }
.admin-order .orow-phone::before { content: "·"; margin-right: 6px; color: #b9c3d0; }
.admin-order .orow-v.mono {
    justify-self: start; padding: 0 6px; border-radius: 5px;
    background: #f5f8fc; border: 1px solid #e8eef6;
    color: #2b3a4d; font-size: 12px; font-weight: 500;
    letter-spacing: .2px; line-height: 1.7;
}
.admin-order .order-foot { margin-top: 9px; padding-top: 9px; }
.admin-order .foot-form { gap: 7px; }
.admin-order .foot-form input[type="text"],
.admin-order .foot-form input[type="number"] { padding: 7px 10px; font-size: 12.5px; }
.admin-order .foot-form input[type="number"] { flex: 0 0 96px; }
.admin-order .foot-form .btn { padding: 7px 13px; font-size: 12.5px; }
.admin-order .foot-form input[name="express_no"] { min-width: 0; }
.status-filter a.on { background: var(--brand); border-color: var(--brand); }

@media (max-width: 640px) {
    .admin-tabs { margin: 12px 0 10px; }
    .status-filter {
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        padding-bottom: 2px; margin-bottom: 8px;
    }
    .status-filter::-webkit-scrollbar { display: none; }
    .status-filter a { flex: none; }
    .admin-order .order-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 7px 10px; }
    .admin-order .metric { padding: 0 7px; }
    .admin-order .order-rows { padding: 8px 10px; }
    .admin-order .orow { grid-template-columns: 50px minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 420px) {
    .admin-order { padding: 12px 13px; }
    .admin-order .order-sum { font-size: 18px; }
    .admin-order .order-meta { gap: 2px 8px; }
    .admin-order .foot-form input[type="text"],
    .admin-order .foot-form input[type="number"] { flex: 1 1 100%; }
    .admin-order .foot-form .btn { width: 100%; }
    .admin-order .foot-form input[name="express_no"] { flex: 1 1 auto; }
    .admin-order .foot-form input[name="express_no"] + .btn { width: auto; flex: none; }
}

/* ========== 返回主站：收进顶栏，排在「个人中心」后面（2026-11-06） ========== */
.top-nav a.nav-back{gap:4px;background:#fff;border-color:#ffdcc4;color:var(--brand)}
.top-nav a.nav-back:hover{background:#fff4e9;border-color:#ffc9a6;color:var(--brand)}
.top-nav a.nav-back svg{width:12px;height:12px;flex:none}
@media (max-width:420px){
    .top-nav a.nav-back{padding:0 9px;font-size:11.5px}
    .top-nav a.nav-back svg{width:11px;height:11px}
}
/* ---------- 待签收 / 签收凭证（2026-11-05） ---------- */
.badge.s5 { background: #fdf0d5; color: #a15c00; }
.admin-order[data-status="5"] .badge.s5 { background: #d97706; color: #fff; }
.orow-sub { margin-left: 8px; font-size: 11.5px; color: #7d8898; letter-spacing: 0; }
.orow-link { margin-left: auto; font-size: 12px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.orow-link:hover { text-decoration: underline; }
.orow-warn { color: #c2410c; font-weight: 600; }
.sign-form .sf-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mut); }
.sign-form .sf-item > span { flex: none; }
.sign-form .sf-item input[type="datetime-local"],
.sign-form .sf-item input[type="file"] {
  flex: none; font-size: 12.5px; padding: 7px 9px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2);
}
.sign-form .sf-item input[type="file"] { max-width: 220px; }
@media (max-width: 640px) {
  .sign-form .sf-item { flex: 1 1 100%; }
  .sign-form .sf-item input { flex: 1; max-width: none; }
}

/* ---------- 个人中心返回条（2026-11-05） ---------- */
.crumb-back {
    display: inline-flex; align-items: center; gap: 4px;
    margin: 2px 0 8px; padding: 2px 0;
    font-size: 12.5px; color: #8b95a5; text-decoration: none;
}
.crumb-back:hover { color: var(--brand); }

.sign-tip {
    margin: 0 0 10px; padding: 8px 11px; border-radius: 8px;
    background: #fff8ec; border: 1px solid #ffe3bd;
    font-size: 12px; line-height: 1.6; color: #9a6412;
}

/* ---------- 退回订单（余额自动退回，2026-11-14） ---------- */
.refund-foot { border-top: 1px dashed #f4dede; }
.refund-foot > details > summary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 0; font-size: 12px; color: #b4403a; cursor: pointer;
    list-style: none; user-select: none;
}
.refund-foot > details > summary::-webkit-details-marker { display: none; }
.refund-foot > details > summary::before { content: '↩'; font-size: 13px; line-height: 1; }
.refund-foot > details > summary span { font-size: 11px; color: #a8b1bf; }
.refund-foot > details[open] > summary { margin-bottom: 8px; }
.refund-foot .sf-item { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #6b7280; }
.refund-foot .sf-item > span { flex: none; }
.refund-foot .sf-item input[type="number"] { flex: 0 0 92px; }
.refund-foot .sf-check { gap: 4px; }
.refund-foot .sf-check input { accent-color: #b42318; }
.refund-foot input[type="text"] { flex: 1 1 140px; }
@media (max-width: 640px) {
    .refund-foot .sf-item { flex: 1 1 100%; }
    .refund-foot .sf-item input[type="number"] { flex: 0 0 100px; }
    .refund-foot input[type="text"] { flex: 1 1 100%; }
    .refund-foot .btn { width: 100%; }
}

/* ---------- 订单凭证图：四阶段（2026-11-14 由实拍图升级） ---------- */
.ph-wrap {
    margin: 6px 0 0; padding: 4px 7px 5px;
    border: 1px solid #eef1f6; border-radius: 9px; background: #fbfcfe;
}
.ph-hd { display: flex; align-items: baseline; gap: 6px; margin-bottom: 3px; line-height: 1.2; }
.ph-hd-t { font-size: 11px; font-weight: 600; color: #6b7280; }
.ph-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.ph-row {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
    padding: 3px 5px 3px; background: #fff;
    border: 1px solid #eef2f7; border-radius: 7px;
}
.ph-line { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 18px; }
.ph-k {
    display: inline-flex; align-items: center; gap: 4px; min-width: 0;
    font-size: 10.5px; color: #6b7280; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.ph-num {
    font-style: normal; min-width: 13px; height: 13px; padding: 0 3px;
    border-radius: 7px; background: #fff1e2; color: #e85f00;
    font-size: 9.5px; line-height: 13px; text-align: center;
}
.ph-thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; min-height: 24px; }
.ph-th {
    position: relative; width: 26px; height: 26px;
    border-radius: 5px; overflow: hidden; background: #eef1f6; border: 1px solid #e6eaf2;
}
.ph-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-th form { position: absolute; top: 0; right: 0; margin: 0; }
.ph-x {
    width: 11px; height: 11px; padding: 0; border: 0; cursor: pointer;
    border-radius: 0 4px 0 4px; background: rgba(17, 24, 39, .55);
    color: #fff; font-size: 9px; line-height: 11px; text-align: center;
}
.ph-x:hover { background: rgba(190, 30, 30, .9); }
.ph-none { font-size: 10px; color: #c2cad6; }
.ph-up { flex: none; margin: 0; }

/* 真按钮 + JS 唤起（微信 / iOS 兼容） */
.ph-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    height: 26px; padding: 0 10px; border: 1px dashed #ffc79a; border-radius: 8px;
    background: #fff; color: #e85f00; font-size: 11.5px; white-space: nowrap;
    cursor: pointer; user-select: none; font-family: inherit;
}
.ph-btn:hover { background: #fff7f0; border-color: #ffb072; }
.ph-btn-xs { width: 18px; height: 18px; padding: 0; border-radius: 5px; font-size: 13px; line-height: 1; }
.ph-file {
    position: absolute; left: -9999px; top: 0;
    width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none;
}
.ph-btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.ph-pick-n { font-style: normal; font-size: 11.5px; color: #6b7280; }

/* 客户端：归还弹窗里的选图按钮 */
.ph-pick {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 42px; margin-top: 2px;
    border: 1px dashed #ffc79a; border-radius: 10px; background: #fffaf5;
    color: #e85f00; font-size: 13.5px; cursor: pointer; user-select: none;
}
.ph-pick:hover { background: #fff4e9; border-color: #ffb072; }
.ph-pick { width: 100%; font-family: inherit; }
.ph-pick-tip { margin-top: 5px; font-size: 11.5px; color: #98a2b3; line-height: 1.45; }

@media (max-width: 640px) {
    .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-th { width: 32px; height: 32px; }
}

/* 客户端：订单里的实拍图 */
.my-photos { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eef1f6; }
.mp-head { font-size: 12px; color: #8b95a5; margin-bottom: 7px; }
.mp-head span { margin-left: 6px; font-size: 11px; color: #a4adbb; }
.mp-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-list img {
    width: 76px; height: 76px; object-fit: cover; display: block;
    border-radius: 8px; border: 1px solid #eef1f6; cursor: zoom-in;
}

/* ---------- 顶部租机 / 还机流程条（2026-11-09） ---------- */
.flow-bar {
    margin: 14px 0 2px;
    padding: 12px 14px 13px;
    background: linear-gradient(180deg, #fff8f1 0%, #fff 100%);
    border: 1px solid #ffe0c5;
    border-radius: 14px;
}
.flow-hd {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 11px; font-size: 13px; font-weight: 700; color: var(--ink);
}
.flow-hd::before {
    content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--brand);
}
.flow-hd small { font-size: 11.5px; font-weight: 400; color: var(--mut); }
.flow-more {
    margin-left: auto; font-size: 11.5px; font-weight: 400;
    color: var(--brand); text-decoration: none; white-space: nowrap;
}
.flow-more:hover { text-decoration: underline; }
.flow-steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
}
.flow-step { position: relative; min-width: 0; text-align: center; }
.flow-step + .flow-step::before {
    content: "\203A"; position: absolute; left: -10px; top: 6px;
    color: #ffbc85; font-size: 18px; font-weight: 700; line-height: 1;
}
.flow-num {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; margin: 0 auto 6px;
    border-radius: 50%; background: var(--brand); color: #fff;
    font-size: 12.5px; font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 106, 0, .22);
}
.flow-step:last-child .flow-num { background: var(--ok); box-shadow: 0 2px 6px rgba(18, 161, 80, .2); }
.flow-t {
    display: block; font-size: 12.5px; font-weight: 600;
    color: var(--ink); line-height: 1.3; white-space: nowrap;
}
.flow-d {
    display: block; margin-top: 3px; font-size: 11px; line-height: 1.45;
    color: var(--mut); overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .flow-bar { margin-top: 12px; padding: 10px 7px 11px; }
    .flow-hd { margin-bottom: 9px; font-size: 12.5px; gap: 6px; }
    .flow-hd small { font-size: 11px; }
    .flow-steps { gap: 5px; }
    .flow-step + .flow-step::before { left: -7px; top: 5px; font-size: 15px; }
    .flow-num { width: 21px; height: 21px; font-size: 11.5px; margin-bottom: 5px; }
    .flow-t { font-size: 11px; }
    /* 窄屏格子放不下长句，收成一行要点，步骤标题保持不变 */
    .flow-d { display: none; }
    .flow-steps::after {
        content: "签收当天起算 · 归还验收后押金原路退回";
        grid-column: 1 / -1;
        margin-top: 1px;
        font-size: 10.5px; line-height: 1.4;
        color: var(--mut); text-align: center;
    }
}
@media (max-width: 360px) {
    .flow-hd small { display: none; }
    .flow-t { font-size: 10.5px; }
}

/* 「怎么租」下方的费用提醒（2026-11-09）：归还运费由租机用户承担 */
.howto-warn{margin:12px 0 0;padding:10px 12px;border-radius:8px;
    background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;
    font-size:13px;line-height:1.65;}
.howto-warn-sm{margin:10px 0 12px;padding:8px 10px;border-radius:7px;
    font-size:12px;line-height:1.6;}
/* 弹窗按钮行：.btn-block 的 width:100% 在 flex 里会把旁边按钮压成竖排文字 */
.dlg-btns{display:flex;gap:8px;}
.dlg-btns .btn-block{flex:1 1 auto;width:auto;min-width:0;}
.dlg-btns .btn-ghost{flex:0 0 auto;white-space:nowrap;padding-left:16px;padding-right:16px;}

/* ---------- 后台订单卡片：二次紧凑（2026-11-14） ---------- */
.admin-order { padding: 9px 12px; margin-bottom: 8px; }
.admin-order .order-meta { margin-top: 2px; }
.admin-order .order-facts { margin-top: 5px; }
.admin-order .order-metrics { padding: 5px 10px; }
.admin-order .metric b { font-size: 12.5px; }
.admin-order .order-rows { padding: 4px 10px 5px; gap: 0; }
.admin-order .orow { padding: 0; }
.admin-order .orow-k, .admin-order .orow-v { line-height: 1.35; }
.admin-order .order-foot { margin-top: 5px; padding-top: 5px; }
.admin-order .foot-form { gap: 6px; }
.admin-order .foot-form input[type="text"],
.admin-order .foot-form input[type="number"] { padding: 6px 9px; }
.admin-order .foot-form .btn { padding: 6px 12px; }
.refund-foot > details > summary { font-size: 11.5px; padding: 0; }
.orow-addr { color: #7d8898; }
.sign-tip { margin-bottom: 6px; padding: 5px 9px; }
.badge.s10 { background: #eef1f6; color: #6b7280; }

/* ---------- 订单卡片：显示下单用户（2026-11-14） ---------- */
.admin-order .om-user { display: inline-flex; align-items: center; gap: 4px; }
.admin-order .om-tag {
    font-style: normal; font-size: 9.5px; line-height: 1.4; padding: 1px 5px;
    border-radius: 4px; background: #fff1e2; color: #c2410c; border: 1px solid #ffdcc4;
}
.admin-order .om-name {
    color: #c2410c; font-weight: 600; font-size: 11.5px; text-decoration: none;
    max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    border-bottom: 1px dashed #ffb072;
}
.admin-order .om-name:hover { color: #9a3412; border-bottom-style: solid; }
.admin-order .om-uid { font-style: normal; color: #a4adbb; font-size: 10.5px; }
.acc-grid { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 7px 10px; font-size: 12.5px; }
.acc-k { color: #8b95a5; }
.acc-v { color: #26313f; font-weight: 500; overflow-wrap: anywhere; }
.acc-tip {
    margin-top: 10px; padding: 7px 9px; border-radius: 7px;
    background: #f7f9fc; font-size: 11.5px; color: #8b95a5; line-height: 1.5;
}

/* ---------- 后台订单卡片：默认折叠、只留重要信息（2026-11-14） ---------- */
.admin-order .ao-detail { display: block; }
.admin-order.is-collapsed .ao-detail { display: none; }

.admin-order .ao-brief {
    display: flex; align-items: center; gap: 8px;
    margin-top: 7px; padding-top: 7px;
    border-top: 1px dashed #eef2f7;
}
.admin-order .ao-brief-txt {
    flex: 1 1 auto; min-width: 0;
    font-size: 11.5px; color: #6b7280;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-order .ao-brief-txt b { color: #26313f; font-weight: 600; }
.admin-order .ao-brief-ph { flex: none; font-size: 10.5px; color: #a4adbb; white-space: nowrap; }

.ao-quick, .ao-toggle {
    flex: none; height: 26px; padding: 0 10px;
    border-radius: 7px; font-size: 11.5px; line-height: 1;
    font-family: inherit; white-space: nowrap; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.ao-quick { border: 1px solid #ffd9bd; background: #fff7f0; color: #c2410c; }
.ao-quick:hover { background: #ffeede; }
.ao-toggle { border: 1px solid #dfe6f0; background: #f8fafc; color: #4a5568; }
.ao-toggle:hover { background: #eef2f7; }
.admin-order.is-collapsed .ao-t-close,
.admin-order:not(.is-collapsed) .ao-t-open { display: none; }

.admin-order.is-collapsed .order-meta .om-time { display: none; }

.ao-foot-fold { display: none; }
.admin-order:not(.is-collapsed) .ao-foot-fold {
    display: block; text-align: center; margin-top: 10px;
    padding-top: 8px; border-top: 1px dashed #eef2f7;
}
.admin-order:not(.is-collapsed) .ao-brief {
    justify-content: flex-end; margin-top: 3px; padding-top: 3px; border-top: 0;
}
.admin-order:not(.is-collapsed) .ao-brief .ao-toggle { height: 24px; }
.admin-order:not(.is-collapsed) .ao-brief-txt,
.admin-order:not(.is-collapsed) .ao-brief-ph,
.admin-order:not(.is-collapsed) .ao-quick { display: none; }
.ao-foot-fold .ao-toggle { min-width: 96px; }

@media (max-width: 640px) {
    .admin-order .ao-brief { gap: 6px; }
    .ao-quick, .ao-toggle { height: 29px; padding: 0 11px; font-size: 12px; }
    .ao-foot-fold .ao-toggle { height: 32px; }
}
