/* ============================================================
   ST-06 / 07 / 08 入门模块 + ST-13 语法 + ST-37 拓展内容
   前缀：in 入门 / ch 字符 / iq 测验 / gr 语法 / ex 拓展
   ============================================================ */

.in-page, .ch-page, .iq-page, .gr-page, .ex-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ================= ST-06 字符列表 ================= */

.in-tabs,
.ex-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.in-tabs::-webkit-scrollbar,
.ex-tabs::-webkit-scrollbar {
  display: none;
}

.in-tab,
.ex-tab {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-600);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-soft);
}

.in-tab.is-on,
.ex-tab.is-on {
  border-color: var(--brand-200);
  background: var(--brand-050);
  color: var(--brand-600);
  font-weight: 600;
}

.in-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--ink-400);
}

.in-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.in-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.in-legend i.learning { background: var(--warn); }
.in-legend i.mastered { background: var(--success); }

.in-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.in-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 86px;
  padding: 12px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.in-cell:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
}

.in-cell b {
  font-family: var(--font-lang);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-900);
}

.in-cell span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-400);
}

.in-cell::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.in-cell[data-status="learning"]::after { background: var(--warn); }
.in-cell[data-status="mastered"]::after { background: var(--success); }

.in-cell[data-status="mastered"] {
  background: linear-gradient(180deg, #f6fdfa, #fff);
  border-color: #d9f2e8;
}

.in-dock {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.in-dock .d-info {
  flex: 1;
  min-width: 0;
}

.in-dock .d-info b {
  font-size: 12.5px;
  color: var(--ink-900);
}

.in-dock .d-info span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-400);
}

.in-dock .d-bar {
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

.in-dock .d-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--success);
}

/* ================= ST-07 字符详情 ================= */

.ch-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ch-bigcard {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 300px;
  border-radius: 24px;
  background:
    radial-gradient(300px 200px at 80% 0%, rgba(91, 139, 255, 0.18), transparent 70%),
    linear-gradient(160deg, #f7faff, #eef3ff);
  border: 1px solid #e2e9f8;
}

.ch-bigcard b {
  font-family: var(--font-lang);
  font-size: 132px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-900);
}

.ch-bigcard span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink-400);
}

.ch-bigcard em {
  font-style: normal;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #fff;
  font-size: 10.5px;
  color: var(--ink-600);
}

.ch-main {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.ch-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-2);
}

.ch-tabs button {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-600);
}

.ch-tabs button.is-on {
  background: #fff;
  color: var(--brand-600);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.ch-panel {
  margin-top: 18px;
}

.ch-audio {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.ch-audio .a-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.28);
}

.ch-audio .a-main {
  flex: 1;
  min-width: 0;
}

.ch-audio .a-main b {
  font-size: 13px;
  color: var(--ink-900);
}

.ch-audio .a-main span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-400);
}

.ch-wave {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 46px;
  margin-top: 10px;
}

.ch-wave i {
  flex: none;
  width: 4px;
  border-radius: 3px;
  background: var(--brand-200);
  transform-origin: bottom;
}

.ch-wave.is-playing i {
  animation: ch-wave 0.9s ease-in-out infinite alternate;
}

.ch-wave.is-playing i:nth-child(odd) { animation-delay: 0.18s; }
.ch-wave.is-playing i:nth-child(3n) { animation-delay: 0.36s; }

@keyframes ch-wave {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

.ch-speed {
  flex: none;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-600);
}

.ch-speed.is-on {
  border-color: var(--brand-200);
  background: var(--brand-050);
  color: var(--brand-600);
  font-weight: 600;
}

.ch-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    repeating-linear-gradient(0deg, transparent 0 49.6%, var(--line-soft) 49.6% 50.4%, transparent 50.4% 100%),
    repeating-linear-gradient(90deg, transparent 0 49.6%, var(--line-soft) 49.6% 50.4%, transparent 50.4% 100%),
    #fff;
}

