@charset "UTF-8";

/* 面板共用网格单元，高度由最高文案决定，切换时不推动后续内容。 */
.hebang-hero--carousel { padding-bottom: 112px; }
.hebang-hero-stage { --hebang-hero-surface: #f5f2eb; position: relative; display: grid; overflow: visible; border-radius: 30px; background: var(--hebang-hero-surface); isolation: isolate; touch-action: pan-y; }
.hebang-hero-slide { grid-area: 1 / 1; position: relative; border-radius: inherit; display: grid; align-items: center; aspect-ratio: 2 / 1; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 650ms ease, visibility 650ms; }
.hebang-hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.hebang-hero-picture { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.hebang-hero-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 图片在暗色主题下仍是浅色场景，文案固定继承深色以保持对比度。 */
.hebang-hero-copy { position: relative; z-index: 1; width: 32%; margin-left: 5%; padding: 64px 0 100px; color: #20271d; }
.hebang-hero-category { margin: 0 0 22px; color: inherit; font-size: clamp(11px, .9vw, 14px); font-weight: 600; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.hebang-hero-title { margin: 0; color: inherit; font-family: var(--hebang-font-heading); font-size: clamp(36px, 3.9vw, 72px); font-weight: 700; line-height: 1.07; letter-spacing: -.04em; text-wrap: balance; }
.hebang-hero-description { max-width: 34ch; margin: 24px 0 30px; color: inherit; font-size: clamp(14px, 1.05vw, 18px); font-weight: 500; line-height: 1.65; }
.hebang-hero-link { display: inline-flex; align-items: center; gap: 24px; min-height: 48px; padding: 13px 24px; border-radius: 999px; background: var(--hebang-color-primary); color: var(--hebang-color-primary-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.hebang-hero-link .hebang-btn-content { gap: 24px; }
/* 桌面旋钮跨过图片下沿，控件溢出由轮播底部留白承接。 */
.hebang-hero-controls { position: absolute; z-index: 3; top: 100%; left: 50%; width: 132px; height: 132px; transform: translate(-50%, -50%); font-family: ui-monospace, monospace; }
.hebang-hero-controls[hidden] { display: none; }
.hebang-hero-dial { position: relative; width: 132px; height: 132px; border-radius: 50%; background: transparent; outline: none; }
.hebang-hero-step { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #62676b; box-shadow: none; transition: color 180ms ease; cursor: pointer; transform: translateY(-50%); }
.hebang-hero-step::before { content: ''; position: absolute; inset: -6px; }
.hebang-hero-step--previous { left: -50px; }
.hebang-hero-step--next { right: -50px; }
.hebang-hero-step:is(:hover, :focus-visible) { color: var(--hebang-color-primary); }
.hebang-hero-step svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hebang-hero-dial-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); pointer-events: none; }
.hebang-hero-dial-track { fill: none; stroke: var(--hebang-color-primary); stroke-opacity: .28; stroke-width: 1; stroke-dasharray: 3 5; }
.hebang-hero-dial-ticks line { stroke: var(--hebang-color-primary); stroke-width: 1; stroke-linecap: round; }
.hebang-hero-dial-ticks .is-major { stroke: var(--hebang-color-primary-ink); stroke-width: 2; }
.hebang-hero-dial-progress { fill: none; stroke: var(--hebang-color-primary); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 2px var(--hebang-color-primary)); }
/* 旋钮是固定深色工业风格组件，颜色不跟随浅色/深色主题切换，因此不使用 token。 */
.hebang-hero-dial-knob { position: absolute; inset: 20px; width: 92px; height: 92px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #4a4a50 0%, #303035 42%, #202024 70%, #17171a 100%); box-shadow: inset 0 1px 1px #ffffff24, inset 0 -4px 10px #0006, 0 5px 14px #0004, 0 0 0 1px #0007; transition: transform .55s cubic-bezier(.34,1.56,.64,1); cursor: pointer; touch-action: pan-y; }
.hebang-hero-dial-grip { position: absolute; inset: 10px; border-radius: 50%; background: repeating-conic-gradient(#ffffff0d 0deg 3deg, #0000002e 3deg 6deg); mask-image: radial-gradient(circle, transparent 58%, #000 60%, #000 92%, transparent 94%); }
.hebang-hero-dial-indicator { position: absolute; left: 50%; top: 9px; width: 6px; height: 14px; border-radius: 999px; transform: translateX(-50%); background: linear-gradient(#ffd58a, #ff7a1a); box-shadow: 0 0 8px #ff7a1acc; }
.hebang-hero-dial-readout { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; text-align: center; }
.hebang-hero-dial-readout strong { color: #fff; font: bold 26px/1 ui-monospace, monospace; }
.hebang-hero-dial-readout > span { margin-top: 4px; color: #ffb277; font: 9px/1.4 ui-monospace, monospace; letter-spacing: .2em; }
.hebang-hero-dial-readout small { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 2px 8px; border-radius: 999px; background: #0006; color: #ffffffb3; font: 8px/1.5 ui-monospace, monospace; letter-spacing: .15em; }
.hebang-hero-dial-readout i { width: 6px; height: 6px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 6px #39d98a; }
.hebang-hero-dial-readout i.is-paused { background: #c9a227; box-shadow: none; }
.hebang-hero-dial-readout .hebang-hero-dial-action { display: none; }
.hebang-hero--carousel :is(button, a, [tabindex]):focus-visible { outline: 2px solid var(--hebang-color-primary-ink); outline-offset: 4px; }
.hebang-products-line[id] { scroll-margin-top: 160px; }

/* 宽而矮的视口中图片仍按 2:1 延伸，文案上移以保留 CTA 下方的可见空间。 */
@media (min-width: 1601px) and (max-height: 900px) {
  .hebang-hero-copy { transform: translateY(-8vh); }
}

/* 窄屏图文共用浅色底，平板控件位于舞台内；手机衔接在照片下沿。 */
@media (max-width: 1024px) {
  .hebang-hero--carousel { padding-bottom: 0; }
  .hebang-hero-stage { border-radius: 20px; padding-bottom: 16px; }
  .hebang-hero-slide { grid-template-rows: 1fr auto; aspect-ratio: auto; align-items: stretch; padding-bottom: 0; }
  /* 显式宽度使未加载图片按画幅占位，避免切图改变舞台高度。 */
  .hebang-hero-picture { position: relative; inset: auto; grid-row: 2; width: 100%; aspect-ratio: 2 / 1; border-radius: 0; }
  .hebang-hero-picture img { object-fit: contain; }
  .hebang-hero-picture::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--hebang-hero-surface), transparent 48px, transparent calc(100% - 32px), var(--hebang-hero-surface)); pointer-events: none; }
  .hebang-hero-copy { grid-row: 1; width: auto; max-width: 620px; margin: 0; padding: 38px 30px 24px; }
  .hebang-hero-title { max-width: 16ch; font-size: clamp(34px, 5vw, 48px); }
  .hebang-hero-category { margin-bottom: 14px; font-size: 12px; }
  .hebang-hero-description { max-width: 44ch; margin: 18px 0 22px; font-size: 16px; }
  /* 韩文优先在词间换行，超长定制文本仍可在容器边界折行。 */
  html:lang(ko) .hebang-hero-copy { word-break: keep-all; overflow-wrap: anywhere; }
  .hebang-hero-controls { position: relative; grid-area: 2 / 1; top: auto; left: auto; justify-self: center; transform: none; }
  .hebang-hero-controls,
  .hebang-hero-dial { width: 84px; height: 84px; }
  .hebang-hero-dial-knob { inset: 10px; width: 64px; height: 64px; }
  .hebang-hero-dial-grip { inset: 8px; }
  .hebang-hero-dial-indicator { top: 6px; width: 4px; height: 8px; }
  .hebang-hero-dial-readout strong { font-size: 22px; }
  .hebang-hero-dial-readout > span { margin-top: 2px; font-size: 8px; letter-spacing: .08em; }
  .hebang-hero-dial-readout small { gap: 4px; margin-top: 4px; padding: 0 5px; font-size: 7px; letter-spacing: .05em; }
  .hebang-hero-dial-readout i { width: 4px; height: 4px; }
  .hebang-hero-step--previous { left: -54px; }
  .hebang-hero-step--next { right: -54px; }
  .hebang-hero-step svg { width: 28px; height: 28px; }
}
@media (width < 768px) {
  /* 三个面板共享品类、图片、正文和操作行，长译文不改变切图时的画面位置。 */
  .hebang-hero-stage { grid-template-rows: auto auto auto auto minmax(178px, auto); border-radius: 0; padding-bottom: 24px; }
  .hebang-hero-slide { grid-area: 1 / 1 / 6 / 2; grid-template-rows: subgrid; }
  .hebang-hero-copy { grid-area: 1 / 1 / 6 / 2; display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr) 108px; column-gap: 14px; max-width: none; padding: 24px var(--hebang-gutter) 0; }
  .home .hebang-main .hebang-hero--carousel .hebang-hero-category { grid-area: 1 / 1 / 2 / 3; align-self: start; margin-bottom: 12px; color: #20271d; }
  .hebang-hero-title { grid-area: 3 / 1 / 4 / 3; align-self: start; max-width: none; margin-top: 8px; font-size: clamp(30px, 8.2vw, 36px); line-height: 1.12; }
  .hebang-hero-description { grid-area: 4 / 1 / 5 / 3; align-self: start; max-width: none; margin: 12px 0 0; font-size: 16px; line-height: 1.6; }
  .home .hebang-main .hebang-hero--carousel .hebang-hero-link { grid-area: 5 / 1; align-self: start; margin-top: 30px; min-height: var(--hebang-mobile-control-h); width: 100%; min-width: 0; justify-content: center; padding: 11px 12px; border-radius: var(--hebang-radius); }
  .hebang-hero-picture { grid-area: 2 / 1; aspect-ratio: 3 / 2; margin-top: 0; }
  .hebang-hero-picture img { object-fit: cover; object-position: center; }
  .hebang-hero-picture::after { z-index: 1; background: linear-gradient(to bottom, var(--hebang-hero-surface), transparent 22%, transparent 88%, var(--hebang-hero-surface)); }
  .hebang-hero-controls { grid-area: 5 / 1; justify-self: end; align-self: start; width: 108px; height: 164px; margin: 12px var(--hebang-gutter) 0 0; }
  .hebang-hero-dial { width: 108px; height: 108px; }
  /* 外圈半径大于旋钮半径，计时弧位于实体边缘外并绘制在阴影上方。 */
  .hebang-hero-dial-knob { inset: 12px; width: 84px; height: 84px; }
  .hebang-hero-dial-svg { z-index: 1; }
  .hebang-hero-dial-ticks line { stroke: #62676b; }
  .hebang-hero-dial-ticks .is-major { stroke: #20271d; }
  .hebang-hero-dial-progress { filter: none; }
  .hebang-hero-dial-readout strong { font-size: 22px; }
  .hebang-hero-dial-readout > [data-hero-mode-label] { display: none; }
  /* 状态继续参与读屏播报；可见图标直接跟随按钮的播放状态。 */
  .hebang-hero-dial-readout small { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hebang-hero-dial-readout .hebang-hero-dial-action { display: flex; margin-top: 6px; color: #fff; }
  .hebang-hero-dial-action .hebang-icon { width: 18px; height: 18px; }
  .hebang-hero-dial-action .hebang-hero-dial-pause { display: none; }
  .hebang-hero-dial-knob[aria-pressed="true"] + .hebang-hero-dial-readout .hebang-hero-dial-play { display: none; }
  .hebang-hero-dial-knob[aria-pressed="true"] + .hebang-hero-dial-readout .hebang-hero-dial-pause { display: block; }
  .hebang-hero-step { top: 118px; transform: none; border: 1px solid #e0dcd3; background: #f5f2eb; color: #20271d; box-shadow: inset 0 1px 1px #fff, 0 3px 6px #20271d12; }
  .hebang-hero-step::before { inset: 0; }
  .hebang-hero-step--previous { left: 0; }
  .hebang-hero-step--next { right: 0; }
  .hebang-hero-step svg { width: 22px; height: 22px; }
  .hebang-hero-step:active { background: #e8e4db; box-shadow: inset 0 2px 4px #20271d20; }
  .hebang-hero-stage:has(> .hebang-hero-controls[hidden]) { grid-template-rows: auto auto auto auto auto; }
  .hebang-hero-stage:has(> .hebang-hero-controls[hidden]) .hebang-hero-copy { grid-template-columns: minmax(0, 1fr); }
  .home .hebang-main .hebang-hero-stage:has(> .hebang-hero-controls[hidden]) .hebang-hero-link { grid-column: 1 / -1; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hebang-hero-slide, .hebang-hero-dial-knob, .hebang-hero-step { transition: none; }
}
