/* CIS v3（2026-12-03）：三主色 深藍 #34405E／奶茶白 #FFFCF6／陶土紅 #A55A45；衍生 深藍淡底 #EFEDEA、陶土淡底 #F4E9E1、深藍次要字 #61697F、陶土細線 #D6B3A6。
   每區塊最多三色；換主軸換主色；裝飾減量。只改視覺。 */
:root {
  --font-hand: var(--font-body);
  --scribble-image: none;
  --portrait-wash: none; --flow-wash: none; --hero-wash: none;
  --theme-bg: #FFFCF6;
  --focus-ring: 2px solid #34405E;
}
:root body { background: #FFFCF6; color: #34405E; }

/* 手寫字只留首頁大標與引言 */
:root body .dc-h1, :root body .dc-quote__text { font-family: "Iansui", var(--font-body); }

/* ---- 換主軸換主色 ---- */
:root body main { background: var(--theme-bg); }
:root body:has(.sp-topic) main, :root body:has(.faq-section) main { --theme-bg: #EFEDEA; }
:root body:has(.post-index) main, :root body:has(.post__heading) main { --theme-bg: #F4E9E1; }
:root body :is(.section, .section--milk, .section--light, .section--apricot, .section--mist, .section--sage, .sp-topic, .sp-topic--reverse,
  .sp-howto, .sp-pricing, .faq-terms, .faq-section, .dc-hero, .dc-quote, .page-head, .ab-story, .privacy-section) {
  --section-bg: transparent; background: transparent;
}
/* 首頁：認識我（奶茶白）→ 怎麼陪你（深藍淡底，服務＋流程同一主軸）→ 他們的故事（陶土淡底） */
:root body .dc-services, :root body .dc-flow { --section-bg: #EFEDEA; background: #EFEDEA; }
:root body .dc-flow { border-top: 1px solid #D6B3A6; }
:root body .dc-testimonials { --section-bg: #F4E9E1; background: #F4E9E1; }
/* 同一頁內不再交替色塊 */
:root body:has(.sp-topic) :is(.sp-topic, .sp-howto, .sp-pricing) { border-top: 1px solid #D6B3A6; }
:root body .faq-terms { border-top: 1px solid #D6B3A6; }

/* ---- 拿掉波浪邊、水彩暈染 ---- */
:root body :is(.section--wave, .dc-services, .dc-testimonials, .site-footer)::before { content: none; }
:root body :is(.section--apricot, .section--mist, .section--sage, .dc-testimonials, .dc-services, .dc-flow, .sp-topic, .sp-pricing):has(+ .signoff)::after { content: none; }
:root body .dc-hero::before, :root body .dc-hero::after { content: none; background: none; }
:root body .wave, :root body .doodle, :root body .blob__wash { display: none; }
:root body .scribble { background: none; padding-bottom: 0; }

/* ---- 落款預約區：陶土紅水墨漸層 ---- */
:root body .signoff {
  background: radial-gradient(ellipse 75% 115% at 92% 100%, rgb(165 90 69 / .42) 0%, #D6B3A6 28%, #F4E9E1 55%, #FFFCF6 88%);
  color: #34405E;
}
:root body .signoff::before, :root body .signoff::after { content: none; background: none; }
:root body .signoff :is(h2, .dc-cta-title, .lead, p) { color: #34405E; }
:root body .signoff__decor { color: #A55A45; opacity: 1; }

/* ---- 頁尾：深藍底、奶茶白字 ---- */
:root body .site-footer { background: #34405E; color: #FFFCF6; --section-bg: #34405E; border-top: 0; }
:root body .site-footer :is(p, small, span, a, li, .small) { color: #FFFCF6; }
:root body .site-footer a { text-decoration-color: #D6B3A6; }
:root body .site-footer :is(hr, .site-footer__navs) { border-color: #D6B3A6; }
:root body .site-footer svg { color: #FFFCF6; }

/* ---- 按鈕、連結、QR、浮動鈕 ---- */
:root body .btn-primary { background: #A55A45; color: #FFFFFF; }
:root body .btn-primary:hover { background: #A55A45; filter: none; }
:root body .btn-secondary { border-color: #34405E; color: #34405E; background: transparent; }
:root body .btn-secondary:hover { background: #EFEDEA; }
:root body main a:not([class]) { color: #34405E; text-decoration: underline; text-decoration-color: #D6B3A6; text-underline-offset: 4px; }
:root body .line-qr { background: #FFFFFF; border: 1px solid #D6B3A6; box-shadow: none; }
:root body .line-float { background: #A55A45; color: #FFFFFF; }
:root body .line-float:hover { background: #A55A45; }
:root body .tag { background: #EFEDEA; color: #34405E; }
:root body :is(.dc-svc-card, .post-index__item, .dc-testi-card, .faq-item, .price-card, .sp-price-card) { box-shadow: none; }

/* ---- 照片：去背新形象照＋陶土紅水墨漸層圓形底 ---- */
:root body .portrait-wash {
  position: relative; overflow: hidden; border-radius: 50%; aspect-ratio: 1;
  background: radial-gradient(ellipse 95% 80% at 50% 100%, rgb(165 90 69 / .55) 0%, #D6B3A6 34%, #F4E9E1 62%, #FFFCF6 100%);
  outline: 0; box-shadow: none;
}
:root body .portrait-wash picture { display: contents; }
:root body .portrait-wash .portrait-cut {
  position: absolute; left: 50%; top: 5%; transform: translateX(-50%);
  inline-size: 92%; block-size: auto; max-inline-size: none; object-fit: contain; border-radius: 0;
}
/* 首頁：照片外圈繞字 */
:root body .dc-hero-card { display: flex; flex-direction: column; align-items: center; gap: 10px; grid-template-columns: none; max-inline-size: 30rem; justify-self: center; }
:root body .portrait-ring { position: relative; inline-size: min(100%, 440px); aspect-ratio: 1; }
:root body .portrait-ring__text { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
:root body .portrait-ring__text text { font-family: var(--font-body); font-size: 23px; letter-spacing: .34em; fill: #34405E; }
:root body .portrait-ring > .portrait-wash { position: absolute; inset: 9%; }
:root body .dc-portrait-caption { color: #34405E; margin-block-start: 4px; }
:root body .dc-card-sub { color: #61697F; }
/* 關於頁照片 */
:root body .ab-portrait.portrait-wash { inline-size: min(100%, 400px); outline: 0; }
@media (max-width: 767.98px) {
  :root body .portrait-ring { inline-size: min(86vw, 340px); }
  :root body .portrait-ring__text text { font-size: 25px; letter-spacing: .3em; }
  :root body .ab-portrait.portrait-wash { inline-size: min(82vw, 320px); margin-inline: auto; }
}
/* ---- 再拿掉：手機服務項目之間的波浪短線、流程的手繪直線、服務頁與色塊底部的反向波浪 ---- */
:root body .dc-svc-card + .dc-svc-card::before { background: #D6B3A6; block-size: 1px; inline-size: 64px; inset-block-start: -12px; }
:root body .dc-flow__list::before { content: none; }
:root body .sp-topic--reverse:has(+ .sp-topic)::after,
:root body :is(.section--apricot, .section--mist, .section--sage, .dc-testimonials, .dc-services, .dc-flow):has(+ .signoff)::after { content: none; }
:root body :is(.section--wave, .dc-services, .dc-testimonials, .site-footer) { margin-block-start: 0; }

/* ---- 12/03：人物背景改用陶土紅水墨暈染（不填滿、有透明感）---- */
:root body .portrait-wash { overflow: visible; border-radius: 0; background: none; isolation: isolate; }
:root body .portrait-wash::before {
  content: ""; position: absolute; z-index: -1;
  inset: 12% 0 -4% 8%;
  background: url("/assets/img/ink-wash-clay.webp") center / contain no-repeat;
  opacity: .88; pointer-events: none;
}
:root body .portrait-wash .portrait-cut {
  top: 2%; inline-size: 88%;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 97%);
}
:root body .ab-portrait.portrait-wash { aspect-ratio: 4 / 5; }
:root body .ab-portrait.portrait-wash::before { inset: 16% -2% 0 6%; }
/* 照片只在底部裁切（淡出），左右上方讓水墨可以超出；說明文字不被蓋住 */
:root body .portrait-wash { clip-path: inset(-40% -40% 0 -40%); }
:root body .portrait-wash::before { opacity: 1; inset: 10% -4% -2% 4%; }
:root body .portrait-wash .portrait-cut { top: 0; inline-size: auto; block-size: 112%; max-inline-size: none; left: 50%; }
:root body .ab-portrait.portrait-wash .portrait-cut { block-size: 104%; }
/* 底部完全淡出後才到裁切線，不留直線邊 */
:root body .portrait-wash::before { inset: 8% -4% 7% 4%; }
:root body .portrait-wash .portrait-cut {
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 86%);
          mask-image: linear-gradient(to bottom, #000 58%, transparent 86%);
}
:root body .ab-portrait.portrait-wash .portrait-cut {
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent 93%);
          mask-image: linear-gradient(to bottom, #000 64%, transparent 93%);
}
/* 由下往上暈開：水墨貼齊人物下方，越往上越淡到透明 */
:root body .portrait-wash::before { inset: 18% -10% 0 -6%; background-position: center bottom; background-size: 100% auto; }
:root body .ab-portrait.portrait-wash::before { inset: 22% -10% 0 -6%; }
/* 水墨圖完整放進框內（不裁切上緣），底部對齊 */
:root body .portrait-wash::before { inset: -8% -16% 0 -12%; background-size: contain; background-position: center bottom; }
:root body .ab-portrait.portrait-wash::before { inset: -4% -16% 0 -12%; }
/* 「開口求助」插畫：四周暈開淡出（電腦、手機都一樣），不要圓角框 */
:root body .dc-quote__img {
  border-radius: 0;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%);
}
@media (max-width: 767.98px) {
  :root body .dc-quote__img {
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
            mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  }
}
/* 人物在最上層、不透明；只在最底緣短短收邊，水墨全部在人物後面 */
:root body .portrait-wash .portrait-cut {
  position: absolute; z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, #000 81%, transparent 89%);
          mask-image: linear-gradient(to bottom, #000 81%, transparent 89%);
}
:root body .ab-portrait.portrait-wash .portrait-cut {
  -webkit-mask-image: linear-gradient(to bottom, #000 87%, transparent 96%);
          mask-image: linear-gradient(to bottom, #000 87%, transparent 96%);
}
:root body .portrait-wash::before { z-index: 0; }
/* 引言出處：保留，字更小更淡 */
:root body .dc-quote__src { font-size: 11px; opacity: .6; letter-spacing: .06em; margin-block-start: 6px; }
/* 水墨暈開範圍加大（左右與上方都往外擴） */
:root body .portrait-wash { clip-path: inset(-60% -60% 0 -60%); }
:root body .portrait-wash::before { inset: -18% -38% 0 -34%; }
:root body .ab-portrait.portrait-wash::before { inset: -14% -34% 0 -30%; }
@media (max-width: 767.98px) {
  :root body .portrait-wash::before { inset: -14% -24% 0 -22%; }
  :root body .ab-portrait.portrait-wash::before { inset: -10% -22% 0 -20%; }
}
/* 12/03 Vicky：回到圓形陶土紅遮罩；水彩全部在圓內、由下往上由深到淺；只用陶土紅 */
:root body .portrait-wash { overflow: hidden; border-radius: 50%; clip-path: none; background: #FFFCF6; isolation: isolate; aspect-ratio: 1; }
:root body .portrait-wash::before,
:root body .ab-portrait.portrait-wash::before { inset: 0; z-index: 0; opacity: 1; background: url("/assets/img/ink-wash-clay.webp") center / cover no-repeat; }
:root body .portrait-wash .portrait-cut,
:root body .ab-portrait.portrait-wash .portrait-cut {
  z-index: 1; top: 5%; left: 50%; inline-size: 70%; block-size: auto; transform: translateX(-50%);
  -webkit-mask-image: none; mask-image: none;
}
@media (max-width: 767.98px) {
  :root body .portrait-wash::before,
  :root body .ab-portrait.portrait-wash::before { inset: 0; }
}
:root body .ab-portrait.portrait-wash .portrait-cut { inline-size: 84%; top: 4%; }
/* 12/03：邊緣不平整，微微透出水墨水滴；人物仍在圓內、最上層 */
:root body .portrait-wash { overflow: visible; border-radius: 0; background: none; clip-path: none; }
:root body .portrait-wash::before,
:root body .ab-portrait.portrait-wash::before { inset: -6%; background: url("/assets/img/ink-wash-drop.webp") center / 100% 100% no-repeat; }
:root body .portrait-wash .portrait-cut { clip-path: ellipse(71.4% 44.6% at 50% 40.2%); }
:root body .ab-portrait.portrait-wash .portrait-cut { clip-path: ellipse(59.5% 46.5% at 50% 42.8%); }
/* 12/03 Vicky：邊緣改回平整圓形（水彩在圓內、由下往上由深到淺、只用陶土紅） */
:root body .portrait-wash { overflow: hidden; border-radius: 50%; background: #FFFCF6; clip-path: none; }
:root body .portrait-wash::before,
:root body .ab-portrait.portrait-wash::before { inset: 0; background: url("/assets/img/ink-wash-clay.webp") center / cover no-repeat; }
:root body .portrait-wash .portrait-cut,
:root body .ab-portrait.portrait-wash .portrait-cut { clip-path: none; }
