/* 光伏分析页：叠在 electricity-analysis 样式之上的轻量补充 */

/* 强制整页暗底，避免未套 app-client / CSS 未到时闪白 */
html,
body {
    background-color: #0a0a0a !important;
    background: #0a0a0a !important;
    color: #f2f0eb;
    overflow-x: hidden;
    max-width: 100%;
}

/* 近黑底 + 橙蓝光晕层（orb 由 JS 随机漂移） */
.pv-page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(160deg, #000000 0%, #07090d 45%, #0c1016 100%);
}

.pv-bg-orb {
    position: absolute;
    width: min(72vmax, 920px);
    height: min(72vmax, 920px);
    border-radius: 50%;
    filter: blur(72px);
    will-change: left, top, opacity;
    transition:
        left 5.5s cubic-bezier(0.4, 0, 0.2, 1),
        top 5.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 4s ease;
    mix-blend-mode: screen;
}

.pv-bg-orb--orange {
    background: radial-gradient(circle, rgba(234, 140, 28, 0.55) 0%, rgba(194, 65, 12, 0.22) 42%, transparent 68%);
    opacity: 0.72;
}

.pv-bg-orb--blue {
    background: radial-gradient(circle, rgba(56, 140, 255, 0.5) 0%, rgba(37, 99, 235, 0.2) 45%, transparent 70%);
    opacity: 0.68;
}

.pv-bg-orb--amber {
    width: min(48vmax, 620px);
    height: min(48vmax, 620px);
    background: radial-gradient(circle, rgba(251, 191, 36, 0.28) 0%, rgba(59, 130, 246, 0.12) 50%, transparent 72%);
    opacity: 0.55;
    filter: blur(64px);
}

@media (prefers-reduced-motion: reduce) {
    .pv-bg-orb {
        transition: none;
    }
}

.pv-page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    mix-blend-mode: soft-light;
    z-index: 1;
}

/* 内容压在背景之上（bg 用 z-index:0，避免 -1 被白底盖住） */
body > .realistic-clock,
body > .container,
body > section {
    position: relative;
    z-index: 1;
}

/* 导航必须高于后续 section，否则抽屉看得见但点到内容层 */
body > .navbar {
    position: relative;
    z-index: 1001;
}

body > .realistic-clock.pv-clock-corner {
    position: fixed;
    z-index: 1003;
}

.water-quality {
    overflow: visible;
    /* 不依赖 app-client：本页参数区始终暗色，避免未带 from=app 时出现白卡片 */
    background: rgba(28, 28, 28, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38) !important;
    color: #f2f0eb !important;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.water-quality .param-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.water-quality .param-name,
.water-quality .param-value,
.water-quality .param-header,
.water-quality .range-labels span,
.water-quality details summary,
.water-quality .pv-collect-summary {
    color: #e8eef7 !important;
}

.water-quality .param-value {
    color: #8ec0f2 !important;
}

/* 继续盖掉 electricity-analysis-legacy 浅色残留 */
.water-quality .slider-container,
.water-quality .data-card,
.water-quality details,
.water-quality .intake-panel,
.water-quality .pq-action-row {
    background: transparent !important;
    color: #e8eef7 !important;
}

.water-quality summary,
.water-quality .pq-action-btn {
    color: #f2f0eb !important;
}

.pv-region-control {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 5;
    overflow: visible;
}

/* 省市级联选择 */
.pv-geo-picker {
    position: relative;
    margin-top: 0.55rem;
}

.pv-geo-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(145deg, rgba(48, 48, 48, 0.95) 0%, rgba(22, 22, 22, 0.98) 100%);
    color: #f5f5f5;
    cursor: pointer;
    text-align: left;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 20px rgba(0, 0, 0, 0.28);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pv-geo-trigger:hover,
.pv-geo-trigger[aria-expanded="true"] {
    border-color: rgba(74, 144, 226, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(74, 144, 226, 0.2),
        0 10px 24px rgba(0, 0, 0, 0.35);
}

.pv-geo-trigger-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.pv-geo-trigger-label {
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pv-geo-trigger-sub {
    font-size: 0.78rem;
    color: rgba(202, 226, 253, 0.75);
}

.pv-geo-chevron {
    color: #e8a23a;
    opacity: 0.9;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.pv-geo-trigger[aria-expanded="true"] .pv-geo-chevron {
    transform: rotate(180deg);
}

.pv-geo-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 40;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(14, 14, 14, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    flex-direction: column;
    /* 默认收起；勿写死 display:flex，否则会盖掉 [hidden] 导致一直展开 */
    display: none;
}

.pv-geo-panel.is-open,
.pv-geo-panel:not([hidden]) {
    display: flex;
}

.pv-geo-panel[hidden] {
    display: none !important;
}

.pv-geo-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    flex-shrink: 0;
}

.pv-geo-panel-hint {
    color: rgba(232, 162, 58, 0.85);
    font-weight: 500;
    font-size: 0.75rem;
    text-align: right;
}

.pv-geo-cols {
    display: grid;
    /* 默认只显示省份；点省后加 .is-cities-open 再出城市列 */
    grid-template-columns: 1fr;
    height: min(280px, 48vh);
    min-height: 0;
}

.pv-geo-cols.is-cities-open {
    grid-template-columns: minmax(96px, 0.9fr) minmax(120px, 1.15fr);
}

.pv-geo-col {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 144, 226, 0.55) transparent;
}

.pv-geo-col::-webkit-scrollbar {
    width: 6px;
}

.pv-geo-col::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.45);
    border-radius: 999px;
}

