/* ==========================================================================
   全景看厂（/panorama）—— 页头 + 场景网格 + 全屏查看器
   作用域 .pano-page / #panoView，类前缀 pano-，不碰公共样式
   ★ 移动端规则统一放在文件末尾的 @media 里，跟站内其他页保持一致
   ========================================================================== */

/* ---------------- 页头 ---------------- */
.pano-page .pano-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 460px;
    padding: 66px 0 60px;
    background: linear-gradient(135deg, #06172c 0%, #0e2b4f 62%, #123a67 100%);
    color: #fff;
}

.pano-page .pano-hero__bg { position: absolute; inset: 0; z-index: 0; }
.pano-page .pano-hero__bg picture,
.pano-page .pano-hero__bg img { display: block; width: 100%; height: 100%; }
.pano-page .pano-hero__bg img { object-fit: cover; object-position: 50% 42%; }

/* 左侧压深保白字，右侧留亮让全景细节还看得见 */
.pano-page .pano-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(4, 16, 32, .95) 0%,
        rgba(4, 16, 32, .88) 40%,
        rgba(4, 16, 32, .6) 68%,
        rgba(4, 16, 32, .3) 100%);
}

.pano-page .pano-hero__inner { position: relative; z-index: 1; max-width: 1000px; }

.pano-page .pano-hero__crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .66);
    font-size: 13.5px;
    height: auto;
}
.pano-page .pano-hero__crumbs a { color: rgba(255, 255, 255, .8); }
.pano-page .pano-hero__crumbs a:hover { color: #fff; }

.pano-page .pano-hero__kicker {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #7cc4ff;
}

.pano-page .pano-hero__title {
    margin: 0;
    font-size: 44px;
    line-height: 1.16;
    letter-spacing: -1px;
    color: #fff;
}

.pano-page .pano-hero__sub {
    margin: 14px 0 0;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 500;
    color: rgba(255, 255, 255, .94);
    text-wrap: balance;
}

.pano-page .pano-hero__lead {
    margin: 16px 0 0;
    font-size: 15.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .78);
    max-width: 760px;
}

.pano-page .pano-hero__ops {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.pano-page .pano-hero__ops .btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}
.pano-page .pano-hero__ops .btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.pano-page .pano-hero__meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin: 34px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    list-style: none;
}
.pano-page .pano-hero__meta li { display: flex; flex-direction: column; gap: 3px; }
.pano-page .pano-hero__meta strong { font-size: 24px; line-height: 1.1; color: #fff; }
.pano-page .pano-hero__meta span { font-size: 12.5px; color: rgba(255, 255, 255, .62); }

/* ---------------- 说明 ---------------- */
.pano-page .pano-intro {
    max-width: 900px;
    margin: 0 0 28px;
}
.pano-page .pano-intro p {
    margin: 0 0 10px;
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--ink-3);
}

/* ---------------- 场景网格 ---------------- */
.pano-page .pano-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.pano-page .pano-card {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.pano-page .pano-card:hover {
    transform: translateY(-2px);
    border-color: rgba(11, 94, 215, .35);
    box-shadow: 0 14px 32px rgba(7, 26, 51, .12);
}
.pano-page .pano-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.pano-page .pano-card__pic {
    position: relative;
    display: block;
    aspect-ratio: 2 / 1;
    background: #0a1a2e;
    overflow: hidden;
}
.pano-page .pano-card__pic picture,
.pano-page .pano-card__pic img { display: block; width: 100%; height: 100%; }
.pano-page .pano-card__pic img {
    object-fit: cover;
    transition: transform .5s ease;
}
.pano-page .pano-card:hover .pano-card__pic img { transform: scale(1.03); }

.pano-page .pano-card__ph {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b2239, #17395c);
}

.pano-page .pano-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(4, 16, 32, .72);
    color: #eaf4ff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .2px;
    backdrop-filter: blur(4px);
}

.pano-page .pano-card__play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #0b1c30;
    box-shadow: 0 6px 18px rgba(4, 16, 32, .3);
    transition: transform .2s, background .2s;
}
.pano-page .pano-card__play svg { width: 18px; height: 18px; }
.pano-page .pano-card:hover .pano-card__play { transform: scale(1.08); background: #fff; }

.pano-page .pano-card__body {
    display: block;
    padding: 16px 18px 18px;
}
.pano-page .pano-card__n {
    display: inline-block;
    margin-right: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--brand);
    vertical-align: 2px;
}
.pano-page .pano-card__t { font-size: 17px; color: var(--ink); }
.pano-page .pano-card__d {
    display: block;
    margin-top: 7px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink-3);
}

/* ---------------- 口径提示条 ---------------- */
.pano-page .pano-note {
    margin: 26px 0 0;
    padding: 13px 16px;
    border-left: 3px solid var(--brand);
    border-radius: 0 6px 6px 0;
    background: #f4f8fd;
    font-size: 13px;
    line-height: 1.75;
    color: var(--ink-3);
}

