/* ===========================================================
   求解code 后台 · 样式
   配色：靛蓝渐变 + 浅灰底；圆角卡片、圆角弹窗；PC / H5 自适应
   =========================================================== */

:root {
    --bg: #f3f5fb;
    --card: #ffffff;
    --ink: #101828;
    --ink-2: #344054;
    --sub: #6b7a90;
    --line: #e8ecf5;
    --line-2: #dfe6f2;
    --brand: #4f46e5;
    --brand-2: #7c3aed;
    --brand-soft: #eef0ff;
    --ok: #0f9d76;
    --ok-bg: #e7f8f1;
    --bad: #e5484d;
    --bad-bg: #fdeeee;
    --warn: #d97706;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(16, 24, 40, .06);
    --shadow-sm: 0 2px 8px rgba(16, 24, 40, .05);
    --sidebar-w: 248px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

svg {
    display: block;
}

/* ---------------- 布局 ---------------- */

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    padding: 22px 16px 16px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(120% 60% at 0% 0%, rgba(124, 58, 237, .35), transparent 60%),
        radial-gradient(100% 50% at 100% 100%, rgba(79, 70, 229, .30), transparent 55%),
        linear-gradient(180deg, #10162b 0%, #141a33 50%, #101429 100%);
    color: #e6e9f5;
    z-index: 60;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 2px 8px 22px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #a855f7);
    box-shadow: 0 8px 18px rgba(99, 102, 241, .45);
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .5px;
}

.brand-text b {
    display: block;
    font-size: 15.5px;
    letter-spacing: .3px;
    color: #fff;
}

.brand-text span {
    display: block;
    font-size: 11px;
    color: #8f9bbd;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.nav-label {
    font-size: 11px;
    color: #7784a8;
    letter-spacing: 1.2px;
    padding: 6px 12px 8px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #aeb9d6;
    font-size: 14px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-item svg {
    width: 19px;
    height: 19px;
    opacity: .85;
}

.nav-item:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, .95), rgba(139, 92, 246, .92));
    color: #fff;
    box-shadow: 0 8px 20px rgba(76, 70, 229, .35);
}

.nav-item.active svg {
    opacity: 1;
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    flex: 0 0 auto;
}

.who {
    min-width: 0;
    flex: 1;
}

.who b {
    display: block;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.who span {
    font-size: 11px;
    color: #8f9bbd;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #aeb9d6;
    transition: .18s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    background: rgba(243, 245, 251, .86);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(223, 230, 242, .7);
}

.burger {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid var(--line);
    place-items: center;
    color: var(--ink-2);
}

.burger svg {
    width: 20px;
    height: 20px;
}

.crumb {
    font-size: 15px;
    font-weight: 650;
    color: var(--ink-2);
    letter-spacing: .2px;
}

.top-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.host-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--sub);
    font-size: 12px;
    max-width: 320px;
}

.host-chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(15, 157, 118, .12);
    flex: 0 0 auto;
}

.host-chip code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content {
    padding: 26px 28px 56px;
    width: 100%;
}

/* ---------------- 页头 ---------------- */

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-head h1 {
    margin: 0;
    font-size: 23px;
    letter-spacing: -.2px;
    font-weight: 750;
}

.page-head p {
    margin: 6px 0 0;
    color: var(--sub);
    font-size: 13px;
}

.page-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------------- 按钮 ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 600;
    transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
}

.btn-primary:hover {
    box-shadow: 0 10px 24px rgba(79, 70, 229, .36);
}

.btn-light {
    background: #fff;
    border: 1px solid var(--line-2);
    color: var(--ink-2);
}

.btn-light:hover {
    background: #f7f8fd;
}

.btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #e11d48);
    box-shadow: 0 8px 18px rgba(225, 29, 72, .22);
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: .6;
    pointer-events: none;
}

/* ---------------- 卡片 / 统计 ---------------- */

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.stat {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat .ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.stat .ico svg {
    width: 19px;
    height: 19px;
}

.ico-indigo {
    background: var(--brand-soft);
    color: var(--brand);
}

.ico-green {
    background: var(--ok-bg);
    color: var(--ok);
}

.ico-gray {
    background: #f1f4fa;
    color: #8595ad;
}

.stat b {
    display: block;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.3px;
}

.stat span {
    font-size: 12px;
    color: var(--sub);
}

/* ---------------- 连接信息条 ---------------- */

.endpoint-card {
    padding: 16px 18px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    align-items: center;
    background: linear-gradient(120deg, #ffffff 0%, #fbfaff 60%, #f6f4ff 100%);
}

.endpoint-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.endpoint-item .tag {
    font-size: 11.5px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 7px;
    padding: 3px 8px;
    white-space: nowrap;
}

.endpoint-item code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--ink-2);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 46vw;
}

.mini-copy {
    height: 26px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 11.5px;
    color: var(--sub);
    background: #fff;
    border: 1px solid var(--line);
    transition: .15s;
    flex: 0 0 auto;
}

.mini-copy:hover {
    color: var(--brand);
    border-color: #c9c6ff;
    background: var(--brand-soft);
}

/* ---------------- 列表 ---------------- */

.list-card {
    overflow: hidden;
}

.thead,
.trow {
    display: grid;
    grid-template-columns: 44px minmax(150px, 1.35fr) minmax(210px, 2fr) 90px 74px 104px 112px;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
}

.thead {
    height: 44px;
    font-size: 12px;
    color: #8b97ab;
    background: #fafbfe;
    border-bottom: 1px solid var(--line);
}

.trow {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    transition: background .16s;
}

.trow:last-child {
    border-bottom: 0;
}

.trow:hover {
    background: #fbfcff;
}

.trow .avatar {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 14px;
    background: linear-gradient(135deg, #eef0ff, #f3e8ff);
    color: var(--brand);
    border: 1px solid #e4e3ff;
}

.nm {
    min-width: 0;
}

.nm .line1 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nm b {
    font-size: 14.5px;
    font-weight: 650;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    color: #5b53d6;
    background: #f0efff;
    border-radius: 6px;
    padding: 2px 7px;
    flex: 0 0 auto;
}

.nm small {
    display: block;
    font-size: 12px;
    color: #93a0b4;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.url code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #4a5a72;
    background: #f7f9fd;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.metas {
    display: contents;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}

.pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    font-style: normal;
}

.pill.ok {
    color: var(--ok);
    background: var(--ok-bg);
}

.pill.off {
    color: #8d99ac;
    background: #f1f4fa;
}

.pill.ok i {
    box-shadow: 0 0 0 3px rgba(15, 157, 118, .15);
}

.pill.run {
    color: #2563eb;
    background: #e8effd;
}

