/* ============================================================
   Knowell — Technology (核心技术) page
   ============================================================ */

/* page header */
.tech-hero { position: relative; min-height: 46vh; display: flex; align-items: center; background: var(--navy-900); color: #fff; overflow: hidden; padding: calc(var(--nav-h) + 50px) 0 50px; }
.tech-hero .mesh { position: absolute; inset: -20%; background: radial-gradient(46% 50% at 22% 30%, rgba(0,114,255,.4), transparent 60%), radial-gradient(40% 46% at 84% 22%, rgba(0,198,255,.3), transparent 60%), radial-gradient(52% 60% at 70% 96%, rgba(121,40,202,.26), transparent 60%); filter: blur(16px); animation: meshDrift 24s ease-in-out infinite alternate; }
.tech-hero .grid-tex { position: absolute; inset: 0; background-image: linear-gradient(rgba(120,190,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(120,190,255,.06) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(120% 100% at 40% 20%, #000 30%, transparent 80%); }
.tech-hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,47,.35), rgba(10,25,47,.78)); }
.tech-hero .wrap { position: relative; z-index: 2; max-width: 820px; }
.tech-hero .crumb { font-family: var(--mono); font-size: 12.5px; color: rgba(255,255,255,.55); margin-bottom: 18px; letter-spacing: .5px; }
.tech-hero .crumb a:hover { color: var(--cyan); }
.tech-hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.06; }
.tech-hero .sub { margin-top: 18px; font-size: 19px; color: rgba(255,255,255,.78); max-width: 620px; }
.tech-nav-pills { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.tech-nav-pills a { font-size: 14px; color: rgba(255,255,255,.8); border: 1px solid var(--navy-line); padding: 9px 16px; border-radius: var(--r-pill); transition: all .2s; }
.tech-nav-pills a:hover { border-color: var(--cyan); color: #fff; background: rgba(0,198,255,.08); }

/* section number tag */
.sec-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--blue); margin-bottom: 16px; }
.section--dark .sec-tag { color: var(--cyan); }
.sec-tag .n { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ---------- Part 1: triage flow ---------- */
.triage { display: grid; grid-template-columns: .92fr 1.08fr; gap: 48px; align-items: start; }
.flowbox { position: relative; background: var(--navy-900); border-radius: 20px; padding: 30px 26px; overflow: hidden; border: 1px solid var(--navy-line); }
.flowbox .gene-tex { position: absolute; inset: 0; opacity: .14; pointer-events: none; }
.flow { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0; }
.flow-node { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 14px; cursor: pointer; transition: background .2s; border: 1px solid transparent; }
.flow-node:hover { background: rgba(255,255,255,.04); }
.flow-node.active { background: rgba(0,198,255,.08); border-color: rgba(0,198,255,.3); }
.flow-ic { width: 48px; height: 48px; border-radius: 13px; background: rgba(255,255,255,.06); border: 1px solid var(--navy-line); display: grid; place-items: center; color: var(--cyan); flex-shrink: 0; transition: all .2s; }
.flow-node.active .flow-ic { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(0,114,255,.4); }
.flow-ic svg { width: 24px; height: 24px; }
.flow-main { flex: 1; min-width: 0; }
.flow-main b { display: block; color: #fff; font-size: 16px; font-weight: 600; }
.flow-main span { font-size: 12.5px; color: rgba(255,255,255,.5); font-family: var(--mono); }
.flow-main p { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 8px; line-height: 1.55; max-height: 0; overflow: hidden; transition: max-height .35s ease, margin-top .35s; }
.flow-node.active .flow-main p { max-height: 80px; margin-top: 8px; }
.flow-connector { height: 26px; margin-left: 36px; width: 2px; background: rgba(120,190,255,.2); position: relative; overflow: hidden; }
.flow-connector::after { content: ""; position: absolute; left: -1px; width: 4px; height: 10px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: flowDown 1.8s linear infinite; }
@keyframes flowDown { 0% { top: -10px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 26px; opacity: 0; } }
.flow-out { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: var(--grad); color: #fff; }
.flow-out svg { width: 26px; height: 26px; flex-shrink: 0; }
.flow-out b { font-size: 15px; font-weight: 700; }
.flow-out span { font-size: 12.5px; opacity: .85; display: block; }

.privacy-note { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--navy-line); }
.privacy-note .pk { width: 40px; height: 40px; border-radius: 11px; background: rgba(0,198,255,.1); color: var(--cyan); display: grid; place-items: center; flex-shrink: 0; }
.privacy-note .pk svg { width: 20px; height: 20px; }
.privacy-note div { flex: 1; }
.privacy-note b { color: #fff; font-size: 14px; }
.privacy-note p { color: rgba(255,255,255,.6); font-size: 12.5px; margin-top: 2px; }
.privacy-note a { color: var(--cyan); font-size: 13px; font-weight: 600; white-space: nowrap; }
.privacy-note a:hover { text-decoration: underline; }

.cap-list { display: flex; flex-direction: column; gap: 16px; }
.cap { display: flex; gap: 18px; padding: 22px; border-radius: var(--r-card); border: 1px solid var(--ink-100); background: #fff; box-shadow: var(--sh-card); transition: transform .3s, box-shadow .3s, border-color .3s; }
.cap:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hover); border-color: rgba(0,114,255,.25); }
.cap-num { flex-shrink: 0; }
.cap-num .v { font-family: var(--mono); font-weight: 700; font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cap-num .l { font-size: 11.5px; color: var(--ink-grey); margin-top: 6px; max-width: 96px; }
.cap-body h3 { font-size: 17px; font-weight: 700; }
.cap-body p { font-size: 14px; color: var(--ink-700); margin-top: 8px; line-height: 1.6; }

/* ---------- Part 2: rPPG ---------- */
.rppg-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rppg-steps { display: flex; flex-direction: column; gap: 14px; }
.rstep { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--sh-card); transition: transform .25s; }
.rstep:hover { transform: translateX(4px); }
.rstep .rn { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-soft); color: var(--blue); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; flex-shrink: 0; }
.rstep b { font-size: 15.5px; font-weight: 700; }
.rstep p { font-size: 13.5px; color: var(--ink-700); margin-top: 4px; line-height: 1.55; }

/* report mock */
.report { background: var(--navy-900); border-radius: 18px; padding: 22px; border: 1px solid var(--navy-line); box-shadow: 0 30px 70px rgba(0,0,0,.35); color: #fff; }
.report-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.report-head b { font-size: 15px; }
.report-head .live { font-family: var(--mono); font-size: 11px; color: var(--cyan); display: flex; align-items: center; gap: 7px; }
.report-head .live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: blink 1.3s infinite; }
.report-chart { height: 120px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--navy-line); padding: 10px; position: relative; overflow: hidden; }
.report-chart svg { width: 100%; height: 100%; }
.report-chart .band { position: absolute; left: 10px; right: 10px; background: rgba(82,196,26,.1); border-top: 1px dashed rgba(82,196,26,.4); border-bottom: 1px dashed rgba(82,196,26,.4); }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.report-cell { background: rgba(255,255,255,.04); border: 1px solid var(--navy-line); border-radius: 10px; padding: 12px; }
.report-cell.warn { border-color: rgba(255,77,79,.4); background: rgba(255,77,79,.08); }
.report-cell .rl { font-size: 11px; color: rgba(255,255,255,.55); }
.report-cell .rv { font-family: var(--mono); font-weight: 700; font-size: 20px; margin-top: 4px; }
.report-cell .rv small { font-size: 11px; font-weight: 400; opacity: .6; }
.report-cell.warn .rv { color: #ff8a8b; }

/* 8 indicators */
.indicators { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-card); padding: 20px; box-shadow: var(--sh-card); transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.ind:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hover); }
.ind::after { content: ""; position: absolute; right: -20px; bottom: -20px; width: 70px; height: 70px; border-radius: 50%; background: var(--grad-soft); opacity: .5; }
.ind .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; position: relative; z-index: 1; }
.ind .ic svg { width: 22px; height: 22px; }
.ind b { display: block; font-size: 15px; font-weight: 700; position: relative; z-index: 1; }
.ind .range { font-family: var(--mono); font-size: 12.5px; color: var(--blue); margin-top: 6px; position: relative; z-index: 1; }