.pv-geo-col--cities {
    display: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.pv-geo-cols.is-cities-open .pv-geo-col--cities {
    display: block;
}

.pv-geo-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.pv-geo-city-name {
    font-weight: 600;
}

.pv-geo-city-sun {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(232, 162, 58, 0.9);
    white-space: nowrap;
}

.pv-geo-item:hover {
    background: rgba(74, 144, 226, 0.14);
    color: #fff;
}

.pv-geo-item.is-active {
    background: rgba(74, 144, 226, 0.22);
    color: #cae2fd;
    font-weight: 600;
    box-shadow: inset 2px 0 0 #4a90e2;
}

.pv-geo-item.is-picked {
    color: #ffe8c2;
    background: rgba(232, 162, 58, 0.16);
    font-weight: 600;
    box-shadow: inset 2px 0 0 #e8a23a;
}

.pv-geo-empty {
    padding: 1.25rem 0.75rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 520px) {
    .pv-geo-cols {
        height: min(240px, 46vh);
    }

    .pv-geo-cols.is-cities-open {
        grid-template-columns: 1fr 1.2fr;
    }

    .pv-geo-item {
        padding: 0.5rem 0.55rem;
        font-size: 0.85rem;
    }

    .pv-geo-panel-hint {
        font-size: 0.7rem;
    }
}

.pv-kpi-footnote {
    margin-top: 1.25rem;
    opacity: 0.95;
}

.pv-intake {
    margin: 1.15rem 0 0.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.92) 0%, rgba(24, 24, 24, 0.96) 100%);
    overflow: hidden;
}

.pv-intake-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    border: 0;
    background: transparent;
    color: #f5f5f5;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    letter-spacing: 0.02em;
}

.pv-intake-toggle:hover {
    background: rgba(74, 144, 226, 0.08);
}

.pv-intake-chevron {
    transition: transform 0.2s ease;
    opacity: 0.75;
    color: #e8a23a;
}

.pv-intake-toggle.is-open .pv-intake-chevron {
    transform: rotate(180deg);
}

.pv-intake-body {
    padding: 0.35rem 1.1rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pv-intake-field {
    margin: 0.85rem 0 0.25rem;
    padding: 0.85rem 0.95rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.22);
    background: rgba(0, 0, 0, 0.28);
}

.pv-intake-field .param-header {
    margin-bottom: 0.55rem;
}

.pv-intake-field .param-name,
.pv-intake-field .param-value {
    color: #f0f0f0 !important;
}

.pv-intake-field .range-labels {
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.35rem;
}

/* 给大尺寸 icon 拇指留出上下空间，避免贴住刻度文字 */
.slider-container:has(.pv-slider) {
    padding: 12px 0 10px;
    margin-bottom: 0.15rem;
}

.param-control:has(.pv-slider) > .range-labels,
.pv-intake-field > .range-labels {
    margin-top: 0.85rem;
}

/* 滑轨：蓝→琥珀，替代原先发灰的绿红渐变 */
.slider.pv-slider {
    height: 8px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #3d3d3d 0%, #4a90e2 52%, #e8a23a 100%) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* 滑块拇指：直接显示 Huytech icon，无白圆底 */
.slider.pv-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    background-image: url('../../images/app-icon-source.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
    cursor: pointer;
}

.slider.pv-slider::-moz-range-thumb {
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    background-image: url('../../images/app-icon-source.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
    cursor: pointer;
}

.slider.pv-slider::-webkit-slider-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45) !important;
}

.pv-chip-block {
    margin-top: 1rem;
}

.pv-chip-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.55rem;
    font-weight: 600;
}

/* From Uiverse.io by m1her — 适配中文选项 */
.radio-input {
    display: flex;
    align-items: stretch;
    gap: 2px;
    background-color: #000;
    padding: 4px;
    border-radius: 10px;
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 0;
}

.radio-input--wide {
    max-width: 480px;
}

.radio-input input {
    display: none;
}

.radio-input .label {
    flex: 1 1 0;
    min-width: 0;
    height: 52px;
    background: linear-gradient(to bottom, #333333, rgb(36, 35, 35));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    transition: all 0.1s linear;
    border-top: 1px solid #4e4d4d;
    position: relative;
    cursor: pointer;
    box-shadow: 0px 17px 5px 1px rgba(0, 0, 0, 0.2);
}

.radio-input .label:has(input[type="radio"]:checked) {
    box-shadow: 0px 17px 5px 1px rgba(0, 0, 0, 0);
    background: linear-gradient(to bottom, #1d1d1d, #1d1d1d);
    border-top: none;
}

.radio-input .label:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.radio-input .label:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.radio-input .label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 103%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(
        to bottom,
        transparent 10%,
        transparent,
        transparent 90%
    );
    transition: all 0.1s linear;
    z-index: -1;
}

.radio-input .label:has(input[type="radio"]:checked)::before {
    background: linear-gradient(
        to bottom,
        transparent 10%,
        #cae2fd63,
        transparent 90%
    );
}

.radio-input .label .text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 1.2;
    padding: 0;
    font-weight: 700;
    transition: color 0.15s ease, font-size 0.15s ease, text-shadow 0.15s ease;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.radio-input .label input[type="radio"]:checked + .text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(202, 226, 253, 0.75);
}

@media (max-width: 520px) {
    .radio-input {
        max-width: none;
    }

    .radio-input .label {
        height: 48px;
    }

    .radio-input .label .text {
        font-size: 12px;
    }

    .radio-input .label input[type="radio"]:checked + .text {
        font-size: 14px;
    }
}

.pv-collect-summary {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.82);
}

.pv-collect-summary strong {
    margin-right: 0.35rem;
    color: rgba(255, 255, 255, 0.95);
}

.pv-tag {
    display: inline-block;
    margin: 0.15rem 0.25rem 0.15rem 0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(134, 239, 172, 0.12);
    color: #86efac;
    font-size: 0.78rem;
}