.pill.run i {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.pill.idle {
    color: #8d99ac;
    background: #f1f4fa;
}

.steps,
.time {
    font-size: 12.5px;
    color: var(--sub);
    white-space: nowrap;
}

.acts {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.acts button {
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--sub);
    border: 1px solid transparent;
    transition: .15s;
}

.acts button:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.acts button.del:hover {
    color: var(--bad);
    background: var(--bad-bg);
}

/* ---------------- 数据列表 ---------------- */

.head-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-danger-ghost {
    background: #fff;
    border: 1px solid #f3c9cb;
    color: var(--bad);
}

.btn-danger-ghost:hover {
    background: var(--bad-bg);
}

.btn-danger-ghost[disabled] {
    opacity: .45;
    pointer-events: none;
}

.ico-red {
    background: var(--bad-bg);
    color: var(--bad);
}

#data-page .thead,
#data-page .trow {
    grid-template-columns: 44px 56px 80px minmax(110px, 1.1fr) 80px minmax(160px, 1.5fr) minmax(90px, .9fr) 78px 104px 104px;
}

.check {
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
    cursor: pointer;
    display: block;
}

#data-page .rid {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: #5b53d6;
    background: #f0efff;
    border-radius: 7px;
    padding: 3px 8px;
    justify-self: start;
}

#data-page .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: #4a5a72;
}

#data-page .txt {
    font-size: 13px;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

#data-page .time {
    font-size: 12px;
    color: #93a0b4;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pill.bad {
    color: var(--bad);
    background: var(--bad-bg);
}

.pill.bad i {
    box-shadow: 0 0 0 3px rgba(229, 72, 77, .13);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}

select.input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 36px;
}

/* 转发规则编辑 */
.btn-sm {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.rule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.rule-row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(160px, 2fr) 28px;
    gap: 8px;
    align-items: center;
}

.rule-row .input {
    height: 38px;
}

.rule-del {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 9px;
    background: #F3E4E2;
    color: #C2483A;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.rule-del:hover {
    background: #EBD3D0;
}

.rule-tip {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--ink-3, #8A91A0);
}

.rule-tip code {
    padding: 1px 6px;
    border-radius: 6px;
    background: #EEF0F4;
    font-size: 11px;
    color: #4A5568;
}

@media (max-width: 560px) {
    .rule-row {
        grid-template-columns: 1fr 28px;
        grid-template-areas:
            "param del"
            "url url";
    }

    .rule-row .rule-param { grid-area: param; }
    .rule-row .rule-url { grid-area: url; }
    .rule-row .rule-del { grid-area: del; justify-self: end; }
}

/* 空状态 */

.empty {
    padding: 62px 20px 66px;
    text-align: center;
}

.empty .art {
    width: 66px;
    height: 66px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef0ff, #faf0ff);
    color: var(--brand);
}

.empty .art svg {
    width: 28px;
    height: 28px;
}

.empty h3 {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 650;
}

.empty p {
    margin: 0 0 18px;
    color: var(--sub);
    font-size: 13px;
}

/* ---------------- 占位页 ---------------- */

.placeholder {
    padding: 74px 28px;
    text-align: center;
}

.placeholder .art {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef0ff, #f6efff);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px #e9e7ff;
}

.placeholder .art svg {
    width: 30px;
    height: 30px;
}

.placeholder h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.placeholder p {
    margin: 0 auto;
    max-width: 420px;
    color: var(--sub);
    font-size: 13.5px;
}

/* ---------------- 弹窗 ---------------- */

.mask {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .45);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s;
}

.mask.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: min(460px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 24px 24px 20px;
    box-shadow: 0 30px 70px rgba(16, 24, 40, .28);
    transform: translateY(12px) scale(.985);
    transition: transform .2s cubic-bezier(.2, .8, .3, 1);
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.mask.show .modal {
    transform: none;
}

.modal h3 {
    margin: 0 0 4px;
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.modal .sub {
    margin: 0 0 18px;
    color: var(--sub);
    font-size: 12.5px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    font-size: 12.5px;
    color: var(--ink-2);
    font-weight: 600;
    margin-bottom: 6px;
}

.field .hint {
    font-size: 11.5px;
    color: #98a4b6;
    font-weight: 400;
    margin-left: 6px;
}

.input,
.prefix-input {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: #fbfcff;
    padding: 0 13px;
    font-size: 14px;
    color: var(--ink);
    font-family: inherit;
    outline: none;
    transition: border-color .16s, box-shadow .16s, background .16s;
}

.input::placeholder {
    color: #a7b2c3;
}

.input:focus,
.prefix-input:focus {
    border-color: #a9a2ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

.prefix-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: #fbfcff;
    overflow: hidden;
    transition: border-color .16s, box-shadow .16s, background .16s;
}

.prefix-wrap:focus-within {
    border-color: #a9a2ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}

.prefix-wrap .prefix {
    padding: 0 12px;
    height: 40px;
    display: flex;
    align-items: center;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13.5px;
    color: #6b64dd;
    background: #f3f2ff;
    border-right: 1px solid var(--line);
}

.prefix-input {
    border: 0;
    background: transparent;
    height: 40px;
    box-shadow: none !important;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 20px;
}

.modal-actions .btn {
    height: 40px;
    min-width: 86px;
}

/* 一键提现结果：一行一个账号，长列表可滚动 */
.wa-result {
    margin-top: 14px;
    max-height: 52vh;
    overflow-y: auto;
    white-space: pre-line;
    line-height: 1.9;
    font-size: 13px;
    color: var(--ink-2);
    word-break: break-all;
}

.form-error {
    display: none;
    margin: 0 0 10px;
    font-size: 12.5px;
    color: var(--bad);
    background: var(--bad-bg);
    border-radius: 9px;
    padding: 8px 11px;
}

.form-error.show {
    display: block;
}

.tip {
    display: flex;
    gap: 9px;
    background: #f7f7ff;
    border: 1px solid #ece9ff;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    color: #6a638f;
    line-height: 1.6;
}

.tip svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--brand);
}

/* ---------------- Toast ---------------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translate(-50%, 16px);
    background: rgba(16, 24, 40, .92);
    color: #fff;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .28);
    opacity: 0;
    pointer-events: none;
    transition: .22s ease;
    z-index: 200;
    max-width: calc(100vw - 40px);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast.bad {
    background: rgba(190, 30, 45, .95);
}

/* ---------------- 登录 ---------------- */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(55% 45% at 12% 8%, rgba(99, 102, 241, .20), transparent 70%),
        radial-gradient(45% 40% at 88% 12%, rgba(168, 85, 247, .18), transparent 70%),
        radial-gradient(50% 45% at 70% 95%, rgba(56, 189, 248, .14), transparent 70%),
        #f4f5fb;
    position: relative;
    overflow: hidden;
}

