:root {
    color-scheme: dark;
    --tech-bg: #05070d;
    --tech-bg-2: #090f1c;
    --tech-surface: rgba(10, 18, 31, 0.92);
    --tech-surface-2: rgba(15, 27, 45, 0.86);
    --tech-panel: rgba(11, 24, 39, 0.78);
    --tech-border: rgba(78, 168, 255, 0.28);
    --tech-border-soft: rgba(148, 163, 184, 0.18);
    --tech-text: #e6f3ff;
    --tech-text-soft: #9fb4cc;
    --tech-text-muted: #74859b;
    --tech-cyan: #38d5ff;
    --tech-blue: #4ea8ff;
    --tech-amber: #ffb454;
    --tech-green: #41f29b;
    --tech-red: #ff5d6c;
    --tech-radius: 8px;
    --tech-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
    --tech-font: "Fira Sans", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
    --tech-mono: "Fira Code", "Cascadia Mono", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--tech-bg);
}

body.tech-admin {
    display: block;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 32px;
    color: var(--tech-text);
    background:
            linear-gradient(rgba(56, 213, 255, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(56, 213, 255, 0.04) 1px, transparent 1px),
            linear-gradient(135deg, #05070d 0%, #07101b 44%, #101018 100%);
    background-size: 28px 28px, 28px 28px, auto;
    font-family: var(--tech-font);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: 0;
}

body.tech-admin::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
            linear-gradient(110deg, transparent 0 18%, rgba(56, 213, 255, 0.08) 18.2%, transparent 18.6% 52%, rgba(255, 180, 84, 0.08) 52.2%, transparent 52.6%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%);
}

body.tech-admin a {
    color: var(--tech-cyan);
    text-decoration: none;
    transition: color 180ms ease, opacity 180ms ease;
}

body.tech-admin a:hover {
    color: var(--tech-amber);
}

body.tech-admin img {
    max-width: 100%;
}

body.tech-admin ::selection {
    color: #031019;
    background: var(--tech-cyan);
}

body.tech-admin .tech-topbar {
    position: sticky;
    top: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 10px clamp(14px, 3vw, 32px);
    border-bottom: 1px solid var(--tech-border);
    background: rgba(5, 9, 16, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

body.tech-admin.page-login,
body.tech-admin.page-index {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

body.tech-admin.page-login #app {
    width: min(420px, calc(100vw - 32px));
}

body.tech-admin .tech-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.tech-admin .tech-brand-mark {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(56, 213, 255, 0.72);
    border-radius: 7px;
    background:
            linear-gradient(135deg, rgba(56, 213, 255, 0.2), transparent 52%),
            linear-gradient(315deg, rgba(255, 180, 84, 0.18), transparent 52%);
    box-shadow: 0 0 18px rgba(56, 213, 255, 0.25);
}

body.tech-admin .tech-brand-text {
    min-width: 0;
}

body.tech-admin .tech-brand-name {
    display: block;
    font-family: var(--tech-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--tech-text);
    white-space: nowrap;
}

body.tech-admin .tech-page-name {
    display: block;
    max-width: 48vw;
    overflow: hidden;
    color: var(--tech-text-soft);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.tech-admin .tech-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.tech-admin .tech-nav a {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--tech-border-soft);
    border-radius: 7px;
    color: var(--tech-text-soft);
    background: rgba(15, 27, 45, 0.72);
    font-size: 13px;
}

body.tech-admin .tech-nav a:hover,
body.tech-admin .tech-nav a.is-active {
    color: #04111d;
    border-color: rgba(56, 213, 255, 0.86);
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-blue));
}

body.tech-admin h1,
body.tech-admin h2,
body.tech-admin h3,
body.tech-admin .page-title {
    color: var(--tech-text);
    font-family: var(--tech-mono);
    letter-spacing: 0;
    text-shadow: 0 0 18px rgba(56, 213, 255, 0.22);
}

body.tech-admin h1 {
    margin: 26px auto 10px;
    padding: 0 clamp(16px, 4vw, 48px);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    text-align: center;
}

body.tech-admin h5,
body.tech-admin .page-tip {
    color: var(--tech-text-soft) !important;
}

body.tech-admin #app,
body.tech-admin .main-card,
body.tech-admin .container,
body.tech-admin .wrapper,
body.tech-admin .content,
body.tech-admin .page,
body.tech-admin .main,
body.tech-admin .home-container {
    max-width: min(1560px, calc(100vw - 32px));
    margin-left: auto;
    margin-right: auto;
}

body.tech-admin .main-card {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    background: linear-gradient(180deg, rgba(12, 24, 42, 0.94), rgba(7, 14, 25, 0.94));
    box-shadow: var(--tech-shadow);
}

body.tech-admin #app > div[style*="width:50%"],
body.tech-admin #app > div[style*="width: 50%"] {
    width: min(720px, calc(100vw - 32px)) !important;
}

