/* ===========================================================
   数学乐园 · 阶段 0：抢 20 五天探究与首页探索卡样式 (explore.css)
   沿用 2.0 温暖木桌绘本质感 · iPad 触控热区 ≥48px · 零横向滚动
   =========================================================== */

/* 1. 首页顶部大卡片：「这周的探究：抢 20」 */
.v2-exp-hero {
  position: relative;
  z-index: 2;
  background: linear-gradient(150deg, #fffdf8 0%, #eefaf4 55%, #fff5e4 100%);
  border: 2.5px solid #9ad9b5;
  border-radius: 28px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(47, 133, 90, 0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.v2-exp-copy {
  flex: 1 1 320px;
  min-width: 0;
}
.v2-exp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.v2-exp-hero h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #1f2d3d;
  line-height: 1.3;
}
.v2-exp-dayline {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: #0f766e;
}
.v2-exp-prompt {
  margin: 0;
  font-size: 15px;
  color: #475569;
  line-height: 1.55;
}
.v2-exp-done-note {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  color: #92400e;
  font-size: 14.5px;
  font-weight: 800;
}
.v2-exp-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}
.v2-exp-go-btn {
  min-height: 54px;
  min-width: 188px;
  padding: 0 26px;
  font-size: 18px;
  font-weight: 900;
}

/* 首页可选四站卡片：普通卡片视觉，无锁态 */
.v2-home-stage.is-optional {
  background: #fffdf9;
  border-color: #ead8be;
  box-shadow: 0 6px 18px rgba(140, 96, 40, 0.05);
}
.v2-flow-step.is-open {
  cursor: pointer;
}
.v2-flow-step[data-go-step] {
  cursor: pointer;
}
.v2-flow-step[data-go-step]:hover {
  border-color: #e4b678;
}

/* 微剧场答错后折叠小按钮 */
.v2-qtheater.is-offer-only {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 12px;
}
.v2-qt-offer-btn {
  min-height: 48px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 2px solid #f1cf98 !important;
  background: #fffaf0 !important;
  color: #9a3412 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 8px rgba(140, 96, 40, 0.08) !important;
}
.v2-qt-offer-btn::before {
  content: "🎬 ";
}

/* 2. #explore/race20 页面容器与五天导航条 */
.exp-wrap {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.exp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.exp-header h2 {
  margin: 0;
  font-size: 24px;
  color: #1f2d3d;
}
.exp-sub {
  font-size: 14px;
  color: #64748b;
  font-weight: 700;
}

.exp-days-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.exp-day-tab {
  min-height: 54px;
  min-width: 48px;
  padding: 6px 4px;
  border-radius: 16px;
  border: 2px solid #e6d5bc;
  background: #fffdf9;
  color: #475569;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.exp-day-tab small {
  font-size: 11.5px;
  font-weight: 700;
  color: #78716c;
}
.exp-day-tab.is-active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.14);
}
.exp-day-tab.is-active small {
  color: #047857;
}
.exp-day-tab.is-done {
  border-color: #86efac;
}
.exp-day-tab:disabled {
  opacity: 0.56;
  background: #f8f5ef;
  cursor: not-allowed;
}

.exp-unlock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
}
.exp-parent-unlock-link {
  min-height: 48px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px dashed #d6c3a5;
  background: #fffcf7;
  color: #7c6852;
  font-size: 13px;
  font-weight: 800;
}

