/* ================= 行程卡（public/tripcard.js） =================
 * 卡片挂在 .a-text 里，那儿给 ul/ol/li/a/p 写过的边距、下划线会漏进来，所以开头先归零。
 * 颜色一律走 --owb-* 令牌，深色模式跟着变；底图瓦片本身是浅色的，深色下整层反相。 */

/* ---------- 静态那一份：没点活之前、复制出去时都是它 ---------- */
.a-text .tc { margin: 10px 0; }
.tc-static { padding: 12px 14px; border: 1px solid var(--owb-border); border-radius: var(--radius-xl); background: var(--owb-card); }
.tc-stitle { font-weight: 600; margin-bottom: 6px; }
.tc-sday + .tc-sday { margin-top: 8px; }
.tc-ssum { color: var(--owb-text-2); font-size: 13px; }
.a-text .tc-static ol { margin: 4px 0 0; padding-left: 20px; }
.tc-pending { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border: 1px dashed var(--owb-border); border-radius: var(--radius-xl); color: var(--owb-text-2); font-size: 13px; }
.tc-pn { color: var(--owb-text-3); }
.tc-smore { margin-top: 4px; color: var(--owb-text-3); font-size: 12px; }
/* 围栏里的 JSON 解不开：一句话说哪儿不对，原文收在「看原文」里 */
.tc-bad { padding: 10px 14px; border: 1px dashed var(--owb-border); border-radius: var(--radius-xl); font-size: 13px; }
.tc-badh { color: var(--owb-text-2); }
.tc-raw { margin-top: 4px; }
.tc-raw summary { cursor: pointer; color: var(--owb-text-3); font-size: 12px; }
.a-text .tc-raw pre { margin: 6px 0 0; max-height: 240px; overflow: auto; font-size: 12px; }
.tc-bad .tc-redo { margin-top: 6px; padding: 3px 12px; border: 1px solid var(--owb-border); border-radius: var(--radius-full); background: none; color: var(--owb-text); font: inherit; font-size: 12px; cursor: pointer; }
.tc-bad .tc-redo:hover { border-color: var(--owb-text-3); }
.tc-spin { width: 14px; height: 14px; border: 2px solid var(--owb-border); border-top-color: var(--owb-brand); border-radius: 50%; animation: tc-spin .8s linear infinite; }
@keyframes tc-spin { to { transform: rotate(360deg); } }

/* ---------- 活卡片 ----------
 * 宽的时候：地图铺满整张卡片，天数一排胶囊浮在左上角，当天的地点浮在右边一栏（--tc-pw 宽、离边 --tc-in），缩放在左下角。
 * 窄的时候（≤620px）：地图在上、地点在下。两个容器起了名字：tcw 是整张卡片（管上下摆），tcp 是右边那栏（管照片大小）。 */
