/* AI 使用成熟度自测 · 官网 H5 样式（独立于官网全站 style.css，避免互相污染） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: #f5f6fa; color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.7;
}
.app { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; }
.hidden { display: none !important; }

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0 12px; color: #0f2747; font-weight: 600;
}
.topbar .back { color: #0f2747; text-decoration: none; font-weight: 400; font-size: 14px; opacity: .75; }
.topbar .back:hover { opacity: 1; }
#topbar-title { font-size: 15px; }

.hero { padding: 8px 0 18px; }
/* R10：屏标题由 h1 降级为 h2（品牌红线·正文不得含 h1）；选择器同步覆盖两者以保证视觉等价 */
.hero h1, .hero h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.35; color: #0f2747; letter-spacing: .2px; }
.hero p { margin: 0; color: #5b667a; font-size: 14px; }
.price-tag {
  display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 20px;
  background: #eaf2ff; color: #1d4ed8; font-size: 12px;
}

.section-title { margin: 20px 0 8px; font-size: 13px; color: #8a94a6; letter-spacing: .5px; }
.card {
  background: #fff; border: 1px solid #e8ecf3; border-radius: 12px;
  padding: 16px; margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; color: #0f2747; }
.card p { margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }

.guides { list-style: none; margin: 0 0 12px; padding: 0; }
.guides li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #eef1f6; }
.guides li:last-child { border-bottom: 0; }
.dot {
  flex: 0 0 20px; height: 20px; border-radius: 50%; background: #0f2747; color: #fff;
  font-size: 12px; line-height: 20px; text-align: center; margin-top: 4px;
}
.guide-txt { flex: 1; font-size: 14px; color: #38445a; }
.duration, .hook { font-size: 13px; color: #6b7280; padding: 6px 0; }
.hook { color: #1d4ed8; }

.btn {
  display: block; width: 100%; padding: 12px 16px; margin-top: 12px;
  border: 0; border-radius: 10px; background: #0f2747; color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.btn:hover { background: #17395f; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: #fff; color: #0f2747; border: 1px solid #d5dced; }
.btn.ghost:hover { background: #f2f5fb; }

.progress { height: 5px; border-radius: 3px; background: #e6eaf2; overflow: hidden; margin: 6px 0 14px; }
.progress .bar { height: 100%; width: 0; background: #1d4ed8; transition: width .2s; }
.qmeta { font-size: 12px; color: #8a94a6; margin-bottom: 8px; }
.qtext { font-size: 17px; font-weight: 600; color: #16213a; margin-bottom: 16px; line-height: 1.55; }

.opts { display: flex; flex-direction: column; gap: 9px; }
.opt {
  text-align: left; padding: 12px 14px; border: 1px solid #dde3ee; border-radius: 10px;
  background: #fff; color: #38445a; font-size: 14.5px; cursor: pointer; font-family: inherit;
}
.opt:hover { border-color: #9db6e8; background: #f7faff; }
.opt.on { border-color: #1d4ed8; background: #eef4ff; color: #12346f; font-weight: 600; }

.nav { display: flex; gap: 10px; margin-top: 16px; }
.nav .btn { margin-top: 0; }

.fld { display: block; margin-bottom: 12px; }
.fld span { display: block; font-size: 13px; color: #5b667a; margin-bottom: 5px; }
.fld input, .fld select {
  width: 100%; padding: 10px 12px; border: 1px solid #dde3ee; border-radius: 9px;
  font-size: 14.5px; font-family: inherit; color: #1f2937; background: #fff;
}
.fld input:focus, .fld select:focus { outline: none; border-color: #1d4ed8; }
.err { color: #c2410c; font-size: 13px; min-height: 18px; }

.scoreline { display: flex; align-items: baseline; gap: 6px; }
.scoreline .big { font-size: 40px; font-weight: 700; color: #0f2747; line-height: 1.1; }
.scoreline .unit { color: #8a94a6; font-size: 14px; }

.dimrow { margin-bottom: 12px; }
.dimrow:last-child { margin-bottom: 0; }
.dimhead { display: flex; justify-content: space-between; font-size: 13.5px; color: #38445a; margin-bottom: 5px; }
.track { height: 7px; background: #eef1f6; border-radius: 4px; overflow: hidden; }
.track .fill { height: 100%; background: linear-gradient(90deg, #1d4ed8, #4f82e8); }

.light-note {
  margin-top: 10px; padding: 10px 12px; border-left: 3px solid #f0b429;
  background: #fffaf0; color: #7a5b12; font-size: 13.5px; border-radius: 0 8px 8px 0;
}
.recitem { padding: 10px 0; border-bottom: 1px dashed #eef1f6; }
.recitem:last-child { border-bottom: 0; }
.recname { font-size: 14.5px; color: #16213a; font-weight: 600; }
.recprice { font-size: 13px; color: #6b7280; margin-top: 2px; }

.fine { font-size: 12.5px; color: #8a94a6; line-height: 1.65; }
.fine a { color: #5b667a; }
.save-state { margin-top: 8px; font-size: 13px; }
.save-state.ok { color: #15803d; }
.save-state.warn { color: #b45309; }

.foot { text-align: center; padding: 18px 12px 30px; font-size: 12px; color: #9ca3af; }
.foot a { color: #9ca3af; text-decoration: none; }
.foot span { margin: 0 8px; }

.modal {
  position: fixed; inset: 0; background: rgba(15, 39, 71, .45);
  display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 50;
}
.modal-box { background: #fff; border-radius: 14px; padding: 18px; max-width: 460px; width: 100%; max-height: 82vh; overflow: auto; }
.modal-box h3 { margin: 0 0 10px; font-size: 16px; color: #0f2747; }
.modal-box p { font-size: 13.5px; margin: 0 0 8px; color: #38445a; }

.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%);
  background: rgba(15, 39, 71, .92); color: #fff; padding: 9px 16px;
  border-radius: 20px; font-size: 13.5px; z-index: 99;
}

@media (max-width: 480px) {
  .hero h1, .hero h2 { font-size: 21px; }
  .qtext { font-size: 16px; }
}