.login-body::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -160px;
    top: -200px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, .12);
    box-shadow: 0 0 0 70px rgba(124, 58, 237, .04),
        0 0 0 150px rgba(99, 102, 241, .035);
}

.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    justify-content: center;
    margin-bottom: 22px;
}

.login-brand .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.login-brand b {
    font-size: 17px;
    letter-spacing: .4px;
}

.login-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 24px;
    padding: 30px 28px 26px;
    box-shadow: 0 26px 60px rgba(30, 33, 68, .12);
    backdrop-filter: blur(10px);
}

.login-card h1 {
    margin: 0 0 6px;
    font-size: 21px;
    letter-spacing: -.3px;
}

.login-card .welcome {
    margin: 0 0 22px;
    color: var(--sub);
    font-size: 12.5px;
}

.login-card .field label {
    font-size: 12.5px;
}

.pwd-wrap {
    position: relative;
}

.pwd-wrap .input {
    padding-right: 46px;
}

.pwd-eye {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 32px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #98a4b6;
}

.pwd-eye:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.pwd-eye svg {
    width: 17px;
    height: 17px;
}

.login-card .btn-primary {
    height: 44px;
    border-radius: 12px;
    margin-top: 6px;
    font-size: 14.5px;
}

.login-foot {
    text-align: center;
    margin-top: 18px;
    color: #9aa5b8;
    font-size: 11.5px;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
    .thead,
    .trow {
        grid-template-columns: 44px minmax(140px, 1.3fr) minmax(190px, 1.8fr) 86px 70px 112px;
    }

    .thead span:nth-child(6),
    .metas .time {
        display: none;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-102%);
        transition: transform .26s cubic-bezier(.2, .8, .3, 1);
        width: 264px;
        box-shadow: 20px 0 50px rgba(16, 24, 40, .2);
    }

    body.drawer-open .sidebar {
        transform: none;
    }

    .scrim {
        position: fixed;
        inset: 0;
        background: rgba(16, 24, 40, .4);
        z-index: 55;
        opacity: 0;
        visibility: hidden;
        transition: .22s;
    }

    body.drawer-open .scrim {
        opacity: 1;
        visibility: visible;
    }

    .main {
        margin-left: 0;
    }

    .burger {
        display: grid;
    }

    .topbar {
        height: 60px;
        padding: 0 16px;
    }

    .host-chip {
        display: none;
    }

    .content {
        padding: 18px 16px 44px;
    }

    .page-head {
        align-items: center;
    }

    .page-head h1 {
        font-size: 20px;
    }

    .page-head p {
        margin-top: 4px;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 9px;
    }

    .stat {
        padding: 12px 13px;
        gap: 9px;
        border-radius: 15px;
    }

    .stat .ico {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .stat b {
        font-size: 17px;
    }

    .stat span {
        font-size: 11px;
    }

    .endpoint-card {
        padding: 13px 14px;
        gap: 10px;
        border-radius: 16px;
    }

    .endpoint-item {
        width: 100%;
    }

    .endpoint-item code {
        max-width: none;
        flex: 1;
        font-size: 11.5px;
    }

    .list-card {
        background: transparent;
        border: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .thead {
        display: none;
    }

    .trow {
        display: grid;
        grid-template-columns: 40px 1fr auto;
        gap: 10px 12px;
        padding: 14px;
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow-sm);
    }

    .trow:last-child {
        border-bottom: 1px solid var(--line);
    }

    .trow .avatar {
        width: 40px;
        height: 40px;
        grid-column: 1;
        grid-row: 1;
    }

    .nm {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .url {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .url code {
        font-size: 11.5px;
        padding: 5px 9px;
    }

    .metas {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
        align-items: center;
        gap: 12px;
        padding-top: 2px;
    }

    .metas .time {
        display: block;
        margin-left: auto;
        font-size: 12px;
        color: #9aa5b8;
    }

    .acts {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
    }

    .acts button {
        padding: 0 8px;
    }
}

@media (max-width: 560px) {
    .stats {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 11px;
    }

    .stat .ico {
        display: none;
    }

    .page-head .btn {
        height: 38px;
        padding: 0 14px;
    }

    .modal {
        border-radius: 20px;
        padding: 20px 18px 16px;
    }

    .login-card {
        padding: 24px 20px 22px;
        border-radius: 20px;
        background: #fff;
    }
}

/* ---------------- 数据列表 · 响应式 ---------------- */

@media (max-width: 1080px) {
    #data-page .thead,
    #data-page .trow {
        grid-template-columns: 40px 52px 72px minmax(90px, 1fr) 72px minmax(130px, 1.3fr) minmax(80px, .8fr) 74px 92px 92px;
    }

    /* 覆盖自动化页在窄屏隐藏第 6 列表头的规则 */
    #data-page .thead span:nth-child(6) {
        display: block;
    }
}

@media (max-width: 900px) {
    .head-btns {
        width: 100%;
    }

    .head-btns .btn {
        flex: 1;
    }

    #data-page .thead {
        display: none;
    }

    #data-page .trow {
        grid-template-columns: 30px 1fr auto;
        grid-template-areas:
            "check id code"
            "name name name"
            "user user uid"
            "url url url"
            "key key key"
            "success created";
        gap: 8px 10px;
        padding: 13px 14px;
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow-sm);
    }

    #data-page .trow > span:nth-child(1) { grid-area: check; display: flex; align-items: center; }
    #data-page .trow .rid { grid-area: id; justify-self: start; }
    #data-page .trow > span:nth-child(8) { grid-area: code; justify-self: end; }
    #data-page .trow > span:nth-child(4) { grid-area: name; white-space: normal; }
    #data-page .trow > span:nth-child(3) { grid-area: user; }
    #data-page .trow > span:nth-child(5) { grid-area: uid; justify-self: end; }
    #data-page .trow > span:nth-child(6) { grid-area: url; }
    #data-page .trow > span:nth-child(7) { grid-area: key; }
    #data-page .trow > span:nth-child(9) { grid-area: success; }
    #data-page .trow > span:nth-child(10) { grid-area: created; text-align: right; }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    #data-page .trow {
        grid-template-columns: 30px 1fr auto;
    }
}

/* ---------------- 用户数据 · 添加用户弹窗 ---------------- */

.modal-adduser {
    width: min(400px, 100%);
    text-align: center;
    padding-top: 30px;
}

.modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--sub);
    background: #f2f4fa;
    transition: background .15s ease, color .15s ease;
}

.modal-x svg {
    width: 15px;
    height: 15px;
}

.modal-x:hover {
    background: #e8ecf6;
    color: var(--ink);
}

.modal-adduser {
    position: relative;
}

/* 提现授权弹窗：关闭按钮定位在弹窗内右上角，底部按钮居中 */
.wauth-modal {
    position: relative;
}

