/* ==========================================================================
   Solution Detail · Demo Blocks（方案详情页新区块样式）
   ==========================================================================
   来源：demo/ui-opt-2026-08-18/css/demo.css（v1.5 交互模型）
   迁移范围：SECTION 1 · How It Works（.hiw*）+ SECTION 2 · Product Highlights（.ph*）
   适配说明：
     1) 删除 demo 的 :root 变量块 / 全局 reset / demo-bar / demo-footer（主题 tokens.css 已定义同名变量）；
     2) 区块标题「Product Highlights」在模板层已更名为「核心能力」/ Core Capabilities；
     3) How It Works 在视频播放器下方追加步骤引导条（.hiw__steps，保留原场景 4 步文案）；
     4) 深色区（.ph）标题/正文护栏对齐 override.css §②.5 规则（标题白/正文浅灰）。
   ========================================================================== */

/* ==========================================================================
   SECTION 1 · How It Works（视频预览 + 步骤引导条）
   ========================================================================== */
.hiw {
    position: relative;
    padding: clamp(64px, 8vw, 110px) 24px 72px;
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 194, 255, 0.16), transparent 42%),
        radial-gradient(circle at 85% 88%, rgba(45, 204, 211, 0.14), transparent 45%),
        linear-gradient(160deg, #F4FAFF 0%, #EAF4FB 55%, #F7FAFD 100%);
    overflow: hidden;
    text-align: center;
}
/* 装饰点阵（浅色） */
.hiw::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at center, rgba(0, 168, 224, 0.22) 1.5px, transparent 1.6px);
    background-size: 26px 26px;
    opacity: 0.45;
    pointer-events: none;
}
.hiw__inner { position: relative; max-width: 1180px; margin: 0 auto; }
.hiw__kicker {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nv-cyan-600);
    margin-bottom: 12px;
}
.hiw__title {
    font-family: var(--nv-font-heading);
    font-size: clamp(32px, 4.5vw, 48px);
    line-height: 1.15;
    color: var(--nv-navy-900);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.hiw__sub {
    max-width: 560px;
    margin: 0 auto 44px;
    font-size: 19px;
    color: var(--nv-gray-500);
}

/* ---- Player（圆形蒙版 → 就地展开 16:9） ---- */
.hiw__player {
    --pw: 480px;
    --ph: 480px;
    position: relative;
    width: var(--pw);
    height: var(--ph);
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--nv-navy-900);
    box-shadow: 0 24px 60px rgba(10, 22, 40, 0.30);
    transition:
        width 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.9s ease;
}
.hiw__player.is-expanded {
    --pw: min(1180px, 94vw);
    --ph: calc(var(--pw) * 0.5625);
    border-radius: 22px;
    box-shadow: 0 40px 90px rgba(10, 22, 40, 0.38);
}
.hiw__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    cursor: default;
}
/* Play 胶囊按钮（视频中央） */
.hiw__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--nv-orange-500), #25C0C7);
    color: #063A3E;
    font-family: var(--nv-font-body);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(45, 204, 211, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
}
.hiw__player.is-ready .hiw__play { opacity: 1; visibility: visible; }
.hiw__play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 16px 38px rgba(45, 204, 211, 0.6);
}
.hiw__play:active { transform: translate(-50%, -50%) scale(0.97); }
.hiw__play-ic { display: inline-flex; }
.hiw__player.is-playing .hiw__play { opacity: 0; visibility: hidden; pointer-events: none; }

/* 滚动入场（teaser → 全显） */
.hiw { transform: translateY(6%); }
.hiw.is-visible { transform: translateY(0); transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.hiw.is-hidden { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }

/* ---- Modal 播放器（整页严格居中） ---- */
.hiw__modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: rgba(6, 14, 26, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    padding: 24px;
}
.hiw__modal.is-open { opacity: 1; visibility: visible; }
.hiw__modal-stage {
    width: min(1080px, 94vw);
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 96px);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
    transform: scale(0.94);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hiw__modal.is-open .hiw__modal-stage { transform: scale(1); }
.hiw__modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.hiw__modal-close {
    position: absolute;
    top: 20px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(20, 30, 48, 0.7);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    z-index: 1001;
}
.hiw__modal-close:hover {
    background: rgba(40, 56, 82, 0.85);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg);
}
.hiw__modal-close svg { width: 22px; height: 22px; }
body.modal-open { overflow: hidden; }

/* ---- 步骤引导条（保留原场景 How It Works 4 步文案） ---- */
.hiw__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 64px auto 0;
    max-width: 1180px;
    text-align: left;
}
.hiw__step {
    position: relative;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 168, 224, 0.22);
    border-radius: 18px;
    padding: 24px 22px 22px;
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.07);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.hiw__step:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(10, 22, 40, 0.12);
    border-color: rgba(0, 194, 255, 0.5);
}
.hiw__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nv-cyan-500), var(--nv-cyan-600));
    color: var(--nv-navy-900);
    font-family: var(--nv-font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(0, 194, 255, 0.35);
}
.hiw__step-title {
    font-family: var(--nv-font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--nv-navy-900);
    line-height: 1.3;
    margin: 0 0 8px;
}
.hiw__step-desc {
    font-size: 15px;
    color: var(--nv-gray-500);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   SECTION 2 · 核心能力（原 Product Highlights 样式，标题已更名）
   ========================================================================== */
.ph {
    background:
        radial-gradient(circle at 50% 30%, rgba(0, 168, 224, 0.14), transparent 46%),
        radial-gradient(circle at 10% 90%, rgba(45, 204, 211, 0.10), transparent 40%),
        var(--nv-navy-900);
    color: var(--nv-gray-200);
    position: relative;
}
.ph__head {
    text-align: center;
    padding: clamp(56px, 7vw, 96px) 24px 0;
}
.ph__kicker {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nv-cyan-400);
    margin-bottom: 12px;
}
.ph__title {
    font-family: var(--nv-font-heading);
    font-size: clamp(32px, 4.5vw, 48px);
    color: var(--nv-white);
    line-height: 1.15;
}
/* 深色护栏：标题/正文显式浅色（override.css §②.5 同款） */
.ph__title,
.ph__card-title { color: var(--nv-white); }
.ph__card-desc { color: var(--nv-gray-300); }

