/* assets/css/systems/info-systems/how-a-ssd-nand-flash-cell-works-cutaway.css — 本页专属样式（en/zh 共用） */
/* ============ SSD NAND 闪存单元剖面 · NAND flash cell cutaway ============ */

body[data-topic="ssd-nand-cell"] .svg-title{fill:var(--strong);font-family:var(--mono);font-size:17px;font-weight:600;letter-spacing:.06em}
body[data-topic="ssd-nand-cell"] .tag{fill:#475569;font-family:var(--mono);font-size:13px;letter-spacing:.02em}
body[data-topic="ssd-nand-cell"] .tag-sm{fill:#5b6472;font-size:11px}

/* 零件本体 */
body[data-topic="ssd-nand-cell"] .part .body{fill:#c2d1e4;stroke:#2563eb;stroke-width:1.6}
body[data-topic="ssd-nand-cell"] .part .body2{fill:#dde7f4;stroke:#60a5fa;stroke-width:1.2}
body[data-topic="ssd-nand-cell"] .part .body3{fill:#c6d0dd;stroke:#8ea0b5;stroke-width:1.2}

/* 各层区分色（中灰蓝值域内 · 未高亮禁近白；氧化物用暖色区分） */
body[data-topic="ssd-nand-cell"] .part[data-id="part-substrate"]:not(.is-active) .body3{fill:#c6d0dd}
body[data-topic="ssd-nand-cell"] .part[data-id="part-source"]:not(.is-active) .body{fill:#bcd9f2}
body[data-topic="ssd-nand-cell"] .part[data-id="part-drain"]:not(.is-active) .body{fill:#bfe0f5}
body[data-topic="ssd-nand-cell"] .part[data-id="part-channel"]:not(.is-active) .body2{fill:#aab9cd}
body[data-topic="ssd-nand-cell"] .part[data-id="part-tunnel-oxide"]:not(.is-active) .body2{fill:#e6d3ae}
body[data-topic="ssd-nand-cell"] .part[data-id="part-floating-gate"]:not(.is-active) .body{fill:#b7c9dd}
body[data-topic="ssd-nand-cell"] .part[data-id="part-blocking-oxide"]:not(.is-active) .body2{fill:#e6d3ae}
body[data-topic="ssd-nand-cell"] .part[data-id="part-control-gate"]:not(.is-active) .body{fill:#c8c1e5}
body[data-topic="ssd-nand-cell"] .part[data-id="part-shell-package"] .body{fill:#8b96a3;stroke:#6b7b8c;stroke-width:1.4}

/* 电子（电荷） */
body[data-topic="ssd-nand-cell"] .electron{fill:#1d4ed8;opacity:.7}
body[data-topic="ssd-nand-cell"] .is-running .electron{animation:ssd-electron 1.6s ease-in-out infinite}
body[data-topic="ssd-nand-cell"] .is-running .electron.e2{animation-delay:.25s}
body[data-topic="ssd-nand-cell"] .is-running .electron.e3{animation-delay:.55s}
@keyframes ssd-electron{0%,100%{opacity:.4}50%{opacity:1}}

/* 注入 / 移出电子流 */
body[data-topic="ssd-nand-cell"] .prog-flow{fill:none;stroke:#2563eb;stroke-width:3;stroke-linecap:round;stroke-dasharray:8 8}
body[data-topic="ssd-nand-cell"] .erase-flow{fill:none;stroke:#ea580c;stroke-width:3;stroke-linecap:round;stroke-dasharray:8 8}
body[data-topic="ssd-nand-cell"] .is-running .prog-flow,
body[data-topic="ssd-nand-cell"] .is-running .erase-flow{animation:ssd-flow .9s linear infinite}
@keyframes ssd-flow{to{stroke-dashoffset:-16}}

/* 高亮态（换色 + 描边加粗 + 发光） */
body[data-topic="ssd-nand-cell"] .part.is-active .body{fill:#9dc3f5;stroke:#1d4ed8;stroke-width:2.2}
body[data-topic="ssd-nand-cell"] .part.is-active .body2{fill:#c4daf8;stroke:#3b82f6;stroke-width:1.4}
body[data-topic="ssd-nand-cell"] .part.is-active .body3{fill:#1d4ed8}
body[data-topic="ssd-nand-cell"] .part.is-active{filter:drop-shadow(0 0 12px rgba(29,78,216,.5))}

@media (prefers-reduced-motion:reduce){
  body[data-topic="ssd-nand-cell"] .is-running .electron,
  body[data-topic="ssd-nand-cell"] .is-running .prog-flow,
  body[data-topic="ssd-nand-cell"] .is-running .erase-flow{animation:none}
}