.product-hero {
  background: var(--hy-primary);
  color: #fff;
  padding: 100px 0;
  background: radial-gradient(circle at 85% 30%, rgba(47, 142, 245, .2), transparent 40%), var(--hy-primary);
}
.product-hero h1 { color: #fff; }
.product-hero p { color: rgba(255,255,255,.8); font-size: 20px; }

.selection-guide {
  background: var(--hy-card);
  border-radius: var(--hy-radius-xl);
  padding: 48px;
  box-shadow: var(--hy-shadow-md);
  margin-top: 28px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--hy-border);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.selection-guide h2 { margin-bottom: 32px; font-size: 32px; }
.selection-guide h2 { text-align: center; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.guide-item {
  background: #fff;
  border: 1px solid var(--hy-border);
  border-radius: 22px;
  box-shadow: var(--hy-shadow-sm);
  padding: 24px 22px 20px;
  min-height: 198px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  text-align: center;
}
.guide-item h3 {
  min-height: 54px;
  font-size: 20px;
  margin: 0;
  color: var(--hy-brand-blue);
  text-align: center;
  line-height: 1.35;
}
.guide-item p {
  margin: 0;
  font-size: 15px;
  color: var(--hy-text-muted);
  line-height: 1.62;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
}
.guide-item b {
  display: inline-flex;
  justify-self: center;
  align-self: end;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--hy-brand-blue-soft);
  color: var(--hy-brand-blue);
  font-size: 14px;
  line-height: 1.45;
}

.answer-panel {
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  border: 1px solid rgba(0, 108, 217, 0.12);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--hy-shadow-sm);
}

.answer-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  margin-bottom: 18px;
  text-align: center;
}

.answer-panel-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  text-align: center;
}

.answer-panel-lead {
  margin: 0 auto;
  max-width: 80ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--hy-text-muted);
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card-media {
  display: block;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 14px;
  min-height: 348px;
}
.product-card-top,
.product-card-title,
.product-card-summary,
.product-card-meta,
.product-card-actions {
  width: 100%;
}
.product-card-series {
  background: var(--hy-bg-soft);
  color: var(--hy-text-muted);
}
.product-card-title {
  min-height: 52px;
  display: flex;
  align-items: flex-start;
}
.product-card-title h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}
.product-card-summary {
  min-height: 92px;
}
.product-card-summary p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--hy-text-muted);
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
}
.product-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-features li {
  font-size: 13px;
  padding: 4px 10px;
  background: var(--hy-bg-soft);
  border-radius: 4px;
  color: var(--hy-text);
}
.product-scenario {
  min-height: 52px;
  font-size: 14px;
  color: var(--hy-text-muted);
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
}
.product-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: var(--hy-radius-sm);
  background: var(--hy-brand-blue-soft);
  color: var(--hy-brand-blue) !important;
  font-weight: 700;
  transition: all .24s ease;
}
.product-card:hover .product-card-link {
  background: var(--hy-brand-blue);
  color: #fff !important;
}