/* 3. 今天的题 */
.exp-prompt-card {
  background: linear-gradient(150deg, #fffdf9 0%, #fff7e8 100%);
  border: 2.5px solid #edd5b1;
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.exp-prompt-main {
  flex: 1;
  min-width: 0;
}
.exp-layer-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.exp-prompt-text {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #1f2d3d;
  line-height: 1.48;
}
.exp-read-btn {
  flex-shrink: 0;
  min-width: 54px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 18px;
  border: 2px solid #e6d2b5;
  background: #fff;
  color: #9a3412;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* 4. 互动棋盘区 */
.exp-board-card {
  background: #fffdf9;
  border: 2px solid #ead8be;
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exp-board-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.exp-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
  font-size: 14.5px;
  font-weight: 800;
}
.exp-switch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.exp-switch-lbl {
  font-size: 14px;
  font-weight: 800;
  color: #475569;
}
.exp-chip {
  min-height: 48px;
  min-width: 48px;
  padding: 8px 16px;
  border-radius: 14px;
  border: 2px solid #dfd0b8;
  background: #fff;
  color: #334155;
  font-size: 15px;
  font-weight: 800;
}
.exp-chip.is-on {
  background: #1e293b;
  border-color: #1e293b;
  color: #fde68a;
}

.exp-status-banner {
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff8ec;
  border: 1.5px solid #f1cf98;
  color: #1f2d3d;
  font-size: 16.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.45;
}
.exp-status-banner.is-neutral-done {
  background: #f0f9ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

/* 0..20 / 0..30 数轴轨道 */
.exp-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.exp-cell {
  position: relative;
  min-height: 54px;
  min-width: 48px;
  padding: 4px 2px;
  border-radius: 14px;
  border: 2px solid #e2d3bc;
  background: #fff;
  color: #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 18px;
  font-weight: 900;
  user-select: none;
}
button.exp-cell {
  cursor: pointer;
}
.exp-cell-sub {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.1;
}
.exp-cell.is-start {
  background: #f8fafc;
  border-style: dashed;
}
.exp-cell.is-p1 {
  background: #ffedd5;
  border-color: #fb923c;
  color: #9a3412;
}
.exp-cell.is-p2 {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #075985;
}
.exp-cell.is-cur {
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.32);
  border-color: #ea580c;
}
.exp-cell.is-marked {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}
.exp-cell.is-goal {
  border-color: #10b981;
}

.exp-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.exp-step-btn {
  min-height: 52px;
  min-width: 116px;
  padding: 0 20px;
  border-radius: 16px;
  border: 2px solid #ea580c;
  background: #ea580c;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 4px 0 #c2410c;
}
.exp-step-btn.is-bear {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 4px 0 #0369a1;
}
.exp-step-btn.is-secondary {
  background: #fff;
  border-color: #d6c3a5;
  color: #334155;
  box-shadow: 0 4px 0 #e5d8c3;
}
.exp-step-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.exp-mark-summary {
  background: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-mark-ask {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: #78350f;
}
.exp-sub-tester {
  margin-top: 6px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 5. 常驻提示与「明天接着想」工具栏 */
.exp-hints-card {
  background: #fffcf5;
  border: 2px solid #ecd9b8;
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exp-persist-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.exp-persist-btn {
  min-height: 50px;
  min-width: 148px;
  padding: 0 20px;
  border-radius: 16px;
  border: 2px solid #d9b882;
  background: #fffbeb;
  color: #92400e;
  font-size: 16px;
  font-weight: 900;
}
.exp-persist-btn.is-park {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.exp-hint-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exp-hint-item {
  padding: 11px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #edd8b4;
  font-size: 16.5px;
  font-weight: 800;
  color: #1f2d3d;
}

/* 6. 讲一讲卡片 */
.exp-say-card {
  background: linear-gradient(150deg, #f7fee7 0%, #ecfdf5 100%);
  border: 2px solid #a7f3d0;
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exp-say-label {
  font-size: 14px;
  font-weight: 900;
  color: #047857;
}
.exp-say-prompt {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #064e3b;
  line-height: 1.45;
}
.exp-say-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.exp-say-btn {
  min-height: 50px;
  min-width: 140px;
  padding: 0 20px;
  border-radius: 16px;
  border: 2px solid #10b981;
  background: #10b981;
  color: #fff;
  font-size: 16.5px;
  font-weight: 900;
}
.exp-say-btn.is-parent {
  background: #fff;
  border-color: #6ee7b7;
  color: #065f46;
}
.exp-say-btn.is-done {
  background: #065f46;
  border-color: #065f46;
  color: #ecfdf5;
}
.exp-done-banner {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: #dcfce7;
  color: #14532d;
  font-size: 15.5px;
  font-weight: 800;
}

/* 7. 折叠家长区与观察记录表单 */
.exp-parent-zone {
  border: 2px solid #e2d4be;
  border-radius: 22px;
  background: #faf6ee;
  overflow: hidden;
}
.exp-parent-sum {
  min-height: 52px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  color: #475569;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.exp-parent-sum::-webkit-details-marker {
  display: none;
}
.exp-parent-body {
  padding: 16px 20px 20px;
  border-top: 1.5px dashed #dfd0b8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.exp-p-block {
  background: #fff;
  border: 1.5px solid #e7d8c1;
  border-radius: 16px;
  padding: 14px 16px;
}
.exp-p-block h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #9a3412;
}
.exp-p-block p,
.exp-p-block li {
  margin: 4px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #1e293b;
}
.exp-p-donts {
  margin: 6px 0 0;
  padding-left: 20px;
}

/* 附录 B 观察记录表单 */
.exp-obs-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exp-obs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-obs-field > span,
.exp-obs-field > label {
  font-size: 14px;
  font-weight: 800;
  color: #334155;
}
.exp-obs-opts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.exp-obs-opt {
  min-height: 48px;
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 2px solid #dfd0b8;
  background: #fffdf9;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.exp-obs-opt[aria-pressed="true"] {
  background: #1e293b;
  border-color: #1e293b;
  color: #fde68a;
}
.exp-obs-input {
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 2px solid #dfd0b8;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: #1e293b;
  width: 100%;
}
.exp-obs-num {
  max-width: 140px;
}
.exp-obs-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.exp-obs-status {
  font-size: 13.5px;
  font-weight: 800;
  color: #15803d;
}
.exp-obs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.exp-obs-item {
  padding: 10px 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  font-size: 13.5px;
  color: #451a03;
  line-height: 1.5;
}

.exp-confirm-modal {
  text-align: center;
  padding: 8px 4px;
}
.exp-confirm-modal h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.exp-confirm-modal p {
  margin: 0 0 16px;
  font-size: 15px;
  color: #475569;
  line-height: 1.55;
}
.exp-confirm-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* 键盘无障碍焦点环 */
.exp-wrap button:focus-visible,
.exp-wrap summary:focus-visible,
.exp-wrap input:focus-visible,
.v2-exp-hero button:focus-visible,
.v2-qt-offer-btn:focus-visible {
  outline: 3px solid #ea580c;
  outline-offset: 2px;
}

/* 窄屏适配（375px 手机与竖屏分屏，无横向溢出） */
@media (max-width: 640px) {
  .exp-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .exp-obs-opts {
    grid-template-columns: 1fr;
  }
  .exp-prompt-card {
    flex-direction: column;
    align-items: stretch;
  }
  .exp-prompt-text {
    font-size: 19px;
  }
  .exp-say-prompt {
    font-size: 19px;
  }
  .exp-day-tab {
    font-size: 12px;
    padding: 6px 2px;
  }
  .exp-day-tab small {
    font-size: 10.5px;
  }
  .v2-exp-cta {
    width: 100%;
  }
  .v2-exp-go-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-day-tab,
  .exp-cell,
  .exp-step-btn {
    transition: none !important;
    transform: none !important;
  }
}
