/* Full original photography, with a separate mobile frame and restrained motion. */
.premium-hero__frame { position:absolute; inset:0; display:block; }
.premium-hero__frame > .premium-hero__image { inset:0; width:100%; height:100%; opacity:0; object-fit:cover; }
.premium-hero__frame > .premium-hero__image.is-active { opacity:1; }
.premium-hero[data-official-hero] { background:#000; min-height:clamp(560px,calc(100svh - 122px),790px); }
.premium-hero[data-official-hero]::before { background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.75) 24%,transparent 58%); }
.premium-hero[data-official-hero] .premium-hero__visual { inset:0 0 0 29%; z-index:-3; animation:none; }
.premium-hero[data-official-hero] .premium-hero__frame > .premium-hero__image { object-fit:contain; object-position:center; }
.premium-hero[data-official-hero] .premium-hero__light { display:none; }
.premium-hero[data-official-hero] .premium-hero__inner { padding-block:100px 124px; }
.premium-hero[data-official-hero] .premium-hero__copy { max-width:38%; }
.premium-hero[data-official-hero] h1 { font-size:clamp(54px,5.5vw,86px); letter-spacing:-.055em; }
.premium-hero[data-official-hero] .premium-hero__copy p { max-width:30ch; font-size:14px; line-height:1.9; }
.premium-hero__price { display:grid; gap:5px; max-width:38ch; margin-top:20px; padding-left:14px; border-left:2px solid #c8d0c0; }
.premium-hero__price > strong { color:#f3f4ef; font-size:20px; line-height:1.35; font-weight:500; }
.premium-hero__price > span { color:#c4cbc6; font-size:11px; line-height:1.65; }
.premium-hero[data-official-hero] .premium-hero__actions { margin-top:24px; }
.premium-hero[data-official-hero] .premium-eyebrow { color:#c2bab9; font-size:10px; letter-spacing:.16em; }
.premium-hero[data-official-hero] .premium-button { border-radius:40px; padding-inline:24px; }
.premium-hero[data-official-hero] .premium-hero__foot { border-color:#292727; }
.premium-hero[data-official-hero] .hero-motion-toggle { border-radius:24px; background:transparent; }
.commerce-product .gallery__main img[src*="/catalog/"] { padding:6px; }
.premium-offer-band { background:#f1f1eb; border-bottom:1px solid #dcded5; }
.premium-offer-band > .container { display:grid; grid-template-columns:minmax(150px,.7fr) minmax(0,3fr) auto; align-items:center; gap:clamp(24px,4vw,64px); padding-block:25px; }
.premium-offer-band__amount { display:grid; gap:3px; padding-right:clamp(20px,3vw,48px); border-right:1px solid #cdd1c6; }
.premium-offer-band__amount > span,.premium-offer-band__details > div > span { color:#68705f; font-size:10px; line-height:1.4; text-transform:uppercase; }
.premium-offer-band__amount > strong { color:#222a1e; font-size:32px; line-height:1.12; font-weight:500; font-variant-numeric:tabular-nums; }
.premium-offer-band__amount > small { color:#68705f; font-size:11px; line-height:1.5; }
.premium-offer-band__details { display:grid; grid-template-columns:1.25fr 1fr; gap:clamp(16px,2.6vw,40px); }
.premium-offer-band__details > div { min-width:0; }
.premium-offer-band__details p { margin-top:6px; color:#2b3028; font-size:12px; line-height:1.65; }
.premium-offer-band > .container > a { align-self:center; white-space:nowrap; color:#30382b; font-size:11px; }
.premium-offer-band > .container > a span { margin-left:8px; }
@media(prefers-reduced-motion:no-preference) {
  [data-hero-ready="true"] .premium-hero__frame > .premium-hero__image { transform:translate3d(var(--hero-pointer-x,0px),var(--hero-pointer-y,0px),0); scale:1.015; transition:opacity 1250ms cubic-bezier(.2,.5,.3,1),scale 1250ms cubic-bezier(.2,.5,.3,1); }
  [data-hero-ready="true"] .premium-hero__frame > .premium-hero__image.is-active { animation:hero-image-push 6500ms ease-in-out both; }
  [data-hero-state="paused"] .premium-hero__frame > .premium-hero__image.is-active { animation-play-state:paused; }
  .premium-hero[data-official-hero][data-hero-state="running"] .premium-hero__frame > .premium-hero__image { scale:1.045; }
}
@keyframes hero-image-push { from { scale:1.015; } to { scale:1.045; } }
@media(max-width:1000px) and (min-width:741px) {
  .premium-hero[data-official-hero] { min-height:600px; }
  .premium-hero[data-official-hero] .premium-hero__visual { left:34%; }
  .premium-hero[data-official-hero] .premium-hero__copy { max-width:42%; }
  .premium-hero[data-official-hero] h1 { font-size:56px; }
}
@media(max-width:740px) {
  .premium-offer-band > .container { grid-template-columns:minmax(0,1fr) auto; gap:18px 20px; padding-block:20px; }
  .premium-offer-band__amount { padding-right:20px; }
  .premium-offer-band__amount > strong { font-size:29px; }
  .premium-offer-band__details { grid-column:1/-1; grid-template-columns:1fr 1fr; gap:16px 20px; }
  .premium-offer-band__details > div:first-child { grid-column:1/-1; }
  .premium-offer-band__details p { font-size:12px; }
  .premium-offer-band > .container > a { grid-column:2; grid-row:1; font-size:10px; }
  .premium-hero[data-official-hero] { display:flex; flex-direction:column; min-height:0; padding-top:0; }
  .premium-hero[data-official-hero]::before { display:none; }
  .premium-hero[data-official-hero] .premium-hero__inner { order:0; min-height:0; width:100%; padding-block:44px 0; }
  .premium-hero[data-official-hero] .premium-hero__copy { max-width:none; text-align:center; width:100%; }
  .premium-hero__price { margin:18px auto 0; padding-left:0; border-left:0; }
  .premium-hero__price > strong { font-size:18px; }
  .premium-hero__price > span { font-size:10px; }
  .premium-hero[data-official-hero] .premium-eyebrow { justify-content:center; margin-bottom:18px; font-size:9px; }
  .premium-hero[data-official-hero] h1 { font-size:clamp(42px,11vw,66px); line-height:1.04; }
  .premium-hero[data-official-hero] .premium-hero__copy p { margin:18px auto 0; max-width:32ch; font-size:12px; line-height:1.85; }
  .premium-hero[data-official-hero] .premium-hero__actions { justify-content:center; gap:20px; margin-top:24px; }
  .premium-hero[data-official-hero] .premium-button { min-height:46px; font-size:12px; padding:12px 20px; gap:22px; }
  .premium-hero[data-official-hero] .premium-hero__visual { position:relative; inset:auto; order:1; width:100%; aspect-ratio:1.65; z-index:auto; margin-block:12px 8px; pointer-events:auto; touch-action:pan-y; }
  .premium-hero[data-official-hero] .premium-hero__frame > .premium-hero__image { z-index:auto; object-fit:contain; }
  .premium-hero[data-official-hero] .premium-hero__foot { position:relative; inset:auto; order:2; margin:0 var(--container-pad); padding-block:14px 18px; gap:10px; display:flex; flex-wrap:wrap; }
  .premium-hero[data-official-hero] .premium-hero__explore { font-size:10px; }
  .premium-hero[data-official-hero] .premium-hero__caption { width:100%; order:3; text-align:center; font-size:9px; margin:0; padding-top:3px; }
  .premium-hero[data-official-hero] .hero-carousel { margin-left:auto; gap:8px; }
  .premium-hero[data-official-hero] .hero-carousel > button { width:40px; min-height:44px; font-size:9px; }
  .premium-hero[data-official-hero] .hero-motion-toggle { min-height:40px; padding:8px 10px; font-size:9px; gap:8px; }
  .premium-hero--collection[data-official-hero] .premium-hero__inner { padding-top:36px; }
}
@media(max-width:370px) {
  .premium-offer-band > .container { grid-template-columns:1fr; gap:15px; }
  .premium-offer-band__amount { border-right:0; border-bottom:1px solid #cdd1c6; padding:0 0 12px; }
  .premium-offer-band__details { grid-template-columns:1fr; }
  .premium-offer-band__details > div:first-child { grid-column:auto; }
  .premium-offer-band > .container > a { grid-column:auto; grid-row:auto; justify-self:start; }
  .premium-hero[data-official-hero] .premium-hero__explore { display:none; }
  .premium-hero[data-official-hero] .hero-carousel { margin-left:0; }
  .premium-hero[data-official-hero] .hero-motion-toggle { margin-left:auto; }
}

/* Give the delivery-fee promise its own readable hierarchy on both hero entry points. */
:is(.premium-hero--home,.premium-hero--collection) .premium-hero__copy p.premium-reservation-callout {
  box-sizing:border-box;
  display:grid;
  gap:15px;
  width:100%;
  max-width:440px;
  margin-top:26px;
  padding:25px 26px;
  border:1px solid #ffe9b9;
  border-radius:12px;
  background:linear-gradient(125deg,#fff4d9 0%,#f6dfa9 58%,#ebc779 100%);
  box-shadow:0 16px 44px rgba(0,0,0,.26),0 0 30px rgba(239,211,153,.1);
  text-align:left;
  overflow-wrap:anywhere;
}
.premium-reservation-callout > strong {
  color:#201c13;
  font-size:clamp(27px,2.25vw,32px);
  font-weight:750;
  line-height:1.18;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.premium-reservation-callout > span {
  display:block;
  padding-top:14px;
  border-top:1px solid rgba(57,43,15,.22);
  color:#49402c;
  font-size:15px;
  font-weight:600;
  line-height:1.55;
}
.premium-hero--home .premium-hero__actions .premium-button--light {
  min-height:54px;
  background:#f7dfac;
  color:#171b16;
  font-size:14px;
  font-weight:700;
  box-shadow:0 6px 24px rgba(239,211,153,.12);
}
.premium-hero--home .premium-hero__actions .premium-button--light:hover {
  background:#ffe9bc;
}
@media(max-width:740px) {
  :is(.premium-hero--home,.premium-hero--collection) .premium-hero__copy p.premium-reservation-callout {
    margin:22px auto 0;
    padding:22px 21px;
    gap:14px;
  }
  .premium-reservation-callout > strong {
    font-size:clamp(24px,6.5vw,28px);
  }
  .premium-reservation-callout > span {
    font-size:14px;
    padding-top:12px;
  }
}

/* --- variant selector states (agent5) --- */

/* ---------------------------------------------------------------------------
   Variant selector — 选中 / 缺货 / 焦点 三态可辨识（追加在文件末尾，不覆盖旧规则）
   与 app.js 的 ProductPage.refresh() 配套：选中 .selected，缺货 .is-unavailable
   -------------------------------------------------------------------------- */
.option.is-unavailable {
  opacity: .55 !important;
  text-decoration: none;
}
.option.is-unavailable .option__price { text-decoration: none; }
.option:disabled { cursor: not-allowed; }

/* Storage cards already show a check icon. A ::before dot becomes a flex item
   at the top of the card, so it stays off for every option. */
.option.selected::before,
.option--swatch.selected::before,
.option--storage.selected::before { content: none; display: none; }

.option:focus-visible {
  outline: 2px solid #1A1A1A;
  outline-offset: 2px;
}
.option.selected:focus-visible {
  outline-color: #1A1A1A;
  outline-offset: 3px;
}

.option--storage.is-unavailable .option__price { opacity: 1; text-decoration: none; }
.qty input:invalid { border-color: #b3261e; }

/* Selected option stays a white card with a black ring. The old solid-black
   fill made the storage price, the check, and the stray dot unreadable. */
.option.selected {
  background: #fff !important;
  color: #1A1A1A !important;
  border-color: #111 !important;
  box-shadow: inset 0 0 0 1px #111 !important;
}

/* ---------------------------------------------------------------------------
   Warm-white override (agent1 redesign) — 追加在最后，cascade 后者胜。
   本文件是 base.html 中最后加载的样式表，因此这里的覆盖同时压过
   official-imaging.css 上方的黑底 hero 规则、premium.css / atelier.css 的
   深色 hero 规则，以及先于本文件加载的 official-detail.css（商品页黑底故事区）。
   旧规则一条未删，只做覆盖。
   -------------------------------------------------------------------------- */
:root {
  --ww-bg: #F7F5F2;
  --ww-surface: #FFFFFF;
  --ww-ink: #1A1A1A;
  --ww-ink-2: #5E5C58;
}

/* hero：黑底 + 左侧黑色渐变遮罩 → 暖白底，遮罩改为暖白淡出 */
.premium-hero[data-official-hero] { background: var(--ww-bg); color: var(--ww-ink); }
.premium-hero[data-official-hero]::before { background: linear-gradient(90deg,rgba(247,245,242,.92) 0%,rgba(247,245,242,.6) 26%,rgba(247,245,242,0) 58%); }
.premium-hero[data-official-hero] h1 { color: var(--ww-ink); }
.premium-hero[data-official-hero] .premium-hero__copy p { color: var(--ww-ink-2); }
.premium-hero[data-official-hero] .premium-eyebrow { color: var(--ww-ink-2); }
.premium-hero[data-official-hero] .premium-hero__price { border-left-color: #D8D3CB; }
.premium-hero[data-official-hero] .premium-hero__price > strong { color: var(--ww-ink); }
.premium-hero[data-official-hero] .premium-hero__price > span { color: var(--ww-ink-2); }
.premium-hero[data-official-hero] .premium-hero__foot { border-top-color: #E2DDD5; color: var(--ww-ink-2); }
.premium-hero[data-official-hero] .premium-hero__explore { color: var(--ww-ink); }
.premium-hero[data-official-hero] .premium-hero__caption { color: var(--ww-ink-2); }

/* hero 按钮：白底黑字 + 1px 墨色描边（压掉原 #f7dfac 金色 CTA） */
.premium-hero[data-official-hero] .premium-button { background: var(--ww-surface); color: var(--ww-ink); border: 1px solid var(--ww-ink); box-shadow: none; }
.premium-hero[data-official-hero] .premium-button:hover { background: #FFFFFF; color: var(--ww-ink); border-color: var(--ww-ink); }
.premium-hero[data-official-hero] .premium-button--light { background: var(--ww-surface); color: var(--ww-ink); border: 1px solid var(--ww-ink); box-shadow: 0 1px 3px rgba(26,26,26,.08); }
.premium-hero[data-official-hero] .premium-button--light:hover { background: #F0EDE8; color: var(--ww-ink); }
.premium-hero[data-official-hero] .premium-button--dark { background: var(--ww-ink); color: #FFFFFF; border: 1px solid var(--ww-ink); }
.premium-hero[data-official-hero] .premium-button--dark:hover { background: #000000; color: #FFFFFF; }

/* hero 轮播 / 暂停控件：白底上的深色控件 */
.premium-hero[data-official-hero] .hero-carousel > button { color: var(--ww-ink-2); }
.premium-hero[data-official-hero] .hero-carousel > button > i { background: rgba(26,26,26,.25); }
.premium-hero[data-official-hero] .hero-carousel > button > i::after { background: var(--ww-ink); }
.premium-hero[data-official-hero] .hero-carousel > button[aria-current="true"] { color: var(--ww-ink); }
.premium-hero[data-official-hero] .hero-carousel > button:focus-visible { outline-color: var(--ww-ink); }
.premium-hero[data-official-hero] .hero-motion-toggle { background: var(--ww-surface); color: var(--ww-ink); border: 1px solid var(--ww-ink); }
.premium-hero[data-official-hero] .hero-motion-toggle:hover { background: #F0EDE8; border-color: var(--ww-ink); }
.premium-hero[data-official-hero] .hero-motion-toggle:focus-visible { outline-color: var(--ww-ink); }

/* 商品页设备故事区（official-detail.css 先加载）：黑底 → 暖白，1:1 图不再被 1.895 裁成留白 */
.official-device-story { background: var(--ww-bg); color: var(--ww-ink); }
main#main .official-device-story h2 { color: var(--ww-ink); }
.official-device-story__eyebrow { color: var(--ww-ink-2); }
.official-device-story__heading > p { color: var(--ww-ink-2); }
.official-device-story__note { color: var(--ww-ink-2); }
.official-colour-stage { aspect-ratio: 1 / 1; background: var(--ww-surface); }
.official-colour-scene, .official-camera-scene { background: var(--ww-surface); color: var(--ww-ink); }
.official-colour-scene:focus-visible, .official-camera-scene:focus-visible { outline-color: var(--ww-ink); }
.official-colour-scene__hint { color: var(--ww-ink); border-color: #D8D3CB; background: rgba(255,255,255,.86); }
.official-colour-choices button { border-color: #D8D3CB; color: var(--ww-ink-2); background: var(--ww-surface); }
.official-colour-choices button[aria-pressed="true"] { border-color: var(--ww-ink); color: #FFFFFF; background: var(--ww-ink); }
.official-colour-choices button:hover { border-color: var(--ww-ink); color: var(--ww-ink); }
.official-colour-choices button:hover[aria-pressed="true"] { color: #FFFFFF; }
.official-colour-choices button:focus-visible { outline-color: var(--ww-ink); }
.official-colour-choices i { border-color: rgba(26,26,26,.2); }

/* hero 图现在是 1:1 暖白商品图，hero 区是横向的：cover 会把手机裁掉，
   这里改 contain，让整台机器完整显示，暖白留白与 --ww-bg 接近（#F5F5F7 vs #F7F5F2）。 */
.premium-hero[data-official-hero] .premium-hero__image { object-fit: contain; object-position: center; height: 100%; }
.premium-hero[data-official-hero] .premium-hero__visual > .premium-hero__frame > .premium-hero__image { object-fit: contain; transform: none; }
@media(max-width:740px) {
  .premium-hero[data-official-hero] .premium-hero__image { object-fit: contain; height: 100%; }
  .premium-hero[data-official-hero] .premium-hero__visual > .premium-hero__frame > .premium-hero__image { object-fit: contain; }
}

@media(max-width:740px) {
  .premium-hero[data-official-hero]::before { display: none; }
  .premium-hero[data-official-hero] .premium-hero__copy p { color: var(--ww-ink-2); }
  .premium-hero[data-official-hero] .premium-hero__price { border-left: 0; }
  .official-colour-stage { aspect-ratio: 1 / 1; }
}
