/* 顾客页样式：来自 效果图/顾客页.html（用户认可的效果图 35～38），下面 guest.css 里是功能补充 */

:root {
  color-scheme: light;
  --navy: #152b46;
  --ink: #192d40;
  --night: #102438;
  --paper: #f8f5ee;
  --card: #fffdf8;
  --muted: #5d6265;
  --gold: #85571f;
  --amber: #f3bc66;
  --rule: #e8e0d2;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", serif;
  --shadow: 0 4px 15px #21324409;
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
button, input, summary { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid #a06b2c; outline-offset: 3px;
}
input { min-width: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.art { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.app { width: 100%; max-width: 480px; height: 100vh; height: 100dvh; margin: auto; position: relative; overflow: hidden; background: var(--paper); }
.screen { height: 100%; display: flex; flex-direction: column; }
  flex: 0 0 40px; display: flex; justify-content: space-between; align-items: center;
  padding: 5px 27px 0; font-weight: 680; font-size: 14px; letter-spacing: .15px; z-index: 2;
}
.scroll { flex: 1; overflow-y: auto; scrollbar-width: none; min-height: 0; }
.scroll::-webkit-scrollbar, .route-strip::-webkit-scrollbar { display: none; }
.page-head { height: 58px; flex-shrink: 0; display: grid; grid-template-columns: 47px 1fr 47px; align-items: center; gap: 7px; padding: 0 16px 5px; }
.page-head h1 { text-align: center; font-size: 20px; font-weight: 710; letter-spacing: .065em; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; background: #fffdf8; }
.icon-button.call { color: #755020; background: #f6ebd8; border-color: #eddfc6; }
.icon-button.call .icon { width: 18px; height: 18px; }
header .icon-button:last-child:not(:first-child) { justify-self: end; }
.primary, .secondary {
  border-radius: 13px; min-height: 48px; display: flex; gap: 8px; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 720; letter-spacing: .04em;
}
.primary { background: linear-gradient(110deg,#f7ce89,#efb664); color: #2e2519; box-shadow: inset 0 1px #ffe6b8, 0 5px 12px #a4611021; }
.secondary { border: 1px solid #dcc9aa; background: #fffcf5; }
.primary .icon, .secondary .icon { width: 19px; height: 19px; }

.home-scroll { position: relative; }
.hero {
  position: relative; height: 367px; padding: 58px 22px 0; overflow: hidden; color: #fffbef;
  background: radial-gradient(ellipse at 79% 59%,#456070 0, #1e3b51 35%, transparent 65%), linear-gradient(150deg,#0e2034,#142c43 73%,#102437);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent,#0d2236a8); }
.location { display: flex; align-items: center; gap: 6px; color: #f2cb92; font-size: 11px; font-weight: 650; letter-spacing: .15em; position: relative; z-index: 2; }
.location .icon { width: 13px; height: 13px; }
.hero h1 { margin-top: 11px; position: relative; z-index: 2; font: 700 clamp(26px,8.7vw,34px)/1.16 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.hero h1 span { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.03em; font-style: italic; letter-spacing: -.06em; padding-right: 3px; }
.hero .description { color: #e3e9e7; margin-top: 10px; font-size: 11.5px; letter-spacing: .02em; position: relative; z-index: 2; }
.vehicle { position: absolute; width: 100%; height: auto; left: 0; bottom: 29px; }
.photo-label { position: absolute; z-index: 2; bottom: 46px; right: 22px; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #f9dfad72; color: #fbdfab; background: #102438d9; font-size: 10px; border-radius: 7px; line-height: 1; }
.photo-label .icon { width: 13px; height: 13px; }
.driver-card {
  position: relative; z-index: 2; margin: -24px 20px 0; min-height: 77px; display: flex; align-items: center; gap: 11px;
  padding: 12px; border: 1px solid #f0e8d9; border-radius: 17px; background: var(--card); box-shadow: 0 8px 26px #24334511;
}
.avatar { width: 47px; height: 47px; border-radius: 50%; display: block; flex: 0 0 auto; }
.driver-info { flex: 1; min-width: 0; }
.driver-info strong { font-size: 17px; letter-spacing: .035em; }
.driver-line { display: flex; gap: 8px; align-items: center; margin-top: 3px; color: var(--muted); white-space: nowrap; font-size: 11px; }
.plate { font: 600 11px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .03em; }
.driver-line .plate { color: #405064; border-radius: 4px; padding: 1px 4px; background: #f1eee6; }
.home-actions { display: grid; grid-template-columns: 1.13fr 1fr; gap: 10px; margin: 13px 20px 0; }
.home-section { margin: 19px 20px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; min-height: 25px; margin-bottom: 8px; }
.section-head h2 { font-size: 19px; font-weight: 720; letter-spacing: .04em; }
.section-more { display: inline-flex; align-items: center; gap: 2px; padding-left: 8px; color: var(--gold); font-size: 11.5px; font-weight: 650; }
.section-more .icon { width: 12px; height: 12px; }
.route-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.route-card { flex: 0 0 calc((100% - 16px)/3); min-width: 0; text-align: left; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; scroll-snap-align: start; }
.route-art { height: 64px; display: block; overflow: hidden; padding: 2px 3px; }
.route-art.city { background: #e7edf0; color: #36576b; }
.route-art.hill { background: #e5ece2; color: #3c645b; }
.route-art.town { background: #f0e6d9; color: #8c5a49; }
.route-details { padding: 7px 6px 8px; display: block; }
.route-details strong { font-size: clamp(11px, 3.15vw, 13px); display: flex; align-items: baseline; justify-content: space-between; white-space: nowrap; gap: 2px; }
.route-details small { color: var(--gold); font: 700 10px/1.3 -apple-system, sans-serif; }
.route-details > span { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.categories { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding-bottom: 8px; }
.category {
  display: grid; justify-items: center; align-content: center; gap: 5px; height: 75px; border: 1px solid var(--rule);
  border-radius: 12px; background: var(--card); font-size: 13px; font-weight: 690;
}
.category .icon { width: 28px; height: 28px; padding: 3px; box-sizing: content-box; border-radius: 12px; }
.category:nth-child(1) .icon { background: #f6ecdb; color: #8e5723; }
.category:nth-child(2) .icon { background: #efe8df; color: #805a4a; }
.category:nth-child(3) .icon { background: #e8eee5; color: #416956; }
.category:nth-child(4) .icon { background: #e9edf1; color: #4a607a; }

.guide-tabs { flex-shrink: 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; margin: 0 20px 12px; padding: 4px; border-radius: 12px; background: #eee9df; }
.guide-tabs button { border-radius: 9px; height: 34px; font-size: 14px; font-weight: 610; }
.guide-tabs button[aria-selected="true"] { background: var(--navy); color: #fff3d9; box-shadow: 0 2px 5px #172b4625; }
.guide-content { padding: 0 20px 4px; }
.guide-banner { min-height: 100px; position: relative; overflow: hidden; border-radius: 15px; color: #fff2d8; background: radial-gradient(ellipse at 100% 0,#38536a,transparent 67%),linear-gradient(115deg,#142940,#223c52); display: flex; flex-direction: column; justify-content: center; padding: 12px 15px; }
.guide-banner p { font-size: 11px; letter-spacing: .13em; color: #efc888; font-weight: 580; }
.guide-banner h2 { position: relative; font: 700 23px/1.2 var(--serif); margin-top: 5px; letter-spacing: .02em; z-index: 1; }
.guide-banner .art { position: absolute; right: -6px; bottom: -10px; width: 132px; height: 90px; color: #a3b5be; opacity: .52; }
.food-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.food-card {
  display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 7px; min-height: 78px; padding: 8px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
}
.food-art { width: 42px; height: 44px; padding: 2px; border-radius: 8px; background: #f5ebdb; color: #825621; }
.food-card:nth-child(3n+2) .food-art { background: #e9eee3; color: #4b6347; }
.food-card:nth-child(3n+3) .food-art { background: #f2e5dd; color: #865b46; }
.food-card h3 { font-size: 15px; font-weight: 720; line-height: 1.3; margin-bottom: 4px; }
.food-card p { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.where-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 17px 0 8px; }
.where-title h2 { font-size: 19px; letter-spacing: .04em; }
.where-title p { font-size: 10px; color: var(--muted); }
.place-list { border: 1px solid var(--rule); border-radius: 13px; background: var(--card); padding: 0 10px; }
.place-row { display: flex; align-items: center; gap: 9px; min-height: 57px; padding: 6px 0; }
.place-row + .place-row { border-top: 1px solid #eee7dc; }
.place-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #f3ebde; color: #815c2f; flex-shrink: 0; }
.place-icon .icon { width: 17px; height: 17px; }
.place-info { flex: 1; }
.place-info h3 { font-size: 14px; font-weight: 710; }
.place-info p { color: var(--muted); font-size: 11px; margin-top: 1px; }
.place-go { display: flex; align-items: center; gap: 2px; padding: 5px 7px; border: 1px solid #ead8b8; border-radius: 7px; background: #fbf2e0; color: #76501e; font-size: 11px; font-weight: 660; white-space: nowrap; }
.place-go .icon { width: 11px; height: 11px; }
.guide-extra { margin-top: 11px; }
.guide-extras { margin-top: 11px; }
.guide-extras summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 11px; color: var(--gold); border: 1px solid var(--rule); border-radius: 10px; font-size: 12px; font-weight: 650; }
.guide-extras summary::-webkit-details-marker { display: none; }
.guide-extras summary .icon { width: 14px; height: 14px; }
.guide-extras[open] summary .icon { transform: rotate(180deg); }
.guide-extras > div { margin-top: 7px; }
.guide-routes { display: grid; gap: 9px; margin-top: 11px; }
.guide-route { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 11px; }
.guide-route h3 { font-size: 16px; }
.guide-route p { font-size: 12px; margin: 5px 0 8px; color: var(--muted); }
.guide-route .place-go { width: fit-content; }
.guide-help { padding: 2px 0 7px; color: var(--muted); font-size: 11px; }

.booking-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.booking-scroll { padding: 0 20px 10px; flex: 1; overflow-y: auto; scrollbar-width: none; }
.booking-scroll::-webkit-scrollbar { display: none; }
.service-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #eee8dc; padding: 4px; border-radius: 13px; margin-bottom: 14px; }
.service-switch button { height: 45px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.service-switch button[aria-pressed="true"] { color: #fff1d7; background: var(--navy); box-shadow: 0 2px 5px #172b4630; }
.service-switch .icon { width: 17px; height: 17px; }
.field-group { overflow: hidden; border: 1px solid var(--rule); border-radius: 15px; background: var(--card); box-shadow: var(--shadow); }
.field-group + .field-group { margin-top: 13px; }
.field-row { margin: 0 14px; padding: 15px 0; }
.field-row + .field-row { border-top: 1px solid #eee7dc; }
.label-line { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.field-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 690; }
.field-label .icon { width: 16px; height: 16px; color: #8c6538; }
.field-note { color: var(--muted); font-size: 11px; }
.date-field { position: relative; display: block; }
.date-display { display: flex; align-items: center; justify-content: space-between; margin: 5px 0 0 23px; }
.date-display strong { font-size: 27px; line-height: 1.2; font-weight: 715; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.date-display .icon { width: 16px; height: 16px; color: var(--gold); }
.date-field input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.date-field input:focus { opacity: 1; inset: auto 0 9px 23px; width: calc(100% - 23px); height: 40px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); padding: 0 7px; font-size: 16px; }
.date-field:has(input:focus-visible) { outline: 2px solid #a06b2c; outline-offset: 2px; border-radius: 5px; }
.pickup-body { display: flex; align-items: center; gap: 10px; margin: 8px 0 0 23px; min-height: 52px; }
.pickup-body input, .destination input, .phone-line input { display: block; border: 0; background: transparent; padding: 0; width: 100%; }
.pickup-body input { font-size: 16px; font-weight: 650; }
.pickup-body small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.map { width: 86px; height: 49px; flex-shrink: 0; border: 1px solid #e3e9df; border-radius: 7px; overflow: hidden; }
.destination input { margin: 6px 0 0 23px; width: calc(100% - 23px); font-size: 14px; line-height: 1.55; }
.destination input::placeholder { color: #626469; opacity: 1; }
.hours-row { display: flex; align-items: center; justify-content: space-between; }
.counter { display: flex; align-items: center; gap: 11px; }
.counter button { width: 33px; height: 33px; border: 1px solid #e9d9bd; border-radius: 8px; background: #faf0dc; color: #715022; font-size: 18px; line-height: 1; }
.counter output { font-size: 19px; font-weight: 700; line-height: 1; min-width: 18px; text-align: center; }
.counter small { color: var(--muted); font-size: 10.5px; }
.passengers { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin-top: 10px; }
.passengers button { height: 36px; border-radius: 8px; border: 1px solid #ede3d3; background: #faf7f1; font-size: 14px; font-weight: 620; }
.passengers button[aria-pressed="true"] { border-color: #b08244; background: #f8e5c2; color: #634217; }
.phone-line { margin: 8px 0 0 23px; display: flex; align-items: center; font-size: 14px; gap: 9px; }
.phone-line span { padding-right: 9px; border-right: 1px solid #e9dfcf; color: #795521; font-weight: 660; }
.phone-line input::placeholder { color: #686c70; opacity: 1; }
.booking-footer { flex-shrink: 0; padding: 13px 20px 0; border-top: 1px solid #e7ddca; background: #fffcf5; box-shadow: 0 -8px 20px #3f2b100a; }
.quote-actions { display: flex; justify-content: space-between; gap: 9px; align-items: center; }
.quote-label { font-size: 10.5px; color: var(--gold); font-weight: 720; letter-spacing: .05em; }
.quote-price { display: flex; align-items: baseline; gap: 5px; line-height: 1.03; }
.quote-price small { font-size: 15px; font-weight: 680; }
.quote-price strong { font: 700 34px/1 Georgia, serif; letter-spacing: -.04em; }
.quote-note { color: var(--muted); font-size: 10px; margin-top: 4px; }
.booking-footer .primary { min-height: 51px; min-width: 48%; padding: 0 10px; }

.chat-head { grid-template-columns: 41px 1fr 41px; padding-bottom: 4px; height: 64px; }
.chat-identity { display: flex; align-items: center; gap: 9px; margin-left: 5px; min-width: 0; }
.chat-identity .avatar { width: 39px; height: 39px; }
.chat-identity h1 { text-align: left; font-size: 16px; letter-spacing: .04em; line-height: 1.3; }
.chat-identity .plate { color: var(--muted); font-size: 10px; display: block; margin-top: 2px; }
.order { flex-shrink: 0; margin: 1px 19px 10px; border: 1px solid #e5d5b9; border-radius: 13px; background: #fbefdb; }
.order summary { cursor: pointer; list-style: none; display: flex; gap: 7px; align-items: center; min-height: 47px; padding: 7px 9px; color: #513818; }
.order summary::-webkit-details-marker { display: none; }
.order summary .calendar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; background: #f1dfbc; color: #805820; flex-shrink: 0; }
.order .calendar .icon { width: 15px; height: 15px; }
.order-summary { flex: 1; font-size: clamp(10.5px,3.05vw,12px); font-weight: 650; white-space: nowrap; }
.order-state { display: inline-block; color: #75501d; border-radius: 5px; padding: 2px 5px; background: #f2e0bd; font-size: 10px; }
.order summary > .icon { width: 13px; height: 13px; }
.order[open] summary > .icon { transform: rotate(180deg); }
.order-detail { border-top: 1px solid #e9d9be; padding: 9px 13px; font-size: 12px; color: #614927; }
.chat-scroll {
  background: radial-gradient(ellipse at 90% 4%,#f8f2e7, transparent 59%), #f1eee6; border-top: 1px solid #ece4d5;
  padding: 17px 18px 20px; display: flex; flex-direction: column; gap: 18px;
}
.chat-time { align-self: center; font-size: 10.5px; color: #65615a; }
.system { max-width: 100%; align-self: center; border-radius: 7px; background: #eae5dc; color: #5f5a54; text-align: center; font-size: 11px; padding: 5px 9px; }
.message { display: flex; gap: 8px; align-items: start; }
.message .avatar, .guest-avatar { width: 33px; height: 33px; border-radius: 10px; }
.message .bubble { position: relative; max-width: 245px; padding: 11px 12px; border: 1px solid #e9dfcf; border-radius: 4px 13px 13px; background: #fffdf8; color: #25384a; font-size: 14px; line-height: 1.58; box-shadow: 0 2px 7px #21324407; overflow-wrap: anywhere; }
.message.mine { justify-content: end; }
.mine .bubble { border-radius: 13px 4px 13px 13px; background: #e8eecf; border-color: #dfe7c2; color: #35412a; }
.guest-avatar { display: grid; place-items: center; background: #e3e9d8; color: #576446; flex: 0 0 auto; }
.guest-avatar .icon { width: 18px; height: 18px; }
.system.confirmed { background: #e6ebdd; color: #415944; display: flex; align-items: center; gap: 4px; }
.system.confirmed .icon { width: 13px; height: 13px; }
.chat-footer { background: #fffcf6; border-top: 1px solid #e7dfd2; padding: 12px 19px 0; }
.composer { display: flex; align-items: center; gap: 9px; }
.composer input { flex: 1; border: 1px solid #e5dccd; border-radius: 12px; min-height: 44px; background: #fffefa; padding: 0 12px; font-size: 13px; }
.composer input::placeholder { color: #68696a; }
.composer .primary { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.composer .icon { width: 16px; height: 16px; }

dialog { color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 16px; width: min(310px,90%); padding: 17px; box-shadow: 0 15px 60px #10243838; }
dialog::backdrop { background: #10243862; }
dialog h2 { font-size: 17px; }
dialog p { color: var(--muted); margin: 7px 0 13px; }
dialog .secondary { width: 100%; min-height: 40px; font-size: 14px; }
