/* 今天带她去哪 · 视觉主题「温柔的黄昏」：粉紫渐变 + 暖白底 + 大圆角卡片 */
:root {
  --ink: #3b3242;
  --muted: #8d8496;
  --soft: #f6eff4;
  --bg: #faf7f9;
  --card: #ffffff;
  --line: #f0e6ef;
  --rose: #d6336c;
  --grad: linear-gradient(135deg, #f472b6, #a78bfa);
  --shadow: 0 10px 30px rgba(180, 150, 200, .16);
  --radius: 20px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 17px; }
.brand-sub { font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.top-link { font-size: 14px; color: var(--rose); font-weight: 500; }

main { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 12px 18px 48px; }

/* 首页 */
.hero { text-align: center; padding: 46px 8px 30px; }
.hero-badge {
  display: inline-block; font-size: 13px; color: #a86fc9;
  background: #f6ecfb; border-radius: 999px; padding: 5px 14px; margin-bottom: 18px;
}
.hero-title {
  margin: 0 0 14px; font-size: clamp(34px, 7.5vw, 52px); letter-spacing: .04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #d6336c;
}
.hero-sub { margin: 0; color: var(--muted); font-size: 15.5px; }

.scene-grid {
  display: grid; gap: 14px; margin-top: 28px;
  grid-template-columns: repeat(3, 1fr);
}
.scene-card {
  background: var(--card); border-radius: var(--radius); padding: 22px 18px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.scene-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
}
.scene-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(180, 150, 200, .26); }
.scene-icon { font-size: 30px; margin-bottom: 8px; }
.scene-name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.scene-desc { font-size: 13px; color: var(--muted); }

.home-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 10px; }
.pill-link {
  font-size: 14px; padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 4px 14px rgba(180, 150, 200, .1);
}
.badge {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px;
  background: var(--grad); color: #fff; border-radius: 999px; font-size: 12px; line-height: 20px;
}

/* 窄页容器（筛选/结果/收藏） */
.page-narrow { max-width: 620px; margin: 0 auto; padding-top: 18px; }
.back { display: inline-block; font-size: 14px; color: var(--muted); padding: 6px 0 10px; }
.page-title { margin: 4px 0 4px; font-size: 26px; }
.page-sub { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }

