/* =============================================================================
 * 三角洲行动护航接单平台 —— 全站统一主题(暗色军事 / 战术风)
 *
 * 单一来源:前台(客户端)、打手工作台、管理后台共用本文件,保证全站视觉一致。
 * 引用方式:<link rel="stylesheet" href="/assets/css/theme.css">
 *
 * 命名约定:
 *   - CSS 变量集中在 :root,改配色只需改这里;
 *   - .df-* 为全站通用组件类(卡片/表格/按钮/徽章/表单/提示条);
 *   - 后台布局类以 .adm-* 前缀(侧边栏 / 顶栏 / 内容区)。
 * ========================================================================== */

:root {
    /* 底色与层次 */
    --bg: #0d1117;          /* 页面背景 */
    --bg-2: #0a0e14;        /* 输入框 / 凹陷区 */
    --card: #161b22;        /* 卡片 */
    --card-2: #171d26;      /* 卡片渐变起点 */
    --line: #223041;        /* 描边 / 分隔线 */

    /* 主色与强调 */
    --brand: #00e676;       /* 战术绿(主) */
    --brand-dim: #0f8a4d;   /* 战术绿(暗,用于渐变) */
    --accent: #ff6b1a;      /* 警戒橙(强调) */

    /* 文字 */
    --ink: #e6edf3;         /* 主文字 */
    --muted: #8b949e;       /* 次要文字 */

    /* 语义色 */
    --danger: #ff3b3b;
    --ok: #00e676;
    --warn: #f5a623;
    --info: #58a6ff;
    --star: #ffc542;       /* 评分星标(客户评价) */

    /* 字体 */
    --title-font: "Rajdhani", "PingFang SC", "Microsoft YaHei", sans-serif;
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;

    /* 后台侧边栏宽度 */
    --sidebar-w: 232px;
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--body-font);
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(0,230,118,.10), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(255,107,26,.08), transparent 55%),
        var(--bg);
}

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

/* -----------------------------------------------------------------------------
 * 品牌标识
 * -------------------------------------------------------------------------- */
.df-brand { display: flex; align-items: center; gap: 10px; }
.df-brand .dot {
    width: 12px; height: 12px; background: var(--brand); border-radius: 2px;
    transform: rotate(45deg); box-shadow: 0 0 12px rgba(0,230,118,.8); flex: 0 0 auto;
}
.df-brand .name {
    font-family: var(--title-font); font-weight: 700; letter-spacing: 2px;
    font-size: 15px; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}

/* -----------------------------------------------------------------------------
 * 标题 / 页头
 * -------------------------------------------------------------------------- */
.df-page-title {
    font-family: var(--title-font); font-weight: 700; font-size: 26px;
    letter-spacing: 3px; margin: 0; text-transform: uppercase; color: var(--ink);
}
.df-page-sub { color: var(--muted); font-size: 13px; margin: 6px 0 0; letter-spacing: 1px; }
.df-page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}

/* -----------------------------------------------------------------------------
 * 卡片(斜切角 + 左上霓虹条)
 * -------------------------------------------------------------------------- */
.df-card {
    background: linear-gradient(180deg, var(--card-2), var(--card));
    border: 1px solid var(--line); position: relative; padding: 22px 24px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    box-shadow: 0 18px 44px rgba(0,0,0,.42);
}
.df-card::before {
    content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 48px;
    background: linear-gradient(180deg, var(--brand), transparent);
}
.df-card.plain::before { display: none; }
.df-card-title {
    font-family: var(--title-font); font-weight: 700; font-size: 16px;
    letter-spacing: 2px; text-transform: uppercase; margin: 0 0 16px; color: var(--ink);
}

/* -----------------------------------------------------------------------------
 * 统计卡片
 * -------------------------------------------------------------------------- */