.wauth-modal .modal-actions {
    justify-content: center;
}

.wauth-modal h3 {
    padding-right: 34px;
}

.au-title {
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: -.2px;
    margin-bottom: 18px;
}

.au-label {
    font-size: 12.5px;
    color: var(--sub);
    margin-bottom: 9px;
}

/* 添加账号弹窗：两步（先选服务器 → 再选项目） */
.au-step[hidden] { display: none; }

.au-back-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -8px 0 14px;
    min-width: 0;
    padding-right: 24px;   /* 不被右上角关闭按钮压住 */
}

.au-back {
    flex: none;
    border: 0;
    background: transparent;
    padding: 2px 4px;
    border-radius: 6px;
    font: inherit;
    font-size: 12.5px;
    color: var(--sub);
    cursor: pointer;
    transition: color .15s ease;
}

.au-back:hover { color: var(--brand); }

.au-srv-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    color: var(--sub);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

/* 账号管理 · 代理设置弹窗 */
.proxy-field { margin: 4px 0 6px; }
.proxy-field .au-label { display: block; }
.proxy-field .input { width: 100%; margin-bottom: 8px; }

/* 列表标题 + 「添加服务器」按钮同一行 */
.proxy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 8px;
}
.proxy-head .au-label { margin: 0; }
.proxy-head .btn-sm { flex: none; }
.proxy-head .btn[hidden] { display: none; }
.proxy-head[hidden] { display: none; }

/* 点「添加服务器」后展开的输入区 */
.proxy-add {
    margin: 0 0 10px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.proxy-add .input { width: 100%; margin-bottom: 8px; }
.proxy-add-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.proxy-list {
    max-height: 180px;
    overflow-y: auto;
    margin: 4px 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.proxy-list:empty { display: none; }
.proxy-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}
.proxy-item + .proxy-item { border-top: 1px solid var(--line); }
.proxy-kind {
    flex: none;
    font-size: 11px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--sub);
}
.proxy-kind.k-url { color: var(--primary); }
.proxy-kind.k-direct { color: var(--ok); background: var(--ok-bg); }
.proxy-info {
    flex: 1;
    min-width: 0;
}
.proxy-info b {
    display: block;
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.proxy-info em {
    display: block;
    font-style: normal;
    font-size: 11.5px;
    color: var(--sub);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.proxy-list-label { display: block; margin-top: 2px; }
.proxy-del {
    flex: none;
    border: 0;
    background: none;
    color: #e5484d;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
}
.proxy-none { padding: 14px 10px; text-align: center; font-size: 12.5px; color: var(--sub); }
.proxy-keep { flex: none; font-size: 11.5px; color: var(--sub); padding: 2px 4px; }

/* 添加账号弹窗 · 未添加代理时的提示条 */
.au-noproxy {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(229, 72, 77, .08);
    color: #e5484d;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: left;
}

.au-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 12px;
    margin-bottom: 18px;
}

.au-tab {
    width: 100%;
    padding: 9px 6px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    background: #f2f4fa;
    transition: background .15s ease, color .15s ease;
}

.au-tab:hover {
    background: #e8ecf6;
}

.au-tab.active {
    background: var(--brand);
    color: #fff;
}

/* 从左到右、从上到下按 1 2 3 / 4 5 6 排列（不足一行时靠左，不居中） */
.au-tabs .au-tab { grid-column: auto; }

/* 专属 UA 不在弹窗展示 */
.au-step .au-field[hidden] { display: none; }

.au-qr-wrap {
    margin-bottom: 14px;
}

.au-qr {
    width: 208px;
    height: 208px;
    margin: 0 auto 10px;
    border-radius: 16px;
    background: #f2f4fa;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.au-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.au-qr img[hidden] {
    display: none;
}

.au-qr-holder {
    font-size: 13px;
    color: var(--sub);
}

.au-qr-tip {
    font-size: 12.5px;
    color: var(--sub);
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.au-wechat {
    color: var(--ok);
    font-weight: 600;
}

.au-field {
    margin-bottom: 12px;
}

/* 添加账号 · 专属 UA 只读展示（长串单行省略，点一下可看全） */
.au-ua {
    font-size: 12px;
    color: var(--sub);
    background: #f7f9fd;
    cursor: text;
    text-overflow: ellipsis;
}

.au-ua:focus {
    border-color: var(--line-2);
    background: #f7f9fd;
    box-shadow: none;
}

.au-submit {
    width: 100%;
    height: 42px;
    margin-bottom: 16px;
}

/* 领赏吖 / 柚子不用点「确定」（扫码后自动登录）：hidden 要对 .btn 生效必须显式关掉 display */
.au-submit[hidden] { display: none; }

.au-tutorial {
    width: 100%;
    height: 170px;
    border-radius: 14px;
    background: #f2f4fa;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.au-tutorial img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.au-tutorial-holder {
    font-size: 13px;
    color: var(--sub);
}

@media (max-width: 560px) {
    .modal-adduser {
        width: min(360px, 100%);
        padding-top: 26px;
    }

    .au-qr {
        width: 180px;
        height: 180px;
    }
}

/* 教程图片 · 放大查看 */

.au-tutorial-label {
    font-size: 11.5px;
    color: var(--sub);
    text-align: center;
    margin-bottom: 6px;
    cursor: default;
}

.au-tutorial {
    cursor: zoom-in;
    transition: box-shadow .2s ease;
}

.au-tutorial:hover {
    box-shadow: 0 4px 16px rgba(47, 111, 237, .10);
}

.au-tutorial.zoom {
    position: fixed;
    inset: 0;
    z-index: 10050;
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    background: rgba(22, 24, 32, .88);
    cursor: zoom-out;
    box-shadow: none;
}

.au-tutorial.zoom img {
    width: auto;
    height: auto;
    max-width: 94vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
}

.au-tutorial.zoom .au-tutorial-holder {
    color: #e8ebf2;
}

.au-tutorial img[hidden] {
    display: none;
}

/* ---------------- 系统配置 ---------------- */

.config-card {
    max-width: none;
    padding: 18px 20px;
}

.config-card + .config-card {
    margin-top: 16px;
}

.config-group-title {
    max-width: none;
    margin: 26px 0 4px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.config-group-sub {
    max-width: none;
    margin: 0 0 14px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--sub);
}

.config-block-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.2px;
    margin-bottom: 14px;
}

.config-block-sub {
    font-size: 12.5px;
    color: var(--sub);
    margin: -8px 0 16px;
}

.config-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.config-actions .btn {
    min-width: 96px;
}

/* 代理设置 */

.field-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-inline label {
    margin-bottom: 0;
}

.field-inline-note {
    font-size: 12.5px;
    color: var(--sub);
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.proxy-result {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 9px;
    background: var(--ok-bg);
    color: var(--ok);
    font-size: 12.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.proxy-result[hidden] {
    display: none;
}

/* ---------------- 用户数据列表 ---------------- */

.ud-card .thead,
.ud-card .trow {
    grid-template-columns: minmax(150px, 1.6fr) 84px 94px .75fr 1.1fr .8fr 1.9fr;
}

@media (max-width: 900px) {
    .ud-card .thead {
        display: none;
    }

    .ud-card .trow {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px 16px;
    }

    .ud-card .trow > span::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        color: #8b97ab;
        margin-bottom: 2px;
    }

    /* 操作：整行铺满，三个按钮同一行 */
    .ud-card .trow > span[data-label="操作"] {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

    .ud-card .trow > span[data-label="操作"]::before {
        display: none;
    }

    .ud-card .trow > span[data-label="操作"] .btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* ---------------- 金币明细 ---------------- */

.cd-card .thead,
.cd-card .trow {
    grid-template-columns: 1.4fr 1fr .8fr .9fr;
}

.cd-delta {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.cd-delta.cd-plus {
    color: #e2453d;
}

.cd-delta.cd-minus {
    color: #1f9d76;
}

@media (max-width: 900px) {
    .cd-card .trow {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px 16px;
    }

    .cd-card .trow > span::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        color: #8b97ab;
        margin-bottom: 2px;
    }
}

/* 胶囊开关 */

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #dfe3ee;
    transition: background .2s ease;
}

.switch .slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 22, 43, .18);
    transition: transform .2s ease;
}

.switch input:checked + .slider {
    background: var(--brand);
}

.switch input:checked + .slider::before {
    transform: translateX(18px);
}

/* 类型标签筛选 */

.ud-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ud-filter-bar .ud-tabs {
    margin-bottom: 0;
    flex-wrap: wrap;
}

/* 筛选行右侧的按钮组（设置视图 / 运行日志） */
.ud-filter-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

/* /api/lx/start 运行日志：扫码结果标签 */
.lxrun-login {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.5;
}

.lxrun-login.ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.lxrun-login.fail {
    background: var(--bad-bg);
    color: var(--bad);
}

.lxrun-login.wait {
    background: #eef2f8;
    color: #6b7a90;
}

/* 右侧服务器筛选：和标签同一行，胶囊样式 */
.ud-srv-pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #8b97ab;
    flex: none;
}

