/* 动机AI MVP 样式 —— 浅色奶油底 + 科技橙，延续 posterE_v3 杂志风 */
:root {
  --cream: #FAF7F1;
  --cream-2: #F2ECE2;
  --ink: #3A2E26;
  --ink-soft: #6B5C4F;
  --orange: #FF7A00;
  --orange-soft: #FFE7CC;
  --line: #E7DDCF;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--cream); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 20px 18px 60px; }
header.top {
  display: flex; align-items: center; gap: 10px; padding: 14px 0 6px;
}
.logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--orange);
  display: grid; place-items: center; color: #fff; font-size: 20px;
}
.brand { font-weight: 800; font-size: 17px; letter-spacing: .5px; }
.brand small { display: block; font-weight: 500; font-size: 10px; color: var(--ink-soft); letter-spacing: 2px; }

.hero {
  border: 1.5px solid var(--orange); border-radius: 18px;
  background: linear-gradient(160deg, #fff, var(--cream-2));
  padding: 30px 22px; text-align: center; margin: 14px 0 22px;
}
.hero h1 { font-size: 26px; margin: 6px 0 8px; }
.hero p { color: var(--ink-soft); margin: 0 0 18px; font-size: 14px; }

.btn {
  display: inline-block; border: none; border-radius: 999px; cursor: pointer;
  background: var(--orange); color: #fff; font-weight: 700; font-size: 16px;
  padding: 13px 30px; text-decoration: none; box-shadow: 0 6px 18px rgba(255,122,0,.28);
}
.btn.ghost { background: #fff; color: var(--orange); border: 1.5px solid var(--orange); box-shadow: none; }
.btn:active { transform: translateY(1px); }

.section-title { font-size: 15px; color: var(--ink-soft); margin: 26px 0 12px; font-weight: 700; letter-spacing: 1px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; text-align: left;
}
.card .name { font-weight: 800; font-size: 16px; }
.card .desc { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

.dims { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.dim {
  background: var(--cream-2); border-radius: 12px; padding: 14px; text-align: center;
  font-weight: 700; cursor: pointer; border: 1px solid transparent;
}
.dim:active { border-color: var(--orange); }

/* 问卷 */
.q { background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px; margin-bottom:14px; }
.q h3 { margin:0 0 12px; font-size:15px; }
.opt {
  display:block; border:1px solid var(--line); border-radius:10px; padding:12px 14px;
  margin-bottom:8px; cursor:pointer; font-size:14px; background:#fff;
}
.opt.sel { border-color: var(--orange); background: var(--orange-soft); }
.progress { height:6px; background:var(--cream-2); border-radius:999px; overflow:hidden; margin:10px 0 20px; }
.progress > i { display:block; height:100%; background:var(--orange); width:0; transition:width .25s; }

/* 结果 */
.result-hero { text-align:center; border:1.5px solid var(--orange); border-radius:18px; padding:28px 20px; background:#fff; }
.result-hero .big { font-size:34px; font-weight:800; margin:8px 0; }
.taglist { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:12px; }
.tag { background:var(--orange-soft); color:var(--orange); border-radius:999px; padding:5px 12px; font-size:12px; font-weight:700; }

/* 表单 */
.field { margin-bottom:14px; }
.field label { display:block; font-size:13px; color:var(--ink-soft); margin-bottom:6px; }
.field input, .field textarea {
  width:100%; border:1px solid var(--line); border-radius:10px; padding:12px;
  font-size:14px; background:#fff; font-family:inherit;
}
.note { font-size:12px; color:var(--ink-soft); background:var(--cream-2); border-radius:10px; padding:12px; margin-top:16px; }
/* ===== 全局返回箭头（由 /assets/js/nav.js 注入，勿删）===== */
body.has-navback header.top { padding-left: 46px; }
#navBack {
  position: fixed; z-index: 90;
  top: calc(env(safe-area-inset-top) + 10px);
  left: max(14px, calc(50% - 350px));
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); text-decoration: none;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(90, 70, 40, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
}
#navBack.solid { background: #fff; border-color: var(--orange-soft); box-shadow: 0 5px 16px rgba(90, 70, 40, .18); }
#navBack:active { transform: scale(.94); }

footer.foot { text-align:center; color:var(--ink-soft); font-size:11px; margin-top:30px; }
footer.foot a { color: var(--orange); text-decoration: none; }
@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .cards, .dims { grid-template-columns: 1fr; }
}