.pv-tag-muted {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.pv-ai-hero .analysis-content,
.pv-ai-hero .streaming-content {
    font-size: 1.02rem;
    line-height: 1.7;
}

/* 光伏页 loading：只要商标大球旋转，不要绕转倒计时小球 */
#analysis .countdown-badge {
    display: none !important;
}

.pv-ai-fallback-tag {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    vertical-align: middle;
}

.pv-live-quote {
    margin: 1.25rem 0 0.5rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pv-live-quote h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.pv-quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.65rem;
}

.pv-quote-item {
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.pv-q-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.2rem;
}

.pv-q-val {
    font-size: 0.95rem;
    font-weight: 650;
    color: #f0e6d8;
}

.pv-quote-equipment {
    margin: 0.9rem 0 0.4rem;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.55;
}

.pv-quote-disclaimer {
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.pv-lab-cta {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

.pv-lab-cta a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.result-status.is-ok {
    color: #86efac;
}

.site-option .site-icon {
    font-size: 1.4rem;
}

/* —— Uiverse stackedForm（光伏留资：公司 / 电话 / 邮件）—— */
/* 左施工地点 + 右留资：竖标题在左，两块拉开间距 */
.pv-hero-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2.4rem 3.2rem;
    width: fit-content;
    max-width: 100%;
    margin: 1.15rem auto 0;
    text-align: left;
}

.pv-hero-row > .pv-site-selection--compact,
.pv-hero-row > .pv-lead-block--hero,
.pv-hero-row > .pv-hero-lottie {
    flex: 0 0 auto;
}

.pv-side-title {
    margin: 0;
    padding: 0.15rem 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.28em;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    white-space: nowrap;
    flex: 0 0 auto;
    user-select: none;
}

/* 盖过 electricity-analysis-legacy 的 .site-selection h3 { color: var(--primary) } */
.site-selection.pv-site-selection--compact > .pv-side-title,
.pv-site-selection--compact .pv-side-title {
    color: #ffffff !important;
}

.pv-hero-lottie {
    width: min(280px, 72vw);
    height: min(158px, 40vw);
    align-self: center;
    margin: 0.35rem 0 0;
}

.pv-hero-lottie svg {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.pv-lead-block {
    margin: 0;
    padding: 0.5rem 0 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0;
}

.pv-lead-block--hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    padding: 0;
    /* 3D 顶面高出约 40px，下移让蓝块顶边与左侧按键齐平 */
    margin-top: 1.6rem;
}

.pv-lead-block--hero .pv-side-title {
    position: relative;
    z-index: 2;
}

.pv-lead-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}

/* 施工地点在评估表单内 */
.pv-site-selection--in-form {
    margin: 0 0 1.1rem;
    padding: 0.15rem 0 0.35rem;
    width: 100%;
    justify-content: flex-start;
}