.ud-srv-pick-sel {
    height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    background: var(--card);
    color: #5a6579;
    font: inherit;
    font-size: 13px;
    box-shadow: 0 1px 4px rgba(16, 22, 43, .07);
    cursor: pointer;
    outline: none;
    max-width: 200px;
}

.ud-srv-pick-sel:hover {
    color: var(--brand);
}

.ud-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.ud-tab {
    border: none;
    background: #fff;
    color: #5a6579;
    font-size: 13px;
    padding: 7px 18px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(16, 22, 43, .07);
    transition: all .15s ease;
}

.ud-tab:hover {
    color: var(--brand);
}

.ud-tab.active {
    background: var(--brand);
    color: #fff;
}

.ud-empty {
    text-align: center;
    color: #8b97ab;
    font-size: 13px;
    padding: 26px 0 30px;
}

/* 进入页面自动刷新账号的提示条 */
.ud-sync {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #5a6579;
    box-shadow: 0 1px 4px rgba(16, 22, 43, .07);
}

.ud-sync[hidden] {
    display: none;
}

.ud-sync-spin {
    width: 14px;
    height: 14px;
    flex: none;
    border-radius: 50%;
    border: 2px solid #e6eaf2;
    border-top-color: var(--brand);
    animation: ud-sync-spin .7s linear infinite;
}

.ud-sync-spin.done {
    animation: none;
    border-color: #1f9d76;
    position: relative;
}

.ud-sync-spin.done::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0px;
    width: 4px;
    height: 7px;
    border: solid #1f9d76;
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}

@keyframes ud-sync-spin {
    to { transform: rotate(360deg); }
}

/* 名称旁类型徽标 */

.ud-lx {
    display: inline-block;
    vertical-align: 1px;
    margin-left: 6px;
    font-style: normal;
    font-size: 10px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef1f8;
    color: #7a8699;
}

.ud-lx.lx-kele {
    background: #efe9ff;
    color: #7a5af8;
}

.ud-lx.lx-xiaoyu {
    background: #fff3cc;
    color: #a97700;
}

.ud-lx.lx-lingshang {
    background: #e3f6ec;
    color: #107a45;
}

.ud-lx.lx-youzi {
    background: #ffe6d5;
    color: #bf5a12;
}

.ud-lx.lx-manxi {
    background: #e2ecff;
    color: #1f5ad6;
}

.ud-lx.lx-xiaolu {
    background: #f0e6ff;
    color: #6b33c9;
}

.ud-lx.lx-cailai {
    background: #fff3d1;
    color: #96660a;
}

/* 服务器标签：账号接口请求走的服务器（本地 / 转发服务器名），红色 */

.ud-srv {
    display: inline-block;
    vertical-align: 1px;
    margin-left: 5px;
    font-style: normal;
    font-size: 10px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    background: #ffe1e1;
    color: #d64545;
    white-space: nowrap;
}

.ud-card .trow[hidden] {
    display: none;
}

/* 任务状态标签 */

.ud-task {
    display: inline-block;
    vertical-align: 1px;
    margin-left: 5px;
    font-style: normal;
    font-size: 10px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
}

.ud-task.has {
    background: #e3f6ec;
    color: #18915c;
}

.ud-task.no {
    background: #ffe3ef;
    color: #d6336c;
}

/* 下次自动检测倒计时标签（空闲时显示；执行中由「执行中」标签替代） */

.ud-cd {
    display: inline-block;
    vertical-align: 1px;
    margin-left: 5px;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    font-size: 10px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e8f0fe;
    color: #1d6fd4;
}

/* 自动任务执行中标签 */

.ud-run {
    display: inline-block;
    vertical-align: 1px;
    margin-left: 5px;
    font-style: normal;
    font-size: 10px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff1e0;
    color: #c2680a;
    animation: ud-run-pulse 1.6s ease-in-out infinite;
}

.ud-run[hidden] {
    display: none;
}

@keyframes ud-run-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* 金币旁查看明细小按钮 */

.ud-coins {
    margin-right: 8px;
}

.btn-detail {
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    color: var(--brand);
    cursor: pointer;
    vertical-align: 1px;
}

.btn-detail:hover {
    text-decoration: underline;
}

/* ---------------- 终端日志 ---------------- */

.log-panel {
    overflow: hidden;
}

.log-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #f8faff;
    border-radius: var(--radius) var(--radius) 0 0;
}

.log-switch-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-switch-text {
    font-size: 13px;
    color: var(--sub);
}

