/* 会员严选：黑金，安静。金色只给会员锁；按钮走中性色。夜间默认，日间跟「我的 · 底色」。 */
html, body { margin: 0; background: #111114; }
html.theme-light, html.theme-light body { background: #f3f4f6; }
.yx {
  --bg: #111114; --card: #1C1C22; --card-hover: #26262C; --inset: #16161C;
  --line: rgba(255, 255, 255, .10); --line-hi: rgba(255, 255, 255, .22);
  --text: #F4F1EA; --muted: #C9C4BB; --aux: #A7A39A;
  --gold: #C9A45A; --btn-bg: #F4F1EA; --btn-ink: #111114;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", system-ui, "Anthony Sans", sans-serif;
  min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
html.theme-light .yx {
  --bg: #f3f4f6; --card: #ffffff; --card-hover: #eeeff1; --inset: #f5f6f8;
  --line: rgba(26, 26, 26, .08); --line-hi: rgba(26, 26, 26, .22);
  --text: #1a1a1a; --muted: #3c3c3e; --aux: #6c6c70;
  --gold: #6e4e14; --btn-bg: #1a1a1a; --btn-ink: #ffffff;
}
.yx *, .yx *::before, .yx *::after { box-sizing: border-box; }
:where(.yx) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.yx) button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(.yx) a { color: inherit; }
.yx img { display: block; max-width: 100%; }
.yx-wrap { max-width: 560px; margin: 0 auto; padding: 0 16px calc(32px + env(safe-area-inset-bottom, 0px)); }
.yx-wrap.has-cta { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* 顶栏 */
.yx-top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.yx-top-in { max-width: 560px; margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 4px; }
.yx-back { flex: none; min-width: 48px; min-height: 44px; padding: 0 12px; font-size: 14px; color: var(--muted); text-align: left; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.yx-title { margin: 0; flex: 1 1 auto; font-size: 16px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.yx-share { flex: none; min-width: 44px; min-height: 44px; padding: 0 10px; font-size: 14px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }

/* 列表页 */
.yx-lead { margin: 16px 0 12px; font-size: 13px; line-height: 1.55; color: var(--aux); }
.yx-search { width: 100%; margin: 0 0 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--inset); color: var(--text); font-size: 16px; }
.yx-cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.yx-search::placeholder { color: var(--aux); }
.yx-group { margin: 20px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--aux); }
.yx-group:first-child { margin-top: 12px; }
.yx-car-entry { margin: 24px 0 0; padding: 0; border: 0; background: none; width: 100%; text-align: center; font-size: 12px; line-height: 1.7; color: var(--aux); }
.yx-car-entry:active { color: var(--muted); }
.yx-list.yx-list-car { margin-top: 8px; }
.yx-chip { min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--aux); white-space: nowrap; }
.yx-chip[aria-pressed="true"] { color: var(--text); border-color: var(--line-hi); background: var(--card); }
.yx-tabs { display: flex; margin: 8px 0 4px; border-bottom: 1px solid var(--line); }
.yx-tab { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 2px; font-size: 14px; color: var(--aux); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.yx-tab[aria-selected="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }
.yx-view-bar { display: flex; justify-content: flex-end; align-items: center; margin: 8px 0 0; min-height: 32px; }
.yx-view { display: inline-flex; flex: none; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--inset); }
.yx-view-btn { min-height: 28px; min-width: 44px; padding: 0 12px; border-radius: 999px; font-size: 12px; line-height: 1; color: var(--aux); white-space: nowrap; }
.yx-view-btn[aria-pressed="true"] { color: var(--text); font-weight: 600; background: var(--card); }
.yx-list { display: flex; flex-direction: column; margin: 8px 0 0; padding: 0; list-style: none; }
.yx-list-compact { gap: 6px; }
.yx-list-big { gap: 12px; margin-top: 12px; }
.yx-card { display: flex; width: 100%; overflow: hidden; text-align: left; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.yx-card:active { background: var(--card-hover); }
.yx-card:focus-visible, .yx-opt:focus-visible, .yx-chip:focus-visible, .yx-tab:focus-visible, .yx-view-btn:focus-visible, .yx-btn:focus-visible { outline: 2px solid var(--line-hi); outline-offset: 2px; }
html.theme-light .yx-card { border-color: transparent; box-shadow: 0 1px 2px rgba(26, 26, 26, .06), 0 4px 12px rgba(26, 26, 26, .06); }
.yx-thumb { display: block; object-fit: cover; background: var(--inset); }
.yx-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.yx-card-city { margin: 0; font-size: 11px; line-height: 1.4; color: var(--aux); letter-spacing: .02em; }
.yx-card-name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.yx-card-sub { margin: 0; font-size: 13px; line-height: 1.4; color: var(--aux); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.yx-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; }

/* 默认：紧凑列表，左文右小方图，一行一项 */
.yx-list-compact .yx-card { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.yx-list-compact .yx-card-body { gap: 2px; padding: 0; }
.yx-list-compact .yx-card-name { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yx-list-compact .yx-card-sub { -webkit-line-clamp: 1; font-size: 12px; }
.yx-list-compact .yx-price { margin-top: 1px; padding-top: 0; }
.yx-list-compact .yx-lock { margin-top: 0; }
.yx-list-compact .yx-thumb { flex: none; order: 2; width: 60px; height: 60px; border-radius: 8px; }
.yx-list-compact .yx-group { margin: 12px 0 4px; }
.yx-list-compact .yx-group:first-child { margin-top: 4px; }

/* 大图：上图下文 */
.yx-list-big .yx-card { flex-direction: column; gap: 0; align-items: stretch; padding: 0; border-radius: 16px; }
.yx-list-big .yx-card-body { gap: 4px; padding: 12px 14px 14px; }
.yx-list-big .yx-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.yx-list-big .yx-price { margin-top: auto; padding-top: 4px; }
.yx-price-now { font-weight: 600; font-variant-numeric: tabular-nums; }
.yx-price-was { font-size: 12px; color: var(--aux); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.yx-price-up { font-size: 12px; color: var(--aux); }
.yx-ask { font-size: 12px; color: var(--aux); }
.yx-lock { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; line-height: 1.4; color: var(--aux); text-decoration: none; }
.yx-lock svg { flex: none; color: var(--gold); }
.yx-empty { margin: 32px 0; text-align: center; font-size: 13px; color: var(--aux); line-height: 1.7; }
.yx-foot { margin: 28px 0 0; font-size: 11px; line-height: 1.6; color: var(--aux); text-align: center; }

/* 详情页 */
.yx-hero { margin: 16px 0 0; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--inset); }
.yx-name { margin: 16px 0 4px; font-size: 20px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.yx-name-en { margin: 0 0 8px; font-size: 12px; color: var(--aux); letter-spacing: .04em; }
.yx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.yx-tag { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.4; }
.yx-blurb { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.yx-sec { margin: 24px 0 0; }
.yx-h { margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.yx-h-aside { margin: 0 0 8px; font-size: 12px; color: var(--aux); line-height: 1.5; }
.yx-opts { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.yx-opt { display: block; width: 100%; padding: 12px 14px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.yx-opt[aria-checked="true"] { border-color: var(--line-hi); background: var(--card-hover); }
.yx-opt-label { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.yx-opt-detail { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--aux); overflow-wrap: anywhere; }
.yx-lines { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.yx-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 14px; }
.yx-line-tag { font-size: 12px; color: var(--aux); }
.yx-unit { font-size: 11px; color: var(--aux); }
.yx-list-plain { margin: 0; padding: 0 0 0 18px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.yx-note-main { margin: 16px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.yx-gallery { width: 100%; height: auto; border-radius: 14px; background: var(--inset); }
.yx-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.yx-cta-in { max-width: 560px; margin: 0 auto; }
.yx-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; background: var(--btn-bg); color: var(--btn-ink); font-size: 15px; font-weight: 600; text-align: center; }
.yx-btn[disabled] { opacity: .55; cursor: default; }
.yx-btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-hi); }

/* 留意向 */
.yx-sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.yx-sheet[hidden] { display: none; }
.yx-sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.yx-sheet-card { position: relative; width: 100%; max-width: 560px; max-height: 92dvh; max-height: 92vh; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.yx-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.yx-sheet-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.yx-x { flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; font-size: 24px; line-height: 1; color: var(--aux); }
.yx-sheet-sub { margin: 4px 0 12px; font-size: 12.5px; line-height: 1.6; color: var(--aux); }
.yx-field { display: block; margin: 0 0 12px; }
.yx-field > span { display: block; margin: 0 0 4px; font-size: 12px; color: var(--aux); }
.yx-input { display: block; width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px; line-height: 1.4; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); appearance: none; -webkit-appearance: none; }
.yx-input:focus { outline: none; border-color: var(--line-hi); }
textarea.yx-input { min-height: 84px; resize: vertical; }
select.yx-input { background-image: linear-gradient(45deg, transparent 50%, var(--aux) 50%), linear-gradient(135deg, var(--aux) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.yx-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.yx-err { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #d9786a; min-height: 0; }
.yx-err:empty { display: none; }
.yx-done { padding: 24px 4px 8px; text-align: center; }
.yx-done p { margin: 0 0 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.yx-done .yx-done-h { font-size: 17px; font-weight: 700; color: var(--text); }
.yx-done .yx-btn { margin-top: 16px; }
@media (max-width: 380px) {
  .yx-row2 { grid-template-columns: minmax(0, 1fr); }
}
