/* 统一图标、控件及文本的排版规范。路书正文沿用正式源内容。 */
:root {
  --ui-icon-stroke: 1.75;
  --ui-icon-sm: 16px;
  --ui-icon-md: 18px;
  --ui-icon-lg: 20px;
  --ui-control: 40px;
  --ui-compact: 36px;
  --ui-gap: 8px;
  --ui-radius: 8px;
}
.icon {
  display: block;
  width: var(--ui-icon-lg);
  height: var(--ui-icon-lg);
  flex: 0 0 auto;
  fill: none;
  stroke-width: var(--ui-icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.icon :where(path, rect, circle, ellipse, line, polyline, polygon) { vector-effect: non-scaling-stroke; }
:where(button, a, input, select, textarea) { letter-spacing: normal; }
:where(button, .btn, .text-btn) { line-height: 1.4; }
:where(.btn, .text-btn, .nav-action, .filter-btn, .detail-title-actions button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ui-gap);
}
.btn { min-height: var(--ui-control); font-size: 13px; }
.btn > .icon, .text-btn > .icon { width: var(--ui-icon-md); height: var(--ui-icon-md); }
.text-btn { min-height: 32px; }
.square { padding: 0; line-height: 1; }
.square > .icon { width: var(--ui-icon-md); height: var(--ui-icon-md); }
.nav-action { min-height: var(--ui-control); font-size: 13px; }
.nav-actions { gap: 16px; flex-shrink: 0; }
.nav .btn { min-height: var(--ui-control); padding: 9px 14px; font-size: 13px; }
.nav-action .icon, .nav .btn .icon { width: var(--ui-icon-lg); height: var(--ui-icon-lg); }
.nav-action .count { top: 0; left: 14px; line-height: 1; font-style: normal; }
.navlinks a { display: inline-flex; align-items: center; min-height: var(--ui-control); }
.navlinks { align-self: stretch; align-items: stretch; }
.navlinks a { align-self: stretch; }
.navlinks a.active::after { bottom: 0; height: 2px; border-radius: 0; }
.language-switch { align-items: center; }
.language-switch button { display: grid; place-items: center; min-width: 32px; min-height: 28px; line-height: 1; }
.preview-strip { padding: 8px 18px; font-size: 11px; line-height: 1.6; text-wrap: pretty; }
.preview-strip > span { display: inline; }
:where(.detail-sub, .breadcrumb, .commerce-breadcrumb) { line-height: 1.6; }
.detail-title h1 { max-width: 1100px; line-height: 1.22; text-wrap: pretty; }
.trip-duration { white-space: nowrap; }
.detail-sub { row-gap: 8px; }
.detail-sub > span { gap: 6px; }
.detail-title-actions { gap: 12px; flex-shrink: 0; }
.detail-title-actions button { min-height: var(--ui-control); font-size: 13px; padding: 8px 4px; }
.detail-title-actions .icon { width: var(--ui-icon-md); height: var(--ui-icon-md); }
.pill { min-height: 30px; gap: 6px; line-height: 1.4; }
.pill .icon { width: var(--ui-icon-sm); height: var(--ui-icon-sm); }
.section-head p, .catalog-head p { margin-top: 8px; line-height: 1.65; }
:where(.between, .row, .search-field, .summary-trip, .package-top, .order-card-line) > div { min-width: 0; }
.detail-main, .trip-card, .card-body, .checkout-content { min-width: 0; }
.detail-nav { min-width: 0; max-width: 100%; }
:where(.section-head, .catalog-head, .commerce-heading) h2 { text-wrap: pretty; }
.card-label { min-height: 26px; display: inline-flex; align-items: center; gap: 5px; line-height: 1.3; }
.card-label .icon { width: 12px; height: 12px; }
.save-card { display: grid; place-items: center; padding: 0; }
.save-card .icon { width: var(--ui-icon-md); height: var(--ui-icon-md); }
.card-place { align-items: flex-start; gap: 6px; font-size: 11px; line-height: 1.55; min-height: 34px; }
.card-place .icon { width: 14px; height: 14px; margin-top: 1px; }
.card-body h3 { font-size: 16px; line-height: 1.5; min-height: 48px; overflow-wrap: anywhere; }
.card-meta { font-size: 12px; line-height: 1.6; }
.card-benefit { font-size: 11px; line-height: 1.55; align-items: flex-start; gap: 6px; }
.card-benefit .icon { width: 14px; height: 14px; margin-top: 1px; }
.card-bottom { gap: 12px; align-items: center; margin-top: auto; padding-top: 16px; }
.card-bottom p { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.card-bottom .price { white-space: nowrap; }
.card-body > .card-benefit { margin-bottom: 16px; }
.tabs { align-items: stretch; }
.tabs button { flex: 0 0 auto; white-space: nowrap; min-height: var(--ui-control); display: inline-flex; align-items: center; justify-content: center; line-height: 1.4; }
.tabs button.active::after { height: 2px; border-radius: 0; }
.filterbar { align-items: center; row-gap: 10px; }
.filterbar :where(select, .filter-btn) { min-height: var(--ui-control); font-size: 12px; }
.detail-nav { align-items: center; row-gap: 0; padding-block: 4px; font-size: 13px; }
.detail-nav a { display: inline-flex; align-items: center; min-height: var(--ui-control); }
.essential { gap: 12px; }
.essential > .icon, .meeting > .icon { width: var(--ui-icon-lg); height: var(--ui-icon-lg); margin-top: 1px; }
.essential b, .booking-hint b { font-size: 13px; line-height: 1.5; }
.essential p, .booking-hint p { font-size: 12px; line-height: 1.6; margin-top: 3px; }
.highlight, .fee-line { font-size: 13px; line-height: 1.7; gap: 10px; }
.highlight .icon, .fee-line .icon { width: var(--ui-icon-sm); height: var(--ui-icon-sm); margin-top: 3px; }
.day summary { gap: 12px; line-height: 1.55; }
.day summary > strong { flex: 1; min-width: 0; }
.day summary > .icon { flex: 0 0 16px; width: 16px; height: 16px; margin-left: auto; }
.day-place-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.day-place-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 14px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.day-place-list li::before { content: ''; width: 5px; height: 5px; flex: 0 0 5px; margin-top: 9px; border-radius: 50%; background: var(--blue); }
.booking-field > button { min-height: 48px; align-items: center; gap: 10px; line-height: 1.5; }
.booking-field .icon { width: var(--ui-icon-md); height: var(--ui-icon-md); }
.booking-field > label { min-height: 48px; padding: 0 14px; gap: 10px; }
.booking-field select { min-height: 0; height: 46px; padding: 0; font-size: 13px; }
.booking-panel .per { font-size: 12px; margin-left: 6px; }
.booking-hint { gap: 10px; }
.booking-hint .icon { width: var(--ui-icon-md); height: var(--ui-icon-md); margin-top: 1px; }
.package h3 { line-height: 1.5; }
.package-bottom { align-items: center; gap: 16px; }
.package-bottom > div { min-width: 0; }
.package-bottom .btn { font-size: 13px; }
.counter-row { gap: 20px; align-items: center; }
.counter-row > div:first-child { min-width: 0; }
.stepper { gap: 12px; flex-shrink: 0; }
.stepper button { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; line-height: 1; }
.stepper .icon { width: var(--ui-icon-sm); height: var(--ui-icon-sm); }
.stepper span { min-width: 24px; font-variant-numeric: tabular-nums; }
.calendar-head .square { width: 32px !important; height: 32px !important; }
.calendar-head .square .icon { width: 16px; height: 16px; }
.calendar button { min-height: 32px; font-variant-numeric: tabular-nums; }
.modal-head { align-items: center; gap: 16px; }
.modal-head h2 { min-width: 0; line-height: 1.35; }
.modal-head .square { flex-shrink: 0; }
.lightbox-caption { line-height: 1.6; }
.copy-row { align-items: stretch; }
.copy-row :where(input, .btn) { min-height: var(--ui-control); }
.copy-row input { min-width: 0; }
/* 固定尺寸的图标按钮和百分比读数，避免按钮顺序改变导致样式漂移。 */
.roadbook-toolbar { height: auto; min-height: 60px; padding: 11px 16px; gap: 12px; }
.roadbook-toolbar > .row { min-width: 0; gap: 12px; flex-wrap: wrap; row-gap: 4px; }
.roadbook-toolbar b { font-size: 13px; line-height: 1.4; gap: 8px; }
.roadbook-toolbar b .icon { width: var(--ui-icon-md); height: var(--ui-icon-md); }
.roadbook-status { font-size: 11px; line-height: 1.5; }
.roadbook-tools { flex: 0 0 auto; gap: 6px; }
.roadbook-tools :is(button, .roadbook-sidebar-toggle) {
  width: var(--ui-compact); min-width: var(--ui-compact); height: var(--ui-compact);
  display: grid; place-items: center; padding: 0; border-radius: var(--ui-radius);
  border: 1px solid #dce6f3; background: #f8fbff; color: var(--ink); line-height: 1;
}
.roadbook-tools .icon, .roadbook-tools .roadbook-sidebar-toggle .icon { width: var(--ui-icon-md); height: var(--ui-icon-md); }
.roadbook-tools #roadbook-zoom-label { width: 56px; min-width: 56px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.roadbook-tools button:hover { background: #edf4ff; border-color: #b7cbed; }
.roadbook-tools .roadbook-sidebar-toggle.active { border-color: #9caeaf; background: #eef4f4; }
.roadbook-tools button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.roadbook-footer { font-size: 11px; line-height: 1.6; gap: 8px 16px; flex-wrap: wrap; }
.roadbook-footer .row { gap: 16px; flex-wrap: wrap; }
.roadbook-footer .text-btn { font-size: 11px; min-height: 28px; }
/* 摘要与说明按首行对齐，金额与状态居中；长文本可以自然换行。 */
.commerce-heading p { font-size: 13px; line-height: 1.65; }
.order-list-note { font-size: 13px; align-items: flex-start; gap: 10px; line-height: 1.6; }
.order-list-note .icon { width: 18px; height: 18px; margin-top: 1px; }
.order-status { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; font-size: 12px; line-height: 1.3; }
.order-card-line { grid-template-columns: 96px minmax(0, 1fr) auto; }
.order-card-line h3 { line-height: 1.45; overflow-wrap: anywhere; }
.order-card-line p { font-size: 12px; line-height: 1.65; }
.order-card-line > b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-card-foot { gap: 16px; flex-wrap: wrap; }
.order-card-foot > .muted { font-size: 12px; line-height: 1.6; }
.order-card-foot .row { flex-wrap: wrap; gap: 12px; }
.order-card-foot .btn { min-height: 40px; padding: 9px 16px; font-size: 13px; }
.order-card-head { font-size: 12px; line-height: 1.6; }
.order-card-head em { font-size: 11px; }
.payment-countdown { gap: 12px; font-size: 14px; align-items: flex-start; }
.payment-countdown > .icon { width: 20px; height: 20px; margin-top: 1px; }
.payment-countdown small { font-size: 12px; line-height: 1.6; }
.checkout-steps > :is(button, span) { line-height: 1.4; }
.checkout-steps b { display: grid; place-items: center; line-height: 1; padding: 0; font-variant-numeric: tabular-nums; }
.secure-note { line-height: 1.5; gap: 8px; }
.secure-note .icon { width: 18px; height: 18px; }
.contact-form label { font-size: 12px; line-height: 1.5; }
.contact-form :where(input, select, textarea) { line-height: 1.5; font-size: 14px; }
.contact-form :where(input, select) { height: 52px; min-height: 52px; padding: 13px 16px; }
.checkout-content > .payment-countdown { margin-top: 0; }
.phone-group { align-items: start; }
.contact-form .field-hint { font-size: 12px; line-height: 1.65; }
.contact-demo-note { font-size: 12px !important; line-height: 1.7; }
.summary-trip { align-items: flex-start; }
.summary-trip > div { min-width: 0; }
.summary-trip img { flex-shrink: 0; }
.summary-trip h3 { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.summary-trip p { font-size: 12px; line-height: 1.6; }
.summary-details > div, .summary-cancel, .cart-line { align-items: flex-start; font-size: 13px; line-height: 1.6; gap: 10px; }
.summary-details .icon, .summary-cancel > .icon, .cart-line .icon { width: 18px; height: 18px; margin-top: 1px; }
.summary-details .text-btn, .coupon > .text-btn { font-size: 12px; }
.summary-cancel b, .summary-cancel p { font-size: 12px; line-height: 1.6; }
.summary-cancel p { margin-top: 3px; }
.summary-total { align-items: center; gap: 16px; }
.summary-total p, .summary-footnote { font-size: 11px !important; line-height: 1.65; }
.summary-total b, .cart-checkout-total b, .package-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-assurances b { font-size: 13px; line-height: 1.5; }
.checkout-assurances p { font-size: 12px; line-height: 1.6; }
.payment-choice { align-items: center; }
.payment-choice b { font-size: 14px; line-height: 1.5; }
.payment-choice small { font-size: 12px; line-height: 1.5; }
.payment-explanation, .confirm-check { font-size: 12px; line-height: 1.65; }
.order-facts { font-size: 13px; line-height: 1.6; }
.order-facts > div { grid-template-columns: 100px minmax(0, 1fr); align-items: baseline; }
.footer-links { align-items: flex-start; }
.footer-links .text-btn { justify-content: flex-start; }
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .roadbook-toolbar > .row { gap: 4px 8px; }
  .roadbook-status { white-space: normal; }
}
@media (max-width: 800px) {
  .card-body h3 { font-size: 15px; }
  .detail-title .between { gap: 12px; }
  .booking-field > button, .booking-field select { font-size: 13px; }
  .order-card-line { grid-template-columns: 80px minmax(0, 1fr); gap: 14px !important; }
  .order-card-line > a img { width: 80px !important; height: 88px !important; }
  .order-card-line > div { min-width: 0; }
  .order-card-line > b { grid-column: 2; margin: 0; font-size: 21px; text-align: right; }
  .order-card-foot { align-items: stretch; }
  .order-card-foot > .muted { max-width: none; width: 100%; font-size: 11px; }
  .order-card-foot .row { justify-content: flex-end; width: 100%; }
  .order-card-foot .row > b { margin-right: auto; width: auto; }
  .package-bottom .btn { font-size: 12px; padding-inline: 12px; }
}
@media (max-width: 650px) {
  .nav-action { width: 36px; min-height: 40px; padding: 0; }
  .nav-actions { gap: 6px !important; }
  .language-switch button { min-width: 29px; padding-inline: 6px; }
  .preview-strip { font-size: 10px; line-height: 1.6; padding: 7px 16px; }
  .preview-strip > span { display: block; margin: 2px 0 0; }
  .detail-sub { font-size: 12px; gap: 6px 10px; }
  .detail-title-actions { gap: 16px; }
  .detail-title-actions button { font-size: 12px; }
  .roadbook-toolbar { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .roadbook-toolbar > .row { flex: 1 0 100%; justify-content: space-between; }
  .roadbook-tools { margin-left: auto; }
  .roadbook-footer { padding: 9px 12px; font-size: 10px; }
  .roadbook-footer .text-btn { font-size: 11px; }
  .detail-nav { flex-wrap: nowrap !important; font-size: 12px; gap: 18px !important; }
  .card-place { font-size: 10px; min-height: 32px; }
  .card-meta { font-size: 11px; }
  .card-benefit { font-size: 10px; }
  .card-body h3 { font-size: 14px; }
  .card-bottom .price { font-size: 20px; white-space: normal; line-height: 1.35; }
  .card-bottom .price small { display: inline-block; white-space: nowrap; font-size: 10px; }
  .card-bottom p { font-size: 10px; }
  .card-bottom .icon { width: 16px; height: 16px; }
  .card-body { padding: 14px; }
  .card-bottom { gap: 6px; }
  .phone-group { grid-template-columns: 1fr; gap: 0; }
  .contact-form :where(input, select, textarea) { font-size: 16px; }
  .checkout-header { gap: 10px; }
  .checkout-steps { min-width: 180px !important; }
  .checkout-steps i { width: 100px; }
  .order-card-foot .row { gap: 8px; }
  .order-card-foot .btn { padding-inline: 12px; font-size: 12px; }
  .order-facts > div { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .cards, .related .cards, .cart-recommend .cards { grid-template-columns: minmax(0, 1fr); }
  .card-body { padding: 16px; }
  .card-body h3 { font-size: 16px; min-height: 0; margin-bottom: 10px; }
  .card-place { font-size: 12px; min-height: 0; margin-bottom: 8px; }
  .card-meta, .card-benefit { font-size: 12px; }
  .card-benefit { margin-top: 10px; }
  .card-bottom .price { font-size: 23px; }
  .card-bottom .price small, .card-bottom p { font-size: 12px; }
}
