/* ===== AMS v2 展示网站 ===== */
* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg:#080b14;
  --bg2:#0f1525;
  --bg3:#161e36;
  --text:#e8ecf4;
  --dim:#8893a8;
  --blue:#3b82f6;
  --green:#22c55e;
  --orange:#f59e0b;
  --purple:#a855f7;
  --pink:#ec4899;
  --line:rgba(255,255,255,0.07);
}

html,body { height:100%; overflow:hidden; background:var(--bg); color:var(--text); font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif; }

.progress { position:fixed; top:0; left:0; height:3px; background:linear-gradient(90deg,var(--blue),var(--green),var(--orange),var(--purple),var(--pink)); width:0; z-index:100; transition:width .4s; }
.pageno { position:fixed; top:16px; right:22px; font-size:12px; color:var(--dim); z-index:100; }
.hint { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); font-size:11px; color:rgba(255,255,255,.25); z-index:100; pointer-events:none; transition:opacity 1s; }

.deck { height:100vh; position:relative; }

.slide {
  background:
    linear-gradient(rgba(8,11,20,0.8), rgba(8,11,20,0.9)),
    url('../video/2.avif') center/cover no-repeat,
    var(--bg);
  position:absolute; top:0; left:0; width:100%; height:100vh;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  padding:24px 5vw;
  opacity:0; visibility:hidden; transform:translateY(20px);
  transition:opacity .6s,transform .6s; overflow-y:auto;
}
.slide.active { opacity:1; visibility:visible; transform:translateY(0); }

.page-tag { font-size:24px; letter-spacing:3px; color:var(--dim); margin-bottom:6px; text-transform:uppercase; margin-top:-50px; }
.page-tag.c-blue{color:var(--blue)} .page-tag.c-green{color:var(--green)}
.page-tag.c-orange{color:var(--orange)} .page-tag.c-purple{color:var(--purple)}
.page-title { font-size:40px; font-weight:800; margin-bottom:8px; text-align:center; letter-spacing:1px; line-height:1.3; }
.page-intro { font-size:22px; color:var(--dim); text-align:center; line-height:1.5; margin-bottom:8px; max-width:90%; }
.slide-bottom { margin-top:8px; font-size:28px; color:rgba(255,255,255,.35); text-align:center; }

