/**
 * 旅居平台主样式表 (main.css)
 * 设计语言：Apple Design System · iOS 26 Liquid Glass
 * 核心特征：SF Pro字体族、Liquid Glass液态玻璃、超大圆角、浮动Tab Bar
 * 微信H5适配：safe-area-inset、touch-action、-webkit-overflow-scrolling
 */

/* ══════════════════════════════════════════════════════
   1. CSS 变量 / 设计令牌（Design Tokens · iOS 26 Update）
══════════════════════════════════════════════════════ */
:root {
  /* Apple系统字体栈 */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "PingFang SC", "Helvetica Neue", Arial, sans-serif;

  /* iOS 26 主色调（更鲜亮的系统色） */
  --color-blue:       #0A84FF;  /* iOS 26 Blue - 更明亮 */
  --color-blue-light: #E3F0FF;
  --color-blue-dark:  #0066CC;
  --color-green:      #30D158;  /* iOS 26 Green */
  --color-orange:     #FF9F0A;  /* iOS 26 Orange */
  --color-red:        #FF453A;  /* iOS 26 Red */
  --color-pink:       #FF375F;  /* iOS 26 Pink */
  --color-purple:     #BF5AF2;  /* iOS 26 Purple */
  --color-teal:       #5AC8F5;  /* iOS 26 新增青色 */
  --color-yellow:     #FFD60A;  /* iOS 26 Yellow */

  /* 中性色（iOS 26 Dark/Light Label） */
  --color-label-1:    #1D1D1F;
  --color-label-2:    #3A3A3C;
  --color-label-3:    #636366;
  --color-label-4:    #8E8E93;
  --color-separator:  #E5E5EA;
  --color-separator-opaque: rgba(60,60,67,0.12);

  /* 背景色（iOS 26 System Backgrounds） */
  --bg-primary:       #FFFFFF;
  --bg-secondary:     #F2F2F7;  /* iOS 26 GroupedBackground */
  --bg-tertiary:      #E5E5EA;
  --bg-elevated:      #FFFFFF;

  /* iOS 26 Liquid Glass 玻璃质感令牌 */
  --glass-thin:       rgba(255,255,255,0.55);   /* 薄玻璃 */
  --glass-regular:    rgba(255,255,255,0.72);   /* 标准玻璃 */
  --glass-thick:      rgba(255,255,255,0.85);   /* 厚玻璃（header用） */
  --glass-ultra:      rgba(255,255,255,0.92);   /* 超厚玻璃 */
  --glass-border:     rgba(255,255,255,0.6);    /* 玻璃边框高光 */
  --glass-border-dark:rgba(0,0,0,0.06);         /* 玻璃外侧描边 */
  --glass-blur:       saturate(180%) blur(24px);/* 标准模糊值 */
  --glass-blur-heavy: saturate(200%) blur(40px);/* 重度模糊（面板用） */
  --bg-glass:         var(--glass-thick);       /* 向后兼容 */

  /* iOS 26 圆角（更大、更圆润） */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   18px;
  --radius-xl:   22px;
  --radius-2xl:  28px;   /* iOS 26 新增：大卡片/面板 */
  --radius-3xl:  36px;   /* iOS 26 新增：浮动Tab Bar */
  --radius-full: 9999px;

  /* iOS 26 阴影（更柔和的多层彩色阴影） */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.05), 0 0 1px rgba(0,0,0,.03);
  --shadow-md:  0 4px 20px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 8px 36px rgba(0,0,0,.09), 0 2px 10px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.07);
  --shadow-glass: 0 8px 32px rgba(0,0,0,.10), 0 0 0 1px var(--glass-border) inset, 0 1px 0 rgba(255,255,255,.5) inset;

  /* 间距 */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;

  /* 过渡动画（iOS 26 弹性曲线） */
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-bounce: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* 导航栏高度（含安全区域） */
  --header-h:            56px;
  --tab-bar-h:           82px;   /* iOS 26浮动Tab Bar更高 */
  --tab-bar-pill-h:      64px;   /* 胶囊本体高度 */
  --safe-area-top:       env(safe-area-inset-top, 0px);
  --safe-area-bottom:    env(safe-area-inset-bottom, 0px);
}

/* ══════════════════════════════════════════════════════
   iOS 26 暗黑模式（Dark Mode · prefers-color-scheme）
══════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --color-blue:       #0A84FF;
    --color-green:      #30D158;
    --color-orange:     #FF9F0A;
    --color-red:        #FF453A;
    --color-pink:       #FF375F;
    --color-purple:     #BF5AF2;

    --color-label-1:    #F5F5F7;
    --color-label-2:    #EBEBF0;
    --color-label-3:    #ABABAF;
    --color-label-4:    #636366;
    --color-separator:  rgba(84,84,88,0.6);
    --color-separator-opaque: rgba(84,84,88,0.65);

    --bg-primary:       #1C1C1E;
    --bg-secondary:     #2C2C2E;
    --bg-tertiary:      #3A3A3C;
    --bg-elevated:      #2C2C2E;

    --glass-thin:       rgba(28,28,30,0.55);
    --glass-regular:    rgba(28,28,30,0.75);
    --glass-thick:      rgba(28,28,30,0.88);
    --glass-ultra:      rgba(28,28,30,0.95);
    --glass-border:     rgba(255,255,255,0.12);
    --glass-border-dark:rgba(255,255,255,0.06);
    --bg-glass:         var(--glass-thick);

    --shadow-sm:  0 1px 4px rgba(0,0,0,.2), 0 0 1px rgba(0,0,0,.15);
    --shadow-md:  0 4px 20px rgba(0,0,0,.3), 0 1px 4px rgba(0,0,0,.2);
    --shadow-lg:  0 8px 36px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.25);
    --shadow-xl:  0 20px 60px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.3);
    --shadow-glass: 0 8px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
  }
}

/* ══════════════════════════════════════════════════════
   2. 重置 & 基础样式（微信H5 & iOS 26 优化）
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* 消除微信内置浏览器点击高亮 */
  -webkit-tap-highlight-color: transparent;
  /* 防止iOS橡皮筋弹性滚动触发下拉刷新 */
  overscroll-behavior-y: contain;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-label-1);
  background: var(--bg-secondary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 微信H5：允许垂直滑动，禁止水平异常滚动 */
  overflow-x: hidden;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  /* 移动端所有链接去除点击延迟 */
  touch-action: manipulation;
}
a:hover { opacity: 0.8; }
img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  /* 微信H5：消除按钮300ms延迟 */
  touch-action: manipulation;
}

input, textarea, select {
  font-family: inherit;
  /* 微信H5：防止iOS自动放大（需配合 font-size >= 16px） */
  touch-action: manipulation;
}

/* ══════════════════════════════════════════════════════
   微信H5输入框防缩放（iOS Safari在font-size<16px时会缩放）
══════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  input[type="text"],
  input[type="number"],
  input[type="password"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ══════════════════════════════════════════════════════
   3. 通用组件：按钮（iOS 26 Liquid Glass 风格）
══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* iOS 26 主按钮：实色蓝 + 彩色阴影 */
.btn-primary {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 2px 12px rgba(10,132,255,.30);
}
.btn-primary:hover {
  background: var(--color-blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10,132,255,.40);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 1px 6px rgba(10,132,255,.20);
}

/* iOS 26 幽灵按钮：Liquid Glass效果 */
.btn-ghost {
  background: var(--glass-regular);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--color-label-1);
  border: 1px solid var(--glass-border-dark);
}
.btn-ghost:hover {
  background: var(--glass-thick);
  color: var(--color-label-1);
}
.btn-ghost:active { transform: scale(0.97); }

.btn-danger {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,69,58,.25);
}
.btn-danger:hover { opacity: .88; }
.btn-danger:active { transform: scale(0.97); }

.btn-sm { padding: 7px 16px; font-size: 13px; font-weight: 500; }
.btn-lg { padding: 15px 32px; font-size: 17px; font-weight: 700; }
.btn-block { width: 100%; justify-content: center; }

/* iOS 26 圆形图标按钮 */
.btn-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-label-1);
  transition: var(--transition);
  flex-shrink: 0;
  touch-action: manipulation;
}
.btn-icon:hover { background: var(--bg-tertiary); }
.btn-icon:active { transform: scale(0.92); }
.btn-icon svg { width: 20px; height: 20px; }

/* 磨砂玻璃图标按钮（产品详情页Header使用） */
.btn-glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.btn-text { background: none; border: none; color: var(--color-blue); font-size: 14px; cursor: pointer; padding: 0; }
.btn-text:hover { opacity: .7; }

/* ══════════════════════════════════════════════════════
   4. 顶部导航栏（iOS 26 Liquid Glass Sticky Header）
══════════════════════════════════════════════════════ */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* iOS 26：更厚重的玻璃 + 顶部安全区域适配 */
  background: var(--glass-ultra);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border-bottom: 1px solid var(--glass-border-dark);
  padding-top: var(--safe-area-top);
  transition: box-shadow 0.3s, background 0.3s;
}
.sticky-header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--glass-ultra);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.page-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: var(--color-label-1);
}
.header-count { font-size: 14px; color: var(--color-label-4); min-width: 40px; text-align: right; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* 首页品牌标题 */
.brand { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo-left { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo-image { height: 28px; max-width: 120px; object-fit: contain; }
.brand-texts { display: flex; flex-direction: column; min-width: 0; }
.brand-logo { font-size: 22px; font-weight: 700; color: var(--color-blue); letter-spacing: -0.5px; }
.brand-tagline { display: block; font-size: 11px; color: var(--color-label-4); margin-top: -2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 产品详情页透明Header */
.page-header-transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}
.page-header-transparent.scrolled {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* 用户头像（Header右侧） */
.header-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}
.header-avatar img { width: 100%; height: 100%; object-fit: cover; animation: imgFadeIn .3s ease forwards; }
.avatar-placeholder {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════
   5. 主内容区域
══════════════════════════════════════════════════════ */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.page-with-header { padding-top: var(--space-md); }

/* ══════════════════════════════════════════════════════
   6. 搜索框（首页）
══════════════════════════════════════════════════════ */
.search-section { padding: var(--space-md) 0 var(--space-sm); }
.search-wrap { max-width: 600px; }

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-label-4);
  width: 18px; height: 18px;
  pointer-events: none;
  z-index: 2;
}
.search-input {
  width: 100%;
  padding: 13px 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-separator);
  /* iOS 26：搜索框用玻璃底 */
  background: var(--glass-regular);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 16px; /* 微信H5防缩放：不低于16px */
  color: var(--color-label-1);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.search-input:focus {
  border-color: var(--color-blue);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(10,132,255,.14), var(--shadow-sm);
}
.search-input::placeholder { color: var(--color-label-4); }
.search-clear {
  position: absolute;
  right: 12px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-label-4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}
.search-clear svg { width: 14px; height: 14px; }

/* 首页公告卡片（文章公告入口） */
.home-notice-wrap {
  padding: 0 0 var(--space-md);
}
.home-notice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: var(--radius-xl);
  padding: 12px 14px;
  color: var(--color-label-1);
  background: linear-gradient(135deg, rgba(10,132,255,.12), rgba(94,92,230,.08));
  border: 1px solid rgba(10,132,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.home-notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 26px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  background: linear-gradient(135deg, #0A84FF, #5E5CE6);
  box-shadow: 0 4px 14px rgba(10,132,255,.35);
}
.home-notice-main {
  flex: 1;
  min-width: 0;
}
.home-notice-main h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-label-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-notice-main p {
  margin-top: 3px;
  font-size: 12px;
  color: var(--color-label-4);
}
.home-notice-arrow {
  width: 16px;
  height: 16px;
  color: var(--color-label-4);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   7. 筛选栏（Filter Bar + Chips）
══════════════════════════════════════════════════════ */
.filter-section { position: relative; margin-bottom: var(--space-sm); }

.filter-bar {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-sm) 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-separator);
  background: var(--bg-primary);
  font-size: 14px;
  color: var(--color-label-2);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.filter-chip svg { width: 15px; height: 15px; color: var(--color-label-4); }
.filter-chip .chip-arrow { width: 14px; height: 14px; transition: transform 0.25s; }
.filter-chip:hover { border-color: var(--color-blue); color: var(--color-blue); }
.filter-chip.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,122,255,.25);
}
.filter-chip.active svg { color: #fff; }
.filter-chip.has-value {
  border-color: var(--color-blue);
  color: var(--color-blue);
  background: var(--color-blue-light);
}

/* 筛选面板遮罩 */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.filter-overlay.show { display: block; }

/* iOS 26 筛选下拉面板（Liquid Glass 底部抽屉） */
.filter-panel {
  display: none;
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 300;
  /* iOS 26：面板也用玻璃底，但更厚 */
  background: var(--bg-primary);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04) inset;
  max-height: 88vh;
  overflow-y: auto;
  /* 微信H5/iOS 惯性滚动（关键！否则面板内滚动卡顿） */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* 底部留出安全区域 */
  padding-bottom: var(--safe-area-bottom);
  animation: slideUp 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.filter-panel.open { display: block; }

/* 面板顶部拖拽指示条 */
.filter-panel::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--color-separator);
  border-radius: var(--radius-full);
  margin: 10px auto -2px;
  flex-shrink: 0;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-separator);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 1;
}
.panel-header-actions { display: flex; align-items: center; gap: 8px; }
.panel-close { background: none; border: none; cursor: pointer; color: var(--color-label-4); padding: 4px; }
.panel-close svg { width: 20px; height: 20px; }

.panel-body { padding: var(--space-lg); }
.panel-footer {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-separator);
  background: var(--bg-primary);
  position: sticky;
  bottom: 0;
}
.panel-footer .btn { flex: 1; }
.panel-hint { font-size: 13px; color: var(--color-label-4); margin-bottom: var(--space-md); }

