/* 04 反向旅游目的地选择 · 等高线地图 / 野外手册 */
.rtp-page, .rtp-modal, .rtp-toast {
    --rtp-bg: #f2efe4;
    --rtp-paper: #fcfaf2;
    --rtp-soft: #ecf0e6;
    --rtp-ink: #22392f;
    --rtp-sub: #66756a;
    --rtp-line: #d9ddcb;
    --rtp-brand: #2f5d50;
    --rtp-brand-2: #1d443a;
    --rtp-accent: #d97b3c;
    --rtp-accent-soft: #fbe9d7;
    --rtp-good: #3b7d55;
    --rtp-bad: #b04a33;
    --rtp-shadow: 0 14px 36px rgba(34, 57, 47, .10);
    --rtp-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --rtp-num: "Bahnschrift", "DIN Alternate", Consolas, monospace;
}
:root[data-theme="dark"] .rtp-page,
:root[data-theme="dark"] .rtp-modal,
:root[data-theme="dark"] .rtp-toast {
    --rtp-bg: #101a16;
    --rtp-paper: #182720;
    --rtp-soft: #203229;
    --rtp-ink: #e9f2e9;
    --rtp-sub: #9fb4a4;
    --rtp-line: #2d4235;
    --rtp-brand: #7bc4a2;
    --rtp-brand-2: #a6dcc0;
    --rtp-accent: #f0a76b;
    --rtp-accent-soft: #3a2c1d;
    --rtp-good: #8ed6a8;
    --rtp-bad: #ff9c81;
    --rtp-shadow: 0 14px 36px rgba(0, 0, 0, .42);
}
.rtp-page { background: var(--rtp-bg); color: var(--rtp-ink); font-family: var(--rtp-font); font-size: 15px; line-height: 1.76; }
.rtp-page * { box-sizing: border-box; }
.rtp-wrap { max-width: 1180px; margin: 0 auto; padding: 22px 22px 60px; }
.rtp-page .detail-breadcrumb { font-size: 13px; color: var(--rtp-sub); margin-bottom: 20px; }
.rtp-page .detail-breadcrumb a { color: var(--rtp-brand); text-decoration: none; }
.rtp-page .detail-breadcrumb .sep { margin: 0 8px; opacity: .6; }
.rtp-page .detail-breadcrumb .current { color: var(--rtp-ink); }

.rtp-hero { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .72fr); gap: 26px; }
.rtp-hero-copy { background: var(--rtp-paper); border: 1px solid var(--rtp-line); border-radius: 16px; padding: 30px 32px 24px; box-shadow: var(--rtp-shadow); }
.rtp-kicker { display: inline-block; font-family: var(--rtp-num); font-size: 11px; letter-spacing: .16em; color: var(--rtp-brand); border-bottom: 2px solid var(--rtp-accent); padding-bottom: 3px; font-weight: 700; }
.rtp-hero h1 { font-size: clamp(26px, 3vw, 37px); line-height: 1.28; margin: 15px 0 10px; font-weight: 800; letter-spacing: -.02em; }
.rtp-hero h1 em { display: block; font-style: normal; font-size: .52em; color: var(--rtp-accent); font-weight: 600; margin-top: 7px; }
.rtp-sub { color: var(--rtp-sub); font-size: 14.5px; margin: 0 0 20px; max-width: 64ch; }
.rtp-sub b { color: var(--rtp-brand-2); }
:root[data-theme="dark"] .rtp-sub b { color: var(--rtp-brand); }
.rtp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.rtp-fact { background: var(--rtp-soft); border: 1px solid var(--rtp-line); border-radius: 11px; padding: 12px 14px; }
.rtp-fact span { display: block; font-size: 12px; color: var(--rtp-sub); }
.rtp-fact b { font-family: var(--rtp-num); font-size: 26px; line-height: 1.3; }
.rtp-fact i { font-style: normal; font-size: 11px; color: var(--rtp-sub); margin-left: 4px; }
.rtp-fact.is-main b { font-family: var(--rtp-font); font-size: 22px; color: var(--rtp-brand); }
.rtp-fact.is-main { background: var(--rtp-brand-2); border-color: var(--rtp-brand-2); }
.rtp-fact.is-main span, .rtp-fact.is-main i { color: rgba(255,255,255,.72); }
.rtp-fact.is-main b { color: #fff; }
:root[data-theme="dark"] .rtp-fact.is-main span, :root[data-theme="dark"] .rtp-fact.is-main i { color: rgba(16,26,22,.7); }
:root[data-theme="dark"] .rtp-fact.is-main b { color: #101a16; }
.rtp-hero-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 9px; align-items: end; border-top: 1px dashed var(--rtp-line); padding-top: 16px; }
.rtp-page label > span { display: block; font-size: 11.5px; color: var(--rtp-sub); margin-bottom: 4px; }
.rtp-page input:not([type="range"]), .rtp-page select, .rtp-page textarea { width: 100%; background: var(--rtp-soft); color: var(--rtp-ink); border: 1px solid var(--rtp-line); border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: var(--rtp-num); outline: none; }
.rtp-page select, .rtp-page textarea { font-family: var(--rtp-font); }
.rtp-page input:focus, .rtp-page select:focus, .rtp-page textarea:focus { border-color: var(--rtp-accent); box-shadow: 0 0 0 3px var(--rtp-accent-soft); }
.rtp-go { background: var(--rtp-accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 15px; font-weight: 800; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.rtp-go:hover { filter: brightness(1.08); }
.rtp-pref { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--rtp-sub); }
.rtp-pref input { flex: 1; max-width: 240px; accent-color: var(--rtp-accent); }
.rtp-pref b { font-family: var(--rtp-num); color: var(--rtp-ink); font-size: 12px; }
.rtp-err { color: var(--rtp-bad); font-size: 13px; margin: 10px 0 0; font-weight: 600; }

.rtp-map { background: var(--rtp-soft); border: 1px solid var(--rtp-line); border-radius: 16px; padding: 16px; box-shadow: var(--rtp-shadow); }
.rtp-map-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.rtp-map-head span { font-size: 11px; color: var(--rtp-sub); }
.rtp-map svg { width: 100%; height: auto; display: block; margin: 8px 0; }
.rtp-map-rank { display: grid; gap: 5px; font-size: 12px; }
.rtp-map-rank div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--rtp-line); padding: 3px 0; }
.rtp-map-rank b { font-family: var(--rtp-num); color: var(--rtp-brand); }

