/* 英语板块页（设计档 施工 12）：沿用 style.css 的蓝玻璃体系变量，不写死颜色 */
.en-wrap { max-width: 1080px; margin: 0 auto; padding: 18px 18px 60px; display: flex; flex-direction: column; gap: 18px; }
.en-teacher { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
.en-teacher img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(47,107,255,.18); }
.en-teacher .t-say { font-size: 16px; line-height: 1.6; color: var(--ink); }
.en-teacher .t-meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.en-teacher .t-meta b { color: var(--accent); }
.en-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.en-tool { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; color: var(--ink); text-decoration: none; }
.en-tool:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(47,107,255,.14); }
.en-tool .ico { font-size: 26px; }
.en-tool .name { font-size: 16.5px; font-weight: 700; }
.en-tool .desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.en-tool.primary { background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%); color: #fff; border: none; }
.en-tool.primary .desc { color: rgba(255,255,255,.85); }
.en-tool.soon { opacity: .62; cursor: default; }
.en-tool.soon:hover { transform: none; box-shadow: none; }
.en-tool .badge { position: absolute; top: 10px; right: 12px; font-size: 11.5px; background: rgba(255,255,255,.28); border-radius: 999px; padding: 2px 9px; }
.en-tool.soon .badge { background: rgba(120,140,180,.18); color: var(--ink-soft); }
.en-section { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.en-section h3 { margin: 0 0 10px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.en-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.en-tabs button { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; }
.en-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.en-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; }
.en-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; }
.en-item .w { font-weight: 600; font-family: var(--serif, Georgia, serif); font-size: 16px; }
.en-item .src { color: var(--ink-soft); font-size: 12.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.en-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.en-item .dot.s1 { background: #f0a03c; } .en-item .dot.s2 { background: #6ea8ff; } .en-item .dot.s3 { background: #2f6bff; } .en-item .dot.s4 { background: #27ae60; }
.en-item audio { height: 30px; max-width: 220px; }
.en-empty { color: var(--ink-soft); font-size: 14px; padding: 10px 2px; }
.en-muted { color: var(--ink-soft); font-size: 13px; }

/* 跟读打卡全屏层 */
#sh-layer { position: fixed; inset: 0; z-index: 120; background: var(--paper); display: flex; flex-direction: column; }
#sh-layer.hidden { display: none; }
.sh-top { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--card); }
.sh-top .title { font-weight: 700; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-body { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 18px 40px; }
.sh-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(720px, 100%); }
.sh-choose .opt { background: var(--card); border: 1.5px dashed var(--line); border-radius: 18px; padding: 22px 18px; text-align: center; cursor: pointer; }
.sh-choose .opt:hover { border-color: var(--accent); }
.sh-choose .opt .ico { font-size: 34px; }
.sh-choose .opt .name { font-weight: 700; font-size: 16px; margin-top: 6px; }
.sh-choose .opt .desc { font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.sh-sets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.sh-sets button { border-radius: 999px; padding: 7px 14px; font-size: 13.5px; }
.sh-card { width: min(720px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 22px; box-shadow: 0 12px 40px rgba(47,107,255,.10); }
.sh-progress { display: flex; gap: 5px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.sh-progress i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.sh-progress i.cur { background: var(--accent); transform: scale(1.25); }
.sh-progress i.done { background: #27ae60; }
.sh-sentence { font-family: var(--serif, Georgia, "Songti SC", serif); font-size: clamp(22px, 3.4vw, 32px); line-height: 1.7; text-align: center; letter-spacing: .2px; min-height: 60px; }
.sh-sentence span { transition: color .1s ease, background .1s ease; border-radius: 6px; padding: 0 2px; }
.sh-sentence span.on { background: rgba(47,107,255,.16); color: var(--accent); }
.sh-sentence span.miss { text-decoration: underline wavy #e74c3c; }
.sh-sentence.recite span { color: transparent; background: rgba(120,140,180,.16); }
.sh-sentence.recite span.on { color: var(--accent); background: rgba(47,107,255,.16); }
.sh-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.sh-play { border-radius: 999px; padding: 12px 22px; font-size: 15.5px; }
.sh-rec { width: 96px; height: 96px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #fff; font-size: 34px; box-shadow: 0 10px 28px rgba(47,107,255,.35); transition: transform .12s ease; }
.sh-rec:active { transform: scale(.95); }
.sh-rec.on { background: linear-gradient(135deg, #ff7a59, #e74c3c); box-shadow: 0 10px 28px rgba(231,76,60,.35); animation: shpulse 1s ease-in-out infinite; }
.sh-rec:disabled { opacity: .55; }
@keyframes shpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.sh-hint { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin-top: 8px; min-height: 20px; }
.sh-result { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; display: none; }
.sh-result.show { display: block; }
.sh-score { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
.sh-score .num { font-size: 44px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.sh-score .stars { font-size: 22px; letter-spacing: 2px; }
.sh-heard { text-align: center; font-size: 15px; color: var(--ink); margin-top: 6px; font-family: var(--serif, Georgia, serif); }
.sh-heard .lbl { color: var(--ink-soft); font-size: 12.5px; font-family: var(--sans); }
.sh-tip { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.sh-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.sh-modes { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.sh-modes button { border: none; border-radius: 0; padding: 8px 14px; font-size: 13.5px; }
.sh-modes button.active { background: var(--ink); color: #fff; }
.sh-recap { width: min(640px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; text-align: center; }
.sh-recap .big { font-size: 56px; font-weight: 800; color: var(--accent); }
.sh-recap ul { text-align: left; margin: 14px auto 0; max-width: 460px; line-height: 1.8; font-size: 15px; }
.sh-recap audio { margin-top: 10px; width: 100%; max-width: 420px; }
@media (max-width: 640px) { .sh-choose { grid-template-columns: 1fr; } .sh-card { padding: 18px 16px; } }

/* 每日三分钟 */
.dy-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.dy-row .w { font-family: var(--serif, Georgia, serif); font-size: 18px; font-weight: 600; min-width: 120px; }
.dy-row .ctx { flex: 1; color: var(--ink-soft); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dy-row button { padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.dy-row.done { opacity: .55; }
.dy-row.done .w::after { content: ' ✓'; color: #27ae60; }
.dy-done { text-align: center; padding: 12px; color: var(--accent); font-weight: 600; }
.dy-streak { display: flex; gap: 4px; margin-top: 8px; }
.dy-streak i { width: 14px; height: 14px; border-radius: 4px; background: var(--line); }
.dy-streak i.on { background: #f0a03c; }
/* 周榜 */
.lb-top { display: flex; flex-direction: column; gap: 6px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; }
.lb-row .rk { width: 28px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lb-row .rk.gold { color: #f0a03c; } .lb-row .nm { flex: 1; } .lb-row .sc { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-row.me { background: rgba(47,107,255,.10); }
.lb-me { margin-top: 10px; padding: 10px 12px; border-top: 1px dashed var(--line); font-size: 14px; }
.lb-me b { color: var(--accent); }
.lb-grade { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lb-grade select { padding: 6px 14px; }

/* 四维评价 */
.sh-dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.sh-dim { text-align: center; }
.sh-dim .n { font-size: 12.5px; color: var(--ink-soft); }
.sh-dim .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sh-dim .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.sh-dim .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); border-radius: 3px; }
.sh-dim.weak .v { color: #e67e22; } .sh-dim.weak .bar i { background: linear-gradient(90deg, #ffb84d, #e67e22); }
.sh-sentence.passage { font-size: clamp(18px, 2.6vw, 24px); text-align: left; line-height: 1.85; }
.sh-sentence.passage .ln { display: block; }
.sh-engine { font-size: 11.5px; color: var(--ink-soft); text-align: center; margin-top: 4px; }
@media (max-width: 640px) { .sh-dims { grid-template-columns: repeat(2, 1fr); } }

.sh-sentence span.w-good { color: #1f9d55; }
.sh-sentence span.w-mid { color: #d98b1a; }
.sh-sentence span.w-bad { color: #e74c3c; text-decoration: underline wavy #e74c3c; }

/* ── 批注纸（航空信纸）评价组件 ─────────────────────────────────────────── */
.fb-paper { --fb-paper: #fbf7ee; --fb-ink: #1c2a3a; --fb-muted: #6b7684; --fb-red: #c8452b; --fb-blue: #2b5aa8; --fb-line: #e6dfcf;
  position: relative; background: var(--fb-paper); color: var(--fb-ink); border-radius: 18px; padding: 22px 24px 18px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(28,42,58,.10), inset 0 1px 0 #fff; border: 1px solid #efe8d8; }
.fb-paper.compact { padding: 16px 18px 14px; }
.fb-stripe { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(135deg, var(--fb-red) 0 14px, #fff 14px 20px, var(--fb-blue) 20px 34px, #fff 34px 40px); opacity: .85; }
.fb-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.fb-eyebrow { font-size: 10.5px; letter-spacing: .16em; font-weight: 650; color: var(--fb-muted); }
.fb-total { display: flex; align-items: baseline; gap: 8px; }
.fb-total b { font: italic 700 34px Georgia, "Songti SC", serif; color: var(--fb-blue); font-variant-numeric: tabular-nums; }
.fb-total small { font-size: 14px; letter-spacing: 2px; color: #d98b1a; }
.fb-rainbow { font: 500 clamp(20px, 3vw, 27px)/1.6 Georgia, "Songti SC", serif; margin: 10px 0 4px; letter-spacing: .2px; }
.fb-rainbow span { padding: 0 2px; border-radius: 6px; }
.fb-rainbow .fb-w-good { color: #1f8f57; } .fb-rainbow .fb-w-mid { color: #d98b1a; } .fb-rainbow .fb-w-bad { color: var(--fb-red); text-decoration: underline wavy var(--fb-red); }
.fb-rainbow .fb-w-miss { color: var(--fb-muted); text-decoration: underline dotted var(--fb-muted); }
.fb-heard { font-size: 13.5px; color: var(--fb-muted); margin: 2px 0 10px; font-family: Georgia, serif; } .fb-heard span { font-family: var(--sans); font-size: 12px; margin-right: 8px; }
.fb-stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 6px; }
.fb-stamp { position: relative; text-align: center; padding: 10px 6px 12px; background: #fff; border: 1px dashed #cfc6b2; border-radius: 6px; }
.fb-stamp::before { content: ''; position: absolute; inset: 4px; border: 1px solid #efe8d8; border-radius: 3px; pointer-events: none; }
.fb-stamp .v { display: block; font: 700 22px Georgia, serif; color: var(--fb-ink); font-variant-numeric: tabular-nums; }
.fb-stamp .n { display: block; font-size: 11.5px; color: var(--fb-muted); letter-spacing: .08em; margin-top: 2px; }
.fb-stamp i { display: block; height: 4px; margin: 8px 10px 0; background: #eee6d4; border-radius: 2px; overflow: hidden; }
.fb-stamp i::after { content: ''; display: block; width: var(--p); height: 100%; background: var(--fb-blue); border-radius: 2px; }
.fb-stamp.hi i::after { background: #1f8f57; } .fb-stamp.weak { border-color: var(--fb-red); } .fb-stamp.weak .v { color: var(--fb-red); } .fb-stamp.weak i::after { background: var(--fb-red); }
.fb-note { margin-top: 12px; padding: 12px 14px 10px; background: linear-gradient(#fffdf8, #fbf6ea); border-left: 3px solid var(--fb-blue); border-radius: 0 10px 10px 0; }
.fb-note-eyebrow { font-size: 10px; letter-spacing: .16em; color: var(--fb-muted); margin-bottom: 4px; }
.fb-hand { margin: 4px 0; font: 16px/1.6 "Kaiti SC", "STKaiti", "Bradley Hand", "Segoe Script", cursive; color: #2a3a4f; }
.fb-hand.fb-recast { color: var(--fb-blue); } .fb-hand.fb-challenge { color: #8a5a1a; }
.fb-ab { display: flex; gap: 8px; margin-top: 10px; }
.fb-ab-btn { border-radius: 999px; padding: 6px 14px; font-size: 13px; background: #fff; border: 1px solid #d9d2c2; }
.fb-ab-btn.me { border-color: var(--fb-blue); color: var(--fb-blue); }
.fb-engine { font-size: 11px; color: var(--fb-muted); margin-top: 8px; text-align: right; }
@media (max-width: 640px) { .fb-stamps { grid-template-columns: repeat(2, 1fr); } }

/* ── 环球信箱页 ──────────────────────────────────────────────────────── */
#ml-layer { position: fixed; inset: 0; z-index: 120; background: #eef1f6; display: flex; flex-direction: column; }
#ml-layer.hidden { display: none; }
.ml-top { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--card); }
.ml-top .title { font-weight: 700; flex: 1; }
.ml-body { flex: 1; overflow: auto; padding: 20px 16px 60px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ml-passport { width: min(760px, 100%); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.ml-passport .st { width: 34px; height: 34px; border-radius: 8px; border: 1px dashed #cfc6b2; display: grid; place-items: center; font-size: 18px; background: #fff; }
.ml-passport .st.got { border-style: solid; border-color: #2b5aa8; box-shadow: 0 2px 8px rgba(43,90,168,.18); }
.ml-envelope { width: min(760px, 100%); background: #fbf7ee; border-radius: 18px; padding: 18px 20px; box-shadow: 0 18px 40px rgba(28,42,58,.10); border: 1px solid #efe8d8; position: relative; overflow: hidden; }
.ml-envelope::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(135deg, #c8452b 0 14px, #fff 14px 20px, #2b5aa8 20px 34px, #fff 34px 40px); opacity: .85; }
.ml-from { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ml-from img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.ml-from .who { font-weight: 700; } .ml-from .ep { font-size: 12px; color: var(--ink-soft); letter-spacing: .08em; }
.ml-letter { font: 500 17px/1.7 Georgia, "Songti SC", serif; margin: 12px 0 8px; color: #1c2a3a; }
.ml-task { font-size: 14px; color: #2b5aa8; background: #eef3fb; border-radius: 10px; padding: 8px 12px; }
.ml-thread { width: min(760px, 100%); display: flex; flex-direction: column; gap: 10px; }
.ml-msg { display: flex; gap: 10px; align-items: flex-start; }
.ml-msg.child { flex-direction: row-reverse; }
.ml-msg .av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; display: grid; place-items: center; }
.ml-msg .bub { max-width: 78%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 14.5px; line-height: 1.6; }
.ml-msg.child .bub { background: #2f6bff; color: #fff; border-color: #2f6bff; }
.ml-msg.teacher .bub { background: #fffdf8; border-left: 3px solid #2b5aa8; font-family: "Kaiti SC", "STKaiti", cursive; }
.ml-msg .bub button { margin-top: 6px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
.ml-actions { width: min(760px, 100%); display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.ml-rec { width: 84px; height: 84px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #fff; font-size: 30px; box-shadow: 0 10px 28px rgba(47,107,255,.35); }
.ml-rec.on { background: linear-gradient(135deg, #ff7a59, #e74c3c); animation: shpulse 1s ease-in-out infinite; }
.ml-zh { border-radius: 999px; padding: 10px 16px; }
.ml-hint { width: min(760px, 100%); text-align: center; color: var(--ink-soft); font-size: 13.5px; min-height: 20px; }
.ml-done { width: min(760px, 100%); text-align: center; padding: 16px; }
.ml-done .stamp { font-size: 54px; animation: shpulse 1.2s ease-in-out 2; }
.ml-card { margin-top: 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ml-card b { display: block; margin-bottom: 4px; } .ml-card .en { font-family: Georgia, serif; color: #2b5aa8; margin-top: 4px; }

/* ── 世界之旅地图 ─────────────────────────────────────────── */
#wt-layer, #ec-layer, #pg-layer, #vd-layer { position: fixed; inset: 0; z-index: 120; background: #eef1f6; display: flex; flex-direction: column; }
#wt-layer.hidden, #ec-layer.hidden, #pg-layer.hidden, #vd-layer.hidden { display: none; }
.wt-body { flex: 1; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; padding: 16px; }
.wt-mapwrap { background: #dfe9f3; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(28,42,58,.12); border: 1px solid #cfdceb; }
#wt-svg { width: 100%; height: auto; display: block; }
#wt-svg .land { fill: #f4efe3; stroke: #d9cfb8; stroke-width: 2; }
#wt-svg .park { fill: #d8e8c9; stroke: #b9d1a3; }
#wt-svg .grid { stroke: #e6ddc9; stroke-width: 1; }
#wt-svg .road { stroke: #ffffff; stroke-width: 3; opacity: .9; }
#wt-svg .bridge { stroke: #b7a58a; stroke-width: 4; stroke-dasharray: 6 4; }
#wt-svg .label { font: 500 12px Georgia, serif; fill: #6b7684; letter-spacing: .08em; }
#wt-svg .title { font: italic 700 22px Georgia, serif; fill: #1c2a3a; }
#wt-svg .st-node { cursor: pointer; }
#wt-svg .st-node circle.ring { fill: #fff; stroke: #cfc6b2; stroke-width: 2; }
#wt-svg .st-node.lit circle.ring { stroke: #2b5aa8; stroke-width: 3; }
#wt-svg .st-node.current circle.ring { stroke: #c8452b; stroke-width: 3; animation: wtpulse 1.6s ease-in-out infinite; }
#wt-svg .st-node text.ico { font-size: 20px; text-anchor: middle; dominant-baseline: central; }
#wt-svg .st-node:not(.lit):not(.current) text.ico { opacity: .35; filter: grayscale(1); }
#wt-svg .st-node text.num { font: 700 11px Georgia, serif; fill: #fff; text-anchor: middle; dominant-baseline: central; }
#wt-svg .st-node .pin { fill: #2b5aa8; }
#wt-svg .st-node.current .pin { fill: #c8452b; }
#wt-svg .st-node .voice { font-size: 11px; }
#wt-svg .route { fill: none; stroke: #2b5aa8; stroke-width: 2; stroke-dasharray: 4 5; opacity: .5; }
@keyframes wtpulse { 0%,100% { r: 18; } 50% { r: 21; } }
.wt-side { background: #fbf7ee; border-radius: 18px; padding: 18px; border: 1px solid #efe8d8; box-shadow: 0 12px 30px rgba(28,42,58,.08); }
.wt-side h3 { margin: 0 0 6px; font: 700 20px Georgia, "Songti SC", serif; }
.wt-side .ep { font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); }
.wt-side .quote { font: 500 17px/1.6 Georgia, serif; color: #1c2a3a; margin: 12px 0; }
.wt-side audio { width: 100%; }
.wt-side .card { margin-top: 12px; background: #fff; border: 1px solid #efe8d8; border-radius: 12px; padding: 12px; font-size: 14px; line-height: 1.6; }
.wt-side .card .en { font-family: Georgia, serif; color: #2b5aa8; margin-top: 4px; }
@media (max-width: 800px) { .wt-body { grid-template-columns: 1fr; } }
/* ── 教鹦鹉 ─────────────────────────────────────────────── */
.ec-body { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 16px 60px; }
.ec-stage { display: flex; align-items: center; gap: 18px; width: min(640px, 100%); }
.ec-stage img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(43,90,168,.2); transition: transform .3s; }
.ec-stage img.talk { animation: ecbob .5s ease-in-out infinite alternate; }
@keyframes ecbob { from { transform: rotate(-4deg); } to { transform: rotate(4deg) translateY(-3px); } }
.ec-bubble { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 14px 16px; font: 500 18px/1.6 Georgia, "Songti SC", serif; min-height: 60px; }
.ec-note { width: min(640px, 100%); background: #fffdf8; border-left: 3px solid #2b5aa8; border-radius: 0 12px 12px 0; padding: 12px 14px; font: 15px/1.6 "Kaiti SC", "STKaiti", cursive; }

/* 角色分明：Tony=信纸气泡；你=蓝气泡；小问号=黄色便签「悄悄话」 */
.ml-msg.teacher { flex-direction: row; }
.ml-msg.teacher .bub { background: #fff8d6; border: 1px solid #f1e2a4; border-left: 4px solid #e2b93b; border-radius: 4px 14px 14px 14px; font-family: "Kaiti SC", "STKaiti", cursive; box-shadow: 2px 3px 8px rgba(120,90,0,.10); transform: rotate(-.6deg); }
.ml-msg.teacher .av { background: #fff; padding: 2px; }
.ml-msg .who { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 2px; font-family: var(--sans); }
.ml-msg.teacher .who { color: #8a6a10; font-weight: 600; }
.ml-msg.child.sending .bub { animation: mlfly .7s cubic-bezier(.3,.9,.4,1) forwards; }
@keyframes mlfly { 0% { transform: translate(0,0) scale(1); opacity: 1; } 60% { transform: translate(60px,-40px) rotate(-6deg) scale(.96); opacity: .9; } 100% { transform: translate(220px,-140px) rotate(-14deg) scale(.6); opacity: 0; } }
.ml-sent { align-self: flex-end; font-size: 13px; color: var(--ink-soft); animation: mlin .4s ease both; }
@keyframes mlin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ml-onboard { position: absolute; inset: 0; z-index: 5; background: rgba(28,42,58,.45); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ml-onboard.hidden { display: none; }
.ml-onboard-card { display: flex; gap: 18px; align-items: flex-start; width: min(640px, 100%); background: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.ml-onboard-card img { width: 72px; height: 72px; border-radius: 18px; animation: ecbob 1.2s ease-in-out infinite alternate; }
.ob-who { font-size: 12px; letter-spacing: .1em; color: var(--ink-soft); }
.ob-text { font-size: 16px; line-height: 1.7; margin: 6px 0 10px; }
.ob-roles { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #2b5aa8; margin-bottom: 12px; }
#ml-layer { position: fixed; }

/* ── 视觉点缀（OpenRouter 出图，三风格）：背景带极慢的推拉，像会呼吸的画 ── */
.en-teacher { position: relative; overflow: hidden; }
.en-teacher::before { content: ''; position: absolute; inset: 0; background: url('assets/english/ny-clay-skyline.jpg') center/cover; opacity: .28; animation: kb 30s ease-in-out infinite alternate; pointer-events: none; }
.en-teacher > * { position: relative; }
@keyframes kb { from { transform: scale(1) translateX(0); } to { transform: scale(1.12) translateX(-2%); } }
.en-tool.primary { background-image: linear-gradient(135deg, rgba(110,168,255,.92), rgba(47,107,255,.92)), url('assets/english/soundwave-art.jpg'); background-size: cover; }
#tool-mail { background-image: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.96)), url('assets/english/mailbox-clay.jpg'); background-size: cover; background-position: center; }
#tool-echo { background-image: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.96)), url('assets/english/echo-clay-hero.jpg'); background-size: cover; background-position: center 30%; }
#tool-map { background-image: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.96)), url('assets/english/poster-newyork.jpg'); background-size: cover; background-position: center; }
.ml-envelope { background-image: linear-gradient(180deg, rgba(251,247,238,.94), rgba(251,247,238,.98)), var(--ml-art, none); background-size: cover; background-position: center; }
.ml-envelope[data-type="lostfound"] { --ml-art: url('assets/english/lostfound-office.jpg'); }
.ml-envelope[data-type="weather"] { --ml-art: url('assets/english/weather-station.jpg'); }
.ml-envelope[data-type="gap"] { --ml-art: url('assets/english/subway-signal.jpg'); }
.ml-envelope[data-type="riddle"], .ml-envelope[data-type="relay"], .ml-envelope[data-type="reply"] { --ml-art: url('assets/english/ny-clay-skyline.jpg'); }
.wt-mapwrap { background-image: linear-gradient(180deg, rgba(223,233,243,.55), rgba(223,233,243,.75)), url('assets/english/map-paper.jpg'); background-size: cover; }
.ec-stage img { background: #eef6f0; }
.ml-onboard-card { background-image: linear-gradient(90deg, #fff 55%, rgba(255,255,255,.9)), url('assets/english/passport-clay.jpg'); background-size: cover; background-position: right center; }
@media (prefers-reduced-motion: reduce) { .en-teacher::before { animation: none; } }

/* ── 拆信动效（3A 感：3D 信封、火漆印上是笔友、翻盖、金粒子、信纸滑出） ── */
.ml-open { position: relative; width: min(760px, 100%); height: 360px; padding-top: 40px; overflow: hidden; display: grid; place-items: center; cursor: pointer; perspective: 1200px; }
.ml-open.hidden { display: none; }
.ml-env3d { position: relative; width: 340px; height: 220px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); animation: envin .8s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes envin { from { transform: translateY(60px) rotateX(35deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.ml-env-back, .ml-env-front, .ml-env-flap, .ml-env-letter { position: absolute; left: 0; right: 0; }
.ml-env-back { top: 0; bottom: 0; background: linear-gradient(180deg, #f3ead6, #e8dcc2); border-radius: 10px; box-shadow: 0 30px 60px rgba(28,42,58,.25), inset 0 0 0 1px #e2d6bb; }
.ml-env-letter { top: 14px; bottom: 14px; left: 18px; right: 18px; background: #fffdf7; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(0); transition: transform .9s cubic-bezier(.2,.8,.2,1) .35s; overflow: hidden; padding: 14px; font: 500 12px/1.5 Georgia, serif; color: #1c2a3a; }
.ml-env-letter::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(135deg, #c8452b 0 10px, #fff 10px 14px, #2b5aa8 14px 24px, #fff 24px 28px); }
.ml-env-front { top: 0; bottom: 0; background: linear-gradient(160deg, #f9f2e2 0%, #efe4cd 100%); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); border-radius: 10px; box-shadow: inset 0 0 0 1px #e2d6bb; }
.ml-env-lines { position: absolute; left: 34px; bottom: 34px; display: flex; flex-direction: column; gap: 8px; }
.ml-env-lines span { display: block; width: 120px; height: 6px; border-radius: 3px; background: #d9cfb8; } .ml-env-lines span:nth-child(2) { width: 160px; } .ml-env-lines span:nth-child(3) { width: 90px; }
.ml-env-flap { top: 0; height: 52%; background: linear-gradient(180deg, #f6edd8, #e6d9bf); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top center; transform: rotateX(0deg); transition: transform .7s cubic-bezier(.3,.8,.3,1); backface-visibility: hidden; border-radius: 10px 10px 0 0; box-shadow: 0 6px 12px rgba(0,0,0,.08); }
.ml-env-seal { position: absolute; left: 50%; top: 52%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6664a, #b23a22 70%, #8f2b18); box-shadow: 0 6px 14px rgba(120,40,20,.4), inset 0 2px 4px rgba(255,255,255,.35); display: grid; place-items: center; transition: transform .5s, opacity .5s; z-index: 3; }
.ml-env-seal img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #f3d3c5; }
.ml-open.opening .ml-env3d { transform: rotateX(8deg) translateY(-10px); }
.ml-open.opening .ml-env-flap { transform: rotateX(-175deg); }
.ml-open.opening .ml-env-seal { transform: scale(1.3) rotate(-12deg); opacity: 0; }
.ml-open.opening .ml-env-letter { transform: translateY(-120px); }
.ml-sparkle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ml-open-hint { position: absolute; bottom: 6px; font-size: 13.5px; color: var(--ink-soft); animation: mlin .6s ease both .5s; }
/* 首屏改为三个世界后，工具格退为一行小入口；老师元信息压成一行 */
.en-grid-mini { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; } .en-grid-mini .en-tool { padding: 6px 12px; font-size: 13px; border-radius: 999px; min-height: 0; flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; } .en-grid-mini .badge { position: static; margin-left: 4px; }
.en-meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 4px 4px; font-size: 13px; color: var(--muted, #6b7684); } .t-say-line { flex-basis: 100%; color: inherit; }
/* 拍页取景器 */
.sh-album { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--accent); text-decoration: underline; cursor: pointer; }
.sh-cam { position: fixed; inset: 0; z-index: 60; background: #0b0f16; display: flex; flex-direction: column; }
.sh-cam-frame { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.sh-cam-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.sh-cam-guide { position: absolute; inset: 8% 10%; border: 2px dashed rgba(255,255,255,.55); border-radius: 12px; pointer-events: none; }
.sh-cam-tip { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.sh-cam-bar { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: #141a24; }
.sh-cam-bar select { max-width: 220px; font-size: 12px; background: #1f2732; color: #fff; border: 1px solid #333; border-radius: 8px; padding: 6px 8px; }
.sh-cam-bar .ghost { color: #fff; border-color: #3a4452; background: transparent; }
.sh-cam-shot { width: 66px; height: 66px; border-radius: 50%; background: #fff; border: 5px solid #cfd6e0; box-shadow: 0 0 0 3px #141a24 inset; cursor: pointer; padding: 0; } .sh-cam-shot:active { transform: scale(.92); }
.sh-cam-album { cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1px solid #3a4452; font-size: 14px; }
/* 逐句成绩单 + 整段作品舞台 */
.sh-sheet { text-align: left; margin-top: 16px; }
.sh-sheet-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.sh-sheet-page { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: #f2f2ee; margin-bottom: 10px; }
.sh-lines { display: flex; flex-direction: column; gap: 6px; }
.sh-line { display: grid; grid-template-columns: 26px 1fr auto auto auto; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.sh-line .no { width: 24px; height: 24px; border-radius: 50%; background: #eef2f8; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.sh-line .tx { font-family: Georgia, "Songti SC", serif; font-size: 15px; line-height: 1.4; }
.sh-line .sc { font-weight: 700; font-size: 13px; white-space: nowrap; } .sh-line.todo .sc { color: var(--ink-soft); font-weight: 500; } .sh-line.gold .no { background: #ffe08a; }
.sh-line .mini { padding: 4px 10px; font-size: 12px; border-radius: 999px; }
.sh-album { margin-top: 14px; }
.sh-album-cta { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #1c2a3a, #2b3d55); color: #fff; border-radius: 16px; padding: 14px 16px; } .sh-album-cta .en-muted { color: #cbd5e3; font-size: 13px; margin-top: 4px; } .sh-album-cta .primary { flex: 0 0 auto; }
.sh-stage { background: radial-gradient(ellipse at 50% 0%, #3a2a5a, #14101f 70%); color: #fff; border-radius: 18px; padding: 14px 16px 16px; }
.sh-stage-head { display: flex; align-items: center; gap: 10px; } .sh-stage-head .lamp { width: 10px; height: 10px; border-radius: 50%; background: #ffd37a; box-shadow: 0 0 14px 4px rgba(255,211,122,.6); } .sh-stage-head .en-muted { color: #cbbfd6; margin-left: auto; }
.sh-stage-lines { margin: 12px 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.sh-stage-lines .sl { font-family: Georgia, "Songti SC", serif; font-size: 15px; line-height: 1.45; padding: 6px 10px; border-radius: 10px; opacity: .6; cursor: pointer; transition: all .2s; } .sh-stage-lines .sl.host { font-style: italic; font-size: 13px; color: #ffd37a; } .sh-stage-lines .sl.on { opacity: 1; background: rgba(255,255,255,.12); transform: translateX(4px); }
.sh-stage-bar { display: flex; gap: 10px; flex-wrap: wrap; } .sh-stage-bar .ghost { color: #fff; border-color: #5a4e70; background: transparent; }
.sh-share-out { margin-top: 14px; text-align: center; background: rgba(255,255,255,.08); border-radius: 14px; padding: 12px; } .sh-share-out .en-muted { color: #e6def0; }
/* 分享台 */
.ess { margin-top: 14px; background: rgba(255,255,255,.08); border-radius: 16px; padding: 14px; text-align: left; color: #fff; }
.ess-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .ess .en-muted { color: #d9d0e6; }
.ess-styles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .ess-styles button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13px; border: 1.5px solid transparent; } .ess-styles button i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px rgba(255,255,255,.35) inset; } .ess-styles button.on { border-color: #ffd37a; background: rgba(255,211,122,.18); }
.ess-poster { position: relative; text-align: center; } .ess-poster img { width: 100%; max-width: 360px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); min-height: 200px; background: rgba(0,0,0,.2); } .ess-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.6); padding: 8px 14px; border-radius: 999px; font-size: 13px; }
.ess-line { margin-top: 12px; background: rgba(0,0,0,.25); border-radius: 12px; padding: 10px 12px; } .ess-line-tag { font: 600 11px "IBM Plex Mono", monospace; letter-spacing: .14em; color: #ffd37a; } .ess-line-text { font: 15px/1.6 "Kaiti SC", "STKaiti", serif; margin: 4px 0 8px; } .ess-line-ops { display: flex; gap: 8px; } .ess-line-ops .mini { padding: 4px 10px; font-size: 12px; color: #fff; border-color: #5a4e70; background: transparent; }
.ess-ops { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; } .ess-ops .ghost { color: #fff; border: 1px solid #5a4e70; background: transparent; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; }
.ess-note { margin-top: 10px; font-size: 12.5px; }
.ess-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; } .ess-list.hidden { display: none; } .ess-item { background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 10px; font: 14px/1.5 "Kaiti SC", "STKaiti", serif; cursor: pointer; } .ess-item .tag { display: inline-block; font: 600 11px "IBM Plex Mono", monospace; color: #ffd37a; margin-right: 8px; } .ess-item:hover { background: rgba(255,255,255,.16); }
/* ── Echo 养成（9/7）：等级环 / 精神值 / 姿态舞台 / 情绪动作 / 打分条 */
.ec-hud { width: min(640px, 100%); display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; }
.ec-ring { position: relative; width: 66px; height: 66px; border-radius: 50%; background: conic-gradient(#ffb347 var(--p, 0%), #e8eef5 0); display: grid; place-items: center; } .ec-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; } .ec-ring b { position: relative; font: 800 15px/1 Georgia, serif; } .ec-ring b small { display: block; font: 600 9px "IBM Plex Mono", monospace; letter-spacing: .1em; color: var(--ink-soft); margin-top: 3px; text-align: center; }
.ec-hud .t { font-weight: 700; font-size: 15px; } .ec-hud .t span { font-weight: 500; color: var(--ink-soft); font-size: 12.5px; margin-left: 6px; }
.ec-hp { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); } .ec-hp .bar { flex: 1; height: 8px; border-radius: 999px; background: #eef2f8; overflow: hidden; } .ec-hp .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff7a59, #ffb347); transition: width .6s; } .ec-hp.low .bar i { background: linear-gradient(90deg, #9aa4ad, #cbd5e3); }
.ec-hud .nx { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.ec-scene { position: relative; flex: none; width: min(640px, 100%); height: 300px; border-radius: 22px; overflow: hidden; background: radial-gradient(ellipse at 50% 15%, #fff5d6 0%, #cfe9ff 55%, #b9d7f5 100%); box-shadow: inset 0 -40px 60px rgba(28,42,58,.08); }
.ec-scene::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 22px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse, rgba(28,42,58,.25), transparent 70%); }
#ec-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.ec-pose { position: absolute; left: 50%; bottom: 26px; height: 210px; transform: translateX(-50%); transform-origin: 50% 100%; z-index: 2; filter: drop-shadow(0 16px 14px rgba(28,42,58,.25)); transition: opacity .25s; }
.ec-scene[data-form="egg"] .ec-pose, .ec-scene[data-form="crack"] .ec-pose { height: 170px; } .ec-scene[data-form="chick"] .ec-pose { height: 150px; }
.ec-say { position: absolute; left: 14px; top: 14px; max-width: 62%; background: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 14px; box-shadow: 0 10px 24px rgba(28,42,58,.14); z-index: 4; animation: ecpop .3s ease-out; } .ec-say b { display: block; font: 600 16px/1.45 Georgia, "Songti SC", serif; } .ec-say small { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 3px; }
@keyframes ecpop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.ec-ask { width: min(640px, 100%); background: #fff8e6; border: 1px dashed #f0c060; border-radius: 12px; padding: 8px 12px; font-size: 14px; } .ec-ask.hidden { display: none; }
.ec-score { width: min(420px, 100%); display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; } .ec-score.hidden { display: none; } .ec-score .bar { height: 10px; border-radius: 999px; background: #eef2f8; overflow: hidden; } .ec-score .bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ffb347, #35d07f); transition: width .8s cubic-bezier(.2,.9,.2,1); } .ec-score.fail .bar i { background: linear-gradient(90deg, #ffb347, #ff7a59); } .ec-score .num { font: 800 20px Georgia, serif; } .ec-score .verdict { font-size: 13px; font-weight: 700; }
/* 情绪动作 */
.ec-pose.m-happy { animation: ec-bounce 1.2s ease-in-out infinite; } .ec-pose.m-excited { animation: ec-jump .7s cubic-bezier(.3,1.4,.5,1) infinite; } .ec-pose.m-curious { animation: ec-tilt 2.2s ease-in-out infinite; } .ec-pose.m-confused { animation: ec-wobble 1.4s ease-in-out infinite; } .ec-pose.m-funny { animation: ec-shake .5s ease-in-out infinite; } .ec-pose.m-sleepy { animation: ec-sway 3.2s ease-in-out infinite; } .ec-pose.m-sad { animation: ec-droop 2.6s ease-in-out infinite; } .ec-pose.m-proud { animation: ec-puff 1.8s ease-in-out infinite; } .ec-pose.m-shy { animation: ec-shrink 2s ease-in-out infinite; } .ec-pose.m-hungry { animation: ec-sway 2.4s ease-in-out infinite; } .ec-pose.m-grateful { animation: ec-bow 2.2s ease-in-out 1; } .ec-pose.m-calm { animation: ec-breathe 3.6s ease-in-out infinite; } .ec-pose.m-serious { animation: ec-breathe 4s ease-in-out infinite; } .ec-pose.m-talk { animation: ec-talk .35s ease-in-out infinite alternate; }
@keyframes ec-bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
@keyframes ec-jump { 0%,100% { transform: translateX(-50%) translateY(0) scaleY(1); } 30% { transform: translateX(-50%) translateY(-34px) scaleY(1.05); } 60% { transform: translateX(-50%) translateY(0) scaleY(.92); } }
@keyframes ec-tilt { 0%,100% { transform: translateX(-50%) rotate(-6deg); } 50% { transform: translateX(-50%) rotate(8deg); } }
@keyframes ec-wobble { 0%,100% { transform: translateX(-50%) rotate(0); } 25% { transform: translateX(-52%) rotate(-7deg); } 75% { transform: translateX(-48%) rotate(7deg); } }
@keyframes ec-shake { 0%,100% { transform: translateX(-50%); } 50% { transform: translateX(-46%) rotate(3deg); } }
@keyframes ec-sway { 0%,100% { transform: translateX(-50%) rotate(-3deg); } 50% { transform: translateX(-50%) rotate(3deg) translateY(3px); } }
@keyframes ec-droop { 0%,100% { transform: translateX(-50%) translateY(0) scaleY(1); } 50% { transform: translateX(-50%) translateY(6px) scaleY(.96); } }
@keyframes ec-puff { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.06); } }
@keyframes ec-shrink { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(.94); } }
@keyframes ec-bow { 0%,100% { transform: translateX(-50%) rotate(0); } 50% { transform: translateX(-50%) rotate(12deg) translateY(8px); } }
@keyframes ec-breathe { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.03); } }
@keyframes ec-talk { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(-4px) rotate(1.5deg); } }
.ec-pose.swap { animation: ec-swap .35s ease-out; } @keyframes ec-swap { from { transform: translateX(-50%) scale(.7); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.ec-levelup { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,211,122,.55), rgba(255,255,255,0) 70%); animation: eclv 2.4s ease-out both; pointer-events: none; } .ec-levelup b { font: 900 34px Georgia, serif; color: #d0452b; text-shadow: 0 4px 0 #fff, 0 10px 30px rgba(208,69,43,.35); animation: eclvtext 2.4s ease-out both; } .ec-levelup small { display: block; text-align: center; font-size: 15px; font-weight: 700; color: #1c2a3a; }
@keyframes eclv { 0% { opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } } @keyframes eclvtext { 0% { transform: scale(.4); } 30% { transform: scale(1.2); } 45% { transform: scale(1); } 100% { transform: scale(1); } }
/* ── Echo 的小屋 */
.ec-tools { width: min(640px, 100%); display: flex; justify-content: flex-end; } .ec-tools .ghost { font-size: 13px; }
.ec-house { width: min(640px, 100%); background: linear-gradient(180deg, #fff8ea, #fff); border: 1px solid #f0dcb0; border-radius: 18px; padding: 12px 14px 14px; box-shadow: 0 14px 34px rgba(120,80,20,.12); } .ec-house.hidden { display: none; }
.ec-house-head { display: flex; align-items: center; gap: 10px; } .ec-house-head .en-muted { flex: 1; font-size: 12.5px; } .ec-house-head .mini { padding: 4px 10px; font-size: 12px; }
.ec-house-tabs { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; } .ec-house-tabs button { all: unset; cursor: pointer; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: #f4ead6; } .ec-house-tabs button.on { background: #1c2a3a; color: #fff; } .ec-house-tabs button.lock { opacity: .6; }
.ec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ec-cell { position: relative; aspect-ratio: 1; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #fff, #f3ecdc); border: 1px solid #ecdfc4; display: grid; place-items: center; cursor: pointer; overflow: hidden; transition: transform .15s; } .ec-cell:hover { transform: translateY(-2px); }
.ec-cell img { width: 78%; height: 78%; object-fit: contain; }
.ec-cell.locked img { filter: brightness(0) opacity(.28); } .ec-cell.locked::after { content: '?'; position: absolute; right: 6px; bottom: 2px; font: 800 18px Georgia, serif; color: #b98a3c; }
.ec-cell.featured { border-color: #ffb347; box-shadow: 0 0 0 3px rgba(255,179,71,.35), 0 8px 20px rgba(255,179,71,.3); } .ec-cell.featured img { filter: none; } .ec-cell.featured::after { content: '想要'; font: 700 11px sans-serif; color: #fff; background: #ff7a59; border-radius: 999px; padding: 2px 7px; right: 5px; top: 5px; bottom: auto; }
.ec-cell.got::after { content: '✓'; position: absolute; right: 6px; top: 4px; font: 800 14px sans-serif; color: #35d07f; } .ec-cell.used img { opacity: .35; }
.ec-item { margin-top: 12px; display: grid; grid-template-columns: 120px 1fr; gap: 14px; background: #fff; border: 1px solid #ecdfc4; border-radius: 16px; padding: 12px; } .ec-item.hidden { display: none; }
.ec-item .pic { width: 120px; height: 120px; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #fff, #f3ecdc); display: grid; place-items: center; } .ec-item .pic img { width: 86%; height: 86%; object-fit: contain; } .ec-item.locked .pic img { filter: blur(6px) brightness(.5) opacity(.7); }
.ec-item .nm { font-weight: 800; font-size: 16px; } .ec-item .rd { margin: 6px 0; font: 500 15px/1.5 Georgia, "Songti SC", serif; color: #1c2a3a; background: #fff8ea; border-left: 3px solid #ffb347; padding: 6px 10px; border-radius: 0 10px 10px 0; }
.ec-item .ops { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .ec-item .ops button { font-size: 13px; padding: 7px 12px; } .ec-item .fb { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.ec-item .ans { font: 600 14px Georgia, serif; color: #2b5aa8; margin-top: 4px; }
.ec-wear { position: absolute; inset: 0; z-index: 2; pointer-events: none; } .ec-wear img { position: absolute; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(28,42,58,.3)); animation: ec-bounce 1.2s ease-in-out infinite; }
.ec-fly { position: fixed; z-index: 99; width: 90px; height: 90px; object-fit: contain; transition: all .9s cubic-bezier(.2,.9,.2,1); pointer-events: none; }
.ec-demo { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: rgba(28,42,58,.86); color: #fff; padding: 10px 14px; font-size: 14px; line-height: 1.5; } .ec-demo b { color: #ffd37a; }
@media (max-width: 480px) { .ec-item { grid-template-columns: 90px 1fr; } .ec-item .pic { width: 90px; height: 90px; } }
/* ── 世界之旅 v2 */
.ml-top .mini { margin-left: auto; padding: 5px 12px; font-size: 12.5px; }
#wt-svg .st-node.open circle.ring { stroke: #ffb347; stroke-width: 3; } #wt-svg .st-node.open text.ico { opacity: 1; filter: none; }
#wt-svg .st-node.gold circle.ring { stroke: #d4a017; stroke-width: 4; fill: #fff6d6; }
#wt-svg .st-node.locked { cursor: default; } #wt-svg .st-node.locked text.ico { opacity: .25; filter: grayscale(1); }
#wt-svg .st-node .dots { font-size: 9px; } 
.wt-mapwrap { position: relative; }
.wt-buddy { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; } .wt-buddy img { width: 64px; filter: drop-shadow(0 8px 8px rgba(28,42,58,.3)); animation: ec-bounce 2.4s ease-in-out infinite; transform-origin: bottom; } .wt-buddy span { background: #fff; border-radius: 12px 12px 12px 3px; padding: 6px 10px; font-size: 12.5px; max-width: 220px; box-shadow: 0 6px 16px rgba(28,42,58,.15); } .wt-buddy span:empty { display: none; }
.wt-side .feat { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid #efe8d8; border-radius: 14px; padding: 10px; margin: 10px 0; } .wt-side .feat .pic { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: #eef2f8; display: grid; place-items: center; font-size: 36px; } .wt-side .feat b { font: 700 16px Georgia, serif; } .wt-side .feat .say { font: italic 14px/1.5 Georgia, serif; color: #2b5aa8; margin-top: 4px; } .wt-side .feat .zh { font-size: 12.5px; color: var(--ink-soft); }
.wt-tasks { display: grid; gap: 8px; margin-top: 10px; }
.wt-task { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid #efe8d8; border-radius: 12px; padding: 10px 12px; cursor: pointer; } .wt-task:hover { border-color: #2b5aa8; } .wt-task .ic { font-size: 20px; } .wt-task b { font-size: 14px; } .wt-task small { display: block; color: var(--ink-soft); font-size: 12px; } .wt-task.done { background: #f2fbf5; border-color: #bfe8cc; } .wt-task .st { font-size: 12px; font-weight: 700; color: #35d07f; } .wt-task.locked { opacity: .55; cursor: default; }
.wt-task-body { margin-top: 10px; background: #fff; border: 1px solid #efe8d8; border-radius: 14px; padding: 12px; }
.wt-chat { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; } .wt-chat .m { max-width: 88%; padding: 8px 12px; border-radius: 14px; font: 500 14px/1.5 Georgia, serif; } .wt-chat .m.npc { align-self: flex-start; background: #fff3d6; border-bottom-left-radius: 3px; } .wt-chat .m.me { align-self: flex-end; background: #e6efff; border-bottom-right-radius: 3px; } .wt-chat .m.sys { align-self: center; font: 12.5px -apple-system, sans-serif; color: var(--ink-soft); background: transparent; }
.wt-chat .m small { display: block; font: 12px -apple-system, sans-serif; color: var(--ink-soft); margin-top: 2px; }
.wt-rec-row { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 10px; flex-wrap: wrap; } .wt-rec-row .hint { width: 100%; text-align: center; font-size: 12.5px; color: var(--ink-soft); }
.wt-radio { text-align: center; } .wt-radio .on-air { display: inline-block; font: 700 11px "IBM Plex Mono", monospace; letter-spacing: .2em; color: #fff; background: #c8452b; border-radius: 999px; padding: 4px 10px; } .wt-radio audio { width: 100%; margin: 10px 0; } .wt-radio .ask { font: italic 15px Georgia, serif; color: #1c2a3a; margin: 6px 0; } .wt-radio .zh { font-size: 12.5px; color: var(--ink-soft); }
.wt-score { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 8px; font-size: 13px; } .wt-score b { font-size: 18px; }
/* 卡片 */
.wt-album { position: absolute; inset: 0; z-index: 130; background: rgba(14,10,20,.86); overflow: auto; padding: 20px; } .wt-album.hidden { display: none; } .wt-album-in { max-width: 900px; margin: 0 auto; background: #1c1626; color: #fff; border-radius: 22px; padding: 16px 18px 22px; }
.wt-album-head { display: flex; align-items: center; gap: 12px; } .wt-album-head .en-muted { flex: 1; color: #cbbfd6; font-size: 13px; } .wt-album-head .mini { color: #fff; border-color: #5a4e70; background: transparent; }
.wt-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; margin: 10px 0 14px; } .wt-legend span { padding: 2px 8px; border-radius: 999px; } .wt-legend .en-muted { color: #cbbfd6; }
.r-common { background: #e9edf3; color: #1c2a3a; } .r-rare { background: linear-gradient(135deg, #7ad1ff, #2b5aa8); color: #fff; } .r-epic { background: linear-gradient(135deg, #c89bff, #6a3e78); color: #fff; } .r-legendary { background: linear-gradient(135deg, #ffe08a, #ff7a59); color: #2b0812; }
.wt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.wt-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; background: #2a2233; border: 2px solid #3a3148; cursor: pointer; transition: transform .2s; } .wt-card:hover { transform: translateY(-4px); }
.wt-card img { width: 100%; height: 66%; object-fit: cover; display: block; } .wt-card .nm { padding: 6px 8px; font: 700 13px/1.3 Georgia, serif; } .wt-card .nm small { display: block; font: 500 11px -apple-system, sans-serif; color: #cbbfd6; }
.wt-card .tag { position: absolute; left: 6px; top: 6px; font-size: 10px; padding: 2px 7px; border-radius: 999px; }
.wt-card.rare { border-color: #7ad1ff; } .wt-card.epic { border-color: #c89bff; box-shadow: 0 0 18px rgba(200,155,255,.35); } .wt-card.legendary { border-color: #ffe08a; box-shadow: 0 0 26px rgba(255,224,138,.5); animation: wt-leg 3s ease-in-out infinite; } @keyframes wt-leg { 0%,100% { box-shadow: 0 0 18px rgba(255,224,138,.4); } 50% { box-shadow: 0 0 34px rgba(255,224,138,.8); } }
.wt-card.foil::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); background-size: 250% 100%; animation: wt-foil 3s linear infinite; pointer-events: none; } @keyframes wt-foil { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.wt-card.foil .tag::after { content: ' · 金箔'; }
.wt-card.unowned img { filter: brightness(.15) saturate(0); } .wt-card.unowned .nm { color: #7a7090; } .wt-card.unowned .q { position: absolute; left: 50%; top: 33%; transform: translate(-50%,-50%); font: 800 34px Georgia, serif; color: #b98a3c; }
.wt-card.others { opacity: .45; } .wt-card.others .q { content: '🔒'; }
.wt-card .mine { position: absolute; right: 6px; top: 6px; font-size: 10px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.15); }
.wt-title-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; } .wt-title-row .t { font: 800 16px Georgia, serif; color: #ffd37a; } .wt-title-row .bar { flex: 1; min-width: 120px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; } .wt-title-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd37a, #ff7a59); }
/* 抽卡揭示 */
.wt-reveal { position: absolute; inset: 0; z-index: 140; background: radial-gradient(circle at 50% 40%, rgba(60,40,90,.95), rgba(10,8,16,.97)); display: grid; place-items: center; color: #fff; } .wt-reveal.hidden { display: none; }
.wt-reveal .box { text-align: center; perspective: 1200px; } .wt-reveal .flip { width: 220px; height: 300px; margin: 0 auto; position: relative; transform-style: preserve-3d; animation: wt-flip 1.6s cubic-bezier(.3,.9,.3,1) both; } @keyframes wt-flip { 0% { transform: rotateY(180deg) scale(.6); } 60% { transform: rotateY(180deg) scale(1.05); } 100% { transform: rotateY(0) scale(1); } }
.wt-reveal .face { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; overflow: hidden; border: 3px solid #b98a3c; } .wt-reveal .back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #2a1f4d 0 10px, #3a2a5a 10px 20px); display: grid; place-items: center; font-size: 56px; }
.wt-reveal .front { background: #1c1626; } .wt-reveal .front img { width: 100%; height: 66%; object-fit: cover; } .wt-reveal .front .nm { padding: 8px; font: 700 16px Georgia, serif; } .wt-reveal .front .nm small { display: block; font: 12px -apple-system, sans-serif; color: #cbbfd6; }
.wt-reveal .front.rare { border-color: #7ad1ff; } .wt-reveal .front.epic { border-color: #c89bff; box-shadow: 0 0 40px rgba(200,155,255,.6); } .wt-reveal .front.legendary { border-color: #ffe08a; box-shadow: 0 0 60px rgba(255,224,138,.8); }
.wt-reveal h2 { margin: 16px 0 4px; font: 800 24px Georgia, serif; } .wt-reveal p { margin: 0 0 14px; color: #cbbfd6; font-size: 14px; max-width: 320px; }
.wt-reveal .say { font: italic 15px Georgia, serif; color: #ffd37a; margin-bottom: 14px; }
/* 进城 */
.wt-arrive { position: absolute; inset: 0; z-index: 135; background: #1b1626; display: grid; place-items: center; color: #fbf3e2; animation: wt-arrive 4.2s ease-in-out both; pointer-events: none; } .wt-arrive.hidden { display: none; }
.wt-arrive .win { width: min(560px, 92%); aspect-ratio: 16/9; border-radius: 0 0 200px 200px / 0 0 80px 80px; overflow: hidden; box-shadow: inset 0 0 0 12px #2a2233, inset 0 0 0 17px #b98a3c; position: relative; } .wt-arrive .win img { width: 100%; height: 100%; object-fit: cover; animation: wt-zoom 4.2s ease-out both; } @keyframes wt-zoom { from { transform: scale(1.25) translateY(6%); } to { transform: scale(1) translateY(0); } }
.wt-arrive .cap { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; } .wt-arrive .cap .eyebrow { font: 600 11px "IBM Plex Mono", monospace; letter-spacing: .28em; color: #ffd37a; } .wt-arrive .cap h2 { margin: 6px 0 0; font: 700 32px Georgia, "Songti SC", serif; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
@keyframes wt-arrive { 0% { opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
.wt-city { all: unset; cursor: pointer; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.35); margin-left: 6px; } .wt-city.on { background: #1c2a3a; color: #fff; }
#wt-svg .river { fill: #bcd3ea; stroke: #9fbedb; stroke-width: 2; }
.wt-mapwrap { align-self: start; } .wt-mapwrap[data-city="london"] { background-image: linear-gradient(180deg, #eef1f6, #e4e9f0); }
/* ── 世界之旅顶栏：护照条 + 卡册按钮（高级感：金线、皮面、玻璃） */
#wt-layer .ml-top { gap: 14px; }
.wt-hud { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wt-hud .tile { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px rgba(60,30,10,.18); }
.wt-hud .lb { display: flex; flex-direction: column; line-height: 1.1; font-size: 13px; font-weight: 700; } .wt-hud .lb small { font: 600 9px "IBM Plex Mono", monospace; letter-spacing: .18em; opacity: .8; }
.wt-hud .ring { position: relative; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(#ffd37a var(--p, 0%), rgba(255,255,255,.18) 0); display: grid; place-items: center; } .wt-hud .ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #9c6a3f; } .wt-hud .ring b { position: relative; font: 800 12px Georgia, serif; color: #fff; }
.wt-hud .coin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: rgba(255,255,255,.5); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(255,255,255,.08) 70%); border: 1px solid rgba(255,255,255,.35); } .wt-hud .coin.on { color: #7a4a00; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd37a 55%, #d4a017); border-color: #ffe9a8; box-shadow: 0 0 12px rgba(255,211,122,.7); }
.wt-hud .fan { position: relative; width: 30px; height: 26px; } .wt-hud .fan i { position: absolute; left: 8px; top: 2px; width: 14px; height: 20px; border-radius: 3px; background: linear-gradient(160deg, #fff, #ffe9c2); border: 1px solid rgba(120,80,20,.35); transform-origin: 50% 100%; } .wt-hud .fan i:nth-child(1) { transform: rotate(-18deg); } .wt-hud .fan i:nth-child(2) { transform: rotate(0); background: linear-gradient(160deg, #ffe08a, #ffb347); } .wt-hud .fan i:nth-child(3) { transform: rotate(18deg); }
.wt-hud .tile.next { background: linear-gradient(135deg, #ffd37a, #ff7a59); color: #2b0812; font-weight: 800; border: 0; animation: wt-glow 2s ease-in-out infinite; } @keyframes wt-glow { 0%,100% { box-shadow: 0 0 0 rgba(255,211,122,0); } 50% { box-shadow: 0 0 18px rgba(255,211,122,.8); } }
#wt-album-btn { all: unset; cursor: pointer; margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 14px; background: linear-gradient(160deg, #3b2412, #1e1108); color: #ffe9b8; border: 1px solid #b98a3c; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(185,138,60,.35), 0 8px 20px rgba(30,17,8,.45); position: relative; overflow: hidden; transition: transform .15s; } #wt-album-btn:hover { transform: translateY(-1px); }
#wt-album-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,233,184,.18) 50%, transparent 65%); background-size: 250% 100%; animation: wt-foil 4s linear infinite; pointer-events: none; }
#wt-album-btn .ab-ico { position: relative; width: 34px; height: 30px; } #wt-album-btn .ab-ico i { position: absolute; left: 10px; top: 3px; width: 16px; height: 22px; border-radius: 3px; border: 1px solid #ffd37a; background: linear-gradient(160deg, #7a4a00, #3b2412); transform-origin: 50% 100%; } #wt-album-btn .ab-ico i:nth-child(1) { transform: rotate(-20deg); } #wt-album-btn .ab-ico i:nth-child(2) { background: linear-gradient(160deg, #ffd37a, #b98a3c); } #wt-album-btn .ab-ico i:nth-child(3) { transform: rotate(20deg); }
#wt-album-btn .ab-t { display: flex; flex-direction: column; line-height: 1.15; font: 800 14px Georgia, "Songti SC", serif; letter-spacing: .04em; } #wt-album-btn .ab-t small { font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .12em; color: #d4a017; }
.wt-city { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); font-weight: 700; } .wt-city.on { background: #fff; color: #7a4a00; border-color: #fff; }
@media (max-width: 760px) { .wt-hud .lb { display: none; } .wt-hud .tile { padding: 4px 6px; } #wt-album-btn .ab-t small { display: none; } }
/* ── 分段周榜五种格调 */
.lb-section { padding: 0 !important; overflow: hidden; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.lb-wrap { border-radius: 22px; overflow: hidden; box-shadow: 0 18px 44px rgba(28,42,58,.16); }
.lb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 14px 16px 10px; flex-wrap: wrap; } .lb-head .eyebrow { font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .24em; opacity: .75; } .lb-head .ttl { font: 800 18px Georgia, "Songti SC", serif; } .lb-head .ttl small { font: 500 12px -apple-system, sans-serif; opacity: .7; margin-left: 6px; }
.lb-switch { display: flex; gap: 5px; flex-wrap: wrap; } .lb-switch button { all: unset; cursor: pointer; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(127,127,127,.18); opacity: .8; } .lb-switch button.on { opacity: 1; background: rgba(255,255,255,.9); color: #1c2a3a; font-weight: 700; }
.lb-mine { padding: 10px 16px 14px; font-size: 13.5px; } .lb-mine b { font-size: 16px; }
.lb-rows { display: grid; gap: 6px; padding: 10px 14px; } .lb-rows .r { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; font-size: 14px; } .lb-rows .r .k { font: 800 13px Georgia, serif; text-align: center; } .lb-rows .r.empty { opacity: .45; } .lb-rows .r.me { outline: 2px solid #ffd37a; }
.empty { opacity: .5; font-style: italic; } i.me { font-style: normal; display: inline-block; margin-left: 6px; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: #ffd37a; color: #2b0812; font-weight: 800; }
/* skyline */
.lb-t-skyline { background: linear-gradient(180deg, #0b1230 0%, #1b2a5a 60%, #2a1f4d 100%); color: #fff; }
.lb-sky { position: relative; height: 270px; overflow: hidden; } .lb-sky .stars i { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: blink 2.4s ease-in-out infinite; } .lb-sky .moon { position: absolute; right: 8%; top: 10%; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8d6, #ffd37a); box-shadow: 0 0 40px rgba(255,211,122,.6); }
.lb-sky .podium { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: flex-end; gap: 24px; }
.lb-sky .bld { width: 150px; text-align: center; } .lb-sky .tower { height: var(--h); margin: 0 auto; width: 76px; background: linear-gradient(180deg, #3b4a7a, #1e2a52); border-radius: 6px 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px; box-sizing: border-box; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); } .lb-sky .tower span { display: block; height: 10px; background: #ffe08a; opacity: .9; border-radius: 2px; box-shadow: 0 0 8px rgba(255,224,138,.6); } .lb-sky .bld.empty .tower span { background: #4a5a8a; box-shadow: none; opacity: .5; }
.lb-sky .who { margin-bottom: 8px; font-size: 14px; font-weight: 700; } .lb-sky .who b { display: block; font: 800 22px Georgia, serif; color: #ffd37a; } .lb-sky .who small { display: block; font-size: 11.5px; opacity: .8; font-weight: 500; } .lb-sky .bld.me .tower { outline: 2px solid #ffd37a; }
.lb-sky .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: #0a0f24; }
.lb-rows.dark .r { background: rgba(255,255,255,.07); } .lb-rows.dark .r .k { color: #ffd37a; }
.lb-t-skyline .lb-switch button.on { color: #1c2a3a; }
/* route */
.lb-route { background: linear-gradient(180deg, #fbf5e8, #f1e7d2); color: #1c2a3a; border-top: 1px solid #e8dcc0; border-bottom: 1px solid #e8dcc0; }
.lb-route svg { width: 100%; height: auto; display: block; } .lb-route .land { fill: #e6dcc4; stroke: #d3c5a2; } .lb-route .line { fill: none; stroke: #d0452b; stroke-width: 2.5; stroke-dasharray: 6 6; opacity: .8; }
.lb-route .pin circle { fill: #fff; stroke: #2b5aa8; stroke-width: 2.5; } .lb-route .pin.top circle { fill: #ffe08a; stroke: #d0452b; } .lb-route .pin.empty circle { fill: #f1e7d2; stroke: #c9bfa5; stroke-dasharray: 3 3; } .lb-route .pin.me circle { stroke-width: 4; stroke: #ffb347; }
.lb-route .pin .k { font: 800 13px Georgia, serif; text-anchor: middle; dominant-baseline: central; fill: #1c2a3a; } .lb-route .pin .n { font: 700 12px -apple-system, "PingFang SC", sans-serif; text-anchor: middle; fill: #1c2a3a; } .lb-route .pin .v { font: 500 10px "IBM Plex Mono", monospace; text-anchor: middle; fill: #6b7684; } .lb-route .pin.empty .n { fill: #a89f8a; }
.lb-route .cities { display: flex; justify-content: space-between; padding: 4px 18px 10px; font: 600 9px "IBM Plex Mono", monospace; letter-spacing: .18em; color: #a89f8a; }
.lb-t-route { background: #fbf5e8; color: #1c2a3a; }
/* boarding */
.lb-t-boarding { background: linear-gradient(180deg, #eef1f6, #dfe6ef); color: #1c2a3a; }
.lb-tickets { display: grid; gap: 8px; padding: 6px 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tk { display: grid; grid-template-columns: 58px 1fr 34px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(28,42,58,.1); position: relative; } .tk::before, .tk::after { content: ''; position: absolute; left: 52px; width: 12px; height: 12px; border-radius: 50%; background: #eef1f6; } .tk::before { top: -6px; } .tk::after { bottom: -6px; }
.tk .stub { background: #2b5aa8; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; } .tk .stub small { font: 600 8px "IBM Plex Mono", monospace; letter-spacing: .18em; opacity: .8; } .tk .stub b { font: 800 18px Georgia, serif; }
.tk.first .stub { background: linear-gradient(160deg, #ffd37a, #d4a017); color: #2b0812; } .tk.me { outline: 2px solid #ffb347; } .tk.empty { opacity: .55; }
.tk .body { padding: 8px 10px; } .tk .body small { font: 600 8.5px "IBM Plex Mono", monospace; letter-spacing: .16em; color: #6b7684; } .tk .n { font-weight: 800; font-size: 15px; margin-top: 2px; } .tk .v { font-size: 12px; color: #6b7684; }
.tk .bar { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 8px; } .tk .bar i { display: block; height: 3px; background: #1c2a3a; border-radius: 1px; }
/* stage */
.lb-t-stage { background: radial-gradient(ellipse at 50% 0%, #3a1440, #14101f 70%); color: #fff; }
.lb-stage { position: relative; height: 250px; overflow: hidden; } .lb-stage .curtain { position: absolute; top: 0; bottom: 0; width: 14%; background: repeating-linear-gradient(90deg, #5a1024 0 10px, #7a1a33 10px 18px, #5a1024 18px 28px); } .lb-stage .curtain.l { left: 0; border-right: 4px solid #b98a3c; } .lb-stage .curtain.r { right: 0; border-left: 4px solid #b98a3c; }
.lb-stage .spot { position: absolute; left: 50%; top: 0; width: 60%; height: 100%; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 0%, rgba(255,236,190,.35), transparent 65%); }
.lb-stage .podium { position: absolute; left: 16%; right: 16%; bottom: 0; display: flex; justify-content: center; align-items: flex-end; gap: 12px; }
.lb-stage .p { width: 150px; text-align: center; } .lb-stage .p .who { font-size: 14px; font-weight: 700; margin-bottom: 8px; } .lb-stage .p .who .crown { display: block; font-size: 22px; } .lb-stage .p .who small { display: block; font-size: 11.5px; opacity: .8; font-weight: 500; }
.lb-stage .block { background: linear-gradient(180deg, #b98a3c, #7a5a20); border-radius: 8px 8px 0 0; display: grid; place-items: center; box-shadow: inset 0 2px 0 rgba(255,255,255,.35); } .lb-stage .block b { font: 800 24px Georgia, serif; color: #fff3c4; } .lb-stage .p.me .block { outline: 2px solid #ffd37a; } .lb-stage .p.empty .block { opacity: .45; }
.lb-rows.velvet .r { background: rgba(255,255,255,.08); } .lb-rows.velvet .r .k { color: #ffd37a; }
/* passport */
.lb-t-passport { background: linear-gradient(180deg, #f7f1e1, #efe6cf); color: #1c2a3a; }
.lb-passport .head { display: flex; justify-content: space-between; padding: 0 16px 6px; font: 600 9.5px "IBM Plex Mono", monospace; letter-spacing: .2em; color: #8a7d5e; }
.lb-passport .stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; padding: 8px 16px 12px; }
.lb-passport .st { position: relative; aspect-ratio: 1; border-radius: 50%; border: 3px double #2b5aa8; color: #2b5aa8; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(var(--r)); background: rgba(255,255,255,.35); } .lb-passport .st b { font: 800 22px Georgia, serif; } .lb-passport .st .n { font-weight: 700; font-size: 13px; } .lb-passport .st small { font: 600 9px "IBM Plex Mono", monospace; letter-spacing: .08em; }
.lb-passport .st.wax { border: 0; background: radial-gradient(circle at 35% 30%, #e6664a, #b23a22 70%); color: #fff3c4; box-shadow: 0 6px 12px rgba(120,40,20,.35); } .lb-passport .st.empty { opacity: .4; border-style: dashed; } .lb-passport .st.me { box-shadow: 0 0 0 4px #ffd37a; }
@media (max-width: 600px) { .lb-sky .bld, .lb-stage .p { width: 30%; } .lb-sky .tower { width: 60px; } }
/* ── 工具栏徽章（替换旧的一行小胶囊） */
.en-grid-mini { display: none; }
.en-tools { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.en-tools .tool { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; border-radius: 18px; text-align: center; color: #1c2a3a; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.7)); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 24px rgba(28,42,58,.08); transition: transform .18s, box-shadow .18s; }
.en-tools .tool:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 16px 32px rgba(28,42,58,.14); }
.en-tools .tool b { font: 800 13.5px "PingFang SC", -apple-system, sans-serif; letter-spacing: .02em; } .en-tools .tool small { font-size: 11px; color: #6b7684; }
.en-tools .medal { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--m, linear-gradient(145deg, #eef2f8, #d9e2ee)); box-shadow: inset 0 2px 4px rgba(255,255,255,.8), inset 0 -3px 6px rgba(0,0,0,.08), 0 6px 14px rgba(28,42,58,.14); position: relative; }
.en-tools .medal::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); }
.en-tools .t-shadow .medal { --m: linear-gradient(145deg, #ffe3c2, #ffb07a); } .en-tools .t-mail .medal { --m: linear-gradient(145deg, #ffd9d0, #ff8a70); } .en-tools .t-echo .medal { --m: linear-gradient(145deg, #dff8ea, #8fe0b8); } .en-tools .t-map .medal { --m: linear-gradient(145deg, #dbe9ff, #8db6ff); }
.en-tools .t-passage .medal { --m: linear-gradient(145deg, #dbe8ff, #8fb0ff); }
.en-tools .t-dict .medal, .en-tools .t-read .medal, .en-tools .t-hw .medal { --m: linear-gradient(145deg, #f3f0e8, #ddd6c6); }
.en-tools .t-dict, .en-tools .t-read, .en-tools .t-hw { background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.45)); }
.en-tools .badge { position: absolute; top: 8px; right: 10px; font: 800 10px sans-serif; color: #fff; background: linear-gradient(135deg, #ff7a59, #d0452b); padding: 2px 7px; border-radius: 999px; box-shadow: 0 4px 10px rgba(208,69,43,.35); animation: badge-pop 2.4s ease-in-out infinite; } @keyframes badge-pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
body[data-world="airship"] .en-wrap .en-tools .tool { background: linear-gradient(180deg, rgba(58,49,73,.9), rgba(43,34,51,.85)); color: #fbf3e2; border-color: #4a4058; } body[data-world="airship"] .en-wrap .en-tools .tool small { color: #cbbfd6; }
@media (max-width: 900px) { .en-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (max-width: 520px) { .en-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .en-tools .tool { padding: 10px 4px; border-radius: 14px; } .en-tools .medal { width: 40px; height: 40px; font-size: 20px; } .en-tools .tool small { display: none; } }
/* 榜：底图层（生成图）+ 两个榜的切换 */
.lb-wrap { position: relative; isolation: isolate; } .lb-wrap::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--art) center/cover; opacity: .55; }
.lb-t-skyline::before { opacity: .75; } .lb-t-stage::before { opacity: .7; } .lb-t-route::before, .lb-t-passport::before, .lb-t-boarding::before { opacity: .45; }
.lb-t-skyline .lb-sky, .lb-t-stage .lb-stage { background: transparent; } .lb-sky .stars, .lb-sky .moon { display: none; } .lb-stage .curtain, .lb-stage .spot { display: none; }
.lb-t-route .lb-route { background: rgba(251,245,232,.55); } .lb-t-route .lb-route .land { fill: rgba(230,220,196,.6); }
.lb-t-boarding .lb-tickets .tk { box-shadow: 0 10px 24px rgba(0,0,0,.25); } .lb-t-passport .lb-passport .st { background: rgba(255,255,255,.6); }
.lb-head, .lb-mine { position: relative; } .lb-t-skyline .lb-head, .lb-t-stage .lb-head, .lb-t-skyline .lb-mine, .lb-t-stage .lb-mine, .lb-t-skyline .lb-rows, .lb-t-stage .lb-rows { background: linear-gradient(180deg, rgba(10,8,20,.35), rgba(10,8,20,.6)); }
.lb-t-boarding .lb-head, .lb-t-passport .lb-head, .lb-t-route .lb-head, .lb-t-boarding .lb-mine, .lb-t-passport .lb-mine, .lb-t-route .lb-mine { background: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.lb-scope { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(127,127,127,.18); } .lb-scope button { all: unset; cursor: pointer; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; opacity: .75; } .lb-scope button.on { opacity: 1; background: #fff; color: #1c2a3a; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.lb-switch { display: none; }
.sh-grade { font: 800 12px -apple-system, sans-serif; color: #2b0812; background: linear-gradient(135deg, #ffe08a, #ffb347); padding: 3px 10px; border-radius: 999px; margin-left: 8px; }

.t-voice { flex-basis: 100%; color: #7a4a00; background: linear-gradient(90deg, rgba(255,224,138,.5), rgba(255,224,138,0)); border-radius: 999px; padding: 3px 10px; font-size: 13px; } .t-voice b { color: #b23a22; }

/* 短屏（MacBook 浏览器可视高度 700 上下）：舞台是 flex 子项，之前会被压扁到只剩气泡把鹦鹉盖住——flex:none 钉死高度，短屏再整体缩一档 */
@media (max-height: 780px) { .ec-scene { height: 240px; } .ec-pose { height: 170px; left: 60%; } .ec-scene[data-form="egg"] .ec-pose, .ec-scene[data-form="crack"] .ec-pose { height: 140px; } .ec-scene[data-form="chick"] .ec-pose { height: 125px; } .ec-say { max-width: 56%; padding: 8px 12px; } .ec-say b { font-size: 14.5px; } .ec-body { gap: 12px; padding: 14px 16px 50px; } }
/* 喂食：食物从柜子飞到嘴边，Echo 嚼三口 */
.ec-fly { position: fixed; z-index: 200; pointer-events: none; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(28,42,58,.3)); transition: left .75s cubic-bezier(.4,.1,.3,1), top .75s cubic-bezier(.3,1.2,.5,1), width .75s, height .75s, opacity .2s; }
.ec-pose.m-eating { animation: ec-chew .55s ease-in-out 5; } @keyframes ec-chew { 0%,100% { transform: translateX(-50%) scaleY(1); } 35% { transform: translateX(-50%) scaleY(.94) rotate(-2deg); } 70% { transform: translateX(-50%) scaleY(1.03) rotate(1.5deg); } }

/* ── Call Mia 来电横幅（John 9/9）：来电的隐喻——头像外圈一圈圈荡开、绿点常亮、接听钮轻轻摇 ── */
.mia-call { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 14px 0 6px; padding: 14px 18px; border-radius: 22px; text-decoration: none; color: #0f1a12;
  background: linear-gradient(120deg, #0b3d2e 0%, #145c43 55%, #1f7a58 100%); box-shadow: 0 18px 40px -18px rgba(11,61,46,.7), inset 0 1px 0 rgba(255,255,255,.25); position: relative; overflow: hidden; }
.mia-call::before { content: ""; position: absolute; inset: -40% -10%; background: radial-gradient(60% 60% at 80% 50%, rgba(120,255,190,.25), transparent 60%); pointer-events: none; }
.mia-call[hidden] { display: none; }
.mia-call .mc-ava { position: relative; width: 72px; height: 72px; flex: none; }
.mia-call .mc-ava img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 8px 18px rgba(0,0,0,.35); position: relative; z-index: 2; }
.mia-call .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(140,255,200,.9); animation: mc-ring 2.2s ease-out infinite; }
.mia-call .ring.r2 { animation-delay: 1.1s; }
@keyframes mc-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.mia-call .live { position: absolute; right: 2px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: #3ddc84; border: 3px solid #0f4a36; z-index: 3; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: mc-live 1.6s ease-out infinite; }
@keyframes mc-live { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.7); } 100% { box-shadow: 0 0 0 12px rgba(61,220,132,0); } }
.mia-call .mc-txt { display: flex; flex-direction: column; gap: 2px; color: #fff; min-width: 0; }
.mia-call .mc-txt small { font: 600 11px/1.2 -apple-system, "PingFang SC", sans-serif; letter-spacing: .22em; color: #9ff2c9; }
.mia-call .mc-txt b { font: 800 22px/1.2 "PingFang SC", -apple-system, sans-serif; letter-spacing: .02em; }
.mia-call .mc-txt > span { font-size: 13.5px; color: rgba(255,255,255,.82); }
.mia-call .mc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px 12px 16px; border-radius: 999px; background: #3ddc84; color: #08351f; font: 800 16px "PingFang SC", -apple-system, sans-serif; box-shadow: 0 10px 22px -8px rgba(61,220,132,.9), inset 0 1px 0 rgba(255,255,255,.6); white-space: nowrap; }
.mia-call .mc-btn i { font-style: normal; font-size: 20px; display: inline-block; animation: mc-wobble 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes mc-wobble { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-10deg); } 90% { transform: rotate(6deg); } }
.mia-call:hover .mc-btn { transform: translateY(-2px); filter: brightness(1.05); }
@media (max-width: 640px) { .mia-call { grid-template-columns: auto 1fr; padding: 12px 14px; } .mia-call .mc-btn { grid-column: 1 / -1; justify-content: center; } .mia-call .mc-txt b { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .mia-call .ring, .mia-call .live, .mia-call .mc-btn i { animation: none; } }

/* ── 整段听写 */
.pg-body { gap: 14px; }
.pg-panel { width: min(640px, 100%); display: flex; flex-direction: column; gap: 12px; }
.pg-panel.hidden { display: none; }
.pg-tabs { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; } .pg-tabs button { all: unset; flex: 1; text-align: center; padding: 8px; border-radius: 9px; font-size: 14px; color: var(--ink-soft); cursor: pointer; } .pg-tabs button.on { background: var(--ink); color: #fff; font-weight: 700; }
.pg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .pg-opt { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px; transition: transform .15s, box-shadow .15s; } .pg-opt:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(47,107,255,.14); } .pg-opt .ico { font-size: 28px; } .pg-opt b { font-size: 15.5px; } .pg-opt small { color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
#pg-text, #vd-text { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: 15px/1.65 var(--serif, Georgia, serif); color: var(--ink); background: var(--card); resize: vertical; min-height: 140px; }
.pg-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; } .pg-row.center { justify-content: center; } .pg-row .primary { padding: 11px 18px; font-weight: 700; }
.pg-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .pg-head b { font-size: 17px; }
.pg-sents { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; }
.pg-sent { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); } .pg-sent:last-child { border-bottom: 0; }
.pg-sent .k { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-bg, #e7eeff); color: var(--accent); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.pg-sent .tx { flex: 1; font: 15.5px/1.55 var(--serif, Georgia, serif); color: var(--ink); outline: none; border-radius: 6px; padding: 1px 4px; } .pg-sent .tx:focus { background: #fff8ea; box-shadow: 0 0 0 2px #ffd9a0; }
.pg-sent .w { flex: none; font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; font-variant-numeric: tabular-nums; } .pg-sent .x { all: unset; cursor: pointer; color: var(--ink-soft); font-size: 14px; padding: 2px 6px; border-radius: 6px; } .pg-sent .x:hover { background: #ffe9ea; color: #e5484d; }
.pg-hint { font-size: 13.5px; background: #fff5df; border-radius: 12px; padding: 9px 12px; color: var(--ink); } .pg-hint b { color: var(--ink); }
.pg-prog { display: flex; gap: 5px; } .pg-prog i { flex: 1; height: 9px; border-radius: 5px; background: var(--line); } .pg-prog i.done { background: #2ea36b; } .pg-prog i.cur { background: var(--accent); box-shadow: 0 0 0 3px #e7eeff; }
.pg-stage { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pg-big { font: 700 26px/1.2 var(--serif, Georgia, serif); }
.pg-play { all: unset; cursor: pointer; width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 36px; box-shadow: 0 12px 30px rgba(47,107,255,.35); transition: transform .15s; } .pg-play:active { transform: scale(.94); } .pg-play.on { animation: shpulse 1s ease-in-out infinite; }
.pg-wave { display: flex; gap: 3px; align-items: flex-end; height: 26px; opacity: .25; transition: opacity .3s; } .pg-wave.on { opacity: 1; } .pg-wave i { width: 4px; height: 6px; background: var(--accent-soft); border-radius: 2px; } .pg-wave.on i { animation: pgw 1s ease-in-out infinite alternate; } .pg-wave.on i:nth-child(2n) { animation-delay: .2s; } .pg-wave.on i:nth-child(3n) { animation-delay: .4s; } @keyframes pgw { from { height: 6px; } to { height: 26px; } }
.pg-next { padding: 14px 18px; font-size: 16px; font-weight: 700; border-radius: 14px; }
.pg-done { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; } .pg-done div { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); } .pg-done .ok { color: #2ea36b; } .pg-done .lock { display: inline-block; background: var(--line); height: 9px; border-radius: 5px; flex: 1; }
.pg-body .center { text-align: center; }
/* 结果 */
.pg-score { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.pg-ring { width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(#2ea36b 0 var(--p), var(--line) var(--p) 100%); display: flex; align-items: center; justify-content: center; flex: none; } .pg-ring b { width: 64px; height: 64px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; font: 700 21px var(--serif, Georgia, serif); }
.pg-score .t { font-size: 13.5px; color: var(--ink-soft); } .pg-score .t b { color: var(--ink); font-size: 16px; display: block; margin-bottom: 2px; }
.pg-chips { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; margin-top: 6px; } .pg-chips span { border-radius: 999px; padding: 2px 9px; font-weight: 600; } .c-bad { background: #ffe9ea; color: #e5484d; } .c-miss { background: #efe8ff; color: #8a5cf6; } .c-warm { background: #fff5df; color: #8a5a00; } .c-good { background: #e3f6ec; color: #2ea36b; }
.pg-cmp { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px; font-size: 14.5px; line-height: 1.65; display: flex; flex-direction: column; gap: 3px; } .pg-cmp .lab { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .04em; } .pg-cmp .orig, .pg-cmp .mine { font-family: var(--serif, Georgia, serif); } .pg-cmp .orig .en-muted, .pg-cmp .mine .en-muted { font-family: var(--sans); font-size: 12px; margin-right: 6px; }
.pg-cmp.ok { background: #e3f6ec; border-color: #cdebd9; } .pg-cmp.ok .lab { color: #2ea36b; }
.pg-cmp .why { font-size: 13px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 5px; margin-top: 3px; }
.pg-cmp mark { padding: 0 2px; border-radius: 3px; background: #ffe9ea; color: #e5484d; text-decoration: underline wavy #e5484d; text-underline-offset: 2px; } .pg-cmp mark.miss { background: #efe8ff; color: #8a5cf6; text-decoration: none; font-style: italic; } .pg-cmp mark.extra { background: #fff5df; color: #8a5a00; text-decoration: line-through; } .pg-cmp mark.punct { background: #fff5df; color: #8a5a00; text-decoration: none; }
.pg-history { width: 100%; } .pg-history .en-list { max-height: 220px; } .pg-hist { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(120,140,180,.08); font-size: 13.5px; cursor: pointer; } .pg-hist:hover { background: rgba(120,140,180,.16); } .pg-hist b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pg-hist .en-muted { margin-left: auto; flex: none; font-size: 12px; }
@media (max-width: 520px) { .pg-opts { grid-template-columns: 1fr; } }

/* ── 英文单词听写（9/10）：核对答案 + 选念法 + 逐词结果。其余沿用整段听写的 pg-* */
.vd-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vd-mode button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 3px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.vd-mode button b { font-size: 14.5px; } .vd-mode button small { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.vd-mode button.on { border-color: var(--accent); box-shadow: 0 0 0 3px #e7eeff; }
.vd-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; }
/* 2026-09-13：原来词表是 52vh 的内层滚动框，笔记本上只露 11 行、Mac 又不显示滚动条，49 个词看着像只认出 11 个。
   现在整张表铺开跟着页面滚，「开始听写」钉在底部，词多也随时点得到 */
#vd-confirm > .pg-row:last-child { position: sticky; bottom: -60px; z-index: 2; margin: 0 -16px -60px; padding: 12px 16px 72px; background: linear-gradient(to bottom, rgba(238, 241, 246, 0), #eef1f6 14px); }
#vd-prog.dense { gap: 2px; } #vd-prog.dense i { height: 7px; border-radius: 3px; }
.vd-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1.3fr) 52px 26px; grid-template-areas: "k en zh tag x"; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.vd-row:last-child { border-bottom: 0; }
.vd-row .k { grid-area: k; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-bg, #e7eeff); color: var(--accent); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.vd-row input { min-width: 0; box-sizing: border-box; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; background: transparent; color: var(--ink); font-size: 14px; }
.vd-row input.en { grid-area: en; font: 600 15.5px/1.3 var(--serif, Georgia, serif); } .vd-row input.zh { grid-area: zh; color: var(--ink-soft); }
.vd-row input:hover { border-color: var(--line); } .vd-row input:focus { outline: none; border-color: #ffd9a0; background: #fff8ea; color: var(--ink); }
.vd-row .tag { grid-area: tag; font-size: 11.5px; border-radius: 999px; padding: 1px 8px; background: #fff5df; color: #8a5a00; white-space: nowrap; } .vd-row .tag.doubt { background: #ffe9ea; color: #e5484d; } .vd-row .tag { justify-self: start; } .vd-row .tag:empty { visibility: hidden; }
.vd-row .x { grid-area: x; all: unset; cursor: pointer; color: var(--ink-soft); font-size: 14px; text-align: center; border-radius: 6px; padding: 2px 0; } .vd-row .x:hover { background: #ffe9ea; color: #e5484d; }
.vd-add { align-self: flex-start; }
.vd-results { display: flex; flex-direction: column; gap: 6px; }
.vd-res { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 14px; }
.vd-res.ok { background: #e3f6ec; border-color: #cdebd9; } .vd-res.doubt { background: #fff5df; border-color: #f3e2b8; } .vd-res.bad { background: #fff; border-color: #f5c9cb; }
.vd-res .mk { font-weight: 800; font-size: 16px; text-align: center; } .vd-res.ok .mk { color: #2ea36b; } .vd-res.bad .mk { color: #e5484d; } .vd-res.doubt .mk { color: #8a5a00; }
.vd-res .ans { font: 600 16px var(--serif, Georgia, serif); } .vd-res .zh { color: var(--ink-soft); font-size: 12.5px; margin-left: 8px; }
.vd-res .got { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; } .vd-res .got s { color: #e5484d; text-decoration-thickness: 1.5px; }
.vd-res button { font-size: 12px; padding: 4px 10px; white-space: nowrap; }
@media (max-width: 520px) {
  .vd-mode { grid-template-columns: 1fr; }
  .vd-row { grid-template-columns: 22px minmax(0, 1fr) auto 24px; grid-template-areas: "k en tag x" ". zh zh ."; row-gap: 0; }
}
