/* ═══════════════════════════════════════════════════════════════
   Category v3 — 2026-11-10 重构
   目标（E哥 原话）：
     ① 大类显示中文，不许露 outside/travel/inside 这种字段名
     ② 版面不能挤，要有呼吸感
     ③ 每张卡要写清「住店客人是什么价、单买是什么价」
     ④ 保留：卡只展示 / 点开详情 / 加入项目 / 右下购物车 / 结算
   做法：本文件后加载，覆盖前面所有旧规则（不删旧规则，减少风险）
   ═══════════════════════════════════════════════════════════════ */

/* ── 页头：标题与说明拉开，说明不再挤在两行里 ── */
.hd{padding:16px 20px 4px}
.hd h1{font-size:26px;font-weight:700;letter-spacing:-.01em;line-height:1.30}
.hd p{margin:10px 0 0;font-size:13px;color:var(--sub);line-height:1.75}

/* ── 大类条：中文 + 项数，一个胶囊两行都不超宽 ── */
.grid{gap:8px;padding:16px 0 6px}
.gb{padding:8px 14px 8px 8px;border-radius:14px;gap:8px}
.gb img{width:32px;height:32px;flex:0 0 32px}
.gb b{font-size:13.5px;font-weight:650;letter-spacing:.01em}
.gb i{font-size:10.5px;color:#9A9086;margin-left:2px}
.gb.on i{color:rgba(255,255,255,.7)}

/* ── 分区标题：留白加大，标题与说明分两层 ── */
.sec{padding:30px 20px 0}
.sec-h{padding-left:12px;margin-bottom:9px}
.sec-h b{font-size:19px;font-weight:700}
.sec-h em{font-size:11.5px;padding:2px 8px;background:#EDE9E1;color:#7C7568}
.sec-d{padding-left:15px;font-size:12.5px;line-height:1.7;margin-bottom:14px;color:#8D857A}

/* ── 卡片网格：两列，列距/行距都放开 ── */
.list{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}

/* ── 卡片本体 ── */
.card{
  border-radius:16px;border:1px solid #E8E2D8;background:#fff;
  box-shadow:0 1px 2px rgba(40,32,22,.04),0 6px 18px -12px rgba(40,32,22,.18);
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .18s cubic-bezier(.16,.84,.24,1),box-shadow .18s;
}
.card:active{transform:scale(.982);box-shadow:0 1px 2px rgba(40,32,22,.07)}

/* 图：比例统一 5:4，图上一律不压字 */
.card .th{position:relative;aspect-ratio:5/4;background:#EFECE6;overflow:hidden}
.card .th::after{display:none}
.card .th img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s cubic-bezier(.16,.84,.24,1)}
.card:active .th img{transform:scale(1.04)}

/* 右上角小签：只放「住店可用」这类事实标，不压暗照片 */
.card .th .tag{
  position:absolute;left:auto;right:8px;top:8px;z-index:3;
  font-size:10px;letter-spacing:.02em;font-weight:600;
  color:#1F3D33;background:rgba(255,255,255,.94);
  padding:3px 8px;border-radius:99px;box-shadow:0 1px 3px rgba(0,0,0,.10);
}

/* 文字区：名字 2 行封顶 + 一句话 1 行，高度稳定不跳 */
.card .tx{
  position:static;left:auto;right:auto;bottom:auto;z-index:auto;
  padding:10px 11px 0;background:#fff;flex:1 1 auto;display:flex;flex-direction:column;
}
.card .n{
  font-size:14.5px;font-weight:650;line-height:1.38;color:#2B2723;text-shadow:none;
  margin:0 0 3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;white-space:normal;min-height:calc(14.5px * 1.38 * 2);
}
.card .s{
  font-size:11.5px;color:#9A9086;line-height:1.5;margin:0;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
  white-space:nowrap;text-overflow:ellipsis;
}

/* ── 价格区：新结构 .cp（住店价在前，单买价在后） ── */
.card .cp{
  padding:8px 11px 0;display:flex;flex-direction:column;gap:2px;
}
.card .cp .stay{
  display:flex;align-items:baseline;gap:5px;font-size:12.5px;line-height:1.4;
  color:#0B7A56;font-weight:650;
}
.card .cp .stay b{font-size:14px;font-weight:700;letter-spacing:-.01em}
.card .cp .stay i{font-style:normal;font-size:11px;color:#7FAF9C;font-weight:400}
.card .cp .open{
  display:flex;align-items:baseline;gap:5px;font-size:11.5px;line-height:1.4;color:#A29A8E;
}
.card .cp .open b{font-size:12px;font-weight:600;color:#6A635A}
.card .cp .open i{font-style:normal;font-size:10.5px;color:#B3AA9E}
/* 免费/住店免：一个安静的金色小字，不做大标 */
.card .cp .free{color:#A87E2A}
.card .cp .free b{color:#A87E2A}
/* 面议 */
.card .cp .ask{color:#8D857A;font-size:12.5px;font-weight:600}

/* 底栏：价格让位，只留「加入 / 加减器」，靠右，和卡片底边留 10px */
.card .cf{
  padding:9px 11px 11px;min-height:0;display:flex;align-items:center;
  justify-content:flex-end;gap:8px;background:transparent;
}
.card .cf .p{display:none}

/* 加号按钮：品牌深绿，30px，圆 */
.card .add{
  flex:0 0 30px;width:30px;height:30px;border-radius:50%;border:0;
  background:#1F3D33;color:#fff;font-size:19px;line-height:1;
  display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;
  box-shadow:0 2px 8px rgba(31,61,51,.20);transition:transform .14s,background .2s;
}
.card .add:active{transform:scale(.9);background:#2b5546}

/* 加减器：同样 30px 高，切换时卡高不变 */
.card .stp{
  flex:0 0 auto;display:flex;align-items:center;height:30px;border-radius:99px;
  background:#1F3D33;padding:0 3px;box-shadow:0 2px 8px rgba(31,61,51,.20);
}
.card .stp button{
  width:25px;height:25px;border:0;background:transparent;color:#fff;font-size:16px;
  line-height:1;display:flex;align-items:center;justify-content:center;padding:0;
  cursor:pointer;border-radius:50%;
}
.card .stp button:active{background:rgba(255,255,255,.18)}
.card .stp span{
  min-width:19px;text-align:center;color:#fff;font-size:13px;font-weight:650;
  font-variant-numeric:tabular-nums;
}

/* 已选中：一条细绿描边 + 底栏极淡绿，不刺眼 */
.card.on{border-color:#A7D3BF;box-shadow:0 0 0 1px rgba(11,122,86,.18),0 8px 20px -14px rgba(31,61,51,.4)}
.card.on .cf{background:#F5FBF8}
.card .incart{display:none}

/* ── 弹层（详情）：住店价/单买价分层，一眼看清 ── */
.sheet .box{border-radius:20px 20px 0 0}
.sheet .im{height:200px;border-radius:14px;margin-bottom:16px}
.sheet h3{font-size:21px;font-weight:700;letter-spacing:-.01em}
.sheet .ss{font-size:13px;color:#8D857A;line-height:1.65;margin-bottom:14px}
/* 详情里的双档价签 */
.priceBox{
  display:flex;gap:9px;margin:2px 0 4px;
}
.priceBox .pc{
  flex:1;border-radius:12px;padding:10px 12px;border:1px solid #E8E2D8;background:#FBFAF7;
}
.priceBox .pc b{display:block;font-size:19px;font-weight:700;color:#2B2723;letter-spacing:-.02em;line-height:1.25}
.priceBox .pc span{display:block;font-size:11.5px;color:#8D857A;margin-top:2px;line-height:1.45}
.priceBox .pc.stay{border-color:#A7D3BF;background:#F4FBF7}
.priceBox .pc.stay b{color:#0B7A56}
.priceBox .pc.stay span{color:#5E8E7B}

@media(min-width:760px){
  .hd{padding:24px 24px 4px}
  .hd h1{font-size:31px}
  .grid{padding:18px 24px 6px;gap:9px}
  .sec{padding:34px 24px 0}
  .list{grid-template-columns:repeat(3,1fr);gap:18px 16px}
  .card .th{aspect-ratio:4/3}
}
@media(max-width:359px){
  .list{gap:11px 9px}
  .card .n{font-size:13.5px}
  .card .cp .stay b{font-size:13px}
  .gb{padding:7px 12px 7px 7px}
}