.ch-canvas-wrap .ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-lang);
  font-size: 190px;
  line-height: 1;
  color: rgba(31, 35, 41, 0.075);
  pointer-events: none;
  user-select: none;
}

.ch-canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.ch-tools {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.ch-tools button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-600);
}

.ch-tools button.primary {
  border-color: transparent;
  background: var(--brand-500);
  color: #fff;
  font-weight: 600;
}

.ch-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--brand-050);
  font-size: 12px;
  line-height: 1.7;
  color: var(--brand-600);
}

.ch-rec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.ch-rec-btn {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
  transition: transform var(--dur-fast) var(--ease-soft), background var(--dur-fast);
  touch-action: none;
}

.ch-rec-btn:active,
.ch-rec.is-on .ch-rec-btn {
  transform: scale(0.94);
  background: var(--danger-deep);
}

.ch-rec p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-600);
  text-align: center;
}

.ch-rec .rec-time {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-900);
}

.ch-ab {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ch-ab button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: var(--ink-600);
}

.ch-ab button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ch-words {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ch-word {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
}

.ch-word b {
  font-family: var(--font-lang);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-900);
}

.ch-word span {
  flex: 1;
  font-size: 12px;
  color: var(--ink-600);
}

.ch-word button {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-600);
}

.ch-empty {
  padding: 26px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-400);
}

.ch-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.ch-footer button,
.ch-footer a {
  flex: 1;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
}

.ch-footer .mark {
  border-color: transparent;
  background: var(--brand-500);
  color: #fff;
}

.ch-footer .mark.is-done {
  background: var(--success);
}

/* ================= ST-08 入门测验 ================= */

.iq-progress {
  height: 5px;
  margin: 14px 0 16px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

.iq-progress i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  transition: width var(--dur-base) var(--ease-soft);
}

.iq-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.iq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.iq-top span {
  font-size: 11.5px;
  color: var(--ink-400);
}

.iq-type {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--brand-050);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-600);
}

.iq-stem {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-900);
  text-align: center;
}

.iq-kana {
  margin: 18px auto 0;
  font-family: var(--font-lang);
  font-size: 78px;
  line-height: 1.1;
  text-align: center;
  color: var(--ink-900);
}

.iq-audio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.iq-audio button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-500);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.26);
}

.iq-audio span {
  font-size: 11.5px;
  color: var(--ink-400);
}

.iq-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.iq-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  font-family: var(--font-lang);
  font-size: 21px;
  color: var(--ink-900);
  transition: all var(--dur-fast) var(--ease-soft);
}

.iq-opt .key {
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
}

.iq-opt:hover {
  border-color: var(--brand-200);
}

.iq-opt.is-on {
  border-color: var(--brand-500);
  background: var(--brand-050);
  color: var(--brand-600);
}

.iq-opt.is-correct {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success-deep);
}

.iq-opt.is-wrong {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger-deep);
}

.iq-write {
  margin-top: 18px;
}

.iq-write .ch-canvas-wrap {
  max-width: 300px;
}

.iq-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.iq-footer .spacer { flex: 1; }

.iq-footer button {
  height: 44px;
  min-width: 100px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

.iq-footer button.primary {
  border-color: transparent;
  background: var(--brand-500);
  color: #fff;
}

.iq-footer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.iq-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-400);
}

/* 结果 */
.iq-result {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.iq-score {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(360px 200px at 90% -30%, rgba(18, 184, 134, 0.2), transparent 70%),
    linear-gradient(135deg, #101d38, #0a1428);
  color: var(--on-dark-1);
}

.iq-ring {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--success) calc(var(--v, 80) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.iq-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #0d1a31;
}

.iq-ring b {
  position: relative;
  font-family: var(--font-mono);
  font-size: 30px;
  color: #fff;
}

.iq-ring b small {
  font-size: 11px;
  color: var(--on-dark-2);
}

.iq-score .s-main b {
  font-size: 18px;
  color: #fff;
}

.iq-score .s-main p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--on-dark-2);
}

