﻿@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&display=swap");
        /* 引入鸿蒙字体 (使用更稳定的全局地址) */
        @import url("https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/harmonyos-sans/1.1.0/style.css");

        :root {
            --theme-color: #00ffff;
            --bg-color-1: #0f1015;
            --bg-color-2: #1a1a2e;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: "HarmonyOS Sans SC", "PingFang SC", "Lantinghei SC", "Microsoft YaHei", "HanHei SC", "Helvetica Neue", "Open Sans", Arial, sans-serif;
            overflow: hidden;
            background-color: #000;
            background-image: linear-gradient(135deg, var(--bg-color-1), var(--bg-color-2), #050508, #111);
            background-size: 400% 400%;
            animation: gradientBG 30s ease infinite;
            color: #fff;
            transition: all 2s ease;
        }

        body::before {
            content: "";
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: #000;
            z-index: -1;
        }

        body.particles-disabled {
            background-image: none !important;
            animation: none !important;
        }

        #particles-canvas {
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            z-index: 1005; /* 初始置顶以显示粒子 */
            pointer-events: none;
        }

        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .container {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            padding: 1vh 1vw;
        }

        .main-layout {
            display: flex;
            width: 98%;
            max-width: 1700px;
            height: 94vh;
            position: relative;
        }

        .left-panel {
            flex: 1.3;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: visible; /* 允许雷达图辉光溢出 */
        }

        #radarCanvas {
            width: 100%;
            max-width: 900px;
            height: auto;
            aspect-ratio: 1/1;
        }

        .right-panel {
            flex: 0.7;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 0 10px;
            margin-left: 5vw; /* 向右移动一点 */
        }

        .band-info-box {
            display: flex;
            flex-direction: column;
            gap: 35px;
        }

        .band-name {
            font-family: "Orbitron", sans-serif;
            font-size: 3rem;
            font-weight: 900;
            color: var(--theme-color);
            text-shadow: 0 0 15px var(--theme-color);
            transition: all 2s ease; /* 名字颜色和发光慢速切换 */
            animation: nameEntrance 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        }

        @keyframes nameEntrance {
            0% { opacity: 0; transform: scale(0.5) translateZ(-200px); filter: blur(10px); }
            100% { opacity: 1; transform: scale(1) translateZ(0); filter: blur(0); }
        }

        .band-photo-container {
            width: 100%;
            height: 380px;
            background: transparent;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            transition: all 2s ease;
            perspective: 1200px;
        }

        .band-photo {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            opacity: 0;
            transform: scale(0.3) translateZ(-500px);
            transition: opacity 1.2s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .band-desc-container {
            align-self: flex-start;
            display: inline-block;
            padding: 25px 40px;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 12px;
            transition: all 2s ease; /* 边框色变色慢速切换 */
            max-width: 95%;
            opacity: 0; /* 默认隐藏，由动画控制显示 */
            animation: descEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
        }

        @keyframes descEntrance {
            0% { opacity: 0; transform: scale(0.8) translateZ(-100px); }
            100% { opacity: 1; transform: scale(1) translateZ(0); }
        }

        .band-desc {
            font-size: 1.8rem;
            line-height: 1.3;
            color: rgba(255, 255, 255, 0.9);
            transition: all 2s ease;
        }

        .progress-bar-container {
            position: absolute;
            bottom: -20px;
            left: 0;
            width: 100%;
            height: 3px;
            background: rgba(255,255,255,0.05);
        }

        .progress-bar {
            height: 100%;
            background: var(--theme-color);
            box-shadow: 0 0 20px var(--theme-color);
            transition: background 2s ease, box-shadow 2s ease;
            width: 0%;
        }

        /* 底部全局进度条 */
        .global-timeline-container {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 12px;
            background: rgba(255, 255, 255, 0.05);
            z-index: 100;
            cursor: pointer;
        }

        .global-timeline-bar {
            height: 100%;
            background: linear-gradient(90deg, transparent, var(--theme-color));
            width: 0%;
            transition: width 0.1s linear, background 2s ease;
            position: relative;
        }

        .global-timeline-bar::after {
            content: "";
            position: absolute;
            right: 0; top: 50%;
            transform: translateY(-50%);
            width: 4px; height: 100%;
            background: #fff;
            box-shadow: 0 0 10px #fff;
        }

        .timeline-tooltip {
            position: absolute;
            bottom: 25px;
            color: #fff;
            padding: 5px 10px;
            font-family: "Orbitron", "HarmonyOS Sans SC", sans-serif;
            font-size: 0.9rem;
            pointer-events: none;
            display: none;
            z-index: 101;
            text-align: center;
            text-shadow: 0 0 10px var(--theme-color), 0 0 5px #000;
            white-space: pre; /* 支持换行显示显示乐队名 */
        }

        /* 准备页面 */
        #introOverlay {
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            background: #000;
            z-index: 1002; /* 必须比粒子 canvas 还要高，才能挡住雷达 */
            transition: opacity 1s ease;
            pointer-events: auto;
            opacity: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .intro-panel {
            display: flex;
            align-items: center;
            gap: 22px;
            animation: pulse 2s infinite;
        }

        .intro-action {
            border: 1px solid rgba(255, 255, 255, 0.28);
            background: rgba(255, 255, 255, 0.06);
            color: rgba(255, 255, 255, 0.82);
            font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
            cursor: pointer;
            transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
            width: 78px;
            height: 78px;
            border-radius: 50%;
            display: grid;
            place-items: center;
        }

        .intro-action:hover {
            transform: translateY(-2px);
            border-color: var(--theme-color);
            background: rgba(255, 255, 255, 0.12);
            color: #fff;
        }

        .intro-icon,
        .icon-button img {
            width: 24px;
            height: 24px;
            display: block;
            pointer-events: none;
            filter: brightness(0) invert(1);
            opacity: 0.86;
        }

        @keyframes pulse {
            0% { opacity: 0.2; }
            50% { opacity: 0.8; }
            100% { opacity: 0.2; }
        }

        #introOverlay.started .intro-panel {
            display: none;
        }

        .config-modal {
            position: fixed;
            inset: 0;
            z-index: 1006;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(0, 0, 0, 0.72);
        }

        .config-modal.open {
            display: flex;
        }

        .config-dialog {
            width: min(1080px, 96vw);
            max-height: 88vh;
            overflow: hidden;
            display: grid;
            grid-template-rows: auto auto 1fr auto;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 8px;
            background: rgba(8, 10, 14, 0.96);
            box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
        }

        .detail-dialog {
            grid-template-rows: auto 1fr auto;
        }

        .config-header,
        .config-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 18px 22px;
            border-color: rgba(255, 255, 255, 0.1);
        }

        .config-header { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
        .config-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); }

        .config-footer-info {
            display: grid;
            gap: 6px;
            min-width: 0;
        }

        .project-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px 12px;
            align-items: center;
            color: rgba(255, 255, 255, 0.58);
            font-size: 0.82rem;
            line-height: 1.45;
        }

        .project-meta span {
            color: rgba(255, 255, 255, 0.74);
        }

        .project-meta a {
            color: var(--theme-color);
            text-decoration: none;
        }

        .project-meta a:hover {
            text-decoration: underline;
        }

        .config-title {
            font-family: "Orbitron", "HarmonyOS Sans SC", sans-serif;
            font-size: 1.15rem;
            color: var(--theme-color);
            text-shadow: 0 0 12px var(--theme-color);
        }

        .config-body {
            overflow: auto;
            padding: 20px 22px;
        }

        .config-tabs {
            display: flex;
            gap: 10px;
            padding: 14px 22px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .config-tab {
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-bottom: none;
            border-radius: 7px 7px 0 0;
            background: rgba(255, 255, 255, 0.04);
            color: rgba(255, 255, 255, 0.68);
            padding: 10px 16px;
            font: 0.95rem "HarmonyOS Sans SC", "Microsoft YaHei", Arial, sans-serif;
            cursor: pointer;
        }

        .config-tab.active {
            color: #fff;
            border-color: rgba(255, 255, 255, 0.22);
            background: rgba(255, 255, 255, 0.1);
        }

        .config-tab-panel {
            display: none;
        }

        .config-tab-panel.active {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
        }

        .config-section {
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            padding: 16px;
            background: rgba(255, 255, 255, 0.035);
        }

        .config-section.wide {
            grid-column: 1 / -1;
        }

        .config-section h3 {
            margin-bottom: 14px;
            font-size: 1rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.92);
        }

        .io-section {
            display: grid;
            gap: 12px;
        }

        .io-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: flex-end;
        }

        .config-field {
            display: grid;
            gap: 7px;
            margin-bottom: 12px;
            color: rgba(255, 255, 255, 0.72);
            font-size: 0.92rem;
        }

        .config-field input,
        .config-field textarea {
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.34);
            color: #fff;
            font: 0.95rem/1.45 "HarmonyOS Sans SC", "Microsoft YaHei", Arial, sans-serif;
            padding: 9px 10px;
        }

        .config-field textarea {
            min-height: 112px;
            resize: vertical;
        }

        .config-json-textarea {
            width: 100%;
            min-height: 360px;
            border: 1px solid rgba(255, 255, 255, 0.16);
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.34);
            color: #fff;
            font: 0.86rem/1.55 Consolas, "SFMono-Regular", "Liberation Mono", monospace;
            padding: 12px;
            resize: vertical;
            white-space: pre;
        }

        .config-field.compact {
            margin-bottom: 0;
        }

        .file-field {
            max-width: 220px;
        }

        .file-field input[type="file"] {
            width: 220px;
            max-width: 100%;
            padding: 7px 8px;
        }

        .config-toggle-row {
            display: flex;
            flex-wrap: wrap;
            gap: 12px 18px;
            color: rgba(255, 255, 255, 0.78);
            font-size: 0.92rem;
        }

        .config-toggle-row label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .config-button {
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            padding: 9px 14px;
            font: 0.95rem "HarmonyOS Sans SC", "Microsoft YaHei", Arial, sans-serif;
            cursor: pointer;
        }

        .config-button.primary {
            border-color: var(--theme-color);
            background: var(--theme-color);
            color: #001010;
            font-weight: 700;
        }

        .icon-button {
            width: 34px;
            height: 34px;
            display: inline-grid;
            place-items: center;
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.06);
            cursor: pointer;
        }

        .section-heading-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }

        .section-heading-row h3 {
            margin-bottom: 0;
        }

        .list-footer-action {
            display: flex;
            justify-content: flex-end;
            margin-top: 12px;
        }

        .item-list {
            display: grid;
            gap: 12px;
        }

        .item-card {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) minmax(170px, 240px);
            gap: 12px;
            align-items: start;
            padding: 12px;
            padding-right: 20px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.22);
            position: relative;
        }

        .compact-item-row {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            padding: 10px 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.22);
        }

        .compact-item-row.dragging {
            opacity: 0.45;
        }

        .compact-item-name {
            color: rgba(255, 255, 255, 0.92);
            font-weight: 700;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .compact-item-actions {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .item-card.dragging {
            opacity: 0.45;
        }

        .dimension-card {
            grid-template-columns: auto minmax(0, 1fr);
        }

        .drag-handle {
            width: 28px;
            height: 100%;
            min-height: 42px;
            display: grid;
            place-items: center;
            color: rgba(255, 255, 255, 0.48);
            cursor: grab;
            user-select: none;
            font-size: 1.15rem;
        }

        .drag-handle[draggable="true"] {
            cursor: grab;
        }

        .item-fields {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }

        .item-fields .span-2 {
            grid-column: span 2;
        }

        .item-fields .span-4 {
            grid-column: 1 / -1;
        }

        .item-actions {
            position: absolute;
            top: 12px;
            right: 12px;
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        .score-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .asset-picker-row {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 10px;
            align-items: end;
        }

        .asset-picker-group {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            align-items: end;
        }

        .asset-status {
            align-self: end;
            font-size: 0.84rem;
            line-height: 36px;
            min-width: 0;
        }

        .asset-status.missing {
            color: rgba(255, 255, 255, 0.42);
            font-style: italic;
        }

        .asset-status.selected {
            color: #67e48f;
            font-style: normal;
            font-weight: 600;
        }

        .config-status {
            color: rgba(255, 255, 255, 0.62);
            font-size: 0.9rem;
        }

        @media (max-width: 820px) {
            .config-tab-panel.active {
                grid-template-columns: 1fr;
            }

            .item-card {
                grid-template-columns: 1fr;
            }

            .item-fields {
                grid-template-columns: 1fr;
            }

            .item-fields .span-2,
            .item-fields .span-4 {
                grid-column: 1 / -1;
            }

            .asset-picker-group {
                grid-template-columns: 1fr;
            }
        }

        .session-timer {
            position: fixed;
            bottom: 20px;
            right: 30px;
            font-family: "Orbitron", sans-serif;
            font-size: 0.9rem;
            color: rgba(255,255,255,0.4);
            letter-spacing: 2px;
            z-index: 10;
        }

        /* 全屏模式下的 UI 隐藏 */
        :fullscreen body { cursor: none; }
        :fullscreen .global-timeline-container,
        :fullscreen #globalTimeline,
        :fullscreen .progress-bar-container,
        :fullscreen .session-timer {
            display: none !important;
        }

        .fade-out {
            opacity: 0;
            transform: scale(0.8) translateZ(-100px);
            transition: all 0.5s ease-in;
        }

        .global-bg-image {
            position: fixed;
            inset: 0;
            z-index: 0;
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.8s ease;
        }

        .detail-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(170px, 240px);
            gap: 16px;
        }

        .detail-panel {
            display: block;
        }

        .mvp-video-overlay {
            position: fixed;
            inset: 0;
            z-index: 1003;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: #000;
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
            transition: opacity var(--mvp-black-fade-duration, 900ms) ease,
                visibility 0s linear var(--mvp-black-fade-duration, 900ms);
        }

        .mvp-video-overlay.active {
            opacity: 1;
            visibility: visible;
            transition: opacity var(--mvp-black-fade-duration, 900ms) ease;
        }

        .mvp-video-overlay.leaving {
            opacity: 0;
        }

        .mvp-video-player {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transform: scale(1.04);
            transition: opacity 0.38s ease, transform 2.2s ease;
        }

        .mvp-video-overlay.video-ready .mvp-video-player {
            opacity: 1;
            transform: scale(1);
        }

        .mvp-video-overlay::after {
            content: "";
            position: absolute;
            inset: auto 0 0;
            height: 34vh;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0));
            pointer-events: none;
        }

        .mvp-video-name {
            position: absolute;
            left: 50%;
            bottom: clamp(34px, 7vh, 86px);
            z-index: 1;
            max-width: min(92vw, 1500px);
            color: #fff;
            font-family: "Orbitron", "HarmonyOS Sans SC", sans-serif;
            font-size: clamp(3.8rem, 9.5vw, 10rem);
            font-weight: 900;
            line-height: 0.95;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 0;
            text-shadow:
                0 0 8px #fff,
                0 0 28px var(--theme-color),
                0 0 62px var(--theme-color),
                0 10px 26px rgba(0, 0, 0, 0.85);
            white-space: nowrap;
            opacity: 0;
            transform: translate(-50%, 120%) scale(0.82);
            filter: blur(14px);
        }

        .mvp-video-name.active {
            animation: mvpNameEnter 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards,
                mvpNamePulse 1.1s ease-in-out 0.72s infinite alternate;
        }

        .mvp-video-name.exit {
            animation: mvpNameExit 0.48s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
        }

        @keyframes mvpNameEnter {
            0% {
                opacity: 0;
                transform: translate(-50%, 120%) scale(0.82);
                filter: blur(14px);
            }
            58% {
                opacity: 1;
                transform: translate(-50%, -8%) scale(1.08);
                filter: blur(0);
            }
            76% {
                transform: translate(-50%, 3%) scale(0.98);
            }
            100% {
                opacity: 1;
                transform: translate(-50%, 0) scale(1);
                filter: blur(0);
            }
        }

        @keyframes mvpNamePulse {
            from {
                text-shadow:
                    0 0 8px #fff,
                    0 0 28px var(--theme-color),
                    0 0 62px var(--theme-color),
                    0 10px 26px rgba(0, 0, 0, 0.85);
            }
            to {
                text-shadow:
                    0 0 14px #fff,
                    0 0 42px var(--theme-color),
                    0 0 94px var(--theme-color),
                    0 10px 26px rgba(0, 0, 0, 0.85);
            }
        }

        @keyframes mvpNameExit {
            0% {
                opacity: 1;
                transform: translate(-50%, 0) scale(1);
                filter: blur(0);
            }
            100% {
                opacity: 0;
                transform: translate(-50%, 85%) scale(0.9);
                filter: blur(10px);
            }
        }
