/* ============================================================
   桌面 / 平板自适应增强层
   ------------------------------------------------------------
   · 仅在 >=641px 生效；<=640px 的手机版完全沿用 site.css / shell.css，
     不覆盖、不重排，保证手机端已验收的效果原样保留。
   · 手机与电脑共用同一份 HTML、同一份 gardens.js / cities.js 数据，
     内容、墓园、城市、电话天然同步，不做两套页面。
   ============================================================ */
:root{--d-max:1200px}

/* ---------- 平板 641–899：从「拉宽的手机页」过渡到真正的宽屏布局 ---------- */
@media(min-width:641px){
  .ov-hero h1{font-size:28px}
  .ov-hero p{font-size:15px;max-width:760px}
  /* 首页 hero 改双栏：左标题+搜索，右侧立数据牌，补掉右半边的纯色空白
     （2026-11-12 17:1x 师硕「首页右上角这一片有点空」） */
  .ov-hero-in{display:flex;align-items:center;gap:clamp(20px,3vw,40px)}
  .ov-hero-main{flex:1 1 auto;min-width:0}
  .ov-hero-facts{flex:0 0 clamp(184px,25%,272px);flex-direction:column;margin:0;
    border-radius:15px;background:rgba(255,255,255,.075);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
  .ovhf{display:flex;align-items:baseline;gap:9px;padding:13px 18px;text-align:left}
  .ovhf+.ovhf::before{left:18px;right:18px;top:0;transform:none;width:auto;height:1px}
  .ovhf b{font-size:25px;letter-spacing:.5px}
  .ovhf span{font-size:12.5px;letter-spacing:.5px;margin-top:0}
  /* auto-fit：卡片数量不足一行时自动铺满，不会右侧留空列 */
  .pgrid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
  .scenery,.svc,.fac{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
  .gcards{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
  .gcard .gimg{height:150px}
  .bottombar{padding-left:20px;padding-right:20px}
  .bottombar .bb{font-size:15px}
  /* 桌面端空间充足：顶栏显示完整号码与「在线客服」文字，留资更强 */
  .tb-call .lbl{display:inline}
  .tb-call{padding:6px 13px}
  .tb-call svg{width:14px;height:14px}
}

/* ---------- 桌面 >=900：双栏首页 + 完整字号阶梯 ---------- */
@media(min-width:900px){
  body{font-size:16px}

  /* 顶栏 */
  .tb-in{max-width:var(--d-max);height:60px;padding:0 24px}
  .bname{font-size:17px}
  .tb-city,.tb-call{font-size:13.5px;padding:8px 14px}
  .tb-citymenu{right:max(14px,calc((100vw - var(--d-max))/2 + 14px));top:64px;min-width:230px}
  .tb-citymenu button{font-size:15px;padding:12px 14px}

  /* 首页：单列门户（2026-11-12 15:32 起）。原来的右侧「全国城市目录」侧栏已撤，
     城市清单全部收进顶栏的城市选择面板；宽屏只剩 hero + 当前城市条 + 名单。 */
  #app:not(.has-garden){
    display:grid;
    grid-template-columns:minmax(0,1fr);
    row-gap:0;
    grid-template-areas:
      "hero"
      "bar"
      "intro"
      "list"
      "foot";
    max-width:var(--d-max);
    margin:0 auto;
    padding:0 24px;
  }
  .ov-hero{grid-area:hero;border-radius:0 0 18px 18px;padding:44px 40px 40px}
  .ov-hero-in{max-width:none;padding:0}
  .ov-eyebrow{font-size:13px;letter-spacing:3px}
  .ov-hero h1{font-size:36px;margin-bottom:12px}
  .ov-hero p{font-size:16px}

  .ov-hero .ov-find{max-width:660px;margin:18px 0 0}   /* 宽屏别让输入框拉到 1000px 宽 */
  .ovf-box{height:44px}
  .ovf-go{height:44px;padding:0 22px;font-size:15px}
  .ov-find .tb-city{height:44px;font-size:15px}
  .ov-bar{grid-area:bar;max-width:none;margin:18px 0 4px;padding:0}
  .ov-bar-in{padding:12px 16px;border-radius:14px}
  .ovb-city{font-size:17px}
  .ovb-city>svg{width:18px;height:18px}

  /* 首页内容块：宽屏卡片三等分铺满，热门城市改成自适应胶囊（别拉成三列大格子） */
  #ovIntro{grid-area:intro}
  .ov-blk{max-width:none;margin:0;padding:0}
  .ov-hd{margin:22px 0 12px}
  .ov-hd h2{font-size:21px}
  .ov-hd span{font-size:13.5px}
  .ov-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;
    overflow:visible;margin:0;padding:0}
  .ovg-card{flex:none}
  .ovg-bd{padding:12px 14px 14px}
  .ovg-bd b{font-size:15.5px}
  .ovg-bd i{font-size:12.5px}
  .ov-hot{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:10px}
  .ovh-btn{height:54px;padding:0 4px}
  .ovh-btn b{font-size:15px}
  .ov-how{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:4px 0 10px}
  .ovh-s{padding:15px 16px}
  .ovh-s span{font-size:13.5px}
  .ov-list{grid-area:list}
  .ov-sec{max-width:none;margin:0;padding:0}
  .ov-sec-hd{margin:20px 0 12px}
  .ov-sec-hd h2{font-size:21px}
  .ov-search input{height:46px;font-size:15px}
  .ov-row{padding:14px 18px;border-radius:14px}
  .ovr-name{font-size:16.5px}
  .ov-foot{grid-area:foot;max-width:none;padding:18px 0 44px;font-size:13px}

  /* 墓园页：内容宽度 / 字号阶梯 */
  .wrap{max-width:var(--d-max);padding:0 28px}
  .sec{padding:52px 0}
  .sec-t h2{font-size:31px}
  .sec-t p{font-size:15px}
  .sec-t .kicker{font-size:13px}
  :root{--hero-h:500px}
  .hero-img,.hero-mask,.hero-txt{height:var(--hero-h,300px)}
  /* 2026-11-18：文字块改成整块垂直居中（原来靠 60px 顶内边距顶住、靠 76px 底内边距
     去躲那张上浮 58px 的白卡）。居中后块底距 hero 底线仍有 100 以上，不用再躲。 */
  .hero-txt{padding:24px 28px;text-align:center;align-items:center;justify-content:center}
  .hero-txt h1{font-size:52px;letter-spacing:3px}
  .hero-txt h1::after{margin:18px auto 0;width:36px;height:2px}
  .hero-txt .slogan{font-size:17px;margin-top:14px}
  .hero-tags{margin-top:0;margin-left:auto;margin-right:auto;
    width:100%;max-width:620px;justify-content:center;gap:12px;padding-top:15px}
  .hero-tags span{font-size:13.5px;padding:8px 18px}

  /* 首屏预约卡悬浮压在 hero 底缘；底部 #booking 表单只做限宽 */
  .book-shell{max-width:720px;margin:0 auto;padding:0 20px}
  .book-shell.book-top{margin-top:-58px}
  .book{padding:24px 30px 22px;border-radius:16px}
  .book-h h2{font-size:24px}
  .book-sub{font-size:14px}
  .submit-btn{font-size:17px;height:48px}

  .cat-strip a{font-size:15px;padding:14px 8px}
  .pgrid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
  .pimg img,.noimg{height:200px}
  .pbody h4{font-size:14px}
  .price{font-size:16px}
  .scenery,.svc,.fac{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
  .sfig img{height:200px}
  .fac-c img{height:170px}
  .gcards{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
  .gcard .gimg{height:180px}
  .gcard .gh b{font-size:16px}
  .gcard .gb{font-size:13.5px}
  .intro-grid .iphoto img{height:260px}
  .intro-grid .itext p{font-size:15px}
  .faq summary{font-size:16px;padding:16px 18px}
  .faq-a{font-size:14px;padding:0 18px 16px}
  .footer p,.footer .ft-line{font-size:13.5px}

  /* 底部双键：桌面收成右下角紧凑悬浮条，不拉满整屏、不遮挡正文中心 */
  .bottombar{left:auto;right:28px;bottom:24px;
    width:400px;max-width:calc(100% - 40px);
    border:1px solid var(--line);border-radius:16px;
    box-shadow:0 10px 32px rgba(20,50,38,.18);padding:10px}
  .bottombar .bb{height:50px;font-size:14.5px}
  /* 底部双键为右下角悬浮胶囊，占位由 .footer 的 padding-bottom:90px 兜底，
     不再给 #app 叠加空白，避免绿色页脚下拖出一条奶油色空带 */
}

/* ---------- 超宽 >=1400：hero 再高一点 ---------- */
@media(min-width:1400px){
  /* 2026-11-12 17:2x：原来这里给首页栅格留了 `minmax(0,1fr) 380px` 的第二列，
     是「右侧全国城市目录」侧栏的遗产 —— 侧栏 15:32 已撤、areas 也改成单列，
     这条残留规则在 ≥1400 会硬切出一列 380px 空列，把 hero 挤到左边 772px，
     右半边整片空（师硕看到的「首页右上角有点空」）。删掉，回归单列。 */
  :root{--hero-h:540px}
  .hero-img,.hero-mask,.hero-txt{height:var(--hero-h,300px)}
  .hero-txt{padding-top:24px}
  .hero-txt h1{font-size:58px}
}

/* ---------- 价目图鉴 · 舒适版（桌面 / 平板 >=641） ----------
   手机是单行横滑胶囊；宽屏容量足够，改为居中一行、取消滑动与渐隐。
   用 #catalog 限定作用域，不覆盖其它板块，也不改内容体。 */
@media(min-width:641px){
  #catalog .cat-strip{
    margin:0 auto 24px;padding:2px 0 10px;
    overflow:visible;flex-wrap:wrap;justify-content:center;
    scroll-snap-type:none;
    padding-right:0;box-shadow:none
  }
  #catalog .cat-strip a{font-size:14px;padding:9px 20px}
  #catalog .pgrp{margin-bottom:26px}
  #catalog .pgrp-h{padding:12px 18px 12px 20px;margin-bottom:16px}
  #catalog .pgrp-h h3{font-size:19px}
  #catalog .pgrp-h h3 em{font-size:13.5px;margin-left:9px}
  #catalog .pgrp-h p{font-size:12.5px;margin-top:3px}
  #catalog .pgrid{gap:16px}
  #catalog .pcard{border-radius:14px}
  #catalog .pbody{padding:14px 15px 15px}
  #catalog .pask{font-size:13px;padding:9px 0}
  #catalog .pimg .tag{font-size:11px;padding:3px 10px}
}

/* 免费看园专车横幅 · 桌面放大一档，按钮与宽屏比例协调 */
@media(min-width:641px){
  .svc-cta{padding:18px 22px;gap:20px}
  .svc-cta-t b{font-size:18px}
  .svc-cta-t span{font-size:13px;margin-top:4px}
  .svc-cta .cta-book{font-size:14px;padding:11px 20px}
}

/* ---------- 墓园介绍卡：宽屏放大一档，标题头与实景图始终同宽对齐 ---------- */
@media(min-width:641px){
  #intro.sec{padding:30px 0 42px}
  #intro .sec-t{padding:16px 18px 13px;border-radius:16px 16px 0 0}
  #intro .sec-t .kicker{font-size:11.5px;margin-bottom:5px}
  #intro .sec-t h2{font-size:27px;line-height:1.2}
  #intro .sec-t p{font-size:13.5px;margin-top:4px;line-height:1.4}
  #intro .sec-t .bar{margin-top:8px}
  #intro .pano-card{border-radius:0 0 16px 16px;margin-bottom:18px}
  #intro .pano-card img{height:320px}
}
@media(min-width:900px){
  #intro.sec{padding:36px 0 50px}
  /* 宽屏让介绍卡跟随内容区全宽，与下方「人文与自然」全宽卡左右对齐，
     避免 760px 窄卡在 1200px 内容区里显得头重脚轻 */
  #intro .sec-t,#intro .pano-card{max-width:none}
  #intro .sec-t{padding:20px 22px 16px}
  #intro .sec-t h2{font-size:31px}
  #intro .sec-t p{font-size:15px;margin-top:5px}
  #intro .pano-card img{height:380px}
}

/* ---------- 全站章节卡 · 平板与桌面统一（2026-11-10 师硕定） ----------
   与手机共用同一套「淡绿标题头 + 白底连续卡」，只放大字号与留白；
   ≥900 让标题头负边距跟随 .wrap 的 28px 内边距，始终与卡片同宽。
   放在文件末尾，覆盖上方 #intro 的早期专属数值。 */
@media(min-width:641px){
  .sec{padding:30px 0 42px}
  .sec > .wrap{border-radius:16px}
  .sec > .wrap > .sec-t,#intro .sec-t,#catalog .sec-t{
    margin:0 -16px 0;padding:16px 18px 13px;
    border-radius:15px 15px 0 0
  }
  .sec > .wrap > .sec-t .kicker,#intro .sec-t .kicker,#catalog .sec-t .kicker{
    font-size:11.5px;margin-bottom:5px
  }
  .sec > .wrap > .sec-t h2,#intro .sec-t h2{font-size:27px}
  .sec > .wrap > .sec-t p,#intro .sec-t p{font-size:13.5px;margin-top:4px}
  .sec > .wrap > .sec-t .bar,#intro .sec-t .bar,#catalog .sec-t .bar{margin-top:8px}
  .sec-card{padding:18px 0}
  #intro .pano-card{border-radius:0;margin:0 -16px 18px}
  #intro .pano-card img{height:320px}
}
@media(min-width:900px){
  .sec{padding:36px 0 50px}
  .sec > .wrap > .sec-t,#intro .sec-t,#catalog .sec-t{
    margin:0 -28px 0;padding:20px 22px 16px
  }
  .sec > .wrap > .sec-t h2,#intro .sec-t h2{font-size:31px}
  .sec > .wrap > .sec-t p,#intro .sec-t p{font-size:15px;margin-top:5px}
  .sec-card{padding:20px 0 22px}
  #intro .pano-card{margin-left:-28px;margin-right:-28px}
  #intro .pano-card img{height:380px}
  /* 桌面分类条居中不滑，负边距跟随 28px 内边距贴齐卡片两端 */
  #catalog .cat-strip{margin-left:-28px;margin-right:-28px;
    padding-left:28px;padding-right:28px}
}