body.tech-admin .page-title {
    margin: 0 0 10px;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 700;
    text-align: center;
}

body.tech-admin .page-tip {
    margin-bottom: 22px;
    text-align: center;
}

body.tech-admin .el-form,
body.tech-admin form {
    margin: 18px auto;
    padding: 14px 16px 4px;
    border: 1px solid var(--tech-border-soft);
    border-radius: var(--tech-radius);
    background: rgba(7, 16, 29, 0.74);
    box-shadow: none;
}

body.tech-admin.page-login form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.tech-admin .el-form--inline .el-form-item {
    margin-right: 18px;
    margin-bottom: 12px;
}

body.tech-admin .el-form-item__label,
body.tech-admin label {
    color: var(--tech-text-soft);
    font-weight: 600;
}

body.tech-admin .el-input__inner,
body.tech-admin .el-textarea__inner,
body.tech-admin .el-select .el-input__inner,
body.tech-admin input,
body.tech-admin select,
body.tech-admin textarea {
    min-height: 40px;
    color: var(--tech-text);
    border-color: rgba(78, 168, 255, 0.28);
    border-radius: 7px;
    background: rgba(3, 9, 17, 0.8);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.tech-admin .el-input__inner::placeholder,
body.tech-admin .el-textarea__inner::placeholder,
body.tech-admin input::placeholder,
body.tech-admin textarea::placeholder {
    color: var(--tech-text-muted);
}

body.tech-admin .el-input__inner:hover,
body.tech-admin .el-textarea__inner:hover,
body.tech-admin input:hover,
body.tech-admin textarea:hover,
body.tech-admin select:hover {
    border-color: rgba(56, 213, 255, 0.6);
}

body.tech-admin .el-input__inner:focus,
body.tech-admin .el-textarea__inner:focus,
body.tech-admin input:focus,
body.tech-admin textarea:focus,
body.tech-admin select:focus {
    border-color: var(--tech-cyan);
    box-shadow: 0 0 0 3px rgba(56, 213, 255, 0.16);
    outline: none;
}

body.tech-admin .el-button,
body.tech-admin button,
body.tech-admin input[type="button"],
body.tech-admin input[type="submit"] {
    min-height: 40px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
    pointer-events: auto;
    transition: transform 150ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

body.tech-admin .el-select,
body.tech-admin .el-select .el-input,
body.tech-admin .el-select .el-input__inner {
    cursor: pointer;
    pointer-events: auto;
}

body.tech-admin .el-button:not(.el-button--primary),
body.tech-admin button:not(.el-button--primary) {
    color: var(--tech-text);
    border-color: var(--tech-border-soft);
    background: rgba(15, 27, 45, 0.88);
}

body.tech-admin .el-button:not(.el-button--primary):hover,
body.tech-admin button:not(.el-button--primary):hover {
    color: var(--tech-cyan);
    border-color: rgba(56, 213, 255, 0.7);
    background: rgba(15, 38, 60, 0.9);
}

body.tech-admin .el-button--primary,
body.tech-admin .btn-primary {
    color: #031019;
    border-color: rgba(56, 213, 255, 0.95);
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-blue));
    box-shadow: 0 0 22px rgba(56, 213, 255, 0.18);
}

body.tech-admin .el-button--primary:hover,
body.tech-admin .btn-primary:hover {
    color: #031019;
    border-color: var(--tech-amber);
    background: linear-gradient(135deg, var(--tech-amber), var(--tech-cyan));
    box-shadow: 0 0 26px rgba(255, 180, 84, 0.22);
}

