/* ==========================================================================
   ZAAT Speak Quest · pages.css
   页面专属区块：首页 / 任务体系 / 任务详情 / 报告示例 / 个人中心 / 云端启动
   共享组件见 components.css，通用样式见 base.css
   ========================================================================== */

/* ==========================================================================
   一、首页
   ========================================================================== */

/* 1. 首屏 Hero（世界地图整块背景，与任务体系页同款处理） */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background: var(--bg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: stretch;  /* 左右两列等高，live-panel 撑满与文案区齐平 */
}

.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-copy p { margin-top: 16px; max-width: 520px; color: var(--text-soft); text-shadow: 0 1px 12px rgba(3, 8, 18, .7); }
.home-hero h1 { text-shadow: 0 2px 18px rgba(3, 8, 18, .65); }

.feature-cascade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 28px; }

.feature-cascade article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(4, 11, 22, .62);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.feature-cascade i {
  grid-row: span 2;
  align-self: center;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  color: #bdf1ff;
  background: rgba(56, 225, 255, .12);
  border: 1px solid rgba(56, 225, 255, .3);
}

.feature-cascade strong { font-size: 13.5px; }
.feature-cascade span { font-size: 12px; color: var(--text-muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 首屏大号体验按钮：内含划线原价 + 限时价，限时价是重点 */
.btn-hero {
  min-height: 64px;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 26px;
  border-radius: 16px;
  text-align: left;
}

.btn-hero .bh-copy { display: grid; gap: 1px; flex: 1; }
.btn-hero strong { font-size: 21px; letter-spacing: .02em; }

.btn-hero .bh-price { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.btn-hero .bh-price b { font-size: 16px; font-weight: 800; }

.btn-hero .bh-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 19px;
  color: var(--gold);
  background: rgba(36, 21, 0, .92);
}

/* 2. Live Quest 预览面板（浮在地图上的 HUD 玻璃面板，高度与左侧文案区一致） */
.live-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;  /* 标签 / 轮播图撑满 / 缩略图贴底 */
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(6, 14, 28, .72);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.live-panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--text-muted);
}

.live-panel-top::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse-dot 1.8s ease infinite;
}

@keyframes pulse-dot { 50% { opacity: .35; } }

.quest-shot { display: grid; gap: 10px; margin: 0; }  /* 清除 figure 默认边距，宽度与 live-thumbs 对齐 */

.quest-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transition: opacity .18s ease;
}

.quest-shot img.is-fading { opacity: 0; }
.quest-shot strong { display: block; font-size: 14px; }
.quest-shot span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); }

/* 轮播缩略图指示器：点击切换，当前张金色描边 */
.live-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.live-thumbs button {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: .7;
  transition: opacity .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.live-thumbs button img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.live-thumbs button:hover { opacity: 1; border-color: rgba(56, 225, 255, .5); }

.live-thumbs button.is-active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

/* 3. 第一任务体验（First Quest + Mission 01 合并区块） */
.trial-store { padding: 8px 0 72px; }

.quest-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas:
    "media copy"
    "steps steps";
  gap: 24px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(17, 36, 62, .92), rgba(8, 18, 34, .92));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}

/* 左侧：任务海报（图 + Mission 01 信息）——与任务地图卡片同款：大图打底、文字落在图上 */
.quest-media {
  grid-area: media;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
}

.quest-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.quest-media:hover > img { transform: scale(1.04); }

/* 深色渐变只压在底部文字区，图片主体保持原亮度 */
.quest-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0), rgba(4, 10, 20, .58) 46%, rgba(4, 10, 20, .94));
}

.quest-media-body { position: relative; z-index: 1; display: grid; gap: 8px; }
.quest-media-body .eyebrow { color: var(--gold); }
.quest-media-body .eyebrow::before { background: linear-gradient(90deg, var(--gold), transparent); }
.quest-media-body h2 { font-size: clamp(22px, 2.2vw, 27px); text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.quest-media-body p { font-size: 13.5px; color: var(--text-soft); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.quest-media-body a { margin-top: 6px; font-size: 13.5px; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* 右侧：体验文案 + 价格 + 转化 */
.quest-copy { grid-area: copy; display: grid; gap: 14px; align-content: center; }
.quest-copy .eyebrow { color: var(--gold); }
.quest-copy .eyebrow::before { background: linear-gradient(90deg, var(--gold), transparent); }
.quest-copy > p { color: var(--text-soft); font-size: 14.5px; }
.quest-copy .btn { justify-self: start; }

.price-grid { display: flex; gap: 12px; }

.price-grid > div {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(5, 12, 24, .6);
  border: 1px solid var(--line);
}

/* 只作用于「单任务价格框」，避免污染格内的按钮文字颜色 */
.price-single b { display: block; font-size: 20px; color: var(--gold); }
.price-single span { font-size: 12px; color: var(--text-muted); }

/* 单任务价格框：标签在上、价格在下 */
.price-single { display: grid; gap: 2px; align-content: center; }

/* 限时价按钮：与首屏「开始体验」同款大按钮（文字同色、无箭头），29.9元 + 原价/限时价整体做进按钮里 */
.price-grid .price-cta { flex: 1; min-width: 0; padding: 8px 20px; }

/* 底部：任务示例 60 分钟流程（横排五步） */
.quest-steps {
  grid-area: steps;
  display: grid;
  gap: 12px;
  padding: 20px 22px 22px;
  border-radius: var(--radius-lg);
  background: rgba(5, 12, 24, .55);
  border: 1px solid var(--line);
}

.quest-steps > b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.quest-steps ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

.quest-steps li {
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.quest-steps em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--cyan); }
.quest-steps strong { font-size: 14px; }
.quest-steps span { font-size: 12px; line-height: 1.6; color: var(--text-muted); }

/* 4. 家长理由（三卡） */
.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.value-cards article {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}

.value-cards article b {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 30px;
  font-weight: 800;
  color: rgba(148, 196, 255, .12);
}

.value-cards h3 { margin: 10px 0 8px; }
.value-cards p { font-size: 13.5px; color: var(--text-muted); }

.value-cards img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

/* 6. 体系四部分卡 */
.part-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.part-cards article {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}

.part-cards article:hover { transform: translateY(-3px); border-color: rgba(56, 225, 255, .4); }
.part-cards article > span { font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--cyan); }
.part-cards article > b { font-size: 12.5px; color: var(--gold); font-weight: 700; }
.part-cards article > p { font-size: 13px; color: var(--text-muted); }
.part-cards article > a { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--text-soft); }
.part-cards article > a:hover { color: var(--cyan); }