.tc-w { --tc-in: 10px; --tc-lbl: #1c1d21; --tc-halo: #fff; --tc-pinbg: #1c1d21; container: tcw / inline-size; font-size: 14px; line-height: 1.5; }
html[data-theme="dark"] .tc-w { --tc-lbl: #eceef3; --tc-halo: #17181c; --tc-pinbg: #3a3c44; }
.tc-w button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.tc-w a { text-decoration: none; }
.tc-w [hidden] { display: none !important; }

.tc-head { display: flex; align-items: center; gap: 10px; padding: 0 2px 8px; }
.tc-ttl { flex: 0 1 auto; min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-ai { flex: none; color: var(--owb-text-3); font-size: 12px; white-space: nowrap; }
.tc-w .tc-found { flex: none; color: var(--owb-text-2); font-size: 13px; white-space: nowrap; }
.tc-w .tc-found:hover { color: var(--owb-text); }
.tc-views { flex: none; display: inline-flex; margin-left: auto; padding: 2px; border-radius: var(--radius-md); background: var(--owb-bg-side); }
.tc-w .tc-views button { padding: 3px 10px; border-radius: var(--radius-sm); font-size: 12px; color: var(--owb-text-2); }
.tc-w .tc-views button[aria-selected="true"] { background: var(--owb-card); color: var(--owb-text); box-shadow: var(--owb-shadow-sm); }

.tc-alert { margin: 0 2px 8px; color: var(--owb-warn); font-size: 12px; }
.tc-more { margin: 0 2px 8px; color: var(--owb-text-3); font-size: 12px; }
.tc-panel .tc-more, .tc-tl .tc-more { margin: 12px 0 0; }

.tc-list { margin: 0 0 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--owb-bg-side); font-size: 13px; max-height: 260px; overflow: auto; }
.tc-lday + .tc-lday { margin-top: 8px; }
.tc-lrow { display: flex; gap: 10px; justify-content: space-between; padding: 2px 0; }
.tc-lrow em { font-style: normal; color: var(--owb-text-3); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-lrow.miss span { color: var(--owb-text-3); }
.tc-lsrc { margin-top: 8px; color: var(--owb-text-3); font-size: 12px; }
.tc-note-err { color: var(--owb-warn); margin-top: 2px; }

/* 天数：地图上是一排浮着的胶囊（选中的是实心黑），切到时间线就是普通一排 */
.tc-stage { position: relative; }
/* 十来天的行程一行放不下：留一条细滚动条，看得出后面还有 */
.tc-tabs { display: flex; gap: 6px; padding: 4px; margin: -4px -4px 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--owb-border) transparent; }
.tc-tabs::-webkit-scrollbar { height: 6px; }
.tc-tabs::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--owb-border); }
.tc-tabs::-webkit-scrollbar-thumb:hover { background: var(--owb-text-3); }
.tc-w[data-view="map"] .tc-tabs { position: absolute; z-index: 4; left: calc(var(--tc-in) - 4px); top: calc(var(--tc-in) - 4px); margin: 0;
  max-width: calc(100% - var(--tc-pw, 41%) - 3 * var(--tc-in)); box-sizing: border-box; }
.tc-w.tc-folded[data-view="map"] .tc-tabs { max-width: calc(100% - 2 * var(--tc-in) - 24px); }
.tc-w .tc-tabs button { flex: none; padding: 5px 14px; border-radius: var(--radius-full); background: var(--owb-card); color: var(--owb-text); font-size: 13px; font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .04); transition: background var(--owb-t-fast), color var(--owb-t-fast); }
.tc-w .tc-tabs button:hover { background: var(--owb-bg-hover); }
.tc-w .tc-tabs button[aria-selected="true"] { background: var(--owb-text); color: var(--owb-bg); }
.tc-w[data-view="timeline"] .tc-tabs button { box-shadow: none; border: 1px solid var(--owb-border); }
.tc-w[data-view="timeline"] .tc-tabs button[aria-selected="true"] { border-color: var(--owb-text); }

.tc-body { position: relative; border: 1px solid var(--owb-border); border-radius: var(--radius-xl); overflow: hidden; background: var(--owb-card); }
.tc-w.tc-folded .tc-panel { display: none; }
.tc-w.tc-resizing { user-select: none; -webkit-user-select: none; }
.tc-w.tc-resizing .tc-map { cursor: inherit; }

/* 右边那栏的左边沿能拖（调宽窄），沿上那颗按钮把它收起来让地图露全；底边也能拖，调地图高矮。
 * 拖出来的数写在 .tc-w 的 --tc-pw / --tc-h 上（tripcard.js 记在本机） */
