:root { --navy: #12303F; --warm: #E8590C; --price: #C2410C; --bg: #F4F6F8; --text: #1F2A30; --muted: #7A8590; --line: #EEF1F3; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
input, button { font: inherit; }
#app { max-width: 640px; margin: 0 auto; padding-bottom: calc(70px + env(safe-area-inset-bottom)); min-height: 100vh; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .bold { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; } .between { display: flex; align-items: center; justify-content: space-between; }
.wrap { display: flex; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.card { background: #fff; border-radius: 12px; padding: 14px; margin: 0 12px 12px; box-shadow: 0 1px 4px rgba(18,48,63,.05); }
.section-title { font-size: 16px; font-weight: 600; margin: 4px 0 10px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 16px; background: #EEF2F5; color: #2E3E48; font-size: 13px; margin: 0 6px 6px 0; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--navy); color: #fff; } .chip.light { background: #fff; border-color: #D8DEE3; } .chip.light.on { background: var(--navy); border-color: var(--navy); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px; line-height: 1.6; margin-right: 5px; vertical-align: middle; }
.tag-deal { background: #FFECE5; color: var(--price); } .tag-cat { background: #EEF2F5; color: #4A5A64; } .tag-sold { background: #F1F1F1; color: #888; }
.tag-drop { background: #E4F5EA; color: #15803D; } .tag-up { background: #FDECEC; color: #B91C1C; } .tag-ai { background: #FFF4D6; color: #8A5A00; }
.price { color: var(--price); font-weight: 700; font-size: 18px; } .price-unit { color: var(--price); font-size: 12px; }
.down { color: #15803D; } .up { color: #B91C1C; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; height: 40px; border-radius: 20px; background: var(--navy); color: #fff; font-size: 15px; border: 0; cursor: pointer; }
.btn.light { background: #fff; color: var(--navy); border: 1px solid var(--navy); } .btn.warm { background: var(--warm); } .btn.block { width: 100%; } .btn.sm { height: 32px; font-size: 13px; padding: 0 12px; }
.empty { text-align: center; color: #98A2AB; padding: 60px 0; } .loading { text-align: center; color: #98A2AB; padding: 18px 0; font-size: 13px; }
.divider { height: 1px; background: var(--line); margin: 10px 0; }
.notice { margin: 0 12px 12px; background: #FFF8E6; color: #7A5200; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
/* 顶部 */
.top { background: var(--navy); padding: 10px 12px 6px; }
.search { display: flex; align-items: center; background: #fff; border-radius: 20px; padding: 0 14px; height: 40px; }
.search input { flex: 1; border: 0; outline: 0; font-size: 15px; min-width: 0; background: transparent; }
.search .x { color: #999; font-size: 20px; padding: 0 8px; cursor: pointer; } .search .go { color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer; }
.entries { display: flex; justify-content: space-around; padding: 12px 0 8px; }
.entry { display: flex; flex-direction: column; align-items: center; color: #fff; font-size: 12px; }
.entry .ic { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 4px; }
.hscroll { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .hscroll::-webkit-scrollbar { display: none; }
.groups .chip { background: rgba(255,255,255,.12); color: #fff; }
.bar { display: flex; align-items: center; padding: 8px 0 2px 12px; background: var(--bg); position: sticky; top: 0; z-index: 5; }
.bar .hscroll { flex: 1; } .bar .chip { margin-bottom: 0; }
.filter-btn { padding: 4px 12px; margin: 0 12px 0 6px; border-radius: 16px; background: #fff; color: var(--navy); font-size: 13px; border: 1px solid #D8DEE3; white-space: nowrap; cursor: pointer; }
.filter-btn.has { background: var(--warm); color: #fff; border-color: var(--warm); }
.count { padding: 4px 12px 10px; } .count .clear { color: var(--warm); cursor: pointer; }
/* 卡片 */
.sc { display: block; background: #fff; border-radius: 12px; margin: 0 12px 12px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(18,48,63,.05); }
.sc-title { font-size: 16px; font-weight: 600; } .sc-heart { color: var(--warm); }
.sc-line { font-size: 14px; margin-top: 3px; }
.sc-itin { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-reason { margin-top: 6px; background: #FFF8E6; color: #7A5200; font-size: 13px; padding: 4px 8px; border-radius: 6px; }
.sc-foot { margin-top: 6px; }
/* 面板 / 弹层 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; }
.panel { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px; height: 82vh; background: #fff; border-radius: 16px 16px 0 0; z-index: 21; display: flex; flex-direction: column; }
.panel-head { padding: 14px 16px 8px; font-size: 16px; } .panel-head .reset { color: var(--muted); font-size: 13px; cursor: pointer; }
.panel-body { flex: 1; display: flex; min-height: 0; }
.ptabs { width: 90px; background: var(--bg); overflow-y: auto; }
.ptab { padding: 13px 10px; font-size: 13px; color: #4A5A64; cursor: pointer; } .ptab.on { background: #fff; color: var(--navy); font-weight: 600; }
.pcontent { flex: 1; padding: 10px 12px; overflow-y: auto; }
.pgroup { margin-bottom: 10px; }
.pinput { background: var(--bg); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; font-size: 14px; border: 0; outline: 0; width: 100%; }
.pinput.half { flex: 1; margin-bottom: 0; width: auto; min-width: 0; }
.panel-foot { display: flex; gap: 10px; padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px); border-top: 1px solid var(--line); } .panel-foot .btn { flex: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px; background: #fff; border-radius: 16px 16px 0 0; padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px); z-index: 21; }
.tinput { background: var(--bg); border-radius: 8px; padding: 8px 12px; border: 0; outline: 0; width: 100%; }
.qr { width: 200px; height: 200px; display: block; margin: 10px auto; object-fit: contain; }
/* 详情 */
.title { font-size: 18px; font-weight: 700; }
.kv { margin: 3px 0; } .k { color: var(--muted); margin-right: 8px; font-size: 13px; }
.reason { margin-top: 8px; background: #FFF8E6; color: #7A5200; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.cabins { display: flex; gap: 6px; margin: 6px 0; }
.cabin { flex: 1; background: #F7F9FA; border-radius: 8px; padding: 8px 4px; text-align: center; } .cabin .price { font-size: 15px; }
.chart { width: 100%; height: 180px; margin-top: 6px; display: block; }
.rel { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.day { padding: 5px 0; border-bottom: 1px solid #F3F5F7; display: flex; align-items: center; }
.dayno { width: 36px; color: var(--muted); font-size: 13px; }
.note-line { margin: 3px 0; font-size: 14px; }
.foot { position: fixed; left: 0; right: 0; bottom: 0; padding-bottom: calc(8px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 640px; background: #fff; display: flex; align-items: center; gap: 8px; padding: 8px 12px; box-shadow: 0 -1px 6px rgba(0,0,0,.05); z-index: 10; }
.foot-price { flex: 1; min-width: 0; }
.facts { display: flex; gap: 6px; margin: 8px 0; } .fact { flex: 1; background: #F7F9FA; border-radius: 8px; padding: 6px; text-align: center; }
/* 我的 */
.hero { background: var(--navy); color: #fff; padding: 22px 16px; margin-bottom: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 24px; background: rgba(255,255,255,.2); margin-right: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.menu .mi { padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; } .menu .mi:last-child { border-bottom: 0; }
.badge { display: inline-block; background: var(--warm); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; margin-left: 6px; }
.tabs { display: flex; gap: 8px; padding: 12px 12px 6px; }
/* 底部 tab */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px; height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; display: flex; border-top: 1px solid var(--line); z-index: 15; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #A39C8D; font-size: 11px; }
.tabbar a .ic { font-size: 20px; line-height: 1.1; } .tabbar a.on { color: var(--navy); }
.tabbar.hide { display: none; }
.back { display: inline-block; padding: 8px 12px; color: var(--navy); font-size: 14px; cursor: pointer; }
.pagehead { display: flex; align-items: center; background: #fff; border-bottom: 1px solid var(--line); margin-bottom: 12px; position: sticky; top: 0; z-index: 5; }
.pagehead .t { flex: 1; text-align: center; font-weight: 600; padding-right: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 99; display: none; max-width: 80vw; text-align: center; }
.toast.show { display: block; }