/* 7. 任务地图（整卡图片背景 + 底部渐变压暗，文字清晰、图片完整铺满） */
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.map-head p { margin-top: 10px; color: var(--text-soft); max-width: 560px; }
.map-head img { width: 74px; opacity: .8; }

.map-board { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }

.map-board article {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}

.map-board article:hover { transform: translateY(-4px); border-color: rgba(56, 225, 255, .45); }

.map-board article img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  transition: opacity .25s ease, transform .35s ease;
}

.map-board article:hover img { opacity: .68; transform: scale(1.04); }

.map-board article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 20, .1), rgba(4, 10, 20, .22) 45%, rgba(4, 10, 20, .9));
}

.map-board article b {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-ink);
  background: var(--gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.map-board article div { position: relative; z-index: 1; display: grid; gap: 2px; }
.map-board h3 { font-size: 19px; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.map-board p { font-size: 12.5px; color: var(--text-soft); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

.map-board .path {
  width: 30px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

/* 四阶段任务地图 TAB（lessons 页）：点击卡片切换下方对应部分 */
.map-board .map-tab { cursor: pointer; }

.map-board .map-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.map-board .map-tab.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 10px 26px rgba(255, 200, 90, .14);
}

.map-board .map-tab.is-active img { opacity: .8; }

.map-board .map-tab.is-active::after {
  background: linear-gradient(180deg, rgba(4, 10, 20, .05), rgba(4, 10, 20, .18) 45%, rgba(4, 10, 20, .82));
}

/* TAB 模式下未选中的部分整体隐藏 */
.system-part[hidden] { display: none; }

/* 8. 价格方案 */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.plans-grid article {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}

.plans-grid article > span { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.plans-grid article h3 { font-size: 28px; color: var(--gold); }
.plans-grid article p { font-size: 12.5px; color: var(--text-muted); min-height: 42px; }
.plans-grid article .btn { margin-top: 10px; }

/* 超值角标：挂在卡片上边框上，与框一体，不占内容行 */
.plans-grid .featured {
  border-color: rgba(255, 210, 94, .6);
  background: linear-gradient(180deg, rgba(255, 210, 94, .1), rgba(8, 18, 34, .94));
  box-shadow: 0 14px 40px rgba(255, 190, 60, .12);
}

.plans-grid .featured::before {
  content: "超值";
  position: absolute;
  top: -1px;
  right: 20px;
  padding: 3px 14px;
  border-radius: 0 0 9px 9px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--gold-ink);
  background: linear-gradient(135deg, #ffe08a, var(--gold-deep));
}

/* 9. 邀请奖励 */
.invite-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; }
.invite-grid p { margin-top: 14px; color: var(--text-soft); max-width: 480px; }
.invite-grid .btn { margin-top: 22px; }

.invite-console {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(17, 36, 62, .95), rgba(8, 18, 34, .95));
  border: 1px dashed var(--line-strong);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.invite-console strong { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.invite-console p { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.invite-console b { font-size: 30px; letter-spacing: .12em; color: var(--gold); }

.invite-console > div:last-child { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }

/* 10. 报告价值 */
.report-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 34px; align-items: center; }
.report-grid > div p { margin-top: 14px; color: var(--text-soft); }
.report-grid .btn { margin-top: 22px; }

.report-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.report-panel > div {
  position: relative;
  padding: 22px 14px 18px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

/* 三张数据卡边框分色 */
.report-panel .tone-gold { border-color: rgba(255, 210, 94, .45); }
.report-panel .tone-cyan { border-color: rgba(56, 225, 255, .4); }
.report-panel .tone-mint { border-color: rgba(125, 240, 182, .4); }

.report-panel b { font-size: 24px; color: var(--gold); }
.report-panel span { font-size: 12px; color: var(--text-muted); }

/* 结论角标：挂在卡片右上角、与边框一体（同「超值」角标样式） */
.report-panel .badge,
.score-grid .badge {
  position: absolute;
  top: -1px;
  right: 12px;
  padding: 2px 12px;
  border-radius: 0 0 9px 9px;
  border-top: 0;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
}

.tone-gold .badge { color: #ffdf9e; background: rgba(255, 210, 94, .14); border: 1px solid rgba(255, 210, 94, .5); border-top: 0; }
.tone-cyan .badge { color: #9fe9ff; background: rgba(56, 225, 255, .1); border: 1px solid rgba(56, 225, 255, .45); border-top: 0; }
.tone-mint .badge { color: #a5f7cd; background: rgba(125, 240, 182, .12); border: 1px solid rgba(125, 240, 182, .45); border-top: 0; }

.report-panel article {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(5, 12, 24, .6);
  border: 1px solid var(--line);
}

.report-panel article img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.report-panel article p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 11. 底部转化区 */
.final-cta { padding: 72px 0; text-align: center; }

.final-cta .container {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 28px;
  border-radius: 24px;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(255, 210, 94, .1), transparent 70%),
    linear-gradient(180deg, rgba(14, 30, 52, .8), rgba(8, 18, 34, .8));
  border: 1px solid var(--line-strong);
}

.final-cta p { color: var(--text-soft); max-width: 520px; }
.final-cta .hero-cta { justify-content: center; }

.compliance-note {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: nowrap; /* 合规说明保持一行 */
}

/* ==========================================================================
   二、任务体系页
   ========================================================================== */

.lessons-hero {
  position: relative;
  overflow: hidden;
  padding: 154px 0 144px;
  background: var(--bg);
}

/* 世界地图铺满标题区做背景：横向压暗护住左侧文字，纵向渐隐融入页面 */
.map-hero-bg { position: absolute; inset: 0; z-index: 0; }

.map-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: .74;
}

.map-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 26, .86) 0%, rgba(5, 13, 26, .48) 46%, rgba(5, 13, 26, .08) 100%),
    linear-gradient(180deg, rgba(5, 13, 26, .26) 0%, rgba(5, 13, 26, 0) 32%, rgba(5, 13, 26, .5) 80%, var(--bg) 100%);
}

/* 文字直接落在地图上（无边框面板），靠遮罩和投影保证可读 */
.lessons-hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
}

/* 右侧数据小组件：轻量 HUD 面板浮在地图上 */
.lessons-hero .stat-strip > div {
  background: rgba(4, 11, 22, .66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lessons-hero-panel h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 14px 0 12px;
  text-shadow: 0 2px 18px rgba(3, 8, 18, .65);
}
.lessons-hero-panel > div > p { color: var(--text-soft); text-shadow: 0 1px 12px rgba(3, 8, 18, .7); }

.title-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.lessons-side { display: grid; gap: 14px; align-content: center; }

.lessons-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 体系分区（4×24 任务）：标题区带外框面板 */
.system-part { padding: 40px 0 28px; }

/* 分区标题：任务地图同款——阶段代表图打底 + 横向压暗护字，文字直接落在图上 */
.system-part-head {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 22px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  border: 1px solid var(--line);
}

.system-part-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
}

.system-part-head::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 左侧文字重，向右渐亮露出图片 */
  background: linear-gradient(90deg, rgba(4, 10, 20, .92), rgba(4, 10, 20, .55) 55%, rgba(4, 10, 20, .3));
}

.system-part-copy, .system-part-price { position: relative; z-index: 1; }

.system-part-copy > span { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--cyan); }
.system-part-copy h2 { margin: 8px 0 8px; }
.system-part-copy p { font-size: 13.5px; color: var(--text-muted); max-width: 620px; }
.system-part-copy p b { color: var(--gold); font-weight: 700; }