/* 地点选择网格 */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
}
.location-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-separator);
  background: var(--bg-primary);
  font-size: 14px;
  color: var(--color-label-2);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.location-btn svg { width: 18px; height: 18px; color: var(--color-blue); }
.location-btn small { font-size: 11px; color: var(--color-label-4); margin-top: -2px; }
.location-btn:hover { border-color: var(--color-blue); color: var(--color-blue); }
.location-btn.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}
.location-btn.active svg, .location-btn.active small { color: rgba(255,255,255,.8); }

/* 数量范围输入 */
.range-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.range-input-group { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.range-input-group label { font-size: 12px; color: var(--color-label-4); }
.range-input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-separator);
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.range-input:focus { border-color: var(--color-blue); }
.range-sep { color: var(--color-label-4); font-size: 18px; padding-top: 18px; }

/* 快速选择按钮行 */
.quick-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.quick-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-separator);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-primary);
  color: var(--color-label-2);
}
.quick-btn:hover { border-color: var(--color-blue); color: var(--color-blue); }
.quick-btn.active { background: var(--color-blue-light); border-color: var(--color-blue); color: var(--color-blue); }

/* 价格滑块 */
.price-display {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-blue);
  text-align: center;
  margin-bottom: var(--space-md);
}
.price-slider-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}
.slider-track {
  position: absolute;
  width: 100%;
  height: 4px;
  background: var(--color-separator);
  border-radius: var(--radius-full);
}
.slider-range {
  position: absolute;
  height: 4px;
  background: var(--color-blue);
  border-radius: var(--radius-full);
}
.price-slider {
  position: absolute;
  width: 100%;
  height: 4px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.price-inputs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.price-input-group { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.price-input-group label { font-size: 12px; color: var(--color-label-4); }
.price-input-inner {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-separator);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.price-input-inner span { padding: 0 10px; color: var(--color-label-4); font-size: 14px; }
.price-input-inner input {
  flex: 1;
  padding: 10px 8px 10px 0;
  border: none;
  outline: none;
  font-size: 15px;
  width: 0;
}

/* 配套设施多选面板 */
.panel-amenities { max-height: 90vh; }
.amenities-body { padding: var(--space-md); }
.amenity-group { margin-bottom: var(--space-lg); }
.amenity-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-label-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: var(--space-sm);
}
.amenity-options { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.amenity-checkbox { cursor: pointer; }
.amenity-checkbox input { display: none; }
.amenity-check-inner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-separator);
  font-size: 13px;
  color: var(--color-label-2);
  transition: var(--transition);
  background: var(--bg-primary);
}
.amenity-check-inner svg { width: 14px; height: 14px; }
.amenity-checkbox input:checked + .amenity-check-inner {
  background: var(--color-blue-light);
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* 已选筛选条件标签 */
.active-filters {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0 var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
}
.active-filters::-webkit-scrollbar { display: none; }
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-blue-light);
  color: var(--color-blue);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.active-filter-tag svg { width: 12px; height: 12px; }
.btn-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: none;
  color: var(--color-label-4);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid var(--color-separator);
}
.btn-clear-all svg { width: 12px; height: 12px; }
.btn-clear-all:hover { color: var(--color-red); border-color: var(--color-red); }
.badge-count {
  background: #fff;
  color: var(--color-blue);
  border-radius: var(--radius-full);
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* ══════════════════════════════════════════════════════
   8. 排序栏
══════════════════════════════════════════════════════ */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) 0 var(--space-sm);
}
.result-count { font-size: 13px; color: var(--color-label-4); }
.result-count strong { color: var(--color-label-1); font-weight: 600; }
.sort-options { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sort-options::-webkit-scrollbar { display: none; }
.sort-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--color-label-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.sort-btn:hover { color: var(--color-blue); }
.sort-btn.active { color: var(--color-blue); font-weight: 600; background: var(--color-blue-light); }

/* ══════════════════════════════════════════════════════
   9. 产品卡片（核心UI组件）
══════════════════════════════════════════════════════ */
/* 产品列表：桌面多列网格，手机单列横向卡片 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}

/* JS动态插入卡片的容器：display:contents 使其对grid透明 */
#cardsContainer {
  display: contents;
}

/* 骨架屏和空状态横跨整行 */
#skeletonGrid,
.skeleton-grid {
  grid-column: 1 / -1;
}

/* iOS 26 产品卡片：更大圆角 + 彩色投影 */
.product-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease;
  box-shadow: var(--shadow-md);
  border: 0.5px solid var(--glass-border-dark);
  touch-action: manipulation;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-card:active {
  transform: scale(0.975);
  box-shadow: var(--shadow-sm);
  transition-duration: 0.1s;
}

/* 卡片图片区（桌面：4:3比例） */
.card-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0s;
  animation: imgFadeIn .35s ease forwards;
}
.product-card:hover .card-image { transform: scale(1.04); }

/* 卡片标签 */
/* 折扣角标：左上角 L形贴边 */
.badge-discount {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #FF3B30 0%, #FF6B35 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.2px;
  padding: 5px 10px 6px 7px;
  border-radius: 0 0 12px 0;
  line-height: 1;
  box-shadow: 2px 2px 6px rgba(255,59,48,.3);
}
/* 精选角标：右上角小标签 */
.badge-featured {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #FF9500, #FFCC00);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 7px 6px 10px;
  border-radius: 0 0 0 12px;
  line-height: 1;
  box-shadow: -2px 2px 6px rgba(255,149,0,.3);
}
/* 兼容旧card-badge（其他场景仍可用 pill 样式） */
.card-badge {
  position: absolute;
}

/* 收藏按钮 */
.btn-favorite {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-spring);
  box-shadow: var(--shadow-sm);
}
.btn-favorite svg { width: 17px; height: 17px; color: var(--color-label-3); transition: var(--transition); }
.btn-favorite:hover { transform: scale(1.1); }
.btn-favorite.favorited svg { color: var(--color-pink); fill: var(--color-pink); }

/* 卡片内容区 */
.card-body { padding: 14px; }

.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-label-3);
  margin-bottom: 6px;
}
.card-location svg { width: 13px; height: 13px; }
/* 产品卡片景区标签 */
.card-scenic-area {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--color-green);
  font-size: 11px;
  font-weight: 500;
  background: rgba(52,199,89,.1);
  padding: 1px 7px 1px 5px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}
.card-scenic-area svg { width: 11px; height: 11px; flex-shrink: 0; }
/* 表单标签辅助提示文字 */
.form-label-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-label-4);
  margin-left: 4px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-label-1);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-specs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: 8px;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-label-3);
}
.spec-item svg { width: 13px; height: 13px; }

/* 设施标签 */
.card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  font-size: 11px;
  color: var(--color-label-3);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.amenity-tag svg { width: 11px; height: 11px; flex-shrink: 0; }
.amenity-more {
  padding: 3px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  font-size: 11px;
  color: var(--color-label-4);
}

/* 价格 + 评分 */
.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}
.card-price { display: flex; align-items: baseline; gap: 4px; }
.price-original {
  font-size: 12px;
  color: var(--color-label-4);
  text-decoration: line-through;
}
.price-current { font-size: 18px; font-weight: 700; color: var(--color-label-1); }
.price-unit { font-size: 12px; color: var(--color-label-4); }

.card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-label-1);
}
.star-icon { width: 13px; height: 13px; color: var(--color-orange); fill: var(--color-orange); }
.rating-count { font-size: 11px; color: var(--color-label-4); font-weight: 400; }

/* 移除收藏按钮 */
.btn-remove-fav {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-separator);
  font-size: 13px;
  color: var(--color-label-3);
  cursor: pointer;
  justify-content: center;
  transition: var(--transition);
  background: none;
}
.btn-remove-fav:hover { border-color: var(--color-red); color: var(--color-red); }
.btn-remove-fav svg { width: 14px; height: 14px; }

/* 下架产品遮罩 */
.product-card-wrap { position: relative; }
.offline-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.offline-mask span {
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
}

/* ══════════════════════════════════════════════════════
   10. 骨架屏（Loading Skeleton）
══════════════════════════════════════════════════════ */
/* 骨架屏 */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  width: 100%;
}
.skeleton-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.skeleton-image {
  aspect-ratio: 4/3;
  width: 100%;
}
.skeleton-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--color-separator) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  height: 14px;
}
.skeleton-line { height: 14px; }
.w-40 { width: 40%; }
.w-60 { width: 60%; }
.w-80 { width: 80%; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════════════
   11. 空状态
══════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  gap: var(--space-md);
}
.empty-full { min-height: 60vh; justify-content: center; }
.empty-icon { color: var(--color-separator); }
.empty-icon svg { width: 64px; height: 64px; }
.empty-state h3 { font-size: 20px; font-weight: 600; color: var(--color-label-1); }
.empty-state p { font-size: 15px; color: var(--color-label-3); }

/* ══════════════════════════════════════════════════════
   12. 加载更多按钮
══════════════════════════════════════════════════════ */
.load-more-wrap { text-align: center; padding: var(--space-lg) 0; }
.btn-load-more {
  padding: 12px 32px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-separator);
  background: var(--bg-primary);
  font-size: 15px;
  color: var(--color-label-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-load-more:hover { border-color: var(--color-blue); color: var(--color-blue); }
.btn-load-more svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════
   13. 底部Tab导航栏（移动端）→ 样式见第26节
══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   14. Toast 提示组件 → 样式见第27节
══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   15. 产品详情页
══════════════════════════════════════════════════════ */


/* 图片轮播 */
.gallery-section { position: relative; overflow: hidden; background: #000; }
.gallery-swiper { position: relative; touch-action: pan-y; }
.gallery-slide { display: none; aspect-ratio: 16/10; }
.gallery-slide.active { display: block; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery-placeholder { aspect-ratio: 16/10; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; color: var(--color-separator); }
.gallery-placeholder svg { width: 64px; height: 64px; }

.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: var(--transition);
}
.gallery-dot.active { background: #fff; width: 18px; border-radius: 3px; }
.gallery-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* 产品信息区 */
.detail-info { padding: var(--space-lg) 0 var(--space-sm); }
.detail-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); }
.detail-location { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--color-label-3); }
.detail-location svg { width: 13px; height: 13px; }
.detail-rating { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.star-filled { color: var(--color-orange); fill: var(--color-orange); }
.star-empty  { color: var(--color-separator); }
.star-sm { width: 13px; height: 13px; }
.detail-title { font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: var(--space-md); color: var(--color-label-1); }

.detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-md);
}
.spec-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 5px 12px 5px 8px;
}
.spec-card svg { width: 14px; height: 14px; color: var(--color-blue); flex-shrink: 0; }
.spec-value { font-size: 13px; font-weight: 700; color: var(--color-label-1); }
.spec-name  { font-size: 13px; color: var(--color-label-3); }
.detail-address { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-label-3); padding: var(--space-sm) 0; }
.detail-address svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--color-blue); }
/* 景区标签（详情页） */
.detail-scenic { color: var(--color-green); font-weight: 500; }
.detail-scenic svg { color: var(--color-green); }

/* 价格区块 */
.price-section {
  padding: var(--space-md);
  margin: 0 var(--space-md);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.price-block { display: flex; align-items: center; gap: var(--space-sm); }
.price-info { display: flex; align-items: baseline; gap: 6px; }
.price-original-lg { font-size: 14px; color: var(--color-label-4); text-decoration: line-through; }
.price-current-lg  { font-size: 28px; font-weight: 700; color: var(--color-label-1); }
.price-unit-lg     { font-size: 14px; color: var(--color-label-4); }
.discount-badge { background: var(--color-red); color: #fff; padding: 4px 10px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600; margin-left: auto; }

/* 内容区块 */
.section-block { padding: var(--space-lg) 0; border-top: 1px solid var(--color-separator); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); }
.section-title { font-size: 18px; font-weight: 700; margin-bottom: var(--space-md); color: var(--color-label-1); }

/* 配套设施详情 */
.amenities-grid { display: flex; flex-direction: column; gap: var(--space-md); }
.amenity-category {}
.amenity-cat-title { font-size: 12px; color: var(--color-label-4); text-transform: uppercase; letter-spacing: .5px; margin-bottom: var(--space-sm); }
.amenity-list { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.amenity-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--color-label-2); }
.amenity-item svg { width: 16px; height: 16px; color: var(--color-blue); }

/* 产品描述 */
.desc-content { font-size: 15px; color: var(--color-label-2); line-height: 1.7; max-height: 120px; overflow: hidden; transition: max-height 0.3s; }
.desc-content.expanded { max-height: none; }
.desc-toggle { display: flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--color-blue); font-size: 14px; cursor: pointer; background: none; border: none; padding: 0; }
.desc-toggle svg { width: 16px; height: 16px; }

/* 商家卡片 */
.merchant-card { display: flex; align-items: center; gap: var(--space-md); background: var(--bg-secondary); border-radius: var(--radius-lg); padding: var(--space-md); }
.merchant-logo-wrap { flex-shrink: 0; }
.merchant-logo { width: 56px; height: 56px; border-radius: var(--radius-md); object-fit: cover; }
.merchant-logo-default { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--color-blue-light); display: flex; align-items: center; justify-content: center; color: var(--color-blue); }
.merchant-logo-default svg { width: 28px; height: 28px; }
.merchant-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.merchant-desc { font-size: 13px; color: var(--color-label-3); line-height: 1.4; }

