/* ==========================================================================
   同佳智慧住 · 酒店自助入住（H5）
   纯手写 CSS，无预处理器、无构建步骤，改完直接上传宝塔即可生效
   配色沿用小程序：主色 #185FA5，辅助蓝 #3a7afe，危险 #e64340
   ========================================================================== */

:root {
  --main: #185FA5;
  --main-2: #3a7afe;
  --danger: #e64340;
  --text: #1f2d3d;
  --text-2: #5a6b7d;
  --text-3: #94a3b3;
  --line: #e8edf2;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(24, 95, 165, .06);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--main); text-decoration: none; }

#app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------- 顶栏 ---------------- */

.hd {
  position: sticky; top: 0; z-index: 50;
  height: 48px; display: flex; align-items: center;
  background: var(--main); color: #fff;
  padding: 0 6px;
}
.hd-back {
  width: 40px; height: 40px; font-size: 26px; line-height: 1;
  color: #fff; visibility: hidden; padding: 0 0 4px 0;
}
.hd-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; }
.hd-lang {
  min-width: 46px; height: 30px; margin-right: 6px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 15px;
  color: #fff; font-size: 12px;
}

#view { flex: 1; padding: 12px 12px calc(66px + var(--safe-bottom)); }

/* ---------------- 底部导航 ---------------- */

.tabbar { display: none; }
.tabbar.show {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: var(--safe-bottom);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 0 6px;
  font-size: 11px; color: var(--text-3); line-height: 1.2;
}
.tab-ico { width: 22px; height: 22px; display: block; }
.tab.act { color: var(--main); font-weight: 600; }

/* ---------------- 通用卡片 / 按钮 ---------------- */

.card {
  background: var(--card); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.btn-main {
  height: 46px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--main), var(--main-2));
  font-size: 16px; font-weight: 600;
}
.btn-main:disabled { opacity: .6; }
.btn-block { display: block; width: 100%; }
.btn-ghost {
  height: 46px; border-radius: 10px;
  border: 1px solid var(--main); color: var(--main); background: #fff;
}
.btn-ghost-sm {
  height: 32px; padding: 0 12px; border-radius: 16px;
  border: 1px solid #cfdbe8; color: var(--main); background: #fff;
  font-size: 13px; white-space: nowrap;
}
.btn-danger { height: 46px; border-radius: 10px; background: #fff; border: 1px solid var(--danger); color: var(--danger); }
.btn-sm { height: 34px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.btn-area { margin-top: 4px; }
.btn-area .btn-main, .btn-area .btn-ghost, .btn-area .btn-danger { margin-bottom: 10px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus { border-color: var(--main-2); }

/* 未识别身份证前的锁定态：灰底 + 灰字，与小程序 input-locked 一致 */
.field input.input-locked,
.field input:disabled {
  background: #f2f4f7; color: #9aa3ad; border-color: #e8edf2;
  -webkit-text-fill-color: #9aa3ad; opacity: 1;
}

.row-inline { display: flex; gap: 8px; align-items: center; }
.row-inline input { flex: 1; }

.sec-title { font-size: 13px; color: var(--text-3); padding: 4px 4px 8px; }
.sec-title2 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.foot-tip { font-size: 12px; color: var(--text-3); line-height: 1.6; padding: 0 4px; }
.muted { color: var(--text-3); }
.loading-row { text-align: center; color: var(--text-3); font-size: 13px; padding: 34px 0; }

/* ---------------- 首页（对齐小程序 index.wxss，rpx ÷ 2 = px） ---------------- */

/* 首页整屏通铺：抵消 #view 的 12px 内边距，让 Hero 顶部到边 */
.home-page { margin: -12px -12px 0; padding-bottom: 16px; }

/* ===== 顶部渐变 Hero ===== */
.hero {
  display: flex; align-items: center; flex-wrap: wrap;
  min-height: 230px;
  padding: 32px 24px 60px;
  background: linear-gradient(160deg, #2f95e8 0%, #185fa5 60%, #134a80 100%);
  color: #fff;
}
.hero-text { flex: 1; min-width: 0; margin-right: 12px; }
.hero-tag {
  display: inline-block;
  font-size: 11px; padding: 3px 10px; border-radius: 12px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  margin-bottom: 14px; letter-spacing: 1px;
}
.hero-title { font-size: 32px; font-weight: 700; letter-spacing: 2px; line-height: 1.2; margin-bottom: 10px; }
.hero-sub { font-size: 13px; opacity: .88; letter-spacing: .5px; }

/* ===== 纯 CSS 手机插图 ===== */
.hero-phone { flex: none; position: relative; width: 90px; padding-top: 10px; }
.phone-body {
  position: relative; width: 80px; height: 140px; border-radius: 14px;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.5);
  padding: 8px 7px;
}
.phone-notch { width: 24px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.45); margin: 0 auto 8px; }
.phone-screen { height: 100%; padding: 0 2px; display: flex; flex-direction: column; align-items: center; }
.screen-btn { width: 42px; height: 14px; border-radius: 7px; background: rgba(255,255,255,.75); margin-bottom: 10px; }
.screen-line { height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); margin-bottom: 6px; }
.screen-line-1 { width: 100%; }
.screen-line-2 { width: 70%; }
.screen-pwd {
  display: flex; margin-top: 8px;
  background: rgba(255,255,255,.2); border-radius: 6px; padding: 5px 8px;
}
.pwd-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.8); margin: 0 2.5px; }
.phone-shadow { width: 60px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.18); margin: 10px auto 0; }