.part-mini-stats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.system-part-price {
  flex-shrink: 0;
  width: 250px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid rgba(255, 210, 94, .35);
  display: grid;
  gap: 6px;
  align-content: start;
}

.system-part-price > span { font-size: 12px; color: var(--text-muted); }
.system-part-price strong { font-size: 24px; color: var(--gold); }
.system-part-price strong del { font-size: 14px; color: var(--text-muted); margin-right: 6px; }
.system-part-price em { font-style: normal; font-size: 11.5px; color: var(--gold); }
.system-part-price p { font-size: 12px; color: var(--text-muted); }

/* 复练卡 */
.replay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.replay-grid article { display: grid; gap: 8px; align-content: start; padding: 24px 22px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); }

.replay-grid article > span { font-size: 12px; font-weight: 700; color: var(--cyan); }
.replay-grid h3 { font-size: 17px; }
.replay-grid .price-row strong { font-size: 26px; color: var(--gold); }
.replay-grid .price-row em { font-style: normal; font-size: 12px; color: var(--text-muted); margin-left: 6px; }
.replay-grid p { font-size: 12.5px; color: var(--text-muted); min-height: 42px; }
.replay-grid .btn { margin-top: 8px; }

.replay-grid .featured { border-color: rgba(255, 210, 94, .5); background: linear-gradient(180deg, rgba(255, 210, 94, .07), rgba(8, 18, 34, .9)); }

/* ==========================================================================
   三、任务详情页（task-detail / lesson-first-stone-tool 共用）
   ========================================================================== */

.task-hero { padding: 56px 0 48px; }

.task-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }

.task-kicker-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 16px; }
.task-kicker-row > strong { font-size: 12.5px; color: var(--text-muted); }

.task-hero-grid p { margin-top: 14px; color: var(--text-soft); max-width: 560px; }
.task-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.task-quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }

.task-quick-stats > div {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
}

.task-quick-stats b { display: block; font-size: 18px; color: var(--gold); }
.task-quick-stats span { font-size: 11.5px; color: var(--text-muted); }

.task-media { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); }
.task-media img, .task-media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.task-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(4, 10, 20, .9));
}

.task-media span { font-size: 10.5px; letter-spacing: .2em; color: var(--cyan); font-weight: 700; }
.task-media strong { display: block; font-size: 14px; }

/* 任务内容四卡 */
.brief-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.brief-grid article { padding: 22px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); }
.brief-grid article > span { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--cyan); }
.brief-grid h3 { margin: 10px 0 8px; font-size: 16px; }
.brief-grid p { font-size: 13px; color: var(--text-muted); }

/* 流程 */
.task-flow { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; }
.task-flow-copy p { margin-top: 12px; color: var(--text-soft); font-size: 14px; }

.flow-list { display: grid; gap: 10px; }

.flow-list > div {
  display: grid;
  grid-template-columns: 64px 110px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
}

.flow-list em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--cyan); }
.flow-list strong { font-size: 14px; }
.flow-list span { font-size: 12.5px; color: var(--text-muted); }

/* 口语目标 + 报告预览 */
.task-goal-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: stretch; }

.language-panel { padding: 26px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); }
.language-panel h2 { font-size: 19px; margin: 12px 0 16px; }

.phrase-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

.phrase-cloud span {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #bdf1ff;
  background: rgba(56, 225, 255, .08);
  border: 1px solid rgba(56, 225, 255, .28);
}