.tc-split { position: absolute; z-index: 4; top: var(--tc-in); bottom: var(--tc-in); right: calc(var(--tc-pw, 41%) + var(--tc-in)); width: 0; outline: none; }
.tc-w.tc-folded .tc-split { right: 0; }
.tc-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: -5px; width: 10px; cursor: col-resize; touch-action: none; }
.tc-split::after { content: ""; position: absolute; top: 14px; bottom: 14px; left: -1px; width: 2px; border-radius: 1px; background: var(--owb-brand); opacity: 0; transition: opacity var(--owb-t-fast); pointer-events: none; }
.tc-split:hover::after, .tc-split.drag::after, .tc-split:focus-visible::after { opacity: .6; }
/* 收起是一下子的，按钮也一下子到位：全局按钮的 transform 过渡会让它慢半拍滑过去，中途被卡片边框切掉一半 */
.tc-w .tc-fold { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 18px; height: 40px; border: 1px solid var(--owb-border); border-radius: 9px; background: var(--owb-card); box-shadow: var(--owb-shadow-sm); color: var(--owb-text-2); transition: color var(--owb-t-fast), border-color var(--owb-t-fast); }
.tc-w .tc-fold:hover { color: var(--owb-text); border-color: var(--owb-text-3); }
.tc-w .tc-fold:focus-visible { outline: 2px solid var(--owb-brand); outline-offset: 1px; }
.tc-fold svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--owb-t-fast); }
/* 收起后按钮贴着地图右边、整个缩进地图里 */
.tc-w.tc-folded .tc-fold { transform: translate(-100%, -50%); border-right: 0; border-radius: 9px 0 0 9px; }
.tc-w.tc-folded .tc-fold svg { transform: rotate(180deg); }

.tc-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; z-index: 3; cursor: row-resize; touch-action: none; outline: none; }
.tc-grip::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--owb-text-3); opacity: .35; transition: opacity var(--owb-t-fast); }
.tc-grip:hover::after, .tc-grip.drag::after, .tc-grip:focus-visible::after { opacity: .8; background: var(--owb-brand); }