.pv-site-selection--compact {
    margin: 0;
    padding: 0.15rem 0;
    border: none;
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

/* From Uiverse.io by m1her · 施工地点 2×2（独立类名，避免与补充信息 .radio-input 冲突） */
.pv-site-grid {
    /* 必须写死宽度：width:100% 在 fit-content 父级会塌成约 60px */
    width: 240px;
    max-width: 100%;
    height: 240px;
    aspect-ratio: 1;
    background-color: #000;
    border-radius: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    padding: 12px;
    gap: 14px;
    position: relative;
    z-index: 0;
    box-sizing: border-box;
}

.pv-site-grid input {
    display: none;
}

.pv-site-grid .label {
    background: linear-gradient(to bottom, #333333, rgb(36, 35, 35));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-top: 1px solid #4e4d4d;
    cursor: pointer;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.2);
    min-height: 0;
}

.pv-site-grid .label:has(input[type="radio"]:checked) {
    box-shadow: 0px 17px 5px 1px rgba(0, 0, 0, 0);
    background: linear-gradient(to bottom, #1d1d1d, #1d1d1d);
    border-top: none;
}

.pv-site-grid .label::before {
    content: "";
    position: absolute;
    inset: 0;
    scale: 1.02;
    border-radius: 22px;
    background: linear-gradient(to bottom, transparent 10%, transparent, transparent 90%),
        linear-gradient(to left, transparent 10%, transparent, transparent 90%);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.pv-site-grid .label.site-a:has(input[type="radio"]:checked)::before {
    background: linear-gradient(to bottom, transparent 10%, #4a90e2, transparent 90%),
        linear-gradient(to left, transparent 10%, #4a90e2, transparent 90%);
}

.pv-site-grid .label.site-b:has(input[type="radio"]:checked)::before {
    background: linear-gradient(to bottom, transparent 10%, #e8a23a, transparent 90%),
        linear-gradient(to left, transparent 10%, #e8a23a, transparent 90%);
}

.pv-site-grid .label.site-c:has(input[type="radio"]:checked)::before {
    background: linear-gradient(to bottom, transparent 10%, #6fcf97, transparent 90%),
        linear-gradient(to left, transparent 10%, #6fcf97, transparent 90%);
}

.pv-site-grid .label.site-d:has(input[type="radio"]:checked)::before {
    background: linear-gradient(to bottom, transparent 10%, #9b8cff, transparent 90%),
        linear-gradient(to left, transparent 10%, #9b8cff, transparent 90%);
}

.pv-site-grid .label .text {
    color: #e8e8e8;
    font-size: 13px;
    line-height: 1.25;
    padding: 0 4px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.1s linear;
    text-shadow:
        -1px -1px 1px rgba(224, 224, 224, 0.1),
        0px 2px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    white-space: normal;
    text-align: center;
    max-width: 100%;
    pointer-events: none;
}

html.app-client body:not(.app-launcher-page) .pv-site-grid .label .text {
    color: #e8e8e8 !important;
}

html.app-client body:not(.app-launcher-page) .pv-site-grid .label input[type="radio"]:checked + .text.site-a {
    color: #cae2fd !important;
}

html.app-client body:not(.app-launcher-page) .pv-site-grid .label input[type="radio"]:checked + .text.site-b {
    color: #ffd78a !important;
}

html.app-client body:not(.app-launcher-page) .pv-site-grid .label input[type="radio"]:checked + .text.site-c {
    color: #b8f0d0 !important;
}

html.app-client body:not(.app-launcher-page) .pv-site-grid .label input[type="radio"]:checked + .text.site-d {
    color: #d4ccff !important;
}

.pv-site-grid .label input[type="radio"]:checked + .text.site-a {
    color: #cae2fd;
    text-shadow: 0px 0px 12px #4a90e2;
}

.pv-site-grid .label input[type="radio"]:checked + .text.site-b {
    color: #ffd78a;
    text-shadow: 0px 0px 12px #e8a23a;
}

.pv-site-grid .label input[type="radio"]:checked + .text.site-c {
    color: #b8f0d0;
    text-shadow: 0px 0px 12px #6fcf97;
}

.pv-site-grid .label input[type="radio"]:checked + .text.site-d {
    color: #d4ccff;
    text-shadow: 0px 0px 12px #9b8cff;
}

.pv-site-grid .center {
    width: 12px;
    height: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: #333333;
    border-radius: 2px;
    border: 1px solid #4e4d4d;
    transition: all 0.12s linear;
    z-index: 2;
    pointer-events: none;
}

.pv-site-grid:has(.site-a input:checked) .center {
    border-left: 1px solid rgba(202, 226, 253, 0.7);
    box-shadow: inset 11px 0 10px -12px #4a90e2;
}

.pv-site-grid:has(.site-b input:checked) .center {
    border-top: 1px solid rgba(232, 162, 58, 0.85);
    box-shadow: inset 0 11px 10px -12px #e8a23a;
}

.pv-site-grid:has(.site-c input:checked) .center {
    border-bottom: 1px solid rgba(111, 207, 151, 0.7);
    box-shadow: inset 0 -11px 10px -12px #6fcf97;
}

.pv-site-grid:has(.site-d input:checked) .center {
    border-right: 1px solid rgba(155, 140, 255, 0.7);
    box-shadow: inset -11px 0 10px -12px #9b8cff;
}

@media (max-width: 820px) {
    .pv-hero-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        gap: 2.2rem;
        box-sizing: border-box;
    }

    .pv-hero-row > .pv-site-selection--compact,
    .pv-hero-row > .pv-lead-block--hero,
    .pv-hero-row > .pv-hero-lottie {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        align-items: center;
    }

    /* 竖排标题改横排置顶，避免整块视觉上偏右 */
    .pv-site-selection--compact,
    .pv-lead-block--hero {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.65rem !important;
    }

    .pv-site-selection--compact .pv-side-title,
    .pv-lead-block--hero .pv-side-title {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        letter-spacing: 0.22em;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .pv-lead-block--hero {
        margin-top: 0.35rem !important;
    }

    .pv-lead-main,
    .pv-lead-form-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 3D 表单左侧凸出约 40px，补左边距让视觉居中 */
    .pv-lead-form-wrap {
        padding-left: 40px;
        padding-right: 0;
        box-sizing: border-box;
    }

    .pv-hero-lottie {
        width: min(320px, 88vw);
        height: min(180px, 50vw);
        margin-left: auto;
        margin-right: auto;
        order: 2;
    }

    .pv-site-grid {
        margin: 0 auto;
    }
}

.pv-lead-block h3:not(.pv-side-title) {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
}

.pv-lead-block .pv-lead-desc {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
}

.pv-lead-form-wrap {
    display: flex;
    justify-content: center;
    /* 给 3D 顶面留位，避免裁切 */
    padding: 2.6rem 0 0.35rem;
    perspective: 800px;
}

.stackedForm {
    /* 与页面主按钮蓝系一致，替代原先刺眼的绿 */
    --form-btn-color-3: #8ec0f2;
    --form-btn-color-2: #6aa8f0;
    --form-btn-color-1: #4a90e2;
    --form-btn-color: #e8a23a;
    --form-btn-active-color: #f0b85a;
    --form-rotation: rotate3d(0, 1, 0, 180deg);
    --form-text-padding-left: 10px;
    transform: var(--form-rotation);
}

.stackedForm .input,
.stackedForm button {
    width: 100%;
    height: 40px;
    position: relative;
    padding: 10px;
    border: 0.1px solid var(--form-btn-active-color);
    box-sizing: border-box;
}

.stackedForm button {
    background: var(--form-btn-color);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.stackedForm button span {
    display: block;
    transform: var(--form-rotation);
    color: #ffffff;
}

.stackedForm .wrapper {
    position: relative;
    transform: skewY(-14deg);
    margin: 0;
    padding: 0;
}

.stackedForm .wrapper li,
.stackedForm button {
    position: relative;
    list-style: none;
    width: 200px;
    z-index: var(--i);
    transition: 0.3s;
    color: white;
}

.stackedForm .wrapper li::before,
.stackedForm button::before {
    position: absolute;
    content: "";
    background: var(--form-btn-color);
    top: 0;
    left: -40px;
    width: 40px;
    height: 40px;
    transform-origin: right;
    transform: skewY(45deg);
    transition: 0.3s;
}

.stackedForm .wrapper li::after,
.stackedForm button::after {
    position: absolute;
    content: "";
    background: var(--form-btn-color);
    width: 200px;
    height: 40px;
    top: -40px;
    left: 0;
    transform-origin: bottom;
    transform: skewX(45deg);
    transition: 0.3s;
}

.stackedForm .wrapper li:nth-child(1)::after,
.stackedForm .wrapper li:nth-child(1)::before {
    background-color: var(--form-btn-color-3);
}

.stackedForm .wrapper li:nth-child(2)::after,
.stackedForm .wrapper li:nth-child(2)::before {
    background-color: var(--form-btn-color-2);
}

.stackedForm .wrapper li:nth-child(3)::after,
.stackedForm .wrapper li:nth-child(3)::before {
    background-color: var(--form-btn-color-1);
}

.stackedForm li .input {
    outline: none;
    border: none;
    padding: 0;
    padding-left: var(--form-text-padding-left);
    width: 100%;
    color: #0c1e33 !important;
    -webkit-text-fill-color: #0c1e33;
    caret-color: #0c1e33;
    transform: var(--form-rotation);
    font-size: 14px;
    font-weight: 600;
}

.stackedForm li .input::placeholder {
    color: rgba(12, 30, 51, 0.7) !important;
    -webkit-text-fill-color: rgba(12, 30, 51, 0.7);
    opacity: 1;
}

.stackedForm li:nth-child(1) .input {
    background: var(--form-btn-color-3);
}

.stackedForm li:nth-child(2) .input {
    background: var(--form-btn-color-2);
}

.stackedForm li:nth-child(3) .input {
    background: var(--form-btn-color-1);
}

.stackedForm .wrapper li:hover,
.stackedForm button:hover,
.stackedForm .wrapper li:has(input:focus),
.stackedForm button:focus {
    transform: translateX(-20px);
}

.stackedForm button:hover,
.stackedForm button:hover::before,
.stackedForm button:hover::after,
.stackedForm button:focus,
.stackedForm button:focus::before,
.stackedForm button:focus::after {
    background: var(--form-btn-active-color);
}

.stackedForm button:active {
    transform: translateX(0px);
}

.stackedForm button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.pv-lead-status {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.85rem;
    color: #86efac;
    min-height: 1.25em;
}

.pv-lead-status.is-error {
    color: #fca5a5;
}

/* 顶栏品牌：始终 Huytech + 方印商标 */
body .navbar .logo-text {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

body .navbar .logo-image {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px;
    object-fit: cover;
}

/* 本页导航：彻底隐藏桌面横栏 */
body .navbar .nav-menu {
    display: none !important;
}

/* 汉堡：默认隐藏；悬停/点时钟后出现（.pv-show-burger） */
html.app-client body .navbar .mobile-menu-toggle,
body .navbar .mobile-menu-toggle {
    display: flex !important;
    z-index: 1002;
    margin-left: auto;
    color: #ffffff !important;
    filter: none !important;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* 覆盖 electricity-analysis ≥1025 强制隐藏抽屉；本页宽屏也要能展开 */
html.app-client body .navbar .mobile-menu,
body .navbar .mobile-menu {
    display: none;
    left: auto !important;
    right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    min-width: 10.5rem;
    max-width: min(16rem, calc(100vw - 2.5rem));
    margin-top: 0.35rem;
    padding: 0.35rem 0;
    background: rgba(18, 18, 18, 0.96) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1002;
}

html.app-client body .navbar .mobile-menu.active,
body .navbar .mobile-menu.active {
    display: block !important;
}

@media (min-width: 1025px) {
    body .navbar .mobile-menu-toggle,
    html.app-client body .navbar .mobile-menu-toggle {
        display: flex !important;
    }

    body .navbar .mobile-menu.active,
    html.app-client body .navbar .mobile-menu.active {
        display: block !important;
    }
}

body:not(.pv-show-burger) .navbar .mobile-menu-toggle {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.pv-show-burger .navbar .mobile-menu-toggle {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

html.app-client body .navbar .mobile-menu-toggle span,
html.app-client body .navbar .mobile-menu-toggle.active span,
body .navbar .mobile-menu-toggle span,
body .navbar .mobile-menu-toggle.active span {
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    opacity: 1 !important;
    filter: none !important;
}

html.app-client body .navbar .mobile-menu-toggle.active span:nth-child(2),
body .navbar .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important; /* 中间条在打开态仍需隐藏 */
}

#analysis.container {
    padding-top: calc(0.85rem + 72px);
    padding-bottom: 1.75rem;
}

#analysis .section-title {
    margin-bottom: 0.65rem;
}

.pv-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.35rem;
    text-align: center;
    width: 100%;
    padding-right: 0;
}

/* 品牌悬停卡：默认「星链」，悬停展开「星链股份集团」 */
.pv-brand-card {
    --pv-brand-gold: #bd9f67;
    --pv-brand-bg: transparent;
    width: min(540px, 94vw);
    height: 112px;
    background: transparent;
    position: relative;
    display: grid;
    place-content: center;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    cursor: default;
    margin: 0 auto;
}

.pv-brand-card .border {
    position: absolute;
    inset: 0;
    border: 2px solid var(--pv-brand-gold);
    opacity: 0;
    transform: rotate(10deg);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}

.pv-brand-card .bottom-text {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    font-size: 15px;
    padding: 0 10px;
    color: #ffffff;
    background: transparent;
    opacity: 0;
    letter-spacing: 0.14em;
    white-space: nowrap;
    transition: all 0.5s ease-in-out;
}

.pv-brand-card .content {
    transition: all 0.5s ease-in-out;
    position: relative;
}

.pv-brand-card .content .logo {
    /* flex 排布：按真实字宽展开，避免「链/股」重叠与竖向裁切 */
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0; /* 默认不留缝，避免露出「股」的边 */
    height: auto;
    min-height: 64px;
    padding: 6px 0 4px;
    box-sizing: content-box;
    /* 紧贴「星链」实测宽度，多 1px 会漏出后半截 */
    width: 105px;
    overflow: hidden;
    transition: width 1s ease-in-out, gap 0.45s ease-in-out;
    margin: 0 auto;
    position: relative;
}

.pv-brand-card .content .logo .logo1,
.pv-brand-card .content .logo .logo2 {
    position: relative;
    left: auto;
    top: auto;
    height: auto;
    display: flex;
    align-items: baseline;
    flex: 0 0 auto;
}

/* 默认完全藏住后半段，展开后再显现 */
.pv-brand-card .content .logo .logo2 {
    opacity: 0;
    transition: opacity 0.35s ease-in-out 0.15s;
}

.pv-brand-card .pv-brand-word {
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-block;
}

/* 「星链」特别大、加粗 */
.pv-brand-card .logo1 .pv-brand-word {
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-shadow: 0 1px 0 rgba(255, 240, 210, 0.22);
}

.pv-brand-card .content .logo .trail {
    position: absolute;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    pointer-events: none;
}

.pv-brand-card .content .logo-bottom-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: 62px;
    color: #ffffff;
    font-size: 16px;
    opacity: 0;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: all 0.5s ease-in-out 0.35s;
}

.pv-brand-card .content .logo-bottom-text .pv-brand-name {
    color: #ffffff;
    font-weight: 800;
}

.pv-brand-card:hover {
    border-radius: 0;
    transform: scale(1.03);
    height: 268px;
}

.pv-brand-card:hover .content {
    transform: translateY(-14px);
}

.pv-brand-card:hover .logo {
    /* 星链(~105) + gap + 股份集团(~150) */
    gap: 0.22em;
    width: 280px;
    animation: pv-brand-opacity 1s ease-in-out;
}

.pv-brand-card:hover .content .logo .logo2 {
    opacity: 1;
}

.pv-brand-card:hover .border {
    inset: 14px;
    opacity: 1;
    transform: rotate(0);
}

.pv-brand-card:hover .bottom-text {
    letter-spacing: 0.18em;
    opacity: 1;
    transform: translateX(-50%);
    bottom: 34px;
}

.pv-brand-card:hover .content .logo-bottom-text {
    opacity: 1;
    letter-spacing: 0.1em;
    margin-top: 68px;
}

.pv-brand-card:hover .trail {
    animation: pv-brand-trail 1s ease-in-out;
}

@keyframes pv-brand-opacity {
    0% { border-right: 1px solid transparent; }
    10% { border-right: 1px solid var(--pv-brand-gold, #bd9f67); }
    80% { border-right: 1px solid var(--pv-brand-gold, #bd9f67); }
    100% { border-right: 1px solid transparent; }
}

@keyframes pv-brand-trail {
    0% {
        background: linear-gradient(90deg, rgba(189, 159, 103, 0) 90%, rgb(189, 159, 103) 100%);
        opacity: 0;
    }
    30% {
        background: linear-gradient(90deg, rgba(189, 159, 103, 0) 70%, rgb(189, 159, 103) 100%);
        opacity: 1;
    }
    70% {
        background: linear-gradient(90deg, rgba(189, 159, 103, 0) 70%, rgb(189, 159, 103) 100%);
        opacity: 1;
    }
    95% {
        background: linear-gradient(90deg, rgba(189, 159, 103, 0) 90%, rgb(189, 159, 103) 100%);
        opacity: 0;
    }
}

/* 时钟占原汉堡菜单位置；悬停 → 汉堡，点空白 → 恢复时钟 */
.realistic-clock.pv-clock-corner {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 0.95rem);
    right: max(0.45rem, env(safe-area-inset-right, 0px));
    z-index: 1003;
    width: 110px; /* 44px × 2.5 */
    height: 110px;
    margin: 0;
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.pv-show-burger .realistic-clock.pv-clock-corner,
.realistic-clock.pv-clock-corner.is-menu-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.app-client .realistic-clock.pv-clock-corner {
    top: calc(env(safe-area-inset-top, 0px) + 1.05rem);
    right: max(0.55rem, env(safe-area-inset-right, 0px));
}

.realistic-clock .pv-clock-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 50%;
    border: 4px solid #cec5c5;
    box-sizing: border-box;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 6;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.realistic-clock.is-ai-avatar .clock-face {
    opacity: 0;
    visibility: hidden;
}

.realistic-clock.is-ai-avatar .pv-clock-avatar {
    opacity: 1;
    visibility: visible;
}

.realistic-clock {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0;
}

.realistic-clock .clock-face {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #333, #111);
    border-radius: 50%;
    border: 4px solid #cec5c5;
    box-sizing: border-box;
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.45),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.realistic-clock .glass-cover {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 5;
}

.realistic-clock .center-circle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #666, #333);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    z-index: 4;
}

.realistic-clock .hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    z-index: 3;
    will-change: transform;
}

.realistic-clock .hour {
    width: 6px;
    height: 26%;
    background: linear-gradient(to bottom, #1d6981, #444);
}

.realistic-clock .minute {
    width: 4px;
    height: 34%;
    background: linear-gradient(to bottom, #bbb, #666);
}

.realistic-clock .second {
    width: 2px;
    height: 38%;
    background: #e11d48;
}

.realistic-clock .number {
    position: absolute;
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.realistic-clock .number-12 {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
}

.realistic-clock .number-3 {
    top: 50%;
    right: 9%;
    transform: translateY(-50%);
}

.realistic-clock .number-6 {
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
}

.realistic-clock .number-9 {
    top: 50%;
    left: 9%;
    transform: translateY(-50%);
}

@media (max-width: 620px) {
    .pv-brand-card {
        width: min(420px, 94vw);
        height: 96px;
    }

    .pv-brand-card:hover {
        height: 228px;
    }

    .pv-brand-card .pv-brand-word {
        font-size: 28px;
    }

    .pv-brand-card .logo1 .pv-brand-word {
        font-size: 38px;
    }

    .pv-brand-card .content .logo {
        width: 88px;
        min-height: 54px;
    }

    .pv-brand-card:hover .logo {
        width: 235px;
    }

    .pv-brand-card .content .logo-bottom-text {
        font-size: 13px;
        margin-top: 52px;
    }

    .pv-brand-card .bottom-text {
        font-size: 13px;
        letter-spacing: 0.08em;
        bottom: 28px;
    }

    .realistic-clock.pv-clock-corner {
        width: 100px;
        height: 100px;
        right: max(0.35rem, env(safe-area-inset-right, 0px));
    }
}

/* ========== 说明结果区：强制暗色（盖过 electricity-analysis-legacy 白底） ========== */
body {
    --pv-result-bg: #14181c;
    --pv-result-surface: #1a1f24;
    --pv-result-text: #f0ebe3;
    --pv-result-muted: rgba(240, 235, 227, 0.62);
    --pv-result-border: rgba(255, 255, 255, 0.12);
    --pv-result-accent: #d4a574;
}

body #result.analysis-result,
body #result {
    background: var(--pv-result-bg) !important;
    background-color: var(--pv-result-bg) !important;
    border: 1px solid var(--pv-result-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
    color: var(--pv-result-text) !important;
    padding: 1.25rem 1.15rem !important;
}

body #result .result-header {
    border-bottom: 1px solid var(--pv-result-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

body #result .result-title {
    color: var(--pv-result-text) !important;
}

body #result .result-status {
    background: rgba(134, 239, 172, 0.12) !important;
    color: #86efac !important;
    border: 1px solid rgba(134, 239, 172, 0.28);
}

body #result .result-status.warning,
body #result .result-status.is-warn {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.35);
}

body #result .result-status.danger,
body #result .result-status.is-err {
    background: rgba(248, 113, 113, 0.14) !important;
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.35);
}

body #result .result-content,
body #result #result-content {
    background: transparent !important;
    color: var(--pv-result-text) !important;
}

body #result .analysis-report,
body #result .streaming-container {
    background: var(--pv-result-surface) !important;
    background-image: none !important;
    border: 1px solid var(--pv-result-border) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    color: var(--pv-result-text) !important;
    padding: 1.15rem 1rem !important;
}

body #result .ai-analysis-section h3,
body #result .params-section h3,
body #result .analysis-report h3 {
    color: #e8c49a !important;
    border-bottom-color: rgba(212, 165, 116, 0.45) !important;
}

body #result .ai-content,
body #result .streaming-content,
body #result .analysis-content {
    background: #12161a !important;
    background-image: none !important;
    border: none !important;
    border-left: none !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: var(--pv-result-text) !important;
}

body #result .analysis-content h1,
body #result .analysis-content h2,
body #result .analysis-content h3,
body #result .analysis-content h4,
body #result .ai-content h1,
body #result .ai-content h2,
body #result .ai-content h3,
body #result .ai-content h4 {
    color: #f5efe6 !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

body #result .analysis-content h3,
body #result .ai-content h3 {
    color: #e8a87c !important;
}

body #result .analysis-content p,
body #result .analysis-content li,
body #result .analysis-content span,
body #result .analysis-content td,
body #result .analysis-content th,
body #result .ai-content p,
body #result .ai-content li,
body #result .ai-content span,
body #result .streaming-content,
body #result .streaming-content p {
    color: var(--pv-result-text) !important;
}

body #result .analysis-content strong,
body #result .ai-content strong {
    color: #ffd7a8 !important;
    font-weight: 700;
}

body #result .analysis-content .special-text,
body #result .ai-content .special-text {
    color: #86efac !important;
}

body #result .analysis-table {
    background: #0f1316 !important;
    color: var(--pv-result-text) !important;
    box-shadow: none !important;
}

body #result .analysis-table td,
body #result .analysis-table th {
    color: var(--pv-result-text) !important;
    border-color: #333940 !important;
    background: transparent !important;
}

body #result .analysis-table tr:nth-child(even) {
    background-color: #1a2026 !important;
}

body #result .analysis-table tr:nth-child(odd) {
    background-color: #12171c !important;
}