.report-preview { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); }
.report-preview video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.report-preview > div { padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.report-preview span { font-size: 11px; letter-spacing: .2em; color: var(--gold); font-weight: 700; }
.report-preview p { font-size: 12.5px; color: var(--text-muted); }

/* --- 5. 教学层：口语槽位 / 词汇 / 场景 / 学习目标 / 通关条件 --- */

.task-title-en { margin-top: -8px !important; font-size: 13.5px; color: var(--cyan); font-weight: 600; letter-spacing: .02em; }

.detail-block { margin-top: 40px; }
.detail-block[hidden] { display: none; }
.detail-block-head { margin-bottom: 18px; }
.detail-block-head h3 { font-size: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.detail-block-head small { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--text-muted); text-transform: uppercase; }
.detail-block-head p { font-size: 13.5px; line-height: 1.75; color: var(--text-muted); margin-top: 8px; max-width: 820px; }
.detail-block-head b { color: var(--text-soft); }

.slot-type {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.slot-type.t-core { color: var(--gold-ink); background: var(--gold); }
.slot-type.t-ext { color: #bdf1ff; background: rgba(56, 225, 255, .1); border: 1px solid rgba(56, 225, 255, .3); }
.slot-type.t-ch { color: #0c2b1a; background: var(--mint); }

.slot-group { margin-top: 22px; }
.slot-group:first-child { margin-top: 0; }
.slot-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.slot-group-head b { font-size: 15.5px; }
.slot-group-head span { font-size: 12px; color: var(--text-muted); }

.slot-list { display: grid; gap: 10px; }
.slot-item {
  padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--panel-soft); border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start;
}
.slot-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slot-no {
  min-width: 34px; text-align: center; padding: 1px 6px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  background: rgba(148, 196, 255, .08); border: 1px solid var(--line);
}
.slot-fn { font-size: 13.5px; color: var(--text-soft); font-weight: 600; }
.slot-sentence { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.5; }
.slot-variants { margin: 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.65; }
.slot-variants span { color: var(--text-soft); }
.slot-trigger {
  align-self: center; justify-self: end; max-width: 220px; text-align: right;
  font-size: 11.5px; color: var(--text-muted);
}
@media (max-width: 720px) {
  .slot-item { grid-template-columns: 1fr; }
  .slot-trigger { justify-self: start; text-align: left; max-width: none; }
}

.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.word-card { padding: 12px 14px; border-radius: var(--radius-md); background: var(--panel-soft); border: 1px solid var(--line); display: grid; gap: 3px; }
.word-card b { font-size: 14px; color: var(--text); }
.word-card i { font-style: normal; font-size: 12.5px; color: var(--gold); }
.word-card span { font-size: 12px; line-height: 1.6; color: var(--text-muted); }

.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.zone-card {
  padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--panel-soft); border: 1px solid var(--line);
  display: grid; gap: 6px; align-content: start;
}
.zone-card > b { font-size: 14.5px; color: var(--text); }
.zone-card > i { font-style: normal; font-size: 12.5px; color: var(--gold); }
.zone-card .zone-en { margin: 2px 0; font-size: 13.5px; font-weight: 600; color: var(--cyan); line-height: 1.55; }
.zone-card > span { font-size: 12px; line-height: 1.65; color: var(--text-muted); }
.zone-card .zone-use { color: var(--text-soft); }

.obj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.obj-card {
  padding: 16px 18px; border-radius: var(--radius-md);
  background: var(--panel-soft); border: 1px solid var(--line);
  display: grid; gap: 6px; align-content: start;
}
.obj-card .obj-no {
  justify-self: start; padding: 1px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: var(--cyan);
  background: rgba(56, 225, 255, .08); border: 1px solid rgba(56, 225, 255, .25);
}
.obj-card > b { font-size: 14.5px; color: var(--text); }
.obj-card .obj-en { margin: 2px 0; font-size: 13.5px; font-weight: 600; color: var(--cyan); line-height: 1.55; }
.obj-card > span { font-size: 12px; line-height: 1.65; color: var(--text-muted); }
.obj-card .obj-ok { color: var(--mint); }

.detail-callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 40px; }
.detail-callouts[hidden] { display: none; }
.callout-card { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-strong); display: grid; gap: 6px; align-content: start; }
.callout-card[hidden] { display: none; }
.callout-card span { font-size: 11px; letter-spacing: .2em; color: var(--gold); font-weight: 700; }
.callout-card strong { font-size: 15px; }
.callout-card p { font-size: 13px; line-height: 1.7; color: var(--text-soft); }
.callout-card.mint span { color: var(--mint); }

/* 列表卡片简述：最多三行，超出省略 */
.task-card-body p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* 任务详情页：真实课堂节奏时间轴（阶段名 + 活动 + 目标输出） */
.task-flow .flow-list > div { grid-template-columns: 76px 1fr; row-gap: 4px; }
.task-flow .flow-list > div > em { grid-row: 1; }
.task-flow .flow-list > div > strong,
.task-flow .flow-list > div > span { grid-column: 2; }
.task-flow .flow-list > div > strong { font-size: 15px; }
.task-flow .flow-list .flow-stage-en { margin-left: 8px; font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.task-flow .flow-list .flow-output { color: var(--gold); font-weight: 600; }

/* ==========================================================================
   四、报告示例页
   ========================================================================== */

/* 报告页整体比首页更紧凑，避免松散 */
body.report-page .section { padding: 44px 0; }
body.report-page .section-tight { padding: 32px 0; }
body.report-page .section-head { margin-bottom: 26px; }
body.report-page .section-head h2 { margin: 10px 0 8px; }
body.report-page .section-head p { font-size: 14px; }
body.report-page .final-cta { padding: 48px 0 56px; }
body.report-page .final-cta .container { padding: 36px 24px; }

.report-hero { padding: 48px 0 36px; }

.report-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }

.report-hero-copy p { margin-top: 14px; color: var(--text-soft); max-width: 540px; }
.report-hero-actions { display: flex; gap: 12px; margin-top: 24px; }

.report-id-card { padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(14, 30, 52, .92), rgba(8, 18, 34, .92)); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); display: grid; gap: 14px; }