body.tech-admin .el-button:active,
body.tech-admin button:active {
    transform: translateY(1px);
}

body.tech-admin .el-table,
body.tech-admin table {
    color: var(--tech-text);
    border: 1px solid var(--tech-border-soft);
    border-radius: var(--tech-radius);
    background: rgba(5, 12, 23, 0.78);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

body.tech-admin .el-table::before,
body.tech-admin .el-table::after {
    background-color: transparent;
}

body.tech-admin .el-table th,
body.tech-admin .el-table tr,
body.tech-admin .el-table td,
body.tech-admin table th,
body.tech-admin table td {
    border-color: rgba(148, 163, 184, 0.12);
    background: transparent;
}

body.tech-admin .el-table th,
body.tech-admin table th {
    color: var(--tech-cyan);
    background: linear-gradient(180deg, rgba(18, 43, 67, 0.96), rgba(10, 22, 37, 0.96));
    font-family: var(--tech-mono);
    font-size: 13px;
    font-weight: 700;
}

body.tech-admin .el-table .cell {
    color: inherit;
    line-height: 1.55;
}

body.tech-admin .el-table--striped .el-table__body tr.el-table__row--striped td {
    background: rgba(78, 168, 255, 0.045);
}

body.tech-admin .el-table__body tr:hover > td,
body.tech-admin table tr:hover > td {
    background: rgba(56, 213, 255, 0.075) !important;
}

body.tech-admin .el-table__empty-block {
    background: rgba(5, 12, 23, 0.82);
}

body.tech-admin .el-table__empty-text {
    color: var(--tech-text-muted);
}

body.tech-admin .Pagination,
body.tech-admin .pagination {
    margin: 22px 0 8px;
    text-align: center;
}

body.tech-admin .el-pagination {
    color: var(--tech-text-soft);
}

body.tech-admin .el-pagination button,
body.tech-admin .el-pager li,
body.tech-admin .el-pagination .el-select .el-input .el-input__inner {
    color: var(--tech-text-soft);
    border-color: var(--tech-border-soft);
    background: rgba(8, 17, 30, 0.85);
}

body.tech-admin .el-pager li.active,
body.tech-admin .el-pager li:hover {
    color: #031019;
    background: var(--tech-cyan);
}

body.tech-admin .el-dialog,
body.tech-admin .el-popover,
body.tech-admin .el-select-dropdown,
body.tech-admin .el-picker-panel,
body.tech-admin .el-message-box {
    color: var(--tech-text);
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    background: #07111f;
    box-shadow: var(--tech-shadow);
}

body.tech-admin .el-popper,
body.tech-admin .el-select-dropdown,
body.tech-admin .el-picker-panel,
body.tech-admin .el-tooltip__popper {
    z-index: 5000 !important;
}

body.tech-admin .el-dialog__title,
body.tech-admin .el-message-box__title,
body.tech-admin .el-dialog__body,
body.tech-admin .el-message-box__content,
body.tech-admin .el-select-dropdown__item {
    color: var(--tech-text);
}

body.tech-admin .el-select-dropdown__item.hover,
body.tech-admin .el-select-dropdown__item:hover {
    background: rgba(56, 213, 255, 0.12);
}

body.tech-admin .el-notification,
body.tech-admin .el-message {
    color: var(--tech-text);
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    background: rgba(7, 17, 31, 0.96);
    box-shadow: var(--tech-shadow);
}

body.tech-admin .el-notification__title,
body.tech-admin .el-notification__content,
body.tech-admin .el-message__content {
    color: var(--tech-text);
}

body.tech-admin .el-tag {
    border-radius: 6px;
    border-color: rgba(56, 213, 255, 0.36);
    color: var(--tech-cyan);
    background: rgba(56, 213, 255, 0.1);
}

body.tech-admin .party-empty {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 93, 108, 0.4);
    border-radius: 6px;
    color: var(--tech-red);
    background: rgba(255, 93, 108, 0.1);
    font-weight: 700;
}

