/**
 * doors.css — 乐豆奇遇小径·七道岔门 样式（风高保真稿照搬，20260927）
 * 作用域：#doorsStage（冒险乐园外）/ #doorsPathStage（小径/门内/结算/庆典）
 * 纪律：纯样式，类名与高保真演示一致；不改页面原有样式
 * 版本戳：doors260927
 */
/* ===== 冒险乐园外：拱门 ===== */
#doorsStage .arch-wrap { margin: 6px 0 8px; position: relative; }
#doorsStage .arch {
  position: relative; border: none; width: 100%; cursor: pointer;
  border-radius: 26px; padding: 26px 18px 22px; color: #fff; text-align: left; overflow: hidden;
  background: linear-gradient(160deg, #ffb04a 0%, #ff8a2a 55%, #f56c17 100%);
  box-shadow: 0 0 0 3px rgba(255,255,255,.55), 0 0 26px rgba(255,150,40,.65), 0 14px 30px rgba(214,104,20,.35);
  -webkit-animation: doorsArchGlow 2.6s ease-in-out infinite;
  animation: doorsArchGlow 2.6s ease-in-out infinite;
}
@-webkit-keyframes doorsArchGlow {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 0 20px rgba(255,150,40,.55), 0 14px 30px rgba(214,104,20,.32); }
  50% { box-shadow: 0 0 0 3px rgba(255,255,255,.75), 0 0 40px rgba(255,170,60,.85), 0 14px 34px rgba(214,104,20,.42); }
}
@keyframes doorsArchGlow {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 0 20px rgba(255,150,40,.55), 0 14px 30px rgba(214,104,20,.32); }
  50% { box-shadow: 0 0 0 3px rgba(255,255,255,.75), 0 0 40px rgba(255,170,60,.85), 0 14px 34px rgba(214,104,20,.42); }
}
#doorsStage .arch .a-emoji { font-size: 40px; line-height: 1; }
#doorsStage .arch .a-t { font-size: 22px; font-weight: 900; margin-top: 8px; letter-spacing: .5px; }
#doorsStage .arch .a-d { font-size: 12.5px; opacity: .95; margin-top: 6px; line-height: 1.5; }
#doorsStage .arch .a-go {
  margin-top: 14px; display: inline-block;
  background: #fff; color: #f57c1f; font-weight: 800; font-size: 13.5px;
  padding: 8px 16px; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
#doorsStage .arch-spark { position: absolute; pointer-events: none; font-size: 16px; opacity: .85; }
#doorsStage .arch-spark.s1 { top: 10px; right: 18px; -webkit-animation: doorsFloaty 3s ease-in-out infinite; animation: doorsFloaty 3s ease-in-out infinite; }
#doorsStage .arch-spark.s2 { bottom: 16px; right: 60px; font-size: 12px; -webkit-animation: doorsFloaty 3.6s .6s ease-in-out infinite; animation: doorsFloaty 3.6s .6s ease-in-out infinite; }
#doorsStage .arch-spark.s3 { bottom: 20px; left: 40px; font-size: 13px; -webkit-animation: doorsFloaty 3.2s .3s ease-in-out infinite; animation: doorsFloaty 3.2s .3s ease-in-out infinite; }
#doorsStage .arch-emoji { font-size: 52px; line-height: 1; display: block; filter: drop-shadow(0 3px 6px rgba(214,122,40,.35)); }
#doorsStage .arch-title { display: block; margin-top: 10px; font-size: 21px; font-weight: 800; color: #fff; text-shadow: 0 2px 4px rgba(150,70,10,.35); letter-spacing: 1px; }
#doorsStage .arch-sub { display: block; margin-top: 4px; font-size: 13px; color: #fff; opacity: .92; }
#doorsStage .arch-go { display: inline-block; margin-top: 12px; padding: 8px 20px; border-radius: 20px; background: linear-gradient(135deg,#9b6cd6,#6f4bb8); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(111,75,184,.35); }
@-webkit-keyframes doorsFloaty { 0%,100% { -webkit-transform: translateY(0); } 50% { -webkit-transform: translateY(-7px); } }
@keyframes doorsFloaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* 玩法说明卡 */
#doorsStage .how-title { font-size: 15px; font-weight: 800; color: #6b3fb2; margin-bottom: 8px; }
#doorsStage .how-card { background: #fffdf8; border-radius: 18px; padding: 14px 16px; box-shadow: 0 4px 12px rgba(150,96,30,.12); margin-top: 14px; }
#doorsStage .how-card h4 { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
#doorsStage .how-step { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; font-size: 13px; line-height: 1.5; color: #5b4636; }
#doorsStage .how-step:last-child { margin-bottom: 0; }
#doorsStage .how-step .n {
  flex: 0 0 21px; height: 21px; border-radius: 50%;
  background: #5ec98e; color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* ===== 全屏覆盖舞台：小径/门内/结算/庆典 ===== */
