.huanwuai-home-view { display: contents; }
.huanwuai-home-view[hidden], .hpd-detail[hidden] { display: none !important; }
.huanwuai-headline:focus { outline: none; }
.huanwuai-home.hpd-detail-active {
  display: block;
  height: auto;
  min-height: 100vh;
  aspect-ratio: auto;
}
.huanwuai-home.hpd-detail-active::before { bottom: auto; height: var(--hpd-glow-height); }
.huanwuai-home.hpd-detail-active::after { top: var(--hpd-tube-top); }
.huanwuai-home.hpd-detail-active .huanwuai-header { top: var(--hpd-header-top); }
.huanwuai-home.hpd-transitioning .huanwuai-products .huanwuai-card { transform: none; transition: none !important; }
.huanwuai-home.hpd-transitioning .huanwuai-products { pointer-events: none; }
.hpd-detail {
  --hpd-accent: 183 124 238;
  --hpd-ink: #c89af5;
  position: relative;
  box-sizing: border-box;
  width: min(88.5%, 1360px);
  margin: 0 auto;
  padding: clamp(155px, 10.7cqw, 210px) 0 36px;
  color: #f7f3fc;
  font-size: 16px;
  line-height: 1.7;
}
.hpd-detail[data-product="huanyan"] { --hpd-accent: 114 204 225; --hpd-ink: #8fdde9; }
.hpd-detail :focus-visible { outline: 2px solid var(--hpd-ink); outline-offset: 4px; }
.hpd-detail ::selection { background: rgb(var(--hpd-accent) / 35%); color: #fff; }
.hpd-price { font-variant-numeric: tabular-nums; }
.hpd-breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; color: #c0afce; font-size: 14px; }
.hpd-back { border: 0; padding: 5px 0; background: none; color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
.hpd-back:hover { text-decoration: underline; text-underline-offset: 5px; }
.hpd-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 6%; align-items: center; }
.hpd-hero h1 { margin: 0 0 24px; color: #fffaff; font-size: clamp(34px, 3cqw, 58px); line-height: 1.28; letter-spacing: -0.04em; font-weight: 700; }
.hpd-hero h1:focus { outline: none; }
.hpd-intro { margin: 0 0 14px; max-width: 36em; color: #d3c7de; font-size: clamp(16px, 1.03cqw, 18px); }
.hpd-capabilities { color: var(--hpd-ink); margin: 18px 0 25px; font-size: 14px; }
.hpd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.hpd-detail .huanwuai-magnetic-zone { width: 228px; max-width: 100%; height: 48px; margin-top: 0; }
.hpd-detail .huanwuai-product-button { --huanwuai-button-neon: var(--hpd-accent); gap: 12px; padding: 0 12px; font-size: 15px; line-height: 1.3; white-space: normal; }
.hpd-detail .huanwuai-button-arrow { width: 20px; }
.hpd-detail .hpd-secondary { background: rgb(14 11 22 / 24%); border-color: rgb(var(--hpd-accent) / 32%); color: #e5ddeb; }
.hpd-detail [aria-disabled="true"] { cursor: default; }
.hpd-hero-media { position: relative; overflow: hidden; margin: 0; aspect-ratio: 1.17; border: 1px solid rgb(var(--hpd-accent) / 50%); border-radius: 22px; background: rgb(18 11 29 / 28%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 20px 60px rgb(0 0 0 / 18%); }
.hpd-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hpd-hero-media::after, .hpd-shared-image::after {
  content: ""; position: absolute; z-index: 2; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgb(224 181 255 / 20%), rgb(198 139 250 / 8%) 55%, rgb(198 139 250 / 3%));
  mix-blend-mode: screen; opacity: calc(0.08 + 0.52 * var(--huanwuai-light-pulse)); pointer-events: none; transition: none !important;
}
.hpd-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; padding: 27px 0; margin: 36px 0 0; border-top: 1px solid rgb(var(--hpd-accent) / 18%); border-bottom: 1px solid rgb(var(--hpd-accent) / 18%); }
.hpd-facts strong { display: block; font-size: 17px; font-weight: 600; }
.hpd-facts p { margin: 5px 0 0; color: #bfb2cb; font-size: 14px; }
.hpd-section { margin-top: 80px; }
.hpd-section h2 { margin: 0 0 10px; color: #f9f5ff; font-size: clamp(27px, 2cqw, 38px); line-height: 1.35; letter-spacing: -0.025em; }
.hpd-section-lead { margin: 0 0 28px; color: #bbacc8; font-size: 16px; }
.hpd-shot { position: relative; display: block; width: 100%; box-sizing: border-box; padding: 24px; border: 1px solid rgb(var(--hpd-accent) / 25%); border-radius: 22px; background: linear-gradient(135deg, rgb(var(--hpd-accent) / 5%), rgb(255 255 255 / 2%)); backdrop-filter: blur(16px); cursor: zoom-in; }
.hpd-shot img { display: block; width: min(100%, 1080px); height: auto; margin: auto; border-radius: 12px; }
.hpd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hpd-panel { min-width: 0; padding: 16px; border: 1px solid rgb(var(--hpd-accent) / calc(0.20 + 0.10 * var(--huanwuai-light-pulse))); border-radius: 18px; background: linear-gradient(145deg, rgb(var(--hpd-accent) / 6%), rgb(255 255 255 / 2%)); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%); transition: transform 220ms ease; transition-duration: 220ms !important; }
.hpd-feature-image { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; object-position: 50% 30%; border-radius: 11px; }
.hpd-panel h3 { margin: 20px 0 8px; font-size: 22px; line-height: 1.35; }
.hpd-panel p { margin: 0 0 12px; color: #bdb0ca; font-size: 15px; }
@media (hover:hover) { .hpd-panel:hover { transform: translateY(-4px); border-color: rgb(var(--hpd-accent) / 52%); } }
.hpd-pricing .hpd-panel { position: relative; display: flex; flex-direction: column; padding: 26px; }
.hpd-pricing .hpd-panel h3 { margin: 0 0 22px; font-size: 23px; }
.hpd-recommended { border-color: rgb(var(--hpd-accent) / 60%); background: linear-gradient(145deg, rgb(var(--hpd-accent) / 12%), rgb(255 255 255 / 3%)); }
.hpd-badge { align-self: flex-start; padding: 3px 12px; margin: 0 0 14px; border: 1px solid rgb(var(--hpd-accent) / 35%); border-radius: 8px; color: var(--hpd-ink); font-size: 13px; }
.hpd-pricing .hpd-badge { position: absolute; top: 26px; right: 20px; margin: 0; }
.hpd-pricing .hpd-recommended h3 { padding-right: 90px; }
.hpd-price { margin: 0; font-size: 40px; font-weight: 700; color: #fcfaff; line-height: 1.2; }
.hpd-term { margin-top: 6px; color: var(--hpd-ink); font-size: 16px; font-weight: 600; }
.hpd-pricing ul { margin: 22px 0 26px; padding: 20px 0 0 18px; border-top: 1px solid rgb(var(--hpd-accent) / 25%); color: #c8bbd3; font-size: 15px; }
.hpd-pricing li { margin-bottom: 10px; }
.hpd-pricing .huanwuai-magnetic-zone { margin-top: auto; width: 100%; }
.hpd-model-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.hpd-model { position: relative; display: block; min-width: 0; padding: 6px 6px 12px; border: 1px solid rgb(var(--hpd-accent) / 24%); border-radius: 13px; background: rgb(255 255 255 / 3%); color: #f4f0fa; font: inherit; font-size: 14px; text-align: center; cursor: pointer; transition: transform 220ms ease, border-color 220ms ease; transition-duration: 220ms !important; }
.hpd-model img { display: block; width: 100%; aspect-ratio: 0.71; object-fit: cover; object-position: 50% 25%; border-radius: 8px; margin-bottom: 10px; }
.hpd-model[aria-pressed="true"] { border-color: rgb(var(--hpd-accent) / 80%); box-shadow: 0 0 18px rgb(var(--hpd-accent) / 10%); }
.hpd-model:hover { transform: translateY(-3px); border-color: rgb(var(--hpd-accent) / 70%); }
.hpd-model-current { margin: 18px 0 0; color: var(--hpd-ink); font-size: 14px; }
.hpd-model-tag { position: absolute; top: 12px; left: 12px; padding: 2px 8px; border-radius: 6px; background: rgb(3 33 36 / 85%); color: #c0ffff; font-size: 11px; }
.hpd-custom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; padding: 32px; }
.hpd-custom h3 { margin-top: 0; }
.hpd-custom ul { padding-left: 18px; color: #c8bbd3; font-size: 15px; }
.hpd-custom li { margin-bottom: 10px; }
.hpd-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; padding: 0; margin: 30px 0 24px; counter-reset: hpd-step; }
.hpd-steps li { display: flex; align-items: center; gap: 13px; font-weight: 600; font-size: 15px; }
.hpd-steps li::before { counter-increment: hpd-step; content: counter(hpd-step); display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid rgb(var(--hpd-accent) / 48%); border-radius: 50%; color: var(--hpd-ink); background: rgb(var(--hpd-accent) / 13%); }
.hpd-custom .hpd-steps { grid-template-columns: 1fr; gap: 25px; margin-top: 10px; }
.hpd-support { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 24px; font-size: 14px; color: #c0b3cb; }
.hpd-support strong { color: var(--hpd-ink); margin-right: 12px; }
.hpd-note { color: #a594b5; font-size: 13px; }
.hpd-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgb(var(--hpd-accent) / 22%); color: #9587a2; font-size: 13px; }
.hpd-shared-image { position: fixed; z-index: 10000; overflow: hidden; pointer-events: none; background: #110b1d; box-shadow: 0 20px 60px rgb(0 0 0 / 16%); }
.hpd-shared-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.huanwuai-product-dialog.hpd-lightbox[open] { display: block; width: min(1100px, 92vw); max-height: 90vh; overflow: auto; padding: 30px; }
.hpd-lightbox .huanwuai-dialog-image { max-height: 74vh; object-fit: contain; border-radius: 8px; }
.hpd-lightbox #huanwuai-dialog-title { margin: 14px 0 0; font-size: 18px; }
.hpd-lightbox .huanwuai-dialog-summary, .hpd-lightbox .huanwuai-dialog-details { display: none; }
.huanwuai-product-dialog.hpd-portrait-lightbox[open] { width: min(420px, 85vw); }
@media (max-width: 950px) {
  .hpd-hero { gap: 4%; }
  .hpd-hero h1 { font-size: 32px; }
  .hpd-grid { gap: 14px; }
  .hpd-pricing .hpd-panel { padding: 20px; }
  .hpd-pricing .hpd-grid { grid-template-columns: 1fr; }
  .hpd-model-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .hpd-detail { width: 90%; padding-top: 190px; }
  .hpd-breadcrumb { margin-bottom: 22px; font-size: 13px; }
  .hpd-hero { grid-template-columns: 1fr; gap: 32px; }
  .hpd-hero h1 { font-size: clamp(28px, 7.5cqw, 42px); }
  .hpd-intro { font-size: 15px; }
  .hpd-capabilities { font-size: 13px; }
  .hpd-actions { gap: 10px; }
  .hpd-detail .huanwuai-magnetic-zone { width: 100%; }
  .hpd-hero-media { aspect-ratio: 1.1; border-radius: 17px; }
  .hpd-facts { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; margin-top: 30px; }
  .hpd-facts strong { font-size: 16px; }
  .hpd-section { margin-top: 50px; }
  .hpd-section h2 { font-size: 26px; }
  .hpd-section-lead { font-size: 14px; margin-bottom: 22px; }
  .hpd-grid { grid-template-columns: 1fr; gap: 16px; }
  .hpd-shot { padding: 12px; border-radius: 15px; }
  .hpd-model-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .hpd-model { font-size: 12px; }
  .hpd-model-tag { top: 9px; left: 9px; font-size: 9px; padding: 2px 4px; }
  .hpd-steps { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .hpd-steps li { font-size: 13px; gap: 9px; }
  .hpd-custom { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .hpd-support { grid-template-columns: 1fr; gap: 15px; }
  .hpd-footer { flex-direction: column; gap: 8px; }
}
