/* 海之鲸旅行 H5 · 移动端样式 */
:root {
  --primary: #0d6db7;
  --primary-dark: #0a5a99;
  --primary-light: #e6f2fb;
  --price: #ff4d3a;
  --text-1: #1a1a1a;
  --text-2: #5a6272;
  --text-3: #9aa3b2;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #eef0f3;
  --ok: #07c160;
  --warn: #ff9d00;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text-1); font-size: 14px; line-height: 1.55;
}
.app { max-width: 560px; margin: 0 auto; min-height: 100%; padding-bottom: 62px; }
img { display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: 0; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 14px; outline: none; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; width: 100%; background: #fff; color: var(--text-1); }
input:focus, textarea:focus { border-color: var(--primary); }

/* ---------- 加载与提示 ---------- */
.page-loading { padding: 120px 0 0; text-align: center; color: var(--text-3); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--primary-light); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 10px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%) translateY(-8px); background: rgba(0,0,0,.78); color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 999; max-width: 80%; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.empty-tip { text-align: center; color: var(--text-3); padding: 60px 20px; font-size: 13px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 998; display: flex; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 14px; width: 78%; max-width: 320px; padding: 22px 18px 16px; }
.modal-text { font-size: 14px; line-height: 1.6; text-align: center; color: var(--text-1); white-space: pre-wrap; }
.modal-btns { display: flex; gap: 10px; margin-top: 18px; }
.modal-btns button { flex: 1; height: 38px; border-radius: 19px; font-size: 14px; }
.btn-plain { background: var(--bg); color: var(--text-2); }
.btn-primary { background: var(--primary); color: #fff; }

/* ---------- 底部导航 ---------- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; height: 56px; background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.tabbar::before, .tabbar::after { content: ""; display: none; }
.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); font-size: 11px; gap: 1px; }
.tab-item .tab-icon { font-size: 20px; line-height: 1; filter: grayscale(1) opacity(.55); }
.tab-item.active { color: var(--primary); }
.tab-item.active .tab-icon { filter: none; }
.tabbar.no-nav { display: none; }

/* ---------- 通用卡片与按钮 ---------- */
.card { background: var(--card); border-radius: var(--radius); margin: 10px 12px; padding: 14px; }
.section { margin-top: 14px; }
.section-hd { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 14px 8px; }
.section-title { font-size: 16px; font-weight: 600; }
.section-more { font-size: 12px; color: var(--text-3); }
.btn-main { display: block; width: 100%; height: 44px; border-radius: 22px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; }
.btn-main:disabled { background: #b9d3e8; }
.btn-ghost { display: inline-block; padding: 7px 16px; border-radius: 17px; border: 1px solid var(--primary); color: var(--primary); background: #fff; font-size: 13px; }
.price { color: var(--price); font-weight: 700; }
.price .rmb { font-size: 12px; }
.price .num { font-size: 18px; }

/* ---------- 首页 ---------- */
.hero { position: relative; }
.banner-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.banner-scroll::-webkit-scrollbar { display: none; }
.banner-scroll .banner-item { flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.banner-scroll img { width: 100%; height: 170px; object-fit: cover; }
.banner-title { position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.notice-bar { display: flex; align-items: center; gap: 8px; background: #fff; padding: 9px 14px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid var(--border); }
.notice-bar .horn { color: var(--warn); }
.notice-bar .notice-text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-bar { display: flex; gap: 8px; padding: 10px 12px; background: #fff; }
.search-bar input { flex: 1; background: var(--bg); border: 0; border-radius: 18px; padding: 9px 14px; }
.search-bar button { width: 64px; border-radius: 18px; background: var(--primary); color: #fff; font-size: 13px; }
.cat-scroll { display: flex; gap: 8px; padding: 10px 12px 2px; overflow-x: auto; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; padding: 6px 14px; border-radius: 15px; background: #fff; color: var(--text-2); font-size: 13px; border: 1px solid var(--border); }
.cat-chip.active { background: var(--primary-light); color: var(--primary); border-color: var(--primary); font-weight: 600; }

.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 12px; }
.prod-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.prod-card .cover { width: 100%; height: 108px; object-fit: cover; background: var(--primary-light); }
.prod-card .info { padding: 9px 10px 11px; }
.prod-card .t { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.prod-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.prod-card .meta { font-size: 11px; color: var(--text-3); }
.tag { display: inline-block; font-size: 10px; color: var(--primary); background: var(--primary-light); border-radius: 4px; padding: 1px 5px; margin-right: 4px; }

.prod-row { display: flex; gap: 10px; background: #fff; border-radius: var(--radius); padding: 10px; margin: 0 12px 10px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.prod-row .cover { width: 112px; height: 84px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--primary-light); }
.prod-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prod-row .t { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-row .meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.prod-row .row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.prod-row .sales { font-size: 11px; color: var(--text-3); }

.video-scroll { display: flex; gap: 10px; padding: 4px 12px; overflow-x: auto; }
.video-scroll::-webkit-scrollbar { display: none; }
.video-card { flex: 0 0 200px; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-card video { width: 200px; height: 260px; object-fit: cover; display: block; }
.video-card .vt { color: #fff; font-size: 12px; padding: 6px 8px; background: linear-gradient(transparent, rgba(0,0,0,.7)); margin-top: -30px; position: relative; }

.h-scroll { display: flex; gap: 10px; padding: 4px 12px; overflow-x: auto; }
.h-scroll::-webkit-scrollbar { display: none; }
.scenic-card { flex: 0 0 128px; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.scenic-card img { width: 128px; height: 88px; object-fit: cover; }
.scenic-card .st { font-size: 12px; padding: 6px 8px 8px; font-weight: 600; }
.scenic-card .sc { font-size: 10px; color: var(--text-3); padding: 0 8px 8px; margin-top: -6px; }

.footer-brand { text-align: center; color: var(--text-3); font-size: 11px; padding: 22px 0 14px; line-height: 1.8; }
.site-icp { text-align: center; color: var(--text-3); font-size: 11px; line-height: 1.9; padding: 10px 12px 4px; }
.site-icp a { color: inherit; }
.site-icp a:hover { text-decoration: underline; }

/* ---------- 列表页 ---------- */
.filter-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); }
.filter-bar select { width: auto; flex: 0 0 auto; padding: 7px 8px; font-size: 12px; border-radius: 8px; }
.filter-bar input { flex: 1; }
.load-more { text-align: center; color: var(--text-3); font-size: 13px; padding: 14px 0 4px; }

/* ---------- 详情页 ---------- */
.detail-swiper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.detail-swiper::-webkit-scrollbar { display: none; }
/* 头图：底层同图模糊铺满 + 上层原图完整显示（竖版图不再被裁掉一半） */
.detail-swiper .ds-item { position: relative; flex: 0 0 100%; scroll-snap-align: center; height: 320px; overflow: hidden; background: #eef2f7; }
.detail-swiper .ds-bg { position: absolute; inset: -8%; background-size: cover; background-position: center; filter: blur(24px); opacity: 0.75; }
.detail-swiper .ds-img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
/* 产品还没上传图片时的头图占位（不再用 <img src=""> 去请求当前页面地址） */
.detail-swiper-blank { display: flex; align-items: center; justify-content: center; height: 320px; background: linear-gradient(135deg, #eef2f7 0%, #e3e9f2 100%); color: #a8b6c8; font-size: 14px; }
.detail-head { background: #fff; padding: 14px; }
.detail-title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.detail-sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.detail-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.detail-price-row .sales { font-size: 11px; color: var(--text-3); margin-left: auto; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 2px; background: #fff; }
.dep-chip { padding: 7px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.dep-chip.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.cal-box { background: #fff; border-radius: var(--radius); margin: 10px 12px; padding: 12px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav .ym { font-weight: 600; font-size: 15px; }
.cal-nav button { width: 30px; height: 30px; border-radius: 15px; background: var(--bg); color: var(--text-2); font-size: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { text-align: center; padding: 6px 0 5px; border-radius: 8px; font-size: 13px; }
.cal-cell .d { font-weight: 600; }
.cal-cell .p { font-size: 10px; color: var(--price); }
.cal-cell .p.none { color: var(--text-3); }
.cal-cell.open { background: var(--primary-light); }
.cal-cell.sel { background: var(--primary); color: #fff; }
.cal-cell.sel .p { color: #fff; }
.cal-cell.dis { color: var(--text-3); background: var(--bg); }
.cal-tip { font-size: 11px; color: var(--text-3); margin-top: 8px; }
.pkg-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.pkg-item.active { border-color: var(--primary); background: var(--primary-light); }
.pkg-item .pn { flex: 1; font-weight: 600; font-size: 14px; }
.pkg-item .pr { color: var(--price); font-weight: 700; }
.tabbar-detail { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; background: #fff; border-top: 1px solid var(--border); display: flex; align-items: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); z-index: 100; gap: 12px; }
.detail-page .app { padding-bottom: 70px; }
.detail-page .tabbar { display: none; }
.dtab-bar { display: flex; gap: 18px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.dtab { padding: 10px 2px; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; }
.dtab.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.rich { padding: 12px 14px; background: #fff; font-size: 14px; color: var(--text-1); line-height: 1.8; word-break: break-word; }
.rich img { max-width: 100%; border-radius: 8px; margin: 6px 0; }
.plain-text { white-space: pre-wrap; }
.itin-day { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.itin-day:last-child { border-bottom: 0; }
.itin-day .day-no { flex: 0 0 44px; height: 24px; background: var(--primary); color: #fff; font-size: 12px; border-radius: 12px; text-align: center; line-height: 24px; }
.itin-day .day-body { flex: 1; }
.itin-day .day-title { font-weight: 600; }
.itin-day .day-desc { color: var(--text-2); font-size: 13px; margin-top: 2px; white-space: pre-wrap; }
.itin-item { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------- 登录 ---------- */
.auth-wrap { padding: 40px 24px 0; }
.auth-logo { text-align: center; margin-bottom: 26px; }
.auth-logo .logo-img { display: block; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px; }
.auth-logo h1 { font-size: 20px; margin-top: 6px; }
.auth-logo p { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.auth-form .field { margin-bottom: 14px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ---------- 下单 ---------- */
.form-card .field { margin-bottom: 12px; }
.form-card .label { font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
.traveler-box { border: 1px dashed var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--bg); }
.traveler-box .tt { font-weight: 600; font-size: 13px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.traveler-box .tt .del { color: var(--text-3); font-size: 12px; font-weight: 400; }
.mini-btn { padding: 4px 12px; border-radius: 13px; background: var(--primary-light); color: var(--primary); font-size: 12px; }
.quote-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 0; }
.quote-bar .total { font-size: 13px; color: var(--text-2); }
.quote-bar .total .price .num { font-size: 22px; }
.pick-traveler { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- 订单 ---------- */
.status-tabs { display: flex; background: #fff; padding: 0 6px; overflow-x: auto; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); }
.status-tabs::-webkit-scrollbar { display: none; }
.st-tab { flex: 0 0 auto; padding: 11px 13px; font-size: 13px; color: var(--text-2); border-bottom: 2px solid transparent; }
.st-tab.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.order-card { background: #fff; border-radius: var(--radius); margin: 10px 12px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.order-card .oc-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); }
.order-card .oc-mid { display: flex; gap: 10px; margin-top: 10px; }
.order-card .oc-mid img { width: 74px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--primary-light); }
.order-card .oc-mid .m { flex: 1; min-width: 0; }
.order-card .oc-title { font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-card .oc-sub { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.order-card .oc-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.order-card .oc-actions { display: flex; gap: 8px; }
.status-tag { font-size: 12px; font-weight: 600; }
.st-unpaid { color: var(--warn); }
.st-paid, .st-confirmed { color: var(--primary); }
.st-completed { color: var(--ok); }
.st-cancelled, .st-closed, .st-refunded { color: var(--text-3); }
.st-refunding { color: var(--warn); }
.pay-btn { padding: 7px 18px; border-radius: 17px; background: var(--price); color: #fff; font-size: 13px; font-weight: 600; }
.mini-action { padding: 6px 14px; border-radius: 15px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 12px; }
.info-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; gap: 12px; }
.info-line .k { color: var(--text-3); flex: 0 0 auto; }
.info-line .v { text-align: right; word-break: break-all; }
.divider { height: 1px; background: var(--border); margin: 8px 0; }
.result-hero { text-align: center; padding: 34px 16px 10px; }
.result-hero .hero-logo { display: block; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px; }
.result-hero h2 { font-size: 19px; margin-top: 8px; }
.result-hero p { color: var(--text-2); font-size: 13px; margin-top: 6px; }

/* ---------- 通用子页面 ---------- */
.page-hd { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; background: #fff; padding: 12px 14px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border); }
.page-hd .back { font-size: 22px; line-height: 1; color: var(--text-2); padding: 0 6px 2px; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 28px; height: 28px; border-radius: 14px; background: var(--bg); color: var(--text-1); font-size: 15px; }
.stepper .n { min-width: 18px; text-align: center; font-weight: 700; font-size: 15px; }
.chip-label { align-self: center; font-size: 13px; color: var(--text-2); font-weight: 600; }
.cal-head div { font-size: 11px; color: var(--text-3); text-align: center; }
.lic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 12px; }
.lic-item { background: #fff; border-radius: var(--radius); overflow: hidden; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.lic-item img { width: 100%; height: 110px; object-fit: cover; background: var(--bg); }
.lic-item span { display: block; font-size: 12px; color: var(--text-2); padding: 6px 0 8px; }

/* 经营资质：默认收起的低调入口行 */
.lic-toggle { cursor: pointer; -webkit-user-select: none; user-select: none; }
.lic-title-mini { font-size: 14px; color: var(--text-2); font-weight: 500; }

/* ================= 桌面端响应式 =================
   手机端保持原有单列排版；≥768px 切换为真正的网页布局：
   顶部导航 + 居中 1100px 栅格 + 详情页左右分栏 */

.top-nav { display: none; }
.d-book { display: none; }

@media (min-width: 768px) {
  /* ---------- 顶部导航与整体骨架 ---------- */
  .top-nav {
    display: block;
    position: sticky;
    top: 0;
    z-index: 500;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  }
  .tn-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 60px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 26px;
  }
  .tn-brand { font-size: 18px; font-weight: 700; color: var(--primary); flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; }
  .tn-logo { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 1px 3px rgba(13, 109, 183, 0.25); }
  .tn-links { display: flex; gap: 4px; flex: 1; }
  .tn-links a {
    padding: 7px 15px;
    border-radius: 18px;
    font-size: 14px;
    color: var(--text-2);
    transition: background 0.15s, color 0.15s;
  }
  .tn-links a:hover { color: var(--primary); background: var(--primary-light); }
  .tn-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
  .tn-phone {
    flex: 0 0 auto;
    font-size: 13px;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 18px;
    padding: 6px 16px;
    transition: background 0.15s, color 0.15s;
  }
  .tn-phone:hover { background: var(--primary); color: #fff; }

  .tabbar { display: none; }                          /* 底部导航由顶部导航接管 */
  .app { max-width: 1100px; padding-bottom: 32px; }
  body.detail-page .app { padding-bottom: 40px; }
  body.page-booking .app { padding-bottom: 120px; }   /* 给固定提交栏留位 */

  /* 吸顶元素避开顶部导航高度 */
  .filter-bar, .status-tabs, .page-hd, .dtab-bar { top: 60px; }

  /* ---------- 首页 ---------- */
  .banner-scroll img { height: 300px; }
  .search-bar { padding: 14px 12px; }
  .search-bar input { max-width: 560px; }
  .prod-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 4px 12px 12px; }
  .prod-card .cover { height: 140px; }
  .rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 4px 12px 12px;
  }
  .rec-grid .prod-row { margin: 0; }
  .video-scroll { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 12px 12px; }
  .video-card video { width: 100%; height: 240px; }
  .h-scroll { display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 12px 12px; }
  .scenic-card img { width: 100%; height: 110px; }
  .footer-brand { padding: 30px 0 20px; font-size: 12px; }

  /* ---------- 列表页 ---------- */
  .list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .list-grid .prod-row { margin: 0; }
  .list-grid .empty-tip { grid-column: 1 / -1; }

  /* ---------- 详情页：桌面端左右分栏 ---------- */
  .detail-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-areas:
      'head side'
      'body side';
    gap: 14px;
    align-items: start;
    padding: 14px 0 0;
  }
  .detail-wrap .d-head { grid-area: head; min-width: 0; }
  .detail-wrap .d-side {
    grid-area: side;
    position: sticky;
    top: 74px;
    align-self: start;
    background: #fff;
    border-radius: var(--radius);
    padding: 2px 14px 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  }
  .detail-wrap .d-body {
    grid-area: body;
    min-width: 0;
    background: #fff;
    border-radius: var(--radius);
    overflow-y: auto;
    overflow-x: hidden;
    /* 行程/费用/须知内容较长时在卡片内部滚动，不再把整页拉长 */
    max-height: calc(100vh - 110px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  }
  /* tab 栏改为在滚动卡片内部吸顶（覆盖页面级 top:60px） */
  .detail-wrap .d-body .dtab-bar { position: sticky; top: 0; z-index: 10; }
  /* 细滚动条（桌面端） */
  .detail-wrap .d-body::-webkit-scrollbar { width: 6px; }
  .detail-wrap .d-body::-webkit-scrollbar-track { background: transparent; }
  .detail-wrap .d-body::-webkit-scrollbar-thumb { background: #d3dae2; border-radius: 3px; }
  .detail-wrap .d-body::-webkit-scrollbar-thumb:hover { background: #b9c3ce; }
  .detail-wrap .d-head .detail-swiper { border-radius: var(--radius); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06); }
  .detail-wrap .d-head .detail-swiper .ds-item { height: 460px; }
  .detail-wrap .d-head .detail-head {
    margin-top: 12px;
    border-radius: var(--radius);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding: 16px 18px;
  }
  .d-side .chip-row { padding: 12px 0 4px; }
  .d-side .cal-box { margin: 10px 0; border: 1px solid var(--border); }
  .d-side .pkg-sec .section-hd { padding: 12px 0 8px; }
  .d-book { display: block; margin-top: 6px; }
  .tabbar-detail.d-bottom { display: none; }          /* 手机底栏由侧栏预订按钮接管 */

  /* ---------- 下单页：卡片居中收窄 ---------- */
  .page-booking .card,
  .page-booking .section { max-width: 760px; margin-left: auto; margin-right: auto; }
  .tabbar-detail {
    max-width: 760px;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  }

  /* ---------- 登录 / 关于 ---------- */
  .page-login .auth-wrap { max-width: 420px; margin: 40px auto 0; padding: 0; }
  .page-about .result-hero,
  .page-about .card,
  .page-about .section { max-width: 860px; margin-left: auto; margin-right: auto; }
}

/* ---------- 游玩笔记 ---------- */
.page-hd .hd-btn { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--primary); background: var(--primary-light); border-radius: 14px; padding: 5px 12px; }
.note-tabs { display: flex; gap: 20px; padding: 12px 14px 0; background: transparent; }
.nt-item { font-size: 15px; color: var(--text-3); padding-bottom: 6px; border-bottom: 2px solid transparent; }
.nt-item.active { color: var(--text-1); font-weight: 600; border-bottom-color: var(--primary); }
.note-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
.note-card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: block; }
.note-cover { position: relative; padding-top: 75%; background: var(--primary-light); }
.note-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.note-cover-blank { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; opacity: .5; }
.note-flag { position: absolute; right: 6px; top: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 10px; }
.note-t { padding: 8px 10px 2px; font-size: 13px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.note-m { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px 10px; font-size: 11px; color: var(--text-3); }
.note-like { color: var(--price); }
.note-loading { grid-column: 1 / -1; text-align: center; color: var(--text-3); padding: 40px 0; }
.note-more-wrap { text-align: center; padding: 4px 0 18px; }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text-2); border-radius: 18px; padding: 8px 22px; font-size: 13px; }
.btn-ghost:disabled { opacity: .6; }

/* 首页笔记横滑条 */
.note-scroll { display: flex; gap: 10px; padding: 4px 12px; overflow-x: auto; }
.note-scroll::-webkit-scrollbar { display: none; }
.note-mini { flex: none; width: 150px; background: var(--card); border-radius: var(--radius); overflow: hidden; display: block; }
.note-mini-cover { position: relative; padding-top: 68%; background: var(--primary-light); }
.note-mini-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.note-mini-blank { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; opacity: .5; }
.note-mini-t { padding: 7px 9px 2px; font-size: 12px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.note-mini-m { padding: 2px 9px 9px; font-size: 10px; color: var(--text-3); }

/* 笔记详情 */
.nd-wrap { background: var(--card); margin: 12px; border-radius: var(--radius); padding: 16px 14px; }
.nd-title { font-size: 18px; line-height: 1.45; margin-bottom: 12px; }
.nd-meta { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.nd-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-light); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.nd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nd-nick { font-size: 13px; font-weight: 600; }
.nd-time { font-size: 11px; color: var(--text-3); }
.nd-content { font-size: 14px; line-height: 1.75; color: var(--text-1); white-space: pre-wrap; word-break: break-word; }
.nd-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.nd-img { position: relative; padding-top: 100%; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.nd-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nd-video { width: 100%; border-radius: 10px; margin-top: 12px; background: #000; display: block; }
.nd-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.nd-like { background: var(--primary-light); color: var(--price); border-radius: 16px; padding: 7px 18px; font-size: 14px; font-weight: 600; }
.nd-views { font-size: 12px; color: var(--text-3); }

/* 发布笔记 */
.ne-wrap { padding: 12px; }
.ne-wrap .field { margin-bottom: 10px; }
.ne-label { font-size: 13px; color: var(--text-2); margin: 4px 0 8px; }
.ne-imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ne-img-cell, .ne-add-cell { position: relative; padding-top: 100%; }
.ne-img { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.ne-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ne-img-del { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; z-index: 2; cursor: pointer; }
.ne-add { position: absolute; inset: 0; border: 1px dashed var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 22px; background: #fff; cursor: pointer; }
.ne-add-busy { font-size: 11px; cursor: default; }
.ne-video-add { width: 200px; max-width: 100%; padding-top: 0; height: 120px; }
.ne-video-box { position: relative; max-width: 260px; }
.ne-video-box video { width: 100%; border-radius: 8px; display: block; background: #000; }
.ne-tip { font-size: 11px; color: var(--text-3); margin-top: 10px; text-align: center; }

/* ---------- 我的（个人中心） ---------- */
.mine-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: var(--radius); margin: 12px; padding: 22px 18px; display: flex; align-items: center; gap: 14px; }
.mine-hero-plain { background: var(--card); color: var(--text-1); }
.mine-hero-plain .mine-nick { font-size: 15px; }
.mine-hero-plain .mine-phone { color: var(--text-3); opacity: 1; }
.mine-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; flex: none; }
.mine-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-nick { font-size: 17px; font-weight: 600; }
.mine-phone { font-size: 12px; opacity: .85; margin-top: 2px; }
.mine-login-btn { display: block; margin: 0 12px 12px; }
.mine-menu { background: var(--card); border-radius: var(--radius); margin: 12px; overflow: hidden; }
.mine-item { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.mine-item:last-child { border-bottom: 0; }
.mine-item .mi-icon { font-size: 18px; }
.mine-item .mi-arrow { margin-left: auto; color: var(--text-3); }
.mine-logout { display: block; width: calc(100% - 24px); margin: 12px; text-align: center; background: var(--card); border-radius: var(--radius); padding: 14px; color: var(--price); font-size: 14px; }

/* 桌面端：笔记三列网格 / 详情与发布居中收窄 */
@media (min-width: 768px) {
  .note-tabs { padding: 14px 0 0; }
  .note-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px 0; }
  .note-scroll { display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 0 12px; }
  .note-scroll .note-mini { width: auto; }
  .nd-wrap { max-width: 720px; margin: 16px auto; padding: 26px 30px; }
  .nd-title { font-size: 22px; }
  .ne-wrap { max-width: 720px; margin: 0 auto; padding: 16px 0 30px; }
  .page-hd .hd-btn { cursor: pointer; }
  .mine-hero, .mine-menu { max-width: 720px; margin-left: auto; margin-right: auto; }
  .mine-login-btn, .mine-logout { max-width: 720px; margin-left: auto; margin-right: auto; }
}

/* ============================================================
 * 通用弹层（底部抽屉 / 遮罩 / 选择项）
 * 用于酒店筛选、日期选择等新增业务页
 * ============================================================ */
.h5-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 900; }
.h5-popup {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 560px; background: #fff; z-index: 901;
  border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom);
  max-height: 76vh; display: flex; flex-direction: column;
  animation: h5-popup-in .22s ease;
}
@keyframes h5-popup-in { from { transform: translateX(-50%) translateY(100%); } to { transform: translateX(-50%) translateY(0); } }
.h5-popup-hd { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 12px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--border); }
.h5-popup-close { font-size: 22px; line-height: 1; color: var(--text-3); padding: 0 4px; cursor: pointer; }
.h5-popup-bd { padding: 12px 14px 20px; overflow-y: auto; }
.h5-pick-item { padding: 13px 6px; font-size: 14px; color: var(--text-1); border-bottom: 1px solid var(--border); cursor: pointer; }
.h5-pick-item:last-child { border-bottom: 0; }
.h5-pick-item.on { color: var(--primary); font-weight: 600; }

/* 通用表单字段（弹层内复用） */
.field { margin-bottom: 12px; }
.field .label, .label { font-size: 13px; color: var(--text-2); margin-bottom: 5px; }

/* ---------- 酒店：房型 / 设施 ---------- */
.ht-fac { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ht-fac span { font-size: 12px; color: var(--text-2); background: var(--bg); border-radius: 6px; padding: 4px 10px; }
.room-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.room-item:last-child { border-bottom: 0; }
.room-item .rc { width: 96px; height: 72px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--primary-light); }
.room-item .ri { flex: 1; min-width: 0; }
.room-item .rn { font-size: 14px; font-weight: 600; }
.room-item .rm { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.room-item .rp { margin-top: 8px; display: flex; align-items: baseline; justify-content: space-between; }
.room-item .rgo { padding: 6px 16px; border-radius: 15px; background: var(--primary); color: #fff; font-size: 13px; }
.room-item .rgo:disabled { background: #b9d3e8; }

/* ---------- 景点 ---------- */
.sd-hero { position: relative; height: 200px; background-size: cover; background-position: center; background-color: #dfe7ef; }
.sd-hero-mask { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .62)); }
.sd-hero-body { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.sd-hero-city { font-size: 12px; opacity: .9; }
.sd-hero-name { font-size: 20px; font-weight: 700; margin-top: 2px; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.sd-hero-sub { font-size: 13px; opacity: .92; margin-top: 3px; }
.sd-tagrow { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 0; }
.sd-para { font-size: 14px; line-height: 1.8; color: var(--text-1); white-space: pre-wrap; word-break: break-word; margin-top: 8px; }
.sd-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.sd-gallery-item { position: relative; padding-top: 100%; border-radius: 8px; overflow: hidden; background: var(--bg); cursor: zoom-in; }
.sd-gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-title { font-size: 15px; font-weight: 600; }
.sd-rel { display: flex; align-items: center; gap: 10px; }
.sd-rel .ic { font-size: 22px; }
.sd-rel .t { font-size: 14px; font-weight: 600; }
.sd-rel .s { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sd-rel .arrow { margin-left: auto; color: var(--text-3); }
.sd-foot { text-align: center; font-size: 11px; color: var(--text-3); padding: 16px 12px 20px; }

@media (min-width: 768px) {
  .h5-popup { max-width: 520px; bottom: 40px; border-radius: 16px; }
  .sd-gallery { grid-template-columns: repeat(4, 1fr); }
}

/* ===== 全国化入驻表单（2026-10-08）===== */
.type-grid { display: flex; flex-wrap: wrap; margin: 4px 0 2px; }
.type-chip {
  flex: 0 0 30%; margin: 0 5% 10px 0; padding: 10px 0; box-sizing: border-box;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
}
.type-chip:nth-child(3n) { margin-right: 0; }
.type-chip-on { border-color: var(--primary); background: rgba(22,102,216,.06); }
.type-ico { font-size: 22px; line-height: 1.2; }
.type-name { margin-top: 4px; font-size: 12px; color: var(--text-2); }
.type-chip-on .type-name { color: var(--primary); font-weight: 600; }
.entry-tag {
  display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 99px;
  background: rgba(22,102,216,.08); color: var(--primary); font-size: 12px;
}
#province { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; font-size: 14px; background: #fff; color: var(--text-1); }
