/* ============================================================
   PRODUCT VIEW — REFINED EDITION
   依赖：lists_product.css（页头与左侧分类复用）
   ============================================================ */

.product-view-page {
  background: var(--plist-bg);
}

.product-view-page .pview_section {
  padding-top: 28px;
}

.product-view-page .pview_layout {
  align-items: start;
}

.product-view-page .pview_content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.product-view-page .pview_panel,
.product-view-page .pview_prevnext {
  position: relative;
  overflow: hidden;
  border-radius: var(--plist-radius);
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94));
  box-shadow: var(--plist-shadow);
}

.product-view-page .pview_panel::before,
.product-view-page .pview_prevnext::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(47,128,255,0.035), transparent 42%);
  pointer-events: none;
}

.product-view-page .pview_intro {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.product-view-page .pview_intro_top {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(380px, 1.16fr);
  gap: 22px;
  align-items: stretch;
}

.product-view-page .pview_block_head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.product-view-page .pview_block_title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-view-page .pview_block_title strong {
  color: var(--plist-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.product-view-page .pview_block_title span {
  color: #8fa0ba;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-view-page .pview_gallery_body {
  position: relative;
  z-index: 1;
  padding: 16px 16px 18px;
}

.product-view-page .pview_gallery_panel,
.product-view-page .pview_summary_panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-view-page .pview_gallery_body,
.product-view-page .pview_summary_body {
  flex: 1 1 auto;
}

.product-view-page .pview_gallery_wrap,
.product-view-page .pview_gallery_fallback {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-view-page .pview_gallery_stage {
  position: relative;
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 128, 255, 0.08), transparent 38%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
  overflow: hidden;
}

.product-view-page .pview_gallery_stage:empty::before {
  content: "暂无图片";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #9aa8bd;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-view-page .pview_gallery_mainimg {
  position: absolute;
  inset: 0;
  margin: auto;
  display: none;
  max-width: calc(100% - 44px);
  max-height: calc(100% - 44px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .45s var(--plist-ease-out), opacity .28s ease;
}

.product-view-page .pview_gallery_mainimg.is-active {
  display: block;
}

.product-view-page .pview_gallery_panel:hover .pview_gallery_mainimg.is-active {
  transform: scale(1.02);
}

.product-view-page .pview_gallery_thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-view-page .pview_gallery_wrap.is-single .pview_gallery_thumbs {
  display: none;
}

.product-view-page .pview_gallery_stage.is-single .pview_gallery_mainimg.is-active {
  display: block;
}

.product-view-page .pview_gallery_thumb {
  position: relative;
  display: block;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f9fbfe, #eef3f9);
  transition: border-color .25s var(--plist-ease), box-shadow .25s var(--plist-ease), transform .25s var(--plist-ease);
}

.product-view-page .pview_gallery_thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 87, 184, 0.18);
}

.product-view-page .pview_gallery_thumb.is-active {
  border-color: rgba(0, 87, 184, 0.26);
  box-shadow: 0 8px 18px rgba(0, 87, 184, 0.12);
}

.product-view-page .pview_gallery_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-view-page .pview_summary_body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 20px 24px 24px;
}

.product-view-page .pview_summary_body h2 {
  margin: 0;
  color: #14325b;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.product-view-page .pview_excerpt {
  margin-top: 6px;
  padding: 16px 16px 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(241, 246, 253, 0.92), rgba(235, 242, 250, 0.92));
  color: #5f6f87;
  font-size: 14px;
  line-height: 1.9;
  border-left: 4px solid var(--plist-brand);
}

.product-view-page .pview_excerpt:empty::before {
  content: "请在后台填写 SEO 简介，用于本区产品简介展示。";
  color: #7c8ca3;
}

.product-view-page .pview_meta_inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.product-view-page .pview_meta_item {
  min-height: 94px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fbfcfe;
  transition: transform .25s var(--plist-ease), box-shadow .25s var(--plist-ease), border-color .25s var(--plist-ease);
}

.product-view-page .pview_meta_item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 87, 184, 0.12);
  box-shadow: 0 10px 24px rgba(10, 24, 52, 0.05);
}

.product-view-page .pview_meta_label {
  display: block;
  color: #8a97aa;
  font-size: 13px;
  line-height: 1.45;
}