.log-switch-text.on {
    color: var(--ok);
}

.log-switch-text.on::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--ok);
    vertical-align: 1px;
    animation: logPulse 1.4s ease-in-out infinite;
}

@keyframes logPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

.log-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.log-count {
    font-size: 12px;
    color: var(--sub);
    font-variant-numeric: tabular-nums;
}

.log-body {
    padding: 16px 20px 20px;
    max-height: calc(100vh - 310px);
    min-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-body::-webkit-scrollbar {
    width: 8px;
}

.log-body::-webkit-scrollbar-thumb {
    background: #dde3f0;
    border-radius: 999px;
}

.log-empty {
    margin: auto;
    color: #8b97ab;
    font-size: 13px;
    text-align: center;
    padding: 40px 0;
}

.log-item {
    background: #fbfcff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: inset 0 0 0 1px #eef1f8;
}

.log-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.log-time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #8b97ab;
}

.log-step {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
}

.log-status {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}

.log-status.ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.log-status.bad {
    background: var(--bad-bg);
    color: var(--bad);
}

.log-cost {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    color: #8b97ab;
    margin-left: auto;
}

.log-proxy {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4a54a8;
}

.log-line {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 4px;
}

.log-method {
    flex: 0 0 auto;
    color: var(--brand-2);
    font-weight: 600;
}

.log-url {
    color: var(--ink-2);
    word-break: break-all;
}

.log-block {
    margin-top: 8px;
}

.log-block-title {
    font-size: 11px;
    color: #97a2b6;
    margin-bottom: 3px;
}

.log-pre {
    margin: 0;
    padding: 8px 10px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px #eef1f8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-2);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 220px;
    overflow: auto;
}

.log-pre.log-resp {
    max-height: 300px;
    color: var(--ink);
}

.log-pre.log-err {
    color: var(--bad);
    background: #fffafa;
}

@media (max-width: 900px) {
    .log-bar {
        padding: 12px 14px;
    }

    .log-body {
        padding: 12px 14px 16px;
        max-height: calc(100vh - 330px);
    }

    .log-pre {
        max-height: 180px;
    }
}

/* ---------------- 服务器转发 ---------------- */

#sv-page .thead,
#sv-page .trow {
    grid-template-columns: 56px minmax(140px, 1fr) minmax(240px, 2fr) 90px;
}

#sv-page {
    max-width: 860px;
}

.sv-url {
    word-break: break-all;
    font-size: 12.5px;
    color: var(--sub);
}

.sv-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--sub);
    font-size: 13px;
}

.sv-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border-top: 1px solid var(--line);
}

.sv-hint {
    font-size: 12px;
    color: var(--sub);
    margin-right: auto;
}

.sv-on {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
    cursor: pointer;
}

/* ---------------- 首次登录绑定邮箱（不可关闭的居中弹窗） ---------------- */

.bindmail {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .45);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 130;
}

.bindmail.show {
    display: flex;
}

.bindmail-card {
    width: min(400px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 24px 24px 20px;
    box-shadow: 0 30px 70px rgba(16, 24, 40, .28);
}

.bindmail-card h3 {
    margin: 0;
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: -.2px;
    text-align: center;
}

.bindmail-sub {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--sub);
    text-align: center;
}

.bindmail-field {
    margin-top: 18px;
}

.bindmail-tip {
    margin-top: 8px;
    font-size: 12.5px;
    color: #e5484d;
}

.bindmail-btn {
    width: 100%;
    height: 44px;
    margin-top: 18px;
}

/* ---------------- 用户数据 · 卡片视图（每个账号一个小窗口） ---------------- */

.ud-card {
    --tile-w: 360px;
    --tile-h: 440px;
    --tile-r: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile-w)), 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    max-width: none;
    width: 100%;
    background: none;
    border: 0;
    box-shadow: none;
    align-items: start;
}

.ud-card .ud-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    height: var(--tile-h);
    padding: 16px;
    background: #fff;
    border: 1px solid #e9eef6;
    border-radius: var(--tile-r);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

/* 还没有日志时：卡片保持统一高度，提示文字在日志区居中，不留"顶部一行 + 下面一大片空" */
.ud-card .ud-tile.is-empty .ud-term {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ud-card .ud-tile:hover {
    border-color: #dbe4f2;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
}

/* 头部：昵称/id/服务器 + 金币 */

.ud-tile-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 5px;
    flex: none;
    min-width: 0;
}

/* 第二行整行给 id / 服务器，宽度不够就换行显示完整，不做省略 */
.ud-tile-name {
    grid-column: 1;
    grid-row: 1;
}

.ud-tile-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ud-tile-name b {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ud-tile-name .ud-lx {
    margin-left: 0;
    flex: none;
}

.ud-tile-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 10px;
    min-width: 0;
    font-size: 11.5px;
    color: #98a2b3;
}

.ud-meta-i {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.45;
}

.ud-meta-i svg {
    width: 12px;
    height: 12px;
    flex: none;
    opacity: .55;
}

.ud-tile-coins {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    line-height: 1.2;
    text-align: right;
}

.ud-tile-coins .ud-coins {
    font-size: 23px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.3px;
    margin-right: 0;
}

