:root {
  color-scheme: light;
  --ink: #1e2340;
  --muted: #747b9a;
  --line: #e8e9f2;
  --surface: #ffffff;
  --canvas: #f7f8ff;
  --violet: #6557e8;
  --violet-2: #ebe9ff;
  --shadow: 0 18px 45px rgba(47, 46, 116, 0.09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; padding-bottom: 88px; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(20px, 5vw, 72px); background: rgba(247, 248, 255, 0.9); border-bottom: 1px solid rgba(232, 233, 242, .8); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(18px); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, #6d5cf6, #b16cff); font-size: 27px; font-weight: 800; box-shadow: 0 8px 18px rgba(101, 87, 232, .25); }
.eyebrow { color: var(--violet); font-size: 10px; letter-spacing: .18em; font-weight: 800; }
h1 { margin: 2px 0 0; font-size: 18px; letter-spacing: -.02em; }
.ghost-button { border: 1px solid var(--line); color: var(--ink); background: var(--surface); border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 700; }
.ghost-button span { color: var(--violet); padding-left: 4px; }

.main-content { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 30px; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: stretch; margin-bottom: 30px; }
.hero-copy { min-height: 250px; padding: clamp(26px, 4vw, 48px); border-radius: 30px; background: radial-gradient(circle at 88% 20%, rgba(255, 221, 94, .8), transparent 23%), linear-gradient(135deg, #6557e8, #8d83f6 63%, #b5b1ff); color: white; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-copy::after { content: ""; position: absolute; width: 230px; height: 230px; border: 34px solid rgba(255,255,255,.12); border-radius: 50%; right: -60px; bottom: -110px; }
.hero-copy h2 { position: relative; z-index: 1; max-width: 600px; margin: 8px 0 14px; font-size: clamp(28px, 4vw, 48px); line-height: 1.06; letter-spacing: -.05em; }
.hero-copy p { position: relative; z-index: 1; max-width: 560px; margin: 0; color: rgba(255,255,255,.82); line-height: 1.7; font-size: 14px; }
.hero-kicker { position: relative; z-index: 1; font-weight: 800; font-size: 12px; letter-spacing: .12em; opacity: .8; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 10px 28px rgba(47,46,116,.04); }
.stat-card strong { font-size: 34px; line-height: 1; }
.stat-card span { color: var(--muted); font-size: 12px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 10px; max-width: 430px; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.grade-select { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 7px 8px 7px 13px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); background: var(--surface); font-size: 13px; }
.grade-select select { width: 112px; border: 0; border-radius: 10px; padding: 6px 2px; color: var(--ink); background: transparent; font-weight: 700; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.tab { flex: 0 0 auto; border: 0; padding: 9px 13px; border-radius: 999px; color: var(--muted); background: transparent; font-size: 13px; }
.tab.active { color: var(--violet); background: var(--violet-2); font-weight: 800; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 25px 0 14px; }
.section-heading h3 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }

.tool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tool-card { position: relative; min-height: 165px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 9px 25px rgba(47,46,116,.035); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tool-card:hover, .tool-card:focus-within { transform: translateY(-3px); border-color: #d8d4ff; box-shadow: 0 16px 30px rgba(47,46,116,.11); }
.tool-card-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.tool-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; font-size: 31px; background: var(--card-color, #eef0ff); }
.favorite-button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #a6aac0; background: transparent; font-size: 19px; }
.favorite-button.active { color: #f2a32c; }
.tool-card h4 { margin: 14px 0 4px; font-size: 15px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tool-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 12px; }
.chip { padding: 4px 7px; border-radius: 999px; background: #f5f5fb; color: var(--muted); font-size: 10px; }
.empty-state { padding: 48px 20px; border: 1px dashed #d6d7e4; border-radius: 22px; color: var(--muted); text-align: center; }

.tool-view { animation: rise .24s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tool-view-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.back-button { border: 0; color: var(--violet); background: var(--violet-2); border-radius: 12px; padding: 10px 13px; font-weight: 800; }
.tool-view-header h2 { margin: 0 0 3px; font-size: 28px; letter-spacing: -.04em; }
.tool-view-header p { margin: 0; color: var(--muted); font-size: 13px; }
.workspace { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.canvas-card, .control-card, .about-card { border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.canvas-card { min-height: 420px; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #fff, #f8f7ff); overflow: hidden; }
.control-card { padding: 24px; }
.control-card h3 { margin: 0 0 17px; font-size: 17px; }
.control-row { margin-bottom: 20px; }
.control-row label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.control-row output { color: var(--ink); font-weight: 800; }
input[type="range"] { width: 100%; accent-color: var(--violet); }
input[type="number"], select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: 0; color: var(--ink); background: #fbfbff; }
.formula { margin-top: 18px; padding: 15px; border-radius: 16px; color: #5148b9; background: var(--violet-2); font-size: 14px; line-height: 1.65; }
.metric-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.metric { min-width: 92px; flex: 1; padding: 12px; border-radius: 15px; background: #f7f7fc; }
.metric small { display: block; color: var(--muted); font-size: 11px; }
.metric strong { display: block; margin-top: 4px; font-size: 19px; }

.clock-svg { width: min(330px, 80vw); height: auto; }
.clock-face { fill: #fff; stroke: #6557e8; stroke-width: 8; }
.clock-tick { stroke: #b8b2ff; stroke-width: 3; }
.clock-hand { stroke: #22264b; stroke-linecap: round; }
.clock-center { fill: #6557e8; }
.money-visual { width: 100%; max-width: 500px; display: flex; align-items: end; justify-content: center; gap: 12px; min-height: 230px; }
.bill { display: grid; place-items: center; width: 145px; height: 82px; border: 3px solid rgba(21, 91, 68, .35); border-radius: 12px; color: #145a43; background: #bcebd8; font-size: 29px; font-weight: 900; transform: rotate(-4deg); }
.coin-stack { display: flex; align-items: end; justify-content: center; flex-wrap: wrap; gap: 7px; width: min(250px, 48%); }
.coin { display: grid; place-items: center; width: 52px; height: 52px; border: 5px solid #f1b846; border-radius: 50%; color: #a77010; background: #ffec9a; font-size: 12px; font-weight: 800; }
.decimal-visual { width: min(480px, 100%); }
.ten-frame { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; padding: 8px; border: 3px solid #b7b1ff; border-radius: 15px; background: white; }
.ten-cell { aspect-ratio: 1; border-radius: 5px; background: #f0efff; }
.ten-cell.filled { background: #7568ed; }
.visual-caption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 13px; }
.number-stack { display: grid; gap: 4px; width: min(220px, 100%); font-variant-numeric: tabular-nums; }
.number-line { display: flex; justify-content: space-between; padding: 10px 15px; font-size: 31px; font-weight: 900; letter-spacing: .18em; border-bottom: 2px solid #25294c; }
.number-line.answer { color: #6557e8; border-bottom-color: #6557e8; }
.borrowing-note { padding: 14px; border-radius: 15px; color: #695b1f; background: #fff7cf; font-size: 13px; line-height: 1.6; }
.vertical-calculation { width: min(360px, 100%); font-variant-numeric: tabular-nums; }
.place-header, .calculation-hints, .calculation-row { display: grid; grid-template-columns: 46px repeat(3, 1fr); align-items: center; text-align: center; }
.place-header { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.calculation-hints { min-height: 31px; color: #e47739; font-size: 14px; font-weight: 800; }
.calculation-row { min-height: 56px; color: var(--ink); font-size: clamp(28px, 5vw, 37px); font-weight: 900; }
.calculation-operation { color: var(--violet); }
.calculation-divider { width: calc(100% - 18px); margin: 1px auto 5px; border-top: 3px solid #25294c; }
.calculation-caption { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.calculation-verify { margin: 18px 0; }
.calculation-verify > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.verify-input-row { display: flex; gap: 8px; }
.verify-input-row input { min-width: 0; }
.verify-input-row button { flex: 0 0 auto; border: 0; border-radius: 12px; padding: 0 14px; color: white; background: var(--violet); font-weight: 800; }
.validation-status { min-height: 24px; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.validation-status.warning { color: #ac761b; }.validation-status.correct { color: #188454; font-weight: 800; }.validation-status.incorrect { color: #c94d61; font-weight: 800; }
.geometry-svg { width: min(440px, 100%); height: auto; }
.solid-wrap { perspective: 700px; }
.cube { width: 150px; height: 150px; position: relative; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(35deg); }
.cube-face { position: absolute; inset: 0; border: 2px solid rgba(73, 66, 170, .55); background: rgba(132, 121, 255, .68); }
.cube-face.front { transform: translateZ(75px); }
.cube-face.back { transform: rotateY(180deg) translateZ(75px); }
.cube-face.right { transform: rotateY(90deg) translateZ(75px); background: rgba(105, 93, 222, .58); }
.cube-face.left { transform: rotateY(-90deg) translateZ(75px); background: rgba(169, 162, 255, .62); }
.cube-face.top { transform: rotateX(90deg) translateZ(75px); background: rgba(196, 190, 255, .74); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); background: rgba(80, 70, 179, .52); }
.solid-visual { transform-style: preserve-3d; transition: transform .2s ease; }
.cylinder-shape, .combo-shape { width: 170px; height: 170px; position: relative; transform-style: preserve-3d; }
.cylinder-body { position: absolute; left: 15px; top: 25px; width: 140px; height: 120px; border: 2px solid rgba(73, 66, 170, .55); background: rgba(132, 121, 255, .62); transform: translateZ(0); }
.cylinder-top, .cylinder-bottom { position: absolute; left: 15px; width: 140px; height: 52px; border: 2px solid rgba(73, 66, 170, .55); border-radius: 50%; background: rgba(196, 190, 255, .8); }
.cylinder-top { top: 0; transform: translateZ(60px); }
.cylinder-bottom { top: 118px; background: rgba(80, 70, 179, .5); }
.combo-base { position: absolute; left: 20px; bottom: 20px; width: 150px; height: 75px; border: 2px solid rgba(73, 66, 170, .55); background: rgba(132, 121, 255, .68); transform: skewY(-15deg); }
.combo-top { position: absolute; left: 55px; top: 10px; width: 80px; height: 95px; border: 2px solid rgba(73, 66, 170, .55); background: rgba(255, 174, 98, .75); transform: skewY(18deg); }
.three-d-stage { width: min(640px, 100%); display: grid; justify-items: center; gap: 10px; }
.solid-canvas { display: block; width: 100%; height: auto; max-height: 390px; border: 1px solid #e2e1f6; border-radius: 20px; cursor: grab; touch-action: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.75); }
.solid-canvas:active { cursor: grabbing; }
.three-d-stage p { margin: 0; color: var(--muted); text-align: center; font-size: 12px; }
.triangle-stage { width: min(420px, 100%); }
.triangle-stage svg { width: 100%; overflow: visible; }
.shape-rotate { width: 150px; height: 150px; border-radius: 24px 68px 24px 68px; background: linear-gradient(135deg, #ffae62, #ff6b9c); box-shadow: 10px 12px 0 rgba(255, 177, 102, .18); }
.about-card { padding: 28px; }
.about-card h2 { margin-top: 0; }
.about-card p { color: var(--muted); line-height: 1.8; }

.bottom-nav { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 10; width: min(570px, calc(100% - 28px)); display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 8px; border: 1px solid rgba(255,255,255,.65); border-radius: 24px; background: rgba(28, 30, 55, .94); box-shadow: 0 15px 35px rgba(20, 20, 54, .22); backdrop-filter: blur(20px); }
.nav-item { min-height: 51px; display: grid; place-items: center; gap: 2px; border: 0; border-radius: 17px; color: #aeb1c7; background: transparent; }
.nav-item span { font-size: 19px; line-height: 1; }
.nav-item small { font-size: 10px; }
.nav-item.active { color: white; background: rgba(101, 87, 232, .55); }
.nav-center { color: white; background: linear-gradient(135deg, #6557e8, #ad6cff); transform: translateY(-15px); border: 6px solid var(--canvas); box-shadow: 0 8px 22px rgba(101,87,232,.4); }

@media (max-width: 980px) { .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .topbar { height: 68px; padding: 0 18px; } .ghost-button { padding: 9px 10px; font-size: 12px; } .main-content { width: min(100% - 28px, 680px); padding-top: 22px; } .hero { grid-template-columns: 1fr; } .hero-copy { min-height: 230px; } .hero-stats { grid-template-columns: repeat(4, 1fr); } .stat-card { min-height: 92px; padding: 13px; } .stat-card strong { font-size: 25px; } .stat-card span { font-size: 10px; } .toolbar { display: grid; grid-template-columns: 1fr auto; align-items: center; } .search-box { grid-column: 1 / -1; max-width: none; } .category-tabs { grid-column: 1 / -1; } .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tool-card { min-height: 156px; padding: 13px; } .workspace { grid-template-columns: 1fr; } .canvas-card { min-height: 320px; padding: 15px; } .verify-input-row button { padding: 0 11px; } }
@media (max-width: 390px) { .hero-stats { gap: 6px; } .stat-card { padding: 10px 8px; } .stat-card strong { font-size: 21px; } .tool-icon { width: 48px; height: 48px; font-size: 26px; } }

/* 二年级互动工具：统一的“探索—解释—测验”教学界面 */
.g2-board { width: min(620px, 100%); min-height: 270px; display: grid; place-items: center; gap: 16px; padding: clamp(16px, 3vw, 30px); border: 1px solid #e6e6f3; border-radius: 24px; background: linear-gradient(145deg, #fff, #f7f7ff); box-shadow: inset 0 1px 0 #fff; }
.control-copy { margin: -5px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.control-row { margin: 13px 0; }
.control-row label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.control-row output { color: var(--ink); font-weight: 900; }
.reveal-button, .secondary-button { min-height: 42px; border: 0; border-radius: 13px; padding: 0 16px; cursor: pointer; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease; }
.reveal-button { color: #fff; background: linear-gradient(135deg, #6557e8, #8b6cff); box-shadow: 0 8px 16px rgba(101, 87, 232, .2); }
.secondary-button { color: #534bb9; background: #efedff; }
.reveal-button:hover, .secondary-button:hover, .quiz-options button:hover, .cash-piece:hover { transform: translateY(-2px); }
.quiz-section { width: 100%; margin-top: 22px; padding-top: 18px; border-top: 1px dashed #dcd9f3; }
.quiz-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: #26294f; font-size: 16px; }
.quiz-heading::before { content: '✓'; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: #32af7a; font-size: 13px; }
.quiz-prompt { margin: 14px 0 8px; color: var(--ink); font-size: 14px; line-height: 1.55; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-options button { border: 1px solid #dedbf5; border-radius: 11px; padding: 8px 11px; color: #484379; background: #fbfaff; cursor: pointer; font-size: 13px; transition: transform .16s ease, background .16s ease, color .16s ease; }
.quiz-options button.correct { border-color: #6ad5a5; color: #14784d; background: #e8faef; }
.quiz-options button.incorrect { border-color: #f2a0b0; color: #b63854; background: #fff0f3; }
.quiz-feedback { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.quiz-finish { margin: 14px 0 0; padding: 11px 13px; border-radius: 12px; color: #27734f; background: #ebfaf1; font-size: 13px; font-weight: 800; }.quiz-finish button { margin-top: 8px; border: 0; border-radius: 9px; padding: 7px 10px; color: #27734f; background: #d5f2e1; cursor: pointer; font-weight: 800; }

/* 长度、数与竖式 */
.length-board { grid-template-rows: auto auto; }
.ruler { position: relative; width: min(500px, 96%); height: 68px; display: flex; align-items: end; justify-content: space-between; padding: 0 4px 11px; border-bottom: 8px solid #fcbd4c; background: repeating-linear-gradient(90deg, transparent 0 9.2%, rgba(241, 158, 42, .45) 9.2% 10%); }
.ruler::before { content: ''; position: absolute; inset: 28px 0 auto; border-top: 2px solid #f3a521; }
.ruler i { position: relative; z-index: 1; width: 22px; color: #985f10; background: #fff7dc; font-size: 11px; font-style: normal; text-align: center; }
.measure-object { position: relative; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #776aee, #a394ff); box-shadow: 0 8px 15px rgba(101, 87, 232, .23); transition: width .2s ease; }
.measure-object::after { content: '待测物'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.hundred-grid { width: min(520px, 100%); display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.hundred-cell { aspect-ratio: 1; min-width: 0; border: 1px solid #e0ddf6; border-radius: 7px; color: #545081; background: #fff; cursor: pointer; font-size: clamp(10px, 1.9vw, 14px); font-weight: 800; }
.hundred-cell:hover { background: #eeecff; }.hundred-cell.selected { color: #fff; background: #6d5be8; box-shadow: 0 5px 10px rgba(101,87,232,.22); }
.hundred-summary { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; color: #534bb9; font-size: 14px; font-weight: 800; }
.vertical-play { justify-items: center; }
.vertical-row { width: min(290px, 100%); display: grid; grid-template-columns: 48px 1fr 1fr; align-items: center; min-height: 45px; padding: 0 12px; color: #2b2e52; border-bottom: 2px solid #484578; font-family: ui-monospace, Consolas, monospace; font-size: 31px; font-weight: 900; text-align: center; }
.vertical-row:last-of-type { border-bottom: 0; }.vertical-row > span:first-child { color: #6557e8; }.answer-row { color: #4b42bd; }
.place-row { width: min(290px, 100%); display: grid; grid-template-columns: 48px 1fr 1fr; padding: 0 12px; color: #767394; font-size: 12px; font-weight: 800; text-align: center; }.vertical-line { width: min(290px, 100%); border-top: 3px solid #45436d; }
.carry-hint { max-width: 390px; margin: 2px 0 0; padding: 10px 13px; border-radius: 12px; color: #8f5d1d; background: #fff6d9; font-size: 13px; line-height: 1.5; text-align: center; }

/* 角、乘除、立体观察 */
.angle-stage svg { width: min(360px, 100%); overflow: visible; }.angle-stage .angle-fill { fill: rgba(255, 128, 117, .23); }.angle-stage .angle-arm { stroke: #ef647c; stroke-width: 7; stroke-linecap: round; }.angle-stage .angle-point { fill: #5349ba; }
.multiplication-stage { align-content: center; }.dot-array { display: grid; gap: 9px; justify-content: center; padding: 18px; border-radius: 18px; background: #f3f9f4; }.dot { width: 19px; height: 19px; border-radius: 50%; background: #5abf8c; box-shadow: 0 3px 0 #3f9e71; }.dot.new-group { box-shadow: inset 0 0 0 3px #ffbc54, 0 3px 0 #3f9e71; }.array-label { color: #33765a; font-weight: 900; }
.multiplication-table { width: min(520px, 100%); display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }.multiplication-cell { aspect-ratio: 1; min-width: 0; display: grid; place-items: center; border: 1px solid #f0dfb8; border-radius: 7px; color: #775d25; background: #fff9ec; cursor: pointer; font-size: clamp(9px, 1.8vw, 13px); font-weight: 800; }.multiplication-cell.multi-head { color: #fff; background: #eea942; }.multiplication-cell.multi-corner { color: #eea942; background: #fff1c7; }.multiplication-cell.highlight { border-color: #e89a22; color: #69450b; background: #ffe2a1; }.multiplication-cell.picked { outline: 3px solid #6456d8; outline-offset: 1px; }.multiplication-cell:hover { transform: scale(1.07); }
.cube-world { min-height: 330px; }#viewCanvas { width: min(420px, 100%); height: auto; border-radius: 18px; background: linear-gradient(145deg, #edf7ff, #fdfdff); box-shadow: inset 0 0 0 1px #dce7f2; }
.share-groups { width: min(540px, 100%); display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }.share-group, .remainder-box { min-width: 78px; padding: 9px; border: 1px solid #ffd5df; border-radius: 13px; color: #8f5072; background: #fff7fa; text-align: center; font-size: 14px; }.share-group span { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 800; }

/* 时间、搭配、统计 */
.clock-svg { filter: drop-shadow(0 8px 14px rgba(101,87,232,.15)); }.outfit-stage { gap: 18px; }.outfit-preview { display: flex; align-items: center; gap: 14px; font-size: 48px; }.pair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.pair-grid i { width: 38px; height: 31px; display: block; margin: 0 auto 16px; border-radius: 11px 11px 5px 5px; box-shadow: 0 16px 0 currentColor; }.pair-grid button { min-width: 72px; padding: 8px; border: 1px solid #ffd4e1; border-radius: 12px; color: #91546e; background: #fff7fa; cursor: pointer; font-weight: 800; }.pair-grid button:hover { background: #ffe8ef; }
.vote-buttons { display: flex; gap: 12px; }.vote-buttons button { display: grid; gap: 4px; width: 72px; padding: 9px; border: 1px solid #d5e7fa; border-radius: 14px; background: #f7fbff; cursor: pointer; font-size: 27px; }.vote-buttons span { color: #52709b; font-size: 11px; font-weight: 800; }.bar-chart { width: min(420px, 100%); height: 180px; display: flex; align-items: end; justify-content: center; gap: 24px; padding: 15px 15px 0; border-bottom: 3px solid #9ab5d3; }.bar-item { height: 100%; display: grid; grid-template-rows: auto 1fr auto; align-items: end; justify-items: center; gap: 6px; color: #526b89; font-size: 13px; }.bar-item i { width: 42px; min-height: 6px; border-radius: 8px 8px 0 0; background: linear-gradient(#84b8ff, #5d7ff0); transition: height .2s ease; }.bar-item strong { font-size: 16px; }

/* 图形运动、运算、数位、质量与推理 */
.motion-grid { width: min(420px, 100%); height: 170px; position: relative; overflow: hidden; border: 1px dashed #c8c4ee; border-radius: 16px; background-image: linear-gradient(#ecebfb 1px, transparent 1px), linear-gradient(90deg, #ecebfb 1px, transparent 1px); background-size: 24px 24px; }.motion-shape { position: absolute; top: 59px; left: 78px; display: grid; width: 50px; height: 50px; place-items: center; color: #f06d76; font-size: 52px; font-style: normal; line-height: 1; transition: transform .25s ease; }.motion-shape.mirror { left: auto; right: 78px; display: none; color: #6b5be8; transform: scaleX(-1); }.motion-grid::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed #6e63cc; }
.order-stage strong { color: #423aa1; font-size: clamp(27px, 6vw, 43px); }.order-steps { display: grid; gap: 8px; padding: 11px; color: #605b86; font-size: 14px; text-align: center; }.order-steps span, .order-steps strong { padding: 8px 10px; border-radius: 10px; background: #f1efff; }.order-steps strong { color: #2a8a61; font-size: 16px; background: #eaf9f1; }
.place-stage { gap: 13px; }.place-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(420px, 100%); }.place-cards div { display: grid; gap: 6px; padding: 10px; border-radius: 13px; color: #4e488a; background: #efeeff; text-align: center; }.place-cards span { font-size: 11px; }.place-cards strong { font-size: 28px; }.place-stage > strong { color: #384f9a; font-size: clamp(35px, 8vw, 58px); letter-spacing: .08em; }
.balance-stage { gap: 20px; }.balance { width: min(440px, 100%); height: 170px; position: relative; display: flex; align-items: start; justify-content: space-between; padding: 44px 18px 0; }.balance::after { content: ''; position: absolute; bottom: 20px; left: 50%; width: 12px; height: 94px; border-radius: 8px 8px 2px 2px; background: #595a91; transform: translateX(-50%); }.balance::before { content: ''; position: absolute; bottom: 10px; left: calc(50% - 64px); width: 128px; height: 16px; border-radius: 50% 50% 4px 4px; background: #7778af; }.balance > i { position: absolute; z-index: 1; top: 88px; left: 50%; width: min(330px, 76%); height: 8px; border-radius: 9px; background: #6965bf; transform-origin: center; transition: transform .25s ease; }.pan { position: relative; z-index: 2; width: 108px; min-height: 57px; display: grid; place-items: center; padding: 8px; border: 3px solid #7d82c2; border-radius: 50%; color: #4b4f81; background: #edf1ff; font-size: 12px; font-weight: 800; white-space: pre-line; text-align: center; }
.logic-stage { align-content: center; }.clue-cards { display: grid; gap: 7px; width: min(430px, 100%); }.clue-cards p { margin: 0; padding: 9px 11px; border-radius: 10px; color: #61588d; background: #f5f1ff; font-size: 13px; }.logic-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }.logic-choices button { min-width: 76px; padding: 9px 12px; border: 1px solid #dcd3f2; border-radius: 11px; color: #5d5588; background: #fff; cursor: pointer; font-weight: 800; }.logic-choices button.selected { color: #fff; background: #6e5de4; }

/* 人民币：以纸币和硬币道具完成真实的凑钱操作 */
.money-shop { align-content: start; }.cash-register { width: min(490px, 100%); display: grid; gap: 4px; padding: 15px 18px; border: 3px solid #7bbda7; border-radius: 17px; color: #145c46; background: linear-gradient(135deg, #d9f6e8, #b5e7d2); box-shadow: 0 9px 18px rgba(47,132,100,.13); text-align: center; }.cash-register span { font-size: 12px; font-weight: 800; }.cash-register strong { font-size: clamp(30px, 7vw, 43px); }.cash-register small { color: #33745d; font-size: 12px; }.cash-label { width: 100%; margin: 0 0 7px; color: #65708a; font-size: 12px; font-weight: 800; }.cash-palette, .cash-tray { width: min(520px, 100%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }.cash-tray { min-height: 95px; padding: 12px; border: 2px dashed #9ac7b5; border-radius: 17px; background: #f8fffb; }.cash-tray > span { color: #749188; font-size: 13px; }.cash-piece { flex: 0 0 auto; display: grid; place-items: center; gap: 1px; border: 0; cursor: grab; font-family: inherit; transition: transform .16s ease, filter .16s ease; }.cash-piece:active { cursor: grabbing; }.cash-piece.note { width: 74px; height: 46px; border: 2px solid rgba(38,86,69,.3); border-radius: 7px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.22), 0 3px 5px rgba(42,92,74,.13); }.cash-piece.note b { font-size: 16px; }.cash-piece.coin { width: 48px; height: 48px; border: 4px double #ce9b3a; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.36), 0 3px 5px rgba(86,66,25,.13); }.cash-piece.coin b { font-size: 12px; }.cash-piece small { font-size: 9px; font-weight: 800; }.cash-piece.green { color: #1d6952; background: #aee3cc; }.cash-piece.purple { color: #5b3c8f; background: #d7c1f7; }.cash-piece.blue { color: #245c8e; background: #bfe2f5; }.cash-piece.gold { color: #8c6014; background: #ffe09a; }.cash-piece.silver { color: #56636d; background: #d9e3e7; }.money-actions { display: flex; gap: 9px; margin-top: 16px; }

@media (max-width: 520px) { .g2-board { min-height: 235px; padding: 15px; border-radius: 19px; } .hundred-grid { gap: 3px; } .vertical-row { font-size: 25px; } .multiplication-table { gap: 3px; } .bar-chart { gap: 15px; } .cash-piece.note { width: 64px; height: 42px; } .cash-piece.coin { width: 43px; height: 43px; } }
