:root {
  --navy: #14284b; --blue: #2563eb; --blue-50: #eef4ff; --peach: #ff8a5b; --bg: #f4f6fb; --card: #fff;
  --text: #1f2937; --muted: #6b7280; --line: #e5e7eb; --green: #16a34a; --orange: #f59e0b; --red: #ef4444;
  --radius: 18px; --shadow: 0 10px 30px rgba(20, 40, 75, .08);
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.3; }
input, select, textarea { font: inherit; width: 100%; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); outline: none; transition: border .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
input[type=radio], input[type=checkbox] { width: auto; }
input[type=range] { padding: 0; border: 0; box-shadow: none; }
label { display: block; font-weight: 600; font-size: .95rem; }
label > input, label > select, label > textarea { margin-top: .35em; font-weight: 400; }
small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.muted { color: var(--muted); } .sm { font-size: .85rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .55em 1.1em; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: transform .1s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: #f8fafc; } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, #2563eb, #4f46e5); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(37, 99, 235, .28); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.sm { padding: .35em .8em; font-size: .85rem; } .btn.xs { padding: .2em .55em; font-size: .78rem; border-radius: 8px; }
.btn.big { padding: .75em 1.5em; font-size: 1.05rem; } .btn.huge { padding: .9em 2.6em; font-size: 1.25rem; border-radius: 16px; }
.actions { display: flex; gap: .5em; flex-wrap: wrap; align-items: center; } .actions.center { justify-content: center; }
.badge { display: inline-block; padding: .15em .7em; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #f1f5f9; color: #475569; }
.badge.green { background: #dcfce7; color: #15803d; } .badge.orange { background: #fef3c7; color: #b45309; } .badge.red { background: #fee2e2; color: #b91c1c; } .badge.blue { background: var(--blue-50); color: var(--blue); }
.loading, .empty { padding: 2.5em; text-align: center; color: var(--muted); }
.boot { padding: 30vh 0; text-align: center; color: var(--muted); }
#toast { position: fixed; left: 50%; top: 22px; transform: translate(-50%, -150%); background: var(--navy); color: #fff; padding: .7em 1.3em; border-radius: 12px; box-shadow: var(--shadow); transition: transform .3s, opacity .3s; z-index: 99; max-width: 90vw; opacity: 0; pointer-events: none; }
#toast.show { transform: translate(-50%, 0); opacity: 1; } #toast.error { background: #b91c1c; } #toast.success { background: #15803d; }

/* layout */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.5em; padding: .7em 1.6em; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar nav { display: flex; gap: .3em; flex: 1; overflow-x: auto; }
.topbar nav a { padding: .45em .95em; border-radius: 10px; color: var(--text); font-weight: 600; white-space: nowrap; }
.topbar nav a.active, .topbar nav a:hover { background: var(--blue-50); color: var(--blue); }
.me { display: flex; align-items: center; gap: .6em; font-weight: 600; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: .55em; font-weight: 800; font-size: 1.1rem; color: var(--navy); white-space: nowrap; }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--peach), #f43f5e); font-size: 1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 1.6em; } .container.narrow { max-width: 1000px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4em 1.6em; margin-bottom: 1.4em; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8em; gap: 1em; }
.card-head h3 { margin: 0; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4em; align-items: start; }
.two-col > .card { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1em; margin-bottom: 1.4em; }
.stat { background: #fff; border-radius: var(--radius); padding: 1.1em 1.3em; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 2rem; color: var(--navy); line-height: 1.2; } .stat span { color: var(--muted); font-size: .9rem; }
.stat.warn b { color: var(--orange); }
.table-wrap { overflow-x: auto; } .table-wrap.scroll { max-height: 460px; overflow-y: auto; margin-top: 1em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .85rem; padding: .7em .6em; border-bottom: 1.5px solid var(--line); white-space: nowrap; background: #fff; position: sticky; top: 0; }
td { padding: .75em .6em; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.grid-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em 1.2em; }
.grid-form .full { grid-column: 1 / -1; }
.label { font-weight: 600; font-size: .95rem; margin-bottom: .45em; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7em; }
.seg label { cursor: pointer; } .seg input { display: none; }
.seg span { display: block; padding: .85em 1em; border: 1.5px solid var(--line); border-radius: 14px; transition: .2s; }
.seg span small { display: block; margin-top: .2em; }
.seg input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.chips { display: flex; flex-wrap: wrap; gap: .5em; }
.chip { cursor: pointer; } .chip input { display: none; }
.chip span { display: inline-block; padding: .35em .95em; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; }
.chip input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.preview { background: #f8fafc; border-radius: 14px; padding: 1em; }
.word-pills { display: flex; flex-wrap: wrap; gap: .4em; }
.word-pills span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .15em .6em; font-size: .88rem; }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: .9em 0; border-bottom: 1px solid #f1f5f9; }

/* avatar */
.avatar-host { position: relative; }
.av-stage { perspective: 900px; position: relative; }
.av-tilt { position: relative; transform-style: preserve-3d; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(20, 40, 75, .45), 0 0 0 6px rgba(255, 255, 255, .85); will-change: transform; transition: transform .08s linear; }
.av-canvas { display: block; width: 100%; height: auto; }
.av-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.av-video[hidden] { display: none; }
.clip-status { font-size: 1.05rem; line-height: 1.7; }
.av-gloss { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(180deg, transparent 70%, rgba(10, 20, 40, .18)); }
.av-shadow { height: 24px; margin: 8px 12% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 40, 75, .25), transparent); }
.av-marker { position: absolute; height: 0; border-top: 2px dashed #22d3ee; transform: translate(-50%, -1px); pointer-events: none; }
.av-marker::after { content: ""; position: absolute; left: 50%; top: -7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .3); }
.calibrate { cursor: crosshair; max-width: 420px; margin: 0 auto; }
.av-caption { position: absolute; left: 6%; right: 6%; bottom: 46px; background: rgba(15, 23, 42, .78); color: #fff; padding: .75em 1.1em; border-radius: 16px; font-size: 1.12rem; line-height: 1.5; backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero { background: radial-gradient(circle at 20% 10%, #dbeafe, transparent 50%), radial-gradient(circle at 90% 90%, #ffe4d6, transparent 50%), #f8fafc; padding: 2.4em 3em; display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-hero .brand { align-self: flex-start; }
.login-avatar { width: min(340px, 70vw); margin: 1.6em 0 .6em; }
.login-hero h1 { font-size: 2rem; color: var(--navy); } .login-hero p { color: var(--muted); font-size: 1.05rem; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: 3em min(8vw, 6em); background: #fff; }
.login-card h2 { font-size: 1.8rem; color: var(--navy); }
.login-card form { display: grid; gap: 1.1em; margin: 1.2em 0 2em; }
.demo-accounts { background: #f8fafc; border-radius: 14px; padding: 1em; display: grid; gap: .5em; color: var(--muted); font-size: .9rem; }
.demo-accounts button { text-align: left; background: #fff; border: 1px dashed #cbd5e1; padding: .55em .9em; border-radius: 10px; cursor: pointer; font: inherit; color: var(--text); }

/* student */
.student-hero { display: flex; align-items: center; gap: 2em; background: linear-gradient(135deg, #eef4ff, #fff4ec); border-radius: 24px; padding: 1.6em 2em; margin-bottom: 1.6em; }
.home-avatar { width: 150px; flex-shrink: 0; } .student-hero h1 { font-size: 2rem; color: var(--navy); } .student-hero p { font-size: 1.1rem; margin: 0; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2em; }
.task { margin: 0; display: flex; flex-direction: column; } .task h3 { font-size: 1.3rem; margin-top: .6em; }
.task-top { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.task .actions { margin-top: auto; padding-top: .6em; }

/* quiz */
.quiz { max-width: 1240px; margin: 0 auto; padding: 1.6em; display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 2em; align-items: start; }
.quiz-stage { position: sticky; top: 84px; }
.stage-ctrl { display: flex; justify-content: center; margin-top: .2em; }
.quiz-panel { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 2em 2.2em; min-height: 520px; }
.start-box, .done-box { text-align: center; padding: 1.5em 0; }
.start-box h2, .done-box h2 { font-size: 2rem; color: var(--navy); }
.quiz-title { display: inline-block; background: var(--blue-50); color: var(--blue); font-weight: 700; padding: .3em 1em; border-radius: 999px; margin-bottom: 1em; }
.howto { text-align: left; max-width: 460px; margin: 1.4em auto 2em; font-size: 1.1rem; display: grid; gap: .5em; }
.progress { display: flex; align-items: center; gap: 1em; margin-bottom: 1.6em; font-weight: 700; color: var(--muted); }
.progress-bar { flex: 1; height: 12px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #60a5fa, #6366f1); border-radius: 99px; transition: width .5s; }
.qcard { text-align: center; animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.qtype { color: var(--muted); font-weight: 600; letter-spacing: .05em; }
.qword { font-size: 3.6rem; font-weight: 800; color: var(--navy); margin: .3em 0 .1em; word-break: break-word; line-height: 1.2; }
.qword.zh { font-size: 2.6rem; }
.qph { font-size: 1.3rem; color: var(--muted); min-height: 1.6em; font-family: "Segoe UI", "Lucida Sans Unicode", sans-serif; }
.qhint { font-size: 1.6rem; letter-spacing: .15em; color: #94a3b8; font-family: ui-monospace, monospace; }
.ans-form { display: flex; gap: .8em; margin: 1.6em auto 1em; max-width: 620px; }
.ans-form input { font-size: 1.4rem; padding: .65em 1em; border-radius: 16px; text-align: center; }
.qtools { display: flex; gap: .5em; justify-content: center; flex-wrap: wrap; }
.btn.rec { background: #fee2e2; border-color: #fecaca; color: #b91c1c; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, .15); } }
.fb { margin: 1.4em auto 0; max-width: 620px; border-radius: 18px; padding: 1em 1.3em; text-align: left; font-size: 1.1rem; animation: pop .3s ease; }
.fb.correct { background: #ecfdf5; border: 2px solid #86efac; } .fb.close { background: #fffbeb; border: 2px solid #fcd34d; } .fb.wrong { background: #fef2f2; border: 2px solid #fca5a5; }
.fb.neutral { background: #f1f5f9; text-align: center; color: var(--muted); }
.fb-title { font-weight: 800; font-size: 1.2rem; } .fb.correct .fb-title { color: #15803d; } .fb.close .fb-title { color: #b45309; } .fb.wrong .fb-title { color: #b91c1c; }
.fb-ans b { font-size: 1.4rem; } .fb-ans span { color: var(--muted); } .fb-ex { color: #475569; font-style: italic; margin-top: .3em; }
.big-score { font-size: 4.5rem; font-weight: 900; color: var(--blue); line-height: 1.1; } .big-score small { font-size: 1.5rem; }

/* report */
.report-toolbar { display: flex; gap: .6em; margin-bottom: 1em; flex-wrap: wrap; }
.release-box textarea { margin: .6em 0 1em; }
.report { background: #fff; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; font-size: 1.12rem; margin-bottom: 2em; }
.rep-head { display: flex; justify-content: space-between; gap: 1.5em; align-items: center; padding: 2em 2.4em; color: #fff; background: linear-gradient(135deg, #14284b, #2563eb 70%, #6366f1); }
.rep-org { opacity: .85; font-weight: 600; } .rep-head h1 { font-size: 2.2rem; margin: .2em 0 .4em; }
.rep-meta { display: flex; flex-wrap: wrap; gap: .5em; } .rep-meta span { background: rgba(255, 255, 255, .16); padding: .2em .8em; border-radius: 999px; font-size: .95rem; }
.rep-tutor { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 4px solid rgba(255, 255, 255, .7); flex-shrink: 0; }
.rep-score { display: flex; gap: 2.4em; align-items: center; padding: 2em 2.4em; border-bottom: 1px solid #f1f5f9; }
.ring { --p: 0; --c: #2563eb; width: 190px; height: 190px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #eef2f7 0); }
.ring > div { width: 150px; height: 150px; border-radius: 50%; background: #fff; display: flex; align-items: baseline; justify-content: center; padding-top: 38px; }
.ring b { font-size: 4rem; font-weight: 900; color: var(--navy); line-height: 1; } .ring span { font-size: 1.2rem; color: var(--muted); margin-left: .15em; }
.rep-level { flex: 1; }
.level-badge { display: inline-block; color: #fff; font-weight: 800; padding: .25em 1em; border-radius: 999px; font-size: 1.1rem; }
.level-text { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin: .5em 0 1em; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; }
.tile { border-radius: 16px; padding: .8em 1em; } .tile b { display: block; font-size: 1.7rem; line-height: 1.2; } .tile span { font-size: .95rem; color: #475569; }
.tile.green { background: #ecfdf5; } .tile.green b { color: #15803d; } .tile.orange { background: #fffbeb; } .tile.orange b { color: #b45309; }
.tile.red { background: #fef2f2; } .tile.red b { color: #b91c1c; } .tile.blue { background: var(--blue-50); } .tile.blue b { color: var(--blue); }
.rep-sec { padding: 1.6em 2.4em; border-bottom: 1px solid #f1f5f9; }
.rep-sec h2 { font-size: 1.5rem; color: var(--navy); display: flex; align-items: center; gap: .5em; }
.rep-sec h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 4px; background: linear-gradient(var(--peach), #f43f5e); }
.bar-row { display: grid; grid-template-columns: 140px minmax(80px, 1fr) 56px minmax(9em, 1.4fr); gap: 1em; align-items: center; margin: .6em 0; font-weight: 600; }
.bar-row small { color: #64748b; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.bar { height: 16px; background: #eef2f7; border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #6366f1); border-radius: 99px; }
.comment { background: #fff9f3; } .comment p { font-size: 1.25rem; margin: 0; line-height: 1.8; }
.tips { margin: 0; padding-left: 1.4em; display: grid; gap: .5em; font-size: 1.15rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1em; }
.review-card { border-radius: 18px; padding: 1em 1.2em; border: 2px solid #fecaca; background: #fffafa; }
.review-card.close { border-color: #fde68a; background: #fffdf5; }
.rc-top { display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; } .rc-top .badge { margin-left: auto; }
.review-card .en { font-size: 1.6rem; color: var(--navy); } .review-card .ph { color: var(--muted); }
.review-card .zh { font-size: 1.15rem; font-weight: 600; margin: .2em 0; } .review-card .ans { color: #475569; font-size: 1rem; }
.review-card .ex { color: #475569; font-style: italic; font-size: 1rem; margin-top: .4em; border-top: 1px dashed #e5e7eb; padding-top: .4em; }
.mastered { display: flex; flex-wrap: wrap; gap: .6em; }
.mastered span { background: #ecfdf5; color: #166534; border-radius: 12px; padding: .35em .9em; font-weight: 700; font-size: 1.1rem; }
.mastered small { color: #15803d; font-weight: 400; }
table.detail { font-size: 1.02rem; } table.detail tr.wrong td { background: #fffafa; } table.detail tr.close td { background: #fffdf5; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4em; background: #cbd5e1; }
.dot.correct { background: var(--green); } .dot.close { background: var(--orange); } .dot.wrong { background: var(--red); }
.plan-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.plan-steps div { background: #f8fafc; border-radius: 16px; padding: 1em; text-align: center; } .plan-steps b { display: block; color: var(--blue); font-size: 1.2rem; }
.rep-foot { text-align: center; color: var(--muted); padding: 1.2em; font-size: .95rem; }

@media (max-width: 960px) {
  .two-col, .login, .quiz { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .quiz-stage { position: static; max-width: 340px; margin: 0 auto; width: 100%; }
  table.detail th:nth-child(2), table.detail td:nth-child(2) { display: none; }
  .login-hero { padding: 1.5em; } .login-avatar { width: 220px; }
  .grid-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  html { font-size: 16px; }
  .container, .quiz { padding: 1em; }
  .topbar { flex-wrap: wrap; gap: .5em; padding: .6em 1em; } .topbar nav { order: 3; width: 100%; flex: none; }
  .me { margin-left: auto; }
  .quiz-stage { max-width: 230px; } .quiz { gap: 1em; }
  .quiz-panel { padding: 1.3em; } .qword { font-size: 2.6rem; } .qword.zh { font-size: 2rem; }
  .ans-form { flex-direction: column; }
  .rep-head, .rep-score { flex-direction: column; text-align: center; padding: 1.5em; } .rep-meta { justify-content: center; }
  .rep-sec { padding: 1.3em 1.3em; } .tiles, .plan-steps { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 64px 1fr 48px; row-gap: .2em; } .bar-row small { grid-column: 1 / -1; }
  .student-hero { flex-direction: column; text-align: center; } .grid-form { grid-template-columns: 1fr; }
}
@media print {
  body { background: #fff; } .topbar, .no-print, .quiz, #toast { display: none !important; }
  .report { box-shadow: none; border-radius: 0; } .container { padding: 0; max-width: none; }
  .rep-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.setup-step { border-top: 1px solid #e6ebf2; padding: 14px 0; }
.setup-step h4 { margin: 0 0 6px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.setup-step .dot { width: 14px; height: 14px; border-radius: 50%; background: #cfd6e0; display: inline-block; }
.setup-step .dot.ok { background: #22a06b; }
.setup-step .dot.run { background: #f0a020; animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .35; } }
.voice-script { margin: 8px 0; padding: 12px 14px; background: #f5f8fc; border-left: 4px solid #4a7bd0; font-size: 1.1rem; line-height: 1.8; }
.av-idle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-idle[hidden] { display: none; }

.logo-img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.login-hero .logo-img { width: 56px; height: 56px; }
.badge.blue { background: #dbeafe; color: #1d4ed8; }
.bank-row .badge { margin-left: .4em; font-size: .75rem; }
.bank-row.open { background: #f1f5ff; border-radius: 10px; }
.words-table .cell { width: 100%; min-width: 70px; padding: .3em .45em; border: 1px solid #e2e8f0; border-radius: 6px; font: inherit; background: #fff; }
.words-table td { vertical-align: middle; }
.seg.seg4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .seg.seg4 { grid-template-columns: 1fr 1fr; } }
.listen-btn { display: flex; flex-direction: column; align-items: center; gap: .3em; margin: .6em auto 1em; padding: 1em 2em; font-size: 1.1rem; font-weight: 700;
  border: 0; border-radius: 18px; background: linear-gradient(135deg, #4f8ef7, #2563eb); color: #fff; cursor: pointer; }
.listen-btn span { font-size: 2.6rem; line-height: 1; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; margin: 1em 0; }
@media (max-width: 600px) { .choices { grid-template-columns: 1fr; } }
.choice { display: flex; gap: .7em; align-items: center; text-align: left; padding: .9em 1.1em; font-size: 1.15rem; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: .15s; }
.choice.en { font-size: 1.3rem; font-weight: 700; }
.choice b { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: #eef2ff; color: var(--blue); font-size: .95rem; }
.choice:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-50); }
.choice.picked { border-color: var(--blue); background: var(--blue-50); }
.choice.right { border-color: #16a34a; background: #dcfce7; }
.choice.bad { border-color: #dc2626; background: #fee2e2; }
.choice:disabled { cursor: default; opacity: 1; color: inherit; }
[hidden] { display: none !important; }
.words-table .cell { min-width: 96px; }
.stu-tools { display: flex; gap: .5em; align-items: center; margin: .3em 0 .7em; flex-wrap: wrap; }
.stu-tools input { flex: 1; min-width: 12em; }
.setup-banner { background: #fff7e6; border: 1.5px solid #ffc96b; border-radius: 12px; padding: .8em 1em; margin: .4em 0 .8em; line-height: 1.6; }
.setup-banner a { margin-left: .5em; font-weight: 600; }
.fb-parts { display: flex; gap: .6em; flex-wrap: wrap; margin: .5em 0; } .fb-parts span { padding: .2em .7em; border-radius: 10px; font-weight: 700; }
.fb-parts .correct { background: #dcfce7; color: #15803d; } .fb-parts .close { background: #fef3c7; color: #b45309; } .fb-parts .wrong { background: #fee2e2; color: #b91c1c; }
.ss-cell { white-space: nowrap; font-weight: 600; } .ss-cell.correct { color: #15803d; } .ss-cell.close { color: #b45309; } .ss-cell.wrong { color: #b91c1c; }
.notice { background: #eff6ff; border: 2px solid #bfdbfe; color: #1e3a8a; border-radius: 14px; padding: .8em 1.1em; margin-bottom: 1em; font-weight: 600; }
.ss-step { max-width: 640px; margin: .9em auto 0; padding: .9em 1.1em; border-radius: 18px; background: #f8fafc; border: 2px solid #e2e8f0; text-align: left; opacity: .55; transition: all .2s; }
.ss-step.active { opacity: 1; background: #fff; border-color: #93c5fd; box-shadow: 0 6px 20px rgba(37, 99, 235, .08); }
.ss-step.done { opacity: 1; background: #f8fafc; border-color: #e2e8f0; padding: .6em 1.1em; }
.ss-label { display: flex; align-items: center; gap: .5em; font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-bottom: .7em; }
.ss-label b { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #2563eb; color: #fff; font-size: .95rem; }
.ss-step.done .ss-label { margin-bottom: .3em; } .ss-step.done .ss-label b { background: #94a3b8; }
.ss-label small { margin-left: auto; font-weight: 500; color: #94a3b8; font-size: .9rem; }
.ss-row, .ss-step .ans-form { display: flex; gap: .6em; align-items: stretch; margin: 0; max-width: none; }
.ss-row input, .ss-step .ans-form input { flex: 1; min-width: 0; font-size: 1.3rem; padding: .55em .9em; border-radius: 14px; text-align: center; }
.ss-row .btn, .ss-step .ans-form .btn { white-space: nowrap; border-radius: 14px; }
.mic-big { padding: .6em 1.2em; font-size: 1.05rem; } .mic-big.rec { background: #dc2626; animation: pulse 1s infinite; }
.ss-summary { display: flex; align-items: center; justify-content: space-between; font-size: 1.2rem; } .ss-summary b { color: #1e293b; }
@media (max-width: 600px) { .ss-row { flex-wrap: wrap; } .ss-row .mic-big { flex: 1 0 100%; } }
.skip-row { margin-top: 1.4em; }
.link-btn { background: none; border: none; color: #64748b; font-size: 1rem; cursor: pointer; padding: .4em .8em; border-radius: 10px; }
.link-btn:hover { color: #2563eb; background: #eff6ff; }
.step-st { margin-left: auto; font-style: normal; font-size: .85rem; font-weight: 600; color: #b45309; background: #fff7e6; padding: .15em .6em; border-radius: 999px; }
.step-st.ok { color: #15803d; background: #f0fdf4; }
.setup-finish { border-top: 1px solid #e6ebf2; padding: 18px 0 8px; text-align: center; }
.setup-finish .btn:disabled { opacity: .45; cursor: not-allowed; }
.setup-finish #enterHint { margin-top: .6em; }

.preload { margin: 0 auto 18px; max-width: 360px; text-align: center; color: #64748b; font-size: .95rem; }
.preload-bar { height: 8px; background: #e6ebf2; border-radius: 999px; overflow: hidden; margin-bottom: .5em; }
.preload-bar i { display: block; height: 100%; width: 0; background: #3b82f6; transition: width .2s; }
.preload.ok { color: #15803d; }
.preload.ok .preload-bar i { background: #22c55e; }
#startBtn:disabled, #skipStartBtn:disabled { opacity: .45; cursor: wait; }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1em; }
.modal-box { width: min(760px, 100%); max-height: 85vh; overflow: auto; margin: 0; }
.modal .chips { max-height: 45vh; overflow: auto; }
.chip small { opacity: .7; font-weight: 400; }
.stu-bar { display: flex; flex-wrap: wrap; gap: .6em; align-items: center; margin: .2em 0 .8em; padding: .6em .8em; background: #f8fafc; border-radius: 10px; }
.stu-bar select, .range-bar input, .stu-tools select { width: auto; }
#sq { min-width: 16em; }
.grid-form.form2 { grid-template-columns: 1fr 1fr; }
.inline-form { display: flex; gap: .6em; margin-top: 1em; } .inline-form input { flex: 1; }
.range-bar { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; }
.range-bar input[type=date] { padding: .35em .5em; }
.steps-mini { margin: 0; padding-left: 1.3em; line-height: 1.9; }
.two-col > div > .card + .card { margin-top: 1.4em; }
td select { padding: .25em .4em; font-size: .95em; }
@media (max-width: 700px) { .grid-form.form2 { grid-template-columns: 1fr; } }
td select { min-width: 6em; } td select[data-group] { min-width: 9em; }
td .badge { white-space: nowrap; }
/* 首页宣传 */
.ad-card { position: relative; width: 100%; max-width: 300px; background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(15,23,42,.08); overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.ad-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.12); }
.ad-img { position: relative; aspect-ratio: 16 / 9; background: #f1f5f9; }
.ad-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.ad-img img.on { opacity: 1; }
.ad-tag { position: absolute; left: 8px; top: 8px; font-size: .72rem; color: #fff; background: rgba(15,23,42,.55); padding: .15em .6em; border-radius: 99px; letter-spacing: .05em; }
.ad-cap { font-size: .9rem; color: var(--navy); padding: .5em .8em; line-height: 1.4; min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-cap:empty { display: none; }
.ad-dots { position: absolute; right: 8px; top: 10px; display: flex; gap: 4px; }
.ad-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.ad-dots i.on { background: #fff; width: 14px; border-radius: 3px; }
.hero-ad { margin-left: auto; flex: 0 0 260px; }
.hero-ad:empty { display: none; }
.login-card #adSlot .ad-card { max-width: 100%; display: grid; grid-template-columns: 150px 1fr; align-items: center; }
.login-card #adSlot .ad-cap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ad-view img { width: 100%; border-radius: 10px; display: block; }
.ad-view p { font-size: 1.1rem; margin: .8em 0; }
.ad-list { display: grid; gap: .8em; }
.ad-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 1em; align-items: center; padding: .6em; border: 1px solid #e2e8f0; border-radius: 12px; }
.ad-row img { width: 180px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.ad-fields { display: grid; gap: .5em; }
.ad-ops { display: flex; flex-wrap: wrap; gap: .4em; max-width: 160px; }
.btn.danger { color: #dc2626; }
@media (max-width: 760px) {
  .hero-ad { flex: 1 1 100%; margin: 0; } .student-hero { flex-wrap: wrap; }
  .ad-row { grid-template-columns: 1fr; } .ad-row img { width: 100%; } .ad-ops { max-width: none; }
  .login-card #adSlot .ad-card { grid-template-columns: 1fr; }
}

/* 错词本 */
.review-banner { display: flex; align-items: center; justify-content: space-between; gap: 1em; background: #fff7ed; border: 2px solid #fed7aa; border-radius: 18px; padding: .9em 1.3em; margin-bottom: 1.2em; color: #7c2d12; text-decoration: none; }
.review-banner b { font-size: 1.15rem; margin-right: .8em; } .review-banner em { font-style: normal; font-weight: 800; color: #ea580c; font-size: 1.2rem; }
.rv-tiles { grid-template-columns: repeat(3, 1fr); }
.rv-tip { margin: .9em 0; line-height: 1.6; }
.rv-form { border-top: 1px solid var(--line); padding-top: 1em; display: grid; gap: .8em; }
.rv-row { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.rv-row input[type=number] { width: 5.5em; margin-left: .3em; }
.rv-check { display: flex; align-items: center; gap: .4em; font-weight: 600; }
.rv-dots { display: inline-flex; gap: 3px; } .rv-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; } .rv-dots i.on { background: #22c55e; }
.rv-table .en { font-size: 1.1rem; }
.rv-name { margin: 1.2em 0 .6em; }
tr.sel { background: var(--blue-50); }
@media (max-width: 640px) { .review-banner { flex-direction: column; align-items: stretch; text-align: center; } .seg.seg4 { grid-template-columns: repeat(2, 1fr); } }

.say-btn { display: inline-flex; align-items: center; justify-content: center; width: 1.9em; height: 1.9em; margin: 0 .35em; padding: 0; border: 0; border-radius: 50%; background: #eff6ff; color: #2563eb; cursor: pointer; vertical-align: middle; flex: none; }
.say-btn svg { width: 1.05em; height: 1.05em; }
.say-btn:hover { background: #dbeafe; } .say-btn.playing { background: #2563eb; color: #fff; }
@media print { .say-btn { display: none; } }

.accent-bar { display: inline-flex; align-items: center; gap: .3em; margin-left: .8em; vertical-align: middle; font-size: .95rem; font-weight: 600; }
.accent-bar small { color: #64748b; margin-right: .2em; }
.accent-bar button { border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 99px; padding: .2em .75em; cursor: pointer; font: inherit; font-size: .9rem; }
.accent-bar button.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.rv-accent { margin-top: 1em; } .rv-accent .accent-bar { margin-left: 0; }
@media print { .accent-bar { display: none; } }
