/* ============================================================
   pc.css —— 桌面版式（宽屏 ≥1024px 自动生效）
   手机壳 → 顶部导航条 + 左侧边栏 + 宽幅内容区
   只在宽屏覆盖观感，窄屏（手机）完全不受影响
   ============================================================ */

@media (min-width:1024px){

  /* ---------------- 取消手机壳 ---------------- */
  body{display:block;height:100vh;overflow:hidden;background:var(--bg);}
  #phone{width:100%;height:100vh;border-radius:0;box-shadow:none;}

  /* ---------------- 左侧边栏（原底部标签栏） ---------------- */
  .tabbar{
    position:fixed;left:0;top:0;bottom:0;z-index:60;
    width:148px;height:auto;flex-direction:column;justify-content:flex-start;align-items:stretch;
    padding:0 10px 12px;border-top:0;border-right:1px solid var(--line);
    background:#fff;gap:2px;overflow-y:auto;
  }
  .tabbar::before{
    content:'🛍️ 鑫好易商城';
    display:block;padding:18px 8px 14px;
    font-size:15.5px;font-weight:700;color:var(--brand);
    white-space:nowrap;
  }
  .tab-item{
    flex:none;flex-direction:row;align-items:center;gap:10px;
    height:46px;padding:0 12px;border-radius:10px;
    font-size:14px;color:var(--text-2);
  }
  .tab-item:hover{background:var(--brand-soft);color:var(--brand);}
  .tab-item.is-on{background:var(--brand-soft);color:var(--brand);}
  .ti-ico{width:22px;display:flex;justify-content:center;}
  .ti-badge{top:-6px;right:-10px;}
  .app{margin-left:148px;}

  /* ---------------- 内容区：限宽居中 ---------------- */
  .view{align-items:center;}
  .view > *{width:100%;max-width:1180px;}
  .view::-webkit-scrollbar{width:10px;}
  .view::-webkit-scrollbar-thumb{background:#D8D8DE;border-radius:5px;}
  .view::-webkit-scrollbar-track{background:transparent;}

  /* ---------------- 顶栏 ---------------- */
  .topbar{height:52px;padding:0 16px;}
  .topbar .tb-title{font-size:16.5px;}
  .tb-back{width:40px;height:40px;border-radius:10px;}
  .tb-back:hover{background:var(--gray-soft);}

  /* ---------------- 首页 ---------------- */
  .home-top{padding:14px 0 10px;}
  .fake-search{max-width:560px;height:42px;border-radius:21px;transition:box-shadow .15s;}
  .fake-search:hover{box-shadow:0 4px 14px rgba(0,0,0,.12);}
  /* PC 宽屏：三个横幅并排平分，别再横向溢出（手机上仍是滑动切换） */
  .banner{padding:14px 0 6px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;overflow:visible;}
  .banner .bn-item{width:auto;min-width:0;}
  .bn-item{border-radius:14px;}
  .cat-grid{grid-template-columns:repeat(8,1fr);margin:0;padding:16px 6px;}
  .cg-item{border-radius:10px;padding:8px 0;}
  .cg-item:hover{background:var(--brand-soft);}
  .sec-head{padding:20px 0 10px;}
  /* 列数跟着可用宽度走：每张卡至少 250px，窗口拉窄就自动降到 3 列、2 列，
     不再硬挤成 4 列（挤到 110px 时图和字都看不清） */
  .p-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;padding:0;}
  .new-rail{
    display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
    overflow:visible;padding:0;
  }
  .new-rail .pcard{flex:none;width:auto;}
  .pcard{transition:box-shadow .18s,transform .18s;}
  .pcard:hover{box-shadow:0 8px 24px rgba(20,20,30,.13);transform:translateY(-2px);}
  .more-wrap{padding:18px 0;}
  .center-btn{padding:22px 0;}

  /* ---------------- 搜索 / 分类 ---------------- */
  .search-bar{border-radius:0 0 12px 12px;}
  .chip{cursor:pointer;}
  .chip:hover{border-color:var(--brand);color:var(--brand);}

  /* 分类页：左侧类目栏（吸附）+ 右侧多列商品 */
  .cat-wrap{align-items:flex-start;gap:0;}
  .cat-side{
    width:170px;padding:8px;border:1px solid var(--line);border-radius:12px;
    position:sticky;top:0;max-height:calc(100vh - 76px);overflow-y:auto;
    background:#fff;
  }
  .cs-item{
    padding:12px 12px;font-size:13.5px;text-align:left;border-left:0;
    border-radius:9px;line-height:1.3;
  }
  .cs-item:hover{background:var(--bg);}
  .cs-item.is-on{background:var(--brand-soft);color:var(--brand);border-left:0;}
  .cat-main{padding:0 0 24px 20px;}
  .cm-head{margin-bottom:14px;}
  .cm-head b{font-size:16px;}
  .cm-head .t-muted{font-size:12px;}
  .cat-wrap .p-grid.one{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;}

  /* ---------------- 商品详情：拼多多式「大图在上、信息在下、底部双价」 ---------------- */
  .view.pc-detail{
    display:block;
    width:100%;max-width:880px;margin:0 auto;
    padding:16px 0 92px;
  }
  .view.pc-detail > .pd-gallery{
    position:static;height:560px;aspect-ratio:auto;
    border-radius:14px;overflow:hidden;margin:0 0 10px;
    box-shadow:var(--shadow);
  }
  .view.pc-detail > .pd-gallery .pd-slide{height:100%;}
  .view.pc-detail > .pd-gallery .pd-slide img{object-fit:contain;background:#fff;}
  .view.pc-detail > .pd-dots{margin:0 0 10px;padding:10px 0 0;border-radius:0 0 12px 12px;}
  .view.pc-detail > .pd-price{border-radius:12px 12px 0 0;padding:14px 18px;}
  .view.pc-detail > .pd-card{margin:0 0 9px;border-radius:0 0 14px 14px;padding:0 18px 16px;}
  .view.pc-detail > .pd-spg{margin:0 0 9px;border-radius:12px;padding:18px 18px 20px;}
  .view.pc-detail > .pd-logi{border-radius:12px;}
  .view.pc-detail > .pd-shop{border-radius:12px;}
  .view.pc-detail > .pd-attrs{border-radius:0 0 12px 12px;margin-bottom:8px;}
  .view.pc-detail > .pd-space{display:none;}
  /* 底部双价条：居中贴着内容宽度，滚动时始终可见 */
  .view.pc-detail > .pd-bar{
    position:sticky;bottom:0;margin:0;z-index:30;
    border-radius:12px 12px 0 0;padding:10px 14px;
    box-shadow:0 -8px 24px rgba(20,20,30,.10);
  }
  .view.pc-detail > .pd-bar .pb-icon{width:60px;}
  .view.pc-detail > .pd-bar .pb-buy{height:50px;}

  /* ---------------- 聊天页：居中窄栏 ---------------- */
  .view > .chat-page{max-width:920px;}

  /* ---------------- 我的 / 订单等表单页 ---------------- */
  .od-card,.order-card{border-radius:12px;}

  /* ---------------- 登录页 ---------------- */
  .login{
    display:flex;flex-direction:column;align-items:center;
    justify-content:flex-start;padding-top:6vh;overflow-y:auto;
  }
  .login-top{max-width:660px;text-align:center;padding:12px 24px 24px;}
  .login-brand{justify-content:center;}
  .login-desc{text-align:left;}
  .login-card{width:520px;margin:0;padding:6px 26px 26px;}

  /* ---------------- 弹窗 ---------------- */
  .dialog{max-width:480px;}
}