/* 评价 */
.review-total { font-size: 14px; color: var(--color-label-3); }
.rating-summary { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); background: var(--bg-secondary); padding: var(--space-md); border-radius: var(--radius-lg); }
.rating-score { font-size: 48px; font-weight: 700; color: var(--color-label-1); line-height: 1; }
.rating-stars { display: flex; flex-direction: column; gap: 4px; }
.rating-stars > div { display: flex; gap: 2px; }
.rating-label { font-size: 12px; color: var(--color-label-4); }
.review-list { display: flex; flex-direction: column; gap: var(--space-md); }
.review-item { padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-separator); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.reviewer-info { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.reviewer-name { display: block; font-size: 14px; font-weight: 600; }
.review-date { font-size: 12px; color: var(--color-label-4); }
.review-rating { display: flex; gap: 2px; }
.review-content { font-size: 14px; color: var(--color-label-2); line-height: 1.6; }

/* 相关推荐 */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.related-card { border-radius: var(--radius-md); overflow: hidden; background: var(--bg-primary); box-shadow: var(--shadow-sm); text-decoration: none; transition: var(--transition); }
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-img-wrap { aspect-ratio: 4/3; }
.related-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.related-info { padding: 10px; }
.related-info h4 { font-size: 13px; font-weight: 600; color: var(--color-label-1); margin-bottom: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.related-price { font-size: 13px; font-weight: 700; color: var(--color-blue); }

/* 底部固定操作栏 ── 由新样式块替代，此处保留占位 */

/* 灯箱 */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap { max-width: 90vw; max-height: 80vh; }
.lightbox-img-wrap img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: #fff; background: rgba(255,255,255,.2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; background: rgba(255,255,255,.2); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 14px; }

/* ══════════════════════════════════════════════════════
   16. 认证页面（登录 / 注册）
══════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-xl);
}
.auth-brand { text-align: center; margin-bottom: var(--space-xl); }
.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--color-blue);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto var(--space-md);
  letter-spacing: -1px;
}
.merchant-logo-badge { background: var(--color-orange); }
.merchant-logo-badge svg { width: 32px; height: 32px; }
.auth-title { font-size: 24px; font-weight: 700; color: var(--color-label-1); margin-bottom: 4px; }
.auth-subtitle { font-size: 14px; color: var(--color-label-4); }
.auth-form { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-md); }
.auth-divider { text-align: center; position: relative; margin: var(--space-sm) 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--color-separator); }
.auth-divider span { position: relative; background: var(--bg-primary); padding: 0 var(--space-sm); font-size: 13px; color: var(--color-label-4); }
.auth-footer { text-align: center; margin-top: var(--space-md); }
.auth-footer a { font-size: 13px; color: var(--color-label-4); }
.auth-footer a:hover { color: var(--color-blue); }

/* 密码强度条 */
.pwd-strength { display: flex; align-items: center; gap: var(--space-sm); margin-top: 8px; }
.strength-bars { display: flex; gap: 4px; }
.strength-bar { width: 32px; height: 4px; border-radius: 2px; background: var(--color-separator); transition: var(--transition); }
.strength-bar.weak   { background: var(--color-red); }
.strength-bar.medium { background: var(--color-orange); }
.strength-bar.strong { background: var(--color-green); }
.strength-label { font-size: 12px; font-weight: 600; }
.strength-label.weak   { color: var(--color-red); }
.strength-label.medium { color: var(--color-orange); }
.strength-label.strong { color: var(--color-green); }

/* ══════════════════════════════════════════════════════
   17. 表单通用样式
══════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 500; color: var(--color-label-2); }
.required { color: var(--color-red); }

.form-input {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-separator);
  font-size: 15px;
  color: var(--color-label-1);
  background: var(--bg-primary);
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.form-input:focus { border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(0,122,255,.1); }
.form-input::placeholder { color: var(--color-label-4); }
.form-input:disabled { background: var(--bg-secondary); cursor: not-allowed; }

.form-select {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-separator);
  font-size: 15px;
  color: var(--color-label-1);
  background: var(--bg-primary);
  outline: none;
  transition: var(--transition);
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-select:focus { border-color: var(--color-blue); }

.form-textarea {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-separator);
  font-size: 15px;
  color: var(--color-label-1);
  background: var(--bg-primary);
  outline: none;
  transition: var(--transition);
  width: 100%;
  resize: vertical;
  line-height: 1.6;
}
.form-textarea:focus { border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(0,122,255,.1); }
.textarea-counter { font-size: 12px; color: var(--color-label-4); text-align: right; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-error {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: #FFF2F2;
  color: var(--color-red);
  font-size: 14px;
  border: 1.5px solid rgba(255,59,48,.2);
}

/* 图标输入框 */
.input-icon-wrap { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--color-label-4); pointer-events: none; }
.input-with-icon { padding-left: 44px; }
.input-with-right-icon { padding-right: 44px; }
.input-right-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--color-label-4); padding: 4px; }
.input-right-btn svg { width: 18px; height: 18px; }
.input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--color-label-4);
  pointer-events: none;
}
.input-with-prefix { padding-left: 28px; }

/* Radio组 */
.radio-group { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.radio-item {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-separator);
  cursor: pointer;
  font-size: 14px;
  color: var(--color-label-2);
  transition: var(--transition);
}
.radio-item input { display: none; }
.radio-item:hover { border-color: var(--color-blue); color: var(--color-blue); }
.radio-item.active, .radio-item:has(input:checked) { background: var(--color-blue); border-color: var(--color-blue); color: #fff; }

/* Checkbox */
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--color-label-2); line-height: 1.5; }
.checkbox-label input { width: 18px; height: 18px; border-radius: 4px; cursor: pointer; accent-color: var(--color-blue); flex-shrink: 0; margin-top: 1px; }
.form-agree { padding: var(--space-sm) 0; }
.link { color: var(--color-blue); }
.form-tip { text-align: center; font-size: 13px; color: var(--color-label-4); margin-top: var(--space-sm); }
.form-hint { font-size: 13px; color: var(--color-label-4); }

/* ══════════════════════════════════════════════════════
   18. 个人中心通用组件（profile.php 使用 pf-* 前缀，见第28节）
══════════════════════════════════════════════════════ */

.stats-row {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
}
.stat-item { flex: 1; text-align: center; cursor: pointer; }
.stat-num { display: block; font-size: 22px; font-weight: 700; color: var(--color-label-1); }
.stat-label { font-size: 13px; color: var(--color-label-4); }
.stat-divider { width: 1px; height: 32px; background: var(--color-separator); }

/* 菜单列表 */
.menu-section { display: flex; flex-direction: column; gap: var(--space-sm); }
.menu-group { background: var(--bg-primary); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.menu-group-title { font-size: 12px; color: var(--color-label-4); padding: var(--space-sm) var(--space-md) var(--space-xs); text-transform: uppercase; letter-spacing: .5px; }
.menu-list { list-style: none; }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--space-md);
  cursor: pointer;
  border-top: 1px solid var(--color-separator);
  transition: var(--transition);
}
.menu-item:first-child { border-top: none; }
.menu-item:hover { background: var(--bg-secondary); }
.menu-left { display: flex; align-items: center; gap: var(--space-sm); font-size: 15px; color: var(--color-label-1); }
.menu-left svg { width: 20px; height: 20px; color: var(--color-blue); }
.menu-left-danger svg, .menu-left-danger { color: var(--color-red) !important; }
.menu-right { display: flex; align-items: center; gap: 6px; }
.menu-badge { background: var(--color-red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-full); }
.menu-arrow { width: 16px; height: 16px; color: var(--color-label-4); }

/* 抽屉（底部滑出面板） */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 400;
  backdrop-filter: blur(2px);
}
.drawer-overlay.show { display: block; }
.drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 500;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.drawer.open { transform: translateY(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-separator);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 1;
}
.drawer-header h2 { font-size: 17px; font-weight: 600; }
.drawer-body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }

/* ══════════════════════════════════════════════════════
   19. 收藏夹页面
══════════════════════════════════════════════════════ */
.fav-summary { padding: var(--space-sm) 0; font-size: 14px; color: var(--color-label-3); }
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: var(--space-lg) 0; }
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-separator);
  font-size: 14px;
  color: var(--color-label-2);
  text-decoration: none;
  transition: var(--transition);
  background: var(--bg-primary);
}
.page-btn:hover { border-color: var(--color-blue); color: var(--color-blue); }
.page-btn.active { background: var(--color-blue); border-color: var(--color-blue); color: #fff; }
.page-btn svg { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════════
   20. 商家入驻页面
══════════════════════════════════════════════════════ */
.apply-hero { background: linear-gradient(135deg, var(--color-blue) 0%, #5B9DFF 100%); color: #fff; padding: var(--space-xl) var(--space-md) var(--space-lg); border-radius: var(--radius-xl); margin: var(--space-md) 0; }
.apply-hero h2 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.apply-hero p { font-size: 15px; opacity: .85; margin-bottom: var(--space-lg); }
.feature-row { display: flex; gap: var(--space-lg); }
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; opacity: .9; }
.feature-item svg { width: 28px; height: 28px; }
.apply-form-section { padding-bottom: var(--space-2xl); }
.form-section-title { font-size: 20px; font-weight: 700; margin-bottom: var(--space-lg); }
.form-card { background: var(--bg-primary); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-md); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--space-md); }
.form-card-title { font-size: 16px; font-weight: 600; color: var(--color-label-1); margin-bottom: var(--space-sm); }
.upload-area {
  border: 2px dashed var(--color-separator);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.upload-area:hover { border-color: var(--color-blue); background: var(--color-blue-light); }
.upload-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--color-label-4); }
.upload-placeholder svg { width: 40px; height: 40px; color: var(--color-blue); }
.upload-placeholder span { font-size: 15px; color: var(--color-label-2); }
.upload-placeholder small { font-size: 12px; }
#licensePreview { max-width: 100%; max-height: 200px; border-radius: var(--radius-md); object-fit: cover; }

/* ══════════════════════════════════════════════════════
   21. 商家后台样式
══════════════════════════════════════════════════════ */
.merchant-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--color-separator);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.merchant-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 56px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.merchant-brand-text { font-size: 16px; font-weight: 700; color: var(--color-label-1); text-decoration: none; white-space: nowrap; }
.merchant-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.mnav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--color-label-3);
  text-decoration: none;
  transition: var(--transition);
}
.mnav-item svg { width: 16px; height: 16px; }
.mnav-item:hover { color: var(--color-label-1); background: var(--bg-secondary); }
.mnav-item.active { color: var(--color-blue); background: var(--color-blue-light); font-weight: 600; }
.merchant-header-user { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
.merchant-name-badge { font-size: 14px; color: var(--color-label-2); font-weight: 500; white-space: nowrap; }

.merchant-main { min-height: calc(100vh - 56px); }
.merchant-container { max-width: 1100px; margin: 0 auto; padding: var(--space-lg) var(--space-md); }

/* 欢迎横幅 */
.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--color-blue) 0%, #5B9DFF 100%);
  color: #fff;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
}
.dashboard-welcome h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.dashboard-welcome p { font-size: 14px; opacity: .85; }
.dashboard-welcome .btn-primary { background: rgba(255,255,255,.2); backdrop-filter: blur(4px); border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.dashboard-welcome .btn-primary:hover { background: rgba(255,255,255,.3); transform: translateY(-1px); }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-bottom: var(--space-lg); }
.stat-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.stat-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card-icon svg { width: 24px; height: 24px; }
.icon-blue   { background: var(--color-blue-light);    color: var(--color-blue); }
.icon-green  { background: rgba(52,199,89,.12);        color: var(--color-green); }
.icon-orange { background: rgba(255,149,0,.12);        color: var(--color-orange); }
.icon-pink   { background: rgba(255,45,85,.10);        color: var(--color-pink); }
.stat-card-num { font-size: 24px; font-weight: 700; color: var(--color-label-1); display: block; }
.stat-card-label { font-size: 13px; color: var(--color-label-4); }

/* 后台区块 */
.dashboard-section {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
}
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); }
.section-header-row h3 { font-size: 17px; font-weight: 600; }
.empty-state-small { text-align: center; padding: var(--space-xl) var(--space-md); color: var(--color-label-4); }
.empty-state-small svg { width: 40px; height: 40px; margin: 0 auto var(--space-sm); }
.empty-state-small p { font-size: 14px; }

/* 产品表格 */
.product-table { display: flex; flex-direction: column; }
.table-header, .table-row { display: flex; align-items: center; gap: var(--space-md); padding: 12px var(--space-sm); }
.table-header { background: var(--bg-secondary); border-radius: var(--radius-sm); font-size: 12px; color: var(--color-label-4); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.table-row { border-bottom: 1px solid var(--color-separator); transition: var(--transition); }
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: var(--bg-secondary); }
.col-title { flex: 1; display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.col-price { width: 80px; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.col-rooms { width: 60px; font-size: 14px; color: var(--color-label-3); flex-shrink: 0; text-align: center; }
.col-stat  { width: 80px; font-size: 13px; color: var(--color-label-4); flex-shrink: 0; text-align: center; }
.col-status { width: 80px; flex-shrink: 0; text-align: center; }
.col-action { width: 110px; display: flex; gap: 8px; flex-shrink: 0; }
.product-thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--bg-secondary); }
.product-thumb-wrap { flex-shrink: 0; }
.product-name-info { min-width: 0; }
.product-name { display: block; font-size: 14px; font-weight: 500; color: var(--color-label-1); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-loc { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--color-label-4); }
.product-loc svg { width: 11px; height: 11px; }
.status-badge, .status-toggle {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.badge-online  { background: rgba(52,199,89,.12);  color: var(--color-green); }
.badge-offline { background: rgba(142,142,147,.12); color: var(--color-label-4); }
.action-link { font-size: 13px; color: var(--color-blue); text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; }
.action-link:hover { opacity: .7; }
.action-danger { color: var(--color-red) !important; }

/* 商家信息卡片 */
.merchant-info-card { display: flex; flex-direction: column; gap: 0; }
.info-row { display: flex; padding: 12px 0; border-bottom: 1px solid var(--color-separator); gap: var(--space-md); }
.info-row:last-child { border-bottom: none; }
.info-label { width: 80px; font-size: 14px; color: var(--color-label-4); flex-shrink: 0; }
.info-value { font-size: 14px; color: var(--color-label-1); }

/* 产品编辑页 */
.page-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); }
.page-title-row h2 { font-size: 22px; font-weight: 700; }
.back-title { display: flex; align-items: center; gap: var(--space-sm); }
.form-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.form-col { display: flex; flex-direction: column; gap: var(--space-md); }
.form-submit-bar { display: flex; justify-content: flex-end; gap: var(--space-sm); padding-top: var(--space-md); }

