/* 命里有研 · 移动优先样式 */
:root {
  --bg: #f8f5ee;
  --ink: #26332d;
  --muted: #778078;
  --red: #995448;
  --line: #dfddd2;
  --paper: #fffdf8;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #e9e8e0;
  color: var(--ink);
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Serif SC", serif;
  line-height: 1.6;
}
.wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding: 22px clamp(18px, 5vw, 40px) 56px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.04);
}

/* 顶部 */
.top { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 15px; letter-spacing: .12em; }
.ver { font-size: 11px; font-family: Arial; letter-spacing: 0; margin-left: 6px; color: var(--muted); }
.seal {
  color: var(--red); border: 1px solid var(--red); padding: 3px 8px;
  font-size: 14px; line-height: 1; border-radius: 3px;
}

/* 免责声明横幅（常显、显眼） */
.disclaimer-banner {
  margin: 14px 0 0;
  background: #f6e7e3;
  border: 1px solid #e3c7c0;
  color: #8a3b30;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 9px 10px;
  border-radius: 8px;
}

/* 通用 */
h1 { font-size: 42px; letter-spacing: .14em; font-weight: 500; margin: 30px 0 12px; line-height: 1.25; }
h1 em { color: var(--red); font-style: normal; }
h2 { font-size: 26px; font-weight: 500; margin: 18px 0 8px; }
h3 { font-size: 18px; font-weight: 500; color: var(--red); margin: 0 0 10px; }
p { color: #5b675f; }
.eyebrow { font-size: 13px; letter-spacing: .2em; color: var(--muted); margin: 34px 0 0; }
.lead { font-size: 15px; color: #5b675f; margin: 10px 0 22px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 6px 0 0; }
.chapter { color: var(--red); font-size: 12px; letter-spacing: .18em; margin: 20px 0 4px; }
.hidden { display: none !important; }

/* 表单 */
.field { margin: 18px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
input, select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid #c9c6ba; border-radius: 8px;
  background: #fffefa; font-size: 16px; color: var(--ink);
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23778078' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
input:focus, select:focus { outline: none; border-color: var(--red); }

/* 城市联动两列 */
.citypick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.citypick select { min-width: 0; }
.city-hint { font-size: 12px; color: var(--muted); margin-top: 6px; min-height: 16px; }

/* 按钮 */
.btn {
  width: 100%; min-height: 48px; padding: 12px; margin-top: 14px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-size: 15px; cursor: pointer; border-radius: 8px; letter-spacing: .04em;
}
.btn:active { opacity: .85; }
.btn.light { background: transparent; color: var(--ink); border-color: #b9b7ad; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.rowbuttons { display: flex; gap: 12px; }
.rowbuttons .btn { flex: 1; }

/* 进度条 */
.progress { height: 3px; background: #deddd4; margin: 18px 0; border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--red); transition: width .2s; }

/* 错误提示 */
.error { color: #aa403d; font-size: 13px; min-height: 20px; margin: 8px 0 0; }

/* 报告 */
.pills { margin: 10px 0 4px; font-size: 13px; color: var(--muted); }
.report {
  background: var(--paper); border: 1px solid #d9d4c7; border-radius: 8px;
  padding: 20px; margin: 16px 0; white-space: normal; word-break: break-word;
}
.report p { color: var(--ink); margin: 0 0 14px; }
.report p:last-child { margin-bottom: 0; }
.report .sec { display: block; margin-bottom: 16px; }
.report .sec:last-child { margin-bottom: 0; }
.note {
  background: #f0ece2; padding: 13px 15px; border-left: 3px solid var(--red);
  font-size: 13px; line-height: 1.8; color: #60685e; border-radius: 0 6px 6px 0;
}
.report-tools { margin-top: 8px; }
details { margin-top: 16px; }
summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 6px 0; }
details .report { max-height: 420px; overflow-y: auto; }

/* 六爻 */
.hex-display { margin: 12px 0 6px; text-align: center; }
.yao {
  display: flex; justify-content: center; gap: 8px; align-items: center;
  height: 16px;
}
.yao span {
  display: inline-block; width: 72px; height: 6px; border-radius: 3px;
  background: var(--ink);
}
.yao span + span { width: 20px; }

/* 页脚 */
.foot {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-align: center;
}