/* ===== 门店切换胶囊（融入蓝色 Hero） ===== */
.hotel-pill { display: flex; align-items: center; justify-content: center; width: 100%; margin-bottom: 16px; }
.hotel-pill-inner {
  display: flex; align-items: center; max-width: 86%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px; padding: 7px 15px;
}
.hotel-pill-inner:active { background: rgba(255,255,255,.28); }
.hotel-pill-loc { font-size: 13px; margin-right: 6px; }
.hotel-pill-name {
  font-size: 14px; font-weight: 500; color: #fff; letter-spacing: .5px;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hotel-pill-arrow { font-size: 11px; color: rgba(255,255,255,.85); margin-left: 7px; flex: none; }

/* ===== 悬浮操作卡片 ===== */
.float-card {
  margin: -36px 12px 0;
  background: #fff; border-radius: 12px;
  padding: 18px 16px 16px;
  box-shadow: 0 6px 20px rgba(19, 74, 128, .12);
  position: relative; z-index: 2;
}
.float-card-title { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; }
.btn-checkin {
  width: 100%; height: 44px;
  font-size: 17px; font-weight: 600; letter-spacing: 4px;
  color: #fff;
  background: linear-gradient(90deg, #2f95e8 0%, #185fa5 100%);
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(24, 95, 165, .35);
}
.float-card-tip { margin-top: 10px; text-align: center; font-size: 12px; color: #9aa0a6; }

/* ===== 通用板块 ===== */
.section { padding: 22px 12px 0; }
.section-title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; }

/* ===== 智慧入住方案 ===== */
.feature-row { display: flex; margin: 0 -4px; }
.feature-card {
  flex: 1; background: #fff; border-radius: 10px;
  padding: 15px 6px 13px; margin: 0 4px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.feature-icon {
  width: 42px; height: 42px; line-height: 42px; border-radius: 11px;
  font-size: 17px; font-weight: 600; color: #fff;
  margin: 0 auto 8px; box-shadow: 0 3px 8px rgba(0,0,0,.12);
}
.icon-blue { background: linear-gradient(135deg, #2f95e8, #185fa5); }
.icon-teal { background: linear-gradient(135deg, #26a69a, #00838f); }
.icon-green { background: linear-gradient(135deg, #43a047, #2e7d32); }
.feature-name { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 3px; }
.feature-desc { font-size: 11px; color: #8a9199; }

/* ===== 宣传轮播（小程序是 swiper，这里横向轨道 + 圆点） ===== */
.home-swiper { position: relative; margin: 0 12px; overflow: hidden; border-radius: 10px; }
.swiper-track { display: flex; transition: transform .35s ease; }
.swiper-slide { flex: 0 0 100%; min-width: 100%; padding: 0 2px; }
.swiper-card {
  height: 150px; border-radius: 10px; padding: 18px 16px; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.card-1 { background: linear-gradient(135deg, #185fa5 0%, #2f95e8 100%); }
.card-2 { background: linear-gradient(135deg, #00838f 0%, #26a69a 100%); }
.card-3 { background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%); }
.swiper-tag {
  display: inline-block; align-self: flex-start;
  background: rgba(255,255,255,.2); font-size: 11px;
  padding: 2px 7px; border-radius: 4px; margin-bottom: 8px;
}
.swiper-title { font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.swiper-desc { font-size: 13px; opacity: .9; line-height: 1.5; }
.swiper-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 5px;
}
.swiper-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); }
.swiper-dot.on { width: 12px; border-radius: 3px; background: #fff; }

/* ===== 兼容旧结构（其他页面可能复用） ===== */
.hotel-bar { display: flex; align-items: center; gap: 10px; }
.hb-main { flex: 1; min-width: 0; }
.hb-label { font-size: 12px; color: var(--text-3); }
.hb-name { font-size: 16px; font-weight: 600; margin-top: 2px; }
.hb-name.empty { color: #c0c4cc; font-weight: 400; }

.action-card { display: flex; align-items: center; gap: 12px; }
.ac-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: #eef4fb; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ac-body { flex: 1; min-width: 0; }
.ac-title { font-size: 16px; font-weight: 600; }
.ac-desc { font-size: 12px; color: var(--text-3); margin-top: 3px; line-height: 1.4; }
.ac-arrow { color: #c7d3e0; font-size: 22px; }

/* ---------------- 登录 ---------------- */

.login-head { padding: 18px 6px 16px; }
.login-title { font-size: 24px; font-weight: 700; }
.login-sub { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.seg { display: flex; background: #eef1f5; border-radius: 10px; padding: 4px; margin-bottom: 12px; }
.seg-b { flex: 1; height: 34px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.seg-b.on { background: #fff; color: var(--text); font-weight: 600; }

/* 登录页 / 注册页之间的相互跳转 */
.reg-foot {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 6px 0 10px; font-size: 13px; color: var(--text-3);
}
.link-btn { font-size: 13px; color: var(--main); font-weight: 600; padding: 0 2px; }

/* ---------------- 选门店 ---------------- */

.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; background: #e9eef4; }
.hmap { height: 210px; width: 100%; }
.map-wrap.no-map .hmap { height: 0; }
.map-tip {
  position: absolute; left: 0; right: 0; top: 0; padding: 8px 10px;
  font-size: 12px; color: var(--text-2); background: rgba(255,255,255,.92); text-align: center;
}
.map-wrap.no-map .map-tip { position: static; }
.map-btn {
  position: absolute; right: 10px; bottom: 10px;
  height: 32px; padding: 0 12px; border-radius: 16px;
  background: #fff; color: var(--main); font-size: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.map-wrap.no-map .map-btn { display: none; }

.search-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.search-row input {
  flex: 1; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
}

.poi-list { margin-bottom: 10px; }
.poi-list:empty { display: none; }
.poi-head { font-size: 12px; color: var(--text-3); padding: 2px 4px 6px; }
.poi-item { background: #fff; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.poi-item:first-of-type { border-radius: 10px 10px 0 0; }
.poi-item:last-child { border-radius: 0 0 10px 10px; border-bottom: none; }
.poi-title { font-size: 14px; }
.poi-addr { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 30px; padding: 0 14px; border-radius: 15px;
  background: #fff; border: 1px solid var(--line); color: var(--text-2); font-size: 13px;
}
.chip.on { background: var(--main); color: #fff; border-color: var(--main); }

.list-head { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 8px; }
.list-head > span:first-child { font-size: 15px; font-weight: 600; }
.list-sub { font-size: 12px; color: var(--text-3); }

.hotel-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--radius); padding: 13px 14px; margin-bottom: 10px;
  box-shadow: var(--shadow); border: 1px solid transparent;
}
.hotel-card.on { border-color: var(--main); }
.hc-main { flex: 1; min-width: 0; }
.hc-name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tag-on { font-size: 11px; color: #fff; background: var(--main); border-radius: 8px; padding: 1px 6px; }
.hc-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }
.hc-right { text-align: right; flex: none; }
.hc-dist { font-size: 12px; color: var(--main); }
.hc-go { color: #c7d3e0; font-size: 20px; margin-top: 2px; }

/* ---------------- 城市索引 ---------------- */

.loc-bar {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.loc-label { font-size: 13px; color: var(--text-3); }
.loc-city { font-size: 15px; font-weight: 600; color: var(--text-2); }
.loc-city.loc-ok { color: var(--main); }

.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.city-b {
  height: 38px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.city-b.on { background: var(--main); color: #fff; border-color: var(--main); }
.city-b.loc-hit { border-color: var(--main); color: var(--main); font-weight: 600; }

.letter-nav {
  position: fixed; right: 2px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; z-index: 30;
}
.ln-item { font-size: 10px; color: var(--text-3); line-height: 1.35; padding: 0 4px; }

/* ---------------- 订单 / 表单 ---------------- */

.bar-hotel {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.bh-label { font-size: 12px; color: var(--text-3); }
.bh-name { flex: 1; font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-name.empty { color: #c0c4cc; font-weight: 400; }

.order-card { padding: 14px; }
.oc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.oc-no { font-size: 13px; color: var(--text-2); }
.oc-tap { font-size: 12px; color: var(--main); }
.oc-rows { margin-bottom: 8px; }
.oc-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.oc-k { color: var(--text-3); }
.oc-v { color: var(--text); }
.guest-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #f7f9fc; border-radius: 8px; padding: 8px 10px; margin-top: 6px; font-size: 13px;
}
.gr-name { font-weight: 600; }
.gr-room { color: var(--text-3); font-size: 12px; }

/* ---------- 预订单结果卡片（对齐小程序 orderlist.wxss） ---------- */

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.topbar-left { display: flex; align-items: baseline; }
.topbar-title { font-size: 19px; font-weight: 600; color: #1a1a1a; letter-spacing: .5px; }
.topbar-sub { margin-left: 8px; font-size: 12px; color: #9aa0a6; }
.topbar-count {
  background: #e8f2fd; color: #185fa5; font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 12px;
}

.loading-card { display: flex; align-items: center; justify-content: center; padding: 36px 16px; }
.spinner-c {
  width: 18px; height: 18px; border: 2px solid #dce7f3; border-top-color: #185fa5;
  border-radius: 50%; animation: spin .8s linear infinite; margin-right: 10px; flex: none;
}

.empty-tip { text-align: center; padding: 40px 16px; }
.empty-icon-q {
  width: 60px; height: 60px; line-height: 60px; margin: 0 auto 16px;
  border-radius: 50%; background: #f1f4f8; color: #b0b8c2;
  font-size: 28px; font-weight: 600;
}
.empty-main { display: block; font-size: 16px; font-weight: 500; color: #2c2c2a; margin-bottom: 6px; }
.empty-sub { display: block; font-size: 13px; color: #9aa0a6; }
.btn-back-input {
  margin-top: 24px; width: 160px; height: 34px; border-radius: 17px;
  border: 1px solid #cfdbe8; color: var(--main); background: #fff; font-size: 14px;
}

.order-card { padding: 16px; border-radius: 10px; box-shadow: 0 2px 10px rgba(24,95,165,.06); border: 1px solid #f0f2f5; }
.order-card:active { transform: scale(.99); }
.order-head { display: flex; align-items: center; justify-content: space-between; }
.order-no-wrap { display: flex; align-items: center; min-width: 0; }
.order-no-label {
  font-size: 11px; color: #9aa0a6; background: #f1f4f8;
  padding: 2px 6px; border-radius: 4px; margin-right: 7px; flex: none;
}
.order-bookno {
  font-size: 15px; font-weight: 600; color: #185fa5; letter-spacing: .5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.status-badge {
  display: flex; align-items: center; flex: none; margin-left: 8px;
  background: #e4f6ee; color: #0f8a5f; font-size: 12px; font-weight: 500;
  padding: 3px 9px; border-radius: 12px;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #17b97a; margin-right: 4px; }
.order-divider { height: 1px; background: #f0f2f5; margin: 12px 0 4px; }
.order-info { padding: 4px 0; }
.order-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  font-size: 13.5px; padding: 5px 0; color: #3a3f45;
}
.order-row .label { color: #9aa0a6; flex: none; margin-right: 12px; }
.order-row .value { text-align: right; min-width: 0; }
.remark { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-team {
  display: inline-block; background: #fdf3df; color: #b07a1f;
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
.room-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #f7f9fc; border-radius: 7px; padding: 10px 12px; margin-top: 8px;
}
.room-left { display: flex; align-items: baseline; min-width: 0; }
.room-name { font-size: 14.5px; font-weight: 600; color: #1a1a1a; }
.room-type { font-size: 12px; color: #8a9199; margin-left: 7px; }
.room-right { display: flex; align-items: baseline; flex: none; margin-left: 8px; }
.room-price { font-size: 16px; font-weight: 600; color: #e8730c; }
.room-unit { font-size: 11px; color: #9aa0a6; margin-left: 2px; }
.order-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e8ebef;
  font-size: 13px; color: #185fa5; font-weight: 500;
}
.cta-arrow { font-size: 18px; line-height: 1; color: #185fa5; }

.ocr-box { margin-bottom: 14px; }
.ocr-state { font-size: 12px; margin-top: 6px; color: var(--text-3); min-height: 16px; }
.ocr-state.ok { color: #22a06b; }
.ocr-state.fail { color: var(--danger); }

.guest-card { border: 1px dashed #d7e0ea; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.gc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.gc-del { font-size: 13px; color: var(--danger); }

/* ---------------- 我的房间（对齐小程序 room.wxss） ---------------- */

/* 蓝底通铺：抵消 #view 内边距；高度扣掉顶栏 48px 与底部 Tab 占位 66px */
.room-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: -12px -12px 0;
  min-height: calc(100vh - 114px - var(--safe-bottom));
  padding: 30px 24px;
  background: linear-gradient(180deg, #2f95e8 0%, #185fa5 100%);
  color: #fff; text-align: center;
  box-sizing: border-box;
}
.room-greet { font-size: 36px; font-weight: 300; line-height: 1.1; }
.room-greet-sub { font-size: 36px; font-weight: 300; line-height: 1.1; margin-bottom: 8px; }
.room-greet-desc { font-size: 15px; opacity: .9; margin-top: 4px; }

/* 房卡插图（纯 CSS） */
.room-card-art { width: 120px; height: 80px; margin: 20px 0; }
.room-card-bg {
  width: 100%; height: 100%;
  background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.35);
  border-radius: 10px; position: relative;
}
.room-card-line {
  position: absolute; top: 14px; left: 12px; right: 36px; height: 5px;
  background: rgba(255,255,255,.4); border-radius: 3px;
}
.room-card-hole {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.room-card-hole-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); margin-bottom: 4px; }
.room-card-hole-slot { width: 5px; height: 14px; background: rgba(255,255,255,.5); border-radius: 3px; }

.room-hero-tip { font-size: 14px; opacity: .85; margin-bottom: 30px; }

/* 锁插图：白色文件卡 + 蓝锁（对齐 room.wxss 的 guide-art） */
.guide-art { position: relative; width: 140px; height: 120px; margin: 15px 0 25px; }
.art-doc {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 95px; height: 110px; background: rgba(255,255,255,.95);
  border-radius: 8px; padding: 14px 12px; box-sizing: border-box;
  box-shadow: 0 6px 15px rgba(0,0,0,.15);
}
.art-doc-line { height: 6px; background: #d7e3f2; border-radius: 3px; margin-bottom: 8px; }
.art-doc-line.short { width: 70%; }
.art-doc-line.short2 { width: 45%; }
.art-lock {
  position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.art-lock-shackle {
  width: 22px; height: 17px; border: 4px solid #185fa5; border-bottom: none;
  border-radius: 12px 12px 0 0; margin-bottom: -2px;
}
.art-lock-body {
  width: 36px; height: 28px; background: #185fa5; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.art-lock-keyhole { width: 6px; height: 11px; background: #fff; border-radius: 3px; }
.art-dot { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); }
.art-dot.d1 { width: 12px; height: 12px; left: 3px; top: 15px; }
.art-dot.d2 { width: 8px; height: 8px; right: 5px; top: 45px; }
.art-dot.d3 { width: 6px; height: 6px; right: 20px; bottom: 8px; }

/* 引导页当前门店胶囊 */
.guide-hotel {
  margin-top: 7px; font-size: 12px; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.15); border-radius: 13px;
  padding: 3px 11px; display: inline-block; max-width: 88%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.guide-hotel.empty { color: #185fa5; background: rgba(255,255,255,.92); font-weight: 500; }

/* 白底 / 描边 胶囊按钮 */
.btn-white, .btn-outline {
  width: 100%; max-width: 310px; height: 48px;
  border-radius: 24px; font-size: 16px; font-weight: 500;
  white-space: nowrap; padding: 0 10px;
  display: block; margin: 0 auto 14px;
}
.btn-white { background: #fff; color: #185fa5; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.8); }

/* 浅灰底表单视图（book / stay） */
.guide-form-wrap { padding-bottom: 10px; }
.search-card { margin-top: 0; }
.search-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #1a1a1a; }

/* 输入框（带图标，对齐 room.wxss 的 input-wrap） */
.input-wrap {
  display: flex; align-items: center; background: #f7f9fc;
  border: 1px solid #e5e9f0; border-radius: 8px; padding: 0 10px; margin-bottom: 12px;
}
.input-icon { color: #185fa5; font-size: 14px; margin-right: 6px; font-weight: 500; }
.input-wrap input {
  flex: 1; height: 44px; font-size: 15px; background: transparent; border: none;
  min-width: 0;
}
.input-wrap input::placeholder { color: #b0b8c4; }

.btn-primary {
  width: 100%; height: 46px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, #2f95e8, #185fa5);
  font-size: 16px; font-weight: 600;
}
.btn-primary:disabled { opacity: .6; }
.form-label { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.form-tip { font-size: 12px; color: var(--text-3); margin-top: 12px; line-height: 1.6; }

.back-link { text-align: center; color: #185fa5; font-size: 14px; padding: 15px 0; }

/* 已入住验证：后 6 位提示条 */
.stay-hint {
  display: flex; align-items: center; padding: 9px 11px; margin-bottom: 13px;
  background: #eaf4ff; border: 1px solid #bcd9f2; border-radius: 6px;
}
.stay-hint-icon { font-size: 13px; margin-right: 6px; }
.stay-hint-text { font-size: 13px; color: #3d6e9e; line-height: 1.4; }
.stay-hint-strong { color: #185fa5; font-weight: 600; }

/* ---------------- 结果页 ---------------- */

.result-hero { text-align: center; padding: 26px 0 18px; }
.rh-icon { font-size: 42px; }
.rh-title { font-size: 20px; font-weight: 700; margin-top: 10px; }
.rh-sub { font-size: 13px; color: var(--text-3); margin-top: 6px; }

.kv { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-3); }
.kv .v { font-weight: 600; }
.kv.big .v { font-size: 18px; color: var(--main); }
.kv .v.code { letter-spacing: 2px; font-size: 20px; }
.kv .v.muted { font-weight: 400; font-size: 13px; color: var(--text-3); }

.notice { background: #fffbf0; border: 1px solid #ffe7ba; }
.notice-text { font-size: 13px; color: #8a6d3b; line-height: 1.65; }

/* ---------------- 我的 ---------------- */

.me-head {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--main), var(--main-2));
  color: #fff; border-radius: var(--radius); padding: 20px 16px; margin-bottom: 12px;
}
.me-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none;
}
.me-info { flex: 1; min-width: 0; }
.me-name { font-size: 17px; font-weight: 600; }
.me-sub { font-size: 12px; opacity: .85; margin-top: 3px; }
.me-head .btn-main { background: #fff; color: var(--main); }

.list-card { padding: 0 14px; }
.lr { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lr:last-child { border-bottom: none; }
.lr-k { font-size: 15px; }
.lr-v { flex: 1; text-align: right; font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-arrow { color: #c7d3e0; font-size: 18px; }

/* ---------------- 空状态 ---------------- */

.empty-box { text-align: center; padding: 40px 20px; }
.empty-icon { font-size: 40px; }
.empty-title { font-size: 15px; color: var(--text-2); margin-top: 12px; }
.empty-tip { font-size: 12px; color: var(--text-3); margin: 8px 0 16px; line-height: 1.6; }

/* ---------------- toast / loading / modal ---------------- */

.toast {
  position: fixed; left: 50%; top: 44%; transform: translate(-50%, -50%) scale(.96);
  max-width: 76vw; padding: 11px 16px; border-radius: 10px;
  background: rgba(0,0,0,.78); color: #fff; font-size: 14px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .18s ease; z-index: 999;
  word-break: break-all;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast-wide { max-width: 86vw; text-align: left; line-height: 1.55; }

.loading-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.32);
  display: none; align-items: center; justify-content: center; z-index: 1000;
}
.loading-mask.show { display: flex; }
.loading-box {
  background: rgba(0,0,0,.78); color: #fff; border-radius: 12px;
  padding: 18px 22px; text-align: center; min-width: 110px;
}
.spinner {
  width: 26px; height: 26px; margin: 0 auto 10px;
  border: 2px solid rgba(255,255,255,.28); border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 13px; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.42);
  display: none; align-items: center; justify-content: center; z-index: 1001; padding: 24px;
}
.modal-mask.show { display: flex; }
.modal-box { background: #fff; border-radius: 12px; width: 100%; max-width: 320px; overflow: hidden; }
.modal-msg { padding: 22px 20px; font-size: 15px; line-height: 1.6; text-align: center; }
.modal-ops { display: flex; border-top: 1px solid var(--line); }
.m-btn { flex: 1; height: 46px; font-size: 16px; }
.m-cancel { color: var(--text-2); border-right: 1px solid var(--line); }
.m-ok { color: var(--main); font-weight: 600; }
