/**
 * 全站尺寸/布局修复 — 覆盖旧版 global、user/css、buy.css、lie.css 固定宽度
 * 对齐 pxb7：内容区 1400px，组件比例统一
 */
:root {
  --px9-w: 1400px;
  --px9-gap: 16px;
  --px9-sidebar: 200px;
  --px9-orange: #f6a046;
  --px9-orange2: #ff8400;
  --px9-red: #ff2045;
}

/* ========== 全局：取消误伤小图的 max-width ========== */
body.pxb9-pc img,
body.pxb9-idx-page img {
  max-width: none;
  height: auto;
  vertical-align: middle;
}
body.pxb9-pc .pxb9-pc-card__img img,
body.pxb9-pc .idx-logo img,
body.pxb9-pc .idx-float i img,
body.pxb9-pc .idx-search__ico,
body.pxb9-pc img.xy,
body.pxb9-pc .jbuser img,
body.pxb9-pc .order2 .l1 img,
body.pxb9-pc .clist dt .pic img,
body.pxb9-pc .clistx .pic img,
body.pxb9-pc .serleft .tp img,
body.pxb9-pc .dleft .tp img,
body.pxb9-pc .pxb9-pc-card__tags img,
body.pxb9-pc .helpleft img,
body.pxb9-pc .userleft img {
  max-width: 100%;
}
body.pxb9-pc .abouttxt img,
body.pxb9-pc .txtmain img,
body.pxb9-pc .goods-content img,
body.pxb9-pc .txt img {
  max-width: 100%;
  height: auto;
}

body.pxb9-pc *,
body.pxb9-idx-page * {
  box-sizing: border-box;
}

/* ========== 主内容区宽度（与顶栏 1400 一致）========== */
body.pxb9-pc .main,
body.pxb9-pc .yjcode,
body.pxb9-pc .bfb:not(.bfbbottom):not(.bfbtop):not(.bfbtop1),
body.pxb9-pc .pxb9-page,
body.pxb9-pc .pxb9-pc-wrap,
body.pxb9-pc .pxb9-pc-wrap--list,
body.pxb9-pc .pxb9-help-wrap,
body.pxb9-pc .pxb9-auth-wrap,
body.pxb9-pc .goods-content,
body.pxb9-pc .main.goods-detail-pxb9 {
  max-width: var(--px9-w) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  float: none !important;
}

body.pxb9-pc .pxb9-pc-wrap--list,
body.pxb9-pc .pxb9-pc-wrap {
  padding-top: 16px !important;
  padding-bottom: 48px !important;
}

/* ========== 用户中心双栏 ========== */
body.pxb9-pc .yjcode:has(.userleft),
body.pxb9-pc .yjcode:has(.userright) {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: var(--px9-gap) !important;
  margin-top: 20px !important;
  margin-bottom: 48px !important;
}