.report-id-head { display: flex; align-items: center; gap: 12px; }
.report-id-head img { width: 34px; height: 34px; }
.report-id-head span { font-size: 10.5px; letter-spacing: .2em; color: var(--cyan); font-weight: 700; }
.report-id-head strong { display: block; font-size: 14px; }

.report-shot { position: relative; }
.report-shot img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--line); }

.report-shot .float-tag {
  position: absolute;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(4, 10, 20, .88);
  border: 1px solid var(--line-strong);
}

.report-shot .float-tag.t1 { top: 10px; right: 10px; color: #a5f7cd; border-color: rgba(125, 240, 182, .45); }
.report-shot .float-tag.t2 { bottom: 10px; left: 10px; color: #ffd98c; border-color: rgba(255, 210, 94, .5); }

.report-id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.report-id-grid > div { padding: 10px 12px; border-radius: var(--radius-md); background: rgba(5, 12, 24, .6); border: 1px solid var(--line); }
.report-id-grid span { font-size: 11px; color: var(--text-muted); }
.report-id-grid strong { display: block; font-size: 13.5px; }

.ai-encourage { padding: 14px 16px; border-radius: var(--radius-md); background: rgba(56, 225, 255, .06); border: 1px solid rgba(56, 225, 255, .22); }
.ai-encourage span { font-size: 11px; letter-spacing: .16em; color: var(--cyan); font-weight: 700; }
.ai-encourage p { margin-top: 6px; font-size: 13px; color: var(--text-soft); }

/* 报告成绩卡 */
.report-summary { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }

.report-main-card { padding: 24px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-strong); display: grid; gap: 18px; align-content: start; }

.report-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.report-card-head span { font-size: 11px; letter-spacing: .2em; color: var(--cyan); font-weight: 700; }
.report-card-head em { font-style: normal; flex-shrink: 0; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #a5f7cd; background: rgba(125, 240, 182, .1); border: 1px solid rgba(125, 240, 182, .4); }

.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* 与首页 Visible Progress 一致：边框分色 + 右上角角标 */
.score-grid > div {
  position: relative;
  padding: 22px 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(5, 12, 24, .6);
  border: 1px solid var(--line);
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
}

.score-grid .tone-gold { border-color: rgba(255, 210, 94, .45); }
.score-grid .tone-cyan { border-color: rgba(56, 225, 255, .4); }
.score-grid .tone-mint { border-color: rgba(125, 240, 182, .4); }

.score-grid strong { font-size: 24px; color: var(--gold); }
.score-grid span { font-size: 12px; color: var(--text-muted); }

/* 进度行：参考原版的多色辉光行卡，大号 % 数字 + 彩色胶囊标签 */
.progress-list { display: grid; gap: 12px; }

.progress-list > div {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(5, 12, 24, .55);
  border: 1px solid var(--line);
}

.progress-list > div::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background: radial-gradient(circle at 12% 50%, rgba(125, 240, 182, .22), transparent 16rem);
}

.progress-list .row-cyan::before { background: radial-gradient(circle at 12% 50%, rgba(56, 225, 255, .22), transparent 16rem); }
.progress-list .row-gold::before { background: radial-gradient(circle at 12% 50%, rgba(255, 210, 94, .22), transparent 16rem); }

.progress-list .meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.progress-list .meta .value { display: inline-flex; align-items: center; gap: 8px; }
.progress-list .meta b { font-size: 19px; line-height: 1; color: #fff; }

.progress-list .meta em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  color: #06111b;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
}

.progress-list .row-cyan .meta em { background: linear-gradient(135deg, #8ff7ff, var(--cyan)); }
.progress-list .row-gold .meta em { background: linear-gradient(135deg, var(--gold), #fff3b6); }

.progress-list .track { position: relative; z-index: 1; height: 10px; }
.progress-list .track > i {
  background: linear-gradient(90deg, #5affb2, var(--mint) 46%, var(--cyan));
  box-shadow: 0 0 18px rgba(125, 240, 182, .25);
}

.progress-list .row-cyan .track > i {
  background: linear-gradient(90deg, #58d7ff, var(--cyan) 52%, #8ff7ff);
  box-shadow: 0 0 18px rgba(56, 225, 255, .28);
}

.progress-list .row-gold .track > i {
  background: linear-gradient(90deg, #ffd75f, var(--gold) 48%, #fff4b4);
  box-shadow: 0 0 18px rgba(255, 210, 94, .28);
}

.praise-card { padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(255, 210, 94, .08), rgba(8, 18, 34, .92)); border: 1px solid rgba(255, 210, 94, .35); display: grid; gap: 12px; align-content: start; }

.praise-card > img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-md); border: 1px solid rgba(255, 210, 94, .3); }
.praise-card > span { font-size: 11px; letter-spacing: .2em; color: var(--gold); font-weight: 700; }
.praise-card p { font-size: 13.5px; color: var(--text-soft); }

.praise-points { display: grid; gap: 8px; margin-top: 4px; }

.praise-points > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(5, 12, 24, .55);
  border: 1px solid var(--line);
}

.praise-points b { grid-row: span 2; align-self: center; font-size: 13px; color: var(--gold); }
.praise-points small { font-size: 12px; color: var(--text-muted); }

/* 高光时刻 */
.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.moment-grid article { overflow: hidden; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease; }
.moment-grid article:hover { transform: translateY(-3px); border-color: rgba(56, 225, 255, .4); }
.moment-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.moment-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.moment-body span { font-size: 10.5px; letter-spacing: .2em; color: var(--cyan); font-weight: 700; }
.moment-body p { font-size: 12.5px; color: var(--text-muted); }
.moment-body em { font-style: normal; font-size: 11.5px; color: var(--gold); }

/* AI 引导员反馈 */
.coach-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: center; }

.coach-note p { margin-top: 12px; color: var(--text-soft); font-size: 14px; }
.coach-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.coach-table { display: grid; gap: 10px; }

.coach-table > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 2px 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
}

.coach-table span { grid-row: span 2; align-self: center; font-size: 11.5px; font-weight: 700; color: var(--cyan); }
.coach-table strong { font-size: 14px; }
.coach-table p { font-size: 12.5px; color: var(--text-muted); }

/* 高光视频分享 */
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.share-card { overflow: hidden; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-strong); }

.video-frame { position: relative; }
.video-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.video-frame .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 18px;
  color: var(--gold-ink);
  background: rgba(255, 210, 94, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.video-frame .wm-top {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: rgba(4, 10, 20, .72);
  border: 1px solid var(--line);
}

.video-frame .wm-top img { width: 14px; height: 14px; }
.video-frame .wm-bottom { position: absolute; right: 10px; bottom: 10px; font-size: 11px; color: rgba(242, 247, 255, .8); text-shadow: 0 1px 4px rgba(0,0,0,.6); }

.share-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.share-body span { font-size: 10.5px; letter-spacing: .2em; color: var(--cyan); font-weight: 700; }
.share-body p { font-size: 12.5px; color: var(--text-muted); }
.share-body .btn { margin-top: 10px; justify-self: start; }

/* 表达证据 */
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }

.phrase-panel { padding: 24px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-strong); }
.phrase-panel h2 { font-size: 19px; margin-top: 10px; }
.phrase-panel .phrase-cloud { margin-top: 18px; }