/* 阅读成功：金币数字发光闪烁一下（每成功一次触发一次） */
@keyframes udCoinFlash {
    0%   { text-shadow: none; }
    30%  { color: #ffb020; text-shadow: 0 0 8px rgba(255,176,32,.95), 0 0 16px rgba(255,176,32,.55); }
    100% { text-shadow: none; }
}
.ud-coins.coin-flash {
    animation: udCoinFlash .9s ease-out 1;
}

.ud-tile-coins small {
    font-size: 10.5px;
    color: #98a2b3;
    letter-spacing: .2px;
}

/* 余额后面的「元」：小字，跟随基线对齐 */
.ud-coins-line {
    display: inline-flex;
    align-items: baseline;
}

.ud-tile-coins .ud-cny {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #98a2b3;
    letter-spacing: 0;
}

.ud-tile-state .btn-detail {
    margin-left: auto;
    flex: none;
    font-size: 11px;
    color: #97a2b4;
    white-space: nowrap;
}

.ud-tile-state .btn-detail:hover {
    color: var(--brand);
    text-decoration: none;
}

/* 状态行 */

.ud-tile-state {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 21px;
    flex: none;
    overflow: hidden;
}

.ud-tile-state .ud-task,
.ud-tile-state .ud-run,
.ud-tile-state .ud-cd {
    margin-left: 0;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 21px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-style: normal;
    vertical-align: baseline;
}

.ud-tile-state .ud-task::before,
.ud-tile-state .ud-run::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.ud-tile-state .ud-task.has {
    background: #e9f8f0;
    color: #12855a;
}

.ud-tile-state .ud-task.no {
    background: #f4f6fa;
    color: #8b96a9;
}

.ud-tile-state .ud-cd {
    background: #eef4ff;
    color: #3b6fe0;
    font-variant-numeric: tabular-nums;
}

.ud-tile-state .ud-run {
    background: #fff4e6;
    color: #c2680a;
    animation: ud-run-pulse 1.6s ease-in-out infinite;
}

/* 拉新卡片：ip 到期时间贴在有任务 / 倒计时那一行的最右 */
.ud-tile-state .ud-expire {
    margin-left: auto;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    line-height: 1;
    font-style: normal;
    color: #8b97ab;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ud-tile-state .ud-expire svg {
    width: 12px;
    height: 12px;
    flex: none;
}

/* 终端日志面板 */

.ud-term {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 10px 12px;
    overflow: auto;
    background: #fafbfd;
    border: 1px solid #eef1f6;
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.8;
    color: #0a9e4f;
    white-space: pre-wrap;
    word-break: break-word;
    scrollbar-width: none;          /* 隐藏滚动条（仍可用滚轮滚动） */
    -ms-overflow-style: none;
}

.ud-term::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.ud-term-line {
    display: flex;
    gap: 8px;
    padding: 1px 0;
}

.ud-term-line .t {
    flex: none;
    color: #aab3c2;
    font-variant-numeric: tabular-nums;
}

.ud-term-line .m {
    min-width: 0;
}

.ud-term-line.ok .m {
    color: #0a9e4f;
}

.ud-term-line.bad .m {
    color: #d64545;
}

.ud-term-empty {
    color: #b3bbc9;
}

/* 底部：自动开关 + 操作 */

.ud-tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: none;
}

.ud-auto {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    cursor: pointer;
    user-select: none;
}

.ud-auto .switch {
    width: 38px;
    height: 22px;
    flex: none;
}

.ud-auto .switch .slider::before {
    width: 16px;
    height: 16px;
}

.ud-auto .switch input:checked + .slider::before {
    transform: translateX(16px);
}

.ud-auto-txt {
    font-size: 11.5px;
    color: #8b96a9;
    white-space: nowrap;
}

.ud-tile-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.ud-tile-foot .btn-sm {
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 999px;
    background: #f5f7fb;
    border: 1px solid transparent;
    color: #5b6678;
    box-shadow: none;
}

.ud-tile-foot .btn-sm:hover {
    background: #eef3ff;
    color: var(--brand);
}

.ud-tile-foot .btn-logout:hover {
    background: #fff1f1;
    color: #d64545;
}

/* 按钮进行中（提现 / 刷新 / 退出通用）：文字转为居中的加载圈，按钮尺寸完全不变 */
.ud-tile-foot .btn-sm.is-loading,
.ud-tile-foot .btn-sm.is-loading:hover {
    color: transparent !important;   /* 压过暗色主题与 hover 的文字色 */
    position: relative;
}

.ud-tile-foot .btn-sm.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 13px;
    height: 13px;
    border: 2px solid #8b98ad;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ud-wd-spin .7s linear infinite;
}

@keyframes ud-wd-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .ud-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ud-card .ud-tile {
        padding: 14px;
    }

    .ud-tile-name b {
        max-width: 52vw;
    }
}

/* 设置视图弹窗 */

.modal-view {
    width: 430px;
    max-width: calc(100vw - 32px);
}

.modal-view .sub {
    margin: 6px 0 18px;
}

.view-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.view-field label {
    width: 70px;
    flex: none;
    font-size: 13px;
    color: var(--ink-2);
}

.view-range {
    flex: 1 1 auto;
    min-width: 0;
    height: 4px;
    accent-color: var(--brand);
}

