/**
 * 首屏 v2 — 對齊 Figma node 132:1094（1710×896 設計稿）
 * 用於 index.html（data-hero-v2）
 */

/* v2 跳過進場 opacity:0，避免首屏白屏 */
html[data-hero-v2] #top:not(.pub-factory-hero--lightship) .pub-factory__hero-metrics,
html[data-hero-v2] #top:not(.pub-factory-hero--lightship) .pub-quick-book--hero {
  opacity: 1 !important;
  transform: none !important;
}

html[data-hero-v2] #top:not(.pub-factory-hero--lightship) .pub-factory__intro-title-reveal__text {
  opacity: 1 !important;
}

/* ── Header：無陰影、無底部分隔線 ── */
html[data-hero-v2] .public-site__header,
html[data-hero-v2] .public-site__header--factory {
  box-shadow: none;
}

html[data-hero-v2] .public-site__header-top,
html[data-hero-v2] .public-site__header--factory .public-site__header-top {
  border-bottom: none;
  padding: 0 24px;
  gap: 16px;
}

html[data-hero-v2] .public-site__brand {
  gap: 0;
}

html[data-hero-v2] .public-site__brand-name {
  font-family: 'Noto Serif TC', 'Source Han Serif TC', 'Source Han Serif', serif;
  font-size: 18px;
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: 0.08em;
  color: #111;
}

html[data-hero-v2] .public-site__header-utils {
  gap: 20px;
}

html[data-hero-v2] .public-site__header-actions {
  gap: 8px;
}

html[data-hero-v2] .public-site__util-link {
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

html[data-hero-v2] .public-site__util-btn {
  min-height: 40px;
  padding: 9.5px 21px;
  border-radius: var(--btn-radius);
  border-color: rgba(17, 17, 17, 0.15);
  font-size: 14px;
  font-weight: 600;
}

html[data-hero-v2] .public-site__util-cta.btn {
  min-height: 40px;
  padding: 9.5px 21px;
  border-radius: var(--btn-radius);
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: var(--color-sustain);
  color: #fff;
}

html[data-hero-v2] .public-site__util-cta.btn:hover {
  background: var(--color-sustain-emphasis);
  color: #fff;
}

html[data-hero-v2] .public-site__util-cta.btn:active {
  background: #185a30;
  color: #fff;
}

/* ── 語言切換 ── */
.public-site__lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}

