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

        body {
            font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            overflow: hidden;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        }

        /* 加载指示器 */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            transition: opacity 0.5s ease-out;
        }

        .loading-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loader {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255, 255, 255, 0.1);
            border-top: 4px solid #00d4ff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .loading-text {
            color: #fff;
            font-size: 18px;
            font-weight: 500;
            text-align: center;
            padding: 0 20px;
        }

        .loading-subtext {
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            margin-top: 10px;
            text-align: center;
            padding: 0 20px;
        }

        /* 进度条 */
        .progress-bar {
            width: 200px;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            margin-top: 20px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #00d4ff 0%, #00ff88 100%);
            border-radius: 2px;
            transition: width 0.3s ease;
            width: 0%;
        }

        /* 信息面板 */
        .info-panel {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 16px 24px;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 12px;
            max-width: calc(100% - 40px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .info-icon {
            width: 40px;
            height: 40px;
            min-width: 40px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px;
        }

        .info-content h3 {
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .info-content p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            line-height: 1.4;
        }

        /* 场景列表预览 */
        .scene-list-preview {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 12px;
            z-index: 100;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }

        .scene-list-preview.collapsed {
            padding: 0;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            overflow: hidden;
            /* 折叠状态下移除背景，由内部toggle提供 */
            background: transparent;
            border: none;
            box-shadow: none;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        .scene-list-preview.collapsed .scene-list-content {
            display: none;
        }

        .scene-list-preview.collapsed .scene-list-header {
            display: none;
        }

        .scene-list-toggle {
            display: none;
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            color: #fff;
            font-weight: 500;
            transition: transform 0.2s, background 0.2s;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .scene-list-toggle:hover {
            transform: scale(1.1);
        }

        .scene-list-preview.collapsed .scene-list-toggle {
            display: flex;
        }

        .scene-list-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            user-select: none;
            margin-bottom: 8px;
        }

        .scene-list-header h4 {
            margin: 0;
            color: #fff;
            font-size: 12px;
            font-weight: 600;
        }

        .close-btn {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            transition: color 0.2s;
        }

        .close-btn:hover {
            color: #fff;
        }



        .scene-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px;
            border-radius: 8px;
            margin-bottom: 4px;
            transition: background 0.2s;
        }

        .scene-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .scene-item img {
            width: 50px;
            height: 50px;
            object-fit: cover;
            border-radius: 6px;
        }

        .scene-item .scene-name {
            color: #fff;
            font-size: 11px;
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .scene-item .scene-type {
            color: rgba(255, 255, 255, 0.5);
            font-size: 10px;
        }

        /* 状态指示器 */
        .tracking-status {
            position: fixed;
            top: 20px;
            left: 20px;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 30px;
            padding: 10px 16px;
            z-index: 100;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #ff6b6b;
            animation: pulse 2s infinite;
        }

        .status-dot.tracking {
            background: #00ff88;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.5;
            }
        }

        .status-text {
            color: #fff;
            font-size: 12px;
            font-weight: 500;
        }

        /* AR 容器 */
        #ar-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* 错误信息 */
        .ar-error {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
            color: #fff;
            text-align: center;
            padding: 20px;
        }

        .ar-error-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }

        .ar-error-message {
            font-size: 18px;
            margin-bottom: 20px;
            max-width: 300px;
        }

        .ar-error-retry {
            padding: 12px 24px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .ar-error-retry:hover {
            transform: scale(1.05);
        }

        /* 隐藏 A-Frame 默认 UI */
        .a-enter-vr-button,
        .a-orientation-modal {
            display: none !important;
        }

        /* 无参数提示 */
        .no-params-message {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100vh;
            color: #fff;
            text-align: center;
            padding: 20px;
        }

        .no-params-message h1 {
            font-size: 24px;
            margin-bottom: 16px;
        }

        .no-params-message p {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            max-width: 400px;
            line-height: 1.6;
        }

        .no-params-message code {
            background: rgba(255, 255, 255, 0.1);
            padding: 2px 8px;
            border-radius: 4px;
            font-family: monospace;
        }

        .demo-link {
            margin-top: 20px;
            padding: 12px 24px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            transition: transform 0.2s;
        }

        .demo-link:hover {
            transform: scale(1.05);
        }

        /* 视频交互提示层 */
        .video-interaction-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 999;
            cursor: pointer;
            transition: opacity 0.3s ease-out;
        }

        .video-interaction-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .interaction-content {
            text-align: center;
            padding: 40px;
            max-width: 400px;
        }

        .interaction-icon {
            font-size: 80px;
            margin-bottom: 24px;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .interaction-title {
            color: #fff;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .interaction-desc {
            color: rgba(255, 255, 255, 0.7);
            font-size: 16px;
            line-height: 1.6;
            margin-bottom: 32px;
        }

        .interaction-button {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 16px 32px;
            background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
            border: none;
            border-radius: 50px;
            color: #000;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            animation: pulse-button 2s infinite;
        }

        .interaction-button:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
        }

        @keyframes pulse-button {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
            }

            50% {
                box-shadow: 0 0 0 15px rgba(0, 212, 255, 0);
            }
        }

        .interaction-hint {
            color: rgba(255, 255, 255, 0.5);
            font-size: 12px;
            margin-top: 24px;
        }

        /* iOS 风格相机镜头选择器 */
        .camera-lens-selector {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 25px;
            padding: 4px;
            z-index: 200;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .camera-lens-selector.hidden {
            display: none;
        }

        .lens-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            background: transparent;
            color: rgba(255, 255, 255, 0.7);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lens-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .lens-btn.active {
            background: rgba(255, 204, 0, 0.9);
            color: #000;
            transform: scale(1.1);
        }

        .lens-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .lens-btn .lens-label {
            font-size: 11px;
            line-height: 1;
        }

        /* 相机加载提示 */
        .camera-switching {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            color: #fff;
            padding: 16px 24px;
            border-radius: 12px;
            font-size: 14px;
            z-index: 300;
            display: none;
        }

        .camera-switching.show {
            display: block;
        }