﻿@import url("network-assets.css");

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100%;
}

.app-panel {
    background: #f7faff;
    border: 1px solid #e3ebf8;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.asset-page {
    margin-top: 8px;
}

.asset-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    color: #0f2c5f;
}

.asset-header p {
    margin: 8px 0 16px;
    color: #64748b;
    font-size: 14px;
}

.asset-panel {
    padding: 18px 18px 22px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px 18px;
}

.filter-item label,
.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.filter-item input:not([type="checkbox"]),
.filter-item select,
.dialog-card input:not([type="checkbox"]),
.dialog-card select,
.dialog-card textarea,
.toolbar select{
    width: 100%;
    border: 1px solid #dce6f5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(148, 163, 184, 0.12);
}

.dialog-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.required-tip {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

    .required-tip span {
        color: #ef4444;
        font-weight: 700;
    }

.required {
    color: #ef4444;
    margin-left: 2px;
    font-weight: 700;
}

.vr-hotspot-marker {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    overflow: visible;
}

.vr-hotspot-marker.pending {
    pointer-events: none;
}

.vr-hotspot-anchor,
.vr-hotspot-card {
    pointer-events: auto;
}

.vr-hotspot-connector {
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    display: block;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(246, 251, 255, 0.96) 0%, rgba(151, 203, 255, 0.92) 100%);
    box-shadow: 0 0 8px rgba(171, 214, 255, 0.18);
    pointer-events: none;
}

.vr-hotspot-pending-dot {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, #9fd4ff 0%, #59a7ff 42%, #2d7dff 100%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 7px rgba(45, 125, 255, 0.22),
        0 10px 24px rgba(15, 23, 42, 0.22);
}

.vr-hotspot-anchor {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 245, 255, 0.88) 100%);
    border: 1px solid rgba(255, 255, 255, 0.98);
    box-shadow:
        0 10px 20px rgba(15, 23, 42, 0.12),
        0 0 0 2px rgba(120, 188, 255, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    backdrop-filter: blur(12px) saturate(150%);
}

.vr-hotspot-anchor-core {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(180deg, #8ec5ff 0%, #3f8cff 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.94),
        0 0 10px rgba(107, 179, 255, 0.34);
}

.vr-hotspot-card {
    position: absolute;
    left: 30px;
    top: 0;
    transform: translate(0, calc(-50% + var(--vr-card-offset-y, 0px)));
    display: inline-flex;
    align-items: stretch;
    min-height: 35px;
    max-width: 330px;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(246, 250, 255, 0.58) 48%, rgba(234, 244, 255, 0.46) 100%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(190, 224, 255, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.12),
        0 2px 0 rgba(255, 255, 255, 0.68) inset,
        0 1px 0 rgba(255, 255, 255, 0.96),
        0 -10px 24px rgba(255, 255, 255, 0.18) inset,
        0 0 0 0.5px rgba(175, 213, 255, 0.5);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.vr-hotspot-marker[data-side="left"] .vr-hotspot-card {
    left: auto;
    right: 30px;
}

.vr-hotspot-card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            rgba(83, 152, 255, 0.94) 0,
            rgba(83, 152, 255, 0.94) 4px,
            rgba(195, 230, 255, 0.5) 4px,
            rgba(195, 230, 255, 0.2) 16px,
            rgba(195, 230, 255, 0) 30px
        );
    box-shadow:
        inset 4px 0 0 rgba(83, 152, 255, 1),
        inset 16px 0 26px rgba(195, 230, 255, 0.24);
    pointer-events: none;
    z-index: 1;
}

.vr-hotspot-card-content {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 18px 0 16px;
}

.vr-hotspot-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2864d6;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.35));
}

.vr-hotspot-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.vr-hotspot-icon svg circle {
    fill: currentColor;
    stroke: none;
}

.vr-hotspot-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 184px;
    color: #183050;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.vr-hotspot-marker.selected .vr-hotspot-anchor {
    box-shadow:
        0 12px 24px rgba(15, 23, 42, 0.16),
        0 0 0 4px rgba(120, 188, 255, 0.26),
        0 1px 0 rgba(255, 255, 255, 0.94) inset;
}