.public-site__lang-btn {
  padding: 4px 6px;
  border: none;
  background: transparent;
  font-family: var(--wuji-font-sans, 'Noto Sans TC', sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: rgba(17, 17, 17, 0.45);
  cursor: pointer;
  border-radius: var(--btn-radius);
  transition: color 0.15s ease;
}

.public-site__lang-btn:hover {
  color: rgba(17, 17, 17, 0.75);
}

.public-site__lang-btn--active {
  font-weight: 700;
  color: var(--color-sustain, #2d8b4e);
}

.public-site__lang-sep {
  font-size: 12px;
  color: rgba(17, 17, 17, 0.2);
  user-select: none;
}

/* AeSHOP 文案 */
html[data-hero-v2] .public-site__util-link[href*='aeshop'] {
  font-size: 0;
  line-height: 0;
}

html[data-hero-v2] .public-site__util-link[href*='aeshop']::after {
  content: 'AeSHOP';
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* ── Hero 外框：1710 稿 — 1662×806、左右 24px、內容左軌 191px ── */
.pub-factory-hero--v2 {
  position: relative;
  z-index: 2;
  --pub-hero-design-width: 1710px;
  --pub-hero-design-height: 806px;
  --factory-vh: 654px;
  --pub-hero-screen-gutter: var(--wuji-page-gutter, 24px);
  --pub-hero-rail-gutter: clamp(24px, 6vw, 80px);
  --pub-hero-book-overlap: 44px;
  --pub-hero-book-bottom: 43px;
  --pub-hero-book-block: 95px;
  --pub-hero-content-form-gap: 50px;
  --pub-hero-gap-content-book: 0;
  --pub-hero-content-nudge: 0;

  height: auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: 8px var(--pub-hero-screen-gutter) 16px;
  background: var(--color-bg-default);
  overflow: visible;
}

.pub-factory-hero--v2 .pub-factory-hero__sticky {
  height: var(--factory-vh);
  width: 100%;
  border-radius: var(--wuji-radius-hero, 20px);
  overflow: hidden;
  box-shadow: var(--wuji-shadow-card);
  transition: border-radius 0.01s linear, box-shadow 0.01s linear;
}

/* ── Scroll 進場：滿版底圖 → 縮進圓角框（參考 Lightship） ── */
.pub-factory-hero--v2.pub-factory-hero--scroll {
  --hero-v2-gutter: 0px;
  --hero-v2-radius: 0px;
  --hero-v2-frame-height: 100vh;
  --hero-v2-end-radius: 20px;
  --hero-v2-shadow-alpha: 0;

  height: 100vh;
  min-height: 100vh;
  margin-top: 0;
  margin-bottom: 0;
  padding: var(--hero-v2-gutter);
  background: var(--color-bg-default);
  box-sizing: border-box;
}

.pub-factory-hero--v2.pub-factory-hero--scroll .pub-factory-hero__sticky {
  height: var(--hero-v2-frame-height);
  border-radius: var(--hero-v2-radius);
  box-shadow:
    0 calc(8px * var(--hero-v2-shadow-alpha, 0))
    calc(32px * var(--hero-v2-shadow-alpha, 0))
    rgba(17, 17, 17, calc(0.12 * var(--hero-v2-shadow-alpha, 0)));
}

.pub-factory-hero--v2.pub-factory-hero--scroll .pub-factory__hero-media,
.pub-factory-hero--v2.pub-factory-hero--scroll .pub-factory__hero-slides {
  border-radius: var(--hero-v2-radius);
}

.pub-factory-hero--v2.pub-factory-hero--scroll .pub-factory__left {
  justify-content: flex-end;
  padding-bottom: clamp(40px, 8vh, 96px);
}

.pub-factory-hero--v2.pub-factory-hero--scroll.pub-factory-hero--scroll-settled .pub-factory__left,
.pub-factory-hero--v2.pub-factory-hero--scroll.pub-factory-hero--scroll-done .pub-factory__left {
  justify-content: center;
  padding-bottom: var(--pub-hero-rail-gutter);
}

.pub-factory-hero--v2.pub-factory-hero--scroll .pub-factory__hero-metrics--scroll-hidden {
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.pub-factory-hero--v2.pub-factory-hero--scroll .pub-factory__hero-inner--v2:has(.pub-factory__hero-metrics--scroll-hidden) {
  align-items: flex-end;
}

.pub-factory-hero--v2.pub-factory-hero--scroll .pub-factory__hero-inner--v2:has(.pub-factory__hero-metrics--scroll-hidden) .pub-factory__intro {
  padding-bottom: 0;
  flex: 1 1 auto;
  max-width: min(900px, 100%);
}

.pub-factory-hero--v2.pub-factory-hero--scroll-done {
  height: auto;
  min-height: 0;
  padding: 8px var(--pub-hero-screen-gutter) 16px;
}

.pub-factory-hero--v2.pub-factory-hero--scroll .pub-factory__hero-scroll-cue--v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  z-index: 12;
  transform: translateX(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.82);
  transition: opacity 0.2s ease;
}

.pub-factory-hero--v2 .pub-factory__hero-scroll-cue--v2 {
  display: none;
}

.pub-factory__hero-scroll-cue-text {
  font-family: var(--wuji-font-eyebrow);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pub-factory__hero-scroll-cue-line {
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  animation: pub-hero-scroll-cue-pulse 1.8s ease-in-out infinite;
}

@keyframes pub-hero-scroll-cue-pulse {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.45;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.pub-factory-hero--v2 .pub-factory__hero-media,
.pub-factory-hero--v2 .pub-factory__hero-slides {
  border-radius: 20px;
}

/* 底部漸層遮罩（Figma: 57%→92% 透明） */
.pub-factory-hero--v2 .pub-factory__hero-scrim {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 57.346%,
    rgba(0, 0, 0, 0) 91.776%
  );
}

.pub-factory-hero--v2 .pub-factory__hero-img {
  object-position: center 42%;
  animation: none;
}

.pub-factory-hero--v2:not(.pub-factory-hero--kb-js) .pub-factory__hero-img {
  transform: scale(1);
}

/* ── 標題＋績效：整列垂直置中；僅左側標題額外底留白 ── */
.pub-factory-hero--v2 .pub-factory__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: var(--pub-hero-rail-gutter);
  pointer-events: none;
}

.pub-factory-hero--v2 .pub-factory__hero-column {
  flex: 1 1 auto;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  min-height: 0;
}

.pub-factory-hero--v2 .pub-factory__hero-stack {
  width: 100%;
  flex: 0 0 auto;
  max-height: none;
}

/* 主標左／2 欄交錯績效卡右（Figma node 1:1311） */
.pub-factory-hero--v2 .pub-factory__hero-inner--v2 {
  --pub-hero-v2-title-line: 60px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 120px);
  width: 100%;
  max-width: none;
  margin: 0;
}

.pub-factory-hero--v2 .pub-factory__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  min-width: min(100%, 480px);
  padding: 0 0 80px 12px;
  flex: 1 1 520px;
  align-self: flex-end;
}

.pub-factory-hero--v2 .pub-factory__intro-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  letter-spacing: 1px;
  text-align: left;
  margin: 0;
}