body.tech-admin .grid-container,
body.tech-admin .grid,
body.tech-admin .menu-grid,
body.tech-admin .grid-table,
body.tech-admin .navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    max-width: min(1280px, calc(100vw - 32px));
    margin: 24px auto;
}

body.tech-admin .grid-item,
body.tech-admin .navigation a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 16px;
    border: 1px solid var(--tech-border-soft);
    border-radius: var(--tech-radius);
    background: rgba(10, 20, 35, 0.82);
    box-shadow: none;
    transition: transform 160ms ease, border-color 180ms ease, background 180ms ease;
}

body.tech-admin .grid-item:hover,
body.tech-admin .navigation a:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 213, 255, 0.72);
    background: rgba(13, 30, 49, 0.94);
}

body.tech-admin .grid-item span,
body.tech-admin .navigation a {
    color: var(--tech-text);
    font-weight: 700;
}

body.tech-admin .grid-item a {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(56, 213, 255, 0.32);
    border-radius: 7px;
    color: var(--tech-cyan);
    font-size: 13px;
    white-space: nowrap;
}

body.tech-admin .color-picker {
    display: none !important;
}

body.tech-admin .login-container,
body.tech-admin .login-box {
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    background: rgba(7, 16, 29, 0.9);
    box-shadow: var(--tech-shadow);
}

body.tech-admin .login-container h2,
body.tech-admin .login-box h2 {
    margin-top: 0;
    color: var(--tech-text);
}

body.tech-admin .login-btn,
body.tech-admin .light-btn {
    color: #031019;
    border-color: rgba(56, 213, 255, 0.95);
    background: linear-gradient(135deg, var(--tech-cyan), var(--tech-blue));
    box-shadow: 0 0 22px rgba(56, 213, 255, 0.18);
}

body.tech-admin .light-btn a {
    color: #031019;
}

body.tech-admin .welcome-card,
body.tech-admin .stat-card,
body.tech-admin .info-card {
    border: 1px solid var(--tech-border-soft);
    border-radius: var(--tech-radius);
    color: var(--tech-text);
    background: rgba(10, 20, 35, 0.82);
    box-shadow: none;
}

body.tech-admin .welcome-title,
body.tech-admin .info-title,
body.tech-admin .stat-number {
    color: var(--tech-cyan);
    font-family: var(--tech-mono);
    letter-spacing: 0;
}

body.tech-admin .welcome-subtitle,
body.tech-admin .stat-label,
body.tech-admin .info-list li {
    color: var(--tech-text-soft);
}

body.tech-admin .stats-container,
body.tech-admin .info-section {
    gap: 12px;
}

body.tech-admin .info-list li {
    border-bottom-color: rgba(148, 163, 184, 0.16);
}

body.tech-admin .tech-table-wrap {
    width: 100%;
    overflow-x: auto;
}

body.tech-admin .tech-table-wrap > table {
    min-width: 720px;
}

body.tech-admin [class*="icon"],
body.tech-admin i[class^="el-icon-"] {
    color: inherit;
}

body.tech-admin *:focus-visible {
    outline: 2px solid var(--tech-cyan);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    body.tech-admin .tech-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    body.tech-admin .tech-page-name {
        max-width: calc(100vw - 92px);
    }

    body.tech-admin .tech-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    body.tech-admin #app,
    body.tech-admin .main-card,
    body.tech-admin .container,
    body.tech-admin .wrapper,
    body.tech-admin .content,
    body.tech-admin .page,
    body.tech-admin .main,
    body.tech-admin .home-container {
        max-width: calc(100vw - 20px);
        overflow-x: hidden;
    }

    body.tech-admin .main-card {
        padding: 16px;
    }

    body.tech-admin .el-table {
        max-width: 100%;
        overflow-x: hidden;
    }

    body.tech-admin .el-table__body-wrapper {
        overflow-x: auto;
    }

    body.tech-admin .el-form--inline .el-form-item,
    body.tech-admin .el-form-item {
        display: block;
        margin-right: 0;
    }

    body.tech-admin .el-form-item__content,
    body.tech-admin .el-input,
    body.tech-admin .el-select {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.tech-admin *,
    body.tech-admin *::before,
    body.tech-admin *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
