﻿        :root {
            --shell-bg: #f3f7fd;
            --shell-bg-soft: #eef4ff;
            --shell-panel: #ffffff;
            --shell-panel-strong: #f8fbff;
            --shell-border: rgba(148, 163, 184, 0.22);
            --shell-text: #1f2937;
            --shell-text-soft: #64748b;
            --shell-accent: #2563eb;
            --shell-accent-soft: rgba(37, 99, 235, 0.12);
            --shell-highlight: #0ea5e9;
            --content-bg: linear-gradient(180deg, #f2f6ff 0%, #e7eefc 100%);
        }
        html {
            scroll-behavior: smooth;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft Yahei", sans-serif;
        }
        body {
            background: var(--shell-bg);
            color: #1f2937;
            min-height: 100vh;
        }
        h1 {
            color: #1e293b;
            margin-bottom: 10px;
            font-size: 42px;
            line-height: 1.08;
            letter-spacing: -0.04em;
        }
        .app-shell {
            display: grid;
            grid-template-columns: 270px minmax(0, 1fr);
            min-height: 100vh;
        }
        .sidebar {
            position: sticky;
            top: 0;
            height: 100vh;
            padding: 18px 14px;
            background:
                radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 26%),
                linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
            border-right: 1px solid var(--shell-border);
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .sidebar-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 10px 18px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        }
        .sidebar-logo {
            width: 42px;
            height: 42px;
            border-radius: 14px;
            display: grid;
            place-items: center;
            background: linear-gradient(135deg, #2563eb, #38bdf8);
            box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
            flex-shrink: 0;
        }
        .sidebar-logo svg {
            width: 22px;
            height: 22px;
            stroke: #ffffff;
        }
        .sidebar-brand-title {
            font-size: 16px;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 3px;
        }
        .sidebar-brand-subtitle {
            font-size: 12px;
            color: var(--shell-text-soft);
        }
        .sidebar-nav {
            display: grid;
            gap: 8px;
        }
        .nav-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-radius: 16px;
            border: 1px solid transparent;
            color: #475569;
            text-decoration: none;
            font-size: 15px;
            font-weight: 600;
            transition: 0.22s ease;
        }
        .nav-link:hover,
        .nav-link.is-active {
            color: #1d4ed8;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.14));
            border-color: rgba(37, 99, 235, 0.18);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
        }
        .nav-link svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            flex-shrink: 0;
        }
        .sidebar-footer {
            margin-top: auto;
            padding: 14px 10px 0;
            border-top: 1px solid rgba(148, 163, 184, 0.12);
            color: var(--shell-text-soft);
            font-size: 12px;
            line-height: 1.7;
        }
        .main-shell {
            min-width: 0;
            background: var(--content-bg);
        }
        .topbar {
            position: sticky;
            top: 0;
            z-index: 40;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
            gap: 16px;
            padding: 18px 28px;
            background: rgba(255, 255, 255, 0.86);
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            backdrop-filter: blur(18px);
        }
        .topbar-start {
            min-width: 0;
        }
        .topbar-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 7px 12px;
            border-radius: 999px;
            background: rgba(37, 99, 235, 0.1);
            color: #1d4ed8;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }
        .topbar-center {
            display: flex;
            justify-content: center;
        }
        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            justify-self: end;
            justify-content: flex-end;
            flex-wrap: wrap;
        }
        .topbar-chip {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 9px 14px;
            border-radius: 999px;
            background: rgba(255,255,255,0.8);
            color: #334155;
            border: 1px solid rgba(148, 163, 184, 0.18);
            font-size: 13px;
            font-weight: 600;
        }
        .topbar-avatar {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            background: linear-gradient(135deg, #f8fafc, #cbd5e1);
            box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
        }
        .topbar-logout {
            margin-top: 0;
        }
        .topbar-market-chip {
            min-width: 240px;
            justify-content: center;
            padding: 10px 18px;
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(37, 99, 235, 0.12));
            border-color: rgba(37, 99, 235, 0.18);
            box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
        }
        .topbar-market-chip.is-error {
            background: linear-gradient(135deg, rgba(248, 113, 113, 0.08), rgba(251, 191, 36, 0.08));
            border-color: rgba(248, 113, 113, 0.2);
        }
        .topbar-market-chip.is-stale {
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(249, 115, 22, 0.08));
            border-color: rgba(245, 158, 11, 0.18);
        }
        .topbar-market-status {
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: #94a3b8;
            box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
            flex-shrink: 0;
        }
        .topbar-market-chip.is-live .topbar-market-status {
            background: #22c55e;
            box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
        }
        .topbar-market-chip.is-loading .topbar-market-status {
            background: #38bdf8;
            box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
        }
        .topbar-market-chip.is-stale .topbar-market-status {
            background: #f59e0b;
            box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
        }
        .topbar-market-chip.is-error .topbar-market-status {
            background: #ef4444;
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
        }
        .topbar-market-copy {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }
        .topbar-market-label {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.05em;
            color: #64748b;
            text-transform: uppercase;
        }
        .topbar-market-value {
            font-size: 18px;
            line-height: 1.1;
            color: #0f172a;
            letter-spacing: -0.03em;
        }
        .topbar-market-note {
            font-size: 11px;
            color: #64748b;
            white-space: nowrap;
        }
        .login-shell {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background: #f7f9fb;
            color: #191c1e;
            overflow: hidden;
        }
        .login-topbar {
            position: sticky;
            top: 0;
            z-index: 30;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            padding: 20px 36px;
            background: rgba(247, 249, 251, 0.88);
            backdrop-filter: blur(18px);
        }
        .login-topbar-brand {
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 22px;
            font-weight: 800;
            letter-spacing: -0.04em;
            color: #124af0;
        }
        .login-topbar-nav {
            display: flex;
            align-items: center;
            gap: 30px;
            color: #64748b;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 14px;
            font-weight: 600;
        }
        .login-topbar-nav span {
            cursor: default;
        }
        .login-topbar-action {
            border: none;
            background: transparent;
            color: #0040e0;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 14px;
            font-weight: 700;
            padding-bottom: 4px;
            border-bottom: 2px solid #0040e0;
        }
        .login-stage {
            position: relative;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 48px 36px 64px;
            background: radial-gradient(circle at top right, #eef2ff 0%, #f7f9fb 55%);
        }
        .login-stage::before,
        .login-stage::after {
            content: "";
            position: absolute;
            border-radius: 999px;
            pointer-events: none;
            filter: blur(70px);
        }
        .login-stage::before {
            top: -12%;
            right: -8%;
            width: 38%;
            height: 58%;
            background: rgba(46, 91, 255, 0.12);
        }
        .login-stage::after {
            left: -6%;
            bottom: -18%;
            width: 28%;
            height: 46%;
            background: rgba(73, 89, 163, 0.1);
        }
        .login-card {
            position: relative;
            z-index: 1;
            width: min(1120px, 100%);
            display: grid;
            grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
            gap: 64px;
            align-items: center;
        }
        .login-aside {
            display: flex;
            flex-direction: column;
            gap: 26px;
            padding-right: 32px;
        }
        .login-brand {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        .login-brand-mark {
            width: 56px;
            height: 56px;
            border-radius: 18px;
            display: grid;
            place-items: center;
            background: linear-gradient(135deg, #0040e0 0%, #2e5bff 100%);
            box-shadow: 0 18px 32px rgba(0, 64, 224, 0.2);
        }
        .login-brand-mark svg {
            width: 28px;
            height: 28px;
            stroke: #ffffff;
        }
        .login-brand-title {
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 20px;
            font-weight: 800;
            line-height: 1.1;
            color: #191c1e;
            letter-spacing: -0.03em;
        }
        .login-brand-subtitle {
            margin-top: 4px;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 12px;
            color: #6b7280;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }
        .login-security-badge {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            width: fit-content;
            padding: 8px 14px;
            border-radius: 999px;
            background: #e6e8ea;
            color: #434656;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }
        .login-security-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #0040e0;
            box-shadow: 0 0 0 6px rgba(0, 64, 224, 0.08);
        }
        .login-aside-copy {
            display: grid;
            gap: 16px;
        }
        .login-aside-copy strong {
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 56px;
            line-height: 1.05;
            letter-spacing: -0.05em;
            color: #191c1e;
        }
        .login-aside-copy em {
            font-style: normal;
            color: #0040e0;
        }
        .login-aside-copy p {
            max-width: 520px;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 18px;
            line-height: 1.8;
            color: #434656;
        }
        .login-proof {
            padding-top: 14px;
        }
        .login-avatar-row {
            display: flex;
            align-items: center;
            margin-bottom: 16px;
        }
        .login-avatar {
            width: 48px;
            height: 48px;
            margin-left: -10px;
            border-radius: 50%;
            border: 4px solid #f7f9fb;
            display: grid;
            place-items: center;
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 13px;
            font-weight: 800;
            color: #ffffff;
        }
        .login-avatar:first-child {
            margin-left: 0;
        }
        .login-avatar.is-blue { background: linear-gradient(135deg, #2e5bff, #0040e0); }
        .login-avatar.is-indigo { background: linear-gradient(135deg, #4959a3, #304189); }
        .login-avatar.is-slate { background: linear-gradient(135deg, #64748b, #334155); }
        .login-avatar.is-count {
            background: #e0e3e5;
            color: #434656;
        }
        .login-proof-note {
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 14px;
            font-weight: 600;
            color: #5b6170;
        }
        .login-aside-list {
            display: grid;
            gap: 12px;
        }
        .login-aside-list span {
            display: block;
            padding: 14px 16px;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.7);
            color: #434656;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 14px;
            line-height: 1.75;
            box-shadow: 0 8px 30px rgba(25, 28, 30, 0.04);
        }
        .login-panel {
            position: relative;
            padding: 44px 46px;
            border-radius: 24px;
            background: rgba(255, 255, 255, 0.82);
            box-shadow: 0 8px 32px rgba(25, 28, 30, 0.04);
            backdrop-filter: blur(24px);
        }
        .login-panel::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: #993100;
            border-radius: 24px 24px 0 0;
            opacity: 0.9;
        }
        .login-kicker {
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: #5b6170;
        }
        .login-title {
            margin-top: 16px;
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            color: #191c1e;
            font-size: 42px;
            font-weight: 800;
            line-height: 1.06;
            letter-spacing: -0.05em;
        }
        .login-description {
            margin-top: 10px;
            color: #434656;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 15px;
            line-height: 1.8;
        }
        .login-form {
            margin-top: 28px;
            display: grid;
            gap: 18px;
        }
        .login-field {
            display: grid;
            gap: 10px;
        }
        .login-field span {
            margin-left: 2px;
            color: #191c1e;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }
        .login-field-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .login-control {
            position: relative;
        }
        .login-control-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            stroke: #747688;
            pointer-events: none;
            transition: stroke 0.2s ease;
        }
        .login-control:focus-within .login-control-icon {
            stroke: #0040e0;
        }
        .login-field input {
            width: 100%;
            height: 56px;
            padding: 0 16px 0 48px;
            border-radius: 16px;
            border: none;
            background: #e0e3e5;
            color: #191c1e;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 15px;
            transition: background 0.2s ease, box-shadow 0.2s ease;
        }
        .login-field input::placeholder {
            color: rgba(116, 118, 136, 0.72);
        }
        .login-field input:focus {
            outline: none;
            background: #ffffff;
            box-shadow: 0 0 0 2px rgba(0, 64, 224, 0.16), 0 0 0 7px rgba(0, 64, 224, 0.06);
        }
        .login-inline {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
        }
        .login-code-btn,
        .login-submit {
            border: none;
            border-radius: 16px;
            background: linear-gradient(135deg, #0040e0 0%, #2e5bff 100%);
            color: #ffffff;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 15px;
            font-weight: 700;
            box-shadow: 0 14px 32px rgba(0, 64, 224, 0.18);
            transition: transform 0.18s ease, opacity 0.18s ease;
        }
        .login-code-btn:hover,
        .login-submit:hover {
            opacity: 0.92;
        }
        .login-code-btn:active,
        .login-submit:active {
            transform: scale(0.985);
        }
        .login-code-btn {
            min-width: 134px;
            height: 56px;
            padding: 0 20px;
        }
        .login-submit {
            width: 100%;
            height: 58px;
        }
        .login-link-button {
            border: none;
            background: transparent;
            color: #0040e0;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 14px;
            font-weight: 600;
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 4px;
            cursor: pointer;
        }
        .login-visibility-btn {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: #747688;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }
        .login-field-help {
            margin-top: 2px;
            color: #747688;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 12px;
            line-height: 1.7;
        }
        .login-notice {
            min-height: 22px;
            color: #434656;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 13px;
            line-height: 1.7;
        }
        .login-notice.is-error {
            color: #93000a;
        }
        .login-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding: 20px 36px 28px;
            color: #6b7280;
            font-family: "Inter", "Microsoft YaHei", sans-serif;
            font-size: 13px;
        }
        .login-footer-links {
            display: flex;
            align-items: center;
            gap: 24px;
        }
        .dashboard-content {
            padding: 28px;
        }
        .hero-panel {
            position: relative;
            overflow: hidden;
            margin-bottom: 24px;
            padding: 34px 36px 30px;
            border-radius: 32px;
            background:
                radial-gradient(circle at 92% 10%, rgba(94, 234, 212, 0.14), transparent 16%),
                radial-gradient(circle at 8% 92%, rgba(96, 165, 250, 0.14), transparent 24%),
                linear-gradient(145deg, #fbfdff 0%, #f2f6ff 48%, #edf4ff 100%);
            border: 1px solid rgba(148, 163, 184, 0.14);
            box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
        }
        .hero-panel::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, rgba(255,255,255,0.62) 0%, transparent 26%, transparent 74%, rgba(255,255,255,0.34) 100%);
            pointer-events: none;
        }
        .hero-panel::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(255,255,255,0.82);
            pointer-events: none;
        }
        .hero-header {
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }
        .hero-panel h1 {
            max-width: 760px;
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 46px;
        }
        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 14px;
            padding: 7px 13px;
            border-radius: 999px;
            background: rgba(18, 74, 240, 0.08);
            color: #124af0;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.14em;
            text-transform: uppercase;
        }
        .hero-description {
            max-width: 760px;
            color: #4b5563;
            font-size: 16px;
            line-height: 1.9;
        }
        .hero-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .hero-actions .btn {
            width: auto;
            margin-top: 0;
            padding: 10px 14px;
            border-radius: 14px;
            box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
        }
        .hero-kpi-grid {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
            gap: 14px;
            margin-top: 26px;
        }
        .hero-kpi-card {
            padding: 18px 20px;
            border-radius: 22px;
            background: rgba(255,255,255,0.86);
            border: 1px solid rgba(196, 197, 217, 0.22);
            box-shadow: 0 12px 30px rgba(25, 28, 30, 0.04);
            backdrop-filter: blur(10px);
        }
        .hero-kpi-card.is-primary {
            background: linear-gradient(135deg, #0b44e4 0%, #2e5bff 100%);
            color: #ffffff;
            box-shadow: 0 18px 34px rgba(18, 74, 240, 0.18);
        }
        .hero-kpi-label {
            display: block;
            margin-bottom: 10px;
            color: #7b8495;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .hero-kpi-card.is-primary .hero-kpi-label {
            color: rgba(255,255,255,0.74);
        }
        .hero-kpi-value {
            display: block;
            color: #111827;
            font-size: 30px;
            font-weight: 800;
            letter-spacing: -0.04em;
            line-height: 1.05;
        }
        .hero-kpi-card.is-primary .hero-kpi-value {
            color: #ffffff;
        }
        .hero-kpi-note {
            display: block;
            margin-top: 8px;
            color: #64748b;
            font-size: 12px;
            line-height: 1.7;
        }
        .hero-kpi-card.is-primary .hero-kpi-note {
            color: rgba(255,255,255,0.82);
        }
        .is-hidden {
            display: none !important;
        }
        .container {
            display: grid;
            grid-template-columns: 450px 1fr;
            gap: 20px;
        }
        .container[data-active-view="dashboard"],
        .container[data-active-view="settings"],
        .container[data-active-view="members"],
        .container[data-active-view="detail"],
        .container[data-active-view="product"],
        .container[data-active-view="order"],
        .container[data-active-view="withdraw"],
        .container[data-active-view="chain"],
        .container[data-active-view="recharge"],
        .container[data-active-view="ledger"] {
            grid-template-columns: minmax(0, 1fr);
        }
        .container[data-active-view="dashboard"] .right-column,
        .container[data-active-view="settings"] .right-column,
        .container[data-active-view="members"] .right-column,
        .container[data-active-view="product"] .right-column,
        .container[data-active-view="order"] .right-column,
        .container[data-active-view="withdraw"] .right-column,
        .container[data-active-view="chain"] .right-column,
        .container[data-active-view="recharge"] .right-column,
        .container[data-active-view="ledger"] .right-column {
            display: none;
        }
        .container[data-active-view="detail"] .left-column {
            display: none;
        }
        .container[data-active-view="pyramid"] {
            grid-template-columns: minmax(0, 1fr);
        }
        .container[data-active-view="pyramid"] .left-column {
            display: none;
        }
        .container[data-active-view="pyramid"] .right-column {
            display: block;
        }
        .card {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 24px;
            padding: 22px;
            margin-bottom: 20px;
            border: 1px solid rgba(148, 163, 184, 0.16);
            box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
            backdrop-filter: blur(16px);
        }
        .card h2 {
            color: #1f2937;
            margin-bottom: 15px;
            font-size: 18px;
            border-left: 4px solid #4f46e5;
            padding-left: 12px;
        }
        .section-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }
        .section-head h2 {
            margin-bottom: 0;
        }
        .section-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .inline-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            gap: 10px;
            margin-bottom: 12px;
        }
        .inline-form textarea,
        .inline-form input,
        .inline-form select {
            width: 100%;
            min-height: 40px;
            padding: 8px 10px;
            border: 1px solid #dcdfe6;
            border-radius: 6px;
            font-size: 14px;
            background: #fff;
        }
        .inline-form textarea {
            min-height: 80px;
            resize: vertical;
        }
        .status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 72px;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
        }
        .status-badge.pending {
            background: #fdf6ec;
            color: #b45309;
        }
        .status-badge.approved,
        .status-badge.active,
        .status-badge.watching,
        .status-badge.paid,
        .status-badge.completed {
            background: #ecfdf5;
            color: #047857;
        }
        .status-badge.rejected,
        .status-badge.inactive,
        .status-badge.expired,
        .status-badge.cancelled {
            background: #fef2f2;
            color: #b91c1c;
        }
        .toolbar-note {
            font-size: 12px;
            color: #64748b;
            margin-bottom: 10px;
        }
        .dashboard-card {
            padding: 24px 24px 22px;
            border-radius: 28px;
            background: rgba(255,255,255,0.92);
            border: 1px solid rgba(196, 197, 217, 0.16);
            box-shadow: 0 20px 50px rgba(25, 28, 30, 0.05);
        }
        .dashboard-card h2 {
            border-left: none;
            padding-left: 0;
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 24px;
            color: #191c1e;
        }
        .dashboard-card-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 18px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }
        .dashboard-card-head p {
            max-width: 720px;
            color: #5b6170;
            font-size: 14px;
            line-height: 1.85;
        }
        .dashboard-chart-console {
            padding: 22px;
            border-radius: 30px;
            background: radial-gradient(circle at top left, rgba(46, 91, 255, 0.12), transparent 18%), linear-gradient(180deg, #0c1324 0%, #0a1120 100%);
            border: 1px solid rgba(56, 70, 109, 0.7);
            box-shadow: 0 28px 60px rgba(7, 10, 20, 0.28);
            color: #f8fafc;
        }
        .dashboard-chart-console .dashboard-card-head h2 {
            color: #f8fafc;
        }
        .dashboard-chart-console .dashboard-card-head p {
            color: #7b869f;
            max-width: 640px;
        }
        .dashboard-chart-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 220px;
            gap: 18px;
        }
        .dashboard-chart-main {
            display: flex;
            flex-direction: column;
            gap: 18px;
            padding: 0;
            background: transparent;
            border: none;
        }
        .chart-canvas-wrap {
            position: relative;
        }
        .dashboard-cycle-panel {
            padding: 18px 20px 20px;
            border-radius: 24px;
            background: linear-gradient(180deg, rgba(12, 19, 36, 0.96), rgba(9, 17, 31, 0.98));
            border: 1px solid rgba(55, 76, 123, 0.34);
        }
        .dashboard-cycle-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }
        .dashboard-cycle-title {
            color: #f8fafc;
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 18px;
            font-weight: 800;
            letter-spacing: -0.02em;
        }
        .dashboard-cycle-subtitle {
            color: #7b869f;
            font-size: 12px;
            line-height: 1.7;
        }
        .dashboard-cycle-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
        }
        .dashboard-cycle-card {
            min-height: 132px;
            padding: 18px;
            border-radius: 20px;
            background: linear-gradient(180deg, rgba(15, 22, 40, 0.92), rgba(11, 17, 31, 0.98));
            border: 1px solid rgba(55, 76, 123, 0.34);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 12px;
        }
        .dashboard-cycle-card.is-primary {
            border-color: rgba(31, 117, 224, 0.34);
        }
        .dashboard-cycle-card.is-warning {
            border-color: rgba(245, 158, 11, 0.28);
        }
        .dashboard-cycle-card.is-danger {
            border-color: rgba(239, 68, 68, 0.3);
            background: linear-gradient(180deg, rgba(41, 16, 25, 0.92), rgba(27, 12, 19, 0.98));
        }
        .dashboard-cycle-label {
            color: #7b869f;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }
        .dashboard-cycle-card.is-primary .dashboard-cycle-label {
            color: #8fd7ff;
        }
        .dashboard-cycle-card.is-warning .dashboard-cycle-label {
            color: #fbbf24;
        }
        .dashboard-cycle-card.is-danger .dashboard-cycle-label {
            color: #fca5a5;
        }
        .dashboard-cycle-value {
            color: #f8fafc;
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 32px;
            font-weight: 800;
            letter-spacing: -0.04em;
            line-height: 1.05;
        }
        .dashboard-cycle-copy small {
            display: block;
            margin-top: 8px;
            color: #7b869f;
            font-size: 12px;
            line-height: 1.7;
        }
        .dashboard-cycle-note {
            margin-top: 12px;
            color: #7b869f;
            font-size: 12px;
            line-height: 1.7;
        }
        .dashboard-chart-side {
            display: grid;
            gap: 14px;
        }
        .dashboard-side-card {
            padding: 18px 18px 16px;
            border-radius: 20px;
            background: linear-gradient(180deg, rgba(15, 22, 40, 0.9), rgba(11, 17, 31, 0.96));
            border: 1px solid rgba(55, 76, 123, 0.34);
            min-height: 132px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .dashboard-side-label {
            color: #6ebfff;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }
        .dashboard-side-card.is-peak .dashboard-side-label {
            color: #c084fc;
        }
        .dashboard-side-card.is-average .dashboard-side-label {
            color: #9ca3af;
        }
        .dashboard-side-value {
            margin-top: 8px;
            color: #f8fafc;
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 28px;
            font-weight: 800;
            letter-spacing: -0.05em;
            line-height: 1;
        }
        .dashboard-side-value small {
            font-size: 16px;
            font-weight: 700;
            color: #9aa7c2;
            margin-left: 4px;
        }
        .dashboard-side-note {
            margin-top: 10px;
            color: #7b869f;
            font-size: 12px;
            line-height: 1.7;
        }
        .dashboard-side-accent {
            color: #34d399;
            font-size: 12px;
            font-weight: 700;
            margin-top: 10px;
        }
        .dashboard-side-progress {
            margin-top: 12px;
            height: 6px;
            border-radius: 999px;
            background: rgba(76, 92, 133, 0.4);
            overflow: hidden;
        }
        .dashboard-side-progress-bar {
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, #38bdf8, #60a5fa);
        }
        .dashboard-status-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-top: 16px;
        }
        .dashboard-status-card {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px 18px;
            border-radius: 20px;
            background: linear-gradient(180deg, rgba(15, 22, 40, 0.9), rgba(11, 17, 31, 0.96));
            border: 1px solid rgba(55, 76, 123, 0.34);
        }
        .dashboard-status-card.is-alert {
            border-color: rgba(185, 28, 28, 0.36);
            background: linear-gradient(180deg, rgba(41, 16, 25, 0.92), rgba(27, 12, 19, 0.98));
        }
        .dashboard-status-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background: rgba(31, 117, 224, 0.18);
            color: #8fd7ff;
            font-size: 18px;
            font-weight: 800;
            flex-shrink: 0;
        }
        .dashboard-status-card.is-alert .dashboard-status-icon {
            background: rgba(239, 68, 68, 0.16);
            color: #f87171;
        }
        .dashboard-status-copy span {
            display: block;
            color: #7b869f;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }
        .dashboard-status-copy strong {
            display: block;
            margin-top: 6px;
            color: #f8fafc;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.35;
        }
        .dashboard-status-copy small {
            display: block;
            margin-top: 4px;
            color: #7b869f;
            font-size: 12px;
        }
        .chart-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
            margin-top: 18px;
        }
        .chart-card {
            padding: 20px;
            border-radius: 22px;
            background: linear-gradient(180deg, #ffffff, #f9fbff);
            border: 1px solid rgba(196, 197, 217, 0.22);
            box-shadow: 0 16px 36px rgba(25, 28, 30, 0.04);
        }
        .chart-card h3 {
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 18px;
            color: #191c1e;
            margin-bottom: 8px;
        }
        .chart-card p {
            font-size: 13px;
            color: #5b6170;
            margin-bottom: 14px;
            line-height: 1.75;
        }
        .chart-legend {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        .chart-legend-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
            font-size: 12px;
            font-weight: 600;
        }
        .chart-legend-item::before {
            content: "";
            width: 18px;
            height: 4px;
            border-radius: 999px;
            background: #94a3b8;
            box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
        }
        .chart-legend-item.payout::before {
            background: #2563eb;
        }
        .chart-legend-item.diff::before {
            background: #16a34a;
        }
        .chart-legend-item.nodes::before {
            background: #60a5fa;
        }
        .chart-legend-item.reward::before {
            background: #8b5cf6;
        }
        .chart-canvas {
            width: 100%;
            height: 420px;
            display: block;
            border-radius: 24px;
            background: linear-gradient(180deg, #0d1527, #09101e);
            border: 1px solid rgba(86, 114, 177, 0.18);
        }
        .chart-tooltip {
            position: absolute;
            min-width: 172px;
            max-width: 220px;
            padding: 12px 14px;
            border-radius: 16px;
            background: rgba(9, 17, 31, 0.94);
            border: 1px solid rgba(120, 180, 255, 0.24);
            box-shadow: 0 18px 40px rgba(3, 8, 20, 0.42);
            color: #f8fafc;
            pointer-events: none;
            transform: translate(-50%, calc(-100% - 12px));
            backdrop-filter: blur(10px);
            z-index: 5;
        }
        .chart-tooltip.is-below {
            transform: translate(-50%, 12px);
        }
        .chart-tooltip.is-hidden {
            display: none;
        }
        .chart-tooltip-title {
            display: block;
            margin-bottom: 8px;
            color: #d6eeff;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.02em;
        }
        .chart-tooltip-value {
            display: block;
            margin-bottom: 6px;
            color: #7dd3fc;
            font-family: "Manrope", "Microsoft YaHei", sans-serif;
            font-size: 24px;
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1.05;
        }
        .chart-tooltip-note {
            display: block;
            color: #8ea0c4;
            font-size: 12px;
            line-height: 1.6;
        }
        .chart-tooltip-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            padding: 4px 8px;
            border-radius: 999px;
            background: rgba(125, 211, 252, 0.12);
            color: #c6efff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .mini-summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 14px;
        }
        .mini-summary {
            padding: 16px 18px;
            border-radius: 18px;
            background: linear-gradient(180deg, #ffffff, #f6f8fb);
            border: 1px solid rgba(196, 197, 217, 0.18);
            box-shadow: 0 10px 24px rgba(25, 28, 30, 0.03);
        }
        .mini-summary span {
            display: block;
            font-size: 12px;
            color: #6b7280;
            margin-bottom: 8px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            font-weight: 700;
        }
        .mini-summary strong {
            font-size: 24px;
            color: #191c1e;
            letter-spacing: -0.03em;
        }
        @media (max-width: 1400px) {
            .hero-kpi-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        @media (max-width: 1200px) {
            .hero-kpi-grid {
                grid-template-columns: 1fr;
            }
            .dashboard-chart-layout {
                grid-template-columns: 1fr;
            }
            .dashboard-chart-side {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
            .dashboard-status-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }
        @media (max-width: 1280px) {
            .app-shell {
                grid-template-columns: 1fr;
            }
            .sidebar {
                position: relative;
                height: auto;
                border-right: none;
                border-bottom: 1px solid var(--shell-border);
            }
            .container {
                grid-template-columns: 1fr;
            }
            .container[data-active-view="pyramid"] {
                grid-template-columns: 1fr;
            }
            .container[data-active-view="detail"] .left-column,
            .container[data-active-view="dashboard"] .right-column,
            .container[data-active-view="settings"] .right-column,
            .container[data-active-view="members"] .right-column,
            .container[data-active-view="product"] .right-column,
            .container[data-active-view="order"] .right-column,
            .container[data-active-view="withdraw"] .right-column,
            .container[data-active-view="recharge"] .right-column,
            .container[data-active-view="ledger"] .right-column {
                display: block;
            }
            h1 {
                font-size: 34px;
            }
            .hero-header {
                flex-direction: column;
            }
            .hero-actions {
                width: 100%;
                justify-content: flex-start;
            }
            .hero-actions .btn {
                width: auto;
            }
            .chart-grid {
                grid-template-columns: 1fr;
            }
            .dashboard-chart-console {
                padding: 18px;
            }
            .dashboard-chart-main {
                padding: 0;
            }
            .dashboard-chart-side {
                grid-template-columns: 1fr;
            }
            .dashboard-cycle-grid {
                grid-template-columns: 1fr;
            }
            .dashboard-status-grid {
                grid-template-columns: 1fr;
            }
            .topbar {
                grid-template-columns: 1fr;
            }
            .topbar-center,
            .topbar-actions {
                justify-content: flex-start;
                justify-self: stretch;
            }
        }
        .input-group {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
            margin-bottom: 10px;
        }
        .input-item {
            display: flex;
            flex-direction: column;
        }
        .input-item label {
            font-size: 13px;
            color: #7f8c8d;
            margin-bottom: 4px;
        }
        .input-item input, .input-item select {
            padding: 7px 10px;
            border: 1px solid #dcdfe6;
            border-radius: 4px;
            font-size: 15px;
        }
        .btn {
            background: #409eff;
            color: #fff;
            border: none;
            padding: 9px 18px;
            border-radius: 4px;
            font-size: 15px;
            cursor: pointer;
            margin-top: 8px;
            width: 100%;
            transition: background 0.2s;
        }
        .btn:hover {
            background: #66b1ff;
        }
        .btn:disabled {
            background: #cbd5e1 !important;
            color: #475569;
            cursor: not-allowed;
        }
        .btn-danger {
            background: #f56c6c;
        }
        .btn-danger:hover {
            background: #f78989;
        }
        .btn-success {
            background: #67c23a;
        }
        .btn-success:hover {
            background: #85ce61;
        }
        .btn-warning {
            background: #e6a23c;
        }
        .btn-warning:hover {
            background: #ebb563;
        }
        .btn-small {
            width: auto;
            padding: 4px 8px;
            margin: 0 2px;
            font-size: 12px;
        }
        .btn-group {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
        }
        .member-filter-bar {
            display: grid;
            grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, 1fr)) auto;
            gap: 10px;
            margin-bottom: 10px;
            align-items: center;
        }
        .member-summary-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 12px;
            color: #475569;
            font-size: 12px;
        }
        .member-summary-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 10px;
            border-radius: 999px;
            background: #eff6ff;
            color: #1d4ed8;
            font-weight: 700;
        }
        .member-action-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            align-items: center;
        }
        .member-action-note {
            color: #64748b;
            font-size: 11px;
            line-height: 1.5;
        }
        .user-list {
            margin-top: 15px;
            max-height: 250px;
            overflow-y: auto;
        }
        .user-list-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px;
            background: #f5f7fa;
            border-radius: 4px;
            margin-bottom: 6px;
            font-size: 13px;
        }
        .user-list-item .name {
            font-weight: bold;
        }
        .user-list-item .btn-group-inline {
            display: flex;
            gap: 4px;
        }
        /* ========== 核心：可缩放金字塔容器样式 ========== */
        .pyramid-board {
            border: 1px solid #e6edf5;
            border-radius: 20px;
            overflow: hidden;
            background:
                radial-gradient(circle at top right, rgba(64, 158, 255, 0.12), transparent 28%),
                linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
        }
        .pyramid-panel-header {
            display: grid;
            grid-template-columns: minmax(260px, 420px) minmax(0, 1fr) auto;
            grid-template-areas:
                "copy overview overview"
                "copy search zoom";
            align-items: start;
            gap: 18px;
            padding: 20px;
        }
        .pyramid-header-copy {
            grid-area: copy;
            min-width: 0;
        }
        .pyramid-panel-title {
            font-size: 20px;
            font-weight: 700;
            color: #1f2d3d;
            margin-bottom: 6px;
        }
        .pyramid-panel-subtitle {
            font-size: 13px;
            color: #7b8794;
            line-height: 1.6;
            max-width: 420px;
        }
        .pyramid-overview {
            grid-area: overview;
            display: grid;
            grid-template-columns: repeat(4, minmax(110px, 1fr));
            gap: 10px;
            min-width: 0;
        }
        .pyramid-overview-item {
            background: rgba(255,255,255,0.86);
            border: 1px solid #e6edf5;
            border-radius: 14px;
            padding: 12px 14px;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
        }
        .pyramid-overview-item .label {
            display: block;
            font-size: 12px;
            color: #7b8794;
            margin-bottom: 8px;
        }
        .pyramid-overview-item .value {
            font-size: 20px;
            font-weight: 700;
            color: #1f2d3d;
        }
        .zoom-control {
            grid-area: zoom;
            display: inline-flex;
            align-items: stretch;
            border: 1px solid #d8e3ef;
            border-radius: 14px;
            overflow: hidden;
            background: rgba(255,255,255,0.92);
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
            flex-shrink: 0;
            justify-self: end;
        }
        .zoom-btn {
            min-width: 52px;
            height: 46px;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 18px;
            font-weight: 700;
            color: #1f2d3d;
            transition: background 0.2s, color 0.2s;
            padding: 0 16px;
            border-right: 1px solid #d8e3ef;
        }
        .zoom-btn:last-of-type {
            border-right: none;
        }
        .zoom-btn:hover {
            background: #eff6ff;
            color: #2563eb;
        }
        .zoom-value {
            min-width: 74px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 14px;
            font-size: 13px;
            font-weight: 700;
            color: #2563eb;
            background: #eff6ff;
            border-left: 1px solid #d8e3ef;
        }
        .pyramid-viewer {
            position: relative;
            height: 760px;
            overflow: hidden;
            background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
            border-top: 1px solid #edf2f7;
            border-bottom: 1px solid #edf2f7;
            cursor: grab;
            touch-action: none;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }
        .pyramid-viewer.dragging {
            cursor: grabbing;
        }
        /* 搜索框样式 */
        .search-control {
            grid-area: search;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            border-radius: 12px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            flex-shrink: 0;
            position: relative;
            z-index: 1;
            width: fit-content;
            max-width: 100%;
            justify-self: end;
        }
        .search-control input {
            border: none;
            outline: none;
            font-size: 13px;
            width: 220px;
            background: transparent;
            color: #1f2d3d;
        }
        .search-control input::placeholder {
            color: #94a3b8;
        }
        .search-control .search-btn {
            background: #2563eb;
            color: #fff;
            border: none;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }
        .search-control .search-btn:hover {
            background: #1d4ed8;
        }
        .search-control .clear-btn {
            background: #f1f5f9;
            color: #64748b;
            border: none;
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 12px;
            cursor: pointer;
            transition: background 0.2s;
        }
        .search-control .clear-btn:hover {
            background: #e2e8f0;
        }
        .node-card.highlighted {
            box-shadow: 0 0 0 4px #fbbf24, 0 0 20px rgba(251, 191, 36, 0.5), 0 18px 40px rgba(15, 23, 42, 0.12) !important;
            transform: scale(1.02);
            transition: all 0.3s ease;
        }
        .pyramid-grid {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
            background-size: 28px 28px;
        }
        .pyramid-scale-wrapper {
            position: absolute;
            inset: 0;
            transform-origin: 0 0;
            will-change: transform;
        }
        .pyramid-canvas {
            position: relative;
            width: max-content;
            min-width: 100%;
            min-height: 100%;
            padding: 72px 60px 100px;
        }
        .pyramid-tree {
            position: relative;
            z-index: 2;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 48px;
            width: max-content;
            margin: 0 auto;
        }
        .pyramid-svg-layer {
            position: absolute;
            top: 0;
            left: 0;
            pointer-events: none;
            overflow: visible;
            z-index: 10;
        }
        .pyramid-empty {
            min-width: 420px;
            padding: 36px 42px;
            border-radius: 24px;
            border: 1px dashed #cbd5e1;
            background: rgba(255,255,255,0.88);
            box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
            text-align: center;
        }
        .pyramid-empty h3 {
            font-size: 22px;
            color: #1f2d3d;
            margin-bottom: 10px;
        }
        .pyramid-empty p {
            font-size: 14px;
            color: #7b8794;
            line-height: 1.8;
        }
        /* ========== 树节点与分支独立样式 ========== */
        .tree-node {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            width: max-content;
        }
        .node-card {
            --accent: #64748b;
            --accent-rgb: 100, 116, 139;
            width: 430px;
            padding: 20px;
            border-radius: 16px;
            background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
            border: 2px solid rgba(var(--accent-rgb), 0.15);
            box-shadow:
                0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
            position: relative;
            z-index: 20;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        .node-card:hover {
            transform: translateY(-4px);
            box-shadow:
                0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
            border-color: rgba(var(--accent-rgb), 0.3);
        }
        .node-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.6));
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
        }
        .node-card.is-root {
            transform: translateY(-8px);
        }
        .node-card-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
        }
        .node-level-chip,
        .node-branch-chip {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 6px 12px;
            font-size: 11px;
            font-weight: 700;
            line-height: 1;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        .node-level-chip {
            color: #fff;
            background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.8));
        }
        .node-branch-chip {
            color: #475569;
            background: linear-gradient(135deg, #f8fafc, #e2e8f0);
            border: 1px solid #cbd5e1;
        }
        .node-parent-tag {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            margin-bottom: 12px;
            border-radius: 8px;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: 1px solid #bae6fd;
            font-size: 12px;
            color: #0369a1;
        }
        .node-parent-tag .arrow {
            font-size: 14px;
            color: #0ea5e9;
        }
        .node-parent-tag .parent-name {
            font-weight: 700;
            color: #0c4a6e;
        }
        .node-parent-tag.root-user {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-color: #fcd34d;
            color: #92400e;
        }
        .node-parent-tag.root-user .arrow {
            color: #f59e0b;
        }
        .node-children-banner {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 8px 16px;
            margin-bottom: 14px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--accent) 0%, rgba(var(--accent-rgb), 0.7) 100%);
            color: #fff;
            font-size: 13px;
            font-weight: 600;
        }
        .node-children-banner .arrow {
            font-size: 16px;
        }
        .node-name-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 14px;
        }
        .node-card .name {
            font-size: 21px;
            font-weight: 700;
            color: #0f172a;
            margin: 0;
        }
        .node-id-tag {
            flex-shrink: 0;
            padding: 4px 8px;
            border-radius: 999px;
            background: #f8fafc;
            color: #64748b;
            font-size: 12px;
            font-weight: 600;
        }
        .node-stat-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            margin-bottom: 14px;
        }
        .node-stat {
            padding: 11px 12px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05), rgba(var(--accent-rgb), 0.02));
            border: 1px solid rgba(var(--accent-rgb), 0.1);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }
        .node-stat span {
            display: block;
            font-size: 10px;
            color: #64748b;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .node-stat strong {
            font-size: 16px;
            color: #0f172a;
            font-weight: 700;
        }
        .node-meta {
            display: grid;
            gap: 8px;
        }
        .node-meta-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            font-size: 12px;
            color: #475569;
        }
        .node-meta-row strong {
            color: #0f172a;
            max-width: 58%;
            text-align: right;
            word-break: break-all;
        }
        .node-reward-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-top: 14px;
        }
        .reward-pill {
            padding: 12px 14px;
            border-radius: 12px;
            background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
            border: 1px solid #bae6fd;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        }
        .reward-pill span {
            display: block;
            font-size: 10px;
            color: #0369a1;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }
        .reward-pill strong {
            font-size: 16px;
            color: var(--accent);
            font-weight: 700;
        }
        .node-total-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-top: 12px;
            padding: 14px 16px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent-rgb), 0.06));
            border: 1px solid rgba(var(--accent-rgb), 0.2);
            font-size: 12px;
            color: #475569;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        .node-total-bar strong {
            font-size: 19px;
            color: var(--accent);
            font-weight: 700;
        }
        .node-alert {
            margin-top: 10px;
            padding: 9px 12px;
            border-radius: 12px;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #c2410c;
            font-size: 12px;
            line-height: 1.6;
        }
        .node-detail-btn {
            width: 100%;
            margin-top: 10px;
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            background: #f9fafb;
            color: #374151;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }
        .node-detail-btn:hover {
            background: #e5e7eb;
            border-color: #9ca3af;
        }
        .node-detail-wrapper {
            position: relative;
        }
        .node-detail-wrapper:hover .node-commission-detail {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .node-commission-detail {
            position: absolute;
            bottom: 100%;
            left: 0;
            right: 0;
            margin-bottom: 8px;
            padding: 12px 14px;
            border-radius: 12px;
            background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
            border: 1px solid #bae6fd;
            font-size: 11px;
            line-height: 1.8;
            color: #0c4a6e;
            display: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 100;
        }
        .node-commission-detail strong {
            color: #0369a1;
            display: block;
            margin-bottom: 6px;
        }
        .node-children-shell {
            margin-top: 40px;
            padding: 0;
            border-radius: 0;
            border: none;
            background: transparent;
            box-shadow: none;
        }
        .node-children-label {
            display: inline-flex;
            align-items: center;
            margin-bottom: 16px;
            padding: 6px 12px;
            border-radius: 999px;
            background: #eff6ff;
            color: #2563eb;
            font-size: 12px;
            font-weight: 700;
        }
        .node-children {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 36px;
            width: max-content;
            min-width: 100%;
        }
        .node-child-slot {
            display: flex;
            justify-content: center;
        }
        /* 级别颜色 */
        .level-0 {
            --accent: #64748b;
            --accent-rgb: 100, 116, 139;
        }
        .level-1 {
            --accent: #16a34a;
            --accent-rgb: 22, 163, 74;
        }
        .level-2 {
            --accent: #2563eb;
            --accent-rgb: 37, 99, 235;
        }
        .level-3 {
            --accent: #ea580c;
            --accent-rgb: 234, 88, 12;
        }
        .level-4 {
            --accent: #dc2626;
            --accent-rgb: 220, 38, 38;
        }
        .pyramid-footer {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 14px;
            padding: 16px 20px 20px;
        }
        .pyramid-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .legend-chip {
            --accent: #64748b;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 7px 12px;
            border-radius: 999px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #475569;
            font-size: 12px;
            font-weight: 600;
        }
        .legend-chip i {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--accent);
            display: inline-block;
        }
        .legend-chip.level-0 { --accent: #64748b; }
        .legend-chip.level-1 { --accent: #16a34a; }
        .legend-chip.level-2 { --accent: #2563eb; }
        .legend-chip.level-3 { --accent: #ea580c; }
        .legend-chip.level-4 { --accent: #dc2626; }
        .zoom-tip {
            display: inline-flex;
            align-items: center;
            padding: 8px 12px;
            border-radius: 999px;
            background: #eff6ff;
            color: #2563eb;
            font-size: 12px;
            font-weight: 600;
        }
        @media (max-width: 1450px) {
            .pyramid-panel-header {
                grid-template-columns: minmax(0, 1fr) auto;
                grid-template-areas:
                    "copy copy"
                    "overview overview"
                    "search zoom";
                align-items: start;
            }
            .pyramid-header-copy {
                grid-column: auto;
            }
            .pyramid-overview {
                width: 100%;
            }
        }
        @media (max-width: 900px) {
            .login-shell {
                min-height: 100vh;
            }
            .login-topbar {
                padding: 18px 20px;
            }
            .login-topbar-nav {
                display: none;
            }
            .login-stage {
                padding: 24px 20px 36px;
            }
            .login-card {
                grid-template-columns: minmax(0, 1fr);
                gap: 0;
            }
            .login-aside {
                display: none;
            }
            .login-panel {
                padding: 34px 28px;
            }
            .login-title {
                font-size: 36px;
            }
            .login-footer {
                padding: 16px 20px 24px;
                flex-direction: column;
                align-items: flex-start;
            }
            .login-footer-links {
                flex-wrap: wrap;
                gap: 16px;
            }
            .pyramid-overview {
                grid-template-columns: repeat(2, minmax(120px, 1fr));
            }
            .pyramid-panel-header {
                grid-template-columns: minmax(0, 1fr);
                grid-template-areas:
                    "copy"
                    "overview"
                    "search"
                    "zoom";
            }
            .search-control,
            .zoom-control {
                width: 100%;
                justify-self: stretch;
            }
            .search-control {
                flex-wrap: wrap;
            }
            .search-control input {
                width: 100%;
                min-width: 0;
            }
            .node-card {
                width: 320px;
            }
            .node-stat-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .pyramid-viewer {
                height: 680px;
            }
        }
        @media (max-width: 640px) {
            .login-topbar-brand {
                font-size: 18px;
            }
            .login-topbar-action {
                font-size: 13px;
            }
            .login-panel {
                padding: 28px 20px;
                border-radius: 20px;
            }
            .login-title {
                font-size: 31px;
            }
            .login-inline {
                grid-template-columns: 1fr;
            }
            .login-code-btn {
                width: 100%;
            }
        }
        .result-group {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 14px;
        }
        .result-item {
            padding: 16px 18px;
            border-radius: 18px;
            border: 1px solid rgba(196, 197, 217, 0.18);
            background: linear-gradient(180deg, #ffffff, #f6f8fb);
            box-shadow: 0 10px 24px rgba(25, 28, 30, 0.03);
        }
        .result-item .label {
            font-size: 12px;
            color: #6b7280;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            font-weight: 700;
        }
        .result-item .value {
            font-size: 22px;
            font-weight: 800;
            color: #191c1e;
            margin-top: 10px;
            letter-spacing: -0.03em;
        }
        .result-item.danger {
            background: linear-gradient(180deg, #fff5f5, #fff1f2);
            border-color: rgba(239, 68, 68, 0.18);
        }
        .result-item.success {
            background: linear-gradient(180deg, #f1fcf6, #eefbf3);
            border-color: rgba(34, 197, 94, 0.18);
        }
        .result-item.warning {
            background: linear-gradient(180deg, #fff9ef, #fff6e7);
            border-color: rgba(245, 158, 11, 0.18);
        }
        .result-item.primary {
            background: linear-gradient(180deg, #eff6ff, #edf4ff);
            border-color: rgba(59, 130, 246, 0.18);
        }
        .user-result-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            font-size: 13px;
        }
        .user-result-table th, .user-result-table td {
            border: 1px solid #ebeef5;
            padding: 8px;
            text-align: left;
        }
        .user-result-table th {
            background: #f5f7fa;
            color: #606266;
            font-weight: 600;
        }
        .user-result-table tr:nth-child(even) {
            background: #fafafa;
        }
        .task-table-scroll {
            max-height: 420px;
            overflow: auto;
            border: 1px solid #ebeef5;
            border-radius: 12px;
            background: #fff;
        }
        .task-table-scroll .user-result-table {
            margin-top: 0;
        }
        .task-table-scroll .user-result-table th {
            position: sticky;
            top: 0;
            z-index: 1;
        }
        .note {
            font-size: 12px;
            color: #909399;
            margin-top: 10px;
        }
        .rule-note {
            padding: 18px 20px;
            border-radius: 20px;
            border: 1px solid rgba(245, 158, 11, 0.18);
            background: linear-gradient(180deg, #fff9ef, #fff6e8);
            margin-bottom: 18px;
            font-size: 13px;
            line-height: 1.9;
            color: #9a5b13;
        }
        .edit-tip {
            background: #ecf5ff;
            padding: 8px 10px;
            border-radius: 4px;
            border-left: 3px solid #409eff;
            margin-bottom: 10px;
            font-size: 13px;
            color: #409eff;
        }
        .danger-zone {
            margin-top: 14px;
            padding: 12px 14px;
            border: 1px dashed rgba(239, 68, 68, 0.28);
            border-radius: 10px;
            background: rgba(254, 242, 242, 0.55);
        }
        .danger-zone summary {
            cursor: pointer;
            color: #b91c1c;
            font-size: 13px;
            font-weight: 600;
            user-select: none;
            outline: none;
        }
        .danger-zone summary::-webkit-details-marker {
            display: none;
        }
        .danger-zone summary::before {
            content: '展开危险操作';
        }
        .danger-zone[open] summary::before {
            content: '收起危险操作';
        }
        .danger-zone-content {
            margin-top: 10px;
        }
        .product-cover-tools {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        .product-cover-preview {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 14px;
            border: 1px solid #dbeafe;
            border-radius: 14px;
            background: linear-gradient(135deg, #f8fbff, #eff6ff);
            min-height: 110px;
            margin-bottom: 14px;
        }
        .product-cover-preview.is-empty {
            justify-content: center;
            color: #94a3b8;
            font-size: 13px;
        }
        .product-cover-thumb {
            width: 96px;
            height: 96px;
            border-radius: 12px;
            object-fit: cover;
            border: 1px solid #dbeafe;
            background: #ffffff;
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
            flex-shrink: 0;
        }
        .product-cover-meta {
            display: grid;
            gap: 6px;
            min-width: 0;
        }
        .product-cover-meta strong {
            color: #1e293b;
            font-size: 14px;
        }
        .product-cover-meta span {
            color: #64748b;
            font-size: 12px;
            line-height: 1.6;
            word-break: break-all;
        }
        .product-table-thumb {
            width: 54px;
            height: 54px;
            border-radius: 10px;
            object-fit: cover;
            border: 1px solid #dbeafe;
            background: #fff;
            box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
        }
