/* ============================================================
   落雨支付 · LUOYU PAY UI
   Neon esports payment console
   ============================================================ */

:root {
    --bg: #05070d;
    --bg-deep: #02040a;
    --panel: rgba(11, 19, 31, 0.9);
    --panel-solid: #0a121d;
    --panel-2: rgba(8, 14, 23, 0.86);
    --line: rgba(0, 229, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.06);
    --cyan: #00e5ff;
    --cyan-deep: #0098c8;
    --magenta: #ff2d6f;
    --gold: #ffc24b;
    --green: #22ffa7;
    --red: #ff5d6c;
    --text: #eaf6ff;
    --muted: #8ba0b6;
    --faint: #5c7189;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --mono: "SF Mono", "JetBrains Mono", "DIN Alternate", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-deep);
}

body {
    font-family: var(--font);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, pre, .mono { font-family: var(--mono); }
[hidden] { display: none !important; }

::selection { background: rgba(0, 229, 255, 0.3); color: #fff; }

/* ------------------------------------------------------------ 动态背景 */
.bg-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(120% 80% at 50% -10%, #0a1a29 0%, #060a12 46%, #04060b 100%);
}

.bg-aurora, .bg-aurora-2 {
    position: absolute;
    width: 140%;
    height: 90%;
    left: -20%;
    filter: blur(70px);
    opacity: 0.85;
}

.bg-aurora {
    top: -28%;
    background:
        radial-gradient(34% 44% at 24% 30%, rgba(0, 229, 255, 0.22), transparent 68%),
        radial-gradient(32% 40% at 76% 20%, rgba(255, 45, 111, 0.19), transparent 66%),
        radial-gradient(28% 34% at 56% 66%, rgba(88, 76, 255, 0.16), transparent 70%);
    animation: auroraFloat 18s ease-in-out infinite alternate;
}

.bg-aurora-2 {
    top: auto;
    bottom: -38%;
    background:
        radial-gradient(34% 42% at 68% 68%, rgba(0, 229, 255, 0.13), transparent 70%),
        radial-gradient(30% 40% at 28% 60%, rgba(255, 45, 111, 0.12), transparent 70%);
    animation: auroraFloat2 24s ease-in-out infinite alternate;
}

.bg-grid {
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: -12%;
    height: 58%;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.13) 1px, transparent 1px);
    background-size: 52px 52px;
    transform: perspective(340px) rotateX(64deg);
    transform-origin: 50% 100%;
    opacity: 0.42;
    animation: gridScroll 10s linear infinite;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 46%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 46%, #000 100%);
}

.bg-scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0, rgba(255, 255, 255, 0.022) 1px, transparent 1px, transparent 3px);
    opacity: 0.55;
}

.bg-beam {
    position: absolute;
    left: -30%;
    top: -30%;
    width: 45%;
    height: 160%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.055), transparent);
    transform: rotate(16deg);
    animation: beamMove 13s linear infinite;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(110% 80% at 50% 30%, transparent 48%, rgba(2, 4, 8, 0.74) 100%);
}

@keyframes auroraFloat {
    0% { transform: translate3d(-3%, -2%, 0) scale(1); }
    100% { transform: translate3d(4%, 3%, 0) scale(1.07); }
}
@keyframes auroraFloat2 {
    0% { transform: translate3d(3%, 2%, 0) scale(1.04); }
    100% { transform: translate3d(-4%, -3%, 0) scale(1); }
}
@keyframes gridScroll {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 52px, 0 0; }
}
@keyframes beamMove {
    0% { transform: translateX(-50%) rotate(16deg); opacity: 0; }
    18% { opacity: 1; }
    82% { opacity: 1; }
    100% { transform: translateX(360%) rotate(16deg); opacity: 0; }
}
@keyframes pulseDot {
    0%, 100% { opacity: 0.45; transform: scale(0.86); }
    50% { opacity: 1; transform: scale(1.12); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes barGrow {
    from { height: 0; }
    to { height: var(--h); }
}
@keyframes scanLine {
    0% { transform: translateY(-100%); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(320%); opacity: 0; }
}

/* ------------------------------------------------------------ 通用 */
.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 14px; height: 14px; }
.flip { transform: rotate(180deg); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.cyan { color: var(--cyan); }
.mag { color: var(--magenta); }
.gold { color: var(--gold); }
.strong { font-weight: 700; }
.ta-r { text-align: right; }
.ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellipsis-sm { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.mt12 { margin-top: 12px; }
.link { color: var(--cyan); transition: color 0.2s; }
.link:hover { color: #7df2ff; }
.kicker {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    color: rgba(0, 229, 255, 0.72);
    text-transform: uppercase;
}
.kicker.gold { color: rgba(255, 194, 75, 0.82); }

/* ------------------------------------------------------------ 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s, background 0.2s, color 0.2s;
    background: transparent;
    color: var(--text);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 16px; height: 16px; }

.btn-primary {
    background: linear-gradient(135deg, #00e5ff, #3aa0ff);
    color: #04131c;
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(0, 229, 255, 0.36); }

.btn-gold {
    background: linear-gradient(135deg, #ffd166, #ffab2e);
    color: #241602;
    box-shadow: 0 8px 24px rgba(255, 194, 75, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover { box-shadow: 0 10px 30px rgba(255, 194, 75, 0.34); }

.btn-ghost {
    border-color: rgba(0, 229, 255, 0.26);
    color: #bfe9f5;
    background: rgba(0, 229, 255, 0.04);
}
.btn-ghost:hover { border-color: rgba(0, 229, 255, 0.55); background: rgba(0, 229, 255, 0.09); color: #eafcff; }

.btn-danger {
    background: linear-gradient(135deg, #ff5d6c, #d92b52);
    color: #fff;
    box-shadow: 0 8px 22px rgba(255, 45, 111, 0.22);
}
.btn-danger-ghost {
    border-color: rgba(255, 93, 108, 0.32);
    color: #ff96a2;
    background: rgba(255, 45, 111, 0.05);
}
.btn-danger-ghost:hover { border-color: rgba(255, 93, 108, 0.6); background: rgba(255, 45, 111, 0.11); }

.btn-lg { height: 48px; padding: 0 26px; font-size: 14px; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn-xs .icon { width: 13px; height: 13px; }
.btn-block { display: flex; width: 100%; }

.icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    cursor: pointer;
    transition: 0.2s;
}
.icon-btn:hover { color: var(--cyan); border-color: var(--line); background: rgba(0, 229, 255, 0.06); }
.icon-btn .icon { width: 17px; height: 17px; }

/* ------------------------------------------------------------ 徽标 / 状态 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge .dot, .badge i.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.badge.ok { color: var(--green); background: rgba(34, 255, 167, 0.08); border-color: rgba(34, 255, 167, 0.24); }
.badge.wait { color: var(--gold); background: rgba(255, 194, 75, 0.08); border-color: rgba(255, 194, 75, 0.24); }
.badge.off { color: #ff8a97; background: rgba(255, 93, 108, 0.08); border-color: rgba(255, 93, 108, 0.24); }
.badge.warn { color: #ffb37a; background: rgba(255, 147, 74, 0.08); border-color: rgba(255, 147, 74, 0.24); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 11px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--muted);
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
}
.pill-live { color: rgba(34, 255, 167, 0.9); border-color: rgba(34, 255, 167, 0.2); background: rgba(34, 255, 167, 0.05); }
.pill-live i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulseDot 1.6s ease-in-out infinite;
}

.pay-type { display: inline-flex; align-items: center; gap: 6px; color: #a9dcf0; font-size: 12px; }
.pay-type .icon { width: 15px; height: 15px; color: #3ce08a; }

/* ------------------------------------------------------------ 表单 */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.field-label .optional { font-style: normal; font-size: 10px; color: var(--faint); }
.hint { font-size: 11px; color: var(--faint); line-height: 1.5; }
.hint-text { font-size: 11px; color: var(--faint); }
.input, select.input, textarea.input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 9, 15, 0.72);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: #4d6074; }
.input:focus, select.input:focus, textarea.input:focus {
    border-color: rgba(0, 229, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
    background: rgba(4, 12, 20, 0.9);
}
select.input {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6e8298 50%), linear-gradient(135deg, #6e8298 50%, transparent 50%);
    background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}
textarea.input { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input[type="date"] { color-scheme: dark; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-left: 38px; }
.input-wrap .input-icon {
    position: absolute;
    left: 12px;
    color: #5a738c;
    display: flex;
    pointer-events: none;
}
.input-wrap .input-icon .icon { width: 16px; height: 16px; }
.input-wrap .input-action {
    position: absolute;
    right: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #5a738c;
    cursor: pointer;
    border-radius: 8px;
}
.input-wrap .input-action:hover { color: var(--cyan); background: rgba(0, 229, 255, 0.06); }
.input-wrap .input-action .icon { width: 16px; height: 16px; }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.form-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.checkbox input { appearance: none; width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.3); position: relative; cursor: pointer; flex: none; }
.checkbox input:checked { background: linear-gradient(135deg, #00e5ff, #3aa0ff); border-color: transparent; }
.checkbox input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #04131c;
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}
.checkbox-block { align-items: flex-start; line-height: 1.5; }

.toggle-row { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 4px; }
.switch-label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); cursor: pointer; }
.switch-label input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
    width: 38px;
    height: 21px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: 0.2s;
    flex: none;
}
.switch::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #7e93a8;
    transition: 0.2s;
}
.switch-label input:checked + .switch { background: rgba(0, 229, 255, 0.22); border-color: rgba(0, 229, 255, 0.5); }
.switch-label input:checked + .switch::after { left: 19px; background: var(--cyan); box-shadow: 0 0 10px rgba(0, 229, 255, 0.85); }

/* ------------------------------------------------------------ 卡片 */
.card {
    position: relative;
    background: linear-gradient(160deg, rgba(13, 22, 35, 0.92), rgba(6, 11, 18, 0.96));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 22px;
    overflow: hidden;
    backdrop-filter: blur(14px);
}
.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
    opacity: 0.75;
}
.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.card-title { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.card-sub { font-size: 11px; color: var(--faint); margin-top: 4px; }
.card-link { font-size: 11px; color: var(--cyan); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.card-link:hover { color: #9df6ff; }
.card-table { padding: 0; }
.card-table .card-head { padding: 22px 22px 0; }
.card-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.04);
    border: 1px dashed rgba(0, 229, 255, 0.18);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}
.card-tip .icon { color: var(--cyan); width: 15px; height: 15px; margin-top: 2px; }
.card-tip code { color: #bfe9f5; }
.card-tip-card { display: flex; gap: 16px; align-items: flex-start; }
.card-tip-card h3 { font-size: 14px; margin-bottom: 6px; }
.card-tip-card p { color: var(--muted); font-size: 12px; max-width: 760px; }
.card-tip-card .stat-icon { margin: 0; }

.empty {
    padding: 46px 20px;
    text-align: center;
    color: var(--faint);
    font-size: 12px;
}
.empty.small { padding: 24px 10px; }

/* ------------------------------------------------------------ 表格 */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
    text-align: left;
    font-weight: 500;
    font-size: 11px;
    color: var(--faint);
    letter-spacing: 0.06em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.014);
}
.table td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    vertical-align: middle;
    white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr { transition: background 0.16s; }
