/* 蘇菲餘白｜首頁專用（C 版）。由 site-redesign-preview/assets/b.css + c-overrides.css 合成，頁首頁尾改由 yubai.css 負責。 */
/* 樣本 B｜明亮雜誌 */
:root {
  --bg: #f6f1ea;
  --paper: #fffdf9;
  --ink: #2a2521;
  --muted: #857a6f;
  --line: #e3d9cc;
  --wine: #7b2f3b;
  --wine-2: #962f40;
  --sand: #efe6da;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --latin: "Cormorant Garamond", Georgia, serif;
  --grade: saturate(0.9) contrast(1.02) brightness(1.03);
  --pad: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
figure { overflow: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.32; letter-spacing: 0.02em; }
h2 { font-size: clamp(28px, 3.8vw, 46px); }
.eyebrow { font-family: var(--latin); font-style: italic; font-size: 20px; color: var(--wine); letter-spacing: 0.04em; margin-bottom: 10px; }


/* 頁首 */

/* 按鈕 */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 99px; font-size: 15px; font-weight: 500; letter-spacing: 0.05em; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; }
.btn.primary { background: var(--wine); color: #fff; }
.btn.primary:hover { background: var(--wine-2); transform: translateY(-2px); }
.btn.ghost { border: 1px solid #cdbfae; background: var(--paper); }
.btn.ghost:hover { border-color: var(--wine); color: var(--wine); }

/* Hero：左字右圖的雜誌封面 */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; grid-template-rows: 1fr auto; gap: 0 clamp(24px, 4vw, 64px); padding: clamp(28px, 4vw, 56px) var(--pad) 0; min-height: calc(100svh - 70px); }
.hero-media { position: relative; grid-column: 2; grid-row: 1 / 3; border-radius: 2px; overflow: hidden; min-height: 520px; box-shadow: 0 30px 60px -30px rgba(60, 40, 25, 0.35); }
.hero-media .slide { position: absolute; inset: 0; object-position: 60% 22%; filter: var(--grade); opacity: 0; transform: scale(1.02); transition: opacity 1.6s var(--ease), transform 9s cubic-bezier(0.22, 0.61, 0.36, 1); }
.hero-media .slide.on { opacity: 1; transform: scale(1.08); }
.hero-veil { display: none; }
.hero-text { grid-column: 1; grid-row: 1; align-self: center; max-width: 560px; }
.hero h1 { font-size: clamp(52px, 7.6vw, 112px); font-weight: 900; letter-spacing: 0.1em; line-height: 1.05; margin-bottom: 24px; animation: rise 1.2s var(--ease) both 0.15s; }
.hero-line { font-size: clamp(16px, 1.5vw, 19px); color: #4d443d; animation: rise 1.2s var(--ease) both 0.35s; }
.hero .eyebrow { animation: rise 1.2s var(--ease) both; }
.hero .actions { animation: rise 1.2s var(--ease) both 0.55s; }
.hero-foot { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-bottom: 40px; }
.hero-foot div { padding: 18px 12px 0 0; display: flex; flex-direction: column; }
.hero-foot b { font-family: var(--serif); font-size: clamp(18px, 2vw, 26px); color: var(--wine); }
.hero-foot span { font-size: 13px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* 主張：大引言＋窄圖 */
.manifesto { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(90px, 12vw, 160px) var(--pad); background: var(--paper); margin-top: 80px; }
.manifesto-media { order: 2; position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; }
.manifesto-media img { position: absolute; inset: -8% 0; height: 116%; filter: var(--grade); object-position: 50% 20%; transform: scale(1.12); }
.manifesto-text h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.35; margin-bottom: 26px; }
.manifesto-text h2::before { content: "“"; display: block; font-family: var(--latin); font-size: 1.8em; line-height: 0.6; color: var(--wine); margin-bottom: 8px; }
.manifesto-text p:last-child { color: var(--muted); font-size: 17px; max-width: 520px; }

/* 區段 */
.section { padding: clamp(80px, 11vw, 140px) var(--pad); }
.head { margin-bottom: 44px; max-width: 720px; border-left: 3px solid var(--wine); padding-left: 20px; }

/* 療程卡：圖上字下 */
.topic-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.topic { display: block; background: var(--paper); border-radius: 2px; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.topic:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(60, 40, 25, 0.35); }
.topic figure { aspect-ratio: 4 / 5; }
.topic img { filter: var(--grade); transition: transform 1.2s var(--ease); object-position: 50% 20%; }
.topic:hover img { transform: scale(1.06); }
.topic-body { padding: 18px 18px 22px; }
.num { font-family: var(--latin); font-style: italic; font-size: 20px; color: var(--wine); }
.topic h3 { font-size: 21px; margin: 0 0 6px; }
.topic p { font-size: 14px; color: #5f564e; line-height: 1.7; }
.more { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--wine); letter-spacing: 0.06em; border-bottom: 1px solid currentColor; }

/* 短影片 */
.videos { background: var(--sand); }
.video-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.video { position: relative; aspect-ratio: 9 / 16; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; color: #fff; font: inherit; text-align: left; box-shadow: 0 18px 30px -18px rgba(60, 40, 25, 0.5); transition: transform 0.5s var(--ease); }
.video:hover { transform: translateY(-6px); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 45%); pointer-events: none; }
.play { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.92); transition: transform 0.3s var(--ease); }
.play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 13px solid var(--wine); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video:hover .play { transform: scale(1.12); }
.video-title { position: absolute; z-index: 2; inset: auto 14px 16px; font-family: var(--serif); font-size: 15px; line-height: 1.5; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; background: #000; }
.video.playing::after, .video.playing .play, .video.playing .video-title { display: none; }

/* 閱讀路徑 */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.path { background: var(--paper); padding: 16px 16px 24px; border-radius: 2px; }
.path figure { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.path img { filter: var(--grade); transition: transform 1.2s var(--ease); object-position: 50% 25%; }
.path:hover img { transform: scale(1.05); }
.path-label { font-size: 13px; color: var(--wine); letter-spacing: 0.1em; font-weight: 500; }
.path h3 { font-size: 21px; margin: 4px 0 14px; }
.path ul { list-style: none; }
.path li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px; transition: color 0.3s; }
.path li a::after { content: "→"; color: var(--wine); }
.path li a:hover { color: var(--wine); }

/* 7 個問題 */
.checklist { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); padding: clamp(80px, 11vw, 140px) var(--pad); background: var(--paper); align-items: center; }
.check-media { position: relative; aspect-ratio: 4 / 5; border-radius: 2px; }
.check-media img { position: absolute; inset: -8% 0; height: 116%; filter: var(--grade); object-position: 50% 25%; transform: scale(1.12); }
.check-body h2 { margin-bottom: 30px; }
.qs { list-style: none; }
.qs li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; }
.qs li span { font-family: var(--latin); font-size: 30px; line-height: 1; color: var(--wine); font-style: italic; }
.qs .locked { background: var(--sand); border: 0; border-radius: 2px; padding: 18px 16px; margin-top: 8px; font-size: 15px; color: #5f564e; }
.qs .locked span { font-size: 20px; }
.qs .locked a { display: inline-block; margin-left: 8px; color: var(--wine); font-weight: 500; border-bottom: 1px solid currentColor; }

/* 文章 */
.feature { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--paper); border-radius: 2px; overflow: hidden; margin-bottom: 44px; transition: box-shadow 0.5s; }
.feature:hover { box-shadow: 0 30px 50px -30px rgba(60, 40, 25, 0.35); }
.feature figure { aspect-ratio: 16 / 10; }
.feature img { filter: var(--grade); transition: transform 1.4s var(--ease); object-position: 50% 30%; }
.feature:hover img { transform: scale(1.04); }
.feature-body { padding: clamp(28px, 4vw, 56px); align-self: center; }
.feature h3 { font-size: clamp(22px, 2.4vw, 32px); margin: 10px 0 8px; }
.meta { font-family: var(--latin); font-size: 16px; color: var(--wine); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.card figure { aspect-ratio: 3 / 2; border-radius: 2px; margin-bottom: 14px; }
.card img { filter: var(--grade); transition: transform 1.2s var(--ease); object-position: 50% 25%; }
.card:hover img { transform: scale(1.06); }
.card h3 { font-size: 19px; margin-top: 4px; transition: color 0.3s; }
.card:hover h3 { color: var(--wine); }
.center { text-align: center; margin-top: 56px; }

/* 諮詢 */
.consult { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--wine); color: #fff; overflow: hidden; }
.consult-media { position: relative; min-height: 560px; overflow: hidden; order: 2; }
.consult-media img { position: absolute; inset: -8% 0; height: 116%; object-position: 55% 30%; transform: scale(1.12); }
.consult-veil { display: none; }
.consult-body { padding: clamp(60px, 8vw, 110px) var(--pad); align-self: center; }
.consult .eyebrow { color: #f1d6c4; }
.consult-items { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.consult-items span { border: 1px solid rgba(255,255,255,0.35); border-radius: 99px; padding: 4px 16px; font-size: 14px; }
.consult .btn.primary { background: #fff; color: var(--wine); }
.consult .btn.ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }

/* 頁尾 */

/* 捲動淡入 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.still .reveal { opacity: 1; transform: none; transition: none; }
.still .hero-media .slide { transition: none; transform: none; }

/* 手機 */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; padding-top: 16px; }
  .hero-media { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 4 / 5; }
  .hero-text { grid-row: 2; padding-top: 28px; }
  .hero-foot { grid-row: 3; margin-top: 32px; }
  .manifesto, .checklist, .consult { grid-template-columns: 1fr; }
  .manifesto { margin-top: 40px; }
  .manifesto-media { order: 0; }
  .consult-media { min-height: 360px; }
  .topic-rail, .video-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 12px; scrollbar-width: none; }
  .topic-rail::-webkit-scrollbar, .video-rail::-webkit-scrollbar { display: none; }
  .topic { flex: 0 0 66%; scroll-snap-align: start; }
  .video { flex: 0 0 46%; scroll-snap-align: start; }
  .path-grid, .card-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .qs li { grid-template-columns: 52px 1fr; font-size: 16px; }
}