.iq-score .s-main .pass {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(18, 184, 134, 0.16);
  font-size: 11px;
  font-weight: 600;
  color: #7fe3c2;
}

.iq-wrong-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.iq-wrong {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7f7;
  border: 1px solid #f8dede;
}

.iq-wrong b {
  font-family: var(--font-lang);
  font-size: 24px;
  color: var(--ink-900);
}

.iq-wrong .w-main {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-600);
}

.iq-wrong .w-main .bad { color: var(--danger-deep); font-weight: 600; }
.iq-wrong .w-main .ok { color: var(--success-deep); font-weight: 600; }

.iq-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.iq-actions a,
.iq-actions button {
  flex: 1;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

.iq-actions .primary {
  border-color: transparent;
  background: var(--brand-500);
  color: #fff;
}

/* ================= ST-13 语法讲解 ================= */

.gr-anchors {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.gr-anchors::-webkit-scrollbar { display: none; }

.gr-anchor {
  flex: none;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-600);
  white-space: nowrap;
}

.gr-anchor.is-on {
  border-color: var(--brand-200);
  background: var(--brand-050);
  color: var(--brand-600);
  font-weight: 600;
}

.gr-card {
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 12px;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}

.gr-card.is-active {
  border-color: var(--brand-200);
  box-shadow: 0 10px 26px rgba(47, 107, 255, 0.1);
}

.gr-card .g-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-400);
}

.gr-card h3 {
  margin-top: 6px;
  font-family: var(--font-lang);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
}

.gr-sec {
  margin-top: 16px;
}

.gr-sec h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
}

.gr-sec h4::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--brand-400);
}

.gr-sec p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-600);
}

.gr-eg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--brand-200);
  border-radius: 0 8px 8px 0;
  background: var(--surface-2);
}

.gr-eg .eg-txt {
  font-family: var(--font-lang);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-900);
}

.gr-eg .eg-txt small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--ink-400);
}

.gr-eg button {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-600);
  box-shadow: var(--shadow-card);
}

.gr-diff {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.gr-diff-row {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-600);
}

.gr-diff-row b {
  color: var(--ink-900);
}

.gr-quiz {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.gr-quiz .q-stem {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-900);
}

.gr-quiz .q-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.gr-quiz .q-opt {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  color: var(--ink-600);
}

.gr-quiz .q-opt.is-ok {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success-deep);
  font-weight: 600;
}

.gr-quiz .q-opt.is-bad {
  border-color: var(--danger);
  background: var(--danger-bg);
  color: var(--danger-deep);
}

.gr-quiz .q-exp {
  display: none;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-500);
}

.gr-quiz.is-answered .q-exp {
  display: block;
}

.gr-mark {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.gr-mark button {
  height: 46px;
  min-width: 200px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--brand-500);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.gr-mark button.is-done {
  background: var(--success);
}

/* ================= ST-37 拓展内容 ================= */

.ex-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--r-xl);
  color: var(--on-dark-1);
  background:
    radial-gradient(420px 220px at 86% -30%, rgba(91, 139, 255, 0.34), transparent 70%),
    linear-gradient(135deg, #101d38, #0a1428);
  box-shadow: 0 16px 36px rgba(10, 25, 55, 0.18);
}

.ex-hero::after {
  content: "読";
  position: absolute;
  right: 18px;
  bottom: -44px;
  font-family: var(--font-lang);
  font-size: 150px;
  line-height: 1;
  color: #fff;
  opacity: 0.04;
  pointer-events: none;
}

.ex-hero .h-cover {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(91, 139, 255, 0.9), rgba(30, 79, 216, 0.9));
  font-family: var(--font-lang);
  font-size: 38px;
  font-weight: 700;
  color: #fff;
}

.ex-hero .h-main {
  flex: 1;
  min-width: 0;
}

.ex-hero .h-main span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--on-dark-3);
}

.ex-hero .h-main h1 {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 700;
}

.ex-hero .h-main p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--on-dark-2);
}

.ex-hero .h-btn {
  flex: none;
  height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-600);
}

