/* Product Detail Page - matches singalproduct.png design */

/* 1. Product Overview Section */
.pd-overview {
  padding-top: 56px;
  padding-bottom: 48px;
}

.pd-overview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px 40px;
  align-items: start;
}

.pd-overview-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pd-title {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}

.pd-features {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.pd-feature {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.pd-feature:last-child {
  margin-bottom: 0;
}

.pd-overview-right {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.02));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pd-main-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.pd-cta-main {
  grid-column: 1 / -1;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  font-size: 14px;
}

/* 2. Application Area Section - Horizontal scroll carousel */
.pd-app-area {
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.pd-app-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.pd-app-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text);
}

.pd-app-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.pd-app-carousel-wrap {
  position: relative;
  padding: 0 48px;
}

.pd-app-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 2;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.08);
  font-size: 24px;
  display: grid;
  place-items: center;
}

.pd-app-nav:hover {
  border-color: rgba(31, 84, 255, 0.3);
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(31, 84, 255, 0.15);
}

.pd-app-nav--prev {
  left: 8px;
}

.pd-app-nav--next {
  right: 8px;
}

.pd-app-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 12px 0 16px;
  -webkit-overflow-scrolling: touch;
}

.pd-app-carousel::-webkit-scrollbar {
  height: 8px;
}

.pd-app-carousel::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 4px;
}

.pd-app-carousel::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 4px;
}

.pd-app-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-rows: 140px 1fr;
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.pd-app-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 84, 255, 0.25);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.12);
}

.pd-app-card--featured {
  border-color: rgba(31, 84, 255, 0.35);
  background: linear-gradient(180deg, rgba(31, 84, 255, 0.06), #fff);
}

.pd-app-thumb {
  height: 140px;
  position: relative;
  background:
    radial-gradient(120px 70px at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
  overflow: hidden;
}

.pd-app-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-app-thumb--highlight {
  background: linear-gradient(180deg, rgba(31, 84, 255, 0.2), rgba(31, 84, 255, 0.08));
}

.pd-app-thumb--highlight img {
  mix-blend-mode: normal;
}

.pd-app-plus {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(31, 84, 255, 0.9);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 300;
}

.pd-app-name {
  padding: 14px 14px 12px;
  font-weight: 900;
  font-size: 13px;
}

.pd-app-card--featured .pd-app-name {
  background: linear-gradient(180deg, rgba(31, 84, 255, 0.12), rgba(31, 84, 255, 0.06));
  color: var(--blue);
}

/* 3. RVR-920 Series & Specifications Section */
.pd-specs {
  padding: 64px 0;
}

.pd-specs-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* 横向排版：表格占满宽度，无右侧栏 */
.pd-specs--fullwidth .pd-specs-inner {
  grid-template-columns: 1fr;
}

.pd-specs-title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}

.pd-specs-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.06), 0 12px 28px rgba(2, 6, 23, 0.1);
}

.pd-specs-table-wrap.pd-specs-table--shaded {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.06), 0 12px 28px rgba(2, 6, 23, 0.08);
}

.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pd-specs-table th,
.pd-specs-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.pd-specs-table th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  font-weight: 800;
  color: var(--text);
}

.pd-specs-table td:first-child,
.pd-specs-table th:first-child {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.8);
}

.pd-specs-table tbody tr:last-child td {
  border-bottom: none;
}

.pd-specs-table tbody tr:hover td {
  background: rgba(31, 84, 255, 0.03);
}

/* Shaded table: lighter first row and first column */
.pd-specs-table-wrap.pd-specs-table--shaded .pd-specs-table th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  color: rgba(15, 23, 42, 0.9);
}

.pd-specs-table-wrap.pd-specs-table--shaded .pd-specs-table td.spec-label,
.pd-specs-table-wrap.pd-specs-table--shaded .pd-specs-table td.spec-sublabel {
  background: linear-gradient(90deg, #f8fafc, #fafbfc);
  color: rgba(15, 23, 42, 0.85);
}

.pd-specs-table--shaded .pd-specs-table tbody tr:hover td:not(.spec-label):not(.spec-sublabel) {
  background: rgba(31, 84, 255, 0.03);
}

/* 嵌套参数行缩进（如 RCK 表格中的 Option A/B、X1/Z1 等） */
.pd-specs-table td.spec-sublabel {
  padding-left: 1.5em;
  font-weight: 600;
}

.pd-specs-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* 4. Additional Images Section */
.pd-images {
  padding: 48px 0;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
}

.pd-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pd-image-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform 140ms ease, box-shadow 180ms ease;
}

.pd-image-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pd-image-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 5. Agency Cooperation CTA */
.pd-agency-cta {
  padding: 0;
  background: #0b2bff;
  position: relative;
  overflow: hidden;
}

.pd-agency-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 35%);
  pointer-events: none;
}

.pd-agency-inner {
  position: relative;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.pd-agency-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
}

.pd-agency-btn {
  background: #fff;
  color: var(--blue);
  border-color: rgba(255, 255, 255, 0.4);
}

.pd-agency-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .pd-overview-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .pd-overview-right {
    order: 2;
  }

  .pd-cta-main {
    order: 3;
  }

  .pd-app-carousel-wrap {
    padding: 0 8px;
  }

  .pd-app-nav {
    display: none;
  }

  .pd-specs-inner {
    grid-template-columns: 1fr;
  }

  .pd-specs-right {
    order: -1;
  }

  .pd-images-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pd-title {
    font-size: 28px;
  }

  .pd-app-card {
    flex: 0 0 180px;
  }

  .pd-app-thumb {
    height: 120px;
  }

  .pd-specs-table th,
  .pd-specs-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
}