body.pxb9-pc .userleft,
body.pxb9-pc .userleft.pxb9-user-left,
body.pxb9-pc .userleft .menu {
  width: var(--px9-sidebar) !important;
  min-width: var(--px9-sidebar) !important;
  max-width: var(--px9-sidebar) !important;
  float: none !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

body.pxb9-pc .userleft .menu .cap,
body.pxb9-pc .userleft .menu .d1,
body.pxb9-pc .userleft .menu .leftsf {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

body.pxb9-pc .userleft .menu .d1 a {
  width: 100% !important;
  float: none !important;
  display: block !important;
  box-sizing: border-box !important;
}

body.pxb9-pc .userleft .menu .d1 .al,
body.pxb9-pc .userleft .menu .d1 .ar {
  width: auto !important;
  display: inline !important;
}

body.pxb9-pc .userright {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

body.pxb9-pc .userright .wz,
body.pxb9-pc .userright .rkuang,
body.pxb9-pc .userright .uk,
body.pxb9-pc .userright .systs,
body.pxb9-pc .userright .jbuser,
body.pxb9-pc .userright .gonggao,
body.pxb9-pc .userright .yue,
body.pxb9-pc .userright .tuig,
body.pxb9-pc .userright .sell {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.pxb9-pc .userright .rkuang .uk .l1 {
  width: 18% !important;
  min-width: 100px !important;
}

body.pxb9-pc .userright .rkuang .uk .l2,
body.pxb9-pc .userright .rkuang .uk .l21 {
  width: 82% !important;
  max-width: none !important;
}

body.pxb9-pc .userright .jbuser {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  padding: 16px !important;
}

body.pxb9-pc .userright .jbuser .d1,
body.pxb9-pc .userright .jbuser .d2 {
  float: none !important;
  width: auto !important;
}

body.pxb9-pc .userright .jbuser .d1 img {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover;
  border-radius: 12px;
}

/* 订单列表：容器 100%，块级最小宽度防挤压 */
body.pxb9-pc .userright .ordercap,
body.pxb9-pc .userright .order1,
body.pxb9-pc .userright .order2,
body.pxb9-pc .userright .wpay,
body.pxb9-pc .userright .serverordercap,
body.pxb9-pc .userright .serverorder1,
body.pxb9-pc .userright .serverorder2 {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body.pxb9-pc .userright .order2 .l1 img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 8px;
}

body.pxb9-pc .userright .ordercap .l1 {
  width: 46% !important;
}
body.pxb9-pc .userright .ordercap .l2 {
  width: 14% !important;
}
body.pxb9-pc .userright .ordercap .l3 {
  width: 8% !important;
}
body.pxb9-pc .userright .ordercap .l4 {
  width: 16% !important;
}
body.pxb9-pc .userright .ordercap .l5 {
  width: 12% !important;
}

body.pxb9-pc .userright .order2 .l1 {
  width: 9% !important;
}
body.pxb9-pc .userright .order2 .l2 {
  width: 36% !important;
}
body.pxb9-pc .userright .order2 .l3 {
  width: 13% !important;
}
body.pxb9-pc .userright .order2 .l4 {
  width: 8% !important;
}
body.pxb9-pc .userright .order2 .l5 {
  width: 15% !important;
}
body.pxb9-pc .userright .order2 .l6 {
  width: 14% !important;
}

/* ========== 帮助中心左右栏 ========== */
body.pxb9-pc .yjcode:has(.helpleft) {
  display: flex !important;
  gap: var(--px9-gap) !important;
  align-items: flex-start !important;
}

body.pxb9-pc .helpleft {
  width: 200px !important;
  min-width: 200px !important;
  flex-shrink: 0 !important;
  float: none !important;
  margin: 0 !important;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  padding: 8px 0;
  overflow: hidden;
}

body.pxb9-pc .helpleft .u1 {
  width: 100% !important;
  float: none !important;
  border: 0 !important;
  border-bottom: 1px solid #f5f5f5 !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
}

body.pxb9-pc .helpleft .u1 .l1 {
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: 14px;
  font-weight: 600;
}

body.pxb9-pc .helpleft .d2 {
  padding: 4px 8px 12px;
}

body.pxb9-pc .helpleft .d2 span {
  display: block;
}

body.pxb9-pc .helpleft .d2 a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #666;
  border-radius: 8px;
}

body.pxb9-pc .helpleft .d2 a:hover {
  background: #fff8f0;
  color: var(--px9-orange2);
}

body.pxb9-pc .helpright {
  flex: 1 !important;
  min-width: 0 !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  padding: 20px 24px;
}

body.pxb9-pc .helpright .rightcap {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

body.pxb9-pc .helpright .txtmain,
body.pxb9-pc .helpright .abouttxt {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
}

/* ========== 商品列表网格（pxb7 四列）========== */
body.pxb9-pc .pxb9-pc-goods-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
}

body.pxb9-pc .pxb9-pc-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  border-radius: 12px !important;
  border: 1px solid #f0f0f0 !important;
  overflow: hidden !important;
  background: #fff !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}

body.pxb9-pc .pxb9-pc-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

body.pxb9-pc .pxb9-pc-card__img {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  background: #111a2d !important;
  overflow: hidden !important;
}

body.pxb9-pc .pxb9-pc-card__img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* 首页 idx-card 与列表卡统一比例 */
.pxb9-idx-page .idx-card__pic {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pxb9-idx-page .idx-card__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pxb9-idx-page .idx-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

body.pxb9-pc .pxb9-pc-card__body {
  flex: 1 !important;
  padding: 12px 14px 14px !important;
  display: flex !important;
  flex-direction: column !important;
}

body.pxb9-pc .pxb9-pc-card__tags img {
  height: 18px !important;
  width: auto !important;
  max-width: none !important;
}

body.pxb9-pc .pxb9-pc-card__title {
  font-size: 14px !important;
  line-height: 1.45 !important;
  min-height: 40px !important;
  margin: 6px 0 !important;
}

body.pxb9-pc .pxb9-pc-card__price {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--px9-red) !important;
}

body.pxb9-pc .pxb9-pc-card__game {
  font-size: 11px !important;
  padding: 2px 8px !important;
}

/* ========== 服务/任务/店铺列表（旧 DOM）========== */
body.pxb9-pc .list_left,
body.pxb9-pc .main01 .listleft {
  width: calc(100% - 236px) !important;
  max-width: none !important;
  float: left !important;
}

body.pxb9-pc .list_right {
  width: 220px !important;
  float: right !important;
}

body.pxb9-pc .clist {
  width: 100% !important;
}

body.pxb9-pc .clist dl {
  width: calc(25% - 12px) !important;
  margin: 0 12px 12px 0 !important;
  box-sizing: border-box !important;
}

body.pxb9-pc .clist dt,
body.pxb9-pc .clist dt .pic {
  width: 100% !important;
  height: auto !important;
}

body.pxb9-pc .clist dt .pic img {
  width: 100% !important;
  height: 172px !important;
  object-fit: cover !important;
}

body.pxb9-pc .sermain1 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  width: 100% !important;
}

body.pxb9-pc .serleft,
body.pxb9-pc .serright {
  float: none !important;
}

body.pxb9-pc .serleft {
  width: 360px !important;
  flex-shrink: 0 !important;
}

body.pxb9-pc .serright,
body.pxb9-pc .sermain .dright {
  flex: 1 !important;
  min-width: 0 !important;
}

/* ========== 表单/按钮尺寸 ========== */
body.pxb9-pc .userright .rkuang .btn1,
body.pxb9-pc .userright .rkuang .btn3 {
  width: auto !important;
  min-width: 140px !important;
  padding: 0 28px !important;
  height: 44px !important;
  line-height: 44px !important;
  border-radius: 999px !important;
}

body.pxb9-pc .userright .rkuang .uk .l2 a,
body.pxb9-pc .userright .order2 .l6 a {
  transition: color 0.2s, background 0.2s, transform 0.15s;
}
body.pxb9-pc .userright .rkuang .btn1:hover,
body.pxb9-pc .userright .rkuang .btn3:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 132, 0, 0.25);
}