/* accuracy chart */
.accuracy { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-card-lg); padding: 34px; box-shadow: var(--sh-card); }
.acc-row { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--ink-100); }
.acc-row:last-child { border-bottom: 0; }
.acc-label { width: 130px; flex-shrink: 0; font-size: 15px; font-weight: 600; }
.acc-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.acc-bar { display: flex; align-items: center; gap: 12px; }
.acc-bar .track { flex: 1; height: 22px; background: var(--ink-50); border-radius: 6px; overflow: hidden; }
.acc-bar .fill { height: 100%; border-radius: 6px; width: 0; transition: width 1.2s cubic-bezier(.2,.7,.3,1); }
.acc-bar.knowell .fill { background: var(--grad); }
.acc-bar.device .fill { background: var(--ink-300); }
.acc-bar .tag { width: 90px; flex-shrink: 0; font-size: 12px; color: var(--ink-grey); font-family: var(--mono); }
.acc-bar .err { width: 110px; flex-shrink: 0; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink-900); text-align: right; }
.clinical { margin-top: 24px; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--grad-soft); }
.clinical svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }
.clinical p { font-size: 14px; color: var(--ink-900); }

/* ---------- Part 3: AI modules ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv { background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-card); padding: 26px 22px; box-shadow: var(--sh-card); transition: transform .3s, box-shadow .3s; }
.adv:hover { transform: translateY(-4px); box-shadow: var(--sh-card-hover); }
.adv .v { font-family: var(--mono); font-weight: 700; font-size: 38px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; font-variant-numeric: tabular-nums; }
.adv h3 { font-size: 16px; font-weight: 700; margin-top: 12px; }
.adv p { font-size: 13.5px; color: var(--ink-700); margin-top: 8px; line-height: 1.6; }

.modules-scroll { overflow-x: auto; padding: 8px 0 18px; margin: 0 -32px; scrollbar-width: thin; }
.modules-scroll::-webkit-scrollbar { height: 6px; }
.modules-scroll::-webkit-scrollbar-thumb { background: rgba(0,114,255,.35); border-radius: 3px; }
.modules-track { display: flex; gap: 22px; padding: 0 32px; min-width: max-content; }
.module { width: 300px; flex-shrink: 0; background: var(--navy-900); border: 1px solid var(--navy-line); border-radius: 18px; overflow: hidden; transition: transform .3s, border-color .3s; }
.module:hover { transform: translateY(-4px); border-color: rgba(0,198,255,.4); }
.module-render { height: 180px; position: relative; overflow: hidden; display: grid; place-items: center; }
.module-render .orb { width: 130px; height: 130px; border-radius: 50%; filter: blur(2px); animation: orbFloat 5s ease-in-out infinite; }
.module-render .ring { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(0,198,255,.3); }
.module-render .chip { position: absolute; width: 70px; height: 70px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(4px); display: grid; place-items: center; color: #fff; }
.module-render .chip svg { width: 32px; height: 32px; }
@keyframes orbFloat { 0%,100% { transform: translateY(-6px) scale(1); } 50% { transform: translateY(6px) scale(1.04); } }
.module-body { padding: 20px; }
.module-body h3 { color: #fff; font-size: 16px; font-weight: 700; }
.module-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.module-tags span { font-size: 11.5px; font-family: var(--mono); color: var(--cyan); background: rgba(0,198,255,.1); border: 1px solid rgba(0,198,255,.22); padding: 4px 10px; border-radius: var(--r-pill); }

/* ---------- Part 4: data security ---------- */
.security { position: relative; overflow: hidden; }
.security .gene-tex { position: absolute; inset: 0; opacity: .1; pointer-events: none; }
.security .wrap { position: relative; z-index: 1; }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sec-card { background: rgba(255,255,255,.04); border: 1px solid var(--navy-line); border-radius: var(--r-card); padding: 26px 22px; transition: transform .3s, border-color .3s; }
.sec-card:hover { transform: translateY(-4px); border-color: rgba(0,198,255,.4); }
.sec-card .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--grad-soft); color: var(--cyan); display: grid; place-items: center; margin-bottom: 16px; }
.sec-card .ic svg { width: 26px; height: 26px; }
.sec-card h3 { color: #fff; font-size: 16px; font-weight: 700; }
.sec-card p { color: rgba(255,255,255,.66); font-size: 13.5px; margin-top: 8px; line-height: 1.6; }

@media (max-width: 980px) {
  .triage, .rppg-top { grid-template-columns: 1fr; gap: 28px; }
  .indicators, .adv-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .indicators, .adv-grid, .sec-grid { grid-template-columns: 1fr; }
  .cap { flex-direction: column; gap: 12px; }
  .acc-label { width: 90px; font-size: 13px; }
  .acc-bar .tag, .acc-bar .err { display: none; }
}
