/* 商品详情页（PC 优先 + 手机自适应） */
.gd-wrap{max-width:1200px;margin:0 auto;padding:0 20px 30px;}
.gd-crumb{padding:16px 0 0;font-size:13px;color:#9aa4b2;}
.gd-crumb b{color:#4b5563;font-weight:500;}

.gd-top{display:grid;grid-template-columns:460px 1fr;gap:28px;background:#fff;border-radius:14px;
  padding:24px;margin:14px 0 20px;box-shadow:0 2px 10px rgba(20,40,90,.05);}
.gd-cover{border-radius:12px;overflow:hidden;background:#e9edf3;}
.gd-cover img{width:100%;height:100%;display:block;object-fit:cover;}

.gd-name{font-size:24px;line-height:1.45;font-weight:800;color:#1f2d3d;}
.gd-tags{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap;}
.gd-tag{font-size:12px;padding:4px 10px;border-radius:6px;background:#eef7ee;color:#2f9e44;}
.gd-tag.blue{background:#eaf1ff;color:#3a7bf0;}
.gd-tag.gray{background:#f2f4f8;color:#667085;}

.gd-pricebox{margin-top:18px;background:#fff8f5;border:1px solid #ffe3d8;border-radius:12px;padding:16px 18px;}
.gd-price{font-size:38px;font-weight:800;color:#ff5a3c;line-height:1;}
.gd-price small{font-size:18px;font-weight:600;margin-right:2px;}
.gd-pricenote{font-size:12.5px;color:#b26a53;margin-top:8px;}

.gd-form{margin-top:16px;display:flex;flex-direction:column;gap:12px;}
.gd-row{display:flex;align-items:center;gap:12px;}
.gd-row > label{width:78px;font-size:13.5px;color:#667085;flex:none;text-align:right;}
.gd-qty{display:flex;align-items:center;border:1px solid #e6ebf3;border-radius:9px;overflow:hidden;background:#fff;}
.gd-qty .btn{width:42px;height:40px;border:0;background:#f7f9fc;color:#5b6577;font-size:16px;line-height:40px;padding:0;cursor:pointer;}
.gd-qty input{width:62px;height:40px;border:0;text-align:center;font-size:15px;outline:0;}
.gd-input{flex:1;height:40px;border:1px solid #e6ebf3;border-radius:9px;padding:0 12px;font-size:14px;outline:0;background:#fff;color:#1f2d3d;}
.gd-input:focus{border-color:#ffb59f;}
.gd-submit{height:50px;border:0;border-radius:11px;background:linear-gradient(90deg,#ff7a45,#ff5a3c);
  color:#fff;font-size:16px;font-weight:700;cursor:pointer;margin-top:6px;width:100%;}
.gd-submit:active{opacity:.9;}
.gd-nostock{height:50px;border-radius:11px;background:#e9edf3;color:#98a2b3;font-size:16px;font-weight:700;
  display:flex;align-items:center;justify-content:center;margin-top:6px;}
.gd-secure{font-size:12px;color:#9aa4b2;text-align:center;}

.gd-desc{background:#fff;border-radius:14px;padding:24px;box-shadow:0 2px 10px rgba(20,40,90,.05);}
.gd-desc h2{font-size:17px;font-weight:800;display:flex;align-items:center;gap:8px;}
.gd-desc h2::before{content:"";width:4px;height:16px;border-radius:3px;background:#ff5a3c;}
.gd-intro{margin-top:16px;font-size:14.5px;line-height:1.95;color:#344054;word-break:break-word;}
.gd-intro img{max-width:100%!important;width:auto;height:auto!important;display:block;
  margin:10px auto;border-radius:8px;box-sizing:border-box;}
.gd-intro img[width],.gd-intro img[height]{width:auto!important;height:auto!important;max-width:100%!important;}
.gd-intro table{max-width:100%!important;width:100%!important;table-layout:fixed;word-break:break-word;}
.gd-intro td,.gd-intro th{word-break:break-word;}
.gd-intro iframe,.gd-intro video{max-width:100%!important;height:auto!important;}
.gd-intro p,.gd-intro div,.gd-intro span,.gd-intro section,.gd-intro a{max-width:100%!important;}
.gd-intro pre,.gd-intro code{white-space:pre-wrap;word-break:break-word;max-width:100%;}
.gd-intro p{margin:0 0 8px!important;text-align:left!important;}\n.gd-intro p:empty{display:none;}\n.gd-intro br{line-height:1;}
.gd-intro h1,.gd-intro h2,.gd-intro h3{font-size:15px;margin:16px 0 8px;color:#1f2d3d;}

.gd-bar{display:none;}

@media (max-width:1024px){
  .gd-top{grid-template-columns:360px 1fr;gap:20px;padding:18px;}
  .gd-name{font-size:21px;}
}
@media (max-width:768px){
  .gd-wrap{padding:0 14px 20px;}
  .gd-crumb{display:none;}
  .gd-top{grid-template-columns:1fr;gap:14px;padding:14px;margin-top:12px;}
  .gd-cover img{height:auto;aspect-ratio:4/3;}
  .gd-name{font-size:18px;}
  .gd-price{font-size:30px;}
  .gd-row > label{width:66px;font-size:13px;}
  .gd-submit{height:46px;font-size:15px;}
  .gd-desc{padding:16px;}
  .gd-desc h2{font-size:15px;}
  .gd-intro{font-size:14px;line-height:1.9;}
  .gd-intro img{width:100%!important;max-width:100%!important;height:auto!important;margin:8px 0;}
  .gd-intro,.gd-desc{overflow-x:hidden;}

  /* 底部固定购买条 */
  .gd-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:900;background:#fff;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px rgba(20,40,90,.10);
    gap:12px;align-items:center;}
  .gd-bar .p{flex:1;font-size:20px;font-weight:800;color:#ff5a3c;}
  .gd-bar .p small{font-size:12px;font-weight:500;}
  .gd-bar button{width:150px;height:44px;border:0;border-radius:10px;
    background:linear-gradient(90deg,#ff7a45,#ff5a3c);color:#fff;font-size:15px;font-weight:700;}
  .gd-bar .disabled{background:#c8d0dc;}
}
/* 详情页标签链接 */
.gd-taglinks{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;}
.gd-taglinks span{font-size:12.5px;padding:4px 11px;border-radius:14px;background:#fff1ec;color:#ff5a3c;
  border:1px solid #ffd9cc;}

/* 商品页统计行（视频数/容量/更新时间） */
.gd-stats{margin-top:10px;padding:10px 14px;background:#f2f7ff;border:1px solid #dfeafc;
  border-radius:10px;font-size:14px;color:#495468;line-height:1.7;}
.gd-stats b{color:#2f6fed;font-size:16px;font-weight:800;}
@media (max-width:768px){
  .gd-stats{font-size:13px;padding:9px 11px;border-radius:8px;}
  .gd-stats b{font-size:15px;}
}

/* 限时标签 */
.gd-tag.hot{background:#ffe9e3;color:#f03e1f;font-weight:700;border:1px solid #ffc9ba;}
/* 已售份数 */
.gd-sold{margin-top:8px;font-size:14px;color:#6b7280;}
.gd-sold b{color:#f03e1f;font-size:17px;font-weight:800;}
@media (max-width:768px){
  .gd-sold{margin-top:6px;font-size:13px;}
  .gd-sold b{font-size:16px;}
}

/* 价格旁的划线原价 */
.gd-price .gd-oldprice{margin-left:14px;font-size:22px;font-weight:600;color:#9aa3b2;
  text-decoration:line-through;text-decoration-thickness:2px;}
@media (max-width:768px){
  .gd-price .gd-oldprice{margin-left:10px;font-size:16px;}
}
