/* 顾客页：功能补充样式（基础样式在 guest-design.css，来自用户认可的效果图 35～38） */
:root { --inset-top: max(env(safe-area-inset-top, 0px), var(--native-inset-top, 0px)); --inset-bottom: max(env(safe-area-inset-bottom, 0px), var(--native-inset-bottom, 0px)); }
html, body { height: auto; min-height: 100%; margin: 0; background: var(--paper); }
body.guest { background: #e4dfd5; }
.app { background: var(--paper); box-shadow: 0 0 0 1px #00000010; }
.screen[hidden] { display: none; }
select, input { font: inherit; color: inherit; }
.link { border: 0; background: none; color: #76501e; font: inherit; font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* 首页 */
.hero { height: auto; min-height: 290px; padding: calc(34px + var(--inset-top)) 22px 0; }
.hero { --hero-photo: url('/img/car-hotel.jpg'); --hero-pos: 88% 60%; }
.hero.has-photo {
  background-color: #0e2034;
  /* 左边深蓝渐变保证标题可读，上下再压一点；右边露出车和夜景 */
  background-image: linear-gradient(90deg, #0a1a2cf2 0%, #0c2034c4 30%, #0d223642 66%, #0d223600 100%), linear-gradient(180deg, #0a1a2ccc 0%, #0a1a2c66 30%, #0a1a2c00 50%, #0d2236b3 100%), var(--hero-photo);
  background-position: 0 0, 0 0, var(--hero-pos); background-size: 100% 100%, 100% 100%, cover; background-repeat: no-repeat;
}
.hero.has-photo.own { --hero-pos: center; }
.inside-section { margin-top: 16px; }
.inside-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 -20px; padding: 0 20px; }
.inside-strip::-webkit-scrollbar { display: none; }
.inside-strip button { flex: 0 0 62%; padding: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: #e7edf0; scroll-snap-align: start; cursor: pointer; }
.inside-strip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-card { display: block; width: 100%; margin: 6px 0 8px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #e7edf0; }
.photo-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.route-art.has-img { padding: 0; }
.route-art.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero.has-photo .vehicle { display: none; }
.hero h1 { white-space: normal; }
.hero .car-line { position: relative; z-index: 2; display: inline-block; margin-top: 12px; padding: 4px 10px; border: 1px solid #f9dfad66; border-radius: 99px; background: #102438a6; color: #fbdfab; font-size: 11.5px; font-weight: 650; letter-spacing: .03em; }
.hero .photo-label { cursor: pointer; font: inherit; font-size: 10px; }
.driver-av { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: var(--avatar-bg, #eed9b4) center / cover; color: var(--avatar-ink, #694413); font-weight: 750; font-size: 19px; }
.driver-card a.icon-button { text-decoration: none; }
.home-actions { grid-template-columns: 1fr 1fr; }
.primary.alt { background: #fffcf5; border: 1px solid #dcc9aa; color: #3b2a12; box-shadow: none; }
.primary { border: 0; cursor: pointer; }
.home-foot { margin: 22px 20px 26px; text-align: center; }
.route-card { cursor: pointer; font: inherit; color: inherit; padding: 0; }
/* 攻略 */
.guide-tabs button { cursor: pointer; }
.guide-content { padding-bottom: calc(24px + var(--inset-bottom)); }
.place-go { cursor: pointer; font: inherit; font-size: 11px; font-weight: 660; }
.guide-route .step-line { margin: 6px 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.guide-route .place-go { padding: 9px 12px; font-size: 13px; }
.food-card.no-art { grid-template-columns: 1fr; }
.guide-extras summary { color: var(--gold); }
.notes-card { margin-top: 18px; }
.notes-card summary { min-height: 48px; font-size: 14px; font-weight: 700; }
.notes-card .note-block { padding: 2px 4px 8px; }
.notes-card .note-block h3 { margin: 10px 0 4px; font-size: 13px; color: var(--gold); }
.notes-card .note-block p, .notes-card .note-block dd { margin: 0; font-size: 13px; line-height: 1.6; color: #44504f; }
.notes-card dl { margin: 0; }
.notes-card dl > div { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid #eee7dc; }
.notes-card dl > div:first-child { border-top: 0; }
.notes-card dt { flex: none; width: 58px; color: var(--muted); font-size: 13px; }
.notes-card .tip { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #fbefdb; border: 1px solid #ecd9b7; color: #5b3d10; font-size: 13px; line-height: 1.6; }
.notes-card .cta { width: 100%; margin: 6px 0 4px; min-height: 44px; }
/* 预约表单 */
.screen#booking { padding-top: var(--inset-top); }
.page-head { padding-top: calc(0px + var(--inset-top)); height: calc(58px + var(--inset-top)); }
.booking-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.guest-error { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #f9e3dc; color: #8a2f1f; font-size: 13px; }
.guest-error[hidden] { display: none; }
.service-switch[hidden] { display: none; }
.service-switch button { cursor: pointer; }
.field-act { color: var(--gold); font-size: 12px; font-weight: 650; cursor: pointer; }
.date-field input { font-size: 16px; }
.field-row.pickup .pick-map { margin: 8px 0 0; }
.pick-map { position: relative; height: 150px; overflow: hidden; border: 1px solid #e3e9df; border-radius: 12px; touch-action: none; cursor: grab; }
.pick-map canvas { display: block; width: 100%; height: 100%; }
.pick-pin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -26px 0 0 -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #b8782f; border: 2px solid #fff; box-shadow: 0 3px 8px #0003; pointer-events: none; }
.pick-pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.dest-pin { background: #2e5178; }
.pick-hint { position: absolute; left: 8px; right: 8px; top: 8px; margin: 0; padding: 4px 8px; border-radius: 6px; background: #fffdf8d9; color: var(--muted); font-size: 11px; text-align: center; pointer-events: none; }
.pick-address { display: grid; gap: 2px; margin-top: 8px; }
.pick-address b { font-size: 15px; font-weight: 680; }
.pick-address small { color: var(--muted); font-size: 11.5px; }
.pick-search-link { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: #76501e; font: inherit; font-size: 12.5px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pick-search { margin-top: 8px; }
.pick-search input, .trip-input { display: block; width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--rule); border-radius: 9px; background: #fffefa; font-size: 15px; }
.pick-results { display: grid; margin-top: 4px; }
.pick-results p { margin: 6px 2px; color: var(--muted); font-size: 12.5px; }
.pick-results button { display: grid; gap: 1px; padding: 9px 4px; border: 0; border-top: 1px solid #eee7dc; background: none; text-align: left; font: inherit; cursor: pointer; }
.pick-results b { font-size: 14px; }
.pick-results small { color: var(--muted); font-size: 11.5px; }
.pick-chosen { margin: 8px 0 0; color: #3f5a3a; font-size: 13px; font-weight: 650; }
.pick-hint-line { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: #fbefdb; color: #5b3d10; font-size: 12.5px; font-weight: 650; }
.dest-extras { margin-top: 8px; }
.dest-extras .pick-common { display: grid; gap: 6px; padding-top: 6px; }
.dest-cat { border: 1px solid var(--rule); border-radius: 10px; background: #fffefa; overflow: hidden; }
.dest-cat summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 11px; font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
.dest-cat summary::-webkit-details-marker { display: none; }
.dest-cat summary small { color: var(--muted); font-weight: 500; }
.dest-item { display: grid; width: 100%; gap: 1px; padding: 8px 11px; border: 0; border-top: 1px solid #eee7dc; background: none; text-align: left; font: inherit; cursor: pointer; }
.dest-item b { font-size: 14px; }
.dest-item .dest-sub { color: var(--muted); font-size: 11.5px; }
.dest-item span { color: #5d6265; font-size: 12px; }
.dest-item[aria-pressed="true"] { background: #fbefdb; }
.counter button, .passengers button, .service-switch button { cursor: pointer; }
.hours-row { flex-wrap: wrap; }
.min-hours { flex-basis: 100%; margin: 6px 0 0 23px; color: var(--muted); font-size: 11px; }
.passengers { grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)); }
.phone-line .phone-cc select { border: 0; background: transparent; padding: 0 4px 0 0; color: #795521; font-weight: 660; font-size: 14px; max-width: 92px; }
.phone-line input { font-size: 15px; }
.phone-line { margin-left: 23px; }
.back-conv { text-align: center; margin: 14px 0 4px; }
.booking-footer { padding-bottom: calc(12px + var(--inset-bottom)); }
.quote-block[hidden] { display: none; }
.quote-block .quote-price strong { font-size: 30px; }
.quote-note { max-width: 190px; }
.booking-footer .primary { margin-left: auto; min-width: 46%; }
.booking-footer .quote-block + .primary { min-width: 46%; }
.booking-footer .quote-actions > .primary:only-child { width: 100%; }
/* 找回 */
.guest-recover { padding: 0 20px calc(20px + var(--inset-bottom)); display: grid; gap: 14px; align-content: start; }
.guest-recover .primary { width: 100%; }
.guest-recover .form-error { margin: 0; color: #8a2f1f; font-size: 13px; }
.phone-line input[type=time] { font-size: 16px; }
/* 聊天 */
.chat-head { padding-top: var(--inset-top); height: calc(64px + var(--inset-top)); }
.chat-identity .avatar { display: grid; place-items: center; background: var(--avatar-bg, #eed9b4) center / cover; color: var(--avatar-ink, #694413); font-weight: 750; font-size: 15px; width: 39px; height: 39px; }
.gchat-order { margin: 1px 14px 8px; }
.gchat-order .order-summary { white-space: normal; overflow-wrap: anywhere; }
.gchat-order .order-detail { display: grid; gap: 6px; }
.gchat-order .order-detail p { display: flex; gap: 12px; margin: 0; }
.gchat-order .order-detail p span { flex: none; min-width: 66px; color: #9b7a47; }
.gchat-order .order-detail p b { flex: 1; min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.order-actions { display: flex; gap: 8px; padding: 0 13px 11px; }
.secondary.small { flex: 1; min-height: 38px; font-size: 13px; cursor: pointer; }
.chat-scroll { gap: 14px; }
.gconv-log { flex: 1; min-height: 0; }
.message .bubble { max-width: min(245px, 72%); }
.message .bubble a { color: inherit; text-decoration: none; }
.message .bubble.voice { cursor: pointer; }
.chat-scroll .gconv-photo { max-width: 60%; border-radius: 10px; }
.mini-avatar { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 10px; background: var(--avatar-bg, #eed9b4) center / cover; color: var(--avatar-ink, #694413); font-size: 13px; font-weight: 750; }
.guest-avatar { font-size: 13px; font-weight: 750; }
.chat-older { align-self: center; margin: 0; }
.chat-footer { padding-bottom: calc(10px + var(--inset-bottom)); }
.composer input { font-size: 16px; }
.composer .primary { cursor: pointer; }
/* 添加到桌面提示 */
.a2hs { margin: 0 14px 8px; padding: 10px 12px; border: 1px solid #ecd9b7; border-radius: 12px; background: #fffaf0; color: #5b3d10; font-size: 12.5px; line-height: 1.55; position: relative; }
.a2hs b { display: block; margin-bottom: 2px; font-size: 13px; }
.a2hs ol { margin: 4px 0 0; padding-left: 18px; }
.a2hs .a2hs-x { position: absolute; top: 4px; right: 6px; width: 26px; height: 26px; border: 0; background: none; color: #8a6a35; font-size: 18px; cursor: pointer; }
.a2hs .primary { min-height: 38px; margin-top: 8px; font-size: 14px; width: 100%; }
.a2hs svg.share { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* 车照大图 */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #000; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; }
.lightbox button { position: absolute; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #ffffff26; color: #fff; font-size: 24px; cursor: pointer; }
.lightbox .lb-close { top: calc(12px + var(--inset-top)); right: 12px; }
.lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }

.food-card h3 { font-size: 14.5px; line-height: 1.3; }
.food-card h3, .food-card p, .place-info p { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; }
.food-card h3 { -webkit-line-clamp: 2; }
.food-card p { -webkit-line-clamp: 2; }
.place-info p { -webkit-line-clamp: 2; }
.place-info h3 { overflow-wrap: anywhere; }

.destination .pick-search input, .destination .trip-input { margin: 8px 0 0; width: 100%; font-size: 15px; }
.destination .pick-search { margin-top: 0; }
.quote-block[hidden] + .primary { width: 100%; margin-left: 0; }

/* ===== 整个页面自然滚动（微信 iOS 内置浏览器对 100dvh + 内层滚动支持不好，会滑不动） ===== */
.app { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
.screen { height: auto; min-height: 100vh; min-height: 100dvh; }
.scroll, .booking-scroll { flex: 1 0 auto; min-height: 0; overflow: visible; }
.booking-form { flex: 1 0 auto; min-height: 0; }
.chat-scroll { flex: 1 0 auto; }
.page-head { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.booking-footer, .chat-footer { position: sticky; bottom: 0; z-index: 15; }