/* 图片上传网格 */
.img-upload-grid { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.img-preview-item { width: 88px; height: 88px; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-item:first-child::after { content: '封面'; position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 10px; text-align: center; padding: 2px; }
.img-remove-btn { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; }
.img-remove-btn svg { width: 12px; height: 12px; }
.img-add-btn { width: 88px; height: 88px; border-radius: var(--radius-md); border: 2px dashed var(--color-separator); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--color-label-4); font-size: 11px; transition: var(--transition); }
.img-add-btn:hover { border-color: var(--color-blue); color: var(--color-blue); }
.img-add-btn svg { width: 24px; height: 24px; }

/* 设施编辑器 */
.amenities-editor { display: flex; flex-direction: column; gap: var(--space-md); }
.amenity-editor-group {}
.amenity-editor-cat { font-size: 12px; color: var(--color-label-4); text-transform: uppercase; letter-spacing: .5px; margin-bottom: var(--space-sm); font-weight: 600; }

/* ══════════════════════════════════════════════════════
   详情页顶部栏（覆盖在图片上，支持透明渐变）
══════════════════════════════════════════════════════ */
.detail-top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  padding: env(safe-area-inset-top, 0) 0 0;
}
.detail-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-md) 8px;
}
.detail-top-bar.scrolled {
  background: var(--glass-ultra);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid var(--glass-border-dark);
}
.detail-top-bar .btn-icon.btn-glass {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--glass-border-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
/* 详情页主体不再使用全局 max-width，改为手机优先 */
.product-detail-main {
  padding-bottom: 0;
  max-width: 800px;
  margin: 0 auto;
}
.detail-body {
  padding: 0 var(--space-md) 6px;
}
/* 画廊占满屏幕宽度 */
.product-detail-main .gallery-section {
  margin: 0;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* ══════════════════════════════════════════════════════
   4档价格卡片网格
══════════════════════════════════════════════════════ */
.detail-info {
  margin-top: 12px;
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: var(--glass-ultra);
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--shadow-md);
}
.detail-meta { margin-bottom: 6px; }
.detail-title {
  font-size: 24px;
  letter-spacing: -0.35px;
  margin-bottom: 10px;
}
.detail-specs { margin-bottom: 10px; gap: 7px; }
.spec-card {
  background: var(--glass-regular);
  border: 1px solid var(--glass-border-dark);
}
.detail-address { padding: 6px 0; }

.section-block {
  margin-top: 12px;
  padding: 14px 14px;
  border-top: none;
  border-radius: 18px;
  background: var(--glass-ultra);
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--shadow-sm);
}
.price-section-block { padding-top: 14px; }
.price-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.price-from-hint { font-size: 13px; color: var(--color-label-4); }
.price-from-hint strong { color: var(--color-blue); font-size: 15px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
/* 超过2个时自动换行 */
.price-grid:has(.price-card:nth-child(3)) {
  grid-template-columns: repeat(2, 1fr);
}

.price-card {
  background: var(--glass-regular);
  border-radius: 14px;
  padding: 13px 14px;
  border: 1px solid var(--glass-border-dark);
  transition: var(--transition);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.price-card-primary {
  background: linear-gradient(135deg, rgba(10,132,255,.12), rgba(94,92,230,.08));
  border-color: var(--color-blue);
}
.price-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-label-3);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}
.price-card-primary .price-card-label { color: var(--color-blue); }
.price-card-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}
.price-currency {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-label-1);
}
.price-number {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-label-1);
  line-height: 1;
}
.price-card-primary .price-currency,
.price-card-primary .price-number { color: var(--color-blue); }
.price-card-tip {
  font-size: 11px;
  color: var(--color-label-4);
}

/* ══════════════════════════════════════════════════════
   2个跳转按钮（查房态 / 查看图文）
══════════════════════════════════════════════════════ */
.action-links-section { padding-top: 12px; }
.action-link-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.action-link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--glass-border-dark);
  background: var(--glass-regular);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.action-link-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-availability { border-color: rgba(10,132,255,.34); background: linear-gradient(135deg, rgba(10,132,255,.12), rgba(94,92,230,.08)); }
.btn-detail       { border-color: rgba(52,199,89,.3); background: linear-gradient(135deg, rgba(52,199,89,.1), rgba(48,209,88,.05)); }
.action-link-disabled { opacity: .45; cursor: not-allowed; }
.action-link-disabled:hover { transform: none; box-shadow: none; }

.action-link-btn > i:first-child {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-availability > i:first-child { background: var(--color-blue);  color: #fff; }
.btn-detail       > i:first-child { background: var(--color-green); color: #fff; }
.action-link-disabled > i:first-child { background: var(--color-label-4); }
.action-link-btn > i:first-child svg { width: 18px; height: 18px; }

.action-link-btn > div { flex: 1; min-width: 0; }
.action-link-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-label-1);
}
.action-link-sub {
  display: block;
  font-size: 11px;
  color: var(--color-label-4);
  margin-top: 1px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.action-link-arrow { width: 16px; height: 16px; color: var(--color-label-4); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   详情页底部操作栏（3个按钮布局）
══════════════════════════════════════════════════════ */
.detail-action-bar {
  position: fixed;
  bottom: 0; left: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-ultra);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: none;
  border-top: 1px solid var(--glass-border-dark);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,.12);
  z-index: 98;
  max-width: 800px;
  /* 居中对齐（配合detail-main的max-width） */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
}
/* 收藏按钮 */
.action-fav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--glass-border-dark);
  background: var(--glass-regular);
  color: var(--color-label-3);
  cursor: pointer;
  font-size: 11px;
  min-width: 62px;
  transition: var(--transition-spring);
}
.action-fav-btn svg { width: 20px; height: 20px; }
.action-fav-btn.favorited { border-color: var(--color-pink); color: var(--color-pink); }
.action-fav-btn.favorited svg { fill: var(--color-pink); }

/* 查房态 / 查图文 / 联系商家 按钮 */
.action-bar-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 10px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(10,132,255,.18);
}
.action-bar-btn svg { width: 18px; height: 18px; }
.btn-check-room  { background: var(--color-blue);  color: #fff; }
.btn-view-detail { background: var(--color-green); color: #fff; }
.btn-contact     { background: var(--color-orange); color: #fff; }
.action-bar-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════
   设施标签样式（详情页版本，更大更清晰）
══════════════════════════════════════════════════════ */
.amenities-detail-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.amenity-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--glass-regular);
  border: 1px solid var(--glass-border-dark);
  font-size: 13px;
  color: var(--color-label-2);
}
.amenity-item-tag svg { width: 14px; height: 14px; color: var(--color-blue); }

.merchant-card {
  background: var(--glass-regular);
  border: 1px solid var(--glass-border-dark);
}
.rating-summary {
  background: var(--glass-regular);
  border: 1px solid var(--glass-border-dark);
}
.review-item {
  padding: 10px 10px;
  border-radius: 14px;
  background: var(--glass-regular);
  border: 1px solid var(--glass-border-dark);
  margin-bottom: 8px;
}
.review-item:last-child { margin-bottom: 0; }
.related-card {
  border-radius: 14px;
  border: 1px solid var(--glass-border-dark);
  background: var(--glass-regular);
}

/* 商家后台：4档价格输入网格 */
.price-4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.price-4-item label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-label-2);
  margin-bottom: 6px;
}
.price-4-item label small {
  font-size: 11px;
  color: var(--color-label-4);
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════
   详情页：隐藏全局Tab Bar，只显示详情页自己的操作栏
══════════════════════════════════════════════════════ */
body.page-product-detail .tab-bar {
  display: none !important;
}
/* 详情页操作栏在最顶层，不被任何遮挡 */
body.page-product-detail .detail-action-bar {
  z-index: 999;
}

/* ══════════════════════════════════════════════════════
   手机端详情页专项修复
══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .detail-body {
    padding: 0 10px 4px;
  }
  .detail-info,
  .section-block {
    border-radius: 14px;
    padding: 12px 11px;
    margin-top: 10px;
  }
  .detail-title { font-size: 21px; }
  .price-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .price-number { font-size: 22px; }
  .action-link-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .action-link-btn { padding: 12px 10px; gap: 8px; }
  .action-link-title { font-size: 13px; }
  .action-link-sub { display: none; }  /* 小屏不显示副标题 */
  .action-link-btn > i:first-child { width: 32px; height: 32px; }
  .price-4-grid { grid-template-columns: 1fr 1fr; }
  /* 底部操作栏手机端全宽 */
  .detail-action-bar {
    left: 8px;
    right: 8px;
    transform: none;
    max-width: calc(100% - 16px);
    width: calc(100% - 16px);
    border-radius: 14px 14px 0 0;
  }
}

/* ══════════════════════════════════════════════════════
   底部版权 */
.site-footer { padding: var(--space-xl) var(--space-md); border-top: 1px solid var(--color-separator); }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); margin-bottom: var(--space-sm); }
.footer-links a { font-size: 13px; color: var(--color-label-4); }
.footer-links a:hover { color: var(--color-blue); }
.footer-copy { font-size: 12px; color: var(--color-label-4); }

/* 旋转动画（加载中图标） */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════
   图片通用淡入动画（加载时平滑出现，改善感知性能）
══════════════════════════════════════════════════════ */
@keyframes imgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   首页轮播图 Banner Slider */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin: 0 var(--space-md) var(--space-md);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 3/1;
    background: #f2f2f7;
}
.banner-track {
    display: flex;
    height: 100%;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.banner-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.banner-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    animation: imgFadeIn .4s ease forwards;
}
/* 模糊背景层（所有屏幕尺寸都加，手机端才可见） */
.banner-slide-bg {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(.55);
    z-index: 0;
    display: none; /* 桌面隐藏，不需要 */
}
.banner-slide-link { display: block; width: 100%; height: 100%; }
.banner-slide > img,
.banner-slide-link > img { position: relative; z-index: 1; }

/* 手机端：16:9 容器 + contain 完整显示 + 模糊背景填充空白 */
@media (max-width: 639px) {
    .banner-slider { aspect-ratio: 16/9; border-radius: var(--radius-lg); }
    .banner-slide-bg { display: block; }
    .banner-slide img { object-fit: contain; }
}
.banner-slide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.45));
    color: #fff;
    padding: 28px 20px 14px;
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
}
.banner-prev, .banner-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: .2s;
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-prev:hover, .banner-next:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.banner-prev svg, .banner-next svg { width: 18px; height: 18px; stroke: #333; }
/* 手机端隐藏箭头，用手势滑动 */
@media (max-width: 639px) { .banner-prev, .banner-next { display: none; } }
.banner-dots {
    position: absolute;
    bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 5px; z-index: 2;
}
.banner-dot {
    width: 6px; height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.5);
    backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
    border: none;
}
/* iOS 26 风格：激活点变为长胶囊 */
.banner-dot.active {
    width: 22px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* ══════════════════════════════════════════════════════
   22. 响应式适配
══════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .filter-panel { max-width: 480px; left: 50%; transform: translateX(-50%); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; }
  .filter-panel.open { transform: translateX(-50%); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .skeleton-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .skeleton-grid { grid-template-columns: repeat(4, 1fr); }
  .filter-panel { max-width: 560px; }
  .tab-bar { display: none; }
  .tab-spacer { height: 0; }
  .site-footer { display: block; }
}

@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
  .skeleton-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 767px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .col-rooms, .col-stat { display: none; }
  .col-action { width: 80px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { display: none; }
  .apply-hero .feature-row { gap: var(--space-md); }
  /* 商家导航：手机端改为 header 下方横向滚动条 */
  .merchant-header-inner { flex-wrap: wrap; height: auto; padding: 10px 14px 0; }
  .merchant-brand { width: 100%; padding: 2px 0 6px; }
  .merchant-header-user { margin-left: auto; }
  .merchant-nav {
    display: flex !important;
    width: 100%;
    overflow-x: auto;
    padding: 4px 0 10px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .merchant-nav::-webkit-scrollbar { display: none; }
  .mnav-item { white-space: nowrap; flex-shrink: 0; }
}

/* ── 手机端：产品卡片改为横向（左图右文）── */
@media (max-width: 639px) {
  /* 列表改为单列 flex */
  .product-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    grid-template-columns: unset;
  }
  #cardsContainer { display: contents; }
  #skeletonGrid, .skeleton-grid {
    grid-column: unset;
    width: 100%;
  }

  /* 卡片横向：左图右文 */
  .product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 110px;
  }
  .product-card:hover { transform: translateY(-2px); }

  /* 图片区：左侧固定宽度，不再 aspect-ratio */
  .card-image-wrap {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: unset;
  }

  /* 内容区：撑满右侧 */
  .card-body {
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* 标题：单行省略 */
  .card-title {
    font-size: 14px;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
  }

  /* 设施标签：单行不换行 */
  .card-amenities {
    flex-wrap: nowrap;
    overflow: hidden;
    margin-bottom: 4px;
  }

  .card-specs { margin-bottom: 4px; }
  .price-current { font-size: 15px; }

  /* 骨架屏也改为横向 */
  .skeleton-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
  .skeleton-card {
    display: flex;
    flex-direction: row;
    min-height: 110px;
  }
  .skeleton-image {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: unset;
  }
  .skeleton-body {
    flex: 1;
    padding: 10px 12px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════
   23. 预订弹窗
══════════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 800; backdrop-filter: blur(2px);
}
.modal-overlay.open { display: block; }

.book-modal {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-primary);
  border-radius: 20px 20px 0 0;
  z-index: 801;
  width: 100%;
  max-width: 100vw;
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,1,.23,1);
}
.book-modal.open { transform: translateY(0); }