.feature-product-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--hy-border);
  border-radius: 32px;
  padding: 44px;
  box-shadow: var(--hy-shadow-md);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.feature-product-card:hover {
  transform: translateY(-9px);
  border-color: var(--hy-border-blue);
  box-shadow: 0 28px 66px rgba(14, 50, 88, .18);
}
.feature-product-media {
  display: block;
  border-radius: 24px;
  background: var(--hy-bg-soft);
  overflow: hidden;
}
.feature-product-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.feature-product-card:hover .feature-product-media img {
  transform: scale(1.055);
}
.feature-product-copy h3 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 14px 0 10px;
}
.feature-product-copy h4 {
  color: var(--hy-primary);
  font-size: 22px;
  margin: 0 0 18px;
}
.feature-product-copy p {
  color: var(--hy-text-muted);
  font-size: 17px;
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
}
.feature-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}
.feature-scenes span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--hy-brand-blue-soft);
  color: var(--hy-brand-blue);
  font-size: 14px;
  font-weight: 700;
}
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.solution-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  text-align: center;
  gap: 8px;
  min-height: 208px;
  --card-header-height: 56px;
  --card-body-height: 82px;
  --card-footer-height: 42px;
  height: 100%;
}
.solution-card h3 {
  font-size: 20px;
  margin: 0;
  text-align: center;
}
.solution-card p {
  color: var(--hy-text-muted);
  margin: 0;
  line-height: 1.58;
}
.solution-card b {
  display: block;
  color: var(--hy-brand-blue);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.solution-card .card-header {
  min-height: 56px;
}
.solution-card .card-body {
  min-height: 82px;
}
.solution-card .card-footer {
  padding-top: 2px;
  min-height: 48px;
}

.products-table-wrap,
.products-faq-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.products-table-wrap {
  overflow-x: auto;
}

.products-spec-table {
  min-width: 760px;
}

/* 产品详情页样式 */
.pd-hero { padding: 88px 0; background: var(--hy-bg-soft); border-bottom: 1px solid var(--hy-border); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.pd-image {
  border-radius: var(--hy-radius-lg);
  overflow: hidden;
  box-shadow: var(--hy-shadow-md);
  background: #fff;
}
.pd-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 24px; }
.pd-content h1 { margin: 12px 0 10px; }
.pd-subtitle { font-size: 22px; color: var(--hy-primary); font-weight: 800; margin-bottom: 16px; }
.pd-content .summary { font-size: 18px; color: var(--hy-text-muted); margin-bottom: 28px; line-height: 1.75; }
.pd-points { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pd-points b { padding: 8px 14px; background: #fff; border: 1px solid var(--hy-border); border-radius: 8px; font-size: 14px; }

body.lang-en .pd-content h1,
body.lang-th .pd-content h1 {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.14;
  max-width: 14ch;
}

body.lang-en .pd-subtitle,
body.lang-th .pd-subtitle {
  font-size: 19px;
  line-height: 1.5;
  max-width: 32ch;
}

body.lang-en .pd-content .summary,
body.lang-th .pd-content .summary {
  font-size: 17px;
  line-height: 1.72;
  max-width: 62ch;
}

body.lang-en .pd-points,
body.lang-th .pd-points {
  gap: 12px;
}

body.lang-en .pd-points b,
body.lang-th .pd-points b {
  line-height: 1.35;
}

body.lang-en .pd-content .hero-actions,
body.lang-th .pd-content .hero-actions {
  gap: 14px;
  align-items: stretch;
}

body.lang-en .pd-content .hero-actions .btn,
body.lang-th .pd-content .hero-actions .btn {
  min-height: 52px;
  height: auto;
  padding: 14px 24px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.pd-section { padding: 64px 0; border-bottom: 1px solid var(--hy-border); }
.pd-section:last-child { border-bottom: none; }
.pd-section h2 { font-size: 28px; margin-bottom: 32px; }
.pd-narrow { max-width: 860px; }
.pd-lead { font-size: 18px; line-height: 1.9; color: var(--hy-text-muted); text-align: center; margin: 0 auto 18px; }
.pd-answer-panel {
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  border: 1px solid rgba(0, 108, 217, 0.12);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--hy-shadow-sm);
}
.pd-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.pd-answer-card {
  background: #fff;
  border: 1px solid var(--hy-border);
  border-radius: 18px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  --card-header-height: 58px;
  --card-body-height: 96px;
}
.pd-answer-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--hy-primary);
}
.pd-answer-card p {
  margin: 0;
  color: var(--hy-text-muted);
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
}
.pd-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pd-list-card h3 { margin-bottom: 14px; }
.pd-list-card ul { list-style: none; padding: 0; margin: 0; }
.pd-list-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 13px;
  color: var(--hy-text-muted);
  line-height: 1.65;
}
.pd-list-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hy-brand-blue);
}
.pd-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pd-feature-card { min-height: 228px; --card-header-height: 58px; --card-body-height: 112px; }
.pd-feature-card > div {
  width: 48px;
  height: 48px;
  background: var(--hy-brand-blue-soft);
  color: var(--hy-brand-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-weight: 800;
  font-size: 20px;
}
.pd-feature-card h3,
.pd-pair-card h3 { color: var(--hy-primary); margin-bottom: 10px; text-align: center; }
.pd-feature-card p,
.pd-pair-card p { color: var(--hy-text-muted); line-height: 1.58; text-align: justify; text-align-last: left; text-justify: inter-ideograph; }
.pd-pair-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pd-pair-card { min-height: 162px; --card-header-height: 52px; --card-body-height: 78px; }
.pd-related-tag {
  background: var(--hy-bg-soft);
  color: var(--hy-text-muted);
}

.pd-related-title {
  margin: 8px 0;
  font-size: 20px;
}

.pd-faq-list { max-width: 900px; margin: 0 auto; }

.pd-detail-panel { max-width: 960px; margin: 0 auto; }
.pd-panel-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--hy-primary);
  margin-bottom: 24px;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hy-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}