.roadmap { display: grid; gap: 10px; align-content: center; }

.roadmap > div {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
}

.roadmap em { font-style: normal; font-size: 11.5px; color: var(--cyan); font-weight: 700; }
.roadmap strong { font-size: 14.5px; }
.roadmap p { font-size: 12.5px; color: var(--text-muted); }

/* 家长三问 */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.proof-grid article { padding: 22px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); }
.proof-grid span { font-size: 11px; letter-spacing: .18em; color: var(--gold); font-weight: 700; }
.proof-grid h3 { margin: 10px 0 8px; }
.proof-grid p { font-size: 13px; color: var(--text-muted); }

/* ==========================================================================
   五、个人中心
   ========================================================================== */

.profile-hero { padding: 52px 0 36px; }

.profile-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }

.profile-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.player-card { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-strong); }

.player-card .avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-ink);
  background: linear-gradient(135deg, #ffe08a, var(--gold-deep));
}

.player-card span { font-size: 12px; color: var(--text-muted); }
.player-card strong { display: block; font-size: 17px; }
.player-card p { font-size: 12.5px; color: var(--text-muted); }

.profile-layout { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: start; }

/* 防止横滑任务行把栅格撑宽导致整页错位 */
.profile-layout > *, .profile-main > * { min-width: 0; }

.profile-side { display: grid; gap: 8px; position: sticky; top: calc(var(--header-h) + 16px); }

.profile-side a {
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
}

.profile-side a:hover { color: var(--text); background: var(--panel-soft); }
.profile-side a.is-active { color: #ffd98c; background: rgba(255, 210, 94, .09); border-color: rgba(255, 210, 94, .35); }

.profile-main { display: grid; gap: 22px; min-width: 0; }

.profile-panel { padding: 24px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); }

.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head.mt { margin-top: 22px; }
.panel-head span { font-size: 11px; letter-spacing: .2em; color: var(--cyan); font-weight: 700; }
.panel-head h2 { font-size: 20px; margin-top: 4px; }
.panel-head h3 { font-size: 17px; margin-top: 4px; }
.panel-head small { font-size: 12px; color: var(--text-muted); max-width: 360px; }

.task-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.task-tabs a,
.task-tabs button {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(5, 12, 24, .6);
  border: 1px solid var(--line);
}

.task-tabs a.is-active,
.task-tabs button.is-active { color: #7ff0c0; border-color: rgba(125, 240, 182, .5); background: rgba(125, 240, 182, .1); }

/* PART 子页签：主标题 + 通关进度两行 */
.task-tabs button { display: grid; gap: 3px; text-align: left; cursor: pointer; }
.task-tabs button span { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.task-tabs button.is-active span { color: #7ff0c0; }

.owned-part { margin-bottom: 24px; }

.owned-part-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.owned-part-head span { font-size: 12px; color: var(--mint); font-weight: 700; }
.owned-part-head h3 { font-size: 16px; margin-top: 2px; }
.owned-part-head p { font-size: 12.5px; color: var(--text-muted); }
.owned-part-head b { font-size: 12px; color: var(--gold); font-weight: 600; }
.owned-part-head a { display: block; margin-top: 4px; font-size: 12.5px; }

.wallet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.wallet-grid > div { padding: 16px; border-radius: var(--radius-md); background: rgba(5, 12, 24, .6); border: 1px solid var(--line); }
.wallet-grid span { font-size: 12px; color: var(--text-muted); }
.wallet-grid strong { display: block; font-size: 22px; color: var(--gold); margin: 2px 0; }
.wallet-grid p { font-size: 11.5px; color: var(--text-muted); }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table th { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--text-soft); white-space: nowrap; }

/* 邀请 */
.invite-banner { display: grid; gap: 4px; padding: 14px 18px; border-radius: var(--radius-md); background: rgba(255, 210, 94, .07); border: 1px solid rgba(255, 210, 94, .35); margin-bottom: 18px; }
.invite-banner strong { font-size: 13.5px; color: #ffd98c; }
.invite-banner p { font-size: 12.5px; color: var(--text-muted); }
.invite-banner b { color: var(--gold); }

.invite-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }

.invite-codes > div { padding: 16px; border-radius: var(--radius-md); background: rgba(5, 12, 24, .6); border: 1px solid var(--line); display: grid; gap: 8px; }
.invite-codes span { font-size: 12px; color: var(--text-muted); }

.copy-line { display: flex; align-items: center; gap: 10px; }
.copy-line strong { flex: 1; font-size: 14px; word-break: break-all; }

.copy-chip {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #bdf1ff;
  background: rgba(56, 225, 255, .1);
  border: 1px solid rgba(56, 225, 255, .4);
}

.invite-codes p { font-size: 11.5px; color: var(--text-muted); }

.reward-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }

.reward-rules > div { padding: 14px 16px; border-radius: var(--radius-md); background: var(--panel-soft); border: 1px solid var(--line); }
.reward-rules span { font-size: 11.5px; color: var(--cyan); font-weight: 700; }
.reward-rules strong { display: block; font-size: 13.5px; margin: 4px 0; }
.reward-rules p { font-size: 12px; color: var(--text-muted); }

.reward-progress { display: grid; gap: 12px; }

.reward-progress > div { display: grid; grid-template-columns: 96px 1fr 52px; gap: 12px; align-items: center; font-size: 12.5px; }
.reward-progress small { grid-column: 1 / -1; font-size: 11.5px; color: var(--text-muted); }

.audit-list { display: grid; gap: 10px; }

.audit-row {
  display: grid;
  grid-template-columns: .8fr 1.6fr 1fr auto;
  gap: 6px 18px;
  align-items: center;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(5, 12, 24, .6);
  border: 1px solid var(--line);
}

.audit-row span { font-size: 11px; color: var(--text-muted); }
.audit-row strong { font-size: 12.5px; font-weight: 600; }

.audit-row em {
  font-style: normal;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.audit-row.success em { color: #a5f7cd; background: rgba(125, 240, 182, .1); border: 1px solid rgba(125, 240, 182, .4); }
.audit-row.pending em { color: #ffd98c; background: rgba(255, 210, 94, .1); border: 1px solid rgba(255, 210, 94, .4); }

/* ==========================================================================
   六、云端任务启动页
   ========================================================================== */

.cloud-hero { padding: 64px 0; }

.cloud-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }

.cloud-copy p { margin-top: 14px; color: var(--text-soft); }
.cloud-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.cloud-console { padding: 20px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); display: grid; gap: 14px; }

.cloud-console-top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.cloud-console-top em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--mint); }