/* 封面已印標題：不再疊字，標題只留給讀屏 */
.video::after { display: none; }
.video-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 標題不留孤字 */
h1, h2, h3 { text-wrap: balance; }
.head { max-width: 960px; }
.consult-body { max-width: 900px; }
.play { top: auto; bottom: 12px; }
.hero-line { text-wrap: pretty; }

/* ===== 樣本 C｜雜誌底＋電影章節（疊在 b.css 之後） ===== */

/* 暗場章節：在區塊內把色票換成電影暗調 */
.hero, .videos, .consult, .site-footer {
  --bg: #0f0e0d; --bg-2: #171513; --ink: #efe8de; --muted: #a69c8f;
  --line: rgba(239, 232, 222, 0.14); --gold: #c9a46a; --gold-2: #e2c48f;
  --grade: saturate(0.82) contrast(1.06) brightness(0.9) sepia(0.06);
  background: var(--bg); color: var(--ink);
}
.hero .eyebrow, .videos .eyebrow, .consult .eyebrow { color: var(--gold); }

/* 頁首：在暗場上透明，捲動後變米白實底 */

/* Hero：全幅電影開場 */
.hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; padding: 0; gap: 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-media { position: absolute; inset: 0 0 0 34%; min-height: 0; border-radius: 0; box-shadow: none; grid-column: auto; grid-row: auto; }
.hero-media .slide { object-position: 50% 22%; transition: opacity 1.8s var(--ease), transform 9s cubic-bezier(0.22, 0.61, 0.36, 1); }
.hero-media .slide.on { transform: scale(1.1); }
.hero-veil { display: block; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(15,14,13,0.55) 46%, rgba(15,14,13,0) 64%),
  linear-gradient(0deg, var(--bg) 0%, rgba(15,14,13,0) 38%),
  linear-gradient(180deg, rgba(15,14,13,0.6) 0%, rgba(15,14,13,0) 20%); }