.table-hover tbody tr:hover { background: rgba(0, 229, 255, 0.03); }
.table .cell-merchant { display: flex; align-items: center; gap: 10px; }
.cell-merchant b { display: block; font-size: 12.5px; font-weight: 600; }
.cell-merchant small { display: block; font-size: 10px; color: var(--faint); }
.row-action { color: var(--faint); display: inline-flex; }
.row-action:hover { color: var(--cyan); }
.row-actions { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.row-actions form { display: inline-flex; }

/* ------------------------------------------------------------ 布局 */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.page-head h2 { font-size: 26px; font-weight: 800; letter-spacing: 0.01em; margin: 6px 0 6px; }
.page-head p { color: var(--muted); font-size: 12px; }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--faint); margin-bottom: 6px; }
.back-link:hover { color: var(--cyan); }

.list-meta { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 12px; margin-bottom: 14px; }
.list-meta b { color: var(--text); font-weight: 700; }
.list-meta .sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.1); }

.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
    background: rgba(9, 16, 26, 0.72);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    margin-bottom: 18px;
    backdrop-filter: blur(12px);
}
.filter-item { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
.filter-item.grow { flex: 1 1 220px; }
.filter-item label { font-size: 10px; color: var(--faint); letter-spacing: 0.08em; }
.filter-item .input { height: 38px; font-size: 12px; }
.filter-actions { display: flex; gap: 8px; align-items: center; }
.filter-actions .btn { height: 38px; }

.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 18px;
    border-top: 1px solid var(--line-soft);
    flex-wrap: wrap;
}
.page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 12px;
    font-family: var(--mono);
}
.page-btn:hover { border-color: rgba(0, 229, 255, 0.35); color: var(--cyan); }
.page-btn.active { background: rgba(0, 229, 255, 0.12); border-color: rgba(0, 229, 255, 0.45); color: var(--cyan); }
.page-btn.disabled { opacity: 0.35; pointer-events: none; }
.page-total { margin-left: auto; font-size: 11px; color: var(--faint); }

/* ------------------------------------------------------------ Toast */
.toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(10, 18, 29, 0.96);
    border: 1px solid var(--line-soft);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    pointer-events: auto;
    animation: toastIn 0.3s ease both;
}
.toast p { font-size: 12px; line-height: 1.55; color: var(--text); padding-top: 1px; flex: 1; }
.toast-icon { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.toast-icon .icon { width: 15px; height: 15px; }
.toast--success { border-color: rgba(34, 255, 167, 0.25); }
.toast--success .toast-icon { background: rgba(34, 255, 167, 0.1); color: var(--green); }
.toast--error { border-color: rgba(255, 93, 108, 0.3); }
.toast--error .toast-icon { background: rgba(255, 93, 108, 0.1); color: #ff8a97; }
.toast--info .toast-icon { background: rgba(0, 229, 255, 0.1); color: var(--cyan); }
.toast-close {
    border: 0;
    background: transparent;
    color: var(--faint);
    cursor: pointer;
    padding: 2px;
    display: flex;
    border-radius: 6px;
}
.toast-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.toast-close .icon { width: 13px; height: 13px; }

/* ------------------------------------------------------------ 品牌 */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(255, 45, 111, 0.1));
    border: 1px solid rgba(0, 229, 255, 0.32);
    color: var(--cyan);
    box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.12), 0 0 18px rgba(0, 229, 255, 0.1);
    flex: none;
}
.brand-mark .icon { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; font-weight: 800; letter-spacing: 0.08em; }
.brand-text small { font-family: var(--mono); font-size: 8px; letter-spacing: 0.34em; color: rgba(0, 229, 255, 0.6); margin-top: 3px; }

/* ------------------------------------------------------------ 落地页 */
.page-public { min-height: 100vh; }
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 72px;
    padding: 0 40px;
    max-width: 1320px;
    margin: 0 auto;
    background: rgba(5, 7, 13, 0.62);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.landing-links { display: flex; align-items: center; gap: 26px; margin-left: 26px; }
.landing-links a { font-size: 12.5px; color: var(--muted); transition: color 0.2s; }
.landing-links a:hover { color: var(--cyan); }
.landing-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; }

.landing-main { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 40px 60px; }

.hero {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 48px;
    align-items: center;
    padding: 74px 0 54px;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 26px;
    padding: 0 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.28);
    background: rgba(0, 229, 255, 0.05);
    color: rgba(0, 229, 255, 0.9);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.18em;
}
.hero-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulseDot 1.6s infinite; }
.hero h1 {
    font-size: clamp(38px, 4.6vw, 62px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 24px 0 20px;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #00e5ff 0%, #7b9dff 45%, #ff2d6f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.25));
}
.hero-sub { color: var(--muted); font-size: 14.5px; line-height: 1.85; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 26px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: 11px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { width: 14px; height: 14px; color: rgba(0, 229, 255, 0.65); }

.hero-visual { position: relative; padding: 16px 0; }
.hero-panel {
    position: relative;
    z-index: 2;
    border-radius: 22px;
    padding: 22px;
    background:
        radial-gradient(90% 100% at 100% 0, rgba(0, 229, 255, 0.14), transparent 55%),
        radial-gradient(70% 90% at 0 100%, rgba(255, 45, 111, 0.12), transparent 60%),
        linear-gradient(155deg, rgba(13, 24, 39, 0.96), rgba(6, 11, 18, 0.98));
    border: 1px solid rgba(0, 229, 255, 0.24);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    animation: floatY 7s ease-in-out infinite;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.06em; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); animation: pulseDot 1.4s infinite; }
.panel-tag { font-size: 9px; letter-spacing: 0.2em; color: var(--green); border: 1px solid rgba(34, 255, 167, 0.25); border-radius: 20px; padding: 2px 8px; }
.panel-amount { padding: 22px 0 10px; display: flex; flex-direction: column; gap: 2px; }
.panel-amount span { font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }
.panel-amount strong { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; color: #eafcff; text-shadow: 0 0 26px rgba(0, 229, 255, 0.25); }
.panel-amount em { font-style: normal; font-size: 10px; color: var(--faint); }
.panel-bars { display: flex; align-items: flex-end; gap: 9px; height: 92px; padding: 10px 0 6px; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); }
.pbar { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 4px; background: rgba(255, 255, 255, 0.025); overflow: hidden; }
.pbar i {
    display: block;
    width: 100%;
    height: var(--h);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.9), rgba(0, 229, 255, 0.12));
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
    border-radius: 4px 4px 0 0;
    animation: barGrow 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--d, 0s);
}
.panel-foot { display: flex; justify-content: space-between; padding-top: 16px; }
.panel-foot div { display: flex; flex-direction: column; gap: 2px; }
.panel-foot b { font-size: 16px; color: #dff8ff; }
.panel-foot span { font-size: 9.5px; color: var(--faint); letter-spacing: 0.05em; }
.hero-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 13px;
    background: rgba(8, 15, 24, 0.94);
    border: 1px solid rgba(0, 229, 255, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}
.hero-chip .icon { color: var(--green); width: 20px; height: 20px; }
.hero-chip b { display: block; font-size: 11.5px; }
.hero-chip span { display: block; font-size: 9px; color: var(--faint); }
.hero-chip-a { left: -32px; top: -20px; animation: floatY 6s ease-in-out infinite 0.8s; }
.hero-chip-b { right: -22px; bottom: -18px; animation: floatY 6.6s ease-in-out infinite 1.4s; }
.hero-glow {
    position: absolute;
    inset: 8% 4%;
    z-index: 1;
    background: radial-gradient(closest-side, rgba(0, 229, 255, 0.22), transparent);
    filter: blur(50px);
}

.stat-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 14px;
}
.stat-band-item { display: flex; gap: 16px; padding: 22px 24px; background: rgba(7, 12, 20, 0.78); }
.stat-band-item > .mono { font-size: 11px; color: rgba(0, 229, 255, 0.45); letter-spacing: 0.12em; padding-top: 3px; }
.stat-band-item b { font-size: 14px; display: block; margin-bottom: 5px; }
.stat-band-item p { font-size: 11.5px; color: var(--faint); }

.section { padding: 84px 0 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.01em; margin: 12px 0 12px; }
.section-head p { color: var(--muted); font-size: 13px; line-height: 1.8; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
    position: relative;
    padding: 26px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(12, 21, 33, 0.9), rgba(6, 11, 18, 0.94));
    border: 1px solid var(--line-soft);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover { border-color: rgba(0, 229, 255, 0.26); transform: translateY(-3px); }