/* ---- Stage（高容器，中心圆 sticky，文案自然滚动） ----
   4 张核心能力卡（2 段）适配：padding/gap 较 demo 原版（7 张）大幅压缩，
   保留"sticky 中心 + 自然滚动 + 左右错落"核心节奏，避免 stage 高度失控。
   单位改用 rem（不再用 vh）—— vh 在小视口/截图脚本下易被拉伸成数千像素。
   2026-08-21 样式修订：中心圆 sticky 停靠位下移（top 60vh）避免遮挡标题/
   左右列文字；stage 顶部 padding 加大给标题留出呼吸区；左右列内边距加宽
   把卡片推离中心圆（文字与图标层次分明、互不干扰）。 */
.ph__stage {
    position: relative;
    max-width: none;
    margin: 0 auto;
    padding: 9rem 24px 11rem clamp(24px, 4vw, 72px);
}
.ph__center {
    position: sticky;
    top: 60vh;
    transform: translateY(-50%);
    z-index: 3;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.ph__disc {
    position: relative;
    width: clamp(200px, 20vw, 300px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, #FFFFFF, #DCEFFA 68%, #C9E5F4 100%);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45),
        0 0 0 10px rgba(0, 194, 255, 0.14),
        0 0 80px rgba(0, 168, 224, 0.35);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.ph__disc::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(10, 22, 40, 0.06);
}
.ph__prod {
    position: absolute;
    inset: 6%;
    width: 88%;
    height: 88%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.ph__prod.is-active { opacity: 1; transform: scale(1); }

/* ---- 左右错落双列文案（4 张卡：左列 1/3、右列 2/4，gap 12rem） ----
   左右列内边距加宽（140px/14vw），保证卡片文字不被中心圆覆盖。 */
.ph__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
}
.ph__col { display: flex; flex-direction: column; gap: 12rem; }
.ph__col--left  { padding-right: clamp(140px, 14vw, 260px); }
.ph__col--right {
    padding-left: clamp(140px, 14vw, 260px);
    margin-top: 12rem;                   /* 错落幅度（demo 原版 30vh → 12rem） */
    align-items: flex-end;
}
.ph__card {
    position: relative;
    max-width: 360px;
    padding: 26px 30px;
    background: rgba(22, 41, 74, 0.55);
    border: 1px solid rgba(0, 194, 255, 0.28);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    scroll-margin-top: 40vh;
}
.ph__card.is-focused {
    border-color: rgba(0, 194, 255, 0.65);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 194, 255, 0.2);
    transform: translateY(-2px);
}
.ph__col--right .ph__card { text-align: left; }   /* 2026-08-21 统一左对齐，消除靠右不适感 */
.ph__col--right .ph__badge { margin-left: 0; }    /* 徽章随卡片左对齐 */
.ph__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nv-cyan-500), var(--nv-cyan-600));
    color: var(--nv-navy-900);
    font-family: var(--nv-font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0, 194, 255, 0.4);
}
.ph__card-title {
    font-family: var(--nv-font-heading);
    font-size: clamp(21px, 1.9vw, 26px);
    color: var(--nv-white);
    margin-bottom: 10px;
    line-height: 1.25;
    overflow-wrap: break-word;   /* 长词/长串可断行，避免撑破卡片 */
    word-break: normal;          /* 中文自然断行，不强制单字换行 */
}
.ph__card-desc {
    font-size: 17px;
    color: var(--nv-gray-300);
    line-height: 1.7;
    overflow-wrap: break-word;   /* 长 URL / 无空格长串可断行 */
    word-break: normal;          /* 中文自然断行，避免单个汉字被强制换行 */
}
.ph__card--pad { visibility: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .ph__card { max-width: 340px; }
    .hiw__steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* How It Works：小圆，展开仍生效 */
    .hiw__player {
        --pw: min(280px, 80vw);
        --ph: min(280px, 80vw);
        border-radius: 50%;
    }
    .hiw__player.is-expanded {
        --pw: 94vw;
        --ph: calc(94vw * 0.5625);
        border-radius: 14px;
    }
    .hiw__steps { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }

    /* 核心能力：移动端不启用 sticky，文案单列堆叠 */
    .ph__head { padding-top: 56px; }
    .ph__stage { padding-top: 40px; padding-bottom: 48px; padding-left: 22px; padding-right: 22px; }
    .ph__center {
        position: relative;
        top: auto;
        transform: none;
        margin: 0 auto 40px;
        pointer-events: none;
    }
    .ph__disc { width: 210px; }
    .ph__cols { grid-template-columns: 1fr; gap: 0; }
    .ph__col { gap: 32px; }
    .ph__col--left { padding-right: 0; }
    .ph__col--right { padding-left: 0; margin-top: 32px; align-items: flex-start; }
    .ph__col--right .ph__card,
    .ph__card {
        max-width: none;
        text-align: left;
    }
    .ph__col--right .ph__badge { margin-left: 0; }
    .hiw__modal-close { top: 14px; right: 14px; }
    .hiw__modal { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .hiw, .hiw__player, .hiw__play, .hiw__modal-stage, .ph__prod, .ph__card {
        transition: none !important;
        animation: none !important;
    }
    .hiw { transform: none; }
}