.view-field b {
    width: 36px;
    flex: none;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.view-field small {
    flex: none;
    font-size: 11px;
    color: var(--sub);
}

/* 窄屏：页头按钮换行，卡片内长 URL 强制折行 */
@media (max-width: 900px) {
    .page-head-actions {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .page-head-actions .btn {
        height: 34px;
        padding: 0 12px;
        font-size: 12.5px;
    }
}

.ud-term,
.ud-term-line .m {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 关键：grid / flex 子项默认 min-width:auto 会被长 URL 撑开，必须显式归零 */
.ud-card .ud-tile,
.ud-tile-head,
.ud-tile-id,
.ud-tile-foot,
.page-head-actions {
    min-width: 0;
}

/* 空状态：占满整行 */
.ud-card .ud-empty {
    grid-column: 1 / -1;
}

/* 隐藏标签：特异性要压过 .ud-tile-state .ud-run 等 */
.ud-tile-state [hidden] {
    display: none;
}

/* ---------------- 采集账号：按钮后跟采集端在线胶囊 ---------------- */

.ud-collect-bar {
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

/* 页头左侧的微信号分区（一级）：贴最左，比二级项目胶囊大一号 */
.ud-wx-head .ud-tabs {
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.ud-wx-head .ud-tab {
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
}

/* 顶部通栏里的采集胶囊：紧跟「账号管理」标题，小一号、右侧留出操作区 */
.ud-collect-topbar {
    flex: 1;
    margin-left: 2px;
    overflow: hidden;
}

.ud-collect-topbar .ud-collect-item {
    height: 26px;
    padding: 0 9px;
    font-size: 12px;
}

.ud-collect-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--card);
    font-size: 12.5px;
    color: var(--ink-2);
    white-space: nowrap;
}

.ud-collect-item b {
    font-weight: 600;
    color: var(--ink);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ud-collect-dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sub);
}

.ud-collect-item.is-on .ud-collect-dot {
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(15, 157, 118, .14);
}

.ud-collect-st {
    font-style: normal;
    font-size: 11px;
    line-height: 16px;
    padding: 0 6px;
    border-radius: 6px;
    background: var(--line);
    color: var(--sub);
}

.ud-collect-item.is-on .ud-collect-st {
    background: var(--ok-bg);
    color: var(--ok);
}

/* 没有采集账号时的空态胶囊：样式同离线胶囊，文字用次级色 */
.ud-collect-item.ud-collect-none {
    color: var(--sub);
}

/* 顶部汇总胶囊：在线数量（有在线＝绿色标签，没有＝灰色提示去登录） */
.ud-collect-item.ud-collect-sum {
    flex: none;
    font-weight: 600;
}

.ud-collect-sum .ud-collect-sum-txt {
    font-size: 12px;
    line-height: 1;
    color: var(--sub);
}

.ud-collect-item.ud-collect-sum.is-on {
    border-color: rgba(15, 157, 118, .42);
    background: var(--ok-bg);
}

.ud-collect-item.ud-collect-sum.is-on .ud-collect-sum-txt {
    color: var(--ok);
    font-weight: 600;
}

.ud-collect-item.ud-collect-sum.is-on .ud-collect-dot {
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(15, 157, 118, .16);
}

/* ---------------- 拉新数据：顶部筛选胶囊 + 五列列表 ---------------- */

.lx-tabs {
    flex-wrap: wrap;
}

.ud-tabs a.ud-tab {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.lx-list {
    overflow-x: auto;
}

.lx-list .thead,
.lx-list .trow {
    grid-template-columns: 80px minmax(110px, 1fr) minmax(140px, 1.4fr) 110px minmax(130px, 1fr) 168px;
    min-width: 736px;
}

.lx-list .trow .rid {
    font-variant-numeric: tabular-nums;
    color: #8b97ab;
}

/* 操作列：刷新 / 查看日志 */
.lx-op {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lx-log-link {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #2f6fed;
    font-size: 12px;
    text-decoration: none;
    transition: all .15s;
}

button.lx-log-link {
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

button.lx-log-link:disabled {
    color: #9aa8bd;
    border-color: #e6ebf4;
    background: #f7f9fc;
    cursor: default;
}

.lx-log-link:hover {
    border-color: #2f6fed;
    background: #f2f7ff;
}

.lx-muted {
    color: #b6bfcd;
    font-size: 12px;
}

/* 离线数据：多出「项目 / 代理ip / 到期时间」三列 */
.lx-list-off .thead,
.lx-list-off .trow {
    grid-template-columns: 70px 80px minmax(100px, 1fr) minmax(120px, 1.2fr) 90px minmax(150px, 1.1fr) 110px;
    min-width: 760px;
}

/* ---------------- 拉新数据 · 卡片视图（和 users 页同一套卡片） ---------------- */

.lx-card .ud-tile-foot {
    justify-content: flex-end;
}

.lx-card .btn-lx-exit:hover {
    background: #fff1f1;
    color: #d64545;
}

/* 离线卡片：金币与状态压暗，一眼看出不在跑 */
.lx-card .lx-tile-off .ud-tile-coins .ud-coins {
    color: #9aa8bd;
}

.lx-card .ud-tile.lx-tile-off {
    background: #fcfdff;
}

/* ---------------- 拉新页顶栏「扩大」：和前台用户页同一套（隐藏侧栏、主区吃满整宽） ---------------- */
html.is-expanded .side-toggle {
    display: none;
}

html.is-expanded .top-expand {
    background: var(--art-hover, #f2f5fb);
    color: var(--ink);
}

@media (max-width: 900px) {
    html.is-expanded .top-expand {
        padding: 0 10px;
    }
}

/* ---------------- 采集账号列表 ---------------- */
.ca-list .thead,
.ca-list .trow {
    grid-template-columns: 64px minmax(120px, 1fr) minmax(150px, 1.2fr) 96px 200px 120px;
}

.ca-list .ca-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: #8b97ab;
}

.ca-list .ca-user {
    min-width: 0;
}

.ca-list .ca-user b {
    display: block;
    font-size: 14px;
    font-weight: 650;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ca-list .ca-vx {
    min-width: 0;
}

.ca-list .ca-vx code {
    display: inline-block;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 7px;
    background: var(--brand-soft);
    color: var(--brand);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.ca-list .ca-act {
    text-align: right;
}

.ca-list .ca-act .btn-sm {
    white-space: nowrap;
}

/* 点击统计卡片筛选：当前选中态描边 */
a.card.stat {
    display: flex;
    color: inherit;
}

a.card.stat:hover {
    border-color: var(--brand);
}

.card.stat.stat-cur {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand) inset;
}

.ca-list .ca-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ca-list .ca-time .ca-beat {
    font-size: 12.5px;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.ca-list .ca-time .ca-age {
    font-size: 11.5px;
    color: #9aa8bd;
}

@media (max-width: 900px) {
    .ca-list .thead {
        display: none;
    }

    .ca-list .trow {
        grid-template-columns: 1fr auto;
        gap: 6px 10px;
    }

    .ca-list .ca-id {
        display: none;
    }

    .ca-list .ca-time {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
}

/* ---------------- 微信号管理（添加微信号弹窗内的已添加列表） ---------------- */
.wx-manage {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.wx-manage-head {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
}

.wx-manage-count {
    font-weight: 500;
    color: var(--sub);
}

.wx-manage-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 232px;
    overflow-y: auto;
    scrollbar-width: none;
}

.wx-manage-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.wx-manage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
}

.wx-manage-name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wx-manage-name b {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wx-manage-name em {
    flex: none;
    font-style: normal;
    font-size: 11.5px;
    color: var(--sub);
}

.wx-manage-name .wx-edit {
    height: 30px;
    padding: 0 9px;
    font-size: 13px;
}

.wx-manage-ops {
    flex: none;
    display: flex;
    gap: 4px;
}

.wx-op {
    border: 0;
    background: none;
    padding: 3px 6px;
    border-radius: 7px;
    font: inherit;
    font-size: 12px;
    color: var(--sub);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.wx-op:hover {
    background: var(--bg);
    color: var(--ink);
}

.wx-op.is-primary {
    color: var(--brand);
}

.wx-op.is-danger {
    color: var(--bad);
}

.wx-op.is-danger:hover {
    background: var(--bad-bg);
    color: var(--bad);
}

.wx-manage-empty {
    padding: 16px 10px;
    text-align: center;
    font-size: 12.5px;
    color: var(--sub);
}

/* ---------------- 拉新数据页 · 分页（一页最多 21 个卡片） ---------------- */

.ud-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 6px;
}

.ud-pager-btn,
.ud-pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ud-pager-num {
    padding: 0 8px;
}

.ud-pager-btn:hover,
.ud-pager-num:hover {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--line-2);
}

.ud-pager-num.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}

.ud-pager-btn.is-off {
    opacity: .45;
    pointer-events: none;
}

.ud-pager-gap {
    color: var(--sub);
    padding: 0 2px;
    font-size: 13px;
}

.ud-pager-info {
    margin-left: 6px;
    font-size: 12.5px;
    color: var(--sub);
}

@media (max-width: 640px) {
    .ud-pager-info {
        width: 100%;
        text-align: center;
        margin: 4px 0 0;
    }
}

/* ---------------- 顶部采集胶囊：窄屏单行横向滚动，不再换行压到内容区 ---------------- */
@media (max-width: 900px) {
    .ud-collect-topbar {
        flex-wrap: nowrap;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ud-collect-topbar::-webkit-scrollbar {
        display: none;
    }

    .ud-collect-topbar .ud-collect-item {
        flex: none;
    }
}

/* ---------------- 拉新页顶栏：在线账号数量胶囊（放在 topbar_left） ---------------- */
.topbar .ud-collect-sum {
    flex: none;
    height: 30px;
}
