:root {
  --qq-orange: #ff7a1a;
  --qq-orange-2: #ff8a2b;
  --qq-blue: #3b82f6;
  --qq-green: #22c55e;
  --qq-bg: #f3f6fb;
  --qq-cream: #fff6e8;
  --qq-cloud: #ffe8d0;
  --qq-text: #1f2937;
  --qq-muted: #6b7280;
  --qq-card: #ffffff;
  --qq-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --qq-radius: 16px;
  --qq-font: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.qq-body {
  font-family: var(--qq-font);
  color: var(--qq-text);
  background: #fff;
  min-height: 100vh;
}
body.qq-body.qq-hall-page,
body.qq-body.qq-practice {
  background: transparent;
}

a { color: inherit; text-decoration: none; }
button, .qq-btn { font-family: inherit; cursor: pointer; border: none; }

.qq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.qq-btn-primary {
  background: linear-gradient(180deg, var(--qq-orange-2), var(--qq-orange));
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.35);
}
.qq-btn-primary:hover { transform: translateY(-1px); }
.qq-btn-dark {
  background: #1f2937;
  color: #fff;
  padding: 8px 18px;
  font-size: 14px;
}
.qq-btn-ghost {
  background: #fff;
  color: var(--qq-text);
  border: 1px solid #e5e7eb;
  box-shadow: var(--qq-shadow);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
}

/* Logo keycaps */
.qq-logo {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.qq-logo .cap {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--qq-orange);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 #e86710;
}
.qq-logo.lg .cap {
  width: 42px;
  height: 42px;
  font-size: 18px;
  border-radius: 10px;
}
.qq-brand-text {
  margin-left: 10px;
  font-weight: 800;
  font-size: 18px;
}

/* ===== Landing ===== */
.qq-landing-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qq-hero {
  max-width: 860px;
  margin: 40px auto 24px;
  text-align: center;
  padding: 0 20px;
}
.qq-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  margin: 20px 0 14px;
}
.qq-hero p {
  color: var(--qq-muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 auto 28px;
  max-width: 560px;
}
.qq-hero-art {
  max-width: 980px;
  margin: 36px auto 60px;
  padding: 0 20px;
}
.qq-hero-art .frame {
  border-radius: 28px;
  background: linear-gradient(160deg, #ffe6c8, #fff3e0 45%, #fff);
  box-shadow: var(--qq-shadow);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.qq-hero-art .frame img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.qq-features {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.qq-feature {
  background: var(--qq-bg);
  border-radius: var(--qq-radius);
  padding: 22px;
}
.qq-feature h3 { margin: 0 0 8px; font-size: 17px; }
.qq-feature p { margin: 0; color: var(--qq-muted); font-size: 14px; line-height: 1.7; }

/* ===== Login (对齐参考图：白底营销首屏 + 底部大圆角插画) ===== */
.qq-login-page {
  min-height: 100vh;
  background: #ffffff;
  padding: 0 0 48px;
}
/* 总结 / 提示页：卡片在视口正中 */
.qq-center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: #f3f4f6;
}
.qq-center-page .qq-login-card {
  margin: 0;
}
.qq-login-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 28px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qq-login-header .qq-logo .cap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 3px 0 #e86710;
}
.qq-login-hero {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 0 24px;
  text-align: center;
}
.qq-login-hero .qq-logo.lg {
  justify-content: center;
  margin-bottom: 22px;
}
.qq-login-hero .qq-logo.lg .cap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 22px;
  box-shadow: 0 4px 0 #e86710;
}
.qq-login-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111827;
  line-height: 1.3;
}
.qq-login-hero .desc {
  margin: 0 auto 28px;
  max-width: 620px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.85;
}
.qq-login-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.qq-login-hero .qq-btn-primary,
.qq-login-hero .qq-btn-dark {
  min-width: 168px;
  height: 48px;
  font-size: 16px;
}
.qq-login-hero .qq-btn-primary {
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.32);
}
.qq-login-art {
  max-width: 1040px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.qq-login-art .frame {
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffd7a8, #ffe9c8 40%, #fff7ec);
  box-shadow: 0 16px 40px rgba(255, 154, 60, 0.18);
}
.qq-login-art .frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* 登录弹层（点「立即登录」后出现，不破坏首屏构图） */
.qq-login-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.qq-login-modal-mask.show { display: flex; }
.qq-login-card {
  width: min(400px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  padding: 28px 28px 22px;
  position: relative;
}
.qq-auth-panel[hidden] { display: none !important; }
.qq-auth-switch {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--qq-muted);
}
.qq-auth-switch button {
  border: none;
  background: none;
  padding: 0;
  color: var(--qq-orange);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.qq-field label.error {
  color: #ef4444;
  margin-top: 6px;
  margin-bottom: 0;
}
.qq-login-card .close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
}
.qq-login-card h2 {
  text-align: center;
  font-size: 20px;
  margin: 8px 0 6px;
}
.qq-login-card .sub {
  text-align: center;
  color: var(--qq-muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.qq-field { margin-bottom: 14px; }
.qq-field label {
  display: block;
  font-size: 13px;
  color: var(--qq-muted);
  margin-bottom: 6px;
}
.qq-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.qq-field input:focus {
  border-color: var(--qq-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.15);
}
.qq-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 18px;
  font-size: 13px;
  color: var(--qq-muted);
}
.qq-login-card .qq-btn-primary { width: 100%; height: 48px; }
.qq-login-tip {
  display: none;
  margin-top: 12px;
  color: #ef4444;
  font-size: 13px;
  text-align: center;
}

/* ===== App shell (legacy fallback) ===== */
.qq-app {
  display: flex;
  min-height: 100vh;
  background: var(--qq-bg);
}
.qq-side {
  width: 210px;
  background: #fff;
  border-right: 1px solid #eef2f7;
  padding: 20px 14px;
  flex-shrink: 0;
}
.qq-side .qq-logo { margin: 4px 8px 22px; }
.qq-side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.qq-side-nav a:hover { background: #f3f4f6; }
.qq-side-nav a.active {
  background: var(--qq-blue);
  color: #fff;
}
.qq-main {
  flex: 1;
  padding: 28px 32px 48px;
  overflow: auto;
}
.qq-section { margin-bottom: 28px; }
.qq-section h2 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #1e3a5f;
}
.qq-lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.qq-lesson-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--qq-shadow);
  padding: 14px 12px 16px;
  min-height: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
.qq-lesson-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}
.qq-lesson-card .title {
  font-size: 13px;
  color: #374151;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
}
.qq-banner {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--qq-shadow);
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.qq-banner .muted { color: var(--qq-muted); font-size: 14px; }
.qq-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}
.qq-chip.warn { background: #fff7ed; color: #ea580c; }

/* ===== Hall homepage (design replica) ===== */
.qq-hall-page {
  background: transparent;
  min-height: 100vh;
}
.qq-hall {
  display: flex;
  min-height: 100vh;
  background: transparent;
  position: relative;
}
.qq-hall-bg-fixed {
  position: fixed;
  top: 0;
  left: 228px;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent url("/static/index/images/hall/bg-meadow.png") center center / cover no-repeat;
}
.qq-hall-side {
  width: 228px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid rgba(232, 214, 190, 0.7);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 2;
}
.qq-hall-side-top {
  position: relative;
  z-index: 2;
  padding: 16px 14px 150px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.qq-hall-side-hero {
  margin: 0 0 14px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 600 / 340;
  background: linear-gradient(165deg, #ffd7a8 0%, #ffe9c8 55%, #fff4e0 100%);
  box-shadow: 0 8px 20px rgba(255, 140, 50, 0.14);
  line-height: 0;
}
.qq-hall-side-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
}
.qq-hall-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 2px 12px;
  position: relative;
  z-index: 2;
}
.qq-hall-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #6b7280;
  font-weight: 700;
  font-size: 15px;
  transition: background .15s, color .15s;
}
.qq-hall-nav a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.qq-hall-nav a .ico-on { display: none; }
.qq-hall-nav a:hover { background: rgba(255, 138, 40, 0.08); color: #374151; }
.qq-hall-nav a.active {
  background: #fff1e4;
  color: #ff7a1a;
  box-shadow: none;
}
.qq-hall-nav a.active .ico { display: none; }
.qq-hall-nav a.active .ico-on {
  display: block;
  filter: none;
}
.qq-hall-side-meadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  pointer-events: none;
  z-index: 1;
  background: url("/static/index/images/hall/meadow.png") center bottom / 135% auto no-repeat;
}

