/* “科学”页：入口格沿用 base.css 的 .tile，PhET 实验在全屏窗口里打开。 */
.sci-lead { margin: -4px 0 12px; color: var(--ink-soft); font-size: 15px; }

.sci-card .tile-text small { margin-bottom: 2px; }
.sci-tag { justify-self: start; margin-top: 4px; padding: 0 9px; border-radius: 999px; background: var(--tint, var(--paper-deep)); color: var(--tone, var(--ink-soft)); font-size: 13px; font-weight: 600; line-height: 1.7; }
.sci-card > .icon { color: var(--tone, var(--line-strong)); opacity: .55; }

/* 给家长：默认收起 */
.sci-notes { margin-top: 32px; padding: 0 16px; border-radius: var(--r-m); background: var(--paper-deep); color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.sci-notes > summary { display: flex; align-items: center; min-height: 52px; color: var(--ink); font-weight: 700; cursor: pointer; }
.sci-notes ul { display: grid; gap: 10px; padding: 0 0 16px; }
.sci-notes b { color: var(--ink); }
.sci-notes a { color: var(--sky); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* 全屏实验窗口 */
.sim-viewer { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.sim-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.sim-viewer::backdrop { background: var(--paper); }
.sim-bar { display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: var(--card); }
.sim-bar h2 { flex: 1; min-width: 0; overflow: hidden; font-size: 24px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.sim-official { flex: none; min-height: 44px; padding: 0 16px; font-size: 15px; }
.sim-stage { position: relative; min-height: 0; margin-bottom: env(safe-area-inset-bottom); background: #fff; }
.sim-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .2s ease; }
.sim-viewer.is-loaded .sim-stage iframe { opacity: 1; }
.sim-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--ink-soft); font-size: 17px; text-align: center; }
.sim-viewer.is-loaded .sim-status { display: none; }

html.sim-open, html.sim-open body { overflow: hidden; }