.vr-hotspot-marker.selected .vr-hotspot-card {
    box-shadow:
        0 22px 42px rgba(15, 23, 42, 0.15),
        0 2px 0 rgba(255, 255, 255, 0.76) inset,
        0 0 0 1px rgba(151, 203, 255, 0.28) inset,
        0 -10px 20px rgba(255, 255, 255, 0.16) inset;
}

@media (max-width: 480px) {
    .vr-hotspot-marker {
        gap: 12px;
    }

    .vr-hotspot-anchor {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }

    .vr-hotspot-anchor-core {
        width: 5px;
        height: 5px;
    }

    .vr-hotspot-card {
        min-height: 35px;
        max-width: 196px;
        border-radius: 5px;
    }

    .vr-hotspot-card::before {
        left: -12px;
        width: 12px;
    }

    .vr-hotspot-card-content {
        gap: 8px;
        padding: 0 13px 0 11px;
    }

    .vr-hotspot-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .vr-hotspot-icon svg {
        width: 18px;
        height: 18px;
    }

    .vr-hotspot-label {
        max-width: 132px;
        font-size: 11px;
    }
}

.filter-item input:not([type="checkbox"]),
.filter-item select,
.dialog-card input:not([type="checkbox"]),
.dialog-card select,
.toolbar select {
    height: 44px;
}

.filter-item select,
.dialog-card select,
.toolbar select {
    padding-right: 42px;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.filter-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar {
    margin: 12px 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    min-width: 96px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary {
    background: #3979ea;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(57, 121, 234, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: #2f69cf;
}

.btn-secondary {
    background: #ffffff;
    border-color: #b8c5db;
    color: #334155;
}

.btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
}

.alert {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff4f4;
    color: #cb3a31;
    border: 1px solid #ffd5d2;
}

.dialog-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999;
}

.dialog-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e8eef8;
}

.dialog-header h3 {
    margin: 0;
    font-size: 22px;
    color: #0f2c5f;
}

.dialog-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 20px;
    cursor: pointer;
}

.dialog-body {
    padding: 20px 24px;
}

.dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px 24px;
}

.full-row {
    grid-column: 1 / -1;
}

.table-action {
    min-width: auto;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #245fcb;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-right: 14px;
}

.table-action:hover:not(:disabled) {
    color: #174aa2;
}

.table-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.table-action-danger {
    color: #d92d20;
}

.table-action-danger:hover:not(:disabled) {
    color: #b42318;
}

button.is-loading {
    pointer-events: none;
    opacity: 0.92;
}

button.is-loading::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: app-btn-spin 0.75s linear infinite;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@keyframes app-btn-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Global fallback styles to ensure side menu always renders correctly */
.menu-shell {
    height: 100vh;
    padding: 10px 0 12px;
    color: #eaf2ff;
    background: #2f73d0;
    overflow-y: auto;
}

.menu-logo-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 14px;
}

.menu-logo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #d9dbe8;
    border: 2px solid #f5f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0.25) saturate(0.9);
}

.menu-group {
    margin-bottom: 6px;
}

.menu-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.menu-group-title-link.active {
    background: #032a63;
}

.menu-link {
    display: block;
    padding: 10px 16px 10px 48px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .12s ease;
}

.menu-link:hover,
.menu-group-title-link:hover {
    background: rgba(9, 48, 109, 0.28);
}

.menu-link.active {
    background: #124a9a;
}