.tc-map { position: relative; height: var(--tc-h, 460px); overflow: hidden; background: #ecebe7; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.tc-map.grab { cursor: grabbing; }
.tc-map:focus-visible { box-shadow: inset 0 0 0 2px var(--owb-brand); }
.tc-tiles { position: absolute; inset: 0; filter: saturate(.72) brightness(1.03); }
.tc-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
html[data-theme="dark"] .tc-map { background: #1d1f22; }
html[data-theme="dark"] .tc-tiles { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.7); }
.tc-route { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.tc-rc, .tc-rl { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tc-rc { stroke: #fff; stroke-width: 8; opacity: .95; }
html[data-theme="dark"] .tc-rc { stroke: #101114; }
.tc-rl { stroke: var(--owb-brand); stroke-width: 4.5; }
.tc-rl.dash { stroke-width: 3; stroke-dasharray: .5 7; opacity: .85; }

/* 钉子：圆角方块照片 + 白边，右上角黑底序号，底下挂名字（白描边，压在底图上也读得出）。
 * 位置写在按钮的 transform 上、拖动时每帧都改，所以按钮自己不许有过渡；放大高亮做在里面那层 */
.tc-pins { position: absolute; inset: 0; pointer-events: none; }
.tc-w .tc-pin { position: absolute; left: -21px; top: -21px; width: 42px; height: 42px; pointer-events: auto; transition: none; }
.tc-pph { position: absolute; inset: 0; box-sizing: border-box; border: 2.5px solid #fff; border-radius: 12px; background: var(--tc-pinbg); box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform var(--owb-t-fast) var(--owb-ease), box-shadow var(--owb-t-fast); }
.tc-pph img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; display: block; }
.tc-pno { position: absolute; right: -8px; top: -8px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border: 2px solid #fff; border-radius: 10px;
  background: #16171b; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
/* 照片取不到：序号铺满整个方块 */
.tc-pin:not(:has(img)) .tc-pno { position: static; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 9px; background: none; font-size: 15px; }
.tc-plb { position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%); max-width: 128px; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--tc-lbl); font-size: 12px; font-weight: 600; line-height: 16px; pointer-events: none;
  text-shadow: 0 0 2px var(--tc-halo), 0 0 2px var(--tc-halo), 0 0 3px var(--tc-halo), 0 0 4px var(--tc-halo), 0 0 5px var(--tc-halo); }
.tc-pin.nolb .tc-plb { visibility: hidden; }
.tc-w .tc-pin.on, .tc-w .tc-pin.hot { z-index: 2; }
.tc-pin.on .tc-pph, .tc-pin.hot .tc-pph { transform: scale(1.18); box-shadow: 0 0 0 2.5px var(--owb-brand), 0 6px 16px rgba(0, 0, 0, .32); }
.tc-pin.on .tc-plb { top: calc(100% + 8px); }

.tc-zoom { position: absolute; z-index: 3; left: var(--tc-in); bottom: calc(var(--tc-in) + 6px); display: flex; flex-direction: column; border-radius: 10px; background: var(--owb-card); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); overflow: hidden; }
.tc-w .tc-zoom button { width: 30px; height: 30px; font-size: 17px; line-height: 30px; color: var(--owb-text); }
.tc-w .tc-zoom button + button { border-top: 1px solid var(--owb-border); }
.tc-w .tc-zoom button:hover { background: var(--owb-bg-hover); }
.tc-w .tc-zoom .tc-reset { display: flex; align-items: center; justify-content: center; }
.tc-reset svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-attr { position: absolute; left: calc(var(--tc-in) + 36px); bottom: 3px; padding: 1px 6px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--owb-card) 75%, transparent); color: var(--owb-text-3); font-size: 10px; pointer-events: none; }
.tc-msg { position: absolute; left: calc((100% - var(--tc-pw, 41%) - var(--tc-in)) / 2); top: 50%; transform: translate(-50%, -50%); max-width: 50%; padding: 8px 14px; border-radius: var(--radius-md); background: var(--owb-card); box-shadow: var(--owb-shadow-sm); color: var(--owb-text-2); font-size: 13px; text-align: center; }
.tc-w.tc-folded .tc-msg { left: 50%; max-width: 80%; }
/* 地图上的小卡：点钉子弹出来，位置由 tripcard.js 的 placePop() 用 transform 摆（左上角为原点），只摆在右边那栏没挡着的那块里。
 * 里面的字能选能复制、能自己滚；手机上在小卡上竖着滑是滚小卡、滚到头带动页面（地图本身不让浏览器接手势）。
 * 看得见的那块窄了贴底边（.dock），钉子拖出这块了先藏起来（.off） */
.tc-pop { position: absolute; left: 0; top: 0; z-index: 4; width: 260px; max-height: calc(100% - 16px); box-sizing: border-box; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--owb-border); border-radius: var(--radius-xl); background: var(--owb-card); box-shadow: var(--owb-shadow-md); color: var(--owb-text); font-size: 13px; cursor: auto; user-select: text; -webkit-user-select: text; touch-action: pan-y; outline: none; }
.tc-pop:focus-visible { box-shadow: 0 0 0 2px var(--owb-brand), var(--owb-shadow-md); }
/* 贴底时让开左下角的缩放钮和底图署名（OpenStreetMap 要求署名看得见）；右边那栏还在时 tripcard.js 再把右边让出来 */
.tc-pop.dock { left: calc(var(--tc-in) + 38px); right: 8px; top: auto; bottom: 22px; width: auto; max-height: 60%; transform: none; }
.tc-pop.off { visibility: hidden; }
.tc-w .tc-px { position: absolute; right: 6px; top: 4px; width: 24px; height: 24px; border-radius: 50%; color: var(--owb-text-3); font-size: 18px; line-height: 24px; text-align: center; }
.tc-w .tc-px:hover { background: var(--owb-bg-hover); color: var(--owb-text); }
.tc-ptop { display: flex; gap: 10px; padding-right: 20px; }
.tc-ptop .tc-ph { width: 56px; height: 56px; }
.tc-pop .tc-nm { font-size: 14px; }
.tc-pop .tc-note { margin-top: 6px; }
.tc-prow { display: flex; gap: 8px; margin-top: 4px; }
.tc-pk { flex: none; width: 4.5em; color: var(--owb-text-3); }
.tc-pv { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tc-w .tc-pv a { color: var(--owb-brand-text); }
.tc-by { color: var(--owb-text-3); }
.tc-pop .tc-src { margin-top: 6px; }
.tc-pact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tc-w .tc-pact a, .tc-w .tc-pact .tc-qr { padding: 3px 12px; border: 1px solid var(--owb-border); border-radius: var(--radius-full); color: var(--owb-text); font-size: 12px; }
.tc-w .tc-pact .tc-go { border-color: var(--owb-text); background: var(--owb-text); color: var(--owb-bg); }
.tc-w .tc-pact a:hover, .tc-w .tc-pact .tc-qr:hover { border-color: var(--owb-text-3); }
.tc-w .tc-pact .tc-go:hover { border-color: var(--owb-text); opacity: .85; }
.tc-pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--owb-border); }
.tc-w .tc-pgo { min-width: 0; padding: 4px 6px; border-radius: var(--radius-md); text-align: left; }
.tc-w .tc-pgo.nx { text-align: right; }
.tc-w .tc-pgo:hover { background: var(--owb-bg-hover); }
.tc-pgo span { display: block; color: var(--owb-text-3); font-size: 12px; }
.tc-pgo b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-pleg { margin-top: 4px; color: var(--owb-text-3); font-size: 12px; text-align: right; }

