/**
 * universe.css — Part 3: Explore the Universe 产品宇宙
 *
 * Overlay UI 样式 + Section 容器 + 移动端降级 fallback
 */

/* ===== Section 容器 ===== */
.universe-section {
    position: relative;
    min-height: 100svh;
    background: transparent;
    overflow: hidden;
}

/* ===== 区域标题（Editiorial 风格） ===== */
.universe-heading {
    position: absolute;
    top: 60px;
    left: 60px;
    z-index: 20;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Noto Serif SC', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #D4B052;
    margin: 0;
    padding: 0;
    pointer-events: none;
    user-select: none;
}

/* ===== Overlay 容器（覆盖在 Canvas 上方） ===== */
.universe-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

/* ===== 星球标签 ===== */
.planet-label {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.planet-label .label-name {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Noto Serif SC', sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
    transition: color 0.3s;
}

.planet-label .label-action {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Noto Serif SC', sans-serif;
    font-size: 14px;
    color: rgba(212, 176, 82, 0.5);
    margin-top: 4px;
    letter-spacing: 0.06em;
    transition: color 0.3s;
}

.planet-label:hover .label-action {
    color: rgba(212, 176, 82, 1);
}

/* ================================================================
   移动端降级 — 纯 CSS Fallback 卡片
   激活条件：.universe-section.universe-fallback
   ================================================================ */
.universe-section.universe-fallback .universe-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 80px 24px 60px;
    pointer-events: auto;
    min-height: 100svh;
}

.universe-section.universe-fallback .planet-label {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 320px;
    padding: 24px 20px;
    border: 1px solid rgba(212, 176, 82, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
}

.universe-section.universe-fallback .planet-label .label-name {
    font-size: 24px;
}

.universe-section.universe-fallback .planet-label .label-action {
    color: rgba(212, 176, 82, 0.7);
}

/* 移除非 activated 状态的 canvas（Hero canvas 在 universe 区域仍可见但标签不跟 3D 坐标） */
.universe-section:not(.universe-fallback) ~ canvas#cosmos {
    /* canvas 仍然可见，内容由 UniverseScene 接管 */
}

/* ===== 响应式 — 缩小区域标题 ===== */
@media (max-width: 768px) {
    .universe-heading {
        top: 40px;
        left: 24px;
        font-size: 11px;
    }

    .planet-label .label-name {
        font-size: 22px;
    }

    .planet-label .label-action {
        font-size: 12px;
    }

    .universe-section.universe-fallback .universe-overlay {
        gap: 16px;
        padding: 60px 16px 40px;
    }
}

@media (max-width: 480px) {
    .universe-heading {
        top: 32px;
        left: 16px;
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .planet-label .label-name {
        font-size: 20px;
    }

    .universe-section.universe-fallback .planet-label {
        padding: 20px 16px;
    }
}
