/* ==========================================================
   tech-explore.css — 飞船探索解锁模式 UI
   仅新增，不覆盖 tech_universe.html 内联样式
   ========================================================== */

:root {
    --tx-cyan: #38bdf8;
    --tx-purple: #a855f7;
    --tx-pink: #f472b6;
    --tx-green: #4ade80;
    --tx-gold: #fbbf24;
    --tx-panel: rgba(8, 12, 24, 0.72);
    --tx-line: rgba(255, 255, 255, 0.14);
}

/* ==========================================================
   1. 顶部 HUD — 解锁进度
   ========================================================== */
.tx-hud {
    position: fixed;
    top: 92px;
    right: 32px;
    z-index: 1200;
    width: 236px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--tx-line);
    background: var(--tx-panel);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.tx-hud.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tx-hud__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tx-hud__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.tx-hud__count {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.tx-hud__count i {
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
}

.tx-hud__bar {
    height: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 14px;
}

.tx-hud__fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--tx-cyan), var(--tx-purple));
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.3, 1);
}

.tx-hud__groups {
    display: grid;
    gap: 7px;
}

.tx-hud__group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.tx-hud__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.35;
    transition: opacity 0.4s, box-shadow 0.4s;
}

.tx-hud__group.is-complete .tx-hud__dot {
    opacity: 1;
}

.tx-hud__group.is-complete {
    color: rgba(255, 255, 255, 0.85);
}

.tx-hud__gname {
    flex: 1;
}

.tx-hud__gnum {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
}

.tx-hud__group.is-complete .tx-hud__gnum {
    color: var(--tx-gold);
}

.tx-hud__footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 8px;
}

.tx-hud__mini {
    flex: 1;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--tx-line);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.tx-hud__mini:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.09);
    color: #fff;
}

/* ==========================================================
   2. 底部提示条
   ========================================================== */
.tx-tip {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 22px;
    border-radius: 30px;
    border: 1px solid var(--tx-line);
    background: var(--tx-panel);
    backdrop-filter: blur(14px);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    white-space: nowrap;
}

.tx-tip.is-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tx-tip__sep {
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, 0.16);
}

.tx-tip b {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.78);
    margin-right: 4px;
}

/* ==========================================================
   4. 扫描解锁提示（中央飘字）
   ========================================================== */
.tx-toast-layer {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1400;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tx-toast {
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: rgba(8, 14, 28, 0.82);
    backdrop-filter: blur(10px);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    animation: txToast 1.9s cubic-bezier(0.22, 1, 0.3, 1) forwards;
}

.tx-toast--milestone {
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(28, 20, 6, 0.86);
    color: var(--tx-gold);
    font-size: 0.95rem;
}

@keyframes txToast {
    0%   { opacity: 0; transform: translateY(14px) scale(0.94); }
    18%  { opacity: 1; transform: translateY(0) scale(1); }
    72%  { opacity: 1; transform: translateY(-6px) scale(1); }
    100% { opacity: 0; transform: translateY(-28px) scale(0.97); }
}

/* ==========================================================
   5. 扫描准星（屏幕中心）
   ========================================================== */
.tx-reticle {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    z-index: 1100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tx-reticle.is-active {
    opacity: 0.5;
}

.tx-reticle.is-locking {
    opacity: 1;
}

.tx-reticle svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tx-reticle__ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1.2;
}

.tx-reticle__prog {
    fill: none;
    stroke: var(--tx-cyan);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.12s linear;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.7));
}

.tx-reticle__dot {
    fill: rgba(255, 255, 255, 0.6);
}

.tx-reticle.is-locking .tx-reticle__dot {
    fill: var(--tx-cyan);
}

/* 锁定目标名 */
.tx-lockname {
    position: fixed;
    left: 50%;
    top: 50%;
    margin-top: 34px;
    transform: translateX(-50%);
    z-index: 1100;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--tx-cyan);
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.tx-lockname.is-active {
    opacity: 1;
}

/* ==========================================================
   6. 完成面板
   ========================================================== */
.tx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 30px;
    border: 1px solid var(--tx-line);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.tx-btn:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.1);
    color: #fff;
}

.tx-btn--primary {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.14);
    color: var(--tx-cyan);
    font-weight: 600;
}

.tx-btn--primary:hover {
    background: rgba(56, 189, 248, 0.24);
    color: #fff;
}

.tx-complete {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 45%, rgba(12, 10, 30, 0.86), rgba(2, 3, 10, 0.95));
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.tx-complete.is-open {
    opacity: 1;
    visibility: visible;
}

.tx-complete__box {
    max-width: 560px;
    padding: 0 32px;
    text-align: center;
}

.tx-complete__badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid rgba(251, 191, 36, 0.5);
    background: rgba(251, 191, 36, 0.12);
    color: var(--tx-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.tx-complete__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4.6vw, 2.7rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.3;
}

.tx-complete__desc {
    font-size: 0.95rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 30px;
}

.tx-complete__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================
   7. 探索模式下保留左侧说明（作品集需要传递信息）
   ========================================================== */
body.tx-exploring .overlay-ui {
    opacity: 0.55;
    transition: opacity 0.5s ease;
}

body.tx-exploring .overlay-ui:hover {
    opacity: 1;
}

/* ==========================================================
   8. 响应式
   ========================================================== */
@media (max-width: 900px) {
    .tx-hud {
        top: 78px;
        right: 16px;
        left: 16px;
        width: auto;
        padding: 13px 15px;
    }
    .tx-hud__groups {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 14px;
    }
    .tx-tip {
        bottom: 18px;
        padding: 9px 16px;
        font-size: 0.72rem;
        gap: 10px;
        max-width: calc(100vw - 32px);
        white-space: normal;
        text-align: center;
        justify-content: center;
    }
    .featured__title {
        font-size: 1.65rem;
    }
}

@media (max-width: 560px) {
    .tx-complete__actions {
        flex-direction: column;
    }
    .tx-btn {
        justify-content: center;
    }
    .tx-hud__footer {
        flex-direction: column;
    }
}
