body.product-page {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top, rgba(214, 31, 38, 0.08), transparent 26%),
    linear-gradient(180deg, #f6f7fb 0%, #eef1f6 100%);
  color: #222;
}

body.product-page a {
  color: inherit;
  text-decoration: none;
}

body.product-page img {
  display: block;
  max-width: 100%;
}

.p-wrap {
  width: 1200px;
  margin: 0 auto;
}

.p-topbar {
  height: 36px;
  background: #e8eaef;
  border-bottom: 1px solid #d9dde7;
  color: #666;
  font-size: 12px;
}

.p-topbar .p-wrap,
.p-header .p-wrap,
.p-main-grid,
.p-summary-meta,
.p-service-list,
.p-buy-actions,
.p-shop-card,
.p-related-grid,
.p-footer .p-wrap,
.p-thumb-list,
.p-detail-head {
  display: flex;
}

.p-topbar .p-wrap,
.p-header .p-wrap,
.p-footer .p-wrap {
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.p-top-links,
.p-header-links,
.p-service-list,
.p-summary-meta,
.p-buy-actions,
.p-shop-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.p-header {
  background: #fff;
  box-shadow: 0 12px 30px rgba(26, 35, 59, 0.08);
}

.p-header .p-wrap {
  padding: 18px 0;
  height: auto;
}

.p-logo {
  width: 200px;
  flex: 0 0 200px;
}

.p-logo img {
  width: 200px;
  height: 80px;
  object-fit: contain;
}

.p-search {
  width: 520px;
}

.p-search-box {
  display: flex;
  border: 2px solid #d61f26;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.p-search-box input {
  flex: 1;
  height: 44px;
  border: 0;
  outline: 0;
  padding: 0 16px;
  font-size: 14px;
}

.p-search-box button {
  width: 104px;
  border: 0;
  background: linear-gradient(135deg, #ef3f45, #c70014);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.p-search-tags {
  margin-top: 10px;
  font-size: 13px;
  color: #7a8193;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.p-header-links a:hover,
.p-top-links a:hover,
.p-search-tags a:hover,
.p-breadcrumb a:hover,
.p-footer a:hover,
.p-shop-card a:hover {
  color: #d61f26;
}

.p-cart {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: #fff5f5;
  border: 1px solid #f0d6d8;
  color: #d61f26;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.p-breadcrumb {
  padding: 18px 0 12px;
  font-size: 13px;
  color: #7b8398;
}

.p-breadcrumb span {
  margin: 0 8px;
}

.p-main {
  padding-bottom: 44px;
}

.p-main-grid {
  gap: 18px;
  align-items: flex-start;
}

.p-gallery,
.p-summary,
.p-sidebar,
.p-detail-panel,
.p-spec-panel,
.p-related-panel {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(25, 37, 68, 0.08);
}

.p-gallery {
  width: 400px;
  flex: 0 0 400px;
  padding: 24px;
}

.p-main-image {
  border-radius: 20px;
  overflow: hidden;
  background: #f6f8fb;
  height: 400px;
}

.p-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-thumb-list {
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.p-thumb-list img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #ebedf2;
  background: #fff;
}

.p-summary {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  padding: 28px;
}

.p-summary h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
}

.p-subtitle {
  margin: 14px 0 0;
  color: #677086;
  line-height: 1.8;
  font-size: 14px;
}

.p-price-card {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(214, 31, 38, 0.08), rgba(255, 255, 255, 0.96)),
    #fff;
  border: 1px solid #f4d9db;
}

.p-price-label {
  font-size: 13px;
  color: #8a90a1;
  letter-spacing: 0.06em;
}

.p-price-value {
  margin-top: 6px;
  font-size: 38px;
  color: #d61f26;
  font-weight: 800;
}

.p-price-value small {
  font-size: 20px;
  margin-right: 4px;
}

.p-summary-meta {
  margin-top: 14px;
  flex-wrap: wrap;
  color: #6f7688;
  font-size: 13px;
}

.p-service-list {
  margin-top: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.p-service-list span {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f7f8fc;
  color: #4b5367;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

.p-meta-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #edf0f6;
  display: grid;
  gap: 14px;
}

.p-meta-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  font-size: 14px;
}

.p-meta-item strong {
  color: #7b8398;
}

.p-buy-actions {
  margin-top: 28px;
  gap: 12px;
  flex-wrap: wrap;
}

.p-btn-primary,
.p-btn-secondary {
  min-width: 180px;
  height: 50px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.p-btn-primary {
  background: linear-gradient(135deg, #ef3f45, #c70014);
  color: #fff !important;
}

.p-buy-actions .p-btn-primary,
.p-buy-actions .p-btn-primary:visited,
.p-buy-actions .p-btn-primary:hover,
.p-buy-actions .p-btn-primary:active {
  color: #fff !important;
}

.p-btn-secondary {
  background: #fff3f3;
  color: #d61f26;
  border: 1px solid #f0d6d8;
}

.p-sidebar {
  display: none;
}

.p-shop-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.p-shop-name {
  font-size: 20px;
  font-weight: 800;
}

.p-shop-score {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff5e8;
  color: #d97706;
  font-size: 12px;
  font-weight: 700;
}

.p-shop-desc,
.p-qr-note {
  font-size: 13px;
  color: #6f7688;
  line-height: 1.8;
}

.p-shop-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.p-shop-links a {
  height: 40px;
  border-radius: 12px;
  background: #f7f8fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.p-qrcode {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #edf0f6;
}

.p-qrcode img {
  width: 160px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid #edf0f6;
  background: #fff;
}

.p-qr-note {
  margin-top: 10px;
  text-align: center;
}

.p-detail-shell {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.p-detail-panel,
.p-related-panel {
  padding: 24px;
}

.p-detail-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.p-detail-head h2,
.p-related-panel h3,
.p-spec-panel h3 {
  margin: 0;
  font-size: 24px;
}

.p-detail-head span {
  font-size: 13px;
  color: #7b8398;
}

.p-spec-panel {
  display: none;
  margin-bottom: 18px;
  padding: 24px;
}

.p-spec-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.p-spec-list li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  font-size: 14px;
  color: #4a5368;
}

.p-spec-list strong {
  color: #7b8398;
}

.p-detail-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-detail-images img {
  width: 100%;
  border-radius: 18px;
  background: #fff;
}

.p-related-grid {
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.p-related-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f7f8fc;
}

.p-related-card img {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

.p-related-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.p-related-card p {
  margin: 0;
  color: #d61f26;
  font-weight: 800;
  font-size: 15px;
}

.p-footer {
  margin-top: 38px;
  min-height: 88px;
  padding: 18px 0;
  box-sizing: border-box;
  background: #1d2335;
  color: #d2d8e7;
  font-size: 13px;
}

.p-footer .p-wrap {
  gap: 10px 24px;
  flex-wrap: wrap;
  height: auto;
  min-height: 52px;
}

.p-footer .p-wrap > div:first-child {
  flex: 1 1 420px;
}

.p-footer .p-wrap > div:last-child {
  flex: 0 0 auto;
}

.p-footer a {
  color: #d2d8e7;
  margin-left: 18px;
}

.p-footer .mall-footer-links {
  display: flex;
  flex: 1 1 380px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
  line-height: 1.7;
}

.p-footer .mall-footer-links a {
  margin-left: 0;
}

.p-footer .mall-footer-links a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin: 0 12px;
  vertical-align: -1px;
  background: rgba(210, 216, 231, 0.32);
}

.site-footer {
  margin-top: 40px;
  background: #1d2335;
  color: #d9deea;
  padding: 34px 0 0;
}

.site-footer .wrap {
  width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-grid > div {
  flex: 1 1 180px;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin-top: 0;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 10px;
  color: #c7cfdd;
  line-height: 1.8;
}

.footer-icp {
  margin-top: 26px;
  padding: 28px 0 32px;
  border-top: 1px solid #e5e5e5;
  background: #fff;
  color: #999;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.8;
}

.footer-icp p {
  margin: 0 0 16px;
  color: #999;
}

.footer-icp a {
  display: inline-block;
  margin: 0;
  color: #999;
}

.footer-icp a:hover {
  color: #777;
}

@media (max-width: 1280px) {
  .p-wrap {
    width: calc(100% - 32px);
  }

  .site-footer .wrap {
    width: calc(100% - 32px);
  }
}

@media (max-width: 980px) {
  .p-header .p-wrap,
  .p-main-grid,
  .p-detail-shell,
  .p-footer .p-wrap {
    flex-direction: column;
    display: flex;
  }

  .p-footer .p-wrap {
    justify-content: center;
    text-align: center;
  }

  .p-footer .p-wrap > div:first-child,
  .p-footer .mall-footer-links {
    flex: 0 1 auto;
  }

  .p-gallery,
  .p-summary,
  .p-sidebar,
  .p-detail-shell > div,
  .p-search {
    width: 100%;
    flex: 1 1 auto;
  }

  .p-logo {
    width: auto;
    flex: none;
  }

  .p-main-image {
    height: auto;
  }
}