/* ---------------- 更多展示 ---------------- */
.pano-page .pano-more__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.pano-page .pano-more__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.pano-page .pano-more__card:hover {
    border-color: rgba(11, 94, 215, .35);
    box-shadow: 0 10px 24px rgba(7, 26, 51, .08);
    transform: translateY(-2px);
}
.pano-page .pano-more__card strong { font-size: 15px; color: var(--ink); }
.pano-page .pano-more__card span { font-size: 12.5px; line-height: 1.6; color: var(--ink-4); }
.pano-page .pano-more__card--plain { background: #fafcff; }

/* ==========================================================================
   全屏查看器
   ========================================================================== */
.pano-view {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    background: #050d18;
    color: #fff;
}
.pano-view[hidden] { display: none; }

.pano-view__bar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(6, 18, 33, .92);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.pano-view__name { font-size: 15px; font-weight: 600; color: #eaf4ff; }

.pano-view__close {
    width: 36px;
    height: 36px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}
.pano-view__close:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.pano-view__close svg { width: 18px; height: 18px; }

.pano-view__stage {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #04090f;
}

.pano-view__pano { position: absolute; inset: 0; }
.pano-view__pano[hidden] { display: none; }

/* ---------- 360 视频：放大 + 拖动平移 ---------- */
.pano-view__vwrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #04090f;
    cursor: grab;
    touch-action: pan-y;
}
.pano-view__vwrap[hidden] { display: none; }
.pano-view__vwrap.is-drag { cursor: grabbing; }

.pano-view__video {
    position: absolute;
    top: 50%;
    left: 0;
    width: auto;
    height: auto;
    max-width: none;
    object-fit: cover;
    transform: translate(var(--vx, 0px), -50%);
    will-change: transform;
    background: #04090f;
}

.pano-view__vplay {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(4, 16, 32, .62);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .18s, border-color .18s;
}
.pano-view__vplay:hover { background: rgba(4, 16, 32, .85); border-color: rgba(255, 255, 255, .55); }
.pano-view__vplay svg { width: 16px; height: 16px; }

.pano-view__load {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    background: rgba(4, 9, 15, .6);
    pointer-events: none;
}
.pano-view__load[hidden] { display: none; }
.pano-view__load i {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, .22);
    border-top-color: #7cc4ff;
    border-radius: 50%;
    animation: pano-spin .9s linear infinite;
}
@keyframes pano-spin { to { transform: rotate(360deg); } }

.pano-view__hint {
    flex: none;
    margin: 0;
    padding: 9px 18px;
    text-align: center;
    font-size: 12px;
    letter-spacing: .3px;
    color: rgba(255, 255, 255, .55);
    background: rgba(6, 18, 33, .92);
}

.pano-view__thumbs {
    flex: none;
    display: flex;
    gap: 10px;
    padding: 10px 14px 14px;
    overflow-x: auto;
    background: rgba(6, 18, 33, .92);
    border-top: 1px solid rgba(255, 255, 255, .1);
    scrollbar-width: thin;
}
.pano-view__thumb {
    flex: none;
    width: 132px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .78);
    cursor: pointer;
    overflow: hidden;
    font: inherit;
    transition: border-color .18s, background .18s;
}
.pano-view__thumb img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.pano-view__thumb span {
    display: block;
    padding: 5px 8px 6px;
    font-size: 11.5px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pano-view__thumb:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); }
.pano-view__thumb.is-on { border-color: #4a9eff; background: rgba(74, 158, 255, .16); color: #fff; }

body.pano-lock { overflow: hidden; }

/* Pannellum 自带的按钮偏小，放大一点好点 */
.pano-view .pnlm-controls-container { top: 12px; left: 12px; }
.pano-view .pnlm-about-msg { display: none !important; }

/* ==========================================================================
   移动端
   ========================================================================== */
@media (max-width: 960px) {
    .pano-page .pano-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .pano-page .pano-hero {
        min-height: 0;
        padding: 34px 0 30px;
    }
    .pano-page .pano-hero__bg::after {
        background: linear-gradient(180deg,
            rgba(4, 16, 32, .88) 0%,
            rgba(4, 16, 32, .84) 46%,
            rgba(4, 16, 32, .7) 100%);
    }
    .pano-page .pano-hero__title { font-size: 30px; }
    .pano-page .pano-hero__sub { font-size: 16px; }
    .pano-page .pano-hero__lead { font-size: 14px; line-height: 1.8; }
    .pano-page .pano-hero__meta { gap: 22px; margin-top: 24px; padding-top: 18px; }
    .pano-page .pano-hero__meta strong { font-size: 20px; }
    .pano-page .pano-hero__meta span { font-size: 11.5px; }

    .pano-page .pano-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .pano-page .pano-card__body { padding: 14px 15px 16px; }
    .pano-page .pano-card__t { font-size: 16px; }
    .pano-page .pano-more__grid { grid-template-columns: minmax(0, 1fr); }

    .pano-view__bar { padding: 10px 14px; }
    .pano-view__name { font-size: 14px; }
    .pano-view__hint { font-size: 11px; padding: 8px 12px; }
    .pano-view__thumbs { padding: 8px 10px 12px; gap: 8px; }
    .pano-view__thumb { width: 108px; }
}