/* 弹窗打开时同时隐藏底部导航栏和产品详情底部操作栏 */
body.book-modal-open .tab-bar         { display: none !important; }
body.book-modal-open .detail-action-bar { display: none !important; }
body.book-modal-open {
  overflow-x: hidden;
}

.book-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; position: sticky; top: 0;
  background: var(--bg-primary); z-index: 1;
  border-bottom: 1px solid var(--color-separator);
}
.book-modal-header h3 { font-size: 17px; font-weight: 700; margin: 0; }
.book-modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-secondary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.book-modal-close svg { width: 16px; height: 16px; }

.book-modal-body { padding: 16px 20px; }
.book-modal-footer {
  padding: 12px 20px; display: flex; gap: 10px;
  border-top: 1px solid var(--color-separator);
  position: sticky; bottom: 0; background: var(--bg-primary);
  /* 兼容 iPhone 底部安全区 */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.bm-section { margin-bottom: 18px; }
.bm-label { font-size: 13px; font-weight: 600; color: var(--color-label-2); margin-bottom: 8px; }
.req { color: var(--color-red); }

/* 价格类型标签 */
.bm-price-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.bm-price-tab { cursor: pointer; }
.bm-price-tab input { display: none; }
.bm-price-tab-inner {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 14px; border-radius: 12px;
  border: 2px solid var(--color-separator);
  transition: border-color .15s, background .15s;
  gap: 2px;
  min-width: 86px;
}
.bm-price-tab input:checked + .bm-price-tab-inner {
  border-color: var(--color-blue);
  background: rgba(0,122,255,.06);
}
.bm-price-name { font-size: 12px; color: var(--color-label-3); }
.bm-price-val  { font-size: 16px; font-weight: 700; color: var(--color-label-1); }
.bm-price-tip  { font-size: 11px; color: var(--color-label-4); }

/* 日期行 */
.bm-date-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: 8px; }
.bm-nights-badge {
  padding: 6px 10px; background: var(--bg-secondary);
  border-radius: 8px; font-size: 12px; font-weight: 600;
  color: var(--color-blue); text-align: center; white-space: nowrap;
}

.bm-form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.bm-form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bm-input {
  padding: 10px 12px; border: 1.5px solid var(--color-separator);
  border-radius: 10px; font-size: 14px; background: var(--bg-primary);
  color: var(--color-label-1); outline: none;
  transition: border-color .15s;
  width: 100%;
  max-width: 100%;
}
.bm-input:focus { border-color: var(--color-blue); }
.bm-textarea {
  padding: 10px 12px; border: 1.5px solid var(--color-separator);
  border-radius: 10px; font-size: 14px; background: var(--bg-primary);
  color: var(--color-label-1); outline: none; resize: none;
  font-family: inherit; transition: border-color .15s;
  width: 100%;
  max-width: 100%;
}
.bm-textarea:focus { border-color: var(--color-blue); }

.bm-counter {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--color-separator); border-radius: 10px;
  overflow: hidden; width: fit-content;
}
.bm-counter button {
  width: 36px; height: 36px; border: none; background: var(--bg-secondary);
  font-size: 18px; cursor: pointer; color: var(--color-label-1);
}
.bm-counter span {
  padding: 0 14px; font-size: 15px; font-weight: 600;
  min-width: 40px; text-align: center;
}

.bm-total-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid var(--color-separator);
  font-size: 14px; color: var(--color-label-2);
}
.bm-total-price { font-size: 22px; font-weight: 700; color: var(--color-label-1); }

.bm-error {
  background: rgba(255,59,48,.08); color: var(--color-red);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-top: 10px;
}
.bm-login-hint {
  display: flex; align-items: center; gap: 8px;
  padding: 14px; background: rgba(0,122,255,.06);
  border-radius: 12px; font-size: 14px; margin-top: 12px;
}
.bm-login-hint a { color: var(--color-blue); font-weight: 600; }
.bm-login-hint svg { width: 18px; height: 18px; color: var(--color-blue); }

.bm-cancel-btn {
  flex: 1; padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--color-separator);
  background: transparent; cursor: pointer; font-size: 15px;
}
.bm-submit-btn {
  flex: 2; padding: 12px; border-radius: 12px;
  background: var(--color-blue); color: #fff; border: none;
  cursor: pointer; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .15s;
}
.bm-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
.bm-submit-btn svg { width: 16px; height: 16px; }

/* 立即预订按钮（底部操作栏） */
.btn-book-now {
  flex: 2; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 0 16px; border-radius: 12px;
  background: var(--color-blue); color: #fff; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.btn-book-now:active { opacity: .8; }
.btn-book-now svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════
   24. 订单卡片
══════════════════════════════════════════════════════ */
.order-status-tabs {
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 2px;
}
.order-status-tabs::-webkit-scrollbar { display: none; }
.order-tab {
  padding: 6px 14px; border-radius: 20px; font-size: 13px;
  white-space: nowrap; text-decoration: none;
  color: var(--color-label-3); background: var(--bg-secondary);
  transition: background .15s, color .15s;
}
.order-tab.active {
  background: var(--color-blue); color: #fff; font-weight: 600;
}

.order-card {
  background: var(--bg-primary); border-radius: 14px;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,.04);
  overflow: hidden; margin-bottom: 12px;
}
.order-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 8px; border-bottom: 1px solid var(--color-separator);
}
.order-no { font-size: 12px; font-family: monospace; color: var(--color-label-3); }
.order-status-badge {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px;
}
.badge-warning  { background: rgba(255,149,0,.12); color: #FF9500; }
.badge-info     { background: rgba(0,122,255,.1);  color: #007AFF; }
.badge-success  { background: rgba(52,199,89,.1);  color: #34C759; }
.badge-secondary { background: var(--bg-secondary); color: var(--color-label-4); }
.badge-danger   { background: rgba(255,59,48,.1);  color: #FF3B30; }

.order-card-body { padding: 12px 14px; }
.order-product-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.order-meta-row {
  display: flex; gap: 14px; font-size: 12px; color: var(--color-label-3);
  align-items: center; margin-bottom: 5px; flex-wrap: wrap;
}
.order-meta-row svg { width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }
.order-remark {
  font-size: 12px; color: var(--color-label-3);
  background: var(--bg-secondary); border-radius: 8px; padding: 6px 10px; margin-top: 6px;
}
.order-remark-danger { background: rgba(255,59,48,.06); color: var(--color-red); }

.order-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-top: 1px solid var(--color-separator);
}
.order-total { font-size: 14px; color: var(--color-label-2); }
.order-total strong { color: var(--color-label-1); font-size: 16px; }

.order-actions { display: flex; gap: 8px; }
.btn-order {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 8px; font-size: 13px;
  font-weight: 600; border: none; cursor: pointer; transition: opacity .15s;
}
.btn-order:active { opacity: .7; }
.btn-order.confirm  { background: var(--color-blue);   color: #fff; }
.btn-order.reject   { background: rgba(255,59,48,.1);  color: #FF3B30; }
.btn-order.complete { background: rgba(52,199,89,.12); color: #34C759; }
.btn-order svg { width: 14px; height: 14px; }

.order-time { font-size: 11px; color: var(--color-label-4); padding: 4px 14px 10px; }
.order-product-img { width: 80px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   25. 分销中心页
══════════════════════════════════════════════════════ */
.dist-banner {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  color: #fff; padding: 24px 20px 20px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.dist-banner-inner { flex: 1; min-width: 0; }

.dist-invite-card {
  background: rgba(255,255,255,.15); border-radius: 14px;
  padding: 12px 14px; text-align: center; min-width: 120px;
  backdrop-filter: blur(8px);
}
.dist-invite-label { font-size: 11px; opacity: .8; margin-bottom: 4px; }
.dist-invite-code  { font-size: 22px; font-weight: 800; letter-spacing: 3px; margin-bottom: 8px; }
.dist-copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.9); color: #007AFF;
  border: none; border-radius: 8px; padding: 5px 12px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.dist-copy-btn svg { width: 13px; height: 13px; }

.dist-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--color-separator); margin: 0;
}
.dist-stat-card {
  background: var(--bg-primary); padding: 16px 12px; text-align: center;
}
.dist-stat-val   { font-size: 20px; font-weight: 700; color: var(--color-label-1); }
.dist-stat-label { font-size: 12px; color: var(--color-label-4); margin-top: 2px; }

.dist-withdraw-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 12px; border-radius: 12px;
  background: linear-gradient(90deg, #34C759, #30D158);
  color: #fff; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: opacity .15s;
}
.dist-withdraw-btn:active { opacity: .8; }
.dist-withdraw-btn svg { width: 17px; height: 17px; }

.dist-rule-card {
  margin: 0 16px 12px; background: rgba(0,122,255,.05);
  border: 1px solid rgba(0,122,255,.12);
  border-radius: 14px; padding: 14px 16px;
}
.dist-rule-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--color-blue);
}
.dist-rule-title svg { width: 15px; height: 15px; }
.dist-rule-item { font-size: 13px; color: var(--color-label-2); margin-bottom: 6px; }
.dist-rule-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 6px;
}
.dist-rule-dot.level1 { background: #007AFF; }
.dist-rule-dot.level2 { background: #34C759; }

.dist-tabs {
  display: flex; gap: 4px; padding: 10px 16px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--color-separator);
}
.dist-tab {
  padding: 7px 16px; border-radius: 20px; font-size: 13px;
  white-space: nowrap; text-decoration: none;
  color: var(--color-label-3); background: var(--bg-secondary);
}
.dist-tab.active { background: var(--color-blue); color: #fff; font-weight: 600; }

.dist-section-title { font-size: 15px; font-weight: 600; margin: 16px 0 10px; }

.dist-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--color-separator);
}
.dist-list-left { flex: 1; min-width: 0; }
.dist-list-right { text-align: right; flex-shrink: 0; margin-left: 12px; }
.dist-list-title { font-size: 14px; font-weight: 500; color: var(--color-label-1); margin-bottom: 3px; }
.dist-list-sub   { font-size: 12px; color: var(--color-label-4); }
.dist-list-amount { font-size: 16px; font-weight: 700; color: #34C759; }
.dist-list-status { font-size: 12px; margin-top: 3px; }
.dist-list-status.available { color: #34C759; }
.dist-list-status.withdrawn { color: var(--color-label-4); }
.dist-list-status.pending   { color: #FF9500; }
.dist-list-status.paid      { color: #34C759; }
.dist-list-status.rejected  { color: #FF3B30; }

.dist-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; overflow: hidden; flex-shrink: 0;
}
.dist-avatar img { width: 100%; height: 100%; object-fit: cover; }

.dist-share-card {
  background: var(--bg-primary); border-radius: 14px;
  box-shadow: var(--shadow-sm); padding: 18px; margin-top: 16px;
}
.dist-share-url {
  background: var(--bg-secondary); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; color: var(--color-label-3); word-break: break-all;
}
.dist-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 10px;
  background: var(--color-blue); color: #fff; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.dist-share-btn svg { width: 14px; height: 14px; }

.dist-empty { text-align: center; padding: 50px 20px; color: #aaa; }
.dist-empty svg { width: 44px; height: 44px; margin-bottom: 10px; }
.dist-empty p { font-size: 14px; margin: 0; }

/* 提现表单 */
.dist-wd-form {
  background: var(--bg-primary); border-radius: 14px;
  box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 16px;
}
.dist-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.dist-form-group label { font-size: 13px; font-weight: 500; color: var(--color-label-2); }
.dist-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dist-input {
  padding: 10px 12px; border: 1.5px solid var(--color-separator);
  border-radius: 10px; font-size: 14px; outline: none;
  background: var(--bg-primary); color: var(--color-label-1);
  transition: border-color .15s;
}
.dist-input:focus { border-color: var(--color-blue); }
.dist-error {
  background: rgba(255,59,48,.08); color: #FF3B30;
  border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px;
}
.dist-submit-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  background: var(--color-blue); color: #fff; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.dist-submit-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════
   26. Tab Bar 增强
══════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════
   iOS 26 浮动 Liquid Glass Tab Bar（胶囊样式）
══════════════════════════════════════════════════════ */
.tab-bar {
  position: fixed;
  /* 浮动在底部，距离底部为安全区域高度 + 12px 间距 */
  bottom: calc(var(--safe-area-bottom) + 10px);
  left: 50%;
  transform: translateX(-50%);
  /* 胶囊宽度：屏幕宽度减去两侧边距 */
  width: calc(100% - 32px);
  max-width: 420px;
  height: var(--tab-bar-pill-h);
  /* iOS 26 Liquid Glass 背景 */
  background: var(--glass-ultra);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  /* 胶囊外形 */
  border-radius: var(--radius-3xl);
  /* 仅保留上下描边，取消左右边框 */
  border: none;
  border-top: 1px solid var(--glass-border-dark);
  border-bottom: 1px solid var(--glass-border-dark);
  box-shadow:
    var(--shadow-xl),
    0 0 0 0.5px rgba(255,255,255,0.5) inset,
    0 1px 0 rgba(255,255,255,0.7) inset;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  z-index: 150;
  /* 微信H5：确保点击事件正常 */
  touch-action: manipulation;
}

.tab-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--color-label-4);
  padding: 8px 2px;
  position: relative;
  transition: color 0.2s ease;
  touch-action: manipulation;
  /* 微信H5：消除长按菜单 */
  -webkit-touch-callout: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.tab-item:hover { color: var(--color-label-2); }

/* iOS 26 激活态：蓝色文字 + 小药丸背景 */
.tab-item.active { color: var(--color-blue); }

/* 激活指示：图标+文字背后的小胶囊气泡 */
.tab-item.active::before {
  content: '';
  position: absolute;
  inset: 4px -2px;
  background: rgba(10,132,255,0.10);
  border-radius: var(--radius-xl);
  z-index: -1;
  animation: tabPillIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes tabPillIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tab-icon svg { width: 22px; height: 22px; transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1); }
.tab-item.active .tab-icon svg {
  stroke-width: 2.5;
  transform: scale(1.1);
}

.tab-label {
  font-size: clamp(8px, 2.4vw, 10px);
  font-weight: 600;
  letter-spacing: -.1px;
  transition: color 0.2s;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-item-ai .tab-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(10,132,255,.16);
  border: 1px solid rgba(10,132,255,.24);
  box-shadow: 0 4px 10px rgba(10,132,255,.18);
}
.tab-item-ai .tab-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-blue);
}
.tab-item-ai:active .tab-icon { transform: scale(.95); }

/* Tab Bar 底部占位（避免内容被遮挡） */
.tab-spacer {
  height: calc(var(--tab-bar-pill-h) + var(--safe-area-bottom) + 22px);
}

/* ══════════════════════════════════════════════════════
   27. Toast 通知
══════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  /* 在浮动Tab Bar上方显示 */
  bottom: calc(var(--tab-bar-pill-h) + var(--safe-area-bottom) + 26px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 360px;
}
.toast {
  background: rgba(30,30,35,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  animation: toastSlideUp .25s cubic-bezier(.34,1.56,.64,1);
  width: 100%;
  pointer-events: auto;
}
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast.success { background: rgba(22,163,74,.9); }
.toast.error   { background: rgba(220,38,38,.9); }
.toast.info    { background: rgba(37,99,235,.9); }
.toast-exit { animation: toastSlideDown .25s ease forwards; }
@keyframes toastSlideUp   { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastSlideDown { to   { opacity: 0; transform: translateY(12px) scale(.9); } }

/* ══════════════════════════════════════════════════════
   AI 聊天窗口
══════════════════════════════════════════════════════ */
.ai-chat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.42);
  z-index: 960;
}
.ai-chat-overlay.open { display: block; }
.ai-chat-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(78vh, 640px);
  background: var(--bg-primary);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--glass-border-dark);
  transform: translateY(100%);
  transition: transform .25s ease;
  z-index: 961;
  display: flex;
  flex-direction: column;
}
.ai-chat-sheet.open { transform: translateY(0); }
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-separator);
}
.ai-chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-label-1);
}
.ai-chat-header p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-label-4);
}
.ai-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-chat-clear,
.ai-chat-close {
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--color-label-2);
}
.ai-chat-clear:active,
.ai-chat-close:active { transform: scale(.96); }
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-msg { display: flex; }
.ai-msg-user { justify-content: flex-end; }
.ai-msg-bot  { justify-content: flex-start; }
.ai-msg-bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.ai-msg-user .ai-msg-bubble {
  background: var(--color-blue);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.ai-msg-bot .ai-msg-bubble {
  background: var(--bg-secondary);
  color: var(--color-label-1);
  border-bottom-left-radius: 6px;
}
.ai-chat-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.ai-chat-product {
  text-decoration: none;
  color: inherit;
  background: var(--bg-secondary);
  border: 1px solid var(--color-separator);
  border-radius: 12px;
  padding: 10px 12px;
}
.ai-chat-product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-label-1);
  margin-bottom: 4px;
}
.ai-chat-product-meta {
  font-size: 12px;
  color: var(--color-label-4);
}
.ai-chat-product-price {
  margin-top: 6px;
  font-size: 14px;
  color: #FF3B30;
  font-weight: 700;
}
.ai-chat-input-wrap {
  border-top: 1px solid var(--color-separator);
  padding: 10px 12px calc(10px + var(--safe-area-bottom));
  background: var(--bg-primary);
}
.ai-chat-status {
  min-height: 18px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--color-label-4);
  opacity: 0;
  transition: opacity .15s ease;
}
.ai-chat-status.show { opacity: 1; }
.ai-chat-input {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  border: 1px solid var(--color-separator);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: var(--bg-secondary);
  color: var(--color-label-1);
}
.ai-chat-input:focus { border-color: var(--color-blue); }
.ai-chat-input:disabled {
  opacity: .75;
  cursor: not-allowed;
}
.ai-chat-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.ai-btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ai-btn-ghost {
  background: var(--bg-secondary);
  color: var(--color-label-2);
}
.ai-btn-primary {
  background: var(--color-blue);
  color: #fff;
  margin-left: auto;
}
.ai-btn.is-recording {
  background: rgba(255,59,48,.12);
  color: #FF3B30;
}
.ai-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
body.ai-chat-open { overflow: hidden; }