.pub-factory-hero--v2 .pub-factory__intro-title-reveal:not(.pub-factory__intro-title-reveal--sub),
.pub-factory-hero--v2 .pub-factory__intro-title-reveal--sub {
  width: max-content;
  max-width: 100%;
}

.pub-factory-hero--v2 .pub-factory__intro-title-primary {
  font-family: var(--wuji-font-serif);
  font-size: clamp(36px, 2.8vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: clamp(1px, 0.18vw, 3px);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.pub-factory-hero--v2 .pub-factory__intro-title-line {
  font-family: var(--wuji-font-sans);
  font-size: clamp(16px, 1.17vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--wuji-text-on-dark);
  letter-spacing: clamp(0.5px, 0.06vw, 1px);
  white-space: nowrap;
}

html[data-lang="en"] .pub-factory-hero--v2 .pub-factory__intro-title-primary,
html[data-lang="en"] .pub-factory-hero--v2 .pub-factory__intro-title-line {
  white-space: normal;
}

.pub-factory-hero--v2:not(.pub-factory-hero--lightship) .pub-factory__intro-title-reveal__text {
  opacity: 1;
}

.pub-factory-hero--v2:not(.pub-factory-hero--lightship) .pub-factory__intro-title-reveal__wipe {
  display: none;
}

/* ── 右側 2 欄交錯績效卡（Figma） ── */
.pub-factory-hero--v2 .pub-factory__hero-metrics--v2 {
  display: block;
  flex: 1 1 451px;
  margin: 0;
  padding: 0;
  align-self: center;
  max-width: none;
  width: auto;
  min-width: 0;
  border-top: none;
  pointer-events: none;
}

.pub-factory-hero--v2 .pub-factory__hero-metrics-grid {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 11px;
}

.pub-factory-hero--v2 .pub-factory__hero-metrics-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.pub-factory-hero--v2 .pub-factory__hero-metric-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 8px;
  width: 220px;
  height: 280px;
  padding: 20px;
  box-sizing: border-box;
}

.pub-factory-hero--v2 .pub-factory__hero-metric-card--glass {
  padding: 25px 21px;
}

.pub-factory-hero--v2 .pub-factory__hero-metrics-col--lead {
  padding-top: 80px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pub-factory-hero--v2 .pub-factory__hero-metric-card--glass {
    background: rgba(30, 30, 30, 0.55);
  }
}

.pub-factory-hero--v2 .pub-factory__hero-metric-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.pub-factory-hero--v2 .pub-factory__hero-metric-value [data-hero-count],
.pub-factory-hero--v2 .pub-factory__hero-metric-value > span:first-child {
  font-family: var(--wuji-font-sans);
  font-size: clamp(36px, 3vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.pub-factory-hero--v2 .pub-factory__hero-metric-card--glass .pub-factory__hero-metric-value [data-hero-count],
.pub-factory-hero--v2 .pub-factory__hero-metric-card--glass .pub-factory__hero-metric-value > span:first-child,
.pub-factory-hero--v2 .pub-factory__hero-metric-card--glass .pub-factory__hero-metric-unit {
  color: #fff;
}

.pub-factory-hero--v2 .pub-factory__hero-metric-card--solid .pub-factory__hero-metric-value [data-hero-count],
.pub-factory-hero--v2 .pub-factory__hero-metric-card--solid .pub-factory__hero-metric-value > span:first-child,
.pub-factory-hero--v2 .pub-factory__hero-metric-card--solid .pub-factory__hero-metric-unit,
.pub-factory-hero--v2 .pub-factory__hero-metric-card--solid .pub-factory__hero-metric-label {
  color: var(--color-sustain-on-deep);
}

.pub-factory-hero--v2 .pub-factory__hero-metric-unit {
  font-family: var(--wuji-font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.pub-factory-hero--v2 .pub-factory__hero-metric-label {
  margin: 0;
  font-family: var(--wuji-font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.pub-factory-hero--v2 .pub-factory__hero-metric-card--glass .pub-factory__hero-metric-label {
  color: rgba(255, 255, 255, 0.78);
}

/* ── 預約列（與標題／ESG 同軌道、元件上下置中） ── */
.pub-factory-hero--v2 .pub-factory__hero-slide--active {
  pointer-events: none;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 {
  position: absolute;
  z-index: 20;
  pointer-events: auto;
  isolation: auto;
  left: var(--pub-hero-rail-gutter);
  right: var(--pub-hero-rail-gutter);
  width: auto;
  max-width: none;
  margin: 0;
  bottom: var(--pub-hero-book-bottom);
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  color: var(--color-text-primary);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__grid {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  min-width: 0;
  min-height: 71px;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell {
  flex: 1 1 0;
  min-width: 0;
  min-height: 71px;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.15s ease;
}

/* 覆蓋 factory.css hero focus-within：選完不殘留底色 */
.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell:focus-within {
  background: transparent;
  box-shadow: none;
}

/* 下拉欄：桌面 hover 提示可點區，不整格反白 */
@media (hover: hover) {
  .pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell:has(.pub-quick-book__cell-select):hover {
    background: rgba(17, 17, 17, 0.03);
  }
}

/* 開啟選單中（JS data-menu-open）短暫提示 */
.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell[data-menu-open] {
  background: rgba(17, 17, 17, 0.05);
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__divider {
  flex: 0 0 1px;
  align-self: center;
  width: 1px;
  height: 43px;
  background: rgba(17, 17, 17, 0.1);
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell-label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(17, 17, 17, 0.4);
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell-control,
.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__stepper-value {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.96);
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23757575' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell-select:focus {
  outline: none;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell-select:focus-visible {
  outline: 2px solid var(--color-ring, #dc2626);
  outline-offset: 2px;
  border-radius: 4px;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell--count {
  position: relative;
  z-index: 1;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__stepper {
  position: relative;
  z-index: 2;
  align-items: center;
  gap: 10px;
  user-select: none;
  -webkit-user-select: none;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__stepper-btn {
  position: relative;
  z-index: 3;
  min-width: 26px;
  min-height: 26px;
  padding: 5px 10px;
  color: rgba(17, 17, 17, 0.68);
  border: none;
  border-radius: var(--btn-radius);
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__stepper-btn:focus {
  outline: none;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__stepper-btn:focus-visible {
  outline: 2px solid var(--color-ring, #dc2626);
  outline-offset: 1px;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__stepper-btn:hover:not(:disabled) {
  background: var(--color-bg-subtle);
  color: #111;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__stepper-value {
  min-width: 24px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: #111;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__submit {
  flex: 0 0 149px;
  width: 149px;
  align-self: center;
  min-width: 120px;
  max-width: 149px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  margin: 0;
  padding: 0;
  border-radius: var(--btn-radius);
  border: none;
  background: var(--color-primary);
  color: #fafaf8;
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  outline: 1px solid transparent;
  outline-offset: -1px;
  box-shadow: none;
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__submit:hover {
  background: var(--color-primary-hover);
}

.pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__error {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--space-6));
}

.pub-factory-hero--v2:not(.pub-factory-hero--scroll) .pub-factory__hero-scroll-cue {
  display: none;
}

/* 中寬螢幕：縮小績效卡，避免被 overflow 裁切 */
@media (min-width: 992px) and (max-width: 1499px) {
  .pub-factory-hero--v2 .pub-factory__hero-inner--v2 {
    gap: clamp(20px, 3vw, 72px);
  }

  .pub-factory-hero--v2 .pub-factory__hero-metric-card {
    width: clamp(160px, 14vw, 220px);
    height: clamp(200px, 18vw, 280px);
  }

}

@media (min-width: 992px) and (max-width: 1299px) {
  .pub-factory-hero--v2 .pub-factory__hero-inner--v2 {
    flex-direction: column;
    align-items: flex-start;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metrics--v2 {
    flex: 1 1 auto;
    width: 100%;
    align-self: stretch;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metrics-grid {
    justify-content: flex-start;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metrics-col--lead {
    padding-top: 0;
  }

  .pub-factory-hero--v2 .pub-factory__intro {
    padding-bottom: 0;
  }
}

/* ── 1200–1709：高度與間距線性插值至 1710 稿 ── */
@media (min-width: 1200px) and (max-width: 1709px) {
  .pub-factory-hero--v2 {
    --factory-vh: clamp(
      654px,
      calc(654px + (100vw - 1200px) * 152 / 510),
      805px
    );
    --pub-hero-book-bottom: clamp(43px, calc(43px + (100vw - 1200px) * 5 / 510), 48px);
    --pub-hero-content-form-gap: clamp(50px, calc(50px + (100vw - 1200px) * 12 / 510), 62px);
    padding-top: clamp(8px, calc(8px + (100vw - 1200px) * 3 / 510), 11px);
    padding-bottom: clamp(16px, calc(16px + (100vw - 1200px) * 13 / 510), 29px);
  }
}

/* ── 1710 設計稿精準值 ── */
@media (min-width: 1710px) {
  .pub-factory-hero--v2 {
    --factory-vh: var(--pub-hero-design-height);
    --pub-hero-book-bottom: 48px;
    --pub-hero-book-block: 95px;
    --pub-hero-content-form-gap: 62px;
    padding: 8px var(--pub-hero-screen-gutter) 16px;
  }

  .pub-factory-hero--v2 .pub-factory__intro-title-primary {
    font-size: 48px;
    line-height: 60px;
    letter-spacing: 3px;
  }

  .pub-factory-hero--v2 .pub-factory__intro-title-line {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .pub-factory-hero--v2 .pub-factory__hero-inner--v2 {
    gap: 120px;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metric-value [data-hero-count] {
    font-size: 48px;
  }
}

/* ── RWD ── */
@media (max-width: 991px) {
  .pub-factory-hero--v2 {
    --factory-vh: 580px;
    --pub-hero-screen-gutter: 16px;
    --pub-hero-rail-gutter: 24px;
    padding: 8px var(--pub-hero-screen-gutter) 24px;
  }

  .pub-factory-hero--v2:not(.pub-factory-hero--scroll) .pub-factory-hero__sticky,
  .pub-factory-hero--v2:not(.pub-factory-hero--scroll) .pub-factory__hero-media,
  .pub-factory-hero--v2:not(.pub-factory-hero--scroll) .pub-factory__hero-slides {
    border-radius: 20px;
  }

  .pub-factory-hero--v2.pub-factory-hero--scroll-done {
    padding: 8px var(--pub-hero-screen-gutter) 24px;
  }

  .pub-factory-hero--v2 .pub-factory__hero-inner--v2 {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    width: 100%;
    max-width: 100%;
  }

  .pub-factory-hero--v2 .pub-factory__intro {
    max-width: 100%;
    padding-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .pub-factory-hero--v2 .pub-factory__intro-title-primary,
  .pub-factory-hero--v2 .pub-factory__intro-title-line {
    white-space: normal;
  }

  .pub-factory-hero--v2 .pub-factory__intro-title-reveal:not(.pub-factory__intro-title-reveal--sub),
  .pub-factory-hero--v2 .pub-factory__intro-title-reveal--sub {
    width: 100%;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metrics--v2 {
    width: 100%;
    align-self: stretch;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metrics-grid {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metric-card {
    width: min(220px, calc(50% - 6px));
    height: auto;
    min-height: 200px;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metrics-col--lead {
    padding-top: 0;
  }

  .pub-factory-hero--v2 .pub-factory__intro {
    padding-left: 0;
  }

  .pub-factory-hero--v2 .pub-factory__intro-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .pub-factory-hero--v2 .pub-factory__intro-title-reveal:not(.pub-factory__intro-title-reveal--sub),
  .pub-factory-hero--v2 .pub-factory__intro-title-reveal--sub {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    max-width: none;
  }

  .pub-factory-hero--v2 .pub-factory__left {
    justify-content: center;
    padding:
      clamp(40px, 8vw, 80px)
      var(--pub-hero-rail-gutter)
      clamp(32px, 6vw, 64px);
  }

  .pub-factory-hero--v2 .pub-factory__intro {
    padding-bottom: 48px;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metrics-col {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metric-card {
    width: 100%;
  }

  .pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 {
    left: var(--pub-hero-rail-gutter);
    right: var(--pub-hero-rail-gutter);
    width: auto;
    max-width: none;
    margin: 0;
  }

  .pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__grid {
    flex-wrap: wrap;
    gap: 0;
  }

  .pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__divider {
    display: none;
  }

  .pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell {
    flex: 1 1 calc(50% - 8px);
    min-height: 64px;
  }

  .pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__submit {
    flex: 1 1 100%;
    width: 100%;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    margin-top: 8px;
  }
}

@media (max-width: 575px) {
  .pub-factory-hero--v2 {
    --factory-vh: 500px;
    --pub-hero-screen-gutter: 16px;
    --pub-hero-rail-gutter: 24px;
    --pub-hero-book-block: 180px;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metric-label {
    white-space: normal;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metrics-col {
    flex: 1 1 100%;
  }

  .pub-factory-hero--v2 .pub-factory__hero-metric-card {
    min-height: 160px;
  }

  .pub-factory-hero--v2 .pub-quick-book.pub-quick-book--hero-v2 .pub-quick-book__cell {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pub-factory-hero--v2 .pub-factory__intro-title-reveal__text {
    opacity: 1;
  }

  .pub-factory-hero--v2 .pub-factory__intro-title-reveal__wipe {
    display: none;
  }
}