.menu-link-l1 {
    padding-left: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-icon-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.menu-icon-img.small {
    width: 13px;
    height: 13px;
}

.menu-group-last {
    margin-top: 4px;
}

@media (max-width: 640px) {
    .menu-shell {
        height: auto;
        max-height: 168px;
        padding: 8px 0 10px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-logo-wrap {
        justify-content: flex-start;
        margin: 4px 12px 8px;
    }

    .menu-logo {
        width: 40px;
        height: 40px;
        border-width: 1px;
    }

    .menu-logo img {
        width: 18px;
        height: 18px;
    }

    .menu-group {
        margin-bottom: 2px;
    }

    .menu-group-title {
        font-size: 14px;
        padding: 8px 12px;
    }

    .menu-link {
        font-size: 13px;
        padding: 7px 10px 7px 36px;
    }

    .menu-link-l1 {
        padding-left: 12px;
    }
}


/**导入**/
.import-dialog-card {
    width: 760px;
    max-width: min(760px, calc(100vw - 32px));
}

.import-dialog-body {
    padding: 24px 28px 20px;
}

.import-section {
    margin-bottom: 22px;
}

    .import-section + .import-section {
        padding-top: 22px;
        border-top: 1px solid #e8eef8;
    }

.import-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #071a46;
    font-size: 18px;
    font-weight: 800;
}

    .import-section-title::before {
        content: "";
        width: 4px;
        height: 22px;
        border-radius: 999px;
        background: #3979ea;
    }

.import-template-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid #dce6f5;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
}

.import-template-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.import-excel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf7ef;
    color: #16a34a;
    font-size: 22px;
    font-weight: 900;
}

.import-template-name {
    color: #071a46;
    font-size: 16px;
    font-weight: 800;
}

.import-template-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.import-download-btn {
    min-width: 126px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #b8cdf5;
    background: #ffffff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

    .import-download-btn:hover:not(:disabled) {
        background: #f1f6ff;
        border-color: #8fb3ff;
    }

.import-upload-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 92px;
    padding: 18px 20px;
    border: 1px dashed #a9c4f5;
    border-radius: 14px;
    background: #f8fbff;
    cursor: pointer;
}

.import-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.import-upload-button {
    min-width: 142px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #c9d8f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #2563eb;
    font-size: 16px;
    font-weight: 800;
}

.import-upload-text {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

.import-file-info-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.import-file-info {
    color: #64748b;
    font-size: 14px;
}

    .import-file-info strong {
        color: #0f2c5f;
        font-weight: 800;
    }

.import-ready {
    color: #16a34a;
    font-size: 14px;
    font-weight: 800;
}

.import-tip {
    padding: 16px 28px;
    border-top: 1px solid #e8eef8;
    background: #fbfdff;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

    .import-tip strong {
        color: #2563eb;
    }

.import-dialog-actions {
    padding: 18px 28px 24px;
    border-top: 1px solid #e8eef8;
}

/**导出**/
.export-dialog-card {
    width: 960px;
    max-width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
}

.export-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 24px;
    background: linear-gradient(135deg, #fbfdff 0%, #eef5ff 100%);
    border-bottom: 1px solid #e8eef8;
}

.export-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.export-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #5b8ff9 0%, #3979ea 100%);
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(57, 121, 234, 0.24);
}

.export-title-wrap h3 {
    margin: 0;
    color: #0f2c5f;
    font-size: 26px;
    line-height: 1.2;
}

.export-title-wrap p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 15px;
}

.export-dialog-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

.export-group {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid #dce6f5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.export-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #f2f7ff 0%, #eaf2ff 100%);
    color: #0f2c5f;
    font-size: 18px;
    font-weight: 900;
}

    .export-group-title span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .export-group-title span::before {
            content: "";
            width: 24px;
            height: 24px;
            border-radius: 8px;
            background: #dbeafe;
            box-shadow: inset 0 0 0 1px #bfdbfe;
        }

    .export-group-title em {
        color: #47658f;
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
    }

.export-field-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 16px 28px;
    padding: 18px;
}

.export-field-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

    .export-field-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        accent-color: #3979ea;
        cursor: pointer;
    }

    .export-field-item span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.export-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 32px 24px;
    border-top: 1px solid #e8eef8;
    background: #fbfdff;
}

.export-selected-summary {
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

    .export-selected-summary strong {
        margin: 0 4px;
        color: #2563eb;
        font-size: 24px;
        font-weight: 900;
    }

.export-dialog-actions {
    padding: 0;
}

@media (max-width: 900px) {
    .export-field-grid {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}

@media (max-width: 640px) {
    .export-dialog-card {
        width: calc(100vw - 24px);
    }

    .export-dialog-header,
    .export-dialog-body,
    .export-dialog-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .export-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 18px;
    }

    .export-dialog-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .export-dialog-actions {
        justify-content: flex-end;
    }
}

