    :root {
        --bg: #081120;
        --bg-2: #101c31;
        --panel: rgba(12, 18, 31, 0.82);
        --panel-border: rgba(255, 255, 255, 0.08);
        --text: #ecf2ff;
        --muted: #96a4c4;
        --primary: #5ee7c3;
        --primary-strong: #27c6a7;
        --danger: #ff6b6b;
        --warning: #ffd166;
        --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
        --radius: 18px;
    }

    * {
        box-sizing: border-box;
    }

    [hidden] {
        display: none !important;
    }

    body {
        margin: 0;
        color: var(--text);
        font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
        background:
            radial-gradient(circle at top left, rgba(94, 231, 195, 0.18), transparent 28%),
            radial-gradient(circle at top right, rgba(66, 135, 245, 0.18), transparent 22%),
            linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
        min-height: 100vh;
    }

    .dashboard-body,
    .legacy-body {
        padding: 28px 16px 40px;
    }

    .dashboard-shell {
        width: min(1180px, 100%);
        margin: 0 auto;
        display: grid;
        gap: 18px;
    }

    .hero,
    .panel,
    .legacy-panel {
        background: var(--panel);
        border: 1px solid var(--panel-border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        backdrop-filter: blur(12px);
    }

    .hero {
        padding: 16px 20px;
        display: flex;
        gap: 20px;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        position: relative;
        z-index: 10;
    }

    .hero-kicker {
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .hero h1,
    .panel h2,
    .legacy-panel h1 {
        margin: 0;
        font-size: 28px;
        line-height: 1.2;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .config-menu-wrap {
        position: relative;
        z-index: 30;
    }

    .config-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 25;
        min-width: 180px;
        background: #101827;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        box-shadow: var(--shadow);
        overflow: hidden;
        animation: slideIn 0.2s ease;
    }

    @keyframes slideIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .config-dropdown-item {
        display: block;
        width: 100%;
        padding: 12px 16px;
        border: none;
        background: transparent;
        color: var(--text);
        text-align: left;
        cursor: pointer;
        font-size: 14px;
        transition: background 0.15s ease;
    }

    .config-dropdown-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .input-with-btn {
        display: flex;
        gap: 10px;
    }

    .input-with-btn input {
        flex: 1;
    }

    .type-tabs {
        display: flex;
        background: rgba(255, 255, 255, 0.04);
        padding: 5px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 4px;
    }

    .type-tab {
        flex: 1;
        padding: 10px;
        border: none;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        font-size: 14px;
        border-radius: 8px;
    }

    .type-tab.is-active {
        background: var(--primary);
        color: #03110d;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(94, 231, 195, 0.2);
    }

    .type-tab[disabled] {
        cursor: not-allowed;
        opacity: 0.6;
    }

    .field-notice {
        font-size: 12px;
        color: var(--muted);
        margin-top: 6px;
        padding-left: 4px;
        border-left: 2px solid var(--primary);
    }

    .data-action-group {
        display: flex;
        gap: 10px;
        margin-top: 4px;
    }

    .hero-text,
    .muted,
    .sub-text,
    .notice,
    .legacy-panel p {
        color: var(--muted);
    }

    .panel {
        padding: 20px;
    }

    .panel-head,
    .panel-head-spread {
        display: flex;
        gap: 12px;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }

    .panel-head h2 {
        font-size: 20px;
    }

    .link {
        color: var(--primary);
        text-decoration: none;
    }

    .link:hover {
        text-decoration: underline;
    }

    .notice {
        padding: 14px 16px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .notice-success {
        color: #d9ffef;
        background: rgba(39, 198, 167, 0.15);
        border-color: rgba(39, 198, 167, 0.35);
    }

    .notice-error {
        color: #ffe1e1;
        background: rgba(255, 107, 107, 0.15);
        border-color: rgba(255, 107, 107, 0.35);
    }

    .notice-info {
        color: #eef5ff;
        background: rgba(94, 126, 231, 0.16);
        border-color: rgba(94, 126, 231, 0.35);
    }

    .form-grid {
        display: grid;
        gap: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid label {
        display: grid;
        gap: 8px;
        color: var(--text);
    }

    .form-grid label span {
        font-size: 14px;
        color: var(--muted);
    }

    .form-grid input,
    .form-grid select,
    .form-grid textarea {
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text);
        border-radius: 12px;
        padding: 12px 14px;
        outline: none;
    }

    .form-grid select {
        min-height: 46px;
        appearance: none;
        background-image:
            linear-gradient(45deg, transparent 50%, var(--muted) 50%),
            linear-gradient(135deg, var(--muted) 50%, transparent 50%);
        background-position:
            calc(100% - 20px) 20px,
            calc(100% - 14px) 20px;
        background-size: 6px 6px, 6px 6px;
        background-repeat: no-repeat;
        padding-right: 42px;
    }

    .form-grid select option {
        background: #101827;
        color: var(--text);
    }

    .form-grid input:focus,
    .form-grid select:focus,
    .form-grid textarea:focus {
        border-color: rgba(94, 231, 195, 0.6);
        box-shadow: 0 0 0 4px rgba(94, 231, 195, 0.14);
    }

    .full-width {
        grid-column: 1 / -1;
    }

    .form-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        flex-wrap: wrap;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 11px 16px;
        border-radius: 12px;
        border: 1px solid transparent;
        cursor: pointer;
        font-size: 14px;
        text-decoration: none;
        transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    }

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--primary), var(--primary-strong));
        color: #03110d;
        font-weight: 700;
    }

    .btn-add {
        background: linear-gradient(135deg, #f9a8d4, #ec4899);
        color: #2a0718;
        font-weight: 700;
    }

    .btn-secondary,
    .btn-ghost {
        background: rgba(255, 255, 255, 0.05);
        color: var(--text);
        border-color: rgba(255, 255, 255, 0.10);
    }

    .btn-fetch {
        background: linear-gradient(135deg, #34d399, #059669);
        color: #03140d;
        font-weight: 700;
    }

    .btn-upload {
        background: linear-gradient(135deg, #fbbf24, #d97706);
        color: #201400;
        font-weight: 700;
    }

    .btn-jump {
        background: linear-gradient(135deg, #818cf8, #4f46e5);
        color: #f8fbff;
        font-weight: 700;
    }

    .btn-copy {
        background: linear-gradient(135deg, #60a5fa, #2563eb);
        color: #f8fbff;
        font-weight: 700;
    }

    .btn-edit {
        background: linear-gradient(135deg, #facc15, #d97706);
        color: #201400;
        font-weight: 700;
    }

    .btn-log {
        background: linear-gradient(135deg, #a78bfa, #7c3aed);
        color: #fbfaff;
        font-weight: 700;
    }

    .btn-danger {
        background: linear-gradient(135deg, #f87171, #dc2626);
        color: #fff7f7;
        border-color: rgba(248, 113, 113, 0.45);
        font-weight: 700;
    }

    .table-wrap {
        overflow: auto;
        max-height: calc(100vh - 260px);
        background: rgba(0, 0, 0, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.04);
    }

    /* 自定义滚动条样式 */
    .table-wrap::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .table-wrap::-webkit-scrollbar-track {
        background: transparent;
    }

    .table-wrap::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .table-wrap::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .mobile-category-tabs,
    .mobile-menu-backdrop,
    .mobile-search-toggle,
    .mobile-card-toggle {
        display: none;
    }

    .list-title-row {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .category-filter label {
        display: block;
    }

    .category-filter select {
        min-height: 38px;
        min-width: 150px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: #101827;
        color: var(--text);
        padding: 0 12px;
        outline: none;
    }

    .log-panel {
        display: grid;
        gap: 12px;
        grid-template-rows: auto minmax(0, 1fr);
        min-height: 0;
        padding: 14px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .log-toolbar {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .log-select-form {
        display: flex;
        align-items: end;
        gap: 10px;
        flex-wrap: wrap;
        width: 100%;
    }

    .log-select-form label {
        display: grid;
        gap: 7px;
        min-width: min(100%, 320px);
        color: var(--muted);
        font-size: 13px;
    }

    .log-select-form select {
        min-height: 42px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: #101827;
        color: var(--text);
        padding: 0 12px;
        outline: none;
    }

    .log-viewer {
        min-height: 320px;
        max-height: none;
        overflow: auto;
        margin: 0;
        padding: 14px;
        border-radius: 12px;
        background: rgba(3, 8, 16, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #d7e4f5;
        white-space: pre-wrap;
        word-break: break-word;
        font: 13px/1.6 Consolas, "Liberation Mono", monospace;
    }

    .toolbar-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .toolbar-search {
        width: 240px;
    }

    .toolbar-search input {
        width: 100%;
        min-height: 40px;
        padding: 0 13px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        outline: none;
        background: rgba(3, 8, 16, 0.40);
        color: var(--text);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .toolbar-search input::placeholder {
        color: rgba(150, 164, 196, 0.78);
    }

    .toolbar-search input:focus {
        border-color: rgba(94, 231, 195, 0.58);
        box-shadow: 0 0 0 3px rgba(94, 231, 195, 0.12);
    }

    .list-table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        min-width: 760px;
    }

    .list-table th:nth-child(1),
    .list-table td:nth-child(1) {
        width: 30px;
        font-size: 16px;
        font-weight: 700;
    }

    .list-table th:nth-child(2),
    .list-table td:nth-child(2) {
        width: 40px;
    }

    .list-table th:nth-child(3),
    .list-table td:nth-child(3) {
        width: 150px;
    }

    .list-table th:nth-child(5),
    .list-table td:nth-child(5) {
        width: 180px;
    }

    .list-table th:nth-child(6),
    .list-table td:nth-child(6) {
        width: 300px;
    }

    .list-table th {
        padding: 14px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
        vertical-align: middle;
        color: #cfe0ff;
        font-size: 13px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        position: sticky;
        top: 0;
        background: #101827; /* 必须设置背景颜色，否则滚动时内容会重叠显示 */
        z-index: 5;
    }

    .list-table td {
        padding: 14px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
        vertical-align: middle;
    }

    .empty-cell {
        text-align: center !important;
        padding: 24px 12px !important;
        color: var(--muted);
    }

    .main-text {
        color: var(--text);
        font-weight: 600;
    }

    .category-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 20px;
    }

    .sub-text {
        margin-top: 4px;
        font-size: 12px;
    }

    .date-text {
        margin-top: 2px;
        font-size: 11px;
        color: var(--muted);
        opacity: 0.85;
    }

    .link-cell a {
        color: #9fe6ff;
    }

    .file-url-text {
        color: var(--muted);
    }

    .truncate-link,
    .file-url-text,
    .truncate-text {
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .inline-form {
        display: inline;
        margin: 0;
    }

    .modal-backdrop {
        position: fixed;
        inset: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px;
        background: rgba(3, 8, 16, 0.72);
        backdrop-filter: blur(10px);
    }

    .modal-panel {
        width: min(680px, 100%);
        max-height: min(720px, calc(100vh - 36px));
        overflow: auto;
        background: #101827;
        border: 1px solid rgba(255, 255, 255, 0.10);
        border-radius: 14px;
        box-shadow: var(--shadow);
        padding: 20px;
    }

    .log-modal-panel {
        width: min(980px, 100%);
        height: min(760px, calc(100vh - 36px));
        overflow: hidden;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
    }

    .modal-head h2 {
        margin: 0;
        font-size: 20px;
    }

    .icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        background: rgba(255, 255, 255, 0.05);
        color: var(--text);
        cursor: pointer;
        font-size: 22px;
        line-height: 1;
    }

    .icon-link {
        text-decoration: none;
    }

    .modal-form {
        grid-template-columns: 1fr;
    }

    .loading-overlay {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(3, 8, 16, 0.62);
        backdrop-filter: blur(8px);
    }

    .loading-card {
        min-width: 220px;
        display: grid;
        justify-items: center;
        gap: 14px;
        padding: 24px 28px;
        border-radius: 14px;
        background: rgba(16, 24, 39, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow);
        color: var(--text);
        font-weight: 700;
    }

    .loading-spinner {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 5px solid rgba(255, 255, 255, 0.14);
        border-top-color: #34d399;
        animation: spin 0.8s linear infinite;
    }

    .toast {
        position: fixed;
        left: 50%;
        top: 24px;
        z-index: 45;
        min-width: 220px;
        max-width: min(420px, calc(100vw - 32px));
        padding: 15px 18px;
        border-radius: 12px;
        text-align: center;
        color: var(--text);
        background: rgba(16, 24, 39, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow);
        opacity: 0;
        transform: translate(-50%, -12px) scale(0.96);
        transition: opacity 0.2s ease, transform 0.2s ease;
        pointer-events: none;
        font-weight: 700;
    }

    .toast.is-visible {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    .toast-success {
        border-color: rgba(52, 211, 153, 0.44);
        background: rgba(5, 80, 58, 0.94);
    }

    .toast-error {
        border-color: rgba(255, 107, 107, 0.46);
        background: rgba(96, 24, 31, 0.94);
    }

    .toast-info {
        border-color: rgba(96, 165, 250, 0.44);
        background: rgba(20, 45, 85, 0.94);
    }

    .legacy-body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .legacy-panel {
        width: min(100%, 520px);
        padding: 44px 32px;
        text-align: center;
    }

    .loader {
        border: 7px solid rgba(255, 255, 255, 0.12);
        border-top: 7px solid var(--primary);
        border-radius: 50%;
        width: 54px;
        height: 54px;
        animation: spin 1s linear infinite;
        margin: 22px auto;
    }

    .success-icon {
        color: var(--primary);
        font-size: 24px;
        display: none;
    }

    .error {
        color: #ff9d9d !important;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @media (max-width: 760px) {
        .hero {
            padding: 14px 16px;
        }

        .form-grid {
            grid-template-columns: 1fr;
        }

        .toolbar-actions,
        .toolbar-actions .btn,
        .toolbar-actions .inline-form,
        .toolbar-actions .toolbar-search {
            width: 100%;
        }

        .panel {
            padding: 16px;
        }

        .legacy-panel {
            padding: 32px 20px;
        }

        .hero h1,
        .panel h2,
        .legacy-panel h1 {
            font-size: 22px;
        }
    }