.cloud-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(56, 225, 255, .05) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(56, 225, 255, .05) 1px, transparent 1px) 0 0 / 28px 100%,
    #040b16;
  border: 1px solid var(--line);
}

.cloud-screen-card { text-align: center; display: grid; gap: 4px; padding: 20px; }
.cloud-screen-card span { font-size: 10.5px; letter-spacing: .22em; color: var(--cyan); font-weight: 700; }
.cloud-screen-card strong { font-size: 16px; }
.cloud-screen-card p { font-size: 12px; color: var(--text-muted); max-width: 300px; }

.cloud-status { display: grid; gap: 8px; }

.cloud-status > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(5, 12, 24, .6);
  border: 1px solid var(--line);
  font-size: 13px;
}

.cloud-status b { flex-shrink: 0; padding: 3px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #a5f7cd; background: rgba(125, 240, 182, .1); border: 1px solid rgba(125, 240, 182, .4); }
.cloud-status div:last-child b { color: #ffd98c; background: rgba(255, 210, 94, .1); border-color: rgba(255, 210, 94, .45); }
.cloud-status span { color: var(--text-soft); }

/* ==========================================================================
   六A、游戏页（game.html）：地图背景 + LIVE QUEST 玻璃面板 + 内嵌游戏画面
   ========================================================================== */

/* 顶栏 + 画面区占满首屏剩余高度，页面本身不滚动；
   世界地图作整块背景（复用首页 .map-hero-bg） */
.game-main {
  position: relative;
  height: calc(100vh - var(--header-h));
  padding: 16px 18px 18px;
  overflow: hidden;
  background: var(--bg);
}
.game-main .map-hero-bg { z-index: 0; }

/* 外框直接套用首页 LIVE QUEST PREVIEW 的 HUD 玻璃面板（.live-panel），
   内部三行：标签操作行 / 画面撑满 / 底部提示 */
.game-panel { position: relative; z-index: 1; height: 100%; }

.game-panel-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.game-panel-top .live-panel-top { margin-bottom: 0; }

.game-topbar-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }

.game-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); letter-spacing: .04em; }
.game-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: gamePulse 1.2s infinite; }
.game-state.is-live { color: var(--mint); }
.game-state.is-live i { background: var(--mint); animation: none; }
@keyframes gamePulse { 50% { opacity: .3; } }

.game-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #040b16;
}

/* 嵌套框内部固定 720p（1280×720），由 JS 按画面区大小写入 --game-scale 等比缩放，
   显示尺寸始终贴合画面区（铺满），比例不同时两侧/上下留黑边 */
.game-frame-box {
  --game-scale: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  transform: translate(-50%, -50%) scale(var(--game-scale));
  transform-origin: center;
}
.game-frame-box iframe { display: block; width: 100%; height: 100%; border: 0; }

/* 加载遮罩：iframe load 后隐藏；目标站禁止内嵌白屏时引导用「新窗口打开」 */
.game-loading {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 6px;
  padding: 20px; text-align: center;
  background:
    linear-gradient(rgba(56, 225, 255, .05) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(56, 225, 255, .05) 1px, transparent 1px) 0 0 / 28px 100%,
    #040b16;
}
.game-loading.hidden { display: none; }
.game-loading span { font-size: 10.5px; letter-spacing: .22em; color: var(--cyan); font-weight: 700; }
.game-loading strong { font-size: 16px; }

.game-panel-foot { margin: 0; font-size: 12px; color: var(--text-muted); }

/* 环境警示条：file:// 直开或局域网 IP 打开时浏览器会静默拒绝麦克风授权，
   置于画面区下方提示先启动本地服务再一键切换 */