.df-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.df-stat {
    border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card));
    padding: 18px 20px; position: relative; overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.df-stat .k {
    color: var(--muted); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
.df-stat .v {
    font-family: var(--title-font); font-weight: 700; font-size: 30px; letter-spacing: 1px;
    margin-top: 8px; color: var(--ink); line-height: 1.1;
}
.df-stat .v.brand { color: var(--brand); text-shadow: 0 0 18px rgba(0,230,118,.32); }
.df-stat .v.accent { color: var(--accent); }
.df-stat .v.warn { color: var(--warn); }
.df-stat .hint { color: var(--muted); font-size: 11px; margin-top: 6px; }
.df-stat.highlight { border-color: rgba(0,230,118,.4); box-shadow: 0 0 0 1px rgba(0,230,118,.18) inset; }

/* -----------------------------------------------------------------------------
 * 数据表格
 * -------------------------------------------------------------------------- */
.df-table-wrap {
    border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card));
    overflow-x: auto;
}
.df-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.df-table th, .df-table td {
    text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.df-table th {
    font-family: var(--title-font); font-weight: 600; font-size: 12px; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.02); white-space: nowrap;
}
.df-table tbody tr:hover { background: rgba(0,230,118,.035); }
.df-table tr:last-child td { border-bottom: none; }
.df-table td.amount {
    font-family: var(--title-font); font-weight: 700; color: var(--brand);
    letter-spacing: .5px; white-space: nowrap;
}
.df-table td.actions { white-space: nowrap; text-align: right; }
.df-table .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all;
}
.df-table .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.df-muted { color: var(--muted); }
.df-empty-row td { text-align: center; color: var(--muted); padding: 34px 14px; }

/* -----------------------------------------------------------------------------
 * 徽章
 * -------------------------------------------------------------------------- */