.spec-item {
  background: #fff;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.spec-label {
  font-size: 11px;
  color: var(--hy-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.spec-value {
  font-size: 14px;
  color: var(--hy-primary);
  font-weight: 600;
}
.pd-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pd-tip-card-item {
  background: var(--hy-bg-soft);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.pd-tip-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--hy-brand-blue);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.pd-tip-text {
  font-size: 14px;
  color: var(--hy-text-muted);
  line-height: 1.6;
}
@media (max-width: 600px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .pd-tips-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .spec-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .feature-product-card { grid-template-columns: 1fr; gap: 32px; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-grid { grid-template-columns: 1fr; text-align: center; }
  .pd-answer-grid { grid-template-columns: 1fr; }
  .pd-two-col { grid-template-columns: 1fr; }
  .pd-feature-grid, .pd-pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.lang-en .pd-content h1,
  body.lang-th .pd-content h1,
  body.lang-en .pd-subtitle,
  body.lang-th .pd-subtitle,
  body.lang-en .pd-content .summary,
  body.lang-th .pd-content .summary {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card-body { min-height: auto; }
  .product-card-title,
  .product-card-summary,
  .product-scenario,
  .solution-card .card-header,
  .solution-card .card-body { min-height: auto; }
  .selection-guide { padding: 28px; }
  .answer-panel { border-radius: 20px; padding: 24px 20px; }
  .answer-panel-head h2 { font-size: 26px; }
  .answer-panel-lead { font-size: 16px; }
  .feature-product-card { padding: 24px; border-radius: 22px; }
  .feature-actions { flex-direction: column; }
  .solution-grid { grid-template-columns: 1fr; }
  .pd-feature-grid, .pd-pair-grid { grid-template-columns: 1fr; }
  .pd-hero { padding: 56px 0; }
  .pd-answer-panel { border-radius: 20px; padding: 24px 20px; }
  .pd-subtitle { font-size: 18px; }
  body.lang-en .pd-content h1,
  body.lang-th .pd-content h1 {
    font-size: clamp(30px, 8vw, 38px);
    max-width: none;
  }
  body.lang-en .pd-subtitle,
  body.lang-th .pd-subtitle {
    font-size: 17px;
  }
  body.lang-en .pd-content .summary,
  body.lang-th .pd-content .summary {
    font-size: 16px;
  }
  body.lang-en .pd-content .hero-actions,
  body.lang-th .pd-content .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Center and premium layout for single product */
.product-grid.product-grid-single {
  display: flex;
  justify-content: center;
  grid-template-columns: none; /* Override grid columns */
}

.product-grid.product-grid-single .product-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding: 32px;
  max-width: 920px;
  width: 100%;
  align-items: center;
  border-radius: 32px;
}

.product-grid.product-grid-single .product-card-media {
  border-radius: 20px;
  overflow: hidden;
}

.product-grid.product-grid-single .product-card-body {
  padding: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-grid.product-grid-single .product-card-title {
  min-height: auto;
  display: block;
}

.product-grid.product-grid-single .product-card-title h3 {
  font-size: 26px;
  margin: 0;
}

.product-grid.product-grid-single .product-card-summary {
  min-height: auto;
}

.product-grid.product-grid-single .product-card-summary p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--hy-text-muted);
}

.product-grid.product-grid-single .product-card-meta {
  margin-top: 4px;
}

.product-grid.product-grid-single .product-scenario {
  min-height: auto;
  font-size: 14px;
}

.product-grid.product-grid-single .product-card-actions {
  margin-top: 8px;
}

.product-grid.product-grid-single .product-card-link {
  width: auto;
  min-width: 180px;
  display: inline-flex;
}

/* Responsive styles for single product card */
@media (max-width: 768px) {
  .product-grid.product-grid-single .product-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
    max-width: 480px;
  }
  
  .product-grid.product-grid-single .product-card-link {
    width: 100%;
  }
}