.product-view-page .pview_meta_value {
  display: block;
  margin-top: 12px;
  color: #112a4d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-word;
}

.product-view-page .pview_meta_value:empty::before {
  content: "—";
  color: #b4becc;
}

.product-view-page .pview_actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.product-view-page .pview_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  color: #14325b;
  font-size: 15px;
  font-weight: 700;
  transition: transform .25s var(--plist-ease-out), box-shadow .25s var(--plist-ease), border-color .25s var(--plist-ease), background .25s var(--plist-ease), color .25s var(--plist-ease);
}

.product-view-page .pview_btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 87, 184, 0.18);
  box-shadow: 0 10px 24px rgba(10, 24, 52, 0.06);
}

.product-view-page .pview_btn.is-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0057b8, #2f80ff);
  box-shadow: 0 12px 30px rgba(0, 87, 184, 0.22);
}

.product-view-page .pview_btn.is-primary:hover {
  box-shadow: 0 16px 34px rgba(0, 87, 184, 0.28);
}

.product-view-page .pview_btn.is-back::after,
.product-view-page .pview_btn.is-detail::after {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  line-height: 1;
  transition: transform .25s var(--plist-ease);
}

.product-view-page .pview_btn.is-back::after {
  content: "←";
}

.product-view-page .pview_btn.is-detail::after {
  content: "↓";
}

.product-view-page .pview_btn.is-back:hover::after {
  transform: translateX(-2px);
}

.product-view-page .pview_btn.is-detail:hover::after {
  transform: translateY(2px);
}

.product-view-page .pview_detail_body {
  position: relative;
  z-index: 1;
  padding: 28px 30px 34px;
  color: #44536b;
  font-size: 16px;
  line-height: 1.95;
}

.product-view-page .pview_detail_body img {
  max-width: 100%;
  height: auto;
}

.product-view-page .pview_detail_body table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
}

.product-view-page .pview_detail_body table td,
.product-view-page .pview_detail_body table th {
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 12px 14px;
}

.product-view-page .pview_detail_body h1,
.product-view-page .pview_detail_body h2,
.product-view-page .pview_detail_body h3,
.product-view-page .pview_detail_body h4,
.product-view-page .pview_detail_body h5,
.product-view-page .pview_detail_body h6 {
  color: #14325b;
  margin: 1.2em 0 .6em;
  line-height: 1.35;
}

.product-view-page .pview_detail_body p {
  margin: 0 0 1em;
}

.product-view-page .pview_detail_body ul,
.product-view-page .pview_detail_body ol {
  padding-left: 1.4em;
}

.product-view-page .pview_prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-view-page .pview_prevnext_item {
  position: relative;
  z-index: 1;
  min-height: 104px;
  padding: 26px 28px;
}

