/* 卡片與翻開的提案不加陰影（DESIGN §4「陰影：不用」；2026-10-14 拿掉） */
.idea-page {
  --idea-ink: #20382f;
  --idea-paper: #f5f2ec;
  --idea-muted: #504b44;
  --idea-ease: cubic-bezier(.16, 1, .3, 1);
  padding: 38px clamp(18px, 4vw, 40px) 32px;
  background: #dfd4c3;
  transition: background-color 650ms ease;
  overflow: clip;
}
.idea-page * { box-sizing: border-box; }
.idea-page [hidden] { display: none !important; }
.idea-page ::selection { background: var(--idea-ink); color: var(--idea-paper); }
.idea-page button, .idea-page a { -webkit-tap-highlight-color: transparent; }
.idea-page button { color: var(--idea-ink); }
.idea-page svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.idea-intro { text-align: center; }
.idea-intro h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.5; color: var(--idea-ink); }
.idea-intro p { margin: 12px auto 0; max-width: 56em; font-size: 14px; line-height: 1.9; color: var(--idea-muted); }
/* The room palette follows the selected photograph; only this gallery changes color. */
.idea-stage { position: relative; margin: 20px calc(-1 * clamp(18px, 4vw, 40px)) 0; }
.idea-cards, .plan-cards {
  --card-width: clamp(250px, 27vw, 340px);
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  padding: 28px calc((100% - var(--card-width)) / 2) 38px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.idea-cards::-webkit-scrollbar, .plan-cards::-webkit-scrollbar { display: none; }
.idea-slot, .plan-slot { width: var(--card-width); aspect-ratio: 4 / 5; flex: 0 0 auto; scroll-snap-align: center; }
.idea-card, .plan-card {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  flex: 0 0 auto;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--idea-ink);
  transform: perspective(1200px) rotateY(-18deg) scale(.87);
  transition: transform 650ms var(--idea-ease);
}
.idea-card.is-before, .plan-card.is-before { transform: perspective(1200px) rotateY(18deg) scale(.87); }
.idea-card.is-selected, .plan-card.is-selected { transform: perspective(1200px) rotateY(0deg) scale(1); }
.idea-card-cover { position: absolute; inset: 0; overflow: hidden; text-align: left; border-radius: inherit; color: #fff; }
.idea-card-cover::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #1c1917e8); pointer-events: none; }
.idea-card-cover img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.idea-card-edition { position: absolute; top: 20px; left: 22px; z-index: 1; padding: 6px 10px; background: #20382f; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; border-radius: 5px; }
.idea-card-title { position: absolute; bottom: 48px; left: 26px; z-index: 1; font: 500 clamp(26px, 2.8vw, 36px)/1.5 'Noto Serif TC', 'Songti TC', serif; }
.idea-card-style { position: absolute; bottom: 26px; left: 28px; z-index: 1; font-size: 14px; line-height: 1.8; }
.idea-gallery-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 850px; margin: 0 auto; }
.idea-selection h2 { margin: 0 0 6px; font-size: 26px; font-weight: 500; color: var(--idea-ink); }
.idea-selection p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--idea-muted); }
.idea-page .idea-action { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--idea-ink); border-radius: 8px; background: var(--idea-ink); color: #fff; white-space: nowrap; font-size: 14px; }
.idea-action svg { transition: transform 180ms var(--idea-ease); }
.idea-action:hover svg { transform: translateX(3px); }
.idea-gallery-tools { max-width: 850px; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 24px auto 0; border-top: 1px solid #20382f26; padding-top: 10px; }
.idea-hint { font-size: 13px; color: var(--idea-muted); line-height: 1.8; margin: 0; }
.idea-hint span { display: block; }
.idea-pagination { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--idea-ink); }
.idea-pagination button { width: 44px; height: 44px; padding: 10px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; }
.idea-pagination button:hover { background: #ffffff66; }
.idea-total { color: var(--idea-muted); }
.idea-credit { margin: 26px 0 0; text-align: center; font-size: 13px; line-height: 1.9; color: var(--idea-muted); }
.idea-reader { max-width: 1050px; margin: 24px auto 0; }
.idea-reader-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.idea-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: transparent; border: 0; padding: 8px 0; font-size: 14px; }
.idea-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.idea-spread { display: grid; grid-template-columns: 1fr 1fr; perspective: 1600px; background: var(--idea-paper); }
.idea-photo-page { min-width: 0; background: #fff; animation: idea-photo-arrive 450ms var(--idea-ease); }
.idea-photo { display: block; position: relative; height: clamp(330px, 34vw, 470px); background: #fff; }
.idea-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.idea-spread:has(.idea-photo.is-plan) { background: transparent; box-shadow: none; }
.idea-photo-page:has(.idea-photo.is-plan), .idea-photo.is-plan { background: var(--idea-background); }
.idea-photo.is-plan img { object-fit: contain; padding: 18px; mix-blend-mode: multiply; }
.idea-photo-zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 44px; background: var(--idea-paper); color: var(--idea-ink); font-size: 12px; border-radius: 5px; }
.idea-photo svg { width: 16px; height: 16px; }
.idea-image-switch { display: flex; justify-content: center; gap: 28px; padding: 6px 14px; }
.idea-image-switch button { min-height: 44px; border: 0; border-bottom: 2px solid transparent; padding: 8px 4px; background: transparent; font-size: 13px; }
.idea-image-switch button[aria-pressed="true"] { border-bottom-color: var(--idea-ink); font-weight: 600; }
.idea-copy { min-width: 0; padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; transform-origin: left; background: var(--idea-paper); box-shadow: inset 9px 0 16px -12px #20382f55; animation: idea-page-open 450ms var(--idea-ease); }
.idea-who { font-size: 12px; margin: 0 0 14px; color: var(--idea-muted); }
.idea-copy h2 { margin: 0; font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.4; color: var(--idea-ink); }
.idea-tagline { font-family: 'Noto Serif TC', 'Songti TC', serif; font-size: 18px; line-height: 1.8; color: var(--idea-ink); margin: 18px 0 0; }
.idea-note { font-size: 14px; line-height: 1.9; color: var(--idea-muted); margin: 22px 0 0; }
.idea-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--idea-ink); }
.idea-points li { border-bottom: 1px solid #c9c3b8; padding-bottom: 5px; }
.idea-reader-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; }
.idea-reader-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.idea-empty-start { margin: 14px 0 0; font-size: 12px; line-height: 1.8; color: var(--idea-muted); }
.plan-page { --idea-background: var(--idea-paper); background: var(--idea-background); }
.plan-page .plan-summary { margin-top: 4px; color: var(--idea-ink); font-size: 13px; }
.plan-cards { --card-width: min(56vw, 550px); padding-block: 22px 28px; }
.plan-slot { aspect-ratio: auto; height: clamp(330px, 31vw, 420px); }
.plan-card { aspect-ratio: auto; background: var(--idea-paper); text-align: left; }
.plan-card-image { display: block; height: calc(100% - 66px); padding: 32px 18px 10px; }
.plan-card-image img { mix-blend-mode: multiply; pointer-events: none; }
.plan-card-code { position: absolute; top: 12px; left: 18px; font-size: 14px; font-weight: 600; }
.plan-card-caption { display: flex; flex-direction: column; gap: 4px; padding: 8px 18px; }
.plan-card-caption > :first-child { font: 500 22px/1.4 'Noto Serif TC','Songti TC',serif; }
.plan-card-caption > :last-child { color: var(--idea-muted); font-size: 13px; }
.plan-tools { margin-top: 0; }
.plan-details { max-width: 850px; margin: 26px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; }
.plan-selection h2 { margin: 0 0 6px; font-size: 26px; font-weight: 500; color: var(--idea-ink); }
.plan-selection p, .plan-note { margin: 0; color: var(--idea-muted); font-size: 14px; line-height: 1.9; }
.plan-specs { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 16px 0 12px; list-style: none; font-size: 13px; color: var(--idea-ink); }
.plan-specs li { border-bottom: 1px solid #c9c3b8; padding-bottom: 5px; }
.plan-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.plan-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.plan-page .plan-unavailable { min-height: 48px; padding: 12px 22px; border: 1px solid #c9c3b8; border-radius: 8px; background: transparent; color: #8a857c; cursor: default; font-size: 14px; }
@keyframes idea-page-open { from { transform: translateX(22px); opacity: .2; } to { transform: translateX(0); opacity: 1; } }
@keyframes idea-photo-arrive { from { transform: scale(.96); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 760px) {
  .idea-page { padding-top: 22px; }
  .idea-intro h1 { max-width: 11em; margin-inline: auto; font-size: 26px; line-height: 1.45; }
  .idea-intro p { max-width: 26em; font-size: 13px; line-height: 1.7; }
  .idea-stage { margin-top: 10px; }
  .idea-cards { --card-width: min(68vw, 310px); gap: 16px; padding-block: 22px 30px; }
  .plan-cards { --card-width: min(80vw, 360px); gap: 16px; }
  .plan-slot { height: 350px; }
  .plan-card-caption > :first-child { font-size: 20px; }
  .plan-details { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
  .plan-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
  .plan-actions button { flex-basis: 100%; }
  .idea-card-title { font-size: 28px; left: 22px; }
  .idea-card-style { left: 24px; }
  .idea-gallery-bottom { align-items: flex-start; margin-top: 0; gap: 16px; }
  .idea-selection h2 { font-size: 24px; }
  .idea-selection p { font-size: 13px; max-width: 16em; }
  .idea-gallery-bottom .idea-action { padding-inline: 14px; gap: 8px; }
  .idea-hint { max-width: 16em; }
  .idea-hint span { display: block; }
  .idea-gallery-tools { margin-top: 18px; }
  .idea-credit { text-align: left; }
  .idea-reader { margin-top: 16px; }
  .idea-spread { grid-template-columns: minmax(0, 1fr); }
  .idea-photo { height: min(95vw, 460px); }
  .idea-copy { padding: 26px 22px; box-shadow: none; animation: none; }
  .idea-photo-page { animation: none; }
  .idea-reader-actions { margin-top: 22px; }
}
/* 房型頁桌機（2026-10-14 Ben：照 design-taste-frontend 檢視第 4 項）：平面圖放大到第一屏的主角，房型說明與「開始家具配置」放右欄，
   1440×900 不用捲就看得到按鈕；旁邊的房型只露一條邊，看得出可以滑，不再切一半。手機維持原本上下排列 */
@media (min-width: 1000px) {
  .plan-page { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); column-gap: clamp(32px, 4vw, 64px); padding-top: 28px; padding-inline: max(clamp(18px, 4vw, 40px), (100% - 1388px) / 2); }
  .plan-page > .idea-intro, .plan-page > :last-child { grid-column: 1 / -1; }
  .plan-page > .idea-intro { text-align: left; }
  .plan-page > .idea-intro p { margin-left: 0; }
  .plan-page .idea-stage { grid-column: 1; margin: 6px 0 0 calc(-1 * clamp(18px, 4vw, 40px)); }
  .plan-page .plan-cards { --card-width: min(38vw, 560px); gap: 24px; padding-block: 12px 16px; }
  .plan-page .plan-slot { height: clamp(380px, calc(100svh - 330px), 560px); }
  .plan-page .plan-card:not(.is-selected) .plan-card-caption { opacity: 0; transition: opacity 300ms; }   /* 旁邊只露一條邊：名稱被切一半像跑版，只留代號 */
  .plan-page .plan-tools { grid-column: 1; width: 100%; max-width: none; margin: 0; }
  .plan-page .plan-details { grid-column: 2; grid-row: 2 / span 2; align-self: center; grid-template-columns: minmax(0, 1fr); max-width: 420px; margin: 0; gap: 22px; }
  .plan-page .plan-actions { gap: 4px; }
  .plan-page .plan-actions .idea-action { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .idea-page, .idea-card, .plan-card, .idea-action svg { transition: none; }
  .idea-card, .idea-card.is-before, .idea-card.is-selected, .plan-card, .plan-card.is-before, .plan-card.is-selected { transform: none; }
  .idea-copy, .idea-photo-page { animation: none; }
  .idea-card.is-selected, .plan-card.is-selected { outline: 2px solid var(--idea-ink); outline-offset: 10px; }
}

/* #245 背景毛玻璃輪播（Ben 2026-10-06）：提案自己的照片模糊後慢慢輪播，上面蓋一層提案底色；右側文字頁是毛玻璃。
   木光樂境有兩張不同的照片會交替；其他提案只有一張照片，慢慢推近。 */
.idea-page { position: relative; isolation: isolate; }
.idea-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.idea-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) saturate(1.15); transform: scale(1.15); }
.idea-backdrop::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--idea-background) 58%, transparent); }
.idea-backdrop.n1 img { animation: idea-backdrop-drift 26s ease-in-out infinite alternate; }
.idea-backdrop.n2 img { opacity: 0; animation: idea-backdrop-fade 18s linear infinite; }
.idea-backdrop.n2 img:nth-child(2) { animation-delay: -9s; }
@keyframes idea-backdrop-drift { from { transform: scale(1.15) translate(0, 0); } to { transform: scale(1.3) translate(-3%, 2%); } }
@keyframes idea-backdrop-fade { 0% { opacity: 0; transform: scale(1.3); } 7% { opacity: 1; } 50% { opacity: 1; } 57% { opacity: 0; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.15); } }
.idea-spread { background: transparent; }
.idea-copy { background: color-mix(in srgb, var(--idea-paper) 72%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
@media (prefers-reduced-motion: reduce) {
  .idea-backdrop img { animation: none !important; }
  .idea-backdrop.n2 img:first-child { opacity: 1; }
}
