/* 问事 · 样式
   纸感底色 + 朱红点缀，避免"算命网站"那股金紫霓虹味。
   字号与行距优先保证长段中文可读。 */

:root {
  --paper: #f6f2ea;
  --card: #fffdf8;
  --ink: #24201b;
  --muted: #7a7062;
  --line: #e4dbcb;
  --accent: #a63d2e;
  --jade: #2e6b5c;
  --amber: #8a6a2f;
  --serif: "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.78 -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 700px; margin: 0 auto; padding: 0 20px 90px; }

/* ---------- 页头 ---------- */
.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.brand {
  font-family: var(--serif); font-size: 21px; letter-spacing: .16em;
  color: var(--ink); text-decoration: none;
}
.top nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 16px;
}
.top nav a:hover { color: var(--accent); }

/* ---------- 通用 ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .02em; }
h1 { font-size: 27px; line-height: 1.5; margin: 0 0 6px; }
h2 { font-size: 19px; margin: 0 0 14px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.7; }
.tiny { font-size: 12px; line-height: 1.65; color: var(--muted); }
.center { text-align: center; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px; margin: 16px 0;
}
.card.tight { padding: 14px 18px; }

.lede { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

/* ---------- 表单 ---------- */
label.field { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
input[type=text], textarea, select, input[type=datetime-local] {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > div { flex: 1 1 160px; }
.spacer { height: 14px; }

.btn {
  display: inline-block; font: inherit; font-size: 16px; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: 10px; padding: 12px 26px; text-decoration: none;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent; color: var(--accent);
}
.btn.block { display: block; width: 100%; text-align: center; }
.btn.small { padding: 8px 16px; font-size: 14px; }

details { margin: 10px 0; }
details > summary {
  cursor: pointer; color: var(--muted); font-size: 13px; list-style: none;
  user-select: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "＋ "; }
details[open] > summary::before { content: "－ "; }
details > summary:hover { color: var(--accent); }

/* ---------- 结论 ---------- */
.verdict-box { border-left: 3px solid var(--accent); padding-left: 18px; }
.verdict-word {
  font-family: var(--serif); font-size: 32px; letter-spacing: .06em;
  margin: 2px 0 8px;
}
.verdict-word.ok { color: var(--jade); }
.verdict-word.no { color: var(--accent); }
.verdict-word.mid { color: var(--amber); }
.verdict-said { font-size: 17px; line-height: 1.75; margin-bottom: 10px; }

.kv { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.kv span b { color: var(--ink); font-weight: 500; }

.tag {
  display: inline-block; font-size: 11px; letter-spacing: .06em;
  padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line);
  color: var(--muted); margin-right: 6px;
}
.tag.ji { color: var(--jade); border-color: #bfd6ce; background: #f2f8f5; }
.tag.xiong { color: var(--accent); border-color: #e8c8c2; background: #fdf3f1; }

/* ---------- 时间窗口 ---------- */
.window {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px;
}
.window:last-child { border-bottom: 0; }
.window .when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.window .why { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 阻力点 ---------- */
.point { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.point:last-child { border-bottom: 0; }
.point .head { font-size: 15px; margin-bottom: 2px; }
.point .body { font-size: 13.5px; color: #4a4238; }

/* ---------- 九宫格 ---------- */
.pan {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.gong {
  background: var(--card); min-height: 104px; padding: 7px 8px;
  position: relative; display: flex; flex-direction: column;
  justify-content: space-between;
}
.gong.mid { background: #f2ede2; }
.gong .shen { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.gong .star { font-size: 14px; }
.gong .gan { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.gong .men { font-size: 12.5px; color: #4a4238; }
.gong .base { display: flex; justify-content: space-between; align-items: baseline; }
.gong .mark {
  position: absolute; top: 5px; right: 7px; font-size: 10px;
  color: var(--accent); letter-spacing: .04em;
}
.pan-legend { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- 应验 ---------- */
.choices { display: grid; gap: 8px; margin-top: 12px; }
.choice {
  text-align: left; font: inherit; cursor: pointer; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  color: var(--ink);
}
.choice:hover { border-color: var(--accent); }
.choice b { font-weight: 600; margin-right: 8px; }
.choice span { color: var(--muted); font-size: 13px; }

.status-pill {
  display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px;
  border: 1px solid var(--line);
}
.status-pill.hit { color: var(--jade); border-color: #bfd6ce; background: #f2f8f5; }
.status-pill.miss { color: var(--accent); border-color: #e8c8c2; background: #fdf3f1; }
.status-pill.pending { color: var(--amber); border-color: #e0d2b4; background: #fbf6ea; }

/* ---------- 列表 ---------- */
.item {
  display: block; padding: 13px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.item:last-child { border-bottom: 0; }
.item .q { font-size: 16px; }
.item .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.item:hover .q { color: var(--accent); }

.banner {
  background: #fbf3ee; border: 1px solid #e8cfc5; color: #7a3a2c;
  border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-size: 14px;
}

.empty { text-align: center; color: var(--muted); padding: 44px 0; font-size: 15px; }

/* ---------- 页脚 ---------- */
footer {
  margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); line-height: 1.8;
}

@media (max-width: 520px) {
  .verdict-word { font-size: 27px; }
  h1 { font-size: 22px; }
  .gong { min-height: 92px; }
  .gong .gan { font-size: 17px; }
}
