:root{font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:#234451;background:#f3f9fd;font-size:16px;font-synthesis:none;--blue:#087bc0;--ink:#164c70;--muted:#627b89;--line:#d5e5ee;--green:#137a62;--red:#b23542}
.game-head>div{min-width:0;flex:1}.game-head>button{flex:0 0 auto}.game-head>div h1{max-width:none!important}.notice{top:76px!important;bottom:auto!important;width:max-content;pointer-events:none}@media(max-width:360px){.identity .name{display:none}}
dialog:not([open]){display:none}dialog{max-height:90vh}.fallback-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:91}.dialog-backdrop{position:fixed;inset:0;z-index:90;background:#183c5266}
.choice.selected{border-color:#0581c1;background:#e4f5ff;box-shadow:inset 3px 0 #0581c1}
.history .small{white-space:nowrap;min-width:52px;padding:7px 9px}.profile-history td:nth-child(2){white-space:nowrap}
*{box-sizing:border-box;letter-spacing:0}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.62}a{color:#086d9d}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #eaa72b;outline-offset:3px}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:30px;line-height:1.4;margin:8px 0 16px;color:var(--ink)}h2{font-size:21px;line-height:1.5;color:var(--ink)}h3{font-size:18px;line-height:1.5}p{line-height:1.75}.topbar{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.top-inner{max-width:1000px;margin:auto;padding:12px 24px;display:flex;align-items:center;gap:24px;min-height:70px}.home-link{text-decoration:none;white-space:nowrap;font-size:14px}.brand{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:700;color:var(--ink);text-decoration:none;white-space:nowrap}.brand img{width:36px;height:36px;object-fit:contain}.identity{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:14px}.identity .name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container{max-width:960px;margin:0 auto;padding:32px 24px 72px}.intro{position:relative;padding:8px 132px 25px 0;border-bottom:1px solid var(--line)}.intro img{position:absolute;right:8px;top:4px;width:110px;height:110px;object-fit:contain}.eyebrow{font-size:14px;color:#267a99;margin:0 0 5px}.muted{color:var(--muted);font-size:14px}.intro p{margin:8px 0}.primary,.secondary,.small,.text-button,.icon-button{border-radius:6px;padding:11px 18px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;font-weight:600;line-height:1.4}.primary{border:1px solid var(--blue);background:var(--blue);color:#fff}.primary:hover:not(:disabled){background:#0769a5}.secondary,.small{border:1px solid #bdd7e5;background:#fff;color:#175b7d}.small{min-height:36px;padding:7px 12px;font-size:14px}.text-button,.icon-button{border:0;background:transparent;color:#0b6c9f;padding:7px}.icon-button{font-size:24px;width:36px;min-height:36px}.full{width:100%}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:24px 0 14px}.section-title h2{margin:0}.banks{display:grid;gap:16px}.bank{border:1px solid var(--line);border-left:4px solid #3195ca;background:#fff;border-radius:8px;padding:22px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px}.bank h3{margin:8px 0;color:var(--ink)}.bank p{margin:6px 0}.meta{display:flex;gap:9px;flex-wrap:wrap;font-size:13px;color:var(--muted);align-items:center}.tag{background:#e8f6fc;color:#176283;padding:3px 8px;border-radius:4px;font-size:12px;white-space:nowrap}.tag.locked{background:#fff3df;color:#825d12}.tip-line{font-size:14px;color:var(--muted);margin:18px 0}.game-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.game-head h1{font-size:22px;margin:0}.progress-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--muted)}progress{appearance:none;width:100%;height:8px;border:0;border-radius:4px;background:#dcebf4;overflow:hidden;margin:10px 0 25px}progress::-webkit-progress-bar{background:#dcebf4}progress::-webkit-progress-value{background:#188cbd}progress::-moz-progress-bar{background:#188cbd}.play-area{max-width:720px;margin:auto}.draw-zone{min-height:390px;display:grid;place-items:center;text-align:center;padding:28px 12px}.draw-card{display:flex;flex-direction:column;align-items:center;justify-content:center;width:220px;min-height:270px;border:2px solid #a4d7ee;border-radius:8px;background:#fff;box-shadow:8px 8px 0 #d9edf8;gap:12px;color:var(--ink);transition:transform .15s}.draw-card:hover{transform:translateY(-4px)}.draw-card img{width:94px;height:94px;object-fit:contain}.draw-card strong{font-size:22px}.draw-card span{font-size:14px;color:var(--muted)}.question{animation:arrive .25s ease-out}.question-top{display:flex;gap:8px;align-items:center}.question h2{font-size:24px;margin:12px 0}.scene{background:#eaf5fb;border-left:3px solid #66b4d8;padding:15px 18px;line-height:1.85;margin:18px 0 20px;border-radius:0 4px 4px 0}.choices{display:grid;gap:12px}.choice{position:relative;display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #cbdfe9;border-radius:6px;background:#fff;cursor:pointer;min-height:62px;line-height:1.65}.choice:has(input:checked){border-color:#0581c1;background:#e4f5ff;box-shadow:inset 3px 0 #0581c1}.choice input{width:20px;height:20px;flex-shrink:0;accent-color:#087bc0;margin:0}.choice.correct{border-color:#60a892;background:#edf9f2}.choice.wrong{border-color:#d7a0a4;background:#fff3f3}.question-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.question-actions button{min-width:148px}.matching{display:grid;gap:12px}.pair-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);line-height:1.6}.pair-row label{font-size:15px}.pair-row select{width:100%;min-width:0;white-space:normal;font-size:14px}.feedback{margin-top:24px;border-top:2px solid #76b7a3;padding-top:12px}.feedback.incorrect{border-color:#d3a1a5}.feedback h3{color:var(--green);margin:8px 0}.feedback.incorrect h3{color:var(--red)}.feedback p{font-size:15px;margin:10px 0}.feedback .source{font-size:13px;color:var(--muted)}.answer-line{font-weight:600}.result-head{text-align:center;padding:18px 0 25px;border-bottom:1px solid var(--line)}.result-head h1{margin:8px 0}.score{font-size:60px;color:var(--blue);font-weight:700;line-height:1.3}.score small{font-size:18px;color:var(--muted);font-weight:400}.result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:18px}.honors{display:flex;gap:16px;flex-wrap:wrap;margin:18px 0}.honor{display:flex;align-items:center;gap:10px;padding:8px 0;min-width:180px}.honor .seal{width:46px;height:46px;display:grid;place-items:center;background:#fff3d3;border:1px solid #edca70;border-radius:50%;color:#89620d}.honor strong{display:block;font-size:15px}.honor small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.review-list{margin-top:24px}details.review{border-bottom:1px solid var(--line);padding:15px 0}details.review summary{cursor:pointer;line-height:1.6;font-weight:600;display:flex;align-items:center;gap:9px}details.review summary:before{content:'＋';font-size:17px;color:#0b76ad}details.review[open] summary:before{content:'−'}.review .mark{margin-left:auto;white-space:nowrap;font-size:13px;color:var(--green)}.review .mark.miss{color:var(--red)}.review p{font-size:14px}.stats{display:flex;gap:40px;padding:22px 0;border-bottom:1px solid var(--line)}.stat strong{display:block;font-size:30px;color:var(--blue)}.stat span{font-size:13px;color:var(--muted)}.history{width:100%;border-collapse:collapse;background:#fff}.history th,.history td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line);line-height:1.6;font-size:14px}.history th{color:var(--muted);font-weight:600;background:#eaf4fa}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:6px}.empty{padding:28px 0;color:var(--muted)}.loading{padding:60px 0;text-align:center;color:var(--muted)}.notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);background:#164c70;color:#fff;padding:12px 18px;border-radius:6px;box-shadow:0 4px 16px #164c7029;z-index:100;display:none;line-height:1.6}.notice.visible{display:block}dialog{border:1px solid var(--line);border-radius:8px;box-shadow:0 20px 70px #143e5440;padding:24px;color:#234451;width:min(420px,calc(100% - 32px));max-height:90dvh;overflow:auto}dialog::backdrop{background:#183c5266}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{margin:0}.login-dialog p{font-size:14px;color:var(--muted)}label{display:block}label input:not([type=radio]):not([type=checkbox]),label select,label textarea{margin-top:7px}input:not([type=radio]):not([type=checkbox]),select,textarea{width:100%;padding:11px;border:1px solid #bed5e2;border-radius:5px;background:#fff;color:#234451}textarea{resize:vertical;min-height:100px}.error{color:var(--red);font-size:14px;line-height:1.7;min-height:24px;margin:8px 0}.admin-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:22px 0}.admin-view[hidden]{display:none}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.edit-grid .span{grid-column:1/-1}.field-group{margin:16px 0}.editor-split{display:grid;grid-template-columns:230px 1fr;gap:24px;border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.question-list{max-height:600px;overflow:auto;display:flex;flex-direction:column;gap:6px}.question-list button{text-align:left;justify-content:flex-start}.question-list button.active{background:#dceffc;border-color:#4eabd4}.editor-option{display:flex;gap:10px;align-items:center;margin:8px 0}.editor-option input[type=checkbox]{width:20px;height:20px;accent-color:var(--blue)}.editor-option input[type=text]{flex:1;min-width:0}.editor-pair{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin:8px 0}.editor-pair .icon-button{font-size:18px}.admin-detail{width:min(780px,calc(100% - 24px))}.admin-detail .question{margin-bottom:20px;border-bottom:1px solid var(--line)}.safe-note{padding:12px;background:#fdf6e6;color:#7c5e22;font-size:14px;line-height:1.7}.check-label{display:flex;align-items:center;gap:8px;padding:10px 0}.check-label input{width:19px;height:19px;accent-color:var(--blue)}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:620px){.top-inner{gap:12px;padding:10px 14px;min-height:62px}.home-link span{display:none}.brand{font-size:17px;gap:5px}.brand img{width:30px;height:30px}.identity{gap:7px;font-size:12px}.identity .name{max-width:65px}.identity button{font-size:12px;padding:7px;min-height:34px}.container{padding:24px 16px 52px}h1{font-size:24px}.intro{padding-right:76px}.intro img{width:70px;height:70px;right:0;top:12px}.intro p.muted{margin-right:-76px;padding-right:0}.bank{padding:18px;grid-template-columns:1fr;gap:12px}.bank .primary{width:100%}.bank h3{font-size:19px}.game-head{align-items:flex-start}.game-head h1{font-size:18px;max-width:calc(100% - 90px)}.question h2{font-size:21px}.scene{font-size:16px;padding:13px 14px;line-height:1.8}.choice{padding:14px 12px;font-size:15px}.pair-row{grid-template-columns:1fr;gap:6px;padding:14px 0}.pair-row select{font-size:15px;padding:12px}.question-actions button{flex:1}.draw-zone{min-height:340px;padding:18px 8px}.draw-card{width:195px;min-height:245px}.stats{gap:28px}.score{font-size:54px}.honors{gap:8px}.honor{min-width:150px;gap:8px}.honor strong{font-size:14px}.honor .seal{width:40px;height:40px}.history th,.history td{padding:11px 9px;font-size:13px}.edit-grid{grid-template-columns:1fr}.editor-split{grid-template-columns:1fr}.question-list{max-height:170px}.editor-pair{grid-template-columns:1fr 1fr auto}.brand.admin-brand{font-size:16px}}