.rtp-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 22px; background: var(--rtp-paper); border: 1px dashed var(--rtp-line); border-radius: 10px; padding: 12px 16px; }
.rtp-quick > span { font-size: 12.5px; color: var(--rtp-sub); }
.rtp-quick button, .rtp-mini { background: var(--rtp-soft); color: var(--rtp-ink); border: 1px solid var(--rtp-line); border-radius: 20px; padding: 6px 13px; font-size: 12.5px; cursor: pointer; font-family: var(--rtp-font); }
.rtp-quick button:hover, .rtp-mini:hover { border-color: var(--rtp-accent); }
.rtp-quick button.is-main { background: var(--rtp-brand); color: #fff; border-color: var(--rtp-brand); font-weight: 700; }
:root[data-theme="dark"] .rtp-quick button.is-main { color: #101a16; }
.rtp-panel { background: var(--rtp-paper); border: 1px solid var(--rtp-line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--rtp-shadow); margin-bottom: 20px; min-width: 0; }
.rtp-panel-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rtp-panel-head h2 { font-size: 18px; margin: 0; }
.rtp-panel-head small { color: var(--rtp-sub); font-size: 12px; }
.rtp-tag { width: 24px; height: 24px; border-radius: 50%; background: var(--rtp-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--rtp-num); font-size: 12px; font-weight: 800; }
:root[data-theme="dark"] .rtp-tag { color: #101a16; }
.rtp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rtp-card { background: var(--rtp-soft); border: 1px solid var(--rtp-line); border-radius: 11px; padding: 14px; display: flex; flex-direction: column; }
.rtp-card.is-top { border-color: var(--rtp-accent); box-shadow: 0 0 0 2px var(--rtp-accent-soft); }
.rtp-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.rtp-card-head b { font-size: 16px; }
.rtp-card-head span { font-family: var(--rtp-num); font-size: 12px; color: var(--rtp-sub); }
.rtp-card small { color: var(--rtp-sub); font-size: 11.5px; }
.rtp-card-score { font-family: var(--rtp-num); font-size: 24px; color: var(--rtp-brand); line-height: 1.4; }
.rtp-bar { height: 7px; border-radius: 4px; background: var(--rtp-line); overflow: hidden; margin: 6px 0 10px; }
.rtp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rtp-brand), var(--rtp-accent)); }
.rtp-card-meta { font-size: 12px; color: var(--rtp-sub); display: grid; gap: 3px; margin-bottom: 10px; }
.rtp-card button { margin-top: auto; background: var(--rtp-paper); border: 1px solid var(--rtp-line); border-radius: 7px; padding: 6px; font-size: 12px; cursor: pointer; color: var(--rtp-brand); font-family: var(--rtp-font); }
.rtp-card button:hover { border-color: var(--rtp-accent); }
.rtp-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 20px; }
.rtp-grid > * { min-width: 0; }
.rtp-radar-panel svg { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; }
.rtp-tip { color: var(--rtp-sub); font-size: 12px; margin: 12px 0 0; }
.rtp-scroll { overflow-x: auto; }
.rtp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.rtp-table th { text-align: left; color: var(--rtp-sub); font-size: 12px; font-weight: 600; padding: 8px; border-bottom: 1px solid var(--rtp-line); white-space: nowrap; }
.rtp-table td { padding: 7px 8px; border-bottom: 1px dashed var(--rtp-line); }
.rtp-table td input, .rtp-table td select { padding: 5px 7px; font-size: 13px; }
.rtp-table .num { font-family: var(--rtp-num); }
.rtp-table tr.is-best { background: var(--rtp-accent-soft); }
.rtp-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; min-height: 26px; }
.rtp-chip { background: var(--rtp-soft); border: 1px solid var(--rtp-line); border-radius: 20px; padding: 5px 10px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 7px; }
.rtp-chip button { background: none; border: 0; color: var(--rtp-bad); cursor: pointer; font-size: 14px; }
.rtp-list-empty { color: var(--rtp-sub); font-size: 12.5px; }
.rtp-ai { border: 1px solid var(--rtp-brand); }
.rtp-ai-status, .rtp-ai-box p { font-size: 13px; color: var(--rtp-sub); }
.rtp-ai-box { margin-top: 12px; }
.rtp-ai-box p { background: var(--rtp-soft); border-left: 3px solid var(--rtp-brand); padding: 8px 12px; border-radius: 0 8px 8px 0; color: var(--rtp-ink); }
.rtp-ai-actions { margin-top: 12px; }
.rtp-btn { background: var(--rtp-brand); color: #fff; border: 1px solid var(--rtp-brand); border-radius: 8px; padding: 8px 15px; font-size: 13px; cursor: pointer; font-family: var(--rtp-font); }
.rtp-btn:hover { filter: brightness(1.12); }
:root[data-theme="dark"] .rtp-btn { color: #101a16; }
.rtp-btn-ai { background: var(--rtp-accent); border-color: var(--rtp-accent); }
.rtp-note span { display: block; font-size: 12px; color: var(--rtp-sub); margin-bottom: 6px; }
.rtp-note-out { font-size: 13px; background: var(--rtp-soft); border-left: 3px solid var(--rtp-accent); padding: 8px 12px; margin-top: 10px; }
.rtp-note-out:empty { display: none; }
.rtp-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.rtp-del { background: none; border: 0; color: var(--rtp-bad); cursor: pointer; font-size: 17px; }

.rtp-modal[hidden] { display: none !important; }
.rtp-modal { position: fixed; inset: 0; z-index: 900; background: rgba(16, 30, 22, .6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.rtp-sheet { background: var(--rtp-paper); color: var(--rtp-ink); border-radius: 14px; padding: 26px; max-width: 460px; width: 100%; box-shadow: var(--rtp-shadow); border-top: 6px solid var(--rtp-accent); }
.rtp-sheet h3 { margin: 0 0 8px; font-size: 19px; }
.rtp-sheet p { color: var(--rtp-sub); font-size: 13px; }
.rtp-sheet code { display: block; background: var(--rtp-soft); border: 1px dashed var(--rtp-line); padding: 10px; font-size: 11.5px; word-break: break-all; border-radius: 6px; }
.rtp-sheet-actions { text-align: right; margin-top: 16px; }
.rtp-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); background: var(--rtp-brand-2); color: #fff; padding: 10px 20px; border-radius: 24px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 950; }
.rtp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
    .rtp-hero, .rtp-grid { grid-template-columns: minmax(0, 1fr); }
    .rtp-hero-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rtp-go { grid-column: span 2; }
    .rtp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .rtp-wrap { padding: 14px 12px 40px; }
    .rtp-hero-copy { padding: 22px 18px; }
    .rtp-facts { grid-template-columns: minmax(0, 1fr); }
    .rtp-hero-form { grid-template-columns: minmax(0, 1fr); }
    .rtp-go { grid-column: span 1; }
    .rtp-cards { grid-template-columns: minmax(0, 1fr); }
    .rtp-pref { flex-wrap: wrap; }
    .rtp-table { min-width: 0; font-size: 12px; }
    .rtp-table th:nth-child(3), .rtp-table td:nth-child(3) { display: none; }
    .rtp-page input, .rtp-page select, .rtp-page textarea { font-size: 16px; }
}
@media print { .rtp-quick, .rtp-actions, .rtp-ai, .rtp-modal, .rtp-toast, .tskb { display: none !important; } }
