/* 专业级720度全景图查看器样式 v2.0 */

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-color: #e1e5e9;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    height: 100vh;
}

.app-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 浮动控制栏样式 */
.floating-controls {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
}

.floating-controls.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.floating-controls.fullscreen-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px);
    pointer-events: none;
}

.floating-controls-content {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.title-icon {
    font-size: 20px;
}

.title-text {
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.control-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: auto;
    white-space: nowrap;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.control-btn.btn-primary:hover {
    background: linear-gradient(135deg, #357abd, var(--primary-color));
}

.control-btn.active {
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.btn-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-text {
    font-size: 12px;
}

.file-input {
    display: none;
}

/* SVG图标样式 */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    min-width: 120px;
    justify-content: center;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd, var(--primary-color));
}

.btn.active {
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

.btn-icon {
    font-size: 16px;
}

.file-input {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Drop Zone */
.drop-zone {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: var(--transition);
}

.drop-zone.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.drop-zone.dragover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.95), rgba(53, 122, 189, 0.95));
    transform: scale(1.02);
}

.drop-zone-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 40px;
}

.drop-zone-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.drop-zone h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.drop-zone p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.drop-zone-hint {
    font-size: 16px;
    opacity: 0.7;
    font-style: italic;
}

/* Viewer Container */
.viewer-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    overflow: hidden;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.loading-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-text {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.loading-progress {
    width: 300px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    opacity: 0.8;
}

/* Error Message */
.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    max-width: 400px;
    width: 90%;
}

