:root {
    --bg: #0f172a;
    --card: #1f2a44;
    --radius: 12px;
    --shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.6);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: #f0f5ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e2f5c 70%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    display: flex;
    gap: 1rem;
}

.viewer-card {
    flex: 1 1 auto;
    background: var(--card);
    border-radius: var(--radius);
    padding: 1rem 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.viewer-wrapper {
    position: relative;
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #0f1e44;
    min-height: 70vh;
    width: 100%;
}

#panorama {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .6s ease;
}

/* 信息面板调整为悬浮小卡片 */
.info-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 320px;
    z-index: 5;
}

.panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    position: relative;
    font-size: 0.9rem;
}

.small {
    font-size: 0.65rem;
    color: #c0cfe8;
}

/* 控制按钮放在左上更醒目 */
.controls {
    display: flex;
    gap: 0.5rem;
}

/* 让 caption 不占太多高度 */
.caption {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}