
/* CDJ_ROOM_THEME_V1_20260708 */
:root{
  --cdj-ink:#332821;
  --cdj-muted:#7d6b5e;
  --cdj-paper:#fffaf1;
  --cdj-cream:#fff3dc;
  --cdj-line:#ead8bd;
  --cdj-brand:#9b5d25;
  --cdj-brand-dark:#6f3b17;
  --cdj-green:#5a8d74;
  --cdj-shadow:0 18px 48px rgba(91,57,25,.12);
  --cdj-radius:24px;
}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,248,235,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--cdj-line);box-shadow:0 4px 18px rgba(88,58,30,.06)}
.header-inner{width:min(1380px,calc(100% - 40px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 0}.brand{display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;min-width:300px}.brand img{width:62px;height:62px;border-radius:50%;object-fit:cover;background:#fff;border:1px solid #f0dcc0;box-shadow:0 8px 22px rgba(91,57,25,.12)}.brand strong{display:block;font-size:30px;font-weight:900;letter-spacing:.02em;line-height:1.05}.brand span span{display:block;font-size:17px;color:var(--cdj-muted);margin-top:5px}.nav{display:flex;gap:28px;align-items:center;white-space:nowrap;font-weight:900;font-size:18px;overflow-x:auto}.nav a{position:relative;padding:12px 0;color:inherit;text-decoration:none}.nav a.active{color:var(--cdj-brand-dark)}.nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:4px;height:4px;border-radius:4px;background:var(--cdj-brand)}
.room-home{background:linear-gradient(180deg,#fff8eb 0%,#fffdf7 48%,#fff8ee 100%);color:var(--cdj-ink)}.room-hero{position:relative;min-height:520px;display:grid;align-items:stretch;overflow:hidden;border-bottom:1px solid rgba(151,105,61,.18);background:#f8ecd6}.room-hero img{width:100%;height:520px;object-fit:cover;object-position:center center;display:block;filter:saturate(1.02) contrast(1.01)}.room-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,246,226,.90) 0%,rgba(255,246,226,.74) 24%,rgba(255,246,226,.25) 52%,rgba(255,246,226,.03) 100%)}.room-hero-copy{position:absolute;z-index:2;left:7%;top:50%;transform:translateY(-50%);max-width:760px}.room-kicker{display:inline-flex;align-items:center;gap:8px;font-weight:900;color:#8a521f;background:rgba(255,248,232,.93);border:1px solid rgba(210,170,113,.65);padding:9px 16px;border-radius:999px;box-shadow:0 12px 28px rgba(99,59,23,.1)}.room-slogan{font-family:"Noto Serif TC","Noto Sans TC","PingFang TC","Microsoft JhengHei",serif;font-size:clamp(28px,3vw,42px);line-height:1.9;letter-spacing:.08em;font-weight:900;margin:24px 0;text-shadow:0 2px 0 rgba(255,255,255,.8);max-width:760px}.room-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.room-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:14px 24px;border:1px solid #cda87b;background:#fff8eb;color:#6c421e;box-shadow:0 12px 28px rgba(93,56,20,.12);font-weight:900;text-decoration:none}.room-btn.primary{background:var(--cdj-brand);color:#fff;border-color:var(--cdj-brand)}.room-wrap{width:min(1280px,calc(100% - 40px));margin:auto;padding:36px 0 80px}.room-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:26px 0 18px}.room-section-head h2{font-family:"Noto Serif TC","Noto Sans TC",serif;font-size:32px;margin:0;letter-spacing:.06em}.room-section-head p{margin:8px 0 0;color:var(--cdj-muted);font-size:16px;line-height:1.8}.room-portal-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}.room-portal-card{background:rgba(255,255,250,.93);border:1px solid var(--cdj-line);border-radius:20px;padding:15px;box-shadow:var(--cdj-shadow);transition:.2s transform,.2s box-shadow;color:inherit;text-decoration:none}.room-portal-card:hover{transform:translateY(-5px);box-shadow:0 24px 55px rgba(91,57,25,.17)}.room-portal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.room-portal-title{font-size:24px;font-weight:900;letter-spacing:.04em}.room-portal-arrow{font-size:24px;color:#9b5d25}.room-portal-ill{height:138px;border-radius:15px;overflow:hidden;border:1px solid #ead8bd;background:#f7e4c7;margin-bottom:14px}.room-portal-ill svg{width:100%;height:100%;display:block}.room-portal-card p{font-size:18px;line-height:1.75;font-weight:800;text-align:center;margin:0;color:#4f3c32;letter-spacing:.04em}.memory .room-portal-title{color:#9b5d25}.clinic .room-portal-title{color:#5e8b72}.library .room-portal-title{color:#8a5a28}.style .room-portal-title{color:#435a78}.photo .room-portal-title{color:#6d5a86}.room-roles{margin-top:36px;background:rgba(255,255,250,.90);border:1px solid var(--cdj-line);border-radius:28px;box-shadow:var(--cdj-shadow);padding:24px}.room-roles-intro{display:grid;grid-template-columns:280px 1fr;gap:24px;align-items:center;border-bottom:1px solid #ead8bd;padding-bottom:20px;margin-bottom:20px}.room-roles-intro h2{margin:0;font-size:31px}.room-roles-intro p{color:var(--cdj-muted);font-size:18px;line-height:1.8;margin:0}.room-role-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.room-role{background:#fffaf1;border:1px solid #ead8bd;border-radius:20px;padding:12px;text-align:center}.room-avatar{height:142px;border-radius:16px;overflow:hidden;background-image:url('../assets/style-refresh/family-video.webp');background-size:840px auto;background-repeat:no-repeat;margin-bottom:10px;border:1px solid #ead8bd}.room-home .room-avatar{background-image:url('./assets/step1a-redo/hero.png')}.room-dad{background-position:37% 37%}.room-mom{background-position:64% 34%}.room-sis{background-position:53% 42%}.room-bro{background-position:69% 58%}.room-ama{background-position:84% 39%}.room-role h3{font-size:22px;margin:8px 0 4px}.room-role span{display:block;color:var(--cdj-muted);font-weight:700}.room-footer-cta{margin:36px 0 0;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(120deg,#8c572a,#b27638);color:white;border-radius:28px;padding:24px 30px;box-shadow:0 22px 50px rgba(111,59,23,.22)}.room-footer-cta h2{margin:0 0 4px;font-size:26px}.room-footer-cta p{margin:0;color:rgba(255,255,255,.86)}.room-footer-cta .room-btn{background:#fff;color:#7a461e;border-color:#fff}
.room-page{background:linear-gradient(180deg,#fff8eb 0%,#fffdf7 60%,#fff8ee 100%);color:var(--cdj-ink)}.room-page-hero{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:68px 0 28px}.room-page-hero .eyebrow{display:inline-flex;font-weight:900;color:#8a521f;background:#fff2d7;border:1px solid #ead8bd;border-radius:999px;padding:8px 14px}.room-page-hero h1{font-family:"Noto Serif TC","Noto Sans TC",serif;font-size:clamp(48px,7vw,88px);line-height:1.06;margin:20px 0 16px}.room-page-hero p{font-size:21px;line-height:1.9;color:var(--cdj-muted);max-width:780px}.room-story-grid{width:min(1180px,calc(100% - 40px));margin:0 auto 76px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.room-story-card{display:block;background:#fffdf8;border:1px solid #ead8bd;border-radius:22px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 18px 45px rgba(91,57,25,.10);transition:.2s transform,.2s box-shadow}.room-story-card:hover{transform:translateY(-4px);box-shadow:0 24px 55px rgba(91,57,25,.16)}.room-story-card figure{margin:0;background:#fff6e6}.room-story-card img{width:100%;aspect-ratio:1200/630;object-fit:cover;display:block}.room-card-body{padding:18px}.room-card-meta{font-size:13px;color:#9b7652;font-weight:900;margin:0 0 10px}.room-card-body h3{font-size:22px;line-height:1.35;margin:0 0 10px}.room-card-body p{font-size:15px;line-height:1.75;color:#6f6259;margin:0}.room-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.room-tags span{font-size:12px;font-weight:800;color:#765436;background:#fff0d7;border:1px solid #ead8bd;border-radius:999px;padding:5px 9px}.future-shelf{width:min(1180px,calc(100% - 40px));margin:-40px auto 80px;background:#fffdf8;border:1px dashed #d6b98d;border-radius:24px;padding:22px;color:#6f6259}.future-shelf strong{color:#6f3b17}.room-simple-footer{width:min(1180px,calc(100% - 40px));margin:0 auto 70px;padding:24px;border-top:1px solid #ead8bd;color:#806f62;display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap}.room-simple-footer a{font-weight:900;color:#7a461e;text-decoration:none}
@media (max-width:1080px){.header-inner{align-items:flex-start}.brand strong{font-size:24px}.brand span span{font-size:14px}.nav{gap:20px;font-size:16px;max-width:100%;padding-bottom:2px}.room-hero img{height:440px}.room-slogan{font-size:25px}.room-portal-grid,.room-role-grid{grid-template-columns:repeat(2,1fr)}.room-story-grid{grid-template-columns:repeat(2,1fr)}.room-roles-intro{grid-template-columns:1fr}}
@media (max-width:680px){.header-inner{width:calc(100% - 28px);display:block;padding:10px 0}.brand{min-width:0;margin-bottom:8px}.brand img{width:48px;height:48px}.brand strong{font-size:22px}.brand span span{font-size:13px}.nav{gap:18px}.room-hero img{height:560px;object-position:58% center}.room-hero:after{background:linear-gradient(180deg,rgba(255,246,226,.96) 0%,rgba(255,246,226,.70) 45%,rgba(255,246,226,.05) 100%)}.room-hero-copy{left:22px;right:22px;top:38%;max-width:none}.room-slogan{font-size:22px;line-height:1.85}.room-wrap{width:calc(100% - 32px);padding:26px 0 60px}.room-portal-grid,.room-role-grid,.room-story-grid{grid-template-columns:1fr}.room-footer-cta{display:block}.room-footer-cta .room-btn{display:inline-block;margin-top:16px}.room-roles{padding:16px}.room-simple-footer{display:block}.room-page-hero,.room-story-grid,.future-shelf,.room-simple-footer{width:calc(100% - 32px)}.room-page-hero{padding-top:42px}.room-page-hero h1{font-size:46px}}


/* CDJ_HERO_BALANCE_HOTFIX_20260708
   目標：首頁主視覺完整呈現一家人；移除圖片上的覆蓋文字與按鈕；標語改放在圖片下方獨立區塊。 */
.room-home .room-hero.room-hero-clean{
  min-height:0;
  display:block;
  overflow:hidden;
  background:#fff8eb;
  border-bottom:0;
}
.room-home .room-hero.room-hero-clean img{
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  object-position:center top;
  display:block;
  filter:saturate(1.02) contrast(1.01);
}
.room-home .room-hero.room-hero-clean::after{display:none;}
.room-home .room-hero-copy{display:none;}
.room-hero-statement{
  background:linear-gradient(180deg,#fffaf3 0%,#fff8eb 100%);
  border-top:1px solid rgba(151,105,61,.12);
  border-bottom:1px solid rgba(151,105,61,.16);
  padding:20px 0 22px;
}
.room-hero-statement-inner{
  width:min(1280px,calc(100% - 40px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.room-hero-statement p{
  margin:0;
  max-width:920px;
  font-size:20px;
  line-height:1.85;
  letter-spacing:.04em;
  font-weight:800;
  color:#4b3a30;
}
/* 修正 CSS 相對路徑，讓角色裁切圖能從 css/ 正確找到 assets/ */
.room-home .room-avatar{background-image:url('../assets/style-refresh/family-video.webp');}
@media (max-width:1080px){
  .room-home .room-hero.room-hero-clean img{height:auto;object-fit:contain;object-position:center top;}
  .room-hero-statement-inner{display:block;}
  .room-hero-statement .room-actions{margin-top:14px;}
}
@media (max-width:680px){
  .room-home .room-hero.room-hero-clean img{height:auto;object-fit:contain;object-position:center top;}
  .room-hero-statement{padding:16px 0 18px;}
  .room-hero-statement-inner{width:calc(100% - 32px);}
  .room-hero-statement p{font-size:17px;line-height:1.8;}
}


/* CDJ_HERO_STATEMENT_HOTFIX_20260708
   移除首頁標語區「開始閱讀」按鈕，讓標語獨立呈現；桌機版避免斷成兩行。 */
.room-hero-statement{
  padding:18px 0 20px;
  background:linear-gradient(180deg,#fffaf3 0%,#fff7e8 100%);
}
.room-hero-statement-inner{
  width:min(1480px,calc(100% - 64px));
  display:block;
  text-align:center;
}
.room-hero-statement p{
  max-width:none;
  margin:0 auto;
  font-family:"Noto Serif TC","Noto Sans TC","PingFang TC","Microsoft JhengHei",serif;
  font-size:clamp(18px,1.32vw,23px);
  line-height:1.55;
  letter-spacing:.025em;
  font-weight:800;
  color:#6f4a2b;
  text-wrap:balance;
}
.room-hero-statement .room-actions{display:none;}
@media (min-width:1180px){
  .room-hero-statement p{white-space:nowrap;}
}
@media (max-width:680px){
  .room-hero-statement{
    padding:14px 0 16px;
  }
  .room-hero-statement-inner{width:calc(100% - 32px);}
  .room-hero-statement p{
    white-space:normal;
    font-size:16px;
    line-height:1.75;
    letter-spacing:.02em;
  }
}

/* CDJ_HERO_FINAL_CTA_FIX_20260708
   修正：hero 圖片內建的「開始閱讀」已由新版 hero.png 移除；功能 CTA 放到圖片下方，標語桌機維持單行。 */
.room-hero-statement{
  padding:16px 0 18px;
  background:linear-gradient(180deg,#fffaf3 0%,#fff7ea 100%);
}
.room-hero-statement-inner{
  width:min(1600px,calc(100% - 56px));
  margin:0 auto;
  text-align:center;
}
.room-hero-statement p{
  max-width:none;
  margin:0 auto;
  font-family:"Noto Serif TC","Noto Sans TC","PingFang TC","Microsoft JhengHei",serif;
  font-size:clamp(15px,1.02vw,19px);
  line-height:1.5;
  letter-spacing:.01em;
  font-weight:700;
  color:#7a5739;
  white-space:nowrap;
  text-wrap:normal;
}
.room-hero-statement .room-statement-actions{
  display:flex !important;
  justify-content:center;
  align-items:center;
  margin-top:12px;
  gap:12px;
}
.room-hero-statement .room-statement-actions .room-btn{
  padding:11px 22px;
  font-size:16px;
  box-shadow:0 10px 22px rgba(93,56,20,.13);
}
@media (max-width:900px){
  .room-hero-statement p{
    white-space:normal;
    font-size:16px;
    line-height:1.75;
  }
}


/* CDJ_CONTENT_ROOM_BG_V61_20260709
   Standalone content pages only: memory / clinic / library / style / photo.
   Homepage is not targeted here. Backgrounds are clean room illustrations, not UI screenshots. */
body.room-page.room-memory { --cdj-room-bg: url('../assets/img/room-family-clean-v61.png?v=61'); }
body.room-page.room-clinic { --cdj-room-bg: url('../assets/img/room-health-clean-v61.png?v=61'); }
body.room-page.room-library { --cdj-room-bg: url('../assets/img/room-library-clean-v61.png?v=61'); }
body.room-page.room-style { --cdj-room-bg: url('../assets/img/room-style-clean-v61.png?v=61'); }
body.room-page.room-photo { --cdj-room-bg: url('../assets/img/room-light-clean-v61.png?v=61'); }
body.room-page.room-memory,
body.room-page.room-clinic,
body.room-page.room-library,
body.room-page.room-style,
body.room-page.room-photo {
  position: relative;
  min-height: 100vh;
  background: #f4eee4;
}
body.room-page.room-memory::before,
body.room-page.room-clinic::before,
body.room-page.room-library::before,
body.room-page.room-style::before,
body.room-page.room-photo::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: var(--cdj-room-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: .78;
}
body.room-page.room-memory::after,
body.room-page.room-clinic::after,
body.room-page.room-library::after,
body.room-page.room-style::after,
body.room-page.room-photo::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,248,235,.18) 0%, rgba(255,248,235,.42) 52%, rgba(255,248,235,.86) 100%),
    radial-gradient(circle at center, rgba(255,250,243,.28), rgba(255,250,243,.04) 60%, rgba(255,250,243,0) 78%);
}
body.room-page .room-page-hero,
body.room-page .room-story-grid,
body.room-page .future-shelf,
body.room-page .room-simple-footer {
  position: relative;
  z-index: 1;
}
body.room-page .room-page-hero {
  padding-top: 92px;
  padding-bottom: 38px;
}
body.room-page .room-page-hero .eyebrow,
body.room-page .room-story-card,
body.room-page .future-shelf {
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
body.room-page .room-page-hero h1,
body.room-page .room-page-hero p {
  text-shadow: 0 2px 0 rgba(255,255,255,.72);
}