body.pxb9-pc .userright .rkuang .btn1 {
  background: linear-gradient(135deg, #ffb347, var(--px9-orange2)) !important;
  border: 0 !important;
}

body.pxb9-pc input[type="text"],
body.pxb9-pc input[type="password"],
body.pxb9-pc input[type="number"],
body.pxb9-pc select,
body.pxb9-pc textarea {
  font-size: 14px !important;
  line-height: 1.4 !important;
}

body.pxb9-pc .userright .rkuang .uk .l2 .inp {
  height: 36px !important;
  min-width: 120px !important;
  border-radius: 8px !important;
  border: 1px solid #e0e0e0 !important;
}

/* ========== 分页 ========== */
body.pxb9-pc .pages,
body.pxb9-pc .pxb9-list__page {
  width: 100% !important;
  text-align: center !important;
  padding: 16px !important;
}

body.pxb9-pc .pages a,
body.pxb9-pc .page a {
  display: inline-block !important;
  min-width: 36px !important;
  height: 36px !important;
  line-height: 34px !important;
  padding: 0 10px !important;
  font-size: 14px !important;
}

/* ========== 悬浮条不挡内容 ========== */
body.pxb9-pc {
  padding-right: 0 !important;
}

body.pxb9-pc .idx-float {
  width: 64px !important;
  padding: 10px 4px !important;
}

@media (max-width: 1360px) {
  body.pxb9-pc .pxb9-pc-goods-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.pxb9-pc .clist dl {
    width: calc(33.333% - 12px) !important;
  }
}

@media (max-width: 1024px) {
  body.pxb9-pc .yjcode:has(.userleft),
  body.pxb9-pc .yjcode:has(.helpleft) {
    flex-direction: column !important;
  }
  body.pxb9-pc .userleft,
  body.pxb9-pc .helpleft {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.pxb9-pc .pxb9-pc-goods-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.pxb9-pc .list_left {
    width: 100% !important;
    float: none !important;
  }
  body.pxb9-pc .list_right {
    width: 100% !important;
    float: none !important;
  }
}
