/* 一野 H5 测试推广页 - 共享样式（移动端优先） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #d0ebe0 0%, #e8f5f0 30%, #f5f7fa 60%, #ffffff 100%);
  min-height: 100vh;
  color: #2c3a33;
  line-height: 1.7;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

.screen { display: none; flex: 1; flex-direction: column; padding: 24px 22px 40px; animation: fadeIn .35s ease; }
.screen.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 顶部品牌条 */
.brand-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0 4px; }
.brand-bar .logo { font-size: 18px; font-weight: 600; letter-spacing: 2px; color: #0f6e56; }
.brand-bar .sub { font-size: 11px; color: #6b8a7d; letter-spacing: 1px; }

/* 前导页 */
.intro-hero { text-align: center; margin: 10px 0 18px; }
.intro-hero .badge { display: inline-block; font-size: 12px; color: #0f6e56; background: rgba(15,110,86,.1); border: 1px solid rgba(15,110,86,.25); border-radius: 999px; padding: 3px 14px; margin-bottom: 14px; }
.intro-hero h1 { font-size: 26px; line-height: 1.4; color: #1c2b25; margin-bottom: 8px; }
.intro-hero .subtitle { font-size: 14px; color: #57705f; }
.intro-card { background: #fff; border-radius: 16px; padding: 20px 18px; box-shadow: 0 4px 18px rgba(23,74,58,.08); font-size: 14px; color: #4a5c52; margin-bottom: 18px; }
.intro-meta { display: flex; justify-content: space-around; background: #fff; border-radius: 14px; padding: 14px 0; box-shadow: 0 4px 18px rgba(23,74,58,.08); margin-bottom: 26px; }
.intro-meta .m { text-align: center; }
.intro-meta .m .v { font-size: 17px; font-weight: 600; color: #0f6e56; }
.intro-meta .m .k { font-size: 11px; color: #8aa094; }

/* 按钮 */
.btn-main {
  display: block; width: 100%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #1d9e75, #0f6e56);
  color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 2px;
  padding: 15px 0; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15,110,86,.3);
}
.btn-main:active { transform: scale(.98); }
.btn-main[disabled] { opacity: .5; }
.btn-ghost {
  display: block; width: 100%; cursor: pointer; background: none;
  border: 1px solid rgba(15,110,86,.4); color: #0f6e56;
  font-size: 14px; padding: 11px 0; border-radius: 999px; margin-top: 14px;
}
.privacy-tip { font-size: 11px; color: #9ab0a5; text-align: center; margin-top: 16px; line-height: 1.6; }

/* 答题区 */
.quiz-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.back-btn { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid #c5d8cf; background: rgba(255,255,255,.7); color: #35544a; font-size: 16px; line-height: 1; cursor: pointer; }
.station-tag { font-size: 12px; color: #0f6e56; background: rgba(15,110,86,.1); border-radius: 999px; padding: 2px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-num { margin-left: auto; font-size: 12px; color: #8aa094; white-space: nowrap; }
.progress-track { height: 5px; background: rgba(15,110,86,.12); border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #1d9e75, #0f6e56); border-radius: 3px; transition: width .3s ease; }

.q-card { background: #fff; border-radius: 18px; padding: 26px 22px; box-shadow: 0 4px 18px rgba(23,74,58,.08); }
.q-title { font-size: 18px; font-weight: 600; color: #1c2b25; line-height: 1.6; margin-bottom: 4px; }
.q-hint { font-size: 12px; color: #9ab0a5; margin-bottom: 18px; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt {
  border: 1.5px solid #dce9e3; background: #fbfdfc; border-radius: 14px;
  padding: 13px 16px; font-size: 15px; color: #3c5046; cursor: pointer;
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  transition: all .15s ease;
}
.opt .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c5d8cf; margin-top: 2px; font-size: 11px; color: #8aa094; display: flex; align-items: center; justify-content: center; }
.opt.selected { border-color: #1d9e75; background: #eaf6f0; color: #0f6e56; }
.opt.selected .dot { border-color: #1d9e75; background: #1d9e75; color: #fff; }
.opt:active { transform: scale(.985); }

/* 知识卡片 */
.kcard { background: linear-gradient(160deg, #fff, #f2faf6); border: 1px solid #dcebe3; border-radius: 18px; padding: 24px 20px; }
.kcard .k-badge { font-size: 11px; color: #b8860b; background: #faf0d7; border-radius: 999px; padding: 2px 12px; display: inline-block; margin-bottom: 10px; }
.kcard h3 { font-size: 17px; color: #3c5046; margin-bottom: 10px; }
.kcard .k-body { font-size: 14px; color: #57705f; }
.kcard .k-body p { margin-bottom: 8px; }
.kcard .k-body b { color: #2c3a33; }

/* 表单 */
.form-card { background: #fff; border-radius: 18px; padding: 24px 20px; box-shadow: 0 4px 18px rgba(23,74,58,.08); }
.form-card h2 { font-size: 19px; color: #1c2b25; margin-bottom: 6px; }
.form-card .f-sub { font-size: 13px; color: #8aa094; margin-bottom: 20px; }
.f-row { margin-bottom: 16px; }
.f-row label { display: block; font-size: 13px; color: #57705f; margin-bottom: 6px; }
.f-row label .req { color: #d85a30; margin-left: 2px; }
.f-row input {
  width: 100%; border: 1.5px solid #dce9e3; border-radius: 12px;
  padding: 12px 14px; font-size: 16px; color: #2c3a33; background: #fbfdfc; outline: none;
}
.f-row input:focus { border-color: #1d9e75; background: #fff; }
.f-err { font-size: 12px; color: #d85a30; margin-top: 4px; display: none; }
.f-row.error input { border-color: #d85a30; }
.f-row.error .f-err { display: block; }
.submit-tip { font-size: 11px; color: #9ab0a5; margin-top: 14px; text-align: center; }

/* 结果页 */
.result-hero { text-align: center; padding: 8px 0 20px; }
.result-hero .r-emoji { font-size: 44px; }
.result-hero .r-qname { font-size: 24px; font-weight: 700; color: #1c2b25; margin: 6px 0 2px; }
.result-hero .r-brow { font-size: 15px; color: #0f6e56; font-weight: 600; }
.result-hero .r-tags { margin-top: 12px; }
.r-tag { display: inline-block; font-size: 12px; color: #0f6e56; background: rgba(15,110,86,.1); border-radius: 999px; padding: 3px 12px; margin: 3px; }
.r-section { background: #fff; border-radius: 16px; padding: 18px 16px; box-shadow: 0 4px 14px rgba(23,74,58,.07); margin-bottom: 14px; }
.r-section h3 { font-size: 15px; color: #0f6e56; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.r-section h3::before { content: ""; width: 4px; height: 14px; background: #1d9e75; border-radius: 2px; }
.r-section .r-body { font-size: 14px; color: #4a5c52; }
.r-section .r-body p { margin-bottom: 6px; }

/* 跳转小程序区 */
.jump-card { background: linear-gradient(160deg, #0f6e56, #14543f); border-radius: 18px; padding: 24px 20px; text-align: center; color: #fff; margin: 6px 0 14px; }
.jump-card h3 { font-size: 17px; margin-bottom: 6px; }
.jump-card p { font-size: 12.5px; color: #bcdccd; margin-bottom: 16px; }
.jump-card .qr-box { background: #fff; border-radius: 14px; padding: 12px; display: inline-block; margin-bottom: 12px; }
.jump-card .qr-box img { width: 168px; height: 168px; display: block; }
.jump-card .qr-loading { width: 168px; height: 168px; display: flex; align-items: center; justify-content: center; color: #9ab0a5; font-size: 12px; }
.btn-jump {
  display: block; width: 100%; border: none; cursor: pointer;
  background: #fff; color: #0f6e56; font-size: 16px; font-weight: 600;
  padding: 13px 0; border-radius: 999px;
}
.btn-share { margin-top: 12px; }
.toast {
  position: fixed; left: 50%; bottom: 18%; transform: translateX(-50%);
  background: rgba(20,40,32,.88); color: #fff; font-size: 14px;
  padding: 10px 22px; border-radius: 999px; z-index: 99;
  animation: fadeIn .2s ease; max-width: 80vw; text-align: center;
}
.footer-note { text-align: center; font-size: 11px; color: #9ab0a5; padding: 10px 0 4px; }
