/* 重要入口的页面级过渡：桌面网页与手机网页共用，不影响表单内轻交互。 */
.screen-transition[hidden] { display: none !important; }

.screen-transition {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 42%, rgba(199, 169, 107, 0.17), transparent 34%),
    linear-gradient(145deg, #07111c 0%, #0b1722 54%, #050a10 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.screen-transition.is-visible { opacity: 1; visibility: visible; }
.screen-transition__frame {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(34px, 7vw, 62px) clamp(24px, 6vw, 56px);
  text-align: center;
  border: 1px solid rgba(199, 169, 107, 0.35);
  border-radius: 28px;
  background: rgba(7, 16, 25, 0.84);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52), inset 0 0 38px rgba(199, 169, 107, 0.05);
  transform: translateY(14px) scale(0.985);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}
.screen-transition.is-visible .screen-transition__frame { transform: translateY(0) scale(1); }
.screen-transition__mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(224, 197, 119, 0.52);
  border-radius: 24px;
  color: #e4c777;
  background: linear-gradient(145deg, rgba(224,197,119,.16), rgba(224,197,119,.03));
  font: 600 30px/1 "Noto Serif SC", "Songti SC", serif;
  box-shadow: 0 0 34px rgba(224, 197, 119, 0.12);
}
.screen-transition__eyebrow { margin: 10px 0 0; color: #bba86f; font-size: 12px; letter-spacing: .28em; }
.screen-transition__title { margin: 0; color: #f4f0e6; font: 650 clamp(25px, 5vw, 38px)/1.25 "Noto Serif SC", "Songti SC", serif; letter-spacing: .08em; }
.screen-transition__subtitle { margin: 0; color: #9ca9b2; font-size: 14px; line-height: 1.8; }
.screen-transition__line { width: min(280px, 82%); height: 2px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: rgba(199,169,107,.13); }
.screen-transition__line::after { content: ""; display: block; width: 44%; height: 100%; background: linear-gradient(90deg, transparent, #dfc16f, transparent); animation: screen-transition-line 760ms ease-in-out infinite; }
@keyframes screen-transition-line { from { transform: translateX(-115%); } to { transform: translateX(330%); } }

.screen-route-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 16px 0 4px;
  padding: 13px 16px;
  border: 1px solid rgba(199, 169, 107, 0.2);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(18, 31, 42, .94), rgba(9, 19, 29, .92));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}
.screen-route-bar__back {
  min-width: 82px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(199, 169, 107, .28);
  border-radius: 13px;
  color: #d9c27d;
  background: rgba(3, 12, 19, .56);
  font: inherit;
  cursor: pointer;
}
.screen-route-bar__back:hover, .screen-route-bar__back:focus-visible { border-color: #dfc16f; outline: none; }
.screen-route-bar__mark { color: #d7bb69; font: 600 24px/1 "Noto Serif SC", "Songti SC", serif; }
.screen-route-bar__copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.screen-route-bar__copy small { color: #8fa1aa; font-size: 10px; letter-spacing: .2em; }
.screen-route-bar__copy strong { overflow: hidden; color: #eee8db; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.screen-route-bar__copy span { overflow: hidden; color: #84939c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.screen-route-bar__status { flex: 0 0 auto; color: #bda96d; font-size: 11px; font-style: normal; letter-spacing: .12em; }

@media (max-width: 640px) {
  .screen-transition { padding-left: 18px; padding-right: 18px; }
  .screen-transition__frame { border-radius: 22px; }
  .screen-route-bar { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 11px; margin: 10px 0 0; padding: 11px 12px; border-radius: 15px; }
  .screen-route-bar__back { min-width: 48px; min-height: 44px; padding: 0 10px; font-size: 0; }
  .screen-route-bar__back::before { content: "←"; font-size: 20px; }
  .screen-route-bar__mark { font-size: 21px; }
  .screen-route-bar__copy strong { font-size: 14px; }
  .screen-route-bar__copy span { font-size: 11px; }
  .screen-route-bar__status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen-transition, .screen-transition__frame { transition-duration: 1ms; }
  .screen-transition__line::after { animation: none; width: 100%; }
}

.tool-result-stage[hidden] { display: none !important; }
.tool-result-stage {
  margin: 24px 0 70px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(199, 169, 107, .24);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(12, 25, 35, .98), rgba(4, 11, 18, .98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .3);
}
.tool-result-stage__head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(199, 169, 107, .16); }
.tool-result-stage__mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(224, 197, 119, .4); border-radius: 17px; color: #dfc16f; font: 600 22px/1 serif; }
.tool-result-stage__head small, .tool-result-stage__head strong { display: block; }
.tool-result-stage__head small { color: #9b8c63; font-size: 10px; letter-spacing: .18em; }
.tool-result-stage__head strong { margin-top: 4px; color: #f1ecdf; font: 650 clamp(19px, 4vw, 28px)/1.35 "Noto Serif SC", serif; }
.tool-result-stage__content { display: block !important; width: 100%; margin: 0 !important; opacity: 1 !important; }
body.is-tool-result-page #mainContent,
body.is-tool-result-page .professional-center-lobby { display: none !important; }
@media (max-width: 640px) {
  .tool-result-stage { margin-top: 12px; padding: 16px 12px 26px; border-radius: 20px; }
  .tool-result-stage__head { gap: 12px; margin-bottom: 16px; }
  .tool-result-stage__mark { width: 46px; height: 46px; border-radius: 14px; }
}