body #result .analysis-table tr:first-child,
body #result .analysis-table thead tr {
    background: #242b32 !important;
}

body #result .pv-collect-summary {
    background: rgba(8, 12, 16, 0.55) !important;
    border-color: var(--pv-result-border) !important;
    color: rgba(240, 235, 227, 0.88) !important;
}

body #result .pv-collect-summary strong {
    color: #f5efe6 !important;
}

body #result .pv-quote-disclaimer {
    color: var(--pv-result-muted) !important;
}

body #result .streaming-content::after {
    color: var(--pv-result-accent) !important;
}

/* ========== 等待加载：暗色壳（盖过 legacy 浅灰白底） ========== */
body #loading-container.loading-container,
body #analysis #loading-container {
    background: var(--pv-result-bg, #14181c) !important;
    background-image: none !important;
    border: 1px solid var(--pv-result-border, rgba(255, 255, 255, 0.12)) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
    color: var(--pv-result-text, #f0ebe3) !important;
}

body #loading-container .loading-text {
    color: rgba(240, 235, 227, 0.92) !important;
}

body #loading-container .loading-subtitle {
    color: rgba(240, 235, 227, 0.55) !important;
}

body #loading-container .rotating-logo {
    border-color: rgba(212, 165, 116, 0.55) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55) !important;
}