/* ══════════════════════════════════════════════════════
   28. 个人中心页面（pf-* 前缀组件）
══════════════════════════════════════════════════════ */

/* 个人中心统计卡片 */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-separator);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 var(--space-md) var(--space-md);
  box-shadow: var(--shadow-sm);
}
.profile-stat {
  background: var(--bg-primary);
  padding: var(--space-md);
  text-align: center;
}
.profile-stat-num { font-size: 20px; font-weight: 700; color: var(--color-label-1); }
.profile-stat-label { font-size: 11px; color: var(--color-label-4); margin-top: 3px; }

/* 个人中心菜单列表 */
.profile-menu {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  margin: 0 var(--space-md) var(--space-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 15px var(--space-md);
  border-bottom: 1px solid var(--color-separator);
  text-decoration: none;
  color: var(--color-label-1);
  cursor: pointer;
  transition: var(--transition);
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: var(--bg-secondary); }
.profile-menu-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-menu-icon svg { width: 18px; height: 18px; }
.profile-menu-text { flex: 1; font-size: 15px; font-weight: 500; }
.profile-menu-arrow { color: var(--color-label-4); }
.profile-menu-arrow svg { width: 16px; height: 16px; }
.profile-menu-badge {
  background: var(--color-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* ══════════════════════════════════════════════════════
   29. 登录/注册页面改进
══════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(135deg, #EFF6FF 0%, var(--bg-secondary) 60%, #F0FDF4 100%);
}
.auth-card {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 48px rgba(0,0,0,.1);
}
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-blue), #5B9DFF);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(0,122,255,.3);
}
.auth-title { font-size: 22px; font-weight: 700; color: var(--color-label-1); margin: 0 0 4px; }
.auth-subtitle { font-size: 13px; color: var(--color-label-4); margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-submit-btn {
  height: 48px;
  border-radius: 12px;
  background: var(--color-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px;
}
.auth-submit-btn:hover { background: var(--color-blue-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,122,255,.3); }
.auth-submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.auth-error {
  color: var(--color-red);
  font-size: 13px;
  text-align: center;
  padding: 10px 12px;
  background: rgba(255,59,48,.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,59,48,.1);
  display: none;
}
.auth-error.show { display: block; }
.auth-link { text-align: center; font-size: 14px; color: var(--color-label-4); }
.auth-link a { color: var(--color-blue); font-weight: 600; }

/* ══════════════════════════════════════════════════════
   30. 产品卡片改进
══════════════════════════════════════════════════════ */
.product-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card:active { transform: translateY(-1px); }

.card-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.card-image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.product-card:hover .card-image { transform: scale(1.04); }

.card-favorite-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--color-label-4);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card-favorite-btn:hover { transform: scale(1.1); }
.card-favorite-btn.favorited { color: var(--color-red); }
.card-favorite-btn svg { width: 16px; height: 16px; }

.card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-label-1);
  margin-bottom: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-location {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--color-label-4);
  margin-bottom: 8px;
}
.card-location svg { width: 11px; height: 11px; color: var(--color-blue); flex-shrink: 0; }
.card-specs {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--color-label-3);
  margin-bottom: 8px;
}
.card-spec { display: flex; align-items: center; gap: 3px; }
.card-spec svg { width: 11px; height: 11px; }

.card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  flex: 1;
}
.card-amenity-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--color-label-3);
  background: var(--bg-secondary);
  padding: 2px 7px;
  border-radius: 20px;
}
.card-amenity-tag svg { width: 10px; height: 10px; }

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--color-separator);
  margin-top: auto;
}
.card-price { display: flex; align-items: baseline; gap: 3px; }
.price-unit { font-size: 12px; color: var(--color-label-4); }
.price-current { font-size: 18px; font-weight: 700; color: var(--color-label-1); }
.price-original { font-size: 12px; color: var(--color-label-4); text-decoration: line-through; }
.price-night { font-size: 11px; color: var(--color-label-4); }

.card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--color-label-3);
}
.card-rating svg { width: 12px; height: 12px; color: #F59E0B; fill: #F59E0B; }

/* ══════════════════════════════════════════════════════
   我的订单页
══════════════════════════════════════════════════════ */
.order-filter-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 12px 8px;
  padding: 4px;
  border: 1px solid var(--color-separator);
  border-radius: 14px;
  background: var(--bg-secondary);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.order-filter-tabs::-webkit-scrollbar { display: none; }

.order-filter-tab {
  flex-shrink: 0;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-label-3);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.order-filter-tab.active {
  color: var(--color-blue);
  border-color: rgba(0,122,255,.18);
  background: var(--bg-primary);
  font-weight: 600;
}

.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 32px 48px;
}
.orders-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.orders-empty-icon svg { width: 36px; height: 36px; color: var(--color-label-4); }
.orders-empty h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--color-label-1); }
.orders-empty p  { font-size: 14px; color: var(--color-label-4); margin: 0; }

/* 用户订单卡片 */
.user-order-card {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.user-order-card:active { transform: scale(.99); }
.user-order-card:hover  { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.uoc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--color-separator);
}
.uoc-order-no {
  font-size: 12px;
  color: var(--color-label-4);
  font-family: monospace;
}
.uoc-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
}
.badge-0, .badge-pending  { background: rgba(255,149,0,.12);  color: #FF9500; }
.badge-1, .badge-confirmed { background: rgba(0,122,255,.12); color: var(--color-blue); }
.badge-2, .badge-completed { background: rgba(52,199,89,.12); color: var(--color-green); }
.badge-3, .badge-cancelled { background: rgba(100,116,139,.12); color: var(--color-label-3); }
.badge-4, .badge-rejected  { background: rgba(255,59,48,.12); color: var(--color-red); }

.uoc-body {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
}
.uoc-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.uoc-info { flex: 1; min-width: 0; }
.uoc-product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-label-1);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uoc-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-label-3);
  margin-bottom: 4px;
}
.uoc-meta svg { width: 12px; height: 12px; flex-shrink: 0; }

.uoc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--color-separator);
}
.uoc-price {
  font-size: 14px;
  color: var(--color-label-2);
}
.uoc-price strong { color: var(--color-red); font-size: 16px; }
.uoc-original {
  font-size: 12px;
  color: var(--color-label-4);
  text-decoration: line-through;
  margin-left: 4px;
}
.uoc-actions { display: flex; gap: 8px; }

.uoc-time {
  padding: 6px 14px 10px;
  font-size: 11px;
  color: var(--color-label-4);
}

/* 分页 */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 8px;
  flex-wrap: wrap;
}
.pagination-btn {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: var(--bg-secondary);
  color: var(--color-label-2);
  transition: background .15s, color .15s;
}
.pagination-btn.active,
.pagination-btn:hover {
  background: var(--color-blue);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   移动端产品卡片 - 横向左图右文（必须放在最后以覆盖所有上方规则）
══════════════════════════════════════════════════════ */
@media (max-width: 639px) {
  /* 产品列表单列 */
  .product-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 0 16px !important;
    grid-template-columns: unset !important;
  }
  #cardsContainer {
    display: contents;
  }
  #skeletonGrid, .skeleton-grid {
    grid-column: unset;
    width: 100%;
  }

  /* iOS 26 卡片横向：左图右文 */
  .product-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    min-height: 118px;
    border-radius: var(--radius-xl);
  }
  .product-card:hover { transform: none; }
  .product-card:active {
    transform: scale(.975);
    transition-duration: 0.1s;
  }

  /* 图片区：左侧固定宽 */
  .card-image-wrap {
    width: 126px !important;
    min-width: 126px !important;
    flex-shrink: 0 !important;
    aspect-ratio: unset !important;
    border-radius: 0 !important;
    border-top-left-radius: var(--radius-xl) !important;
    border-bottom-left-radius: var(--radius-xl) !important;
  }

  /* 移动端折扣角标微调字号 */
  .badge-discount { font-size: 10px; padding: 4px 8px 5px 6px; }
  .badge-featured  { font-size: 10px; padding: 4px 6px 5px 8px; }

  /* 收藏按钮：移动端横卡右下角，避免与精选/折扣角标重叠 */
  .btn-favorite {
    bottom: 8px;
    right: 8px;
    top: auto;
    width: 28px;
    height: 28px;
  }
  .btn-favorite svg { width: 14px; height: 14px; }

  /* 内容区撑满右侧 */
  .card-body {
    padding: 10px 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
  }

  /* 标题限制行数 */
  .card-title {
    font-size: 13px !important;
    margin-bottom: 4px !important;
    -webkit-line-clamp: 2;
    line-height: 1.35;
  }

  /* 地点 */
  .card-location {
    font-size: 11px;
    margin-bottom: 4px;
    min-width: 0;
  }
  .card-location > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 规格 */
  .card-specs, .card-spec { margin-bottom: 4px; font-size: 11px; }
  .card-specs { flex-wrap: wrap; gap: 6px 10px; }
  .card-spec, .spec-item { white-space: nowrap; }

  /* 设施标签：允许两行，避免小屏拥挤成一坨 */
  .card-amenities {
    flex-wrap: wrap !important;
    gap: 4px;
    max-height: 42px;
    overflow: hidden;
    margin-bottom: 6px !important;
    flex: 0 0 auto;
  }
  .amenity-tag {
    font-size: 10px;
    padding: 2px 6px;
    max-width: 86px;
  }
  .amenity-more { font-size: 10px; padding: 2px 6px; }

  /* 价格字号 */
  .price-current { font-size: 15px !important; }
  .card-footer { padding-top: 6px; }

  /* 骨架屏也横向（注意：不能用 !important 在 display 上，否则 JS 无法隐藏） */
  .skeleton-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .skeleton-card {
    display: flex;
    flex-direction: row;
    min-height: 118px;
    border-radius: var(--radius-xl);
  }
  .skeleton-image {
    width: 126px;
    min-width: 126px;
    flex-shrink: 0;
    aspect-ratio: unset;
    border-radius: 0;
    border-top-left-radius: var(--radius-xl);
    border-bottom-left-radius: var(--radius-xl);
  }
  .skeleton-body {
    padding: 10px 12px;
    flex: 1;
  }
}