#doorsPathStage {
  position: fixed; inset: 0; z-index: 900;
  background: linear-gradient(180deg, #fff7ec 0%, #ffeccd 100%);
  display: none; flex-direction: column;
  -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%; text-size-adjust: 100%;
}
/* [fix260927c] 舞台按手机屏幕自适应：固定全屏、内部独立滚动，七道门始终可达 */
#doorsPathStage.show { display: flex; }
/* [fix260927c] 视图层占满舞台并作为flex列容器，否则内部 .dscroll 的 flex:1/滚动会失效 */
#doorsPathStage [data-dview] {
  flex: 1 1 0%; min-height: 0; display: flex; flex-direction: column;
}
#doorsPathStage [data-dview][style*="none"] { display: none; }
#doorsPathStage .dtopbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; flex: 0 0 auto;
}
#doorsPathStage .dtopbar .ttl { font-size: 19px; font-weight: 800; letter-spacing: .5px; margin: 0; text-align: center; }
#doorsPathStage .dtopbar .sub { font-size: 11px; color: #8a7159; margin-top: 1px; text-align: center; }
#doorsPathStage .iconbtn {
  width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff; color: #5b4636;
  font-size: 17px; box-shadow: 0 4px 12px rgba(150,96,30,.12); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
#doorsPathStage .dtopbar .ph { width: 36px; flex: 0 0 36px; }
#doorsPathStage .dscroll {
  flex: 1 1 0%; min-height: 0; height: 100%; box-sizing: border-box; width: 100%;
  overflow-y: auto; overflow-x: hidden;
  padding: 4px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

/* 小径进度头 */
#doorsPathStage .path-head {
  background: linear-gradient(135deg, #fff3dd, #ffe0b3);
  border-radius: 18px; padding: 12px 14px; box-shadow: 0 4px 12px rgba(150,96,30,.12); margin-bottom: 6px;
}
#doorsPathStage .path-prog { font-size: 12.5px; color: #8a7159; }
#doorsPathStage .path-bar { height: 9px; background: #fff; border-radius: 6px; margin-top: 8px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.08); }
#doorsPathStage .path-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffc531, #ff9a3c); border-radius: 6px; transition: width .5s ease; }
#doorsPathStage .path-tip { font-size: 12px; color: #8a7159; margin-top: 8px; text-align: center; }

/* 门 */
#doorsPathStage .doors { position: relative; margin: 14px 0 6px; padding: 0 6px; }
#doorsPathStage .door-row { position: relative; margin-bottom: 8px; display: flex; flex-direction: column; align-items: center; }
#doorsPathStage .door {
  width: 100%; max-width: 300px; box-sizing: border-box; border: none; cursor: pointer; border-radius: 20px; padding: 16px 14px;
  display: flex; align-items: center; gap: 13px; text-align: left;
  transition: transform .18s ease; font-family: inherit;
}
#doorsPathStage .door:active { transform: scale(.97); }
#doorsPathStage .door.locked {
  background: repeating-linear-gradient(135deg, #e9ddca 0 12px, #e2d3bd 12px 24px);
  color: #8a7159; box-shadow: 0 4px 12px rgba(150,96,30,.12);
}
#doorsPathStage .door.current {
  background: linear-gradient(135deg, #baf0cf, #8fe0ad);
  box-shadow: 0 0 0 3px rgba(255,255,255,.8), 0 0 22px rgba(94,201,142,.6), 0 8px 22px rgba(150,96,30,.14);
  -webkit-animation: doorsCurPulse 2.2s ease-in-out infinite;
  animation: doorsCurPulse 2.2s ease-in-out infinite;
}
@-webkit-keyframes doorsCurPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,255,255,.75), 0 0 16px rgba(94,201,142,.5), 0 8px 22px rgba(150,96,30,.14); }
  50% { box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 0 30px rgba(94,201,142,.8), 0 8px 22px rgba(150,96,30,.14); }
}
@keyframes doorsCurPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,255,255,.75), 0 0 16px rgba(94,201,142,.5), 0 8px 22px rgba(150,96,30,.14); }
  50% { box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 0 30px rgba(94,201,142,.8), 0 8px 22px rgba(150,96,30,.14); }
}
#doorsPathStage .door.done { background: linear-gradient(135deg, #fff4d6, #ffe6a6); box-shadow: 0 4px 12px rgba(150,96,30,.12); }
#doorsPathStage .door .de { font-size: 30px; width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; flex: 0 0 44px; }
#doorsPathStage .door .dt { flex: 1; }
#doorsPathStage .door .dn { font-weight: 800; font-size: 15.5px; }
#doorsPathStage .door .dd { font-size: 12px; margin-top: 3px; opacity: .85; }
#doorsPathStage .door .dstars { font-size: 15px; margin-top: 3px; letter-spacing: 1px; }
#doorsPathStage .door .qmark { font-size: 30px; width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; flex: 0 0 44px; }
#doorsPathStage .door .dlabel { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: rgba(255,255,255,.65); display: inline-block; margin-top: 4px; }
#doorsPathStage .path-dotline { width: 3px; height: 14px; background: linear-gradient(#ffc531, #ff9a3c); border-radius: 3px; opacity: .7; }