/* 右边浮着的那一栏：当天主题、打开路线、一站一张卡片 */
.tc-panel { position: absolute; z-index: 3; top: var(--tc-in); right: var(--tc-in); bottom: var(--tc-in); width: var(--tc-pw, 41%); box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 18px 10px; border-radius: 14px; background: var(--owb-card); box-shadow: var(--shadow-floating, 0 16px 40px rgba(0, 0, 0, .14)); container: tcp / inline-size; scrollbar-width: thin; }
.tc-dl { color: var(--owb-text-2); font-size: 12px; font-weight: 600; }
.tc-dt { margin-top: 2px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.tc-ds { margin-top: 6px; color: var(--owb-text-2); font-size: 13px; line-height: 1.6; }
.tc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.tc-w .tc-acts .tc-qr { padding: 6px 14px; border: 1px solid var(--owb-border); border-radius: var(--radius-full); color: var(--owb-text); font-size: 13px; transition: border-color var(--owb-t-fast); }
.tc-w .tc-acts .tc-qr:hover, .tc-w .tc-acts .tc-qr[aria-expanded="true"] { border-color: var(--owb-text-3); }
.tc-w .tc-open { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px 7px 12px; border-radius: var(--radius-full); background: var(--owb-text); color: var(--owb-bg); font-size: 13px; font-weight: 600; transition: opacity var(--owb-t-fast); }
.tc-w .tc-open:hover { opacity: .85; }
.tc-w .tc-open:focus-visible { outline: 2px solid var(--owb-brand); outline-offset: 2px; }
.tc-navi { width: 14px; height: 14px; fill: currentColor; }
.tc-app { color: var(--owb-text-3); font-size: 12px; }
/* 国内的路线用哪家地图打开：高德 / Google 两格，按下的那格是白底 */
.tc-provs { display: inline-flex; padding: 2px; border-radius: var(--radius-full); background: var(--owb-bg-side); }
.tc-w .tc-prov { padding: 3px 10px; border-radius: var(--radius-full); color: var(--owb-text-3); font-size: 12px; transition: color var(--owb-t-fast); }
.tc-w .tc-prov:hover { color: var(--owb-text); }
.tc-w .tc-prov[aria-pressed="true"] { background: var(--owb-card); color: var(--owb-text); box-shadow: var(--owb-shadow-sm); }
.tc-w .tc-prov:focus-visible { outline: 2px solid var(--owb-brand); outline-offset: 1px; }
.tc-seg { margin: 18px 0 2px; font-size: 14px; font-weight: 700; }
.tc-dh + .tc-card { margin-top: 12px; }

.tc-card { display: flex; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; cursor: pointer; outline: none; transition: background var(--owb-t-fast); }
.tc-card:hover, .tc-card.on, .tc-card.hot { background: var(--owb-bg-hover); }
.tc-card:focus-visible { box-shadow: 0 0 0 2px var(--owb-brand); }
.tc-ph { position: relative; flex: none; width: 96px; height: 78px; border-radius: 10px; background: var(--owb-bg-side); }
.tc-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.tc-ini { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--owb-text-3); font-size: 26px; font-weight: 600; user-select: none; }
.tc-no { position: absolute; left: 6px; top: 6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: rgba(22, 23, 27, .86); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
@container tcp (max-width: 250px) { .tc-ph { width: 68px; height: 68px; } }
.tc-info { flex: 1; min-width: 0; }
.tc-time { color: var(--owb-text-2); font-size: 12px; line-height: 1.4; }
.tc-nm { font-weight: 600; font-size: 15px; line-height: 1.35; }
.tc-meta { margin-top: 2px; color: var(--owb-text-2); font-size: 12px; }
.tc-star { color: #b45309; }
html[data-theme="dark"] .tc-star { color: #f0b04a; }
.tc-note { margin-top: 4px; color: var(--owb-text-2); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-miss { margin-top: 3px; color: var(--owb-text-3); font-size: 12px; }
.tc-src { margin-top: 3px; color: var(--owb-text-3); font-size: 12px; }
.tc-w .tc-retry { color: var(--owb-brand-text); }
.tc-w .tc-retry:hover { text-decoration: underline; }
.tc-w .tc-retry:disabled { color: var(--owb-text-3); cursor: default; text-decoration: none; }
.tc-w .tc-setkey { color: var(--owb-brand-text); }
.tc-w .tc-setkey:hover { text-decoration: underline; }

/* 两站之间：怎么走 · 多远 · 多久 ——— 导航 ›，兼当两张卡片之间的分隔线 */
.tc-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 22px; margin: 2px 0; color: var(--owb-text-3); font-size: 12px; }
.tc-legi { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-legt { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-legr { flex: 1; min-width: 12px; height: 0; border-top: 1px solid var(--owb-border); }
.tc-w .tc-leg a { flex: none; color: var(--owb-brand-text); white-space: nowrap; }
.tc-w .tc-leg a:hover { text-decoration: underline; }
/* 路线没查成：整句话折行露全，「再查一次」跟在后面 */
.tc-leg.bad .tc-legt { white-space: normal; }
.tc-w .tc-navb { flex: none; color: var(--owb-brand-text); white-space: nowrap; }
.tc-w .tc-navb:hover { text-decoration: underline; }
/* 段间「导航 ▾」点开：四种走法 +「发到手机」，就地展开在这一行底下，和图标后面的字对齐 */
.tc-navm { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; margin: 2px 0 4px 20px; }
.tc-w .tc-navm a, .tc-w .tc-navm .tc-qr { padding: 2px 10px; border: 1px solid var(--owb-border); border-radius: var(--radius-full); color: var(--owb-text); font-size: 12px; }
.tc-w .tc-navm a.on { border-color: var(--owb-text); }
.tc-w .tc-navm a:hover, .tc-w .tc-navm .tc-qr:hover { border-color: var(--owb-text-3); text-decoration: none; }
.tc-w .tc-navb:focus-visible, .tc-w .tc-qr:focus-visible, .tc-w .tc-qrm:focus-visible, .tc-w .tc-qrx:focus-visible,
.tc-w .tc-px:focus-visible, .tc-w .tc-pgo:focus-visible { outline: 2px solid var(--owb-brand); outline-offset: 1px; }

/* 「发到手机」：服务端编好的二维码图，扫出来就是旁边那条链接 */
.tc-qrbox { flex-basis: 100%; margin: 8px 0 4px; padding: 10px; border: 1px solid var(--owb-border); border-radius: var(--radius-md); background: var(--owb-bg-side); color: var(--owb-text-2); font-size: 12px; text-align: center; }
.tc-leg .tc-qrbox { margin-left: 20px; }
.tc-qrms { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 8px; }
.tc-w .tc-qrm { padding: 2px 10px; border: 1px solid var(--owb-border); border-radius: var(--radius-full); color: var(--owb-text-2); font-size: 12px; }
.tc-w .tc-qrm[aria-pressed="true"] { border-color: var(--owb-text); background: var(--owb-text); color: var(--owb-bg); }
/* 二维码自己要白底黑块，深色模式也不反相，不然有的手机扫不出来 */
.tc-qrimg { display: block; width: 148px; height: 148px; margin: 0 auto; border-radius: var(--radius-sm); background: #fff; }
.tc-qrimg.big { width: min(232px, 100%); height: auto; aspect-ratio: 1; }
.tc-qrt { margin-top: 6px; }
.tc-qract { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.tc-w .tc-qract a { color: var(--owb-brand-text); }
.tc-w .tc-qrx { color: var(--owb-text-3); }
.tc-w .tc-qrx:hover { color: var(--owb-text); }
.tc-qrerr { padding: 12px 0; color: var(--owb-warn); }

@container tcw (max-width: 620px) {
  .tc-w[data-view="map"] .tc-tabs, .tc-w.tc-folded[data-view="map"] .tc-tabs { max-width: calc(100% - 2 * var(--tc-in) + 8px); }
  /* 手机上的取舍：地图上单指就是拖地图、两指捏合缩放（.tc-map 的 touch-action: none 不动），
   * 页面靠地图以外的地方滑——所以地图最高只到屏幕的 55%，总留一截能下手；
   * 列表滚到头接着带动外面的页面（不再 contain），不然手指落在列表上整页也滑不动。 */
  .tc-map { height: min(var(--tc-h, 300px), 55vh); }
  .tc-msg, .tc-w.tc-folded .tc-msg { left: 50%; max-width: 80%; }
  .tc-panel { position: static; width: auto; max-height: 360px; padding: 14px 14px 8px; border-radius: 0; box-shadow: none; border-top: 1px solid var(--owb-border); overscroll-behavior: auto; }
  .tc-split, .tc-w.tc-folded .tc-split { position: relative; top: auto; bottom: auto; right: auto; width: auto; height: 0; }
  .tc-split::before { top: -5px; bottom: auto; left: 0; right: 0; width: auto; height: 10px; cursor: row-resize; }
  .tc-split::after { top: -1px; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
  .tc-w .tc-fold { left: 50%; top: 0; width: 40px; height: 18px; }
  .tc-fold svg { transform: rotate(90deg); }
  .tc-w.tc-folded .tc-fold { transform: translate(-50%, -100%); border: 1px solid var(--owb-border); border-bottom: 0; border-radius: 9px 9px 0 0; }
  .tc-w.tc-folded .tc-fold svg { transform: rotate(-90deg); }
  .tc-grip { display: none; }
}

/* ---------- 时间线 ---------- */
.tc-tl { padding: 14px 16px; border: 1px solid var(--owb-border); border-radius: var(--radius-xl); background: var(--owb-card); }
.tc-tlh { margin-bottom: 8px; color: var(--owb-text-2); font-size: 13px; }
.tc-tlmsg { margin-bottom: 8px; color: var(--owb-text-3); font-size: 12px; }
.tc-tlr { display: grid; grid-template-columns: 64px 18px minmax(0, 1fr); column-gap: 8px; }
/* 地图上找到了的那几站：点一下切到地图、弹出小卡 */
.tc-tlr.go { border-radius: var(--radius-sm); cursor: pointer; outline: none; }
.tc-tlr.go:hover .tc-tlt b { color: var(--owb-brand-text); }
.tc-tlr.go:focus-visible { box-shadow: 0 0 0 2px var(--owb-brand); }
.tc-tls { padding-top: 1px; color: var(--owb-text-2); font-size: 13px; text-align: right; }
.tc-tld { position: relative; }
.tc-tld::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--owb-border); }
.tc-tlr:first-of-type .tc-tld::before, .tc-tlh + .tc-tlr .tc-tld::before { top: 9px; }
.tc-tlr:last-child .tc-tld::before { bottom: auto; height: 9px; }
.tc-tld::after { content: ""; position: absolute; left: 50%; top: 5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--owb-brand); box-shadow: 0 0 0 3px var(--owb-card); }
.tc-tlt { padding-bottom: 14px; }
.tc-tlt b { display: block; font-weight: 600; }
.tc-tlt span { display: block; margin-top: 2px; color: var(--owb-text-2); font-size: 13px; }