/* ══════════════════════════════════════════════════════
   个人中心页面 (profile.php)
══════════════════════════════════════════════════════ */
.pf-main {
  background: var(--bg-secondary);
  min-height: 100vh;
  padding: 0;
}

/* ── 顶部英雄卡 ── */
.pf-hero {
  position: relative;
  padding: 56px 20px 28px;
  overflow: hidden;
}
.pf-hero-bg {
  position: absolute;
  inset: 0;
  /* iOS 26 风格：更鲜亮的渐变 + 顶部安全区域适配 */
  background: linear-gradient(145deg, #0A84FF 0%, #5E5CE6 50%, #BF5AF2 100%);
  z-index: 0;
}
.pf-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0; right: 0;
  height: 60px;
  background: var(--bg-secondary);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.pf-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.pf-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.pf-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.6);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.2);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.pf-avatar-text { background: rgba(255,255,255,.2); }
.pf-avatar-edit {
  position: absolute;
  bottom: 0; right: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.pf-avatar-edit svg { width: 12px; height: 12px; color: #333; }

.pf-hero-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 4px;
}
.pf-nickname {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-username {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin: 0 0 8px;
}
.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.pf-badge svg { width: 11px; height: 11px; }

.pf-settings-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s;
}
.pf-settings-btn:active { background: rgba(255,255,255,.35); }
.pf-settings-btn svg { width: 18px; height: 18px; }

/* ── 通用 section ── */
.pf-section {
  padding: 12px 16px;
}
.pf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pf-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-label-1);
}
.pf-section-link {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--color-blue);
  text-decoration: none;
}
.pf-section-link svg { width: 14px; height: 14px; }

/* ── 订单快捷图标 ── */
.pf-order-shortcuts {
  display: flex;
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 16px 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.pf-order-shortcut {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-label-1);
  font-size: 12px;
  font-weight: 500;
}
.pf-order-icon {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.pf-order-shortcut:active .pf-order-icon { transform: scale(.92); }
.pf-order-icon svg { width: 22px; height: 22px; }
.pf-order-icon-orange { background: rgba(255,149,0,.12); color: #FF9500; }
.pf-order-icon-blue   { background: rgba(0,122,255,.1);  color: var(--color-blue); }
.pf-order-icon-green  { background: rgba(52,199,89,.1);  color: var(--color-green); }
.pf-order-icon-gray   { background: rgba(100,116,139,.1); color: var(--color-label-3); }

.pf-order-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--color-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-secondary);
}

/* ── 资产工具栏 ── */
.pf-tools {
  display: flex;
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 18px 0;
  margin: 0 16px 4px;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.pf-tool-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--color-label-1);
}
.pf-tool-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
  transition: transform .15s;
}
.pf-tool-item:active .pf-tool-icon { transform: scale(.9); }
.pf-tool-icon svg { width: 20px; height: 20px; }
.pf-tool-icon-red    { background: rgba(255,45,85,.1);  color: #FF2D55; }
.pf-tool-icon-orange { background: rgba(255,149,0,.1);  color: #FF9500; }
.pf-tool-icon-green  { background: rgba(52,199,89,.1);  color: #34C759; }
.pf-tool-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-label-1);
}
.pf-tool-label {
  font-size: 11px;
  color: var(--color-label-3);
}
.pf-tool-divider {
  width: 1px;
  background: var(--color-separator);
  margin: 8px 0;
  align-self: stretch;
}

/* ── 菜单卡片 ── */
.pf-menu-card {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.pf-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-label-1);
  transition: background .1s;
}
.pf-menu-item:active { background: var(--bg-secondary); }
.pf-menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pf-menu-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pf-menu-icon svg { width: 18px; height: 18px; }
.pf-menu-icon-blue   { background: rgba(0,122,255,.1);    color: var(--color-blue); }
.pf-menu-icon-purple { background: rgba(88,86,214,.1);    color: #5856D6; }
.pf-menu-icon-orange { background: rgba(255,149,0,.1);    color: #FF9500; }
.pf-menu-label {
  font-size: 15px;
  font-weight: 500;
}
.pf-menu-arrow {
  width: 16px; height: 16px;
  color: var(--color-label-4);
}
.pf-menu-sep {
  height: 1px;
  background: var(--color-separator);
  margin: 0 16px;
}

/* ── 退出按钮 ── */
.pf-logout-btn {
  width: 100%;
  padding: 14px;
  background: var(--bg-primary);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  transition: background .1s;
}
.pf-logout-btn:active { background: var(--bg-secondary); }
.pf-logout-btn svg { width: 18px; height: 18px; }

/* 退出按钮区域底部留白 */
.pf-section-logout { padding-bottom: 8px; }

/* 已入驻商家标签 */
.pf-merchant-badge {
  font-size: 11px;
  color: var(--color-green);
  background: rgba(52,199,89,.1);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/* 订单列表页内容区 */
.main-content-orders {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 2px;
  padding-bottom: 110px;
}
.orders-list {
  padding: 12px 14px 0;
}

/* 收藏页内容区 */
.main-content-favorites {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 8px;
}
.main-content-favorites .fav-summary {
  margin: 10px 14px 8px;
  padding: 8px 12px;
  border: 1px solid var(--color-separator);
  border-radius: 12px;
  background: var(--bg-secondary);
}
.main-content-favorites #favGrid {
  padding: 8px 14px 6px;
  gap: 14px;
}
.main-content-favorites .pagination {
  padding: 10px 14px 0;
}

/* ══════════════════════════════════════════════════════
   iOS 26 Liquid Glass 专项增强（追加覆盖）
   微信H5 / 刘海屏 / 暗黑模式 全面适配
══════════════════════════════════════════════════════ */

/* ── 磨砂玻璃图标按钮（iOS 26 强化版） ── */
.btn-glass {
  background: var(--glass-regular);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.12), 0 0 0 0.5px rgba(255,255,255,0.4) inset;
  touch-action: manipulation;
}
.btn-glass:active { transform: scale(0.92); }

/* ── iOS 26 用户订单卡片 ── */
.user-order-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 0.5px solid var(--glass-border-dark);
  margin-bottom: 14px;
}

.uoc-body {
  gap: 10px;
  padding: 11px 15px;
}

.uoc-img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
}

.uoc-product-name {
  font-size: 15px;
}

.uoc-meta {
  font-size: 12px;
  margin-bottom: 3px;
}

.uoc-footer {
  padding: 9px 15px;
}

.uoc-time {
  padding: 6px 15px 9px;
}

@media (max-width: 430px) {
  .sort-bar {
    gap: 8px;
    align-items: flex-start;
  }
  .result-count {
    white-space: nowrap;
    font-size: 12px;
    padding-top: 2px;
  }
  .sort-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  .book-modal-body {
    padding: 14px 14px;
  }
  .book-modal-footer {
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .bm-date-row {
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: end;
    column-gap: 6px;
    row-gap: 0;
  }
  .bm-date-row > .bm-form-group:first-of-type {
    grid-column: 1;
    justify-self: start;
    width: 100%;
    max-width: 186px;
  }
  .bm-date-row > .bm-form-group:last-of-type {
    grid-column: 3;
    justify-self: end;
    width: 100%;
    max-width: 186px;
  }
  .bm-nights-badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin-top: 0;
  }
  .bm-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bm-contact-row {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 10px;
  }
  .bm-date-row .bm-input,
  .bm-contact-row .bm-input {
    padding: 9px 10px;
    font-size: 13px;
  }
}

/* 首页弹窗公告 */
.home-popup-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 920;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.home-popup-mask.open { display: block; }

.home-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(92vw, 460px);
  transform: translate(-50%, -46%) scale(.96);
  opacity: 0;
  pointer-events: none;
  z-index: 921;
  border-radius: var(--radius-2xl);
  background: var(--glass-ultra);
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--shadow-xl);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  transition: transform .22s ease, opacity .22s ease;
}
.home-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.home-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
}
.home-popup-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-label-1);
}
.home-popup-close {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--color-label-3);
}
.home-popup-close svg { width: 16px; height: 16px; }
.home-popup-body {
  padding: 0 18px 10px;
  max-height: min(52vh, 360px);
  overflow: auto;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-label-2);
  white-space: normal;
}
.home-popup-footer {
  padding: 10px 18px 18px;
}

@media (max-width: 639px) {
  .home-popup {
    width: calc(100vw - 24px);
  }

  /* 收藏页小屏左右留白，避免卡片贴边 */
  .main-content-favorites {
    padding-inline: 6px;
  }
  .main-content-favorites .fav-summary {
    margin: 10px 10px 8px;
  }
  .main-content-favorites #favGrid {
    padding: 6px 10px 10px !important;
    gap: 12px !important;
  }
  .main-content-favorites .pagination {
    padding: 8px 10px 0;
  }
}

/* ── 分页按钮 iOS 26 圆角 ── */
.pagination-btn {
  border-radius: var(--radius-md);
}

/* ── 筛选 Chip iOS 26 玻璃感 ── */
.filter-chip {
  border-radius: var(--radius-full);
  border-width: 1px;
  background: var(--glass-regular);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  touch-action: manipulation;
}
.filter-chip.active {
  box-shadow: 0 2px 14px rgba(10,132,255,.28);
}

/* ── 微信H5 安全区域：页面最底部留白 ── */
.tab-spacer {
  height: calc(var(--tab-bar-pill-h) + var(--safe-area-bottom) + 22px);
}

/* ── 顶部状态栏：black-translucent 时的安全区域背景 ── */
.sticky-header {
  padding-top: max(var(--safe-area-top), 0px);
}

/* ── 微信H5：禁用文字选中（避免长按出现复制菜单影响交互） ── */
.tab-bar,
.filter-chip,
.product-card,
.btn,
.tab-item {
  -webkit-user-select: none;
  user-select: none;
}

/* ── iOS 26 骨架屏（更圆润、脉冲动画增强） ── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    rgba(255,255,255,0.6) 50%,
    var(--bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}
@keyframes skeletonPulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── iOS 26 空状态图标容器 ── */
.empty-state {
  padding: 64px 32px 48px;
  text-align: center;
}
.empty-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-2xl);
  background: var(--glass-regular);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-md);
}
.empty-icon svg { width: 32px; height: 32px; color: var(--color-label-4); }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--color-label-1); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; color: var(--color-label-4); }

/* ── iOS 26 加载更多按钮 ── */
.btn-load-more {
  background: var(--glass-regular);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border-dark);
  box-shadow: var(--shadow-sm);
}
.btn-load-more:hover {
  background: var(--glass-thick);
  box-shadow: var(--shadow-md);
}

/* ── 微信H5滚动容器惯性滚动 ── */
.filter-panel,
.order-filter-tabs,
.filter-bar,
.active-filters,
.card-amenities {
  -webkit-overflow-scrolling: touch;
}

/* ── 个人中心卡片 iOS 26 圆角 ── */
.pf-order-shortcuts {
  border-radius: var(--radius-xl);
  border: 0.5px solid var(--glass-border-dark);
}
.pf-tools {
  border-radius: var(--radius-xl);
  border: 0.5px solid var(--glass-border-dark);
}

/* ── 快速选择按钮 touch 优化 ── */
.quick-btn {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.quick-btn:active { transform: scale(0.95); }

/* ── 位置按钮 touch 优化 ── */
.location-btn {
  touch-action: manipulation;
  border-radius: var(--radius-md);
}
.location-btn:active { transform: scale(0.96); }

/* ══════════════════════════════════════════════════════
   iOS 26 暗黑模式下的专项颜色覆盖
══════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  body { background: var(--bg-secondary); }

  .product-card {
    background: var(--bg-elevated);
    border-color: rgba(255,255,255,0.06);
  }
  .filter-panel { background: var(--bg-elevated); }
  .panel-header { background: var(--bg-elevated); }
  .panel-footer { background: var(--bg-elevated); }
  .user-order-card { background: var(--bg-elevated); }
  .pf-order-shortcuts { background: var(--bg-elevated); }
  .pf-tools { background: var(--bg-elevated); }

  .search-input {
    background: var(--glass-regular);
    border-color: rgba(255,255,255,0.1);
    color: var(--color-label-1);
  }
  .filter-chip {
    background: var(--glass-regular);
    border-color: rgba(255,255,255,0.1);
    color: var(--color-label-2);
  }

  .tab-bar {
    background: var(--glass-ultra);
    border-top-color: rgba(255,255,255,0.08);
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow:
      0 -2px 20px rgba(0,0,0,.4),
      0 0 0 0.5px rgba(255,255,255,0.06) inset;
  }

  .sticky-header {
    background: var(--glass-ultra);
    border-bottom-color: rgba(255,255,255,0.06);
  }

  .btn-ghost {
    background: var(--glass-regular);
    border-color: rgba(255,255,255,0.1);
    color: var(--color-label-1);
  }

  .skeleton {
    background: linear-gradient(
      90deg,
      var(--bg-tertiary) 25%,
      rgba(255,255,255,0.05) 50%,
      var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
  }

  .empty-icon {
    background: var(--glass-regular);
    border-color: rgba(255,255,255,0.08);
  }
}

/* ══════════════════════════════════════════════════════
   Unified Pages (消费端+商家端)
══════════════════════════════════════════════════════ */
body.no-tabbar .tab-bar,
body.no-tabbar .site-footer {
  display: none !important;
}

.auth-with-shell .auth-page {
  min-height: calc(100vh - 56px);
  padding-top: 82px;
  padding-bottom: 100px;
}

.auth-shell-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-link-btn {
  min-width: 52px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
}

.page-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px 100px;
}