body #loading-container .countdown-badge {
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #f5efe6 !important;
}

/* —— 安装评估：双栏仪表盘 —— */
.pv-dashboard-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.15rem;
    align-items: stretch;
    width: 100%;
    max-width: 1080px;
    margin: 0.35rem auto 0;
}

@media (max-width: 900px) {
    .pv-dashboard-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        align-items: start;
    }
}

.pv-panel-left,
.pv-panel-right {
    min-width: 0;
}

/* 去掉参数配置 / 评估预判 大卡片外框，保留内部控件底框 */
.water-quality.pv-panel-left,
.water-quality.pv-panel-right {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0.15rem !important;
    padding-right: 0.15rem !important;
}

.water-quality.pv-panel-left {
    display: flex;
    flex-direction: column;
}

.water-quality.pv-panel-left .param-control {
    margin-bottom: 0.85rem;
}

.water-quality.pv-panel-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
}

.pv-panel-title {
    font-size: 1rem;
    font-weight: 650;
    color: rgba(245, 239, 230, 0.92);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.pv-step-tag {
    background: rgba(74, 144, 226, 0.16);
    color: #8ec0f2;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    border: 1px solid rgba(74, 144, 226, 0.35);
}

.pv-site-selection--in-form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    margin-bottom: 0.85rem;
}

