/* Detail-page measurements follow the Lanhu 1920px artboard: 1200px content, 390px card. */
.product-detail-page {
  --detail-card-size: 390px;
  --detail-regular: "PingFang SC-Regular", "PingFang SC", "Microsoft YaHei", sans-serif;
  --detail-medium: "PingFang SC-Medium", "PingFang SC", "Microsoft YaHei", sans-serif;
  --detail-semibold: "PingFang SC-Semibold", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #000;
  background: #fff;
}
.product-detail-page :where(main h1, main h2, main h3, main p) { margin: 0; }
.product-detail-page [hidden] { display: none !important; }

.detail-hero {
  padding: 24px 0 71px;
  background: linear-gradient(180deg, #fff3ee, rgba(255, 243, 238, 0));
}
.detail-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #666;
  font: 400 12px/17px var(--detail-regular);
}
.detail-crumb span { color: #c9bbb5; }
.detail-crumb b { color: #000; font-family: var(--detail-semibold); font-weight: 600; }
.detail-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--detail-card-size);
  align-items: center;
  gap: 64px;
  margin-top: 31px;
}
.detail-copy { min-width: 0; }
.detail-kind { color: #e9472b; font: 600 12px/16px var(--detail-semibold); letter-spacing: 1px; }
.detail-copy h1 { margin-top: 16px; color: #000; font: 600 44px/48px var(--detail-semibold); }
.detail-description { margin-top: 14px; color: #666; font: 400 16px/20px var(--detail-regular); }
.detail-price-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
  padding-left: 16px;
  border-left: 3px solid #e9472b;
}
.detail-price-block span { color: #333; font: 400 14px/18px var(--detail-regular); }
.detail-price-block b { color: #e9472b; font: 500 32px/32px "D-DIN Pro", Arial, sans-serif; letter-spacing: 2px; }
.detail-price-block small { color: #8b817d; font: 400 12px/16px var(--detail-regular); }
.detail-actions { display: flex; gap: 24px; margin-top: 40px; }
.detail-primary, .detail-secondary {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 70px;
  font: 500 16px/20px var(--detail-medium);
  cursor: pointer;
  transition: box-shadow .18s ease, background-color .18s ease;
}
.detail-primary {
  gap: 12px;
  width: 174px;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #e93300, #f96100);
  box-shadow: 0 2px 8px rgba(233, 51, 0, .2);
}
.detail-primary img { display: block; flex: 0 0 18px; width: 18px; height: 10px; }
.detail-primary:hover { color: #fff; box-shadow: 0 4px 12px rgba(233, 51, 0, .3); }
.detail-secondary { width: 114px; border: 1px solid #e9472b; color: #e9472b; background: #fff; }
.detail-secondary:hover { background: #fff3ee; }

.detail-fusion-facts { display: flex; gap: 40px; margin-top: 40px; }
.detail-term-summary, .detail-benefit-summary {
  flex: 0 0 auto;
  padding-left: 16px;
  border-left: 3px solid #e9472b;
  color: #666;
  font: 400 13px/24px var(--detail-regular);
  white-space: nowrap;
}
.detail-term-summary { width: 153px; }
.detail-benefit-summary { width: 207px; font-size: 14px; }
.detail-term-summary b { color: #d63c00; font: 500 15px/24px "D-DIN Pro", Arial, sans-serif; }
.detail-benefit-summary b { color: #333; font-family: var(--detail-semibold); font-weight: 600; }

.detail-product-card {
  position: relative;
  width: var(--detail-card-size);
  height: var(--detail-card-size);
  background: url("assets/lanhu-hd/product-detail-card@2x.png") center / 100% 100% no-repeat;
  text-align: center;
}
.product-card-topline {
  position: absolute;
  top: 5.128205%;
  left: 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--detail-card-size) * .04);
  width: 92%;
  height: 11.282051%;
}
.product-card-topline b {
  color: #fff;
  font: 600 calc(var(--detail-card-size) * .1025641)/1.1 var(--detail-semibold);
  white-space: nowrap;
}
.product-card-topline select {
  flex: 0 0 auto;
  width: calc(var(--detail-card-size) * .22051282);
  height: calc(var(--detail-card-size) * .08717949);
  padding: 0 calc(var(--detail-card-size) * .08205128) 0 calc(var(--detail-card-size) * .03076923);
  border: 0;
  border-radius: 20px;
  appearance: none;
  -webkit-appearance: none;
  color: #fff;
  background: rgba(255, 255, 255, .2) url("assets/lanhu-hd/detail-period-chevron.png") right 12px center / 12px 12px no-repeat;
  font: 500 calc(var(--detail-card-size) * .05128205)/1.2 var(--detail-medium);
  cursor: pointer;
}
.product-card-topline option { color: #333; background: #fff; }
.product-card-speed {
  position: absolute;
  top: 26.666667%;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 25.641026%;
  color: #e9472b;
}
.product-card-speed b {
  font: 500 calc(var(--detail-card-size) * .25641026)/1 "D-DIN Pro", Arial, sans-serif;
  letter-spacing: 2px;
}
.product-card-speed i {
  margin: 0 0 calc(var(--detail-card-size) * .02564103) 5px;
  font: normal 500 calc(var(--detail-card-size) * .08205128)/1.25 var(--detail-medium);
  letter-spacing: 2px;
}
.product-card-month {
  position: absolute;
  top: 66.153846%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 41.025641%;
  height: 13.333333%;
  border-radius: 30px;
  transform: translateX(-50%);
  color: #000;
  background: #ffd412;
  font: 500 calc(var(--detail-card-size) * .06153846)/1.166667 var(--detail-medium);
}
.product-card-slogan {
  position: absolute;
  top: 84.615385%;
  left: 0;
  width: 100%;
  color: #fff;
  font: 400 calc(var(--detail-card-size) * .06153846)/1.166667 var(--detail-regular);
  white-space: nowrap;
}
.detail-description-section { padding-bottom: 73px; }
.detail-description-card {
  padding: 32px;
  border: 1.5px solid #fbd3ca;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 14px 32px -16px rgba(59, 42, 30, .2);
}
.detail-info-section { position: relative; }
.detail-info-section + .detail-info-section { margin-top: 56px; }
.detail-info-section + .detail-info-section::before, .detail-tip::before {
  position: absolute;
  top: -28px;
  right: 0;
  left: 16px;
  border-top: 1px dashed #f0eeec;
  content: "";
}
.detail-info-section h2 {
  position: relative;
  padding-left: 16px;
  color: #000;
  font: 600 20px/20px var(--detail-semibold);
}
.detail-info-section h2::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e9472b;
  content: "";
}
.detail-info-section > p { margin: 16px 0 0 16px; color: #666; font: 400 14px/20px var(--detail-regular); }
.detail-feature-list { display: grid; gap: 16px; margin: 16px 0 0 16px; }
.detail-feature-item h3 { color: #e9472b; font: 600 16px/20px var(--detail-semibold); }
.detail-feature-item p { margin-top: 8px; color: #666; font: 400 14px/20px var(--detail-regular); }
.detail-tip {
  position: relative;
  margin-top: 56px;
  padding: 14px 16px;
  border: 1px solid #ffddd7;
  border-radius: 8px;
  color: #e9472b;
  background: #ffeeeb;
  font: 600 14px/20px var(--detail-semibold);
}
/* Retain the artboard hierarchy while making narrow windows readable. */
@media (min-width: 981px) and (max-width: 1199px) {
  .product-detail-page { --detail-card-size: 330px; }
  .detail-hero-layout { gap: 40px; }
  .detail-copy h1 { font-size: 38px; line-height: 44px; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .product-detail-page { --detail-card-size: 300px; }
  .detail-hero-layout { gap: 24px; }
  .detail-copy h1 { font-size: 32px; line-height: 40px; }
  .detail-fusion-facts { gap: 16px; flex-wrap: wrap; }
  .detail-price-block, .detail-fusion-facts, .detail-actions { margin-top: 28px; }
}
@media (max-width: 760px) {
  .product-detail-page { --detail-card-size: min(390px, calc(100vw - 32px)); }
  .detail-hero { padding: 16px 0 36px; }
  .detail-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 24px; }
  .detail-copy h1 { margin-top: 12px; font-size: 30px; line-height: 38px; }
  .detail-description { margin-top: 10px; font-size: 14px; line-height: 22px; }
  .detail-price-block, .detail-fusion-facts { margin-top: 26px; border-left-width: 2px; }
  .detail-actions { gap: 16px; margin-top: 26px; }
  .detail-primary, .detail-secondary { height: 42px; font-size: 14px; }
  .detail-primary { width: 164px; }
  .detail-secondary { width: 104px; }
  .detail-fusion-facts { gap: 16px; flex-wrap: wrap; }
  .detail-term-summary, .detail-benefit-summary { width: auto; padding-left: 12px; border-left-width: 2px; font-size: 12px; line-height: 22px; }
  .detail-term-summary b { font-size: 14px; line-height: 22px; }
  .detail-product-card { justify-self: center; }
  .detail-description-section { padding-bottom: 48px; }
  .detail-description-card { padding: 24px 18px; border-radius: 20px; }
  .detail-info-section h2 { font-size: 18px; }
  .detail-info-section > p { margin: 14px 0 0 16px; font-size: 13px; line-height: 21px; }
  .detail-info-section + .detail-info-section { margin-top: 36px; }
  .detail-info-section + .detail-info-section::before, .detail-tip::before { top: -18px; }
  .detail-feature-list { gap: 14px; margin-top: 14px; }
  .detail-feature-item h3 { font-size: 15px; }
  .detail-feature-item p { margin-top: 6px; font-size: 13px; line-height: 21px; }
  .detail-tip { margin-top: 36px; padding: 12px; font-size: 13px; line-height: 20px; }
}
