/* 滴滴私家团·行程锦囊 — 移动端样式
 * 移动优先，适配 320px 以上；兼容微信内打开
 */
:root {
  --primary: #ff5f2e;          /* 滴滴橙 */
  --primary-deep: #e64a1c;
  --bg: #f7f5f2;
  --card: #ffffff;
  --text: #222222;
  --text-sub: #666666;
  --line: #ece9e4;
  --tag-bg: #f4efe8;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --card: #1f1f23;
    --text: #f2f2f2;
    --text-sub: #a9a9b0;
    --line: #2c2c32;
    --tag-bg: #2a2a31;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: 48px; }

/* ── 顶栏 ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.topbar-inner { display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.brand-text { font-weight: 600; font-size: 15px; }

/* ── 步骤条 ── */
.stepper {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px 6px;
  background: var(--bg);
}
.step { display: flex; align-items: center; gap: 6px; opacity: .35; transition: opacity .2s; }
.step.active, .stepper.done .step { opacity: 1; }
.dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--tag-bg); color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.step.active .dot { background: var(--primary); color: #fff; }
.label { font-size: 13px; }

/* ── 筛选视图 ── */
.main { padding: 16px 16px 0; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.quiz-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.quiz-sub { color: var(--text-sub); font-size: 14px; margin-bottom: 16px; }

.option-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 10px; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 15px; color: var(--text);
  transition: border-color .15s, transform .1s;
  position: relative;
}
.option:active { transform: scale(.98); }
.option.selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
}
.opt-icon { font-size: 22px; }
.opt-label { font-weight: 600; font-size: 14px; }
.opt-check {
  position: absolute; top: 10px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--tag-bg); color: transparent;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.option.selected .opt-check { background: var(--primary); color: #fff; }

.quiz-nav { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }

/* ── 按钮 ── */
.btn {
  display: block; width: 100%;
  padding: 14px 0; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600;
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-deep); }
.btn-secondary { background: var(--tag-bg); color: var(--text); }
.btn-skip {
  background: transparent; color: var(--text-sub);
  font-weight: 400; font-size: 14px; padding: 8px 0;
}

/* ── 结果页 ── */
.result-view { padding-top: 20px; }
.result-header { margin-bottom: 16px; }
.result-title-row { display: flex; align-items: baseline; gap: 10px; }
.result-title { font-size: 22px; font-weight: 700; }
.result-count { font-size: 14px; color: var(--text-sub); }
.result-sub { color: var(--text-sub); font-size: 14px; margin-top: 4px; }

.poi-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 16px; margin-bottom: 14px;
  display: flex; gap: 12px;
}
.poi-rank { font-size: 22px; line-height: 1; flex-shrink: 0; }
.poi-main { flex: 1; min-width: 0; }
.poi-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.poi-reason { font-size: 14px; color: var(--text-sub); margin-bottom: 10px; }
.poi-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag {
  background: var(--tag-bg); color: var(--text-sub);
  font-size: 12px; padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
}
.poi-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.poi-tip { font-size: 13px; color: var(--text-sub); background: var(--tag-bg); border-radius: 8px; padding: 6px 8px; }
.poi-hits { font-size: 13px; color: var(--primary); margin-top: 8px; font-weight: 600; }

.empty { background: var(--card); border-radius: var(--radius); padding: 32px 20px; text-align: center; color: var(--text-sub); font-size: 14px; line-height: 1.8; }

.result-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.result-note { font-size: 12px; color: var(--text-sub); text-align: center; margin-top: 14px; }