.product-view-page .pview_prevnext_item + .pview_prevnext_item {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.product-view-page .pview_prevnext_item span {
  display: block;
  margin-bottom: 10px;
  color: #7d8aa0;
  font-size: 14px;
}

.product-view-page .pview_prevnext_item div {
  min-height: 24px;
}

.product-view-page .pview_prevnext_item div:empty::before {
  content: "没有了";
  color: #a2adbc;
}

.product-view-page .pview_prevnext_item a {
  color: #183761;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.product-view-page .pview_prevnext_item a:hover {
  color: var(--plist-brand);
}

@media screen and (max-width: 1599px) {
  .product-view-page .pview_summary_body h2 {
    font-size: 38px;
  }
}

@media screen and (max-width: 1399px) {
  .product-view-page .pview_intro_top {
    grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  }

  .product-view-page .pview_gallery_stage {
    min-height: 300px;
  }

  .product-view-page .pview_summary_body h2 {
    font-size: 34px;
  }
}

@media screen and (max-width: 1199px) {
  .product-view-page .pview_intro_top {
    grid-template-columns: 1fr;
  }

  .product-view-page .pview_gallery_panel,
  .product-view-page .pview_summary_panel {
    height: auto;
  }

  .product-view-page .pview_gallery_stage {
    min-height: 320px;
  }
}

@media screen and (max-width: 1079px) {
  .product-view-page .pview_section {
    padding-top: 18px;
  }

  .product-view-page .pview_block_head,
  .product-view-page .pview_summary_body,
  .product-view-page .pview_detail_body,
  .product-view-page .pview_prevnext_item {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media screen and (max-width: 767px) {
  .product-view-page .pview_content {
    gap: 18px;
  }

  .product-view-page .pview_intro {
    gap: 18px;
  }

  .product-view-page .pview_intro_top {
    gap: 18px;
  }

  .product-view-page .pview_panel,
  .product-view-page .pview_prevnext {
    border-radius: 18px;
  }

  .product-view-page .pview_block_head {
    padding: 20px 18px 14px;
  }

  .product-view-page .pview_block_title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .product-view-page .pview_block_title strong {
    font-size: 18px;
  }

  .product-view-page .pview_block_title span {
    font-size: 12px;
    white-space: normal;
  }

  .product-view-page .pview_gallery_body,
  .product-view-page .pview_summary_body,
  .product-view-page .pview_detail_body,
  .product-view-page .pview_prevnext_item {
    padding: 18px;
  }

  .product-view-page .pview_gallery_stage {
    min-height: 260px;
    border-radius: 16px;
  }

  .product-view-page .pview_gallery_mainimg {
    max-width: calc(100% - 28px);
    max-height: calc(100% - 28px);
  }

  .product-view-page .pview_gallery_thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .product-view-page .pview_gallery_thumb {
    flex: 0 0 74px;
    height: 64px;
    border-radius: 10px;
  }

  .product-view-page .pview_summary_body h2 {
    font-size: 28px;
  }

  .product-view-page .pview_meta_inline {
    grid-template-columns: 1fr;
  }

  .product-view-page .pview_meta_item {
    min-height: 0;
  }

  .product-view-page .pview_meta_value {
    font-size: 17px;
  }

  .product-view-page .pview_btn {
    min-width: 136px;
    height: 46px;
    font-size: 14px;
  }

  .product-view-page .pview_excerpt {
    margin-top: 16px;
    padding: 16px 16px 16px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.85;
  }

  .product-view-page .pview_meta_inline {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .product-view-page .pview_meta_item {
    min-height: auto;
    padding: 16px 16px 18px;
    border-radius: 14px;
  }

  .product-view-page .pview_meta_label {
    font-size: 13px;
  }

  .product-view-page .pview_meta_value {
    margin-top: 12px;
    font-size: 22px;
  }

  .product-view-page .pview_actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 16px;
  }

  .product-view-page .pview_btn {
    width: 100%;
    min-width: 0;
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }

  .product-view-page .pview_prevnext {
    grid-template-columns: 1fr;
  }

  .product-view-page .pview_prevnext_item + .pview_prevnext_item {
    border-left: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
}


/* ============================================================
   PRODUCT VIEW — DESKTOP WIDE MODE
   目的：电脑端详情页更宽；详细介绍脱离右侧窄列，铺满主内容区域
   ============================================================ */

.product-view-page .pview_fullwidth {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 22px;
}

@media screen and (min-width: 1280px) {
  /* 仅放大详情页容器，不影响列表页 */
  .product-view-page .w1400 {
    width: calc(100% - 48px);
    max-width: 1640px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 侧栏略收窄，给右侧更多空间 */
  .product-view-page .pview_layout {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 32px;
  }

  /* 首屏图文区改为固定图集宽度 + 自适应概览区 */
  .product-view-page .pview_intro_top {
    grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
    gap: 28px;
  }

  .product-view-page .pview_summary_body h2 {
    font-size: 44px;
  }

  .product-view-page .pview_detail_body {
    padding: 34px 40px 42px;
    font-size: 16px;
    line-height: 2;
  }

  /* 防止正文里个别内容被内联宽度限制得过窄 */
  .product-view-page .pview_detail_body > * {
    max-width: 100%;
  }

  .product-view-page .pview_detail_body table {
    table-layout: auto;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1439px) {
  .product-view-page .w1400 {
    width: calc(100% - 40px);
    max-width: 1500px;
  }

  .product-view-page .pview_intro_top {
    grid-template-columns: minmax(330px, 460px) minmax(0, 1fr);
  }

  .product-view-page .pview_summary_body h2 {
    font-size: 38px;
  }
}

@media screen and (max-width: 1279px) {
  .product-view-page .pview_fullwidth {
    margin-top: 18px;
    gap: 18px;
  }
}