.hero-text { position: relative; z-index: 1; padding: 0 var(--pad); max-width: 760px; margin-bottom: 9vh; align-self: auto; grid-column: auto; grid-row: auto; }
.hero h1 { font-size: clamp(54px, 9vw, 128px); letter-spacing: 0.14em; }
.hero-line { color: rgba(239, 232, 222, 0.86); }
.hero .btn.primary { background: var(--gold); color: #17130f; }
.hero .btn.primary:hover { background: var(--gold-2); }
.hero .btn.ghost { background: transparent; border-color: rgba(239, 232, 222, 0.4); color: var(--ink); }
.hero-foot { position: relative; z-index: 1; margin: 0 var(--pad); grid-column: auto; grid-row: auto; border-top: 1px solid var(--line); }
.hero-foot div { padding: 22px 0 30px; }
.hero-foot div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-foot b { color: var(--gold-2); }
.hero-foot span { color: var(--muted); }
.manifesto { margin-top: 0; }

/* 短片：暗場放映廳 */
.videos .head { border-color: var(--gold); }
.video { box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8); }
.play::after { border-left-color: #17130f; }
.video:hover .play { background: var(--gold); }

/* 諮詢：電影收尾 */
.consult { display: flex; align-items: center; min-height: 88vh; grid-template-columns: none; }
.consult-media { position: absolute; inset: 0; min-height: 0; order: 0; }
.consult-media img { filter: var(--grade) brightness(0.8); object-position: 60% 30%; }
.consult-veil { display: block; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,14,13,0.92) 0%, rgba(15,14,13,0.55) 50%, rgba(15,14,13,0.15) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
.consult-body { position: relative; z-index: 1; padding: 0 var(--pad); max-width: 900px; }
.consult .eyebrow { color: var(--gold); }
.consult-items span { border-color: var(--line); color: rgba(239, 232, 222, 0.82); }
.consult .btn.primary { background: var(--gold); color: #17130f; }
.consult .btn.ghost { border-color: rgba(239, 232, 222, 0.4); color: var(--ink); }

/* 頁尾跟著暗場收 */

@media (max-width: 900px) {
  .hero { min-height: 100svh; }
  .hero-media { inset: 0; aspect-ratio: auto; }
  .hero-media .slide { object-position: 55% 18%; }
  .hero-veil { background: linear-gradient(0deg, var(--bg) 6%, rgba(15,14,13,0.7) 42%, rgba(15,14,13,0.15) 72%), linear-gradient(180deg, rgba(15,14,13,0.6) 0%, transparent 18%); }
  .hero-text { margin-bottom: 5vh; padding-top: 0; }
  .hero-foot { margin-top: 0; }
  .hero-foot div + div { padding-left: 12px; }
  .consult { grid-template-columns: none; }
}
.hero-line { text-wrap: pretty; }

/* 暗場內標題用區塊色 */
.hero h1, .videos h2, .consult h2 { color: var(--ink); }
.hero-line { text-wrap: pretty; }
@media (max-width: 900px) { .hero-foot b { font-size: 16px; white-space: nowrap; } .hero-foot span { font-size: 11.5px; } }

/* 2026-10-12b：首頁最新文章在手機改成左右滑小卡 */
@media (max-width: 900px) {
  .journal-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 12px; scrollbar-width: none; }
  .journal-rail::-webkit-scrollbar { display: none; }
  .journal-rail .card { flex: 0 0 64%; scroll-snap-align: start; }
  .journal-rail .card figure { aspect-ratio: 4 / 3; margin-bottom: 10px; }
  .journal-rail .card h3 { font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (max-width: 900px) { .journal-rail, .topic-rail, .video-rail { scroll-padding-inline: var(--pad); } }

/* 2026-10-24b：手機首屏數據列往上讓，不被右下角 LINE 按鈕壓到 */
@media (max-width: 900px) { .hero-foot { margin-bottom: 64px; } }