/* 门内二选一 */
#doorsPathStage .pick-h { text-align: center; margin: 6px 0 16px; }
#doorsPathStage .pick-h .big { font-size: 17px; font-weight: 900; }
#doorsPathStage .pick-h .sml { font-size: 12.5px; color: #8a7159; margin-top: 5px; }
#doorsPathStage .pick-grid { display: flex; flex-direction: column; gap: 13px; }
#doorsPathStage .pick-card {
  border: none; cursor: pointer; border-radius: 20px; padding: 16px; display: flex; gap: 14px; align-items: center; text-align: left;
  background: #fffdf8; box-shadow: 0 8px 22px rgba(150,96,30,.14); transition: transform .18s ease; font-family: inherit;
}
#doorsPathStage .pick-card:active { transform: scale(.97); }
#doorsPathStage .pick-card .pe { font-size: 36px; width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: 0 0 60px; }
#doorsPathStage .pick-card .pn { font-size: 17px; font-weight: 800; }
#doorsPathStage .pick-card .pd { font-size: 12.5px; color: #8a7159; margin-top: 5px; line-height: 1.5; }
#doorsPathStage .pick-card .ptag { font-size: 11px; font-weight: 700; color: #fff; background: #ff9a3c; padding: 3px 9px; border-radius: 8px; display: inline-block; margin-top: 7px; }
#doorsPathStage .coach-cta {
  margin-top: 16px; border: none; width: 100%; cursor: pointer; border-radius: 16px; padding: 13px;
  background: linear-gradient(135deg, #ffe9b8, #ffd98a); font-weight: 800; font-size: 14px; color: #8a5a10;
  box-shadow: 0 4px 12px rgba(150,96,30,.12); display: none; font-family: inherit;
}
#doorsPathStage .coach-cta.show { display: block; }

/* 结算 */
#doorsPathStage .result-card {
  background: #fffdf8; border-radius: 24px; box-shadow: 0 8px 22px rgba(150,96,30,.14);
  padding: 26px 20px; text-align: center; margin-top: 8px;
}
#doorsPathStage .result-emoji { font-size: 52px; }
#doorsPathStage .result-title { font-size: 22px; font-weight: 900; margin: 8px 0 4px; }
#doorsPathStage .result-stars { font-size: 38px; letter-spacing: 4px; margin: 10px 0; }
#doorsPathStage .result-msg { font-size: 13px; color: #8a7159; }
#doorsPathStage .result-detail { font-size: 12.5px; color: #8a7159; margin-top: 8px; background: #fff6e6; border-radius: 12px; padding: 9px 12px; display: inline-block; }
#doorsPathStage .result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
#doorsPathStage .big-btn {
  border: none; border-radius: 16px; padding: 15px; font-size: 15px; font-weight: 800;
  cursor: pointer; box-shadow: 0 8px 22px rgba(150,96,30,.14); font-family: inherit;
}
#doorsPathStage .big-btn.primary { background: linear-gradient(135deg, #5ec98e, #37a96b); color: #fff; }
#doorsPathStage .big-btn.ghost { background: #fff; color: #5b4636; }
#doorsPathStage .big-btn.retry { background: linear-gradient(135deg, #ffd48a, #ffb85c); color: #7a4a08; }

/* 通关庆典 + 集星 */
#doorsPathStage .celebrate { text-align: center; padding: 30px 10px 10px; }
#doorsPathStage .celebrate .ce { font-size: 60px; }
#doorsPathStage .celebrate .ct { font-size: 22px; font-weight: 900; margin-top: 10px; }
#doorsPathStage .celebrate .cd { font-size: 13px; color: #8a7159; margin-top: 8px; line-height: 1.6; }
#doorsPathStage .collect-list { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
#doorsPathStage .collect-row {
  display: flex; align-items: center; gap: 11px; background: #fffdf8; border-radius: 14px;
  padding: 10px 13px; box-shadow: 0 4px 12px rgba(150,96,30,.12); font-size: 13.5px;
}
#doorsPathStage .collect-row .ce2 { font-size: 22px; }
#doorsPathStage .collect-row .cs { margin-left: auto; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  #doorsStage .arch, #doorsPathStage .door.current, #doorsStage .arch-spark { animation: none !important; -webkit-animation: none !important; }
}

/* [fix260927] 奇遇小径视图内隐藏教材版本选择框，版本框仅出现在闯关页 */
body.doors-path-on #kbSwitcher { display: none !important; }
