/* 中小学生心理健康筛查系统 · 产品介绍页
   依赖 ../shared/intro.css 的基础变量与通用组件（hero / metrics / section / cards / steps） */

.page { width: min(1200px, calc(100% - 48px)); }

figure.shot { margin: 0; }

/* ---------- 状态徽标 ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-live { color: #0f766e; background: rgba(13, 148, 136, 0.12); }
.badge-next { color: #b45309; background: rgba(245, 158, 11, 0.14); }

/* ---------- KPI ---------- */
.kpi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 26px 0 8px;
}
.kpi-item {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 10px 24px rgba(35, 48, 80, 0.07);
}
.kpi-item strong { display: block; color: #3730a3; font-size: 29px; line-height: 1.2; letter-spacing: -0.02em; }
.kpi-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 16px; }

/* ---------- 平台介绍视频 ---------- */
.video-frame { max-width: 800px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #172033; }
.video-poster { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; color: #fff; background: #172033; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .76; }
.video-play { position: relative; display: grid; place-items: center; width: 68px; height: 68px; padding-left: 4px; border-radius: 50%; background: rgba(55, 48, 163, .92); font-size: 25px; }
.video-poster-label { position: absolute; bottom: 16px; left: 18px; padding: 5px 10px; border-radius: 8px; background: rgba(15, 23, 42, .78); font-size: 16px; }
.video-poster:focus-visible { outline: 3px solid #818cf8; outline-offset: -4px; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-fallback { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.video-fallback a { color: #4338ca; }

/* ---------- 三级视角 ---------- */
.hierarchy {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
.level {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 20px;
    background: linear-gradient(155deg, #ffffff, #f5f6ff);
}
.level-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.level-rank {
    display: grid;
    width: 34px; height: 34px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-size: 16px;
    font-weight: 800;
}
.level-head h3 { margin: 0; font-size: 21px; }
.level ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.level li { margin: 5px 0; }

/* 三级串联线 */
.hierarchy-tie {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: -6px 0 26px;
    color: #6b7688;
    font-size: 16px;
}
.hierarchy-tie i { flex: 0 0 42px; height: 1px; background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent); }

/* ---------- 闭环流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: flow; }
.flow-item {
    position: relative;
    padding: 20px 18px;
    border-radius: 18px;
    border: 1px solid rgba(99, 102, 241, 0.16);
    background: linear-gradient(160deg, #fff, #f6f4ff);
}
.flow-item::before {
    counter-increment: flow;
    content: counter(flow);
    display: grid;
    width: 30px; height: 30px;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    font-size: 16px;
    font-weight: 800;
}
.flow-item h3 { margin: 0 0 7px; font-size: 19px; }
.flow-item p { margin: 0; color: var(--muted); font-size: 16px; }
.flow-item .badge { margin-top: 10px; }

/* 支撑数字 */
.support {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 18px;
    align-items: stretch;
    margin-top: 20px;
}
.support-num {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #312e81, #4f46e5 55%, #7c3aed);
    box-shadow: 0 16px 32px rgba(49, 46, 129, 0.24);
}
.support-num strong { font-size: 34px; line-height: 1.25; }
.support-num strong em { font-style: normal; font-size: 20px; opacity: 0.86; }
.support-num p { margin: 10px 0 0; font-size: 16px; opacity: 0.88; }
.support-side { padding: 24px; border-radius: 20px; background: var(--paper); border: 1px solid rgba(255, 255, 255, 0.82); box-shadow: 0 10px 24px rgba(35, 48, 80, 0.07); }
.support-side h3 { margin: 0 0 10px; font-size: 20px; }
.support-side ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.support-side li { margin: 6px 0; }

/* ---------- 图集 ---------- */
.gallery { display: grid; gap: 14px; }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.shot {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(35, 48, 80, 0.08);
    overflow: hidden;
    cursor: zoom-in;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(79, 70, 229, 0.18); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 11px 15px 13px; color: #56637a; font-size: 16px; line-height: 1.55; }

/* ---------- 证书 / 论文卡 ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(35, 48, 80, 0.07);
    overflow: hidden;
}
.doc button.doc-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 330px;
    padding: 14px;
    border: 0;
    background: linear-gradient(180deg, #f6f7fc, #eceffa);
    cursor: zoom-in;
}
.doc-thumb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    box-shadow: 0 6px 16px rgba(23, 32, 51, 0.08);
}
.doc-body { padding: 14px 18px 20px; }
.doc-body small { display: inline-block; margin-bottom: 7px; color: #6b7688; font-size: 16px; font-weight: 700; }
.doc-body h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.doc-body p { margin: 0; color: var(--muted); font-size: 16px; }
.doc-body p + p { margin-top: 8px; }
.doc-body .doc-meta { margin-top: 9px; color: #4f46e5; font-size: 16px; font-weight: 700; word-break: break-all; }
.doc-body .doc-meta a { color: inherit; }
.doc-wide { grid-column: span 1; }

/* ---------- 时间线 ---------- */
.timeline { display: grid; gap: 12px; }
.tl-item {
    display: grid;
    grid-template-columns: 158px 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(99, 102, 241, 0.12);
}
.tl-year { color: #3730a3; font-size: 19px; font-weight: 800; white-space: nowrap; }
.tl-item p { margin: 0; color: var(--muted); font-size: 16.5px; }
.tl-item p strong { color: var(--ink); }

/* ---------- 边界提示中的隐私说明 ---------- */
.privacy {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(239, 246, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #41516a;
    font-size: 16px;
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 56px;
    background: rgba(15, 23, 42, 0.86);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 130px); border-radius: 14px; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.lightbox-cap {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(1000px, 90vw);
    text-align: center;
    color: #e2e8f5;
    font-size: 16px;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 42px; height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- 页脚 ---------- */
.foot {
    margin-top: 72px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 16px;
}
.foot a { color: #4f46e5; font-weight: 700; text-decoration: none; }

@media (max-width: 1000px) {
    .kpi { grid-template-columns: repeat(2, 1fr); }
    .hierarchy { grid-template-columns: 1fr; }
    .flow { grid-template-columns: repeat(2, 1fr); }
    .gallery-3, .doc-grid { grid-template-columns: repeat(2, 1fr); }
    .support { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .page { width: min(100% - 28px, 1200px); }
    .kpi { grid-template-columns: 1fr; }
    .kpi-item strong { font-size: 25px; }
    .flow { grid-template-columns: 1fr; }
    .gallery-3, .gallery-2, .doc-grid { grid-template-columns: 1fr; }
    .tl-item { grid-template-columns: 1fr; gap: 4px; }
    .hierarchy-tie { display: none; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .section h2 { font-size: 26px; }
    .support-num strong { font-size: 28px; }
    .doc button.doc-thumb { height: 250px; }
}