.qq-hall-main {
  flex: 1;
  min-width: 0;
  padding: 22px 36px 56px;
  position: relative;
  z-index: 1;
  overflow: auto;
  background: transparent;
}
.qq-hall-top,
.qq-hall-section {
  position: relative;
  z-index: 1;
}
.qq-hall-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.qq-hall-top .qq-logo .cap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 15px;
  box-shadow: 0 3px 0 #e86710;
}
.qq-hall-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: auto;
}
.qq-hall-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.qq-hall-welcome .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(255, 140, 50, 0.25);
  background: #ffe0b8;
}
.qq-hall-welcome .text strong {
  display: block;
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 2px;
}
.qq-hall-welcome .text p {
  margin: 0;
  color: #8b93a1;
  font-size: 13px;
}
.qq-hall-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.qq-hall-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #efd0b0;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(92, 58, 24, 0.08);
  transition: border-color .15s, transform .15s, background .15s, box-shadow .15s;
}
.qq-hall-action:hover {
  border-color: #ffc089;
  transform: translateY(-1px);
}
.qq-hall-action img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.qq-hall-section { margin-bottom: 30px; }
.qq-hall-section-head {
  margin-bottom: 14px;
}
.qq-hall-section-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #1f2a44;
}
.qq-hall-section-head p {
  margin: 0;
  color: #8b93a1;
  font-size: 13px;
}
.qq-hall-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
button.qq-hall-card {
  width: 100%;
  color: inherit;
  padding: 18px 12px 16px;
  border-radius: 18px;
}
.qq-hall-card {
  background: #fff;
  border-radius: 18px;
  min-height: 148px;
  padding: 18px 12px 16px;
  box-shadow: 0 8px 18px rgba(92, 58, 24, 0.1);
  border: 1.5px solid #efd0b0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.qq-hall-card:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: #ffb072;
  box-shadow: 0 12px 24px rgba(255, 122, 26, 0.16);
}
.qq-hall-card.current {
  border-color: #ff7a1a;
  background: #fff;
  box-shadow: 0 10px 22px rgba(255, 122, 26, 0.2);
}
.qq-hall-card.locked {
  background: #f4f1ec;
  border-color: #ddd4c8;
  box-shadow: 0 4px 10px rgba(92, 58, 24, 0.06);
  cursor: pointer;
}
.qq-hall-card.locked:hover {
  background: #f7f4ef;
  border-color: #cfc4b6;
  box-shadow: 0 8px 16px rgba(92, 58, 24, 0.1);
}
.qq-lock-mask {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(31, 42, 68, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.qq-lock-mask.show,
.qq-lock-mask.closing {
  visibility: visible;
  pointer-events: auto;
}
.qq-lock-mask.show { animation: qqMaskIn .32s ease forwards; }
.qq-lock-mask.closing { animation: qqMaskOut .28s ease forwards; }
.qq-lock-dialog {
  width: min(340px, 100%);
  padding: 28px 24px 22px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fff6e8 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(255, 122, 26, 0.2);
}
.qq-lock-mask.show .qq-lock-dialog {
  animation: qqPopIn .55s cubic-bezier(.16, 1.15, .32, 1) both;
}
.qq-lock-mask.closing .qq-lock-dialog {
  animation: qqPopOut .28s ease forwards;
}
.qq-lock-dialog img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.qq-lock-dialog strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #1f2a44;
}
.qq-lock-dialog p {
  margin: 0 0 18px;
  min-height: 20px;
  color: #8b93a1;
  font-size: 14px;
  font-weight: 700;
}
.qq-lock-dialog .qq-btn-primary {
  min-width: 140px;
  height: 42px;
}
.qq-hall-card .art {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 10px;
  display: block;
}
.qq-hall-card .title {
  font-size: 14px;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  line-height: 1.35;
}
.qq-hall-card.locked .title { color: #6b7280; }
.qq-hall-card .badge {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.qq-video-mask {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.qq-video-mask.show,
.qq-video-mask.closing {
  visibility: visible;
  pointer-events: auto;
}
.qq-video-mask.show { animation: qqMaskIn .32s ease forwards; }
.qq-video-mask.closing { animation: qqMaskOut .28s ease forwards; }
.qq-video-dialog {
  width: min(920px, 100%);
  background: #111827;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform-origin: center center;
}
.qq-video-mask.show .qq-video-dialog {
  animation: qqPopIn .55s cubic-bezier(.16, 1.15, .32, 1) both;
}
.qq-video-mask.closing .qq-video-dialog {
  animation: qqPopOut .28s ease forwards;
}
@keyframes qqMaskIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes qqMaskOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes qqPopIn {
  0% { opacity: 0; transform: translateY(70px) scale(0.55); }
  62% { opacity: 1; transform: translateY(-10px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes qqPopOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(36px) scale(0.78); }
}
.qq-video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 18px;
  color: #fff;
}
.qq-video-bar strong { font-size: 16px; }
.qq-video-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.qq-video-dialog video {
  display: block;
  width: 100%;
  max-height: min(70vh, 520px);
  background: #000;
}
.qq-hall-card .badge.play {
  width: 24px;
  height: 24px;
}
.qq-card-label {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #ff7a1a;
  text-align: center;
}
.qq-day-state {
  position: absolute;
  right: 10px;
  top: 10px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 26px;
  white-space: nowrap;
}
.qq-day-state.is-done {
  background: #e7f8ee;
  color: #168a45;
}
.qq-day-state.is-wait {
  background: #fff1e4;
  color: #e06a12;
}

.qq-focus-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 14px 12px;
  max-width: 920px;
  margin: 4px auto 8px;
  min-height: 148px;
}
.qq-focus-letters .qq-focus-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 64px;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  background: #f38134;
  border: 3px solid #fff;
  box-shadow: 0 3px 0 #f0c9a0;
  color: #fff;
  font-family: "Nunito", "Consolas", monospace;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}
.qq-focus-letters .qq-focus-char.current {
  background: #fff;
  color: #111827;
  border-color: #ffe0c2;
  box-shadow: 0 4px 0 #f0c9a0;
}
.qq-focus-letters .qq-focus-char.done {
  background: #5ebb7d;
  color: #fff;
  box-shadow: 0 3px 0 #b7e0c4;
}
.qq-daily-fit .qq-guide-tip {
  margin: 8px auto 72px;
  min-height: 40px;
  font-size: 22px;
}
.qq-daily-fit .qq-memory-words {
  margin-bottom: 72px;
}

.qq-memory-note {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto 12px;
  text-align: center;
  color: #9a5b24;
  font-size: 14px;
  font-weight: 700;
}
.qq-countdown { color: #ff7a1a; }
.qq-memory-words .qq-wb-word {
  margin: 10px 10px;
  padding: 14px 18px;
  gap: 3px;
}
.qq-memory-words .qq-wb-char {
  font-size: 36px;
  padding: 2px 2px 6px;
}
.qq-daily-records {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 28px auto 12px;
  padding: 16px 16px 8px;
  background: rgba(255,255,255,.92);
  border: 1px solid #efd0b0;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(92, 58, 24, 0.08);
}
.qq-daily-records-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.qq-daily-records-head h3 {
  margin: 0;
  font-size: 18px;
  color: #1f2a44;
}
.qq-daily-records-wrap { overflow-x: auto; }
.qq-daily-records table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.qq-daily-records th,
.qq-daily-records td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #f3e6d8;
  white-space: nowrap;
}
.qq-daily-records th {
  color: #9a5b24;
  font-weight: 800;
}
.qq-record-empty td { color: #8b93a1; }

@media (max-width: 860px) {
  .qq-focus-letters .qq-focus-char {
    width: 40px;
    height: 48px;
    font-size: 22px;
    border-radius: 10px;
  }
  .qq-focus-letters { gap: 8px 6px; min-height: 110px; }
  .qq-memory-words .qq-wb-char { font-size: 26px; }
  .qq-daily-fit .qq-guide-tip,
  .qq-daily-fit .qq-memory-words { margin-bottom: 48px; }
}

@media (max-width: 1200px) {
  .qq-hall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .qq-hall { flex-direction: column; }
  .qq-hall-bg-fixed { left: 0; }
  .qq-hall-side {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(255, 170, 90, 0.12);
  }
  .qq-hall-side-hero { max-width: 260px; }
  .qq-hall-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .qq-hall-side-meadow { height: 96px; }
  .qq-hall-main { padding: 18px 16px 40px; }
  .qq-hall-top-right { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .qq-hall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qq-hall-action span { display: none; }
}

/* ===== Practice page ===== */
.qq-practice {
  --qq-key-orange: #f38134;
  --qq-key-green: #5ebb7d;
  --qq-key-red: #ff5a5a;
  --qq-finger-blue: #348ef3;
  --qq-kb-peach: #ffe4c4;
  --qq-kb-border: #f5c089;
  min-height: 100vh;
  background: transparent;
  padding: 16px 20px 40px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}
.qq-practice.qq-daily-fit {
  overflow: auto;
}
.qq-practice-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent url("/static/index/images/hall/bg-meadow.png") center center / cover no-repeat;
}
.qq-practice-top,
.qq-stats-panel,
.qq-guide-tip,
.qq-char-row,
.qq-mixed-text,
.qq-wb-practice-words,
.qq-focus-letters,
.qq-memory-note,
.qq-board-wrap {
  position: relative;
  z-index: 2;
}

.qq-practice-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.qq-practice-back,
.qq-practice-tools .qq-btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #f0e2d0;
  color: #ff7a1a;
  box-shadow: 0 4px 14px rgba(255, 140, 50, 0.1);
}
.qq-practice-top .center-pill {
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.qq-practice-top .avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #fff;
  background: #ffe0b8;
}
.qq-practice-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qq-sound-select {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  padding: 0 28px 0 12px;
  border-radius: 12px;
  border: 1px solid #f0e2d0;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff7a1a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 10px center no-repeat;
  color: #ff7a1a;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(255, 140, 50, 0.1);
  cursor: pointer;
}

.qq-stats-panel {
  max-width: 720px;
  margin: 0 auto 22px;
  background: rgba(255,255,255,.92);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 10px;
  text-align: center;
}
.qq-stats-panel > div + div {
  border-left: 1px solid #eef2f7;
}
.qq-stats-panel .num {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
}
.qq-stats-panel .label {
  font-size: 13px;
  color: var(--qq-muted);
  margin-top: 4px;
}

.qq-guide-tip {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #64748b;
  margin: 24px auto 36px;
  min-height: 56px;
  letter-spacing: 0.02em;
}
.qq-guide-tip .qq-keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  margin: 0 6px;
  border-radius: 12px;
  background: var(--qq-key-orange);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 3px 0 #f0c9a0;
  vertical-align: middle;
}

/* 第三轮：与第二轮同系橙色键帽字块，背景/键盘/手指样式不变 */
.qq-mixed-text {
  max-width: min(1240px, calc(100vw - 32px));
  width: 100%;
  margin: 8px auto 12px;
  min-height: 72px;
  box-sizing: border-box;
  text-align: center;
  font-family: "Nunito", "Consolas", "Courier New", monospace;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0;
}
.qq-mixed-fit {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.qq-mixed-line {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  margin: 6px 0;
  transform-origin: center top;
}
.qq-mixed-text .tp-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  min-width: 46px;
  height: 56px;
  margin: 4px 3px;
  padding: 0;
  border-radius: 12px;
  background: var(--qq-key-orange);
  border: 3px solid #fff;
  box-shadow: 0 4px 0 #f0c9a0;
  color: #fff;
  vertical-align: middle;
  position: relative;
  line-height: 1;
  overflow: visible;
  font-size: 24px;
}
.qq-mixed-text .tp-char.tp-space {
  width: 22px;
  min-width: 22px;
  height: 56px;
  margin: 4px 12px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-bottom: 3px solid #d1d5db;
  border-radius: 0;
  color: transparent;
}
.qq-mixed-text .tp-char.current {
  background: #fff;
  color: #111827;
  border-color: #e8edf5;
  box-shadow: 0 3px 0 #e5e7eb;
}
.qq-mixed-text .tp-char.current::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--qq-finger-blue);
}
.qq-mixed-text .tp-char.tp-space.current {
  background: #fde68a;
  border-bottom: 4px solid var(--qq-finger-blue);
  box-shadow: none;
}
.qq-mixed-text .tp-char.tp-space.current::after {
  display: none;
}
.qq-mixed-text .tp-char.done {
  background: var(--qq-key-green);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 3px 0 #b7e0c4;
}
.qq-mixed-text .tp-char.tp-space.done {
  background: transparent;
  border-bottom-color: var(--qq-key-green);
  box-shadow: none;
}
.qq-mixed-text .tp-char.error {
  background: var(--qq-key-red);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 3px 0 #f5b4b4;
}