.pv-site-selection--in-form .param-header {
    margin-bottom: 0.15rem;
}

.pv-scene-row {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.1rem 1.35rem;
    margin: 0.35rem auto 1.15rem;
    width: 100%;
    box-sizing: border-box;
}

.pv-scene-row > .pv-site-selection--side {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.7rem !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: 100%;
    min-width: 0 !important;
}

.pv-scene-row .pv-side-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.22em;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0.35rem 0.2rem;
    white-space: nowrap;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    position: relative;
    z-index: 1;
}

.pv-panel-left .pv-site-grid,
.pv-panel-left .pv-mode-grid {
    width: min(200px, 100%);
    height: min(200px, 42vw);
    aspect-ratio: 1;
    max-width: 200px;
    margin: 0;
    flex: 0 1 auto !important;
    flex-shrink: 1 !important;
    position: relative;
    z-index: 0;
}

.pv-panel-left .pv-site-grid .label .text,
.pv-panel-left .pv-mode-grid .label .text {
    font-size: 14px;
}

.pv-metrics-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    flex: 0 0 auto;
}

.pv-metric-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
}

.pv-metric-card .metric-label {
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.78rem;
}

.pv-metric-card .metric-value {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-align: left;
    line-height: 1.25;
    word-break: break-word;
}