/* 表单 */
.form-block { margin-bottom: 24px; }
.form-label { font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.form-label .req { color: var(--rose); }
.form-label .opt { font-size: 12.5px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.form-hint { font-size: 13.5px; color: var(--muted); margin: -6px 0 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 14px; padding: 10px 16px; font-size: 15px; cursor: pointer;
  transition: all .15s ease; line-height: 1.3;
}
.chip .chip-sub { display: block; font-size: 11px; color: var(--muted); }
.chip:hover { border-color: #e5b8d9; }
.chip.sel { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(214, 51, 108, .22); }
.chip.sel .chip-sub { color: rgba(255, 255, 255, .85); }
.cta {
  width: 100%; padding: 15px 0; margin-top: 8px; font-size: 17px; font-weight: 600;
  color: #fff; background: var(--grad); border: none; border-radius: 16px;
  box-shadow: 0 10px 26px rgba(214, 51, 108, .28); cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.cta:active { transform: scale(.985); }
.cta:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 16px 0 0; }

/* 结果页 */
.ov-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.ov-chip {
  font-size: 13px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 13px; color: var(--ink);
}
.ov-chip b { color: var(--rose); }
.transport-card {
  background: #fdf3f8; border: 1px solid #f7dcec; border-radius: 14px;
  padding: 12px 16px; font-size: 13.5px; margin-bottom: 18px; color: #7a4b66;
}
.t-label { display: inline-block; font-weight: 700; margin-right: 10px; color: var(--rose); }

.day-label { font-weight: 700; font-size: 16px; margin: 22px 0 12px; color: var(--rose); }
.timeline { position: relative; margin-bottom: 8px; }
.tl-item { display: flex; gap: 12px; margin-bottom: 14px; position: relative; }
.tl-time {
  flex: 0 0 74px; font-size: 12.5px; font-weight: 700; color: var(--rose);
  padding-top: 14px; white-space: nowrap;
}
.tl-dot {
  position: absolute; left: 84px; top: 18px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--grad); z-index: 2;
  box-shadow: 0 0 0 4px rgba(214, 51, 108, .12);
}
.tl-card {
  flex: 1; margin-left: 44px; background: var(--card); border-radius: 16px;
  padding: 13px 16px; box-shadow: var(--shadow);
}
.travel-note { font-size: 12px; color: #9a7bb0; margin-bottom: 6px; }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-name { font-weight: 700; font-size: 16.5px; }
.meal-tag {
  font-size: 11px; color: #fff; background: var(--grad);
  padding: 2px 9px; border-radius: 999px;
}
.tl-meta { font-size: 12.5px; color: var(--muted); margin: 3px 0 6px; }
.tl-hl { font-size: 14px; color: #5e5468; }
.tl-addr { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.tl-tip {
  margin-top: 8px; font-size: 12.5px; color: #a06a3b; background: #fbf4ea;
  border-radius: 10px; padding: 7px 10px;
}

.stay-card {
  background: linear-gradient(135deg, #fff 0%, #fdf3f8 100%);
  border: 1px solid #f7dcec; border-radius: 16px; padding: 16px; margin: 20px 0;
}
.stay-title { font-weight: 700; color: var(--rose); margin-bottom: 6px; }
.stay-name { font-weight: 600; font-size: 15.5px; }
.stay-hl { font-size: 13.5px; color: #7a4b66; margin: 4px 0 6px; }
.stay-card .tl-tip { background: #fff; }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 4px; }
.btn {
  flex: 1 1 40%; padding: 12px 0; border-radius: 14px; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--grad); color: #fff; border: none; box-shadow: 0 8px 20px rgba(214, 51, 108, .25); }
.btn.ghost { background: #fff; color: var(--rose); border-color: #f2c7dd; }
.btn:disabled { opacity: .5; }

/* 收藏 */
.saved-list { display: flex; flex-direction: column; gap: 12px; }
.saved-card {
  display: flex; gap: 10px; align-items: center; background: #fff;
  border-radius: 16px; padding: 15px 16px; box-shadow: var(--shadow);
}
.saved-main { flex: 1; min-width: 0; }
.saved-title { font-weight: 700; font-size: 15px; }
.saved-sub { font-size: 12.5px; color: #5e5468; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.saved-ops { display: flex; flex-direction: column; gap: 6px; }
.mini-btn {
  font-size: 12.5px; text-align: center; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.mini-btn.danger { color: #c92a42; border-color: #f3c2cc; }

.empty {
  text-align: center; color: var(--muted); background: #fff; border-radius: 16px;
  padding: 44px 20px; margin-top: 20px; box-shadow: var(--shadow); line-height: 1.9;
}

/* 地点库 */
.place-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.place-filters select, .place-filters input {
  padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font-size: 14px; color: var(--ink); outline: none;
}
.place-filters input { flex: 1; min-width: 140px; }
.pf-count { font-size: 12.5px; color: var(--muted); }
.cat-title { font-weight: 700; font-size: 15.5px; margin: 20px 0 10px; color: var(--rose); }
.place-item {
  background: #fff; border-radius: 14px; padding: 13px 16px; margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(180, 150, 200, .1);
}
.place-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.place-name { font-weight: 700; font-size: 15px; }
.place-price { font-size: 13px; color: var(--rose); white-space: nowrap; font-weight: 600; }

/* 隐私 */
.privacy-body { background: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); }
.privacy-body p { font-size: 14.5px; color: #5e5468; }
.privacy-body b { color: var(--ink); }

/* 海报 */
.poster-overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(40, 30, 45, .72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.poster-box {
  background: #fff; border-radius: 18px; padding: 14px; max-width: 420px; width: 100%;
  max-height: 92vh; overflow: auto; text-align: center;
}
.poster-box img { width: 100%; border-radius: 10px; display: block; }
.poster-tip { font-size: 13px; color: var(--muted); margin: 10px 0 8px; }
.poster-ops { display: flex; gap: 10px; }
.poster-ops .btn { flex: 1; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(16px);
  background: rgba(59, 50, 66, .92); color: #fff; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; opacity: 0; transition: all .3s ease;
  z-index: 60; pointer-events: none; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 页脚 */
.footer {
  text-align: center; padding: 26px 18px 34px; color: var(--muted);
  font-size: 13px; border-top: 1px solid var(--line);
}
.footer a { color: #a78bfa; }
.footer .fine { font-size: 11.5px; margin-top: 8px; color: #b9b0c0; }

/* 移动端 */
@media (max-width: 720px) {
  .scene-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero { padding-top: 34px; }
  .scene-card { padding: 16px 14px; }
  .scene-icon { font-size: 26px; }
  .scene-name { font-size: 15px; }
  .tl-time { flex-basis: 64px; font-size: 11.5px; }
  .tl-dot { left: 74px; }
  .tl-card { margin-left: 30px; padding: 12px 13px; }
  .btn { flex: 1 1 44%; }
  .saved-card { flex-direction: column; align-items: stretch; }
  .saved-ops { flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 420px) {
  .scene-grid { grid-template-columns: 1fr; }
  main { padding: 10px 14px 40px; }
}