.qq-char-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px auto 88px;
  max-width: 860px;
  min-height: 72px;
}
.qq-char-row.qq-az {
  max-width: 900px;
  gap: 8px 8px;
}
.qq-round-progress {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto 12px;
}
.qq-round-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  color: #7a4b00;
  font-size: 14px;
  font-weight: 800;
}
.qq-round-progress-track {
  height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #f5c49a;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(255, 154, 60, 0.15);
}
.qq-round-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb347, #f38134);
  transition: width .25s ease;
}
.qq-focus-words {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 920px;
  margin: 0 auto 10px;
}
.qq-focus-word {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #f5c49a;
  color: #7a4b00;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}
.qq-focus-word.current {
  background: #f38134;
  border-color: #fff;
  color: #fff;
}
.qq-focus-word.done {
  background: #5ebb7d;
  border-color: #fff;
  color: #fff;
}
.qq-mixed-text.qq-focus-type {
  max-height: 168px;
  overflow: auto;
  margin-bottom: 16px;
  padding: 4px 0;
}
.qq-mixed-text.qq-word-practice {
  margin: 8px auto 72px;
}
.qq-mixed-text .qq-word-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 88px;
  height: 56px;
  margin: 4px 3px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--qq-key-orange);
  border: 3px solid #fff;
  box-shadow: 0 4px 0 #f0c9a0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.5px;
  position: relative;
}
.qq-mixed-text .qq-word-box.current {
  background: #fff;
  color: #111827;
  border-color: #e8edf5;
  box-shadow: 0 3px 0 #e5e7eb;
}
.qq-mixed-text .qq-word-box.current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--qq-finger-blue);
}
.qq-mixed-text .qq-word-box.done {
  background: var(--qq-key-green);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 3px 0 #b7e0c4;
}
.qq-mixed-text .qq-word-box.error {
  background: var(--qq-key-red);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 3px 0 #f5b4b4;
}
/* 默认字母：橙色；正确：绿色；错误：红色 */
.qq-char-box {
  width: 56px;
  height: 64px;
  border-radius: 14px;
  background: var(--qq-key-orange);
  border: 3px solid #fff;
  box-shadow: 0 3px 0 #f0c9a0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  position: relative;
  overflow: visible;
}
.qq-char-box.done {
  background: var(--qq-key-green);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 3px 0 #b7e0c4;
}
.qq-char-box.current {
  background: #fff;
  color: #111;
  border-color: #e8edf5;
  box-shadow: 0 3px 0 #e5e7eb;
}
.qq-char-box.current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--qq-finger-blue);
}
.qq-char-box.error {
  background: var(--qq-key-red);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 3px 0 #f5b4b4;
  animation: qqShake .25s;
}
@keyframes qqShake {
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* 键盘底板：设计稿半透明桃色圆角框 */
.qq-board-wrap {
  --qq-unit: clamp(48px, 5.6vw, 62px);
  --qq-gap: clamp(6px, 0.75vw, 8px);
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(255, 236, 214, 0.92);
  border: 2.5px solid #f5c49a;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(255, 154, 60, 0.16);
  padding: clamp(18px, 2.2vw, 26px);
  padding-bottom: clamp(28px, 3vw, 40px);
  overflow: visible;
  position: relative;
}
.qq-kb {
  position: relative;
  z-index: 2;
  width: 100%;
}
.qq-kb-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--qq-gap);
  margin-bottom: var(--qq-gap);
}
.qq-kb-row:last-child { margin-bottom: 0; }
/* 白键：加高，圆角 + 轻底阴影 */
.qq-key {
  flex: 0 0 auto;
  width: var(--qq-unit);
  height: calc(var(--qq-unit) * 1.08);
  background: #fff;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 1.3vw, 16px);
  color: #555;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.07);
  text-transform: none;
  line-height: 1.1;
  user-select: none;
  transition: background .08s, transform .08s, color .08s, box-shadow .08s;
}
.qq-key-dual {
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding-top: 2px;
}
.qq-key-sub {
  font-size: 0.72em;
  font-weight: 600;
  color: #666;
  line-height: 1;
}
.qq-key-main {
  font-size: 0.95em;
  font-weight: 600;
  color: #555;
  line-height: 1;
}
.qq-key-back { width: calc(var(--qq-unit) * 2 + var(--qq-gap)); }
.qq-key-tab { width: calc(var(--qq-unit) * 1.5 + var(--qq-gap) * 0.5); }
.qq-key-caps { width: calc(var(--qq-unit) * 1.75 + var(--qq-gap) * 0.75); }
.qq-key-enter { width: calc(var(--qq-unit) * 2.15 + var(--qq-gap)); }
.qq-key-shift-l { width: calc(var(--qq-unit) * 2.25 + var(--qq-gap)); }
.qq-key-shift-r { width: calc(var(--qq-unit) * 2.75 + var(--qq-gap) * 1.5); }
.qq-key-mod { width: calc(var(--qq-unit) * 1.25 + var(--qq-gap) * 0.25); }
.qq-key-space {
  width: auto;
  flex: 1 1 auto;
  min-width: calc(var(--qq-unit) * 5.5);
  max-width: calc(var(--qq-unit) * 7.5);
}
/* 待输入：橙色键帽 */
.qq-key.next {
  background: var(--qq-key-orange);
  color: #fff;
  box-shadow: 0 2px 0 rgba(220, 100, 30, 0.45);
}
.qq-key.next .qq-key-sub,
.qq-key.next .qq-key-main { color: #fff; }
/* 输入正确：绿色 */
.qq-key.active {
  background: var(--qq-key-green);
  color: #fff;
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(70, 150, 100, 0.4);
}
.qq-key.active .qq-key-sub,
.qq-key.active .qq-key-main { color: #fff; }
/* 输入错误：红色 */
.qq-key.wrong {
  background: var(--qq-key-red);
  color: #fff;
  box-shadow: 0 2px 0 rgba(200, 60, 60, 0.4);
  animation: qqShake .25s;
}
.qq-key.wrong .qq-key-sub,
.qq-key.wrong .qq-key-main { color: #fff; }

/* 手指旅行：本关键位上色并描边，其余键变淡。当前键仍用橙/绿/红 */
.qq-kb.qq-zone-on .qq-key:not(.qq-zone) {
  opacity: 0.38;
}
.qq-kb.qq-zone-on .qq-key.next,
.qq-kb.qq-zone-on .qq-key.active,
.qq-kb.qq-zone-on .qq-key.wrong {
  opacity: 1;
}
.qq-key.qq-zone-left {
  background: #dbeafe;
  color: #1e3a8a;
  box-shadow: inset 0 0 0 3px #2563eb, 0 2px 0 rgba(37, 99, 235, 0.28);
}
.qq-key.qq-zone-right {
  background: #f3e8ff;
  color: #4c1d95;
  box-shadow: inset 0 0 0 3px #7c3aed, 0 2px 0 rgba(124, 58, 237, 0.28);
}
.qq-key.qq-zone-left .qq-key-sub,
.qq-key.qq-zone-left .qq-key-main { color: #1e3a8a; }
.qq-key.qq-zone-right .qq-key-sub,
.qq-key.qq-zone-right .qq-key-main { color: #4c1d95; }
.qq-key.qq-zone.next {
  background: var(--qq-key-orange);
  color: #fff;
  box-shadow: inset 0 0 0 3px #9a3412, 0 2px 0 rgba(220, 100, 30, 0.45);
}
.qq-key.qq-zone.active {
  background: var(--qq-key-green);
  color: #fff;
  box-shadow: inset 0 0 0 3px #166534, 0 1px 0 rgba(70, 150, 100, 0.4);
}
.qq-key.qq-zone.wrong {
  background: var(--qq-key-red);
  color: #fff;
  box-shadow: inset 0 0 0 3px #991b1b, 0 2px 0 rgba(200, 60, 60, 0.4);
}
.qq-key.qq-zone.next .qq-key-sub,
.qq-key.qq-zone.next .qq-key-main,
.qq-key.qq-zone.active .qq-key-sub,
.qq-key.qq-zone.active .qq-key-main,
.qq-key.qq-zone.wrong .qq-key-sub,
.qq-key.qq-zone.wrong .qq-key-main { color: #fff; }

/* 设计稿手图 1:1 + 手指高亮层；JS 对齐左食指→F、右食指→J */
.qq-hands {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
.qq-hand {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.18));
}
.qq-hand .hand-art {
  opacity: 0.72;
}
.qq-hand .finger-glow {
  fill: none;
  stroke: transparent;
  stroke-width: 0;
  opacity: 0;
  transition: stroke .12s, stroke-width .12s, opacity .12s, filter .12s;
}
/* 当前手指：仅蓝色轮廓描边（对齐设计稿） */
.qq-hand .finger.on .finger-glow,
.qq-hand .finger.finger-active .finger-glow {
  fill: none;
  stroke: #2f95ff;
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 1;
  filter: drop-shadow(0 0 2px rgba(47, 149, 255, 0.85));
}
/* 拇指/其余指：略细描边 + 弱光晕，避免糊成粗胶囊，露出轮廓 */
.qq-hand .finger.thumb.on .finger-glow,
.qq-hand .finger.thumb.finger-active .finger-glow,
.qq-hand .finger[data-f="L3"].on .finger-glow,
.qq-hand .finger[data-f="L3"].finger-active .finger-glow,
.qq-hand .finger[data-f="L4"].on .finger-glow,
.qq-hand .finger[data-f="L4"].finger-active .finger-glow,
.qq-hand .finger[data-f="R3"].on .finger-glow,
.qq-hand .finger[data-f="R3"].finger-active .finger-glow,
.qq-hand .finger[data-f="R4"].on .finger-glow,
.qq-hand .finger[data-f="R4"].finger-active .finger-glow {
  stroke: #2f95ff;
  stroke-width: 5;
  filter:
    drop-shadow(0 0 1px rgba(47, 149, 255, 1))
    drop-shadow(0 0 4px rgba(47, 149, 255, 0.85))
    drop-shadow(0 0 8px rgba(47, 149, 255, 0.45));
}
.qq-hand .tip {
  fill: transparent;
  stroke: none;
}
.qq-hands-hidden .qq-hands { display: none; }
.qq-kb-hidden .qq-board-wrap { display: none; }

.qq-nice {
  position: fixed;
  left: 50%;
  top: 72px;
  transform: translate(-50%, -70px) scale(.6);
  padding: 10px 26px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe08a, #ff9a1a);
  color: #7a3e00;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 3px;
  box-shadow: 0 12px 28px rgba(255, 140, 20, 0.45), 0 0 0 8px rgba(255, 214, 90, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 45;
}
.qq-nice.show { animation: qqAce 1.25s ease forwards; }
@keyframes qqAce {
  0% { opacity: 0; transform: translate(-50%, -10px) scale(.45); }
  14% { opacity: 1; transform: translate(-50%, -78px) scale(1.22); }
  28% { transform: translate(-50%, -64px) scale(1); }
  46% { transform: translate(-50%, -70px) scale(1.12); }
  78% { opacity: 1; transform: translate(-50%, -66px) scale(1.04); }
  100% { opacity: 0; transform: translate(-50%, -96px) scale(1.16); }
}
.qq-ace-hit {
  animation: qqAceNum .7s ease;
}
@keyframes qqAceNum {
  0% { transform: scale(1); color: #111827; }
  35% { transform: scale(1.45); color: #f08a00; }
  100% { transform: scale(1); color: #111827; }
}
.qq-stats-panel.qq-stats-live {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .qq-stats-panel.qq-stats-live .num { font-size: 22px; }
  .qq-stats-panel.qq-stats-live .label { font-size: 12px; }
}

.qq-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}
.qq-modal-mask.show { display: flex; }
.qq-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  width: min(400px, 92vw);
  text-align: center;
  box-shadow: var(--qq-shadow);
}
.qq-modal h2 { margin: 0 0 8px; }
.qq-modal p { color: var(--qq-muted); margin: 0 0 18px; }

/* ========== 单词库大厅 ========== */
.qq-wordbank { padding-top: 8px; }
.qq-wb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.qq-wb-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid #e8edf5;
}
.qq-wb-tab.active {
  background: #348ef3;
  color: #fff;
  border-color: #348ef3;
}
.qq-wb-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  padding-left: 4px;
}
.qq-wb-sub {
  color: #64748b;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.qq-wb-sub.active { color: #348ef3; }
.qq-wb-books {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.qq-wb-book {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  transition: box-shadow .15s ease, transform .15s ease;
}
.qq-wb-book:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.qq-wb-book .cover {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: #f1f5f9;
}
.qq-wb-book .title {
  font-size: 16px;
  font-weight: 800;
}

/* ========== 单词库练习区 ========== */
.qq-wb-practice-words {
  max-width: 980px;
  margin: 8px auto 28px;
  min-height: 110px;
  text-align: center;
  line-height: 1.6;
  padding: 8px 12px;
}
.qq-wb-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 6px 4px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}
.qq-wb-char {
  display: inline-block;
  font-family: "Nunito", "Consolas", monospace;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #94a3b8; /* 未输入：灰 */
  position: relative;
  padding: 2px 1px 4px;
}
.qq-wb-char.pending { color: #94a3b8; }
.qq-wb-char.current {
  color: #f38134; /* 当前：橘黄 */
}
.qq-wb-char.current::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 3px;
  border-radius: 3px;
  background: #348ef3;
}
.qq-wb-char.done { color: #5ebb7d; /* 正确：绿 */ }
.qq-wb-char.error { color: #ff5a5a; /* 错误：红 */ }
.qq-wb-gap {
  display: inline-block;
  width: 10px;
  height: 28px;
  margin: 0 2px;
  vertical-align: middle;
  border-bottom: 3px solid transparent;
}
.qq-wb-gap.current {
  border-bottom-color: #348ef3;
  background: rgba(253, 230, 138, 0.45);
  border-radius: 4px;
}
.qq-wb-gap.done { border-bottom-color: #5ebb7d; }
.qq-wb-gap.error { border-bottom-color: #ff5a5a; background: rgba(255, 90, 90, 0.15); }

/* 单词练习：真实空格分隔，便于看清完整单词 */
.tp-word {
  display: inline-block;
  margin-right: 2px;
  white-space: nowrap;
}
.tp-char {
  display: inline-block;
  padding: 0 1px;
  border-radius: 3px;
}
.tp-char.tp-space {
  min-width: 0.7em;
  margin: 0 6px;
  border-bottom: 2px solid #d1d5db;
  line-height: 1.2;
}
.tp-char.tp-space.current {
  background: #fde68a;
  border-bottom-color: #3b82f6;
  border-bottom-width: 3px;
}
.tp-char.tp-space.done {
  border-bottom-color: #22c55e;
}
.tp-char.current {
  background: #fde68a;
}
.tp-char.done {
  color: #16a34a;
}

@media (max-width: 860px) {
  .qq-app { flex-direction: column; }
  .qq-side {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eef2f7;
  }
  .qq-side-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .qq-key { min-width: 30px; height: 36px; font-size: 12px; }
  .qq-key.space { min-width: 140px; }
  .qq-char-box { width: 42px; height: 50px; font-size: 22px; }
  .qq-mixed-text { font-size: 22px; }
  .qq-mixed-text .tp-char { width: 28px; min-width: 28px; height: 40px; margin: 2px 1px; font-size: 16px; }
  .qq-hands-svg { height: 140px; }
}

.qq-center-page.qq-summary-page {
  background: radial-gradient(circle at 50% 8%, #ffe3b8 0%, #fff6ea 46%, #f6efe6 100%);
  overflow: hidden;
}
.qq-fw-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.qq-summary-card {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  text-align: center;
  border: 1.5px solid #efd0b0;
  box-shadow: 0 18px 42px rgba(92, 58, 24, 0.14);
  animation: qqPopIn .55s cubic-bezier(.16, 1.15, .32, 1) both;
}
.qq-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd56a, #f5b400);
  color: #7a4b00;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(245, 180, 0, 0.35);
}
.qq-summary-card h1 {
  margin: 14px 0 4px;
  font-size: 28px;
  font-weight: 800;
  color: #1f2a44;
}
.qq-summary-card .sub { margin-bottom: 8px; }
.qq-summary-score {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin: 4px 0 16px;
  color: var(--qq-orange);
  font-weight: 800;
  line-height: 1;
}
.qq-summary-score span {
  font-size: 72px;
  letter-spacing: -2px;
}
.qq-summary-score small {
  font-size: 28px;
  margin-bottom: 10px;
}
.qq-summary-card .qq-stats-panel {
  margin: 0 0 20px;
  background: #fff;
  border: 1.5px solid #efd0b0;
  box-shadow: none;
}
.qq-summary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.qq-summary-page .qq-summary-actions .qq-btn {
  width: auto;
  min-width: 118px;
  height: 44px;
  padding: 0 16px;
}
.qq-summary-hint {
  margin: 16px 0 0;
  color: #8b93a1;
  font-size: 13px;
  font-weight: 700;
}
.qq-summary-hint kbd {
  display: inline-block;
  margin: 0 4px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid #efd0b0;
  background: #fff;
  color: #ff7a1a;
  font-family: inherit;
  font-weight: 800;
  box-shadow: 0 2px 0 #efd0b0;
}
.qq-finish-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 246, 234, 0.94);
}
.qq-finish-mask.show { display: flex; }
.qq-finish-mask .qq-summary-card {
  animation-duration: .28s;
}
.qq-finish-mask .qq-summary-actions .qq-btn,
.qq-finish-mask .qq-login-card .qq-btn-primary {
  width: auto;
  min-width: 118px;
  height: 44px;
  padding: 0 16px;
}

.qq-ws-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.qq-ws-book {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  max-width: 460px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
}
.qq-ws-book img {
  width: 84px;
  height: 108px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.qq-ws-book .meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qq-ws-book strong { font-size: 16px; line-height: 1.4; }
.qq-ws-book em { font-style: normal; color: #64748b; font-size: 13px; }
.qq-ws-book i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #e8edf5;
  overflow: hidden;
}
.qq-ws-book i b { display: block; height: 100%; background: #348ef3; }
.qq-ws-bookhead { font-weight: 800; font-size: 18px; }
.qq-ws-top-progress { margin-left: auto; color: #64748b; font-weight: 700; }
.qq-ws-bar {
  height: 8px;
  border-radius: 99px;
  background: #e8edf5;
  overflow: hidden;
  margin-bottom: 8px;
}
.qq-ws-bar span { display: block; height: 100%; background: #348ef3; }
.qq-ws-count { color: #64748b; margin: 0 0 14px; }
.qq-ws-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.qq-ws-unit {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 108px;
  padding: 16px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
}
.qq-ws-unit .top { display: flex; justify-content: space-between; gap: 8px; }
.qq-ws-unit strong { font-size: 15px; line-height: 1.35; }
.qq-ws-pill {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}
.qq-ws-unit .foot {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: #94a3b8;
  font-size: 12px;
}
.qq-ws-unit .foot em { font-style: normal; }
.qq-ws-tip {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #c2410c;
}
.qq-ws-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 700;
}
.qq-ws-modes select { margin: 0 6px; padding: 4px 8px; border-radius: 8px; border: 1px solid #e2e8f0; }
.qq-ws-words { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.qq-ws-word {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 12px;
}
.qq-ws-word.learned { opacity: 0.72; }
.qq-ws-word b { font-size: 15px; }
.qq-ws-word span, .qq-ws-word em { color: #64748b; font-size: 12px; font-style: normal; }
.qq-ws-record-title { margin: 28px 0 10px; }
.qq-ws-records { display: flex; flex-direction: column; gap: 8px; }
.qq-ws-records a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
}
.qq-ws-records span { color: #64748b; font-size: 13px; }
.qq-word-practice .qq-ws-stats {
  max-width: 880px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.qq-word-practice .qq-ws-stats .label {
  white-space: nowrap;
}
.qq-word-practice {
  overflow: auto;
}
.qq-word-practice .qq-wb-practice-words {
  min-height: 0;
  margin: 0 auto 8px;
}
.qq-word-practice .qq-ws-prompt {
  min-height: 52px;
}
.qq-word-practice .qq-ws-input {
  background: #fff;
  border: 1px solid #f0d7be;
  box-shadow: 0 4px 14px rgba(255, 154, 60, 0.12);
}
.qq-word-practice .qq-board-wrap {
  margin-top: 6px;
}
.qq-word-practice .qq-hands {
  visibility: hidden;
}
.qq-word-practice .qq-hands.qq-hands-ready {
  visibility: visible;
}
.qq-ws-stagebar { display: flex; justify-content: center; gap: 8px; margin: 8px 0; }
.qq-ws-stagebar span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}
.qq-ws-stagebar span.on { background: #348ef3; color: #fff; }
.qq-ws-stagebar span.done { color: #348ef3; }
.qq-ws-now, .qq-ws-sub { text-align: center; color: #64748b; margin: 6px 0; }
.qq-ws-prompt {
  min-height: 72px;
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
}
.qq-ws-actions { display: flex; justify-content: center; gap: 10px; margin: 8px 0 12px; flex-wrap: wrap; }
.qq-ws-input {
  display: block;
  width: min(420px, calc(100% - 32px));
  margin: 0 auto 12px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #dbe3ee;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}
.qq-ws-fix-word { font-size: 40px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.qq-ws-shake { animation: qq-ws-shake .18s linear; }
@keyframes qq-ws-shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@media (max-width: 1100px) {
  .qq-ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .qq-ws-grid { grid-template-columns: 1fr; }
  .qq-ws-book { min-width: 0; width: 100%; }
  .qq-ws-prompt { font-size: 32px; }
}

.qq-aixer-page .qq-practice-bg { background: linear-gradient(180deg, #d9f3ea 0%, #e7f7df 45%, #f3fbe8 100%); }
.qq-aixer {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 48px;
  box-sizing: border-box;
}
.qq-aixer-top {
  width: min(820px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.qq-aixer-head {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.qq-aixer-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #334155;
  font-weight: 800;
}
.qq-aixer-book { color: #64748b; font-size: 14px; font-weight: 700; text-align: center; }
.qq-aixer-track {
  margin-top: 8px;
  height: 8px;
  background: #eef2f6;
  border-radius: 99px;
  overflow: hidden;
}
.qq-aixer-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffb347, #f38134);
  transition: width .25s ease;
}
.qq-aixer-menu {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.qq-aixer-mode {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 148px;
  padding: 22px 24px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  text-align: left;
}
.qq-aixer-mode-name { font-size: 26px; font-weight: 800; color: #1e293b; }
.qq-aixer-mode-ico {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}
.ico-basic { background: #3b82f6; }
.ico-memory { background: #fb7185; }
.ico-hand { background: #a78bfa; }
.ico-quiz { background: #64748b; }
.qq-aixer-mode.locked { background: #e8eef3; cursor: not-allowed; }
.qq-aixer-mode.locked .qq-aixer-mode-name { color: #94a3b8; }
.qq-aixer-mode.locked .qq-aixer-mode-ico { filter: grayscale(1); opacity: 0.55; }
.qq-aixer-mode.done { outline: 3px solid #86efac; }
.qq-aixer-lock {
  position: absolute;
  left: 24px;
  bottom: 16px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}
.qq-aixer-card {
  width: min(820px, 100%);
  min-height: 300px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 32px 36px 28px;
  position: relative;
  box-sizing: border-box;
}
.qq-aixer-meaning {
  min-height: 56px;
  font-size: 42px;
  font-weight: 800;
  color: #1e293b;
  padding-right: 56px;
}
.qq-aixer-phonetic {
  min-height: 28px;
  margin-top: 6px;
  color: #64748b;
  font-size: 20px;
  font-weight: 700;
}
.qq-aixer-speak {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #3dbe7a;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qq-aixer-card.is-dict .qq-aixer-speak {
  position: static;
  margin: 8px 0 12px;
}
.qq-aixer-card.is-dict .qq-aixer-meaning { min-height: 0; padding-right: 0; }
.qq-aixer-perfect {
  display: none;
  width: fit-content;
  margin: 18px auto 0;
  padding: 4px 16px;
  border-radius: 999px;
  background: #ff4d5a;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.qq-aixer-perfect.show { display: block; }
.qq-aixer-follow {
  display: block;
  margin: 48px auto 8px;
  border: 0;
  background: #ffb020;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 36px;
  cursor: pointer;
}
.qq-aixer-follow:disabled { opacity: 0.7; cursor: default; }
.qq-aixer-score {
  min-height: 28px;
  margin: 12px 0 0;
  text-align: center;
  color: #c2410c;
  font-size: 16px;
  font-weight: 800;
}
.qq-aixer-input {
  display: block;
  width: min(480px, 100%);
  height: 52px;
  margin: 22px auto 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}
.qq-aixer-input:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12); }
.qq-aixer-hint {
  margin: 14px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}
.qq-aixer-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.qq-aixer-card[hidden],
.qq-aixer-menu[hidden],
.qq-aixer-follow[hidden],
.qq-aixer-input[hidden],
.qq-aixer-speak[hidden] { display: none !important; }
.qq-aixer-card.is-basic > :not(#wsBasic) { display: none !important; }
#wsBasic[hidden] { display: none !important; }
.qq-basic-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: start;
}
.qq-basic-word { font-size: 42px; font-weight: 800; color: #0f172a; line-height: 1.1; }
.qq-basic-phones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 8px; }
.qq-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
  padding: 3px 6px;
  border-radius: 8px;
  background: #d1fae5;
  color: #047857;
  font-weight: 800;
  line-height: 1.15;
}
.qq-phone b { font-size: 13px; }
.qq-phone i { font-style: normal; font-size: 12px; }
.qq-basic-ipa, .qq-basic-mean { margin-top: 6px; color: #64748b; font-weight: 700; }
.qq-basic-speak { position: static; flex: none; }
.qq-basic-pic {
  min-height: 150px;
  border-radius: 12px;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='18' fill='none' stroke='%23cbd5e1' stroke-width='4'/%3E%3Cpath d='M22 58 L58 22' stroke='%2394a3b8' stroke-width='4'/%3E%3C/svg%3E") center 42% no-repeat;
  color: transparent;
}
.qq-read-state {
  margin: 18px auto 0;
  max-width: 460px;
  padding: 18px 22px 16px;
  border-radius: 18px;
  text-align: center;
}
.qq-read-state b {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0.14em;
}
.qq-read-state span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
}
.qq-read-state.is-hear {
  background: #eff6ff;
  color: #1d4ed8;
}
.qq-read-state.is-listen {
  background: #ecfdf5;
  color: #047857;
  animation: qq-read-pulse 1.2s ease-in-out infinite;
}
.qq-read-state.is-judge {
  background: #fff7ed;
  color: #c2410c;
}
.qq-read-state.is-judge b::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -1px;
  animation: qq-read-spin .7s linear infinite;
}
.qq-read-state.is-ok {
  background: #dcfce7;
  color: #15803d;
}
.qq-read-state.is-bad,
.qq-read-state.is-warn {
  background: #fee2e2;
  color: #b91c1c;
}
@keyframes qq-read-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}
@keyframes qq-read-spin { to { transform: rotate(360deg); } }
.qq-basic-lock { margin-top: 22px; text-align: center; }
.qq-basic-lockbar {
  display: inline-block;
  min-width: min(420px, 100%);
  padding: 12px 18px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #64748b;
  font-weight: 800;
}
.qq-basic-lock p { margin: 8px 0 0; color: #94a3b8; font-size: 13px; font-weight: 700; }
.qq-basic-input { margin-top: 18px; }
.qq-basic { position: relative; }
#wsBasicPerfect {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 4;
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(255, 77, 90, 0.28);
}
.qq-read-pop {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 6;
  margin: 0;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  padding: 18px 36px;
  border-radius: 18px;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.qq-read-pop.show {
  animation: qq-read-pop 1.2s ease;
}
.qq-read-pop.ok { background: #22c55e; box-shadow: 0 12px 28px rgba(34, 197, 94, 0.35); }
.qq-read-pop.bad { background: #ef4444; box-shadow: 0 12px 28px rgba(239, 68, 68, 0.35); }
@keyframes qq-read-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  30% { transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
}
.qq-basic-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 8px; }
.qq-basic-read { margin: 8px 0; }
.qq-basic-foot {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.qq-basic-mini { height: 6px; border-radius: 99px; background: #f1f5f9; overflow: hidden; }
.qq-basic-mini div { height: 100%; width: 0; background: #f59e0b; }
@media (max-width: 720px) {
  .qq-aixer-top { align-items: stretch; flex-direction: column; }
  .qq-aixer-head-row { flex-wrap: wrap; }
  .qq-aixer-menu { grid-template-columns: 1fr; }
  .qq-aixer-meaning { font-size: 32px; }
  .qq-aixer-card { padding: 24px 18px; }
}