.pv-metric-card .metric-value.highlight {
    color: #e8a23a;
}

.pv-visual-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    padding: 0.95rem 1.05rem;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(74, 144, 226, 0.1), rgba(232, 162, 58, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 8.5rem;
}

.pv-visual-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.88rem;
    font-weight: 600;
}

.pv-progress-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pv-progress-item--extra[hidden] {
    display: none !important;
}

.pv-progress-item--extra:not([hidden]) {
    animation: pvExtraBarIn 0.28s ease;
}

@keyframes pvExtraBarIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pv-progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pv-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: rgba(148, 163, 184, 0.95);
}

.pv-highlight-text {
    color: #e8a23a;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.pv-progress-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.pv-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #4a90e2, #8ec0f2);
    transition: width 0.35s ease;
}

.pv-progress-fill--gold {
    background: linear-gradient(90deg, #c4892e, #e8a23a);
}

.pv-progress-fill--teal {
    background: linear-gradient(90deg, #2f9e8a, #5ec4b0);
}

.pv-progress-fill--violet {
    background: linear-gradient(90deg, #7c6adf, #a78bfa);
}

.pv-progress-fill--sky {
    background: linear-gradient(90deg, #38bdf8, #60a5fa);
}

.pv-progress-fill--mint {
    background: linear-gradient(90deg, #34d399, #6ee7b7);
}

.pv-progress-fill--coral {
    background: linear-gradient(90deg, #f97316, #fb7185);
}

.pv-cta-divider {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(100, 116, 139, 0.95);
    margin: 0.15rem 0 0.85rem;
    position: relative;
    letter-spacing: 0.12em;
    flex: 0 0 auto;
}

.pv-cta-divider::before,
.pv-cta-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.pv-cta-divider::before { left: 0; }
.pv-cta-divider::after { right: 0; }

.pv-panel-right .controls.pq-action-bar {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: auto;
    flex: 0 0 auto;
}

.pv-panel-right .pq-action-btn {
    width: 100%;
}

@media (max-width: 900px) {
    .pv-scene-row {
        gap: 1rem 1.15rem;
    }

    .pv-panel-left .pv-site-grid,
    .pv-panel-left .pv-mode-grid {
        width: min(180px, 100%);
        height: min(180px, 40vw);
        max-width: 180px;
    }
}

@media (max-width: 520px) {
    .pv-scene-row {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        gap: 1.35rem;
    }

    .pv-scene-row > .pv-site-selection--side {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.65rem !important;
        width: 100%;
        flex: 0 0 auto !important;
    }

    .pv-scene-row .pv-side-title {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        letter-spacing: 0.2em;
        text-align: center;
        padding: 0;
        line-height: 1.3;
    }

    .pv-panel-left .pv-site-grid,
    .pv-panel-left .pv-mode-grid {
        width: min(220px, 78vw);
        height: min(220px, 78vw);
        max-width: min(220px, 78vw);
        margin: 0 auto;
    }

    .water-quality.pv-panel-right {
        height: auto;
    }
}