.game-warn {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 122, 112, .45);
  background: rgba(255, 122, 112, .1);
}
.game-warn[hidden] { display: none; }
.game-warn-copy { flex: 1 1 320px; }
.game-warn b { font-size: 13px; color: var(--red); }
.game-warn p { margin: 3px 0 0; font-size: 12px; color: var(--text-soft); }
.game-warn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* 相对鼠标指引浮层（覆盖在画面区上，点遮罩或「知道了」关闭） */
.game-tip {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(4, 9, 18, .74);
}
.game-tip[hidden] { display: none; }

.game-tip-card {
  max-width: 380px;
  display: grid; gap: 10px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.game-tip-card b { font-size: 14px; color: var(--gold); }
.game-tip-card ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 12.5px; color: var(--text-soft); }
.game-tip-card p { margin: 0; font-size: 12px; color: var(--text-muted); }
.game-tip-card button { justify-self: end; }

@media (max-width: 720px) {
  .game-topbar-actions { margin-left: 0; }
}

/* ==========================================================================
   登录 / 注册页（login.html · register.html）
   ========================================================================== */
.auth-page { padding: 48px 0 80px; }

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}

/* 左侧品牌区 */
.auth-side { display: grid; gap: 16px; max-width: 560px; justify-self: end; width: 100%; }

.auth-mark { display: flex; align-items: center; gap: 12px; }
.auth-mark img { width: 44px; height: 44px; }
.auth-mark b { display: block; font-size: 19px; line-height: 1.2; letter-spacing: .04em; }
.auth-mark span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .3em; color: var(--text-muted); }

.auth-side h1 { font-size: clamp(28px, 3.4vw, 40px); }
.auth-side > p { color: var(--text-soft); font-size: 15px; }

.auth-points { display: grid; gap: 12px; margin-top: 8px; }

.auth-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.auth-points i { grid-row: span 2; font-style: normal; font-size: 15px; font-weight: 800; color: var(--cyan); }
.auth-points b { font-size: 14.5px; }
.auth-points span { font-size: 12.5px; color: var(--text-muted); }

/* 右侧表单卡片 */
.auth-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0c1b30, #081424);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop);
}

.auth-card h2 { margin: 8px 0 2px; font-size: 24px; }

.auth-switch { margin: 0 0 18px; font-size: 13.5px; color: var(--text-soft); }
.auth-switch a { font-weight: 700; }

/* Google 快捷登录 / 快速注册（白底胶囊，官方视觉习惯） */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2937;
  background: #fff;
  border: 1px solid #e5eaf2;
  transition: transform .18s ease, box-shadow .18s ease;
}

.google-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255, 255, 255, .14); }
.google-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 登录方式标签（邮箱 / 手机号） */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }

.auth-tabs button {
  flex: 1;
  min-height: 40px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.auth-tabs button.active {
  color: #9fe9ff;
  border-color: rgba(56, 225, 255, .45);
  background: rgba(56, 225, 255, .1);
}

.auth-form { display: grid; gap: 16px; }

.auth-form .wide-action { margin-top: 2px; }

.auth-form .form-row button[disabled] {
  opacity: .55;
  cursor: default;
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--text-muted);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .compliance-note { white-space: normal; }

  /* 小屏标题区上下堆叠，遮罩改为纵向压暗 */
  .lessons-hero { padding: 100px 0 92px; }
  .home-hero { padding: 72px 0 60px; }
  .map-hero-bg img { opacity: .62; }
  .map-hero-bg::after {
    background: linear-gradient(180deg, rgba(5, 13, 26, .82) 0%, rgba(5, 13, 26, .52) 42%, rgba(5, 13, 26, .6) 74%, var(--bg) 100%);
  }

  .hero-grid, .quest-card, .invite-grid, .report-grid,
  .lessons-hero-panel, .task-hero-grid, .task-flow,
  .task-goal-grid, .report-hero-grid, .report-summary, .coach-grid,
  .share-grid, .evidence-grid, .profile-hero-grid, .cloud-grid { grid-template-columns: 1fr; }

  /* 合并后的第一任务区块小屏改为纵向堆叠 */
  .quest-card { grid-template-areas: "media" "copy" "steps"; }
  .quest-steps ol { grid-template-columns: 1fr 1fr; }

  .part-cards, .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .map-board { grid-template-columns: 1fr 1fr; }
  .map-board .path { display: none; }
  .brief-grid, .value-cards, .moment-grid, .proof-grid, .replay-grid { grid-template-columns: repeat(2, 1fr); }
  .task-quick-stats, .wallet-grid { grid-template-columns: repeat(2, 1fr); }

  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; grid-template-columns: repeat(4, 1fr); display: grid; }
  .system-part-head { flex-direction: column; }
  .system-part-price { width: 100%; }

  /* 登录 / 注册页小屏上下堆叠 */
  .auth-layout { grid-template-columns: 1fr; gap: 30px; }
  .auth-side { max-width: none; justify-self: stretch; }
}

@media (max-width: 640px) {
  .feature-cascade, .report-panel, .score-grid, .invite-codes,
  .reward-rules { grid-template-columns: 1fr; }
  .report-panel article { grid-template-columns: 1fr; }
  .flow-list > div { grid-template-columns: 56px 1fr; }
  .flow-list > div span { grid-column: 2; }
  .quest-steps ol { grid-template-columns: 1fr; }

  /* 小屏时限价按钮独占一行，避免与单任务价格框挤压 */
  .price-grid { flex-wrap: wrap; }
  .price-grid .price-cta { flex: 1 1 100%; }
  .audit-row { grid-template-columns: 1fr 1fr; }
  .audit-row em { justify-self: start; }
  .coach-table > div { grid-template-columns: 1fr; }
  .coach-table span { grid-row: auto; }
  .map-board { grid-template-columns: 1fr; }
  .task-quick-stats, .brief-grid, .value-cards, .moment-grid, .proof-grid,
  .replay-grid, .part-cards, .plans-grid { grid-template-columns: 1fr; }
  .profile-side { grid-template-columns: repeat(2, 1fr); }

  .auth-card { padding: 24px 18px; }
  .auth-tabs { flex-direction: column; }
}