.df-badge {
    display: inline-block; font-family: var(--title-font); font-weight: 600; font-size: 11.5px;
    letter-spacing: 1px; padding: 3px 10px; border: 1px solid var(--line);
    color: var(--muted); text-transform: uppercase; white-space: nowrap;
}
.df-badge.brand { color: var(--brand); border-color: rgba(0,230,118,.45); }
.df-badge.ok {
    color: #06110a; border-color: transparent;
    background: linear-gradient(180deg, var(--brand), var(--brand-dim));
}
.df-badge.warn { color: var(--warn); border-color: rgba(245,166,35,.45); background: rgba(245,166,35,.10); }
.df-badge.accent { color: var(--accent); border-color: rgba(255,107,26,.5); background: rgba(255,107,26,.08); }
.df-badge.danger { color: #ffb3b3; border-color: rgba(255,59,59,.5); background: rgba(255,59,59,.08); }
.df-badge.info { color: #cfe3ff; border-color: rgba(88,166,255,.45); background: rgba(88,166,255,.10); }
.df-badge.muted { color: var(--muted); border-color: var(--line); }

/* -----------------------------------------------------------------------------
 * 按钮
 * -------------------------------------------------------------------------- */
.df-btn {
    display: inline-block; padding: 9px 18px; cursor: pointer; text-decoration: none;
    border: 1px solid var(--line); background: var(--bg-2); color: var(--ink);
    font-family: var(--title-font); font-weight: 700; font-size: 13px;
    letter-spacing: 1.5px; text-transform: uppercase; transition: filter .15s, border-color .15s, transform .05s;
}
.df-btn:hover { filter: brightness(1.15); text-decoration: none; }
.df-btn:active { transform: translateY(1px); }
.df-btn.primary {
    color: #06110a; border: none;
    background: linear-gradient(180deg, var(--brand), var(--brand-dim));
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.df-btn.danger { color: #ffb3b3; border-color: rgba(255,59,59,.5); background: rgba(255,59,59,.08); }
.df-btn.warn { color: var(--accent); border-color: rgba(255,107,26,.5); }
.df-btn.ghost { color: var(--muted); background: transparent; }
.df-btn.sm { padding: 6px 13px; font-size: 12px; letter-spacing: 1px; }
.df-btn.block { display: block; width: 100%; text-align: center; }
.df-btn.lg { padding: 13px 34px; font-size: 16px; letter-spacing: 3px; }
.df-inline-form { display: inline; margin: 0; }

/* -----------------------------------------------------------------------------
 * 表单
 * -------------------------------------------------------------------------- */
.df-field { margin-bottom: 18px; }
.df-label {
    display: block; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 7px;
}
.df-label .req { color: var(--accent); }
.df-input, .df-select, .df-textarea {
    width: 100%; padding: 11px 13px; font-size: 14px; color: var(--ink);
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 3px;
    font-family: var(--body-font); transition: border-color .15s, box-shadow .15s;
}
.df-textarea { min-height: 96px; resize: vertical; }
.df-input:focus, .df-select:focus, .df-textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,230,118,.15);
}
.df-input.is-invalid, .df-select.is-invalid, .df-textarea.is-invalid {
    border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255,59,59,.14);
}
.df-input::placeholder, .df-textarea::placeholder { color: #5b6673; }
.df-hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.df-invalid-text { color: #ffb3b3; font-size: 12px; margin-top: 6px; }
.df-input-group { display: flex; align-items: stretch; }
.df-input-group .prefix {
    display: inline-flex; align-items: center; padding: 0 12px; font-size: 14px;
    color: var(--brand); background: var(--bg-2); border: 1px solid var(--line); border-right: 0;
}
.df-input-group .df-input { border-radius: 0; }
.df-row { display: flex; gap: 16px; flex-wrap: wrap; }
.df-col { flex: 1 1 220px; }

/* 单选卡片(如提现方式 / 角色选择) */
.df-radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.df-radio {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer;
    border: 1px solid var(--line); background: var(--bg-2); font-size: 14px;
}
.df-radio input { accent-color: var(--brand); width: 16px; height: 16px; }
.df-radio input:checked + span { color: var(--brand); font-weight: 600; }

/* -----------------------------------------------------------------------------
 * 提示条
 * -------------------------------------------------------------------------- */
.df-alert {
    font-size: 13px; padding: 11px 15px; margin-bottom: 18px;
    border: 1px solid transparent; border-left-width: 3px; background: rgba(255,255,255,.02);
}
.df-alert.success { color: #9df5c4; border-color: rgba(0,230,118,.45); border-left-color: var(--ok); background: rgba(0,230,118,.08); }
.df-alert.danger  { color: #ffb3b3; border-color: rgba(255,59,59,.5);  border-left-color: var(--danger); background: rgba(255,59,59,.08); }
.df-alert.warn    { color: #ffd6b0; border-color: rgba(255,107,26,.5); border-left-color: var(--accent); background: rgba(255,107,26,.08); }
.df-alert.info    { color: #cfe3ff; border-color: rgba(88,166,255,.4); border-left-color: var(--info); background: rgba(88,166,255,.08); }
.df-alert ul { margin: 6px 0 0; padding-left: 18px; }

/* -----------------------------------------------------------------------------
 * 筛选标签(pill tabs)
 * -------------------------------------------------------------------------- */
.df-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.df-tab {
    display: inline-block; padding: 6px 15px; font-size: 13px; color: var(--muted);
    border: 1px solid var(--line); background: var(--bg-2); text-decoration: none;
    font-family: var(--title-font); font-weight: 600; letter-spacing: 1px;
}
.df-tab:hover { color: var(--ink); border-color: #33506b; text-decoration: none; }
.df-tab.active {
    color: #06110a; border-color: transparent;
    background: linear-gradient(180deg, var(--brand), var(--brand-dim));
}
.df-tab .count { opacity: .75; margin-left: 4px; }

/* -----------------------------------------------------------------------------
 * 空状态
 * -------------------------------------------------------------------------- */
.df-empty {
    border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card));
    text-align: center; padding: 50px 24px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.df-empty .big {
    font-family: var(--title-font); font-weight: 700; font-size: 20px; letter-spacing: 2px;
    color: var(--muted); text-transform: uppercase; margin-bottom: 10px;
}
.df-empty p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* =============================================================================
 * 管理后台布局(暗色军事风侧边栏 + 顶栏)
 * ========================================================================== */
.adm-shell { display: flex; min-height: 100vh; }

/* 侧边栏 */
.adm-side {
    width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
    background: linear-gradient(180deg, #0b1016, #0a0e14);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.adm-side-brand {
    padding: 20px 18px; border-bottom: 1px solid var(--line);
}
.adm-side-brand .role {
    display: block; margin-top: 6px; color: var(--accent); font-size: 11px;
    letter-spacing: 2px; text-transform: uppercase; font-family: var(--title-font); font-weight: 600;
}
.adm-nav { padding: 14px 0; flex: 1 1 auto; overflow-y: auto; }
.adm-nav-group {
    padding: 14px 18px 6px; color: #5b6673; font-size: 10.5px;
    letter-spacing: 2px; text-transform: uppercase; font-family: var(--title-font); font-weight: 600;
}
.adm-nav a {
    display: flex; align-items: center; gap: 11px; padding: 11px 18px;
    color: var(--muted); font-size: 14px; border-left: 3px solid transparent; text-decoration: none;
    transition: color .15s, background .15s, border-color .15s;
}
.adm-nav a:hover { color: var(--ink); background: rgba(255,255,255,.03); text-decoration: none; }
.adm-nav a.active {
    color: var(--brand); background: rgba(0,230,118,.09); border-left-color: var(--brand);
    font-weight: 600;
}
.adm-nav a .ico { width: 17px; height: 17px; flex: 0 0 auto; opacity: .85; }
.adm-nav a.active .ico { opacity: 1; }
.adm-side-foot { padding: 14px 18px; border-top: 1px solid var(--line); }
.adm-side-foot a { color: var(--muted); font-size: 12.5px; }

/* 主区 */
.adm-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.adm-top {
    display: flex; align-items: center; gap: 16px; padding: 15px 26px;
    border-bottom: 1px solid var(--line); background: rgba(10,14,20,.72);
    backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; flex-wrap: wrap;
}
.adm-top .title {
    font-family: var(--title-font); font-weight: 700; font-size: 17px;
    letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
}
.adm-top .right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.adm-top .who { color: var(--muted); font-size: 13px; }
.adm-top .who b { color: var(--brand); font-weight: 600; }
.adm-content { padding: 26px; flex: 1 0 auto; }
.adm-foot {
    padding: 18px 26px; border-top: 1px solid var(--line); color: #5b6673;
    font-size: 12px; text-align: center;
}

/* 移动端程序坞默认不参与桌面布局 */
.mobile-dock,
.mobile-nav-layer { display: none; }
.mobile-nav-layer[hidden] { display: none !important; }
.mobile-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 移动端:隐藏桌面侧栏，改用悬浮程序坞与“更多”面板 */
@media (max-width: 860px) {
    body {
        padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    }
    body.mobile-nav-open { overflow: hidden; }
    .adm-shell { display: block; min-height: 100vh; }
    .adm-side { display: none; }
    .adm-main { min-height: 100vh; }
    .adm-top {
        min-height: 58px; padding: 12px 16px; gap: 10px; flex-wrap: nowrap;
        background: rgba(10,14,20,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    }
    .adm-top .title {
        min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        font-size: 16px; letter-spacing: 1.5px;
    }
    .adm-top .right { flex: 0 1 auto; min-width: 0; gap: 8px; flex-wrap: nowrap; }
    .adm-top .who {
        display: block; max-width: 44vw; overflow: hidden; text-overflow: ellipsis;
        white-space: nowrap; font-size: 12px;
    }
    .adm-top .right .df-inline-form { display: none; }
    .adm-content { padding: 18px 16px; }
    .adm-foot { padding: 16px; }

    .mobile-dock {
        display: block; position: fixed;
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 1001; pointer-events: none;
    }
    .mobile-dock-rail {
        display: flex; align-items: stretch; width: min(100%, 430px); margin: 0 auto; padding: 7px;
        border: 1px solid rgba(139,148,158,.28); border-radius: 22px;
        background: rgba(19,25,34,.86);
        -webkit-backdrop-filter: blur(24px) saturate(165%);
        backdrop-filter: blur(24px) saturate(165%);
        box-shadow: 0 18px 44px rgba(0,0,0,.58), 0 1px 0 rgba(255,255,255,.08) inset;
        pointer-events: auto;
    }
    .mobile-dock-item {
        --mobile-dock-color: var(--muted);
        position: relative; display: flex; flex: 1 1 0; min-width: 0; min-height: 58px;
        align-items: center; justify-content: center; flex-direction: column; gap: 4px;
        padding: 6px 3px; border: 0; border-radius: 15px; color: var(--muted);
        background: transparent; font: inherit; text-decoration: none; cursor: pointer;
        -webkit-tap-highlight-color: transparent; touch-action: manipulation;
        transition: color .18s ease, background .18s ease, transform .18s ease;
    }
    .mobile-dock-item:nth-child(1) { --mobile-dock-color: var(--brand); }
    .mobile-dock-item:nth-child(2) { --mobile-dock-color: var(--info); }
    .mobile-dock-item:nth-child(3) { --mobile-dock-color: var(--accent); }
    .mobile-dock-item:nth-child(4) { --mobile-dock-color: #b58cff; }
    .mobile-dock-item:hover,
    .mobile-dock-item:focus-visible { color: var(--mobile-dock-color); text-decoration: none; outline: none; }
    .mobile-dock-item:focus-visible { box-shadow: 0 0 0 2px var(--mobile-dock-color) inset; }
    .mobile-dock-item:active { transform: scale(.94); }
    .mobile-dock-item.active {
        color: var(--mobile-dock-color); background: rgba(255,255,255,.075);
    }
    .mobile-dock-item.active::after {
        content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px;
        margin-left: -2px; border-radius: 50%; background: currentColor;
        box-shadow: 0 0 8px currentColor;
    }
    .mobile-dock-icon {
        display: grid; width: 27px; height: 27px; place-items: center;
        color: var(--mobile-dock-color);
    }
    .mobile-dock-icon .ico { width: 22px; height: 22px; }
    .mobile-dock-label {
        display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
        color: inherit; font-size: 10.5px; font-weight: 600; letter-spacing: .2px; white-space: nowrap;
    }

    .mobile-nav-layer {
        display: block; position: fixed; inset: 0; z-index: 1000;
    }
    .mobile-nav-backdrop {
        position: absolute; inset: 0; background: rgba(3,6,10,.72); opacity: 0;
        -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
        transition: opacity .2s ease;
    }
    .mobile-nav-sheet {
        position: absolute;
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: calc(91px + env(safe-area-inset-bottom, 0px));
        width: min(calc(100% - 24px), 430px); max-height: calc(100vh - 118px); margin: 0 auto;
        max-height: calc(100dvh - 118px - env(safe-area-inset-bottom, 0px)); overflow-y: auto;
        border: 1px solid rgba(139,148,158,.3); border-radius: 24px;
        background: linear-gradient(180deg, rgba(25,32,42,.98), rgba(13,18,25,.98));
        box-shadow: 0 28px 70px rgba(0,0,0,.72), 0 1px 0 rgba(255,255,255,.07) inset;
        opacity: 0; transform: translateY(18px) scale(.98); transform-origin: bottom center;
        transition: opacity .2s ease, transform .2s ease;
        overscroll-behavior: contain;
    }
    .mobile-nav-layer.is-open .mobile-nav-backdrop { opacity: 1; }
    .mobile-nav-layer.is-open .mobile-nav-sheet { opacity: 1; transform: translateY(0) scale(1); }
    .mobile-nav-sheet:focus { outline: none; }
    .mobile-nav-head {
        display: flex; align-items: center; justify-content: space-between; gap: 14px;
        padding: 18px 18px 14px; border-bottom: 1px solid rgba(139,148,158,.18);
    }
    .mobile-nav-eyebrow {
        display: block; margin-bottom: 4px; color: var(--brand); font-size: 10px;
        font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    }
    .mobile-nav-head h2 {
        margin: 0; color: var(--ink); font-family: var(--title-font); font-size: 20px;
        letter-spacing: 1.5px;
    }
    .mobile-nav-close {
        display: grid; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; place-items: center;
        border: 1px solid var(--line); border-radius: 14px; color: var(--muted);
        background: rgba(255,255,255,.035); cursor: pointer;
    }
    .mobile-nav-close:hover,
    .mobile-nav-close:focus-visible { color: var(--ink); border-color: var(--brand); outline: none; }
    .mobile-nav-grid {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 14px 14px 8px;
    }
    .mobile-nav-card {
        display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; min-height: 58px;
        align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line);
        border-radius: 15px; color: var(--ink); background: rgba(255,255,255,.025);
        text-decoration: none; -webkit-tap-highlight-color: transparent;
        transition: border-color .16s ease, background .16s ease, transform .16s ease;
    }
    .mobile-nav-card:hover,
    .mobile-nav-card:focus-visible { border-color: #3a5169; background: rgba(255,255,255,.055); text-decoration: none; outline: none; }
    .mobile-nav-card:active { transform: scale(.98); }
    .mobile-nav-card.active { border-color: rgba(0,230,118,.48); background: rgba(0,230,118,.075); }
    .mobile-nav-icon {
        display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px;
    }
    .mobile-nav-icon .ico { width: 20px; height: 20px; }
    .mobile-nav-card:nth-child(4n+1) .mobile-nav-icon { color: var(--brand); background: rgba(0,230,118,.11); }
    .mobile-nav-card:nth-child(4n+2) .mobile-nav-icon { color: var(--info); background: rgba(88,166,255,.12); }
    .mobile-nav-card:nth-child(4n+3) .mobile-nav-icon { color: var(--accent); background: rgba(255,107,26,.12); }
    .mobile-nav-card:nth-child(4n+4) .mobile-nav-icon { color: #b58cff; background: rgba(181,140,255,.12); }
    .mobile-nav-card-label {
        min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        font-size: 13px; font-weight: 600;
    }
    .mobile-nav-chevron { color: #5b6673; }
    .mobile-nav-card.active .mobile-nav-chevron { color: var(--brand); }
    .mobile-nav-actions {
        display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 8px 14px 14px;
    }
    .mobile-nav-actions form { display: block; margin: 0; }
    .mobile-nav-action {
        display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 8px;
        padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px;
        color: var(--muted); background: var(--bg-2); font: inherit; font-size: 12.5px;
        font-weight: 600; text-decoration: none; cursor: pointer;
    }
    .mobile-nav-action:hover,
    .mobile-nav-action:focus-visible { color: var(--ink); border-color: #3a5169; text-decoration: none; outline: none; }
    .mobile-nav-action.danger { color: #ff9f9f; border-color: rgba(255,59,59,.32); background: rgba(255,59,59,.06); }
    .mobile-nav-action.danger:hover,
    .mobile-nav-action.danger:focus-visible { color: #ffc1c1; border-color: rgba(255,59,59,.62); }
    .mobile-nav-action-icon { display: grid; place-items: center; }
}

@media (max-width: 370px) {
    .adm-top .who { display: none; }
    .mobile-nav-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-dock-item,
    .mobile-nav-backdrop,
    .mobile-nav-sheet,
    .mobile-nav-card { transition: none !important; }
}

/* -----------------------------------------------------------------------------
 * 通用工具类
 * -------------------------------------------------------------------------- */
/* 单行省略(表格中长文本截断,配合 inline max-width 使用) */
.df-clip {
    display: block; max-width: 100%; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
/* 服务名 / 描述副标题(服务列表用) */
.df-cell-desc {
    display: block; color: var(--muted); font-size: 12px; margin-top: 3px;
    max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 输入组后缀(单位 addon,如「天」「分」;与 .prefix 对称,置于输入框右侧) */
.df-input-group .suffix {
    display: inline-flex; align-items: center; padding: 0 12px; font-size: 14px;
    color: var(--brand); background: var(--bg-2); border: 1px solid var(--line); border-left: 0;
}
