/* ==========================================================
   AirBed Living — 首页设计系统
   前缀 .abx，避免与主题样式冲突
   ========================================================== */
.abx{
  --ink:#14181d; --paper:#faf8f5; --muted:#6b7280;
  --line:#e6e1d9; --card:#ffffff;
  --accent:#245c54; --accent-soft:#e4ebdd;
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px; line-height:1.6;
}
.abx *{box-sizing:border-box}
.abx h1,.abx h2,.abx h3{margin:0;letter-spacing:-.025em;line-height:1.12;font-weight:700}
.abx p{margin:0}
.abx img{display:block;max-width:100%}
.abx-wrap{max-width:1160px;margin:0 auto;padding:0 24px}
.abx-sec{padding:88px 0}
.abx-sec--paper{background:var(--paper)}

/* ---------- 眉标 ---------- */
.abx-eyebrow{
  font-size:.76rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--accent); margin-bottom:18px;
}

/* ---------- Hero ---------- */
.abx-hero{padding:72px 0 88px;background:linear-gradient(180deg,#fff 0%,var(--paper) 100%)}
.abx-hero__grid{display:grid;grid-template-columns:1.08fr .92fr;gap:64px;align-items:center}
.abx-hero h1{font-size:clamp(2.5rem,4.6vw,4rem);font-weight:800}
.abx-hero h1 em{font-style:normal;color:var(--accent)}
.abx-hero__lead{margin-top:22px;font-size:1.12rem;color:#3f4650;max-width:34em}
.abx-hero__actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:34px}
.abx-media{
  position:relative;border-radius:14px;overflow:hidden;background:#efece7;
  aspect-ratio:4/5;box-shadow:0 24px 60px -32px rgba(20,24,29,.45);
}
.abx-media img{width:100%;height:100%;object-fit:cover;object-position:center top}
.abx-media__tag{
  position:absolute;left:16px;bottom:16px;background:rgba(255,255,255,.94);
  border-radius:999px;padding:8px 16px;font-size:.82rem;font-weight:600;color:#3f4650;
}

/* ---------- 按钮 ---------- */
.abx-btn{
  display:inline-flex;align-items:center;gap:8px;padding:15px 30px;border-radius:8px;
  font-weight:650;font-size:.98rem;text-decoration:none;transition:.18s ease;
  border:1.5px solid transparent;
}
.abx-btn--solid{background:var(--ink);color:#fff}
.abx-btn--solid:hover{background:#000;color:#fff;transform:translateY(-1px)}
.abx-btn--ghost{border-color:#cdc7bd;color:var(--ink);background:transparent}
.abx-btn--ghost:hover{border-color:var(--ink);color:var(--ink)}

/* ---------- 信任条 ---------- */
.abx-trust{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}
.abx-trust__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.abx-trust__item{padding:26px 20px;border-right:1px solid var(--line)}
.abx-trust__item:last-child{border-right:0}
.abx-trust__item strong{display:block;font-size:.95rem;margin-bottom:4px}
.abx-trust__item span{font-size:.85rem;color:var(--muted)}

/* ---------- 章节标题 ---------- */
.abx-head{max-width:640px;margin-bottom:52px}
.abx-head h2{font-size:clamp(1.8rem,2.8vw,2.6rem)}
.abx-head p{margin-top:16px;color:var(--muted)}
.abx-head--center{margin-left:auto;margin-right:auto;text-align:center}

/* ---------- 高度对比 ---------- */
.abx-compare{display:grid;grid-template-columns:1fr 1fr;gap:24px}
/* 整张卡片即链接：去掉内部按钮，卡片本身可点 */
.abx-card{
  background:var(--card);border:1px solid var(--line);border-radius:14px;padding:36px 32px;
  display:flex;flex-direction:column;
  position:relative;
  text-decoration:none;
  color:var(--ink);
  cursor:pointer;
  transition:transform .26s cubic-bezier(.2,.7,.3,1),
             box-shadow .26s ease,
             border-color .26s ease;
}

/* 仅在支持悬停的设备上做上浮，避免触屏设备粘住 hover 状态 */
@media (hover:hover) and (pointer:fine){
  .abx-card:hover{
    transform:translateY(-8px);
    box-shadow:0 30px 56px -34px rgba(20,24,29,.40);
    border-color:#cfc8bc;
    color:var(--ink);
  }
  .abx-card--pick:hover{
    border-color:var(--ink);
    box-shadow:0 34px 68px -34px rgba(20,24,29,.58);
  }
}

/* 触屏：按下给一个轻微凹陷反馈，代替 hover */
.abx-card:active{ transform:translateY(-3px); }

/* 键盘可达 */
.abx-card:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:4px;
}

/* 链接变卡片后，防止 a:hover 全局色把整卡文字染成棕色 */
.abx-style:hover{ color:var(--ink); }

@media (prefers-reduced-motion:reduce){
  .abx-card{ transition:none; }
  .abx-card:hover,.abx-card:active{ transform:none; }
}
.abx-card--pick{border-color:var(--ink);box-shadow:0 20px 50px -34px rgba(20,24,29,.55);position:relative}
.abx-card__flag{
  position:absolute;top:-13px;left:32px;background:var(--ink);color:#fff;
  font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:5px 12px;border-radius:999px;
}
.abx-card h3{font-size:1.5rem;margin-bottom:6px}
.abx-card__sub{color:var(--muted);font-size:.9rem;margin-bottom:22px}
.abx-card__price{font-size:2rem;font-weight:800;letter-spacing:-.03em}
.abx-card__price small{font-size:.8rem;font-weight:500;color:var(--muted);letter-spacing:0}
.abx-specs{list-style:none;margin:26px 0 0;padding:0;border-top:1px solid var(--line)}
.abx-specs li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:.92rem}
.abx-specs li span:first-child{color:var(--muted)}
.abx-specs li span:last-child{font-weight:600;text-align:right}
/* 卡内按钮：满宽居中，左右边距与卡内 padding 对称；
   长邮箱地址用 overflow-wrap 避免把卡片撑破 */
.abx-card .abx-btn{
  width:100%;
  box-sizing:border-box;
  justify-content:center;
  text-align:center;
  margin-top:auto;
  overflow-wrap:anywhere;
}

/* ---------- 卖点三栏 ---------- */
.abx-feats{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.abx-feat__no{font-size:.78rem;font-weight:700;color:var(--accent);letter-spacing:.12em;margin-bottom:14px}
.abx-feat h3{font-size:1.16rem;margin-bottom:10px}
.abx-feat p{color:var(--muted);font-size:.94rem}

/* ---------- 款式图片带 ---------- */
.abx-styles{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.abx-style{text-align:center;text-decoration:none;color:inherit}
.abx-style__img{border-radius:12px;overflow:hidden;background:#efece7;aspect-ratio:1/1;margin-bottom:14px}
.abx-style__img img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.abx-style:hover .abx-style__img img{transform:scale(1.04)}
.abx-style strong{display:block;font-size:.95rem}
.abx-style span{font-size:.84rem;color:var(--muted)}

/* ---------- 结尾 CTA ---------- */
/* 结尾 CTA：从满版黑改为浅琥珀收尾，不再抢镜 */
.abx-cta{
  background:var(--paper);
  color:var(--ink);
  padding:72px 0;
  text-align:center;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.abx-cta h2{font-size:clamp(1.6rem,2.4vw,2.15rem);color:var(--ink)}
.abx-cta p{color:#5b6472;margin-top:14px;max-width:34em;margin-left:auto;margin-right:auto}
.abx-cta .abx-btn--solid{
  background:var(--ink);
  color:#fff;
  margin-top:30px;
  box-shadow:0 12px 26px -16px rgba(20,24,29,.55);
}
.abx-cta .abx-btn--solid:hover{background:#000;color:#fff}

/* ---------- 响应式 ---------- */
@media (max-width:960px){
  .abx-sec{padding:64px 0}
  .abx-hero__grid{grid-template-columns:1fr;gap:40px}
  .abx-media{aspect-ratio:16/11;max-width:560px}
  .abx-trust__grid{grid-template-columns:1fr 1fr}
  .abx-trust__item:nth-child(2){border-right:0}
  .abx-trust__item:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .abx-compare{grid-template-columns:1fr}
  .abx-feats{grid-template-columns:1fr;gap:26px}
  .abx-styles{grid-template-columns:1fr 1fr;gap:18px}
}
@media (max-width:560px){
  .abx-hero{padding:48px 0 60px}
  .abx-trust__grid{grid-template-columns:1fr}
  .abx-trust__item{border-right:0;border-bottom:1px solid var(--line)}
  .abx-card{padding:28px 24px}
}
/* Blocksy：首页隐藏页面标题块（h1 "Home" 会与 hero 大标题冲突） */
.abx-page .hero-section:has(.page-title) { display: none; }

/* 规格行：窄屏时左侧标签不折行（避免 "Best / for" 这种断词） */
.abx-specs li span:first-child{
  white-space:nowrap;
  flex:0 0 auto;
}
.abx-specs li span:last-child{
  flex:1 1 auto;
}

/* ==========================================================
   法务页长文排版（Privacy / Terms / Returns）
   行宽控在 72ch 上下，否则 1290px 容器下扫读很累。
   ========================================================== */
.abx-prose{
  max-width:72ch;
}
.abx-prose h2{
  font-size:1.32rem;
  font-weight:750;
  letter-spacing:-.02em;
  margin:2.4em 0 .7em;
  color:var(--ink);
}
.abx-prose h2:first-child{ margin-top:0; }
.abx-prose h3{
  font-size:1.02rem;
  font-weight:700;
  margin:1.7em 0 .45em;
  color:var(--ink);
}
.abx-prose p{
  margin:0 0 1.05em;
  color:#3d454e;
  font-size:1rem;
  line-height:1.78;
}
.abx-prose ul{
  margin:0 0 1.2em;
  padding-left:1.15em;
  list-style:disc;
}
.abx-prose li{
  margin-bottom:.55em;
  color:#3d454e;
  line-height:1.72;
}
.abx-prose li::marker{ color:#9aa8a2; }
.abx-prose strong{ color:var(--ink); font-weight:650; }
.abx-prose a{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:2px;
  text-decoration-thickness:1px;
}
.abx-prose a:hover{ color:#183f39; }
.abx-prose hr{
  border:0;
  border-top:1px solid var(--line);
  margin:2.6em 0;
}
.abx-prose .abx-note{
  padding:16px 20px;
  margin:0 0 1.4em;
  background:var(--accent-soft);
  border-left:3px solid var(--accent);
  border-radius:0 8px 8px 0;
  font-size:.94rem;
  color:#2d3b37;
  line-height:1.65;
}
.abx-updated{
  display:block;
  margin-top:14px;
  font-size:.76rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#8a949e;
}
.abx-legal-toc{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin:26px 0 0;
  padding:0;
  list-style:none;
  font-size:.9rem;
}
.abx-legal-toc a{
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px solid var(--line);
  padding-bottom:2px;
}
.abx-legal-toc a:hover{ color:var(--accent); border-bottom-color:var(--accent); }

/* 法务页：标题区与正文共用同一居中列，否则 621px 正文左侧贴边、右侧大片空白 */
.abx-legal-head{
  max-width:72ch;
  margin:0 auto;
}
.abx-prose{
  margin-left:auto;
  margin-right:auto;
}