.section-card {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

/* 支付页 */
.pay-page { max-width: 520px; margin: 0 auto; padding: 16px 16px 108px; }
.pay-order-card { display: flex; gap: 14px; align-items: center; padding: 16px; margin-bottom: 14px; }
.pay-success { text-align: center; padding: 56px 20px; }
.pay-success-icon {
  width: 72px; height: 72px; border-radius: var(--radius-full);
  background: var(--color-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.pay-order-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.pay-order-title { font-size: 15px; font-weight: 600; color: var(--color-label-1); margin-bottom: 4px; }
.pay-order-no { font-size: 12px; color: var(--color-label-4); }
.pay-amount { font-size: 25px; font-weight: 700; color: var(--color-red); line-height: 1.2; margin-top: 4px; }
.pay-discount-line { font-size: 12px; color: var(--color-green); margin-top: 3px; }
.pay-discount-line del { color: var(--color-label-4); margin-left: 4px; }
.pay-method-card { overflow: hidden; margin-bottom: 14px; }
.pay-method-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-separator);
  cursor: pointer;
  transition: background .15s;
}
.pay-method-item:last-child { border-bottom: none; }
.pay-method-item.selected { background: rgba(10,132,255,.08); }
.pay-method-name { flex: 1; font-size: 15px; font-weight: 600; color: var(--color-label-1); }
.pay-method-desc { font-size: 12px; color: var(--color-label-4); margin-left: 4px; font-weight: 400; }
.pay-radio {
  width: 20px; height: 20px; border-radius: var(--radius-full);
  border: 2px solid #cfd4dc; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pay-radio.checked { border-color: var(--color-blue); background: var(--color-blue); }
.pay-radio.checked::after { content: ''; width: 8px; height: 8px; border-radius: var(--radius-full); background: #fff; }
.pay-submit-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  max-width: 520px;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-ultra);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border-dark);
}
.pay-submit-bar .btn { width: 100%; justify-content: center; }
.pay-submit-bar .btn:disabled { opacity: .55; cursor: not-allowed; }

/* 订单详情页 */
.od-wrap { max-width: 620px; margin: 0 auto; padding: 16px 16px 110px; }
.od-status-banner { display: flex; align-items: center; gap: 14px; padding: 18px; margin-bottom: 14px; border-radius: var(--radius-xl); }
.od-status-icon { width: 46px; height: 46px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.od-status-title { font-size: 17px; font-weight: 700; color: var(--color-label-1); }
.od-status-sub { font-size: 13px; color: var(--color-label-3); margin-top: 3px; }
.od-card { margin-bottom: 14px; overflow: hidden; }
.od-card-title { font-size: 13px; font-weight: 600; color: var(--color-label-4); text-transform: uppercase; letter-spacing: .4px; padding: 13px 15px 0; }
.od-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; padding: 11px 15px; border-bottom: 1px solid var(--color-separator);
}
.od-row:last-child { border-bottom: none; }
.od-row-label { color: var(--color-label-4); font-size: 14px; }
.od-row-val { color: var(--color-label-1); font-size: 14px; text-align: right; }
.od-product { display: flex; gap: 12px; align-items: center; padding: 14px 15px; color: inherit; text-decoration: none; }
.od-product-img {
  width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  background: var(--bg-secondary); display: flex; align-items: center; justify-content: center;
}
.od-product-title { font-size: 15px; font-weight: 600; color: var(--color-label-1); margin-bottom: 4px; }
.od-product-sub { font-size: 12px; color: var(--color-label-4); }
.od-actions {
  position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 620px;
  display: flex; gap: 10px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-ultra); border-top: 1px solid var(--glass-border-dark);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.od-btn-cancel { flex: 1; padding: 12px; border-radius: 12px; border: 1.5px solid var(--color-separator); background: transparent; color: var(--color-red); }
.od-btn-pay {
  flex: 2; padding: 12px; border-radius: 12px; border: none;
  background: var(--color-blue); color: #fff; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 优惠券页 */
.coupon-page { max-width: 660px; margin: 0 auto; padding: 16px 16px 104px; }
.coupon-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.coupon-title { font-size: 20px; font-weight: 700; color: var(--color-label-1); }
.coupon-back { font-size: 14px; color: var(--color-blue); }
.redeem-box { padding: 16px; margin-bottom: 14px; }
.redeem-box-title { font-size: 15px; font-weight: 600; color: var(--color-label-1); margin-bottom: 10px; }
.redeem-form { display: flex; gap: 8px; }
.coupon-tabs { display: flex; gap: 4px; background: var(--bg-secondary); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.coupon-tab { flex: 1; text-align: center; padding: 8px; border-radius: 9px; color: var(--color-label-4); font-size: 14px; font-weight: 500; }
.coupon-tab.active { background: var(--bg-primary); color: var(--color-label-1); box-shadow: var(--shadow-sm); }
.coupon-card { display: flex; margin-bottom: 12px; overflow: hidden; }
.coupon-card.used { opacity: .58; filter: grayscale(.35); }
.coupon-left {
  width: 94px; min-width: 94px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; padding: 12px 8px; background: linear-gradient(135deg,#FF6B6B,#FF8E53);
}
.coupon-left.percent { background: linear-gradient(135deg,#5B9DFF,#0A84FF); }
.coupon-right { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; }

/* 评价页 + 文章页 */
.review-main { max-width: 620px; margin: 0 auto; padding: 16px 16px 100px; }
.review-card { padding: 18px; }
.review-product { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 16px; }
.review-avatar { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.review-score-label { font-size: 14px; font-weight: 600; color: var(--color-label-1); margin-bottom: 10px; }
.review-textarea {
  width: 100%; border: 1.5px solid var(--color-separator); border-radius: 12px; padding: 12px 14px;
  font-size: 14px; font-family: inherit; resize: none; background: var(--bg-secondary);
}
.article-page { max-width: 760px; margin: 0 auto; padding: 72px 20px 120px; }
.article-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; color: var(--color-label-1); }
.article-updated { font-size: 13px; color: var(--color-label-4); margin-bottom: 28px; }
.article-content { line-height: 1.85; font-size: 15px; color: var(--color-label-2); }
.article-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--color-label-1); }
.article-content h3 { font-size: 17px; font-weight: 600; margin: 20px 0 10px; color: var(--color-label-1); }
.article-content p { margin: 0 0 14px; }
.article-content ul, .article-content ol { padding-left: 20px; margin: 0 0 14px; }
.article-content li { margin-bottom: 6px; }
.article-content hr { border: none; border-top: 1px solid var(--color-separator); margin: 24px 0; }
.article-back { margin-top: 36px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--color-blue); }

/* 分销页弹窗 */
.dist-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 800;
}
.dist-modal-overlay.open { display: block; }
.dist-modal {
  display: none; position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 801; background: var(--bg-primary); border-radius: 20px 20px 0 0;
  max-height: 90vh; overflow: auto; max-width: 600px; margin: 0 auto;
  box-shadow: 0 -4px 30px rgba(0,0,0,.15);
}
.dist-modal.open { display: block; }
.dist-modal-header {
  position: sticky; top: 0; z-index: 1; padding: 18px 18px 14px;
  background: var(--bg-primary); border-bottom: 1px solid var(--color-separator);
  display: flex; align-items: center; justify-content: space-between;
}

/* 商家端公共壳层 */
.merchant-shell-note { font-size: 13px; color: var(--mc-text-3); }
.merchant-inline-note { font-size: 12px; color: var(--mc-text-4); }
.merchant-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 900; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.merchant-modal-overlay.open { display: flex; }
.merchant-modal {
  background: var(--mc-card);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.merchant-modal-title { margin: 0 0 14px; font-size: 17px; font-weight: 700; color: var(--mc-text-1); }
.merchant-modal-actions { display: flex; gap: 10px; margin-top: 14px; }

/* 认证页补充 */
.btn-wechat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #07C160;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 13px 0;
  font-size: 15px;
  font-weight: 500;
}
.btn-wechat:hover { background: #06ad56; color: #fff; }
.auth-logo {
  color: var(--color-blue);
}
.auth-logo.has-image {
  padding: 0;
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}
.auth-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.pf-unbind-btn {
  font-size: 12px;
  color: var(--color-red);
  background: rgba(255,59,48,.08);
  border: 1px solid rgba(255,59,48,.2);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  line-height: 1.5;
}
.pf-unbind-btn:hover { background: rgba(255,59,48,.14); }

/* ══════════════════════════════════════════════════════
   产品详情页（简洁一体化重置）
   目标：弱化特效，恢复干净统一层次
══════════════════════════════════════════════════════ */
body.page-product-detail .product-detail-main {
  max-width: 760px;
}
body.page-product-detail .detail-body {
  padding: 0 var(--space-md) 8px;
}
body.page-product-detail .product-detail-main .gallery-section {
  border-radius: 0;
  box-shadow: none;
}
body.page-product-detail .detail-top-bar {
  z-index: 108;
}
body.page-product-detail .detail-top-bar.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
body.page-product-detail .detail-top-bar .btn-icon.btn-glass {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: none;
  border: 1px solid rgba(0,0,0,.08);
}
body.page-product-detail .detail-info {
  margin-top: 0;
  padding: var(--space-lg) 0 var(--space-sm);
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
/* 客房 / 床位 / 浏览 / 收藏：单行占满，窄屏缩小字号 */
body.page-product-detail .detail-specs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  margin-top: 4px;
  margin-bottom: var(--space-sm);
  padding: 10px 0;
  border-top: 1px solid var(--color-separator);
  border-bottom: 1px solid var(--color-separator);
}
body.page-product-detail .detail-specs .spec-card {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 3px;
  border-radius: 8px;
  border: none;
  background: var(--bg-secondary);
}
body.page-product-detail .detail-specs .spec-card svg {
  width: clamp(11px, 3vw, 14px);
  height: clamp(11px, 3vw, 14px);
  flex-shrink: 0;
}
body.page-product-detail .detail-specs .spec-card > div {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
body.page-product-detail .detail-specs .spec-value {
  font-size: clamp(11px, 3vw, 13px);
}
body.page-product-detail .detail-specs .spec-name {
  font-size: clamp(9px, 2.6vw, 12px);
  white-space: nowrap;
}
body.page-product-detail .section-block {
  margin-top: 0;
  padding: var(--space-lg) 0;
  border: none;
  border-top: 1px solid var(--color-separator);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* 标题与正文之间不再加横线；区块之间仅靠 section-block 的顶部分隔线 */
body.page-product-detail .price-grid {
  gap: 6px;
  margin-top: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
body.page-product-detail .price-card,
body.page-product-detail .action-link-btn,
body.page-product-detail .amenity-item-tag,
body.page-product-detail .merchant-card,
body.page-product-detail .rating-summary,
body.page-product-detail .review-item,
body.page-product-detail .related-card {
  box-shadow: none;
}
body.page-product-detail .price-card {
  border: none;
  outline: none;
  box-shadow: none !important;
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 12px 10px;
}
body.page-product-detail .price-card-primary {
  background: rgba(10,132,255,.12);
  border-radius: 10px;
}
body.page-product-detail .action-link-btn {
  border: none;
  background: transparent;
  border-radius: 0;
}
body.page-product-detail .merchant-card {
  margin-top: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
body.page-product-detail .rating-summary {
  border: none;
  background: transparent;
  padding: 0;
}
body.page-product-detail .amenities-detail-grid {
  margin-top: 8px;
  padding: 0;
  border: none;
}
body.page-product-detail .related-grid {
  margin-top: 8px;
  padding: 0;
  border: none;
}
body.page-product-detail .product-desc {
  margin-top: 8px;
  padding: 0;
  border: none;
}
body.page-product-detail .reviews-section .rating-summary {
  margin-top: 8px;
  padding: 0;
  border: none;
}
body.page-product-detail .related-card {
  border: none !important;
  background: transparent;
}
body.page-product-detail .amenity-item-tag {
  background: var(--bg-secondary);
  border: none !important;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  color: var(--color-label-3);
  box-shadow: none !important;
}
body.page-product-detail .review-item {
  padding: 0 0 var(--space-md);
  margin-bottom: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--color-separator);
  background: transparent;
}
body.page-product-detail .review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
body.page-product-detail .detail-action-bar {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 760px;
  transform: translateX(-50%);
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.06);
  box-shadow: none;
  background: rgba(255,255,255,.97);
  gap: 7px;
  flex-wrap: nowrap;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
}
body.page-product-detail .detail-action-bar .action-bar-btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 8px;
  box-shadow: none;
}
body.page-product-detail .detail-action-bar .btn-book-now {
  flex: 1.2;
  background: var(--color-blue);
  color: #fff;
}
body.page-product-detail .detail-action-bar .btn-check-room,
body.page-product-detail .detail-action-bar .btn-view-detail {
  background: var(--bg-secondary);
  color: var(--color-label-2);
  border: 1px solid var(--color-separator);
}
body.page-product-detail .detail-action-bar .action-bar-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
body.page-product-detail .action-fav-btn {
  min-width: 56px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-separator);
  background: var(--bg-primary);
}

@media (max-width: 480px) {
  body.page-product-detail .detail-body {
    padding: 0 12px 4px;
  }
  body.page-product-detail .detail-title {
    font-size: 22px;
  }
  body.page-product-detail .section-block {
    padding: 15px 0;
  }
  body.page-product-detail .detail-action-bar {
    left: 0;
    right: 0;
    max-width: 100%;
    width: 100%;
    transform: none;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  body.page-product-detail .detail-action-bar .action-bar-btn {
    font-size: clamp(11px, 3.2vw, 13px);
    padding: 11px 5px;
    gap: 4px;
  }
  body.page-product-detail .detail-action-bar .action-bar-btn svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
  }
}