.feature-wide { grid-column: span 2; }
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--cyan);
    margin-bottom: 18px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.feature-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.feature-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.feature-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
    transform: rotate(45deg);
}
.feature-corner { position: absolute; right: 22px; top: 24px; font-size: 9px; letter-spacing: 0.24em; color: rgba(0, 229, 255, 0.28); }
.feature-wide .feature-list { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }

.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-step {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    background: rgba(8, 14, 23, 0.7);
    border: 1px solid var(--line-soft);
}
.flow-step::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 40px;
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(0, 229, 255, 0.35);
    border-right: 1px solid rgba(0, 229, 255, 0.35);
    transform: rotate(45deg);
}
.flow-step:last-child::after { display: none; }
.flow-num { font-size: 11px; letter-spacing: 0.16em; color: rgba(0, 229, 255, 0.5); }
.flow-step h3 { font-size: 15px; margin: 14px 0 8px; }
.flow-step p { color: var(--muted); font-size: 12px; line-height: 1.75; }

.code-showcase {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: center;
    padding: 38px;
    border-radius: 22px;
    background:
        radial-gradient(70% 100% at 100% 0, rgba(0, 229, 255, 0.08), transparent 60%),
        linear-gradient(150deg, rgba(11, 20, 32, 0.9), rgba(5, 9, 15, 0.96));
    border: 1px solid rgba(0, 229, 255, 0.14);
}
.code-copy h2 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.3; margin: 14px 0 16px; font-weight: 800; }
.code-copy p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.code-copy .btn { margin-top: 22px; }

.code-window {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 7, 12, 0.92);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.code-window-flat { box-shadow: none; }
.code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.018);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--faint);
}
.code-dots { display: flex; gap: 5px; }
.code-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.code-dots i:nth-child(1) { background: rgba(255, 93, 108, 0.6); }
.code-dots i:nth-child(2) { background: rgba(255, 194, 75, 0.6); }
.code-dots i:nth-child(3) { background: rgba(34, 255, 167, 0.55); }
.code-body {
    margin: 0;
    padding: 18px 20px;
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.9;
    color: #9fb6ca;
    overflow-x: auto;
}
.code-body code { font-family: inherit; white-space: pre; }
.c-key { color: #7fd6ff; }
.c-str { color: #a7f7c8; }
.c-arrow { color: var(--magenta); }
.c-comment { color: #536a80; }
.code-copy {
    border: 1px solid rgba(0, 229, 255, 0.22);
    background: rgba(0, 229, 255, 0.05);
    color: var(--cyan);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}
.code-copy:hover { background: rgba(0, 229, 255, 0.12); }

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.price-card {
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(12, 21, 34, 0.9), rgba(6, 10, 17, 0.95));
    border: 1px solid var(--line-soft);
}
.price-card-dark { border-color: rgba(255, 194, 75, 0.2); background: linear-gradient(160deg, rgba(24, 21, 12, 0.62), rgba(7, 8, 11, 0.96)); }
.price-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, 0.26);
    border-radius: 20px;
    padding: 3px 10px;
}
.price-tag.gold { color: var(--gold); border-color: rgba(255, 194, 75, 0.3); }
.price-value { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 12px; }
.price-value b { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.price-value span { font-size: 11px; color: var(--faint); }
.price-card > p { color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.price-card .btn { margin-top: 24px; }

.cta-band {
    margin-top: 84px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(120deg, rgba(0, 229, 255, 0.45), rgba(255, 45, 111, 0.3), rgba(255, 194, 75, 0.35));
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 44px;
    border-radius: 22px;
    background:
        radial-gradient(80% 140% at 100% 0, rgba(0, 229, 255, 0.12), transparent 60%),
        linear-gradient(150deg, #08111c, #05080e);
    flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(24px, 2.4vw, 34px); margin: 10px 0 8px; font-weight: 800; }
.cta-inner p { color: var(--muted); font-size: 12.5px; }
.cta-actions { display: flex; gap: 10px; }

.landing-footer { position: relative; z-index: 2; max-width: 1240px; margin: 30px auto 0; padding: 34px 40px 40px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { font-size: 14px; letter-spacing: 0.06em; }
.footer-brand p { font-size: 11px; color: var(--faint); margin-top: 2px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 11.5px; color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; font-size: 10px; color: var(--faint); flex-wrap: wrap; }

/* ------------------------------------------------------------ 登录 / 注册 */
.page-auth { min-height: 100vh; overflow-x: hidden; }
.auth-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}
.auth-brand {
    padding: 54px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    max-width: 660px;
    justify-self: end;
    width: 100%;
}
.auth-headline h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.2; font-weight: 900; letter-spacing: -0.02em; margin: 16px 0 18px; }
.auth-headline h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #00e5ff, #8b9cff 55%, #ff2d6f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-headline p { color: var(--muted); font-size: 13px; line-height: 1.85; max-width: 480px; }
.auth-points { display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); }
.auth-points .icon { width: 15px; height: 15px; color: var(--green); margin-top: 2px; }
.auth-metrics { display: flex; gap: 34px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.auth-metrics b { display: block; font-size: 26px; font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; }
.auth-metrics span { font-size: 10px; color: var(--faint); }

.auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.auth-panel-glow {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 229, 255, 0.16), transparent);
    filter: blur(40px);
    pointer-events: none;
}
.auth-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(13, 23, 37, 0.94), rgba(6, 10, 17, 0.97));
    border: 1px solid rgba(0, 229, 255, 0.16);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    animation: riseIn 0.45s ease both;
}
.auth-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 58px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
}
.auth-card-admin::before { background: linear-gradient(90deg, var(--gold), transparent); box-shadow: 0 0 14px rgba(255, 194, 75, 0.6); }
.auth-card-head { margin-bottom: 26px; }
.auth-card-head h2 { font-size: 24px; font-weight: 800; margin: 10px 0 8px; letter-spacing: 0.01em; }
.auth-card-head p { color: var(--faint); font-size: 12px; }
.auth-card .form { gap: 15px; }
.auth-card .btn-block { margin-top: 6px; }
.auth-demo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 13px;
    border-radius: 9px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.018);
    font-size: 11px;
    color: var(--faint);
}
.auth-demo-label { color: var(--muted); }
.auth-demo code { color: var(--cyan); font-size: 11px; }
.auth-demo .sep { color: rgba(255, 255, 255, 0.18); }
.auth-switch { margin-top: 18px; text-align: center; font-size: 12px; color: var(--faint); }
.auth-switch a { color: var(--cyan); font-weight: 600; }
.admin-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    color: var(--faint);
}
.admin-entry:hover { color: var(--gold); }
.admin-entry .icon { width: 14px; height: 14px; }
.auth-note { display: flex; gap: 8px; margin-top: 20px; padding: 12px; border-radius: 9px; background: rgba(0, 229, 255, 0.04); border: 1px solid rgba(0, 229, 255, 0.12); color: var(--faint); font-size: 10.5px; line-height: 1.6; }
.auth-note .icon { color: var(--cyan); width: 14px; height: 14px; margin-top: 2px; }
.auth-warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 16px; color: #ffb37a; font-size: 10.5px; line-height: 1.6; }
.auth-warn .icon { width: 13px; height: 13px; margin-top: 2px; }
.auth-foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 11px; color: var(--faint); }
.auth-foot a:hover { color: var(--cyan); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }

/* ------------------------------------------------------------ App shell */
.page-app { background: var(--bg-deep); }
.app-shell { position: relative; z-index: 2; display: flex; min-height: 100vh; }
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(2, 4, 8, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 70;
    width: 248px;
    padding: 24px 16px 18px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(8, 14, 23, 0.96), rgba(4, 8, 14, 0.98));
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 0; }
.sidebar .brand { padding: 0 8px 22px; }
.side-scope {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 6px;
}
.side-scope span { font-size: 10px; letter-spacing: 0.14em; color: var(--faint); }
.side-scope em { font-style: normal; font-family: var(--mono); font-size: 8px; letter-spacing: 0.2em; color: rgba(0, 229, 255, 0.35); }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-group { font-size: 9px; letter-spacing: 0.16em; color: #43566a; padding: 16px 12px 6px; }
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 12.5px;
    border: 1px solid transparent;
    transition: 0.18s;
}
.nav-item .icon { width: 17px; height: 17px; color: #5c7189; transition: 0.18s; }
.nav-item:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.nav-item:hover .icon { color: #8fb6cb; }
.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.02));
    color: #dffaff;
    border-color: rgba(0, 229, 255, 0.16);
}
.nav-item.active .icon { color: var(--cyan); }
.nav-item.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 9px;
    bottom: 9px;
    width: 2px;
    border-radius: 2px;
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.9);
}
.page-admin .nav-item.active {
    background: linear-gradient(90deg, rgba(255, 194, 75, 0.12), rgba(255, 194, 75, 0.02));
    border-color: rgba(255, 194, 75, 0.18);
    color: #fff4dc;
}
.page-admin .nav-item.active .icon { color: var(--gold); }
.page-admin .nav-item.active::before { background: var(--gold); box-shadow: 0 0 10px rgba(255, 194, 75, 0.85); }
.page-admin .side-scope em { color: rgba(255, 194, 75, 0.4); }