.error-message.visible {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

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

.error-message h3 {
    color: var(--error-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.error-message p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 新信息面板卡片样式 */
.info-panel-card {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 60;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-panel-card.visible {
    opacity: 1;
    pointer-events: all;
}

.info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
}

.info-card-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-icon svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.info-card-title {
    font-weight: 600;
    font-size: 13px;
    flex: 1;
    margin-left: 8px;
}

.info-card-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.toggle-icon svg {
    width: 14px;
    height: 14px;
}

.info-panel-card.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.info-card-content {
    padding: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.info-panel-card.collapsed .info-card-content {
    max-height: 0;
    padding: 0 15px;
    opacity: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
}

.info-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.image-info {
    transition: var(--transition);
}

.image-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

.image-info-item:last-child {
    margin-bottom: 0;
}

.image-info-item .info-label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 12px;
}

.image-info-item .info-value {
    font-size: 12px;
    max-width: 120px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Control Hints */
.control-hints {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 50;
}

.control-hints.visible {
    opacity: 1;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.hint-icon {
    font-size: 14px;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.success-message.visible {
    opacity: 1;
    transform: translateX(0);
}

.success-icon {
    font-size: 18px;
}

.success-text {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-controls {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        max-width: none;
    }

    .floating-controls.visible {
        transform: none;
    }

    .floating-controls-content {
        padding: 10px 15px;
        gap: 15px;
        flex-direction: column;
    }

    .app-title {
        font-size: 14px;
    }

    .title-text {
        display: none;
    }

    .control-buttons {
        gap: 6px;
        justify-content: center;
        width: 100%;
    }

    .control-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 80px;
        flex: 1;
        max-width: 100px;
    }

    .btn-text {
        font-size: 11px;
    }

    .drop-zone-content {
        padding: 20px;
    }

    .drop-zone h2 {
        font-size: 24px;
    }

    .drop-zone p {
        font-size: 16px;
    }

    .drop-zone-icon {
        font-size: 60px;
    }

    .info-panel-card {
        top: 10px;
        right: 10px;
        min-width: 200px;
        max-width: 250px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .info-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .control-hints {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .thumbnail-panel {
        left: 10px;
        width: 250px;
        max-height: 60vh;
    }

    .thumbnail-panel.collapsed {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }

    .controls {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

    .drop-zone-content {
        padding: 15px;
    }

    .drop-zone h2 {
        font-size: 20px;
    }

    .drop-zone p {
        font-size: 14px;
    }

    .info-panel {
        font-size: 11px;
        padding: 10px;
        min-width: 150px;
    }

    .control-hints {
        gap: 8px;
    }

    .hint-item {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* 全屏模式优化 */
.app-container:-webkit-full-screen {
    background: #000;
}

.app-container:-moz-full-screen {
    background: #000;
}

.app-container:fullscreen {
    background: #000;
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .loading-spinner {
        border-width: 2px;
    }

    .progress-bar {
        height: 4px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #e1e1e1;
        --border-color: #333;
    }
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .drop-zone-icon {
        animation: none;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .info-panel,
    .control-hints .hint-item {
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
}

/* 缩略图面板样式 */
.thumbnail-panel {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    max-height: 70vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    z-index: 40;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.thumbnail-panel.collapsed {
    width: 60px;
}

.thumbnail-panel.collapsed .thumbnail-container,
.thumbnail-panel.collapsed .thumbnail-text,
.thumbnail-panel.collapsed .thumbnail-count,
.thumbnail-panel.collapsed .thumbnail-empty {
    display: none;
}

.thumbnail-panel.collapsed .thumbnail-controls {
    justify-content: center;
}

.thumbnail-panel.collapsed .thumbnail-btn:not(#togglePanelBtn) {
    display: none;
}

.thumbnail-panel.collapsed #togglePanelBtn {
    background: rgba(74, 144, 226, 0.8);
    border: 1px solid rgba(74, 144, 226, 0.6);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
    position: relative;
}

.thumbnail-panel.collapsed #togglePanelBtn:hover {
    background: rgba(74, 144, 226, 1);
    transform: scale(1.1);
}

.thumbnail-panel.collapsed #togglePanelBtn::after {
    content: '展开';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-left: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.thumbnail-panel.collapsed #togglePanelBtn:hover::after {
    opacity: 1;
}

.thumbnail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.thumbnail-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.thumbnail-icon {
    font-size: 16px;
}

.thumbnail-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.thumbnail-controls {
    display: flex;
    gap: 5px;
}

.thumbnail-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    font-size: 12px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.thumbnail-container {
    max-height: calc(70vh - 80px);
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.thumbnail-container::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.thumbnail-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.thumbnail-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.2);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

.thumbnail-item.dragging {
    transform: rotate(5deg);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.thumbnail-image {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumbnail-item:hover .thumbnail-image img {
    transform: scale(1.05);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-actions {
    display: flex;
    gap: 8px;
}

.thumbnail-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 14px;
}

.thumbnail-action-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.thumbnail-info {
    padding: 10px;
}

.thumbnail-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thumbnail-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
}

.thumbnail-status {
    position: absolute;
    top: 8px;
    right: 8px;
}

.status-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.status-badge.panorama {
    background: var(--success-color);
}

.status-badge.normal {
    background: var(--warning-color);
}

.thumbnail-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 12px;
    line-height: 1.4;
}

/* 右键菜单样式 */
.context-menu {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    min-width: 150px;
    z-index: 2000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: contextMenuIn 0.2s ease-out;
}

@keyframes contextMenuIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

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

.context-menu-item.danger:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
}

.context-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

.menu-icon {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* 平面图面板样式 */
.floor-plan-panel {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    max-height: 70vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    z-index: 35;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}

.floor-plan-panel.visible {
    opacity: 1;
    pointer-events: all;
}

.floor-plan-panel.collapsed {
    width: 60px;
}

.floor-plan-panel.collapsed .floor-plan-content,
.floor-plan-panel.collapsed .floor-plan-text {
    display: none;
}

.floor-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.floor-plan-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.floor-plan-icon {
    font-size: 16px;
}

.floor-plan-controls {
    display: flex;
    gap: 5px;
}

.floor-plan-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
    font-size: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floor-plan-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.floor-plan-btn.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.4);
}

.floor-plan-content {
    height: calc(70vh - 80px);
    overflow: hidden;
    position: relative;
}

.floor-plan-canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.floor-plan-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
    display: block;
}

.floor-plan-canvas:active {
    cursor: grabbing;
}

.floor-plan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floor-plan-empty {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px;
}

.floor-plan-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.floor-plan-empty .empty-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.floor-plan-empty .empty-hint {
    font-size: 12px;
    line-height: 1.4;
}

/* 平面图标记点样式 */
.floor-plan-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.floor-plan-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.floor-plan-marker.active {
    border-color: var(--success-color);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.6);
}

/* 平面图最大化模式样式 */
.floor-plan-maximized {
    position: fixed;
    top: 5%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.maximized-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 0 0;
}

.maximized-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.maximized-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.maximized-controls {
    display: flex;
    gap: 10px;
}

.maximized-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.maximized-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

.maximized-btn .btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.maximized-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.maximized-content canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

.maximized-help {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.help-item {
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* 最大化模式下的标记点样式 */
.floor-plan-maximized .floor-plan-marker {
    transform: scale(1.2);
}

.floor-plan-maximized .floor-plan-marker:hover {
    transform: scale(1.5);
}

/* 全屏模式下的标记点样式 */
.floor-plan-fullscreen .floor-plan-marker {
    transform: scale(1.2);
}

.floor-plan-fullscreen .floor-plan-marker:hover {
    transform: scale(1.5);
}

/* 演示模式样式 */
.presentation-mode .floating-controls {
    display: none;
}

.presentation-mode .thumbnail-panel {
    opacity: 0.3;
    pointer-events: none;
}

.presentation-mode .floor-plan-panel {
    opacity: 0.3;
    pointer-events: none;
}

.presentation-mode .info-panel-card {
    opacity: 0.3;
}

.presentation-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: var(--transition);
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.presentation-controls.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.presentation-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.presentation-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.presentation-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.presentation-btn.active {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

.presentation-info {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    min-width: 60px;
    text-align: center;
}

.presentation-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

/* 激光笔样式 */
.laser-pointer {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.laser-dot {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #ff0000 0%, #ff0000 30%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
    animation: laserPulse 1s ease-in-out infinite;
}

@keyframes laserPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.laser-pointer-active {
    cursor: none;
}

/* 高亮区域样式 */
.highlight-area {
    position: fixed;
    border: 3px solid #ffff00;
    border-radius: 50%;
    background: rgba(255, 255, 0, 0.1);
    pointer-events: none;
    z-index: 1500;
    animation: highlightPulse 0.5s ease-out, highlightFade 3s ease-out;
}

@keyframes highlightPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes highlightFade {
    0% { opacity: 0.8; }
    70% { opacity: 0.8; }
    100% { opacity: 0; }
}

.highlighter-active {
    cursor: crosshair;
}

/* 书签功能样式 */
.bookmark-list {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    max-width: 250px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition);
    pointer-events: none;
}

.bookmark-list.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.bookmark-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 5px;
}

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

.bookmark-item:last-child {
    margin-bottom: 0;
}

.bookmark-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.bookmark-text {
    flex: 1;
    font-size: 13px;
}

.bookmark-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* 自定义标记面板样式 */
.custom-marker-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 300px;
    max-height: 400px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    z-index: 30;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}

.custom-marker-panel.visible {
    opacity: 1;
    pointer-events: all;
}

.custom-marker-panel.collapsed {
    height: 60px;
}

.custom-marker-panel.collapsed .custom-marker-content {
    display: none;
}

.custom-marker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.custom-marker-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.custom-marker-icon {
    font-size: 16px;
}

.custom-marker-controls {
    display: flex;
    gap: 5px;
}

.custom-marker-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
    font-size: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-marker-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.custom-marker-content {
    padding: 15px;
    max-height: 320px;
    overflow-y: auto;
}

.custom-marker-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.custom-action-btn {
    flex: 1;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 11px;
}

.custom-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-action-btn.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.4);
}

.custom-marker-list {
    max-height: 200px;
    overflow-y: auto;
}

.custom-marker-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.custom-marker-empty .empty-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.custom-marker-empty .empty-hint {
    font-size: 12px;
    line-height: 1.4;
}

.custom-marker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    transition: var(--transition);
}

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

.custom-marker-item:last-child {
    margin-bottom: 0;
}

.marker-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 2px 0;
    line-height: 1.3;
}

.marker-info {
    flex: 1;
}

.marker-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.marker-icon {
    width: 14px;
    height: 14px;
}

.marker-location {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.marker-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.marker-actions {
    display: flex;
    gap: 4px;
}

.marker-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.action-icon {
    width: 12px;
    height: 12px;
}

/* 标记编辑模态框样式 */
.marker-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.marker-edit-modal.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.custom-color-input {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.icon-option {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.icon-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.icon-option.selected {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.2);
}

.icon-preview {
    width: 20px;
    height: 20px;
    color: white;
}

.marker-preview-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.marker-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.marker-preview-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-preview-name {
    font-size: 14px;
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-btn-save {
    background: var(--primary-color);
    color: white;
}

.modal-btn-save:hover {
    background: #357abd;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

/* 文件夹导入面板样式 */
.folder-import-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 350px;
    max-height: 80vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    z-index: 25;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
}

.folder-import-panel.visible {
    opacity: 1;
    pointer-events: all;
}

.folder-import-panel.collapsed {
    height: 60px;
}

.folder-import-panel.collapsed .import-panel-content {
    display: none;
}

.import-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.import-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.import-panel-icon {
    font-size: 16px;
}

.import-panel-controls {
    display: flex;
    gap: 5px;
}

.import-panel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 6px;
    transition: var(--transition);
    font-size: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.import-panel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.import-panel-content {
    padding: 15px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.import-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.import-action-btn {
    flex: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}

.import-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.import-status {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.status-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.import-categories {
    margin-bottom: 15px;
}

.category-section {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 600;
}

.category-icon {
    width: 16px;
    height: 16px;
}

.category-title {
    flex: 1;
}

.category-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    min-width: 20px;
    text-align: center;
}

.category-content {
    max-height: 200px;
    overflow-y: auto;
}

.category-empty {
    padding: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.import-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.import-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.import-item:last-child {
    border-bottom: none;
}

.item-preview {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.item-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.item-details {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.item-actions {
    display: flex;
    gap: 4px;
}

.item-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.import-actions-bottom {
    text-align: center;
}

.import-confirm-btn {
    background: var(--success-color);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.import-confirm-btn:hover:not(:disabled) {
    background: #27ae60;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.import-confirm-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* 普通照片查看器样式 */
.photo-gallery {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    max-width: 1200px;
    height: 80vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    z-index: 2000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    overflow: hidden;
}

.photo-gallery.visible {
    display: block;
}

.photo-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.photo-gallery-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.photo-gallery-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-gallery-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 123, 255, 0.8);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.photo-gallery-btn:hover {
    background: rgba(0, 123, 255, 1);
    transform: translateY(-1px);
}

.photo-gallery-btn .btn-icon {
    width: 16px;
    height: 16px;
}

.photo-gallery-btn .btn-text {
    font-size: 13px;
}

.photo-gallery-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition);
}

.photo-gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.photo-gallery-content {
    padding: 20px;
    height: calc(80vh - 80px);
    overflow-y: auto;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.photo-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.photo-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.photo-item-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.photo-item:hover .photo-item-overlay {
    opacity: 1;
}

.photo-item-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-item-btn:hover {
    background: white;
    transform: scale(1.1);
}

.photo-item-btn.delete-btn:hover {
    background: #dc3545;
    color: white;
}

.photo-item-btn .btn-icon {
    width: 16px;
    height: 16px;
}

.photo-item-info {
    padding: 10px;
}

.photo-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.9);
}

.photo-type {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 500;
}

.photo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 20px;
    font-size: 16px;
    line-height: 1.6;
    min-height: 300px;
}

.photo-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.photo-empty .empty-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.photo-empty .empty-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.photo-empty .empty-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 123, 255, 0.8);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.photo-empty .empty-add-btn:hover {
    background: rgba(0, 123, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.photo-empty .empty-add-btn .btn-icon {
    width: 18px;
    height: 18px;
}

/* 增强照片模态框样式 */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-content {
    position: relative;
    width: 95vw;
    height: 95vh;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
}

.photo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-modal-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.photo-modal-title {
    font-size: 18px;
    font-weight: 600;
}

.photo-modal-type {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.photo-modal-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.photo-modal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    transition: var(--transition);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.photo-modal-close {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 20px;
    font-weight: bold;
    transition: var(--transition);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-close:hover {
    background: rgba(255, 0, 0, 0.4);
}

.photo-modal-image-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.photo-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.photo-nav-prev {
    left: 20px;
}

.photo-nav-next {
    right: 20px;
}

/* 打印样式 */
@media print {
    .app-container {
        display: none;
    }

    body::after {
        content: "此页面包含交互式3D全景图，无法打印。请在浏览器中查看。";
        display: block;
        text-align: center;
        padding: 50px;
        font-size: 18px;
    }
}