/* ===== 桌面首屏遮挡修复（?v=20261110l）=====
   实测 1024×768 / 1280×800：右下角 400px 悬浮双键压住首屏预约卡的提交按钮
   （重叠 5400 / 4656 px²），点右下角会误触底栏。
   视口 ≤900px 高时首屏先收起悬浮条，滚动后由 site.js 的 body.scrolled 滑入；
   高视口（>900，如 1920×1080）本来就与卡片错开，保持常驻。 */
@media(min-width:900px) and (max-height:900px){
  .bottombar{opacity:0;pointer-events:none;transform:translateY(12px);
    transition:opacity .22s ease,transform .22s ease}
  body.scrolled .bottombar{opacity:1;pointer-events:auto;transform:none}
}
/* 回顶按钮桌面移到左下角，与右下悬浮双键完全错开 */
@media(min-width:900px){
  .totop{right:auto;left:18px;bottom:24px}
}

/* ===== 首屏文字重排 ≥900（配合 500 / 540px 图高）=====
   2026-11-18：这里原本「标题下移 + 标签带 margin-top:auto 沉底」是造成首屏中间
   一大片死白的原因（实测 h1 底到标签顶 129px 全空）。改为整块垂直居中，标题区
   与承诺带贴成一个紧凑块，上下留白对称。 */