.ex-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.ex-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.ex-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
}

.ex-card .c-cover {
  display: grid;
  place-items: center;
  flex: none;
  width: 86px;
  height: 86px;
  border-radius: 14px;
  background: linear-gradient(150deg, #eef4ff, #dce7ff);
  font-family: var(--font-lang);
  font-size: 30px;
  font-weight: 700;
  color: var(--brand-600);
}

.ex-card[data-tone="green"] .c-cover {
  background: linear-gradient(150deg, #e9f9f3, #ccf0e3);
  color: var(--success-deep);
}

.ex-card[data-tone="amber"] .c-cover {
  background: linear-gradient(150deg, #fff7e8, #ffe9c2);
  color: var(--warn-deep);
}

.ex-card[data-tone="rose"] .c-cover {
  background: linear-gradient(150deg, #fdf0e9, #f9ddd0);
  color: var(--danger-deep);
}

.ex-card .c-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ex-card .c-tag {
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-500);
}

.ex-card .c-main b {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-900);
}

.ex-card .c-main p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-600);
}

.ex-card .c-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  font-size: 10.5px;
  color: var(--ink-400);
}

.ex-card .c-foot .go {
  font-weight: 600;
  color: var(--brand-600);
}

/* ================= 手机壳 ================= */

html.is-mobile .in-grid {
  gap: 8px;
}

html.is-mobile .in-cell {
  min-height: 74px;
  padding: 10px 2px;
  border-radius: 12px;
}

html.is-mobile .in-cell b {
  font-size: 23px;
}

html.is-mobile .in-cell span {
  font-size: 9px;
}

html.is-mobile .in-tab,
html.is-mobile .ex-tab {
  height: 40px;
}

html.is-mobile .in-dock {
  padding-left: 16px;
  padding-right: 16px;
}

html.is-mobile .in-dock .primary-btn {
  flex: none;
  height: 44px;
}

html.is-mobile .ch-layout {
  grid-template-columns: 1fr;
}

html.is-mobile .ch-bigcard {
  position: relative;
  height: 200px;
}

html.is-mobile .ch-bigcard b {
  font-size: 92px;
}

html.is-mobile .ch-main {
  padding: 16px;
}

html.is-mobile .ch-tabs button {
  height: 40px;
}

html.is-mobile .ch-canvas-wrap .ghost {
  font-size: 160px;
}

html.is-mobile .ch-tools button {
  height: 42px;
}

html.is-mobile .ch-footer {
  flex-wrap: wrap;
}

html.is-mobile .ch-footer button,
html.is-mobile .ch-footer a {
  flex: 1;
  min-width: calc(50% - 5px);
}

html.is-mobile .ch-footer .mark {
  order: -1;
  flex-basis: 100%;
}

html.is-mobile .iq-card,
html.is-mobile .iq-result {
  padding: 18px 16px;
}

html.is-mobile .iq-kana {
  font-size: 62px;
}

html.is-mobile .iq-options {
  grid-template-columns: 1fr;
}

html.is-mobile .iq-opt {
  min-height: 52px;
  font-size: 19px;
}

html.is-mobile .iq-score {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}

html.is-mobile .iq-actions {
  flex-direction: column;
}

html.is-mobile .gr-card {
  padding: 16px;
}

html.is-mobile .gr-card h3 {
  font-size: 18px;
}

html.is-mobile .gr-quiz .q-opt {
  height: 40px;
}

html.is-mobile .gr-anchor {
  height: 40px;
}

html.is-mobile .ex-hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
}

html.is-mobile .ex-hero .h-cover {
  width: 64px;
  height: 64px;
  font-size: 28px;
}

html.is-mobile .ex-hero .h-main h1 {
  font-size: 19px;
}

html.is-mobile .ex-hero .h-btn {
  height: 44px;
  width: 100%;
}

html.is-mobile .ex-list {
  grid-template-columns: 1fr;
}

html.is-mobile .ex-card .c-cover {
  width: 72px;
  height: 72px;
  font-size: 26px;
}