/* ===== P1 封面（纯CSS渐变，无视频） ===== */
.cover {
  background:
    linear-gradient(rgba(8,11,20,0.8), rgba(8,11,20,0.9)),
    url('../video/1.avif') center/cover no-repeat,
    var(--bg);
}
.cover-inner { text-align:center; }
.cover-logo { font-size:80px; font-weight:900; letter-spacing:10px; background:linear-gradient(120deg,var(--blue),var(--green),var(--orange),var(--purple)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; line-height:1; }
.cover-sub { font-size:13px; letter-spacing:5px; color:var(--dim); margin:4px 0 20px; text-transform:uppercase; }
.cover-title { font-size:40px; font-weight:800; margin-bottom:10px; letter-spacing:3px; line-height:1.3; }
.cover-slogan { font-size:20px; margin-bottom:10px; }
.hl { color:var(--green); font-weight:700; }
.cover-desc { font-size:14px; color:var(--dim); line-height:1.9; margin-bottom:20px; }
.cover-tags { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.tag { padding:6px 18px; border-radius:20px; font-size:13px; font-weight:600; border:1px solid; }
.t1{color:var(--blue);border-color:rgba(59,130,246,.4);background:rgba(59,130,246,.08)}
.t2{color:var(--green);border-color:rgba(34,197,94,.4);background:rgba(34,197,94,.08)}
.t3{color:var(--orange);border-color:rgba(245,158,11,.4);background:rgba(245,158,11,.08)}
.t4{color:var(--purple);border-color:rgba(168,85,247,.4);background:rgba(168,85,247,.08)}

/* ===== P2 视频展示 ===== */
.video-showcase { display:flex; gap:50px; justify-content:center; width:90%; max-width:1800px; }
.video-card { position:relative; border-radius:14px; overflow:hidden; border:1px solid var(--line); box-shadow:0 8px 32px rgba(0,0,0,.4); flex:1; }
.video-card video { width:100%; height:auto; max-height:340px; object-fit:cover; object-fit:cover; display:block; }
.video-label { position:absolute; bottom:0; left:0; right:0; padding:10px 12px; background:linear-gradient(0deg,rgba(0,0,0,.85),transparent); font-size:13px; font-weight:600; text-align:center; }

/* ===== P3 流程管道 ===== */
.pipeline { display:flex; align-items:stretch; gap:6px; margin-bottom:28px; flex-wrap:wrap; justify-content:center; }
.pipe-step { background:var(--bg2); border:1px solid var(--line); border-radius:12px; padding:18px 16px; flex:1; min-width:140px; max-width:180px; display:flex; flex-direction:column; gap:8px; text-align:center; transition:all .3s; }
.pipe-step:hover { border-color:rgba(245,158,11,.4); transform:translateY(-3px); }
.pipe-step.highlight { border-color:rgba(245,158,11,.5); background:rgba(245,158,11,.05); }
.pipe-num { width:32px; height:32px; border-radius:50%; background:var(--bg3); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:var(--orange); margin:0 auto; }
.highlight .pipe-num { background:var(--orange); color:#fff; }
.pipe-name { font-size:18px; font-weight:700; }
.pipe-desc { font-size:13px; color:var(--dim); line-height:1.7; }
.pipe-arrow { display:flex; align-items:center; color:rgba(255,255,255,.2); font-size:20px; }

.contrast-box { display:flex; gap:0; width:90%; max-width:1100px; border-radius:14px; overflow:hidden; border:1px solid var(--line); }
.contrast-old, .contrast-new { flex:1; padding:22px 28px; }
.contrast-old { background:rgba(248,113,113,.06); }
.contrast-new { background:rgba(34,197,94,.06); }
.contrast-vs { display:flex; align-items:center; justify-content:center; padding:0 16px; background:var(--bg); font-weight:900; font-size:16px; color:var(--dim); }
.contrast-label { font-size:14px; letter-spacing:2px; margin-bottom:8px; }
.contrast-old .contrast-label { color:#f87171; }
.contrast-new .contrast-label { color:var(--green); }
.contrast-text { font-size:15px; color:var(--dim); line-height:1.9; }
.contrast-text b { font-size:17px; }
.contrast-old .contrast-text b { color:#f87171; }
.contrast-new .contrast-text b { color:var(--green); }

/* ===== P4 矩阵 ===== */
.matrix-grid { display:flex; gap:24px; width:90%; max-width:1100px; }
.matrix-col { flex:1; display:flex; flex-direction:column; }
.matrix-head { padding:14px 20px; border-radius:10px 10px 0 0; font-size:18px; font-weight:700; text-align:center; }
.c-blue-bg { background:rgba(59,130,246,.15); color:var(--blue); border:1px solid rgba(59,130,246,.3); border-bottom:none; }
.c-orange-bg { background:rgba(245,158,11,.15); color:var(--orange); border:1px solid rgba(245,158,11,.3); border-bottom:none; }
.matrix-items { background:var(--bg2); border:1px solid var(--line); border-top:none; border-radius:0 0 10px 10px; padding:12px; display:flex; flex-direction:column; gap:10px; }
.matrix-item b { font-size:16px; display:block; margin-bottom:6px; }
.matrix-item p { font-size:14px; color:var(--dim); line-height:1.8; }

/* ===== P5 诊断 ===== */
.diag-flow { display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.diag-step { background:var(--bg2); border:1px solid var(--line); border-radius:12px; padding:14px 20px; text-align:center; flex:1; max-width:300px; }
.diag-step.highlight2 { border-color:rgba(34,197,94,.5); background:rgba(34,197,94,.05); }
.diag-icon { font-size:28px; font-weight:900; color:var(--green); margin-bottom:6px; }
.diag-name { font-size:18px; font-weight:700; margin-bottom:6px; }
.diag-detail { font-size:14px; color:var(--dim); line-height:1.7; }
.diag-arrow { color:rgba(255,255,255,.2); font-size:22px; }

.diag-sample { width:90%; max-width:1100px; }
.ds-label { font-size:14px; font-weight:600; color:var(--green); margin-bottom:8px; }
.ds-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:10px; }
.ds-item { background:var(--bg2); border:1px solid var(--line); border-radius:8px; padding:10px 14px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ds-item.bad { border-color:rgba(248,113,113,.3); background:rgba(248,113,113,.05); }
.ds-item.ok { border-color:rgba(34,197,94,.3); }
.ds-dim { font-size:14px; color:var(--dim); }
.ds-score { font-size:20px; font-weight:800; }
.ds-item.bad .ds-score { color:#f87171; }
.ds-item.ok .ds-score { color:var(--green); }
.ds-avg { font-size:12px; color:rgba(255,255,255,.3); }
.ds-conclusion { font-size:13px; color:var(--dim); text-align:center; padding:10px 16px; border:1px dashed var(--line); border-radius:8px; line-height:1.8; }
.ds-conclusion b { color:var(--green); }

/* ===== P6 进化 ===== */
.evo-loop { display:flex; align-items:center; gap:8px; margin-bottom:28px; flex-wrap:wrap; justify-content:center; }
.evo-circle { width:100px; height:100px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; border:2px solid; }
.evo-node:nth-child(1) .evo-circle { border-color:var(--blue); color:var(--blue); background:rgba(59,130,246,.08); }
.evo-node:nth-child(3) .evo-circle { border-color:var(--green); color:var(--green); background:rgba(34,197,94,.08); }
.evo-node:nth-child(5) .evo-circle { border-color:var(--orange); color:var(--orange); background:rgba(245,158,11,.08); }
.evo-node:nth-child(7) .evo-circle { border-color:var(--purple); color:var(--purple); background:rgba(168,85,247,.08); }
.evo-node:nth-child(9) .evo-circle { border-color:var(--pink); color:var(--pink); background:rgba(236,72,153,.08); }
.evo-arc { color:rgba(255,255,255,.2); font-size:20px; }
.evo-back { color:var(--pink); font-size:24px; }

.evo-examples { width:90%; max-width:1000px; display:flex; flex-direction:column; gap:12px; }
.evo-ex { display:flex; align-items:center; gap:14px; background:var(--bg2); border:1px solid var(--line); border-radius:10px; padding:14px 20px; }
.evo-ex-tag { font-size:12px; padding:4px 12px; border-radius:4px; background:rgba(168,85,247,.15); color:var(--purple); white-space:nowrap; }
.evo-ex-text { font-size:15px; color:var(--dim); line-height:1.7; }

/* ===== P7 划时代 ===== */
.era-compare { display:flex; gap:30px; width:90%; max-width:1100px; }
.era { flex:1; border-radius:16px; padding:22px 22px; }
.era.old { background:linear-gradient(160deg,rgba(248,113,113,.06),transparent); border:1px solid rgba(248,113,113,.15); }
.era.now { background:linear-gradient(160deg,rgba(34,197,94,.06),transparent); border:1px solid rgba(34,197,94,.15); }
.era-label { font-size:14px; letter-spacing:3px; margin-bottom:8px; }
.era.old .era-label { color:#f87171; }
.era.now .era-label { color:var(--green); }
.era-name { font-size:24px; font-weight:800; margin-bottom:16px; }
.era.old .era-name { color:rgba(255,255,255,.5); }
.era.now .era-name { color:#fff; }
.era-list { display:flex; flex-direction:column; gap:4px; margin-bottom:20px; }
.era-item { font-size:15px; padding:5px 0; border-bottom:1px solid rgba(255,255,255,.04); }
.era.old .era-item { color:rgba(255,255,255,.4); text-decoration:line-through; text-decoration-color:rgba(248,113,113,.3); }
.era.now .era-item { color:var(--text); }
.era-result { font-size:14px; line-height:1.6; }
.era.old .era-result { color:rgba(255,255,255,.35); }
.era.now .era-result { color:var(--green); font-weight:600; }

/* ===== P8 证明 ===== */
.proof-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; width:90%; max-width:1100px; }
.proof-card { background:var(--bg2); border:1px solid var(--line); border-radius:14px; padding:16px 18px; text-align:center; transition:all .3s; }
.proof-card:hover { transform:translateY(-4px); border-color:rgba(59,130,246,.4); }
.proof-num { font-size:40px; font-weight:900; background:linear-gradient(120deg,var(--blue),var(--green)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; line-height:1.1; margin-bottom:10px; }
.proof-label { font-size:17px; font-weight:700; margin-bottom:10px; }
.proof-desc { font-size:14px; color:var(--dim); line-height:1.7; }

/* ===== P9 结尾（纯CSS，无视频） ===== */
.ending {
  background:
    linear-gradient(rgba(8,11,20,0.8), rgba(8,11,20,0.9)),
    url('../video/2.avif') center/cover no-repeat,
    var(--bg);
}
.ending-box { text-align:center; }
.end-title { font-size:52px; white-space:nowrap; width:max-content; max-width:none; margin:0 auto 24px; background:linear-gradient(120deg,var(--blue),var(--green),var(--orange),var(--purple)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; margin-bottom:24px; }
.end-desc { font-size:18px; color:var(--dim); line-height:2; margin:0 auto 32px; white-space:nowrap; width:max-content; max-width:none; }
.end-cta { display:inline-block; font-size:20px; font-weight:700; color:#fff; padding:18px 44px; border-radius:40px; background:linear-gradient(90deg,var(--blue),var(--purple)); margin-bottom:28px; cursor:pointer; }
.end-contact { font-size:14px; color:rgba(255,255,255,.35); letter-spacing:3px; margin-top:20px; }

/* ===== 导航点 ===== */
.dots { position:fixed; right:18px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; gap:8px; z-index:100; }
.dot { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.15); cursor:pointer; transition:all .3s; }
.dot.active { background:var(--green); transform:scale(1.4); box-shadow:0 0 8px rgba(34,197,94,.5); }

/* ===== 响应式 ===== */
@media (max-width:900px) {
  .slide { padding:24px 16px; }
  .page-title { font-size:26px; }
  .cover-title { font-size:34px; }
  .cover-logo { font-size:64px; }
  .video-showcase { flex-direction:column; align-items:center; gap:12px; }
  .video-card video { width:160px; height:284px; }
  .pipeline { flex-direction:column; }
  .pipe-arrow { display:none; }
  .pipe-step { max-width:none; }
  .contrast-box { flex-direction:column; }
  .contrast-vs { padding:8px; }
  .matrix-grid { flex-direction:column; }
  .era-compare { flex-direction:column; gap:12px; }
  .proof-grid { grid-template-columns:repeat(2,1fr); }
  .diag-flow { flex-direction:column; }
  .diag-arrow { display:none; }
  .evo-loop { gap:4px; }
  .evo-circle { width:64px; height:64px; font-size:12px; }
  .ds-grid { grid-template-columns:1fr; }
  .end-title { font-size:36px; }
  .hint { display:none; }
}

/* ===== P5 诊断图表 ===== */
.diag-charts { display:flex; gap:20px; width:90%; max-width:1100px; margin-bottom:16px; }
.chart-card { flex:1; background:var(--bg2); border:1px solid var(--line); border-radius:12px; padding:12px; display:flex; flex-direction:column; gap:8px; }
.chart-card img { width:100%; height:auto; border-radius:8px; }
.chart-label { font-size:13px; color:var(--dim); text-align:center; }

/* ===== P8 证明图表 ===== */
.proof-charts { display:flex; gap:16px; width:90%; max-width:1100px; margin-top:12px; }
.pc-item { flex:1; background:var(--bg2); border:1px solid var(--line); border-radius:12px; padding:10px; display:flex; flex-direction:column; gap:6px; }
.pc-item img { width:100%; height:auto; max-height:165px; object-fit:contain; border-radius:8px; }
.pc-label { font-size:12px; color:var(--dim); text-align:center; }

/* ===== P5 GEO页 ===== */
.geo-layout { display:flex; gap:32px; width:90%; max-width:1800px; align-items:center; }
.slide .page-intro { white-space:nowrap; }
.geo-left { flex:0 0 300px; display:flex; justify-content:center; }
.geo-icon-wrap { display:flex; flex-direction:column; align-items:center; gap:12px; }
.geo-circle-big { padding:14px 28px; border-radius:40px; font-size:16px; font-weight:700; border:2px solid var(--blue); color:var(--blue); background:rgba(59,130,246,.08); }
.geo-circle-big.geo-brand { border-color:var(--green); color:var(--green); background:rgba(34,197,94,.1); font-size:18px; padding:16px 32px; }
.geo-arrows { font-size:22px; color:rgba(255,255,255,.2); }
.geo-ai-row { display:flex; gap:10px; }
.geo-ai { padding:10px 16px; border-radius:10px; font-size:14px; font-weight:600; background:var(--bg2); border:1px solid var(--line); color:var(--dim); }

.geo-right { flex:1; display:flex; flex-direction:column; gap:10px; }
.geo-feature { display:flex; gap:14px; align-items:flex-start; background:var(--bg2); border:1px solid var(--line); border-radius:12px; padding:14px 18px; }
.geo-f-icon { font-size:22px; font-weight:900; color:var(--green); flex-shrink:0; line-height:1.4; }
.geo-f-content b { font-size:15px; display:block; margin-bottom:4px; }
.geo-f-content p { font-size:13px; color:var(--dim); line-height:1.7; }

@media (max-width:900px) {
  .geo-layout { flex-direction:column; gap:20px; }
  .geo-left { flex:none; }
}

/* ===== P8 数字营销部门 ===== */
.dept-cycle { display:flex; align-items:stretch; gap:6px; width:95%; max-width:1150px; margin-bottom:18px; }
.dept-phase { flex:1; display:flex; flex-direction:column; gap:0; }
.dept-head { padding:10px 14px; border-radius:10px 10px 0 0; font-size:14px; font-weight:700; text-align:center; }
.dept-head.c-blue-bg { background:rgba(59,130,246,.15); color:var(--blue); border:1px solid rgba(59,130,246,.3); border-bottom:none; }
.dept-head.c-green-bg { background:rgba(34,197,94,.15); color:var(--green); border:1px solid rgba(34,197,94,.3); border-bottom:none; }
.dept-head.c-orange-bg { background:rgba(245,158,11,.15); color:var(--orange); border:1px solid rgba(245,158,11,.3); border-bottom:none; }
.dept-head.c-purple-bg { background:rgba(168,85,247,.15); color:var(--purple); border:1px solid rgba(168,85,247,.3); border-bottom:none; }
.dept-tasks { background:var(--bg2); border:1px solid var(--line); border-top:none; border-radius:0 0 10px 10px; padding:12px 12px; display:flex; flex-direction:column; gap:8px; flex:1; }
.dept-task { font-size:12px; color:var(--dim); line-height:1.6; display:flex; gap:6px; align-items:flex-start; }
.dt-icon { flex-shrink:0; font-size:14px; line-height:1.4; }
.dept-arrow { display:flex; align-items:center; color:rgba(255,255,255,.15); font-size:18px; }
.dept-conclusion { display:flex; gap:16px; width:95%; max-width:1150px; }
.dc-left { flex:1; text-align:center; padding:14px 20px; border-radius:10px; background:rgba(248,113,113,.06); border:1px solid rgba(248,113,113,.15); font-size:15px; color:rgba(255,255,255,.5); }
.dc-right { flex:1; text-align:center; padding:14px 20px; border-radius:10px; background:rgba(34,197,94,.06); border:1px solid rgba(34,197,94,.2); font-size:15px; color:var(--text); font-weight:600; }

@media (max-width:900px) {
  .dept-cycle { flex-direction:column; }
  .dept-arrow { display:none; }
  .dept-conclusion { flex-direction:column; }
}

/* ===== P6 方法论六宫格 ===== */
.method-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; width:90%; max-width:1100px; }
.method-card { background:var(--bg2); border:1px solid var(--line); border-radius:12px; padding:18px 20px; transition:all .3s; }
.method-card:hover { border-color:rgba(34,197,94,.4); transform:translateY(-3px); }
.method-num { font-size:13px; font-weight:800; color:var(--green); letter-spacing:2px; margin-bottom:6px; }
.method-name { font-size:16px; font-weight:700; margin-bottom:6px; }
.method-desc { font-size:13px; color:var(--dim); line-height:1.7; }

/* ===== P10 证明卡片图标 ===== */
.proof-icon { font-size:24px; margin-bottom:2px; }

@media (max-width:900px) {
  .method-grid { grid-template-columns:1fr; }
}
.ei { font-size:18px; margin-right:8px; }

/* ===== P1 封面输出产品（蚂蚁线分组框） ===== */
.cover-products { margin-top:12px; width:90%; max-width:1100px; }
.cp-label { font-size:12px; letter-spacing:3px; color:var(--dim); text-align:center; margin-bottom:10px; }
.cp-grid { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* 蚂蚁线框 */
.cp-box {
  position:relative;
  padding:8px 12px 10px;
  border-radius:10px;
  background:rgba(15,21,37,.6);
  border:2px dashed rgba(59,130,246,.35);
  animation:marching-ants 0.6s linear infinite;
}
.cp-box:nth-child(1) { border-color:rgba(59,130,246,.35); }
.cp-box:nth-child(2) { border-color:rgba(34,197,94,.35); }
.cp-box:nth-child(3) { border-color:rgba(245,158,11,.35); }
.cp-box:nth-child(4) { border-color:rgba(168,85,247,.35); }

@keyframes marching-ants {
  to { background-position:20px 0, -20px 0, 0 -20px, 0 20px; }
}

.cp-box-label { font-size:11px; font-weight:700; letter-spacing:2px; margin-bottom:5px; text-align:center; }
.cp-box:nth-child(1) .cp-box-label { color:var(--blue); }
.cp-box:nth-child(2) .cp-box-label { color:var(--green); }
.cp-box:nth-child(3) .cp-box-label { color:var(--orange); }
.cp-box:nth-child(4) .cp-box-label { color:var(--purple); }

.cp-box-items { display:flex; flex-direction:column; gap:5px; }
.cp-item { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--text); white-space:nowrap; }
.cp-icon { font-size:14px; }

/* ===== P4 矩阵网格 ===== */
.matrix-wrap { width:90%; max-width:1100px; display:flex; flex-direction:column; gap:10px; }
.matrix-row { display:flex; align-items:stretch; gap:0; }
.mx-row-head { width:110px; flex-shrink:0; display:flex; align-items:center; justify-content:center; border-radius:10px 0 0 10px; font-size:14px; font-weight:700; text-align:center; padding:10px 8px; writing-mode:horizontal-tb; }
.mx-row-head.c-blue-bg { background:rgba(59,130,246,.12); color:var(--blue); border:1px solid rgba(59,130,246,.25); border-right:none; }
.mx-row-head.c-orange-bg { background:rgba(245,158,11,.12); color:var(--orange); border:1px solid rgba(245,158,11,.25); border-right:none; }
.mx-row-head.c-green-bg { background:rgba(34,197,94,.12); color:var(--green); border:1px solid rgba(34,197,94,.25); border-right:none; }
.mx-cells { flex:1; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:0 0 0 10px; }
.mx-cell { background:var(--bg2); border:1px solid var(--line); border-radius:10px; padding:8px 14px; display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; transition:all .3s; }
.mx-cell:hover { transform:translateY(-3px); border-color:rgba(255,255,255,.15); }
.mx-logo { font-size:24px; }
.mx-name { font-size:15px; font-weight:700; }
.mx-sub { font-size:12px; color:var(--dim); }
.matrix-flow { margin-top:12px; font-size:13px; color:var(--green); text-align:center; padding:8px 20px; border:1px dashed rgba(34,197,94,.3); border-radius:10px; max-width:700px; }

@media (max-width:900px) {
  .matrix-row { flex-direction:column; }
  .mx-row-head { width:100%; border-radius:10px 10px 0 0; border:none; border-bottom:none; }
  .mx-cells { grid-template-columns:1fr; padding:0; }
  .cp-grid { gap:6px; }
  .cp-item { font-size:12px; padding:6px 12px; }
}

/* ===== P7 诊断报告预览 ===== */
.report-wrap { display:flex; gap:16px; width:90%; max-width:1100px; height:56vh; }
.report-toc { width:240px; flex-shrink:0; background:var(--bg2); border:1px solid var(--line); border-radius:12px; padding:16px 12px; display:flex; flex-direction:column; gap:4px; overflow-y:auto; }
.rt-head { font-size:13px; font-weight:700; color:var(--dim); letter-spacing:2px; margin-bottom:8px; padding:0 4px; }
.rt-item { font-size:13px; padding:9px 12px; border-radius:8px; cursor:pointer; transition:all .2s; color:var(--dim); line-height:1.5; }
.rt-item:hover { background:rgba(255,255,255,.05); color:var(--text); }
.rt-item.active { background:rgba(34,197,94,.12); color:var(--green); font-weight:600; border:1px solid rgba(34,197,94,.25); }
.rt-info { margin-top:auto; padding-top:12px; border-top:1px dashed var(--line); display:flex; flex-direction:column; gap:4px; }
.rt-info-item { font-size:12px; color:var(--dim); padding:2px 4px; }
.report-viewer { flex:1; background:var(--bg2); border:1px solid var(--line); border-radius:12px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.report-viewer img { max-width:100%; max-height:100%; object-fit:contain; border-radius:8px; }
.rv-hint { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); font-size:11px; color:rgba(255,255,255,.2); }

@media (max-width:900px) {
  .report-wrap { flex-direction:column; height:auto; }
  .report-toc { width:100%; }
  .report-viewer { min-height:300px; }
}

/* ===== P2视频封面卡+浮窗（v4） ===== */
.vc-click { cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; flex: 0 0 auto; height: 400px; aspect-ratio: 9/16; }
.vc-click:hover { transform: translateY(-6px); box-shadow: 0 16px 44px rgba(0,0,0,.55); }
.vc-click img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center; transition: all .25s ease; }
.vc-click:hover .play-btn { background: rgba(255,102,0,.92); border-color: #fff; transform: translate(-50%,-50%) scale(1.1); }
.play-btn svg { margin-left: 4px; }
.video-modal { position: fixed; inset: 0; z-index: 999; background: rgba(8,10,16,.9); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; }
.video-modal.open { display: flex; }
.vm-close { position: absolute; top: 22px; right: 30px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.vm-close:hover { background: rgba(255,255,255,.28); }
.vm-body { text-align: center; max-width: 92vw; }
.vm-title { color: #e8eaf0; font-size: 15px; font-weight: 600; margin-bottom: 12px; letter-spacing: .5px; }
.vm-body video { max-height: 78vh; max-width: 92vw; border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.6); background: #000; }
@media (max-width: 760px) {
  .vc-click { height: auto; width: 160px; }
  .vc-click img { width: 160px; height: auto; }
  .vm-body video { max-width: 94vw; max-height: 70vh; }
}

/* ===== 分页轮流背景：P2起按 2,3,5,6 循环 ===== */
.slide:nth-child(4n+2) {
  background: linear-gradient(rgba(8,11,20,0.8), rgba(8,11,20,0.9)), url('../video/2.avif') center/cover no-repeat, var(--bg);
}
.slide:nth-child(4n+3) {
  background: linear-gradient(rgba(8,11,20,0.8), rgba(8,11,20,0.9)), url('../video/3.avif') center/cover no-repeat, var(--bg);
}
.slide:nth-child(4n+4) {
  background: linear-gradient(rgba(8,11,20,0.8), rgba(8,11,20,0.9)), url('../video/5.avif') center/cover no-repeat, var(--bg);
}
.slide:nth-child(4n+5) {
  background: linear-gradient(rgba(8,11,20,0.8), rgba(8,11,20,0.9)), url('../video/6.avif') center/cover no-repeat, var(--bg);
}