@media(min-width:900px){
  .hero-txt{padding:24px 28px;justify-content:center}
  .hero-txt h1{font-size:56px}
  .hero-txt .slogan{font-size:18px;margin-top:15px}
  .hero-tags{margin-top:0;gap:12px;padding-top:16px}
  .hero-tags span{font-size:14px}
}
@media(min-width:1400px){
  .hero-txt{padding-top:24px}
  .hero-txt h1{font-size:62px}
}

/* ===== 顶栏联系按钮重设计（?v=20261110o）=====
   师硕：「在线客服右上角这个按钮有点大，想用图标表示，边上打电话的按钮也做一个图标」。
   纯追加在 desktop.css 末尾（本文件最后加载，可覆盖 site.css / shell.css 及本文件内
   各媒体查询里的旧按钮规则）；只作用于顶栏 .tb-actions 内两枚按钮，
   底部 .bottombar 的两枚主转化 CTA 保持原样不动。 */
.tb-actions{gap:8px}
.tb-actions .tb-call,
.tb-actions .tb-service{
  position:relative;box-sizing:border-box;
  width:40px;height:40px;min-height:0;padding:0;margin:0;
  border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;gap:0;flex:none;
  font-size:0;white-space:nowrap;
  animation:none!important;
  text-decoration:none;cursor:pointer;
  transition:background .16s ease,box-shadow .16s ease,transform .16s ease,filter .16s ease;
}
.tb-actions .tb-call svg,
.tb-actions .tb-service svg{
  width:18px;height:18px;display:block;flex:none;
  animation:none!important;
  transition:transform .18s ease;
}
/* 全断点隐藏文字：桌面端原本展开的号码 / 「在线客服」一并收起，纯图标表达 */
.tb-actions .tb-call .lbl,
.tb-actions .tb-service .lbl{display:none!important}
/* 电话：浅绿底 + 细绿描边 + 深绿听筒 */
.tb-actions .tb-call{
  background:var(--green-l);border:1px solid rgba(30,74,56,.30);color:var(--green);
  box-shadow:none;filter:none;
}
.tb-actions .tb-call svg{fill:var(--green)}
.tb-actions .tb-call:hover{background:#dfede3;border-color:rgba(30,74,56,.55);box-shadow:0 2px 8px rgba(30,74,56,.16)}
.tb-actions .tb-call:active{background:#d3e6da;transform:scale(.94)}
/* 在线客服：深绿实心 + 白色对话气泡（三点） */
.tb-actions .tb-service{
  background:var(--green);border:0;color:#fff;
  box-shadow:0 2px 6px rgba(31,122,77,.24);filter:none;
}
.tb-actions .tb-service svg{fill:#fff}
.tb-actions .tb-service:hover{filter:brightness(1.09);box-shadow:0 3px 10px rgba(31,122,77,.34)}
.tb-actions .tb-service:active{background:#18623f;transform:scale(.94)}
.tb-actions .tb-call:hover svg,
.tb-actions .tb-service:hover svg{transform:scale(1.08)}
.tb-actions .tb-call:focus-visible,
.tb-actions .tb-service:focus-visible{outline:2px solid #c79a3a;outline-offset:3px}
/* 纯图标不丢语义：仅鼠标 hover / 键盘 focus 时浮出文字提示；
   电话的 aria-label 由 site.js 写入完整号码，桌面 hover 仍能看到号码 */
@media(hover:hover){
  .tb-actions .tb-call::before,
  .tb-actions .tb-service::before{
    content:attr(aria-label);
    position:absolute;top:calc(100% + 9px);right:-2px;z-index:70;
    white-space:nowrap;font-size:12px;font-weight:600;letter-spacing:.2px;line-height:1.2;
    padding:7px 11px;border-radius:8px;
    background:#1e4a38;color:#fff;box-shadow:0 4px 14px rgba(20,45,33,.22);
    opacity:0;transform:translateY(-3px);pointer-events:none;
    transition:opacity .16s ease,transform .16s ease;
  }
  .tb-actions .tb-call:hover::before,
  .tb-actions .tb-call:focus-visible::before,
  .tb-actions .tb-service:hover::before,
  .tb-actions .tb-service:focus-visible::before{opacity:1;transform:translateY(0)}
}