.side-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.side-balance {
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(140deg, rgba(0, 229, 255, 0.07), rgba(255, 45, 111, 0.04));
    border: 1px solid rgba(0, 229, 255, 0.13);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.side-balance span { font-size: 9.5px; color: var(--faint); letter-spacing: 0.06em; }
.side-balance strong { font-size: 18px; font-weight: 700; color: #d9fbff; }
.page-admin .side-balance { background: linear-gradient(140deg, rgba(255, 194, 75, 0.07), rgba(255, 45, 111, 0.03)); border-color: rgba(255, 194, 75, 0.14); }
.page-admin .side-balance strong { color: #ffe8b3; }
.side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.016);
}
.side-user:hover { border-color: rgba(0, 229, 255, 0.2); }
.side-user .icon { margin-left: auto; width: 14px; height: 14px; color: var(--faint); }
.side-user-meta { display: flex; flex-direction: column; min-width: 0; }
.side-user-meta b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-meta small { font-size: 9px; color: var(--faint); }
.avatar {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(0, 229, 255, 0.06));
    border: 1px solid rgba(0, 229, 255, 0.28);
    color: #cdf8ff;
    font-size: 12px;
    font-weight: 700;
    flex: none;
}
.avatar-gold { background: linear-gradient(135deg, rgba(255, 194, 75, 0.24), rgba(255, 194, 75, 0.06)); border-color: rgba(255, 194, 75, 0.3); color: #ffe9bb; }
.avatar-lg { width: 58px; height: 58px; border-radius: 16px; font-size: 22px; }
.avatar-sm { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.side-logout { margin: 0; }
.nav-logout { width: 100%; background: transparent; cursor: pointer; font-family: inherit; text-align: left; border: 0; }
.nav-logout:hover { color: #ff9aa5; background: rgba(255, 93, 108, 0.06); }
.nav-logout:hover .icon { color: #ff9aa5; }

.main { flex: 1; min-width: 0; margin-left: 248px; display: flex; flex-direction: column; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 70px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    background: rgba(5, 9, 15, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(18px);
}
.topbar-menu { display: none; }
.topbar-title { display: flex; flex-direction: column; gap: 1px; }
.crumb { font-size: 9.5px; letter-spacing: 0.12em; color: var(--faint); text-transform: uppercase; }
.topbar-title h1 { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.05));
    border: 1px solid rgba(0, 229, 255, 0.26);
    color: #d6f8ff;
    font-weight: 700;
    font-size: 13px;
}
.topbar-avatar.gold { background: linear-gradient(135deg, rgba(255, 194, 75, 0.22), rgba(255, 194, 75, 0.05)); border-color: rgba(255, 194, 75, 0.3); color: #ffe9bb; }
.content { padding: 28px 30px 54px; max-width: 1400px; width: 100%; }
.page-admin .content { max-width: 1440px; }

/* ------------------------------------------------------------ 商户后台组件 */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.06), rgba(0, 229, 255, 0.01));
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.notice-bar p { font-size: 12px; color: #a9c8d8; flex: 1; min-width: 200px; }
.notice-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: 0.1em; color: var(--cyan); white-space: nowrap; }
.notice-tag .icon { width: 14px; height: 14px; }
.notice-warn { border-color: rgba(255, 194, 75, 0.22); background: linear-gradient(90deg, rgba(255, 194, 75, 0.06), rgba(255, 194, 75, 0.01)); }
.notice-warn .notice-tag { color: var(--gold); }
.notice-link { font-size: 11px; color: var(--gold); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
    position: relative;
    padding: 19px 20px 17px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(12, 21, 34, 0.92), rgba(6, 10, 17, 0.96));
    border: 1px solid var(--line-soft);
    overflow: hidden;
    min-height: 132px;
    display: flex;
    flex-direction: column;
}
.stat-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 229, 255, 0.12), transparent);
    pointer-events: none;
}
.stat-magenta::after { background: radial-gradient(closest-side, rgba(255, 45, 111, 0.12), transparent); }
.stat-gold::after { background: radial-gradient(closest-side, rgba(255, 194, 75, 0.12), transparent); }
.stat-top { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); position: relative; z-index: 1; }
.stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.16);
    color: var(--cyan);
}
.stat-icon .icon { width: 15px; height: 15px; }
.stat-magenta .stat-icon { background: rgba(255, 45, 111, 0.08); border-color: rgba(255, 45, 111, 0.18); color: #ff7ca3; }
.stat-gold .stat-icon { background: rgba(255, 194, 75, 0.08); border-color: rgba(255, 194, 75, 0.18); color: var(--gold); }
.stat-value { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 6px; position: relative; z-index: 1; }
.stat-value small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 1px; }
.stat-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 10.5px; color: var(--faint); position: relative; z-index: 1; flex-wrap: wrap; }
.stat-delta { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.stat-delta.up { color: var(--green); }
.stat-delta .icon { width: 12px; height: 12px; }
.stat-spark { position: absolute; right: 18px; bottom: 14px; display: flex; align-items: flex-end; gap: 3px; height: 30px; opacity: 0.55; }
.stat-spark i { width: 4px; border-radius: 2px; background: linear-gradient(180deg, rgba(255, 45, 111, 0.9), rgba(255, 45, 111, 0.15)); }

.grid-2-1 { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; margin-bottom: 20px; }

.chart-card { min-height: 320px; }
.chart-area { display: flex; gap: 12px; height: 230px; padding-top: 8px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 9px; color: var(--faint); font-family: var(--mono); padding-bottom: 22px; text-align: right; min-width: 52px; }
.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    position: relative;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 100% 33.33%;
    padding-bottom: 22px;
}
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; position: relative; }
.chart-bar {
    width: 100%;
    max-width: 46px;
    height: var(--h, 20%);
    min-height: 6px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.92), rgba(0, 229, 255, 0.08));
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    transition: filter 0.2s, transform 0.2s;
    animation: barGrow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.chart-bar.gold { background: linear-gradient(180deg, rgba(255, 194, 75, 0.92), rgba(255, 194, 75, 0.08)); box-shadow: 0 0 18px rgba(255, 194, 75, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.chart-col:hover .chart-bar { filter: brightness(1.25); transform: translateY(-2px); }
.chart-value { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--muted); opacity: 0.8; }
.chart-label { font-size: 9.5px; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 1px; height: 22px; }
.chart-label em { font-style: normal; font-size: 8px; color: #41556a; }

.channel-list { display: flex; flex-direction: column; gap: 4px; }
.channel-row { display: flex; align-items: center; gap: 11px; padding: 10px 4px; border-bottom: 1px dashed rgba(255, 255, 255, 0.04); }
.channel-row:last-child { border-bottom: 0; }
.channel-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.16);
    color: var(--cyan);
}
.channel-logo .icon { width: 17px; height: 17px; }
.channel-logo.wechat { color: #46e58b; background: rgba(34, 255, 167, 0.06); border-color: rgba(34, 255, 167, 0.16); }
.channel-logo.epay { color: #9d8bff; background: rgba(157, 139, 255, 0.07); border-color: rgba(157, 139, 255, 0.17); }
.channel-logo.test { color: var(--gold); background: rgba(255, 194, 75, 0.06); border-color: rgba(255, 194, 75, 0.16); }
.channel-meta { flex: 1; min-width: 0; }
.channel-meta b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-meta span { display: block; font-size: 10px; color: var(--faint); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.detail-list { display: flex; flex-direction: column; gap: 0; }
.detail-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.045); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { font-size: 11.5px; color: var(--faint); flex: none; }
.detail-list dd { font-size: 12px; text-align: right; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; word-break: break-all; }
.detail-list dd .mono { font-size: 11.5px; }
.detail-list dd.amount { font-size: 20px; font-weight: 800; color: #d9fbff; }

.timeline { margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 0; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.08); }
.tl-item:last-child::before { display: none; }
.tl-item i { width: 9px; height: 9px; border-radius: 50%; background: #33465b; margin-top: 4px; flex: none; z-index: 1; border: 2px solid #0a121d; }
.tl-item.done i { background: var(--green); box-shadow: 0 0 10px rgba(34, 255, 167, 0.7); }
.tl-item.pending i { background: var(--gold); box-shadow: 0 0 10px rgba(255, 194, 75, 0.6); }
.tl-item b { display: block; font-size: 11.5px; font-weight: 600; }
.tl-item span { font-size: 10px; color: var(--faint); }

.copy-inline {
    border: 0;
    background: rgba(255, 255, 255, 0.03);
    color: var(--faint);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.16s;
    flex: none;
}
.copy-inline:hover { color: var(--cyan); background: rgba(0, 229, 255, 0.08); }
.copy-inline .icon { width: 13px; height: 13px; }

.json-pop {
    display: none;
    position: absolute;
    z-index: 30;
    right: 30px;
    margin-top: 6px;
    max-width: 420px;
    max-height: 220px;
    overflow: auto;
    padding: 12px 14px;
    border-radius: 10px;
    background: #04090f;
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: #9fb6ca;
    font-size: 10.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
}
.json-pop.static { display: block; position: static; max-width: none; max-height: 260px; margin-top: 8px; }
.json-pop.is-open { display: block; }

/* 通道卡片 */
.channel-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.channel-card {
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(12, 21, 34, 0.92), rgba(6, 10, 17, 0.96));
    border: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.2s;
}
.channel-card:hover { border-color: rgba(0, 229, 255, 0.22); }
.channel-card.is-off { opacity: 0.68; }
.channel-card-head { display: flex; align-items: center; gap: 12px; }
.channel-card-head > div { flex: 1; min-width: 0; }
.channel-card-head h3 { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.channel-card-head p { font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.default-tag { font-size: 8.5px; color: var(--gold); border: 1px solid rgba(255, 194, 75, 0.3); padding: 1px 6px; border-radius: 20px; letter-spacing: 0.06em; }
.channel-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 0; border-top: 1px dashed rgba(255, 255, 255, 0.05); border-bottom: 1px dashed rgba(255, 255, 255, 0.05); }
.channel-card-stats div { display: flex; flex-direction: column; gap: 3px; }
.channel-card-stats span { font-size: 9.5px; color: var(--faint); }
.channel-card-stats b { font-size: 12.5px; font-weight: 600; }
.channel-note { font-size: 11px; color: var(--faint); line-height: 1.7; }
.channel-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.channel-card-foot .ready { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--green); }
.channel-card-foot .ready .icon { width: 12px; height: 12px; }
.channel-kv { display: flex; flex-direction: column; gap: 6px; }
.channel-kv span { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10.5px; }
.channel-kv i { font-style: normal; color: var(--faint); }
.channel-kv code { color: #9fc3d6; font-size: 10.5px; }

/* 凭证 / 开发者 */
.cred-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; margin-bottom: 18px; }
.cred-card { display: flex; flex-direction: column; gap: 16px; }
.cred-item { display: flex; flex-direction: column; gap: 6px; }
.cred-label { font-size: 10px; letter-spacing: 0.08em; color: var(--faint); }
.cred-value {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(3, 8, 13, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: #c8e6f3;
}
.cred-value code { flex: 1; min-width: 0; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cred-tip { display: flex; gap: 9px; padding: 11px 13px; border-radius: 9px; background: rgba(255, 194, 75, 0.04); border: 1px solid rgba(255, 194, 75, 0.14); color: #c8a879; font-size: 10.5px; line-height: 1.65; }
.cred-tip .icon { width: 14px; height: 14px; color: var(--gold); margin-top: 2px; flex: none; }
.endpoint-list { display: flex; flex-direction: column; gap: 12px; }
.endpoint { padding: 14px; border-radius: 10px; background: rgba(3, 8, 13, 0.55); border: 1px solid rgba(255, 255, 255, 0.05); }
.endpoint-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.endpoint-head b { font-size: 12px; font-weight: 600; }
.endpoint-url { display: block; font-size: 11px; color: #8ed8ef; word-break: break-all; }
.endpoint-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.endpoint-foot span { font-size: 10px; }
.sign-note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.06); }
.sign-note p { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.sign-note code { color: #8ed8ef; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.step { display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.018); border: 1px solid rgba(255, 255, 255, 0.05); }
.step-num { font-size: 10px; color: rgba(0, 229, 255, 0.5); letter-spacing: 0.1em; padding-top: 2px; }
.step h4 { font-size: 12.5px; margin-bottom: 5px; font-weight: 600; }
.step p { font-size: 10.5px; color: var(--faint); line-height: 1.6; }
.step code { color: #8ed8ef; }

/* 链接生成 */
.grid-form-result { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.result-card { display: flex; flex-direction: column; }
.result-block { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.result-url {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(3, 8, 13, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.result-url code { flex: 1; min-width: 0; font-size: 10.5px; color: #9fd5e7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-card .btn-block { margin-top: 4px; }
.result-placeholder { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 10px 10px; }
.result-orb {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.18), rgba(0, 229, 255, 0.03));
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--cyan);
    margin-bottom: 16px;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.12);
}
.result-orb .icon { width: 26px; height: 26px; }
.result-placeholder h4 { font-size: 14px; margin-bottom: 6px; }
.result-placeholder p { font-size: 11.5px; color: var(--faint); max-width: 300px; line-height: 1.75; }
.result-tips { margin-top: 20px; display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 300px; }
.result-tips li { font-size: 10.5px; color: var(--faint); position: relative; padding-left: 14px; text-align: left; }
.result-tips li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: rgba(0, 229, 255, 0.5); }

/* 个人资料 */
.profile-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 18px; align-items: start; }
.profile-card { display: flex; flex-direction: column; gap: 18px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head > div { flex: 1; min-width: 0; }
.profile-head h3 { font-size: 17px; font-weight: 700; }
.profile-head p { font-size: 10.5px; color: var(--faint); margin-top: 3px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 0; border-top: 1px dashed rgba(255, 255, 255, 0.06); border-bottom: 1px dashed rgba(255, 255, 255, 0.06); }
.profile-stats div { display: flex; flex-direction: column; gap: 2px; }
.profile-stats b { font-size: 17px; font-weight: 700; }
.profile-stats span { font-size: 9.5px; color: var(--faint); }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* 管理：商户行内编辑 */
.row-detail td { background: rgba(0, 229, 255, 0.025); padding: 0 16px; }
.row-edit { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
.row-edit-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.row-edit-grid { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; flex: 1; }
.row-edit-grid .field { min-width: 150px; flex: 1; }
.row-edit-form .field { min-width: 150px; }
.row-edit-reset { padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, 0.06); }
.row-edit .input { height: 36px; font-size: 12px; }
.row-edit .btn { height: 36px; }
.form-card-wrap { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 18px; align-items: start; }
.side-note-card h3 { font-size: 14px; margin-bottom: 12px; }

/* 设置 */
.settings-grid { display: grid; grid-template-columns: 1.45fr 0.75fr; gap: 18px; align-items: start; }
.settings-grid .card { padding: 22px; }
.settings-grid .toggle-row { padding: 6px 0 2px; }
.channel-form { display: flex; flex-direction: column; gap: 16px; }
.channel-form .card { padding: 24px; }
.provider-panel .field { margin-bottom: 14px; }
.sticky-actions { position: sticky; bottom: 16px; z-index: 20; padding: 12px 16px; border-radius: 14px; background: rgba(6, 12, 20, 0.9); border: 1px solid var(--line-soft); backdrop-filter: blur(16px); }

/* ------------------------------------------------------------ 文档 */
.docs-hero { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 64px 40px 34px; }
.docs-hero h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; margin: 12px 0 12px; letter-spacing: -0.02em; }
.docs-hero p { color: var(--muted); font-size: 13px; max-width: 620px; }
.docs-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; font-size: 10.5px; color: var(--faint); }
.docs-meta span { display: inline-flex; align-items: center; gap: 5px; }
.docs-meta .icon { width: 13px; height: 13px; color: rgba(0, 229, 255, 0.55); }
.docs-wrap {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px 80px;
    display: grid;
    grid-template-columns: 176px 1fr;
    gap: 44px;
    align-items: start;
}
.docs-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 1px; }
.docs-nav a { font-size: 11.5px; color: var(--faint); padding: 7px 12px; border-radius: 7px; border-left: 1px solid rgba(255, 255, 255, 0.06); }
.docs-nav a:hover { color: var(--cyan); background: rgba(0, 229, 255, 0.04); border-left-color: rgba(0, 229, 255, 0.5); }
.docs-body { min-width: 0; }
.doc-section { padding: 30px 0 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); scroll-margin-top: 90px; }
.doc-section:first-child { padding-top: 8px; }
.doc-section h2 { font-size: 21px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.doc-section h2 .mono { font-size: 10px; color: rgba(0, 229, 255, 0.45); letter-spacing: 0.12em; }
.doc-section > p { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin-bottom: 12px; }
.doc-section code {
    font-size: 11px;
    color: #8ed8ef;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    word-break: break-all;
}
.doc-callout { display: flex; gap: 10px; padding: 13px 15px; border-radius: 10px; background: rgba(0, 229, 255, 0.04); border: 1px solid rgba(0, 229, 255, 0.14); margin: 14px 0; }
.doc-callout p { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.doc-callout .icon { color: var(--cyan); width: 15px; height: 15px; margin-top: 2px; flex: none; }
.doc-callout.warn { background: rgba(255, 194, 75, 0.04); border-color: rgba(255, 194, 75, 0.16); }
.doc-callout.warn .icon { color: var(--gold); }
.doc-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.doc-kv div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-radius: 9px; background: rgba(255, 255, 255, 0.018); border: 1px solid rgba(255, 255, 255, 0.05); }
.doc-kv span { font-size: 10.5px; color: var(--faint); }
.doc-kv code { font-size: 10.5px; }
.doc-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; counter-reset: docli; }
.doc-list li { position: relative; padding-left: 24px; font-size: 12px; color: var(--muted); line-height: 1.8; counter-increment: docli; }
.doc-list li::before { content: counter(docli); position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 4px; background: rgba(0, 229, 255, 0.1); color: var(--cyan); font-size: 9px; font-family: var(--mono); display: flex; align-items: center; justify-content: center; }
.doc-muted { color: var(--faint) !important; font-size: 11px !important; }
.doc-section .table-wrap { margin: 14px 0 6px; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; }
.doc-section .table th { background: rgba(255, 255, 255, 0.02); }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; background: rgba(255, 255, 255, 0.014); overflow: hidden; }
.faq-item summary { padding: 13px 16px; font-size: 12.5px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--faint); font-size: 15px; font-family: var(--mono); }
.faq-item[open] summary::after { content: "−"; color: var(--cyan); }
.faq-item p { padding: 0 16px 15px; font-size: 11.5px; color: var(--muted); line-height: 1.8; }

/* ------------------------------------------------------------ 404 */
.error-hero { position: relative; z-index: 2; min-height: 68vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.error-hero .glitch { font-size: clamp(90px, 16vw, 180px); font-weight: 900; line-height: 1; margin: 8px 0; color: transparent; -webkit-text-stroke: 1.5px rgba(0, 229, 255, 0.6); position: relative; letter-spacing: 0.05em; }
.error-hero .glitch::before, .error-hero .glitch::after { content: attr(data-text); position: absolute; inset: 0; -webkit-text-stroke: 0; color: var(--magenta); opacity: 0.28; transform: translate(3px, -2px); filter: blur(1px); }
.error-hero .glitch::after { color: var(--cyan); transform: translate(-3px, 2px); opacity: 0.24; }
.error-hero h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.error-hero p { color: var(--muted); font-size: 12.5px; }
.error-hero code { color: #8ed8ef; }
.error-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------ 收银台 */
.page-pay { min-height: 100vh; overflow-x: hidden; }
.pay-shell { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 20px 18px 30px; }
.pay-top { width: 100%; max-width: 460px; display: flex; align-items: center; justify-content: space-between; padding: 8px 2px 22px; }
.pay-top .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.pay-top .brand-mark .icon { width: 18px; height: 18px; }
.pay-top .brand-text strong { font-size: 13.5px; }
.pay-top .brand-text small { font-size: 7px; }
.pay-secure { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: rgba(34, 255, 167, 0.8); border: 1px solid rgba(34, 255, 167, 0.18); background: rgba(34, 255, 167, 0.05); border-radius: 20px; padding: 4px 10px; }
.pay-secure .icon { width: 12px; height: 12px; }
.pay-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 26px 26px 22px;
    border-radius: 24px;
    background:
        radial-gradient(90% 60% at 50% 0, rgba(0, 229, 255, 0.09), transparent 60%),
        linear-gradient(170deg, rgba(13, 23, 37, 0.97), rgba(5, 9, 15, 0.99));
    border: 1px solid rgba(0, 229, 255, 0.16);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: center;
    animation: riseIn 0.4s ease both;
}
.pay-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
}
.pay-status-line { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: 0.12em; color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.2); background: rgba(0, 229, 255, 0.05); border-radius: 20px; padding: 4px 11px; }
.pay-status-line .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulseDot 1.5s infinite; }
.pay-status-line .dot.off { background: #ff8a97; box-shadow: 0 0 8px #ff8a97; animation: none; }
.pay-merchant { margin-top: 18px; font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }
.pay-title { font-size: 17px; font-weight: 700; margin: 6px 0 16px; line-height: 1.4; }
.pay-amount { display: flex; align-items: baseline; justify-content: center; gap: 4px; color: #eafcff; }
.pay-currency { font-size: 20px; font-weight: 600; color: rgba(0, 229, 255, 0.85); }
.pay-amount b { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; text-shadow: 0 0 40px rgba(0, 229, 255, 0.22); }
.pay-expire { font-size: 10.5px; color: var(--faint); margin: 8px 0 22px; }
.pay-expire b { color: var(--gold); font-weight: 600; }
.pay-main { padding-top: 6px; }
.qr-wrap { position: relative; display: inline-flex; padding: 14px; margin: 0 auto 14px; }
.qr-glow { position: absolute; inset: -14px; background: radial-gradient(closest-side, rgba(0, 229, 255, 0.24), transparent); filter: blur(16px); }
.qr-box {
    position: relative;
    width: 206px;
    height: 206px;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35), 0 16px 40px rgba(0, 0, 0, 0.5);
}
.qr-box img, .qr-box canvas { width: 100% !important; height: 100% !important; display: block; }
.qr-tip { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.qr-tip .icon { color: #46e58b; width: 15px; height: 15px; }
.pay-go { margin-top: 6px; }
.pay-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.1); color: var(--faint); font-size: 11.5px; line-height: 1.7; }
.pay-hint .icon { width: 24px; height: 24px; color: rgba(0, 229, 255, 0.5); }
.test-panel { margin-top: 20px; padding: 16px; border-radius: 12px; border: 1px dashed rgba(255, 194, 75, 0.25); background: rgba(255, 194, 75, 0.04); text-align: left; }
.test-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 8px; }
.test-tag .icon { width: 13px; height: 13px; }
.test-panel p { font-size: 10.5px; color: #b99a6b; line-height: 1.65; margin-bottom: 12px; }
.test-panel .btn { margin-top: 2px; }
.pay-success { padding: 22px 0 6px; }
.success-ring {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(34, 255, 167, 0.16), rgba(34, 255, 167, 0.02));
    border: 1px solid rgba(34, 255, 167, 0.35);
    box-shadow: 0 0 44px rgba(34, 255, 167, 0.2);
    animation: pulseDot 2s ease-in-out infinite;
}
.success-check { display: flex; color: var(--green); }
.success-check .icon { width: 38px; height: 38px; }
.pay-success h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.pay-success > p { font-size: 11.5px; color: var(--faint); }
.success-amount { font-size: 30px; font-weight: 800; margin: 14px 0 22px; color: #d9fbff; }
.pay-success .btn { margin-top: 4px; }
.pay-closed { padding: 22px 0 6px; }
.pay-closed h2 { font-size: 18px; margin: 12px 0 6px; }
.pay-closed p { font-size: 11.5px; color: var(--faint); line-height: 1.7; margin-bottom: 20px; }
.pay-error-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(255, 194, 75, 0.08); border: 1px solid rgba(255, 194, 75, 0.24); color: var(--gold); }
.pay-error-icon .icon { width: 26px; height: 26px; }
.pay-info { margin-top: 24px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, 0.07); display: flex; flex-direction: column; gap: 8px; }
.pay-info > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-size: 10.5px; text-align: left; }
.pay-info span { color: var(--faint); flex: none; }
.pay-info b { color: #a9c3d5; font-weight: 500; text-align: right; word-break: break-all; }
.pay-brand { margin-top: 22px; font-size: 9.5px; color: #3f5266; display: flex; align-items: center; gap: 5px; text-align: center; }
.pay-brand .icon { width: 12px; height: 12px; }
.pay-card.is-paid .pay-status-line { color: var(--green); border-color: rgba(34, 255, 167, 0.25); background: rgba(34, 255, 167, 0.06); }
.pay-card.is-paid .pay-status-line .dot { background: var(--green); box-shadow: 0 0 8px var(--green); animation: none; }
.pay-card-error { text-align: center; padding: 36px 26px 28px; }
.pay-card-error h1 { font-size: 19px; margin: 10px 0 8px; }
.pay-error-msg { font-size: 12px; color: #ff9aa5; margin-bottom: 16px; line-height: 1.7; word-break: break-all; }
.pay-error-tips { display: flex; flex-direction: column; gap: 5px; margin-bottom: 20px; font-size: 10.5px; color: var(--faint); }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1180px) {
    .hero { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .stat-band { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-wide { grid-column: span 2; }
    .flow-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-step:nth-child(2)::after { display: none; }
    .grid-2-1 { grid-template-columns: 1fr; }
    .cred-grid, .grid-form-result, .profile-grid, .detail-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .code-showcase { grid-template-columns: 1fr; gap: 28px; }
    .auth-brand { padding: 44px 40px; }
    .auth-shell { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .landing-nav { padding: 0 22px; }
    .landing-links { display: none; }
    .landing-main { padding: 0 22px 50px; }
    .docs-hero, .docs-wrap { padding-left: 24px; padding-right: 24px; }
    .docs-wrap { grid-template-columns: 1fr; gap: 20px; }
    .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
    .docs-nav a { border-left: 0; border: 1px solid rgba(255,255,255,.06); }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-panel { padding: 40px 20px; min-height: 100vh; }
    .sidebar { transform: translateX(-100%); transition: transform 0.28s ease; }
    .main { margin-left: 0; }
    .topbar-menu { display: inline-flex; }
    .content { padding: 22px 20px 44px; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .channel-cards { grid-template-columns: 1fr; }
    .form-card-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .landing-nav { height: 62px; padding: 0 18px; }
    .landing-nav .landing-actions .btn-ghost { display: none; }
    .landing-main { padding: 0 18px 40px; }
    .hero { padding: 40px 0 34px; }
    .hero h1 { font-size: 36px; }
    .hero-sub { font-size: 13px; }
    .hero-actions .btn-lg { height: 44px; padding: 0 18px; font-size: 13px; }
    .hero-chip-a { left: -6px; top: -14px; }
    .hero-chip-b { right: 8px; bottom: -16px; }
    .hero-panel { transform: none; padding: 18px; }
    .panel-amount strong { font-size: 32px; }
    .section { padding-top: 54px; }
    .feature-grid, .flow-grid, .pricing-grid { grid-template-columns: 1fr; }
    .feature-wide { grid-column: span 1; }
    .feature-wide .feature-list { flex-direction: column; }
    .flow-step::after { display: none; }
    .code-showcase { padding: 22px; }
    .cta-inner { padding: 26px; }
    .cta-actions { width: 100%; }
    .cta-actions .btn { flex: 1; }
    .footer-links { gap: 16px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { min-height: 118px; padding: 15px 16px; }
    .stat-value { font-size: 22px; }
    .stat-spark { display: none; }
    .page-head { align-items: flex-start; }
    .page-head h2 { font-size: 22px; }
    .page-head-actions { width: 100%; }
    .page-head-actions .btn { flex: 1; }
    .filter-item { flex: 1 1 140px; min-width: 0; }
    .filter-item.grow { flex-basis: 100%; }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; gap: 12px; }
    .topbar { padding: 0 16px; height: 62px; }
    .topbar-title .crumb { display: none; }
    .topbar-actions .pill-live { display: none; }
    .content { padding: 18px 14px 40px; }
    .card { padding: 18px; }
    .chart-area { height: 190px; }
    .chart-y { min-width: 42px; }
    .chart-value { display: none; }
    .steps { grid-template-columns: 1fr; }
    .detail-list > div { flex-direction: column; gap: 3px; }
    .detail-list dd { text-align: left; justify-content: flex-start; }
    .doc-kv { grid-template-columns: 1fr; }
    .docs-hero { padding: 44px 18px 24px; }
    .docs-wrap { padding: 0 18px 60px; }
    .toast-stack { left: 14px; right: 14px; top: 14px; max-width: none; }
    .row-edit-grid, .row-edit-form { flex-direction: column; align-items: stretch; }
    .row-edit .btn { width: 100%; }
    .sticky-actions { position: static; }
    .profile-grid { gap: 14px; }
    .auth-panel { padding: 26px 16px; }
    .auth-card { padding: 26px 22px; border-radius: 18px; }
    .auth-panel-glow { width: 320px; height: 320px; }
    .pay-shell { padding: 14px 14px 24px; }
    .pay-card { padding: 22px 18px 18px; border-radius: 20px; }
    .pay-amount b { font-size: 46px; }
    .qr-box { width: 188px; height: 188px; }
    .landing-footer { padding: 28px 18px 34px; }
    .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
    .stat-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 31px; }
    .auth-card-head h2 { font-size: 21px; }
    .pay-amount b { font-size: 42px; }
}

/* ------------------------------------------------------------ 交互增强 */
@keyframes toastOut {
    to { opacity: 0; transform: translateX(18px) scale(0.97); }
}
.toast.is-out { animation: toastOut 0.24s ease forwards; }
.toast-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.toast-icon .icon { width: 15px; height: 15px; }

.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading .icon { opacity: 0; }
.btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.copy-inline.is-copied, .code-copy.is-copied { color: var(--green); border-color: rgba(34, 255, 167, 0.4); }
.copy-inline.is-on, .input-action.is-on { color: var(--gold); }

.row-detail > td { padding: 0 18px; background: rgba(0, 229, 255, 0.02); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.row-detail[hidden] { display: none; }
.qr-box .qr-fallback { font-size: 11px; color: #0a1420; word-break: break-all; padding: 10px; text-align: center; line-height: 1.6; }
.qr-box .qr-fallback a { color: #0a6cff; }

@media (max-width: 1024px) {
    .nav-toggle { display: inline-flex; }
    .landing-nav.nav-open .landing-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 18px 14px;
        background: #070b13;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
        animation: riseIn 0.22s ease both;
    }
    .landing-nav.nav-open .landing-links a {
        padding: 12px 4px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    body.sidebar-open, body.nav-locked { overflow: hidden; }
}

/* 减少动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------- 提现 / 商家转账 ---------- */
.mt24 { margin-top: 24px; }

.fee-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px;
    margin: 4px 0 18px;
    font-size: 13px;
    color: var(--muted);
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid var(--line-soft);
    border-radius: 12px;
}

.fee-preview b { color: var(--text); }
.fee-preview b.gold { color: var(--gold); }

@media (max-width: 720px) {
    .fee-preview { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================================
   浅色专业金融主题 · LIGHT FINTECH THEME
   ============================================================ */
:root {
    color-scheme: light;
    --bg: #f4f6f9;
    --bg-deep: #f4f6f9;
    --panel: #ffffff;
    --panel-solid: #ffffff;
    --panel-2: #ffffff;
    --line: #e4e8ef;
    --line-soft: #eaedf2;
    --cyan: #155eef;
    --cyan-deep: #0b4acb;
    --magenta: #d92d20;
    --gold: #b54708;
    --green: #067647;
    --red: #d92d20;
    --text: #101828;
    --muted: #5f6b7a;
    --faint: #8a94a3;
    --radius: 10px;
    --radius-lg: 12px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

html, body { background: var(--bg-deep); }
body { color: var(--text); }

/* 去掉霓虹背景层 */
.bg-stage, .bg-aurora, .bg-aurora-2, .bg-grid, .bg-scan, .bg-beam, .bg-vignette { display: none !important; }

::selection { background: rgba(21, 94, 239, 0.16); color: #101828; }

.kicker { color: #667085; font-weight: 600; letter-spacing: 0.16em; }
.kicker.gold { color: var(--gold); }
.link, .card-link, .auth-switch a { color: var(--cyan); }
.link:hover, .card-link:hover, .auth-switch a:hover { color: var(--cyan-deep); }
.cyan { color: var(--cyan); }
.mag { color: var(--magenta); }
.gold { color: var(--gold); }

/* ---------------- 按钮 ---------------- */
.btn { border-radius: 8px; font-weight: 600; letter-spacing: 0; }
.btn:hover, .btn:active { transform: none; }
.btn-primary { background: var(--cyan); color: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.btn-primary:hover { background: var(--cyan-deep); box-shadow: 0 2px 6px rgba(21, 94, 239, 0.24); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: none; }
.btn-gold:hover { background: #93370d; box-shadow: none; }
.btn-ghost { background: #fff; border-color: #d0d5dd; color: #344054; }
.btn-ghost:hover { background: #f9fafb; border-color: #b9c0ca; color: #101828; }
.btn-danger { background: var(--red); color: #fff; box-shadow: none; }
.btn-danger-ghost { background: #fff; border-color: #fecdca; color: #b42318; }
.btn-danger-ghost:hover { background: #fef3f2; border-color: #f97066; color: #b42318; }
.btn-oauth { height: 46px; background: #07c160; color: #fff; border-color: #07c160; }
.btn-oauth:hover { background: #06ad56; border-color: #06ad56; }
.btn-oauth .icon { width: 18px; height: 18px; }

.icon-btn { background: #fff; border-color: var(--line); color: #667085; border-radius: 8px; }
.icon-btn:hover { background: #f9fafb; border-color: #d0d5dd; color: #101828; }

/* ---------------- 徽标 ---------------- */
.badge { height: 22px; border-radius: 6px; letter-spacing: 0; }
.badge .dot { box-shadow: none; }
.badge.ok { color: #067647; background: #ecfdf3; border-color: #abefc6; }
.badge.wait { color: #b54708; background: #fffaeb; border-color: #fedf89; }
.badge.off { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.badge.warn { color: #b54708; background: #fffaeb; border-color: #fedf89; }

/* ---------------- 品牌 ---------------- */
.brand-mark { background: var(--cyan); border-color: transparent; color: #fff; box-shadow: none; border-radius: 10px; }
.brand-mark .icon { color: #fff; }
.brand-text strong { color: var(--text); }
.brand-text small { color: var(--faint); }

/* ---------------- 面板 / 卡片 ---------------- */
.card, .channel-card, .auth-card, .auth-panel, .hero-panel, .stat-card,
.code-window, .json-pop, .notice-bar, .filter-bar, .pay-card,
.cred-card, .profile-card, .result-card, .stat-band {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    backdrop-filter: none;
}
.card { border-radius: 12px; }
.card::before, .auth-card::before, .stat-card::after, .pay-card::before,
.auth-panel-glow, .hero-glow { display: none; }
.card-tip { background: #f8faff; border-color: #e4ecfd; }
.card-tip .icon { color: var(--cyan); }
.card-tip code { color: #0b4acb; }
.card-sub, .card-title { color: inherit; }

/* ---------------- 表格 ---------------- */
.table th { background: #f9fafb; color: #667085; border-bottom: 1px solid var(--line); font-weight: 600; }
.table td { border-bottom: 1px solid #eef1f5; color: #344054; }
.table-hover tbody tr:hover { background: #f9fafb; }
.table .cell-merchant small { color: var(--faint); }
.row-detail td { background: #f8faff; }
.row-edit-reset { border-top-color: #eaedf2; }
.pay-type { color: #475467; }
.pay-type .icon { color: #067647; }
.avatar { background: #f2f6ff; border-color: #dbe6ff; color: #0b4acb; }
.avatar-gold { background: #fffaeb; border-color: #fedf89; color: #b54708; }

/* ---------------- 表单 ---------------- */
.input, select.input, textarea.input {
    background: #fff;
    border: 1px solid #d0d5dd;
    color: #101828;
    border-radius: 8px;
}
.input::placeholder { color: #98a2b3; }
.input:focus, select.input:focus, textarea.input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.12);
    background: #fff;
}
select.input {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: calc(100% - 13px) center;
    background-size: 12px 12px;
    background-repeat: no-repeat;
    padding-right: 34px;
}
.input[type="date"] { color-scheme: light; }
.input-wrap .input-icon { color: #98a2b3; }
.input-wrap .input-action { color: #98a2b3; }
.input-wrap .input-action:hover { color: var(--cyan); background: #f2f6ff; }
.field-label { color: #475467; }
.field-label .optional { color: #98a2b3; }
.hint, .hint-text { color: #98a2b3; }
.checkbox { color: #475467; }
.checkbox input { background: #fff; border-color: #d0d5dd; }
.checkbox input:checked { background: var(--cyan); border-color: var(--cyan); }
.checkbox input:checked::after { border-color: #fff; }
.switch { background: #eaecf0; border-color: #d0d5dd; }
.switch::after { background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2); }
.switch-label { color: #475467; }
.switch-label input:checked + .switch { background: var(--cyan); border-color: var(--cyan); }
.switch-label input:checked + .switch::after { left: 19px; }

/* ---------------- 登录 / 注册 ---------------- */
.page-auth { background: var(--bg-deep); }
.auth-headline h1 { color: #101828; }
.auth-headline h1 em {
    background: none;
    color: var(--cyan);
    -webkit-text-fill-color: currentColor;
    filter: none;
}
.auth-headline p, .auth-points li { color: #5f6b7a; }
.auth-points .icon { color: #067647; }
.auth-metrics { border-top-color: #eaecf2; }
.auth-metrics b { color: #101828; }
.auth-metrics span { color: #8a94a3; }
.auth-card { border-radius: 14px; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06); }
.auth-card-head h2 { color: #101828; }
.auth-card-head p { color: #8a94a3; }
.auth-demo { background: #f9fafb; border-color: #eaecf2; }
.auth-demo code { color: var(--cyan); }
.auth-demo .sep { color: #d0d5dd; }
.auth-demo-label { color: #667085; }
.auth-switch { color: #8a94a3; }
.auth-note { background: #f8faff; border-color: #dbe6ff; color: #5f6b7a; }
.auth-note .icon { color: var(--cyan); }
.auth-warn { color: #b54708; }
.auth-warn .icon { color: #b54708; }
.auth-foot { color: #8a94a3; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #98a2b3; font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: #eaecf2; flex: 1; }
.auth-oauth-tip { text-align: center; font-size: 11px; color: #8a94a3; margin-top: 10px; }
.fee-notice {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    padding: 12px 14px; margin-bottom: 18px;
    background: #fffaeb; border: 1px solid #fedf89; border-radius: 8px;
}
.fee-notice-label { font-size: 11px; color: #b54708; }
.fee-notice strong { font-size: 20px; color: #b54708; }
.fee-notice-note { font-size: 11px; color: #b54708; opacity: 0.85; }

/* ---------------- 后台框架 ---------------- */
.page-app { background: var(--bg-deep); }
.sidebar { background: #fff; border-right: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
.sidebar-backdrop { background: rgba(16, 24, 40, 0.35); }
.side-scope { background: #f9fafb; border-color: #eaecf2; }
.side-scope span { color: #8a94a3; }
.side-scope em { color: #b4bcc8; }
.nav-group { color: #98a2b3; }
.nav-item { color: #475467; border-radius: 8px; }
.nav-item .icon { color: #98a2b3; }
.nav-item:hover { background: #f4f6f9; color: #101828; }
.nav-item:hover .icon { color: #475467; }
.nav-item.active { background: #eff4ff; color: var(--cyan); }
.nav-item.active .icon { color: var(--cyan); }
.nav-item.active::before { background: var(--cyan); box-shadow: none; }
.page-admin .nav-item.active { background: #fffaeb; color: var(--gold); }
.page-admin .nav-item.active .icon { color: var(--gold); }
.page-admin .nav-item.active::before { background: var(--gold); box-shadow: none; }
.page-admin .side-scope em { color: #d9b48c; }
.side-balance { background: #f9fafb; border-color: #eaecf2; }
.side-balance span { color: #8a94a3; }
.side-balance strong { color: #101828; }
.page-admin .side-balance { background: #fffaeb; border-color: #fedf89; }
.page-admin .side-balance strong { color: var(--gold); }
.side-user { background: #fff; border-color: #eaecf2; }
.side-user:hover { border-color: #d0d5dd; }
.side-user .icon { color: #98a2b3; }
.side-user-meta small { color: #8a94a3; }
.nav-logout:hover { color: #b42318; background: #fef3f2; }
.nav-logout:hover .icon { color: #b42318; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; box-shadow: none; }
.topbar-avatar { background: #f2f6ff; border-color: #dbe6ff; color: #0b4acb; }
.topbar-avatar.gold { background: #fffaeb; border-color: #fedf89; color: var(--gold); }
.notice-bar p { color: #475467; }
.notice-tag { color: var(--cyan); }
.notice-warn { background: #fffaeb; border-color: #fedf89; }
.notice-warn .notice-tag { color: var(--gold); }
.notice-link { color: var(--gold); }

/* ---------------- 数据 / 图表 ---------------- */
.stat-icon { background: #f2f6ff; border-color: #dbe6ff; color: var(--cyan); box-shadow: none; }
.stat-magenta .stat-icon { background: #fef3f2; border-color: #fecdca; color: var(--magenta); }
.stat-gold .stat-icon { background: #fffaeb; border-color: #fedf89; color: var(--gold); }
.stat-spark i { background: #c7d7fe; }
.stat-value { color: #101828; }
.chart-bar { background: #155eef; box-shadow: none; }
.chart-bar.gold { background: #f79009; box-shadow: none; }
.chart-col:hover .chart-bar { filter: none; transform: none; }
.chart-label em { color: #98a2b3; }
.chart-y { color: #98a2b3; }

/* ---------------- 通道 / 凭证 / 文档 ---------------- */
.channel-row { border-bottom-color: #f0f2f6; }
.channel-logo { background: #f9fafb; border-color: #eaecf2; }
.channel-logo.wechat { color: #067647; background: #ecfdf3; border-color: #abefc6; }
.channel-logo.epay { color: #3538cd; background: #eef4ff; border-color: #c7d7fe; }
.channel-logo.test { color: var(--gold); background: #fffaeb; border-color: #fedf89; }
.channel-kv code, .cred-value code { color: #344054; }
.channel-card-stats { border-color: #eef1f5; }
.cred-value { background: #f9fafb; border-color: #eaecf2; }
.cred-tip { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.cred-tip .icon { color: var(--gold); }
.endpoint { background: #f9fafb; border-color: #eaecf2; }
.endpoint-url { color: #0b4acb; }
.step { background: #fff; border-color: var(--line); }
.step-num { color: #98a2b3; }
.step code { color: #0b4acb; }
.doc-section { border-bottom-color: #eaecf2; }
.doc-section h2 .mono { color: #98a2b3; }
.doc-section code { background: #f2f4f7; color: #0b4acb; border-color: #e4e8ef; }
.doc-callout { background: #f2f6ff; border-color: #dbe6ff; }
.doc-callout.warn { background: #fffaeb; border-color: #fedf89; }
.doc-callout.warn .icon { color: var(--gold); }
.doc-kv div { background: #f9fafb; border-color: #eaecf2; }
.doc-list li::before { background: #dbe6ff; color: var(--cyan); }
.doc-section .table-wrap { border-color: #eaecf2; }
.doc-section .table th { background: #f9fafb; }
.docs-nav a { color: #8a94a3; border-left-color: #eaecf2; }
.docs-nav a:hover { color: var(--cyan); background: #f2f6ff; border-left-color: var(--cyan); }
.docs-meta .icon { color: #98a2b3; }
.faq-item { background: #fff; border-color: var(--line); }
.faq-item[open] summary::after { color: var(--cyan); }
.json-pop { color: #344054; }
.copy-inline:hover { color: var(--cyan); background: #f2f6ff; }
.result-url { background: #f9fafb; border-color: #eaecf2; }
.result-url code { color: #344054; }
.result-orb { background: #f2f6ff; border-color: #dbe6ff; color: var(--cyan); box-shadow: none; }
.result-placeholder p { color: #8a94a3; }
.result-tips li { color: #8a94a3; }
.row-detail td { background: #f8faff; }

/* ---------------- 收银台 ---------------- */
.page-pay { background: var(--bg-deep); }
.pay-card { border-radius: 14px; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06); }
.pay-secure { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.pay-status-line { color: #0b4acb; border-color: #dbe6ff; background: #f2f6ff; }
.pay-status-line .dot { background: var(--cyan); box-shadow: none; }
.pay-status-line .dot.off { background: var(--red); box-shadow: none; }
.pay-merchant { color: #8a94a3; }
.pay-title { color: #101828; }
.pay-amount { color: #101828; }
.pay-currency { color: #475467; }
.pay-amount b { color: #101828; text-shadow: none; }
.pay-expire b { color: var(--gold); }
.success-ring { background: #ecfdf3; border-color: #abefc6; box-shadow: none; }
.success-check { color: #067647; }
.success-amount { color: #101828; }
.pay-error-icon { background: #fef3f2; border-color: #fecdca; color: var(--red); box-shadow: none; }
.qr-box { background: #fff; border-color: #eaecf2; }
.pay-simulate-tip { background: #fffaeb; border-color: #fedf89; color: #93370d; }

/* ---------------- Toast ---------------- */
.toast { background: #fff; border-color: var(--line); box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12); backdrop-filter: none; }
.toast p { color: #344054; }
.toast--success { border-color: #abefc6; }
.toast--success .toast-icon { background: #ecfdf3; color: #067647; }
.toast--error { border-color: #fecdca; }
.toast--error .toast-icon { background: #fef3f2; color: #b42318; }
.toast--info .toast-icon { background: #f2f6ff; color: var(--cyan); }
.toast-close:hover { color: #101828; background: #f2f4f7; }

/* ---------------- 首页 ---------------- */
.landing-nav { background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; }
.landing-links a { color: #5f6b7a; }
.landing-links a:hover { color: var(--cyan); }
.hero-pill { background: #f2f6ff; border-color: #dbe6ff; color: #0b4acb; }
.hero-pill i { background: #067647; box-shadow: none; }
.hero h1 em { background: none; color: var(--cyan); -webkit-text-fill-color: currentColor; filter: none; }
.hero-sub { color: #5f6b7a; }
.hero-trust { color: #8a94a3; }
.hero-trust .icon { color: #98a2b3; }
.hero-panel { transform: none; animation: none; }
.hero-chip { background: #fff; border-color: #eaecf2; box-shadow: 0 2px 10px rgba(16, 24, 40, 0.08); animation: none; }
.stat-band-item { background: #fff; }
.stat-band-item > .mono { color: #98a2b3; }
.stat-band-item p { color: #8a94a3; }
.code-head { background: #f9fafb; border-bottom: 1px solid var(--line); color: #667085; }
.code-body { background: #fcfcfd; color: #344054; }
.code-body code { color: #344054; }
.code-dots i { background: #d0d5dd; }
.code-dots i:nth-child(1) { background: #fda29b; }
.code-dots i:nth-child(2) { background: #fec84b; }
.code-dots i:nth-child(3) { background: #75e0a7; }
.code-copy { background: #fff; border: 1px solid var(--line); color: #667085; }
.code-copy:hover { background: #f2f6ff; color: var(--cyan); }
.landing-footer { border-top-color: #eaecf2; color: #8a94a3; }
.code-showcase {
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.price-card { background: #fff; border-color: var(--line); }
.price-card-dark { background: #fff; border-color: #fedf89; }
.price-tag { color: var(--cyan); border-color: #dbe6ff; background: #f2f6ff; }
.price-tag.gold { color: var(--gold); border-color: #fedf89; background: #fffaeb; }
.cta-band { background: #e4e8ef; }
.cta-inner { background: #fff; }
.code-body .c-key { color: #0b4acb; }
.code-body .c-str { color: #067647; }
.code-body .c-arrow { color: #d92d20; }
.code-body .c-comment { color: #98a2b3; }

/* 首页功能卡 / 流程 / 数据面板 */
.feature-card { background: #fff; border-color: var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.feature-card:hover { border-color: #c7d7fe; transform: none; }
.feature-icon { background: #f2f6ff; border-color: #dbe6ff; color: var(--cyan); }
.feature-list li::before { background: var(--cyan); box-shadow: none; }
.feature-corner { color: #98a2b3; }
.flow-step { background: #fff; border-color: var(--line); }
.flow-step::after { border-color: #c7d7fe; }
.flow-num { color: #98a2b3; }
.hero-panel { background: #fff; border-color: var(--line); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06); }
.panel-head { color: #101828; }
.live-dot { background: #067647; box-shadow: none; animation: none; }
.panel-tag { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.panel-amount span { color: #8a94a3; }
.panel-amount strong { color: #101828; text-shadow: none; }
.panel-foot b { color: #101828; }
.panel-bars { border-bottom-color: #eaecf2; }
.pbar { background: #f2f4f7; }
.pbar i { background: #155eef; box-shadow: none; }
.page-btn { background: #fff; border-color: var(--line); color: #5f6b7a; }
.page-btn:hover { border-color: #c7d7fe; color: var(--cyan); }
.page-btn.active { background: #f2f6ff; border-color: #9db8fb; color: var(--cyan); }

@media (max-width: 1024px) {
    .landing-nav.nav-open .landing-links {
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
        backdrop-filter: none;
    }
    .landing-nav.nav-open .landing-links a { border-bottom: 1px solid #f0f2f6; }
}
