:root {
  --bg: #f4eee4;
  --paper: #fffaf3;
  --paper-2: rgba(255, 250, 243, 0.9);
  --line: #e7d8c6;
  --text: #5b3d27;
  --muted: #7a6857;
  --accent: #c68433;
  --shadow: 0 16px 40px rgba(88, 60, 34, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.95);
  border-bottom: 1px solid rgba(213, 194, 170, 0.55);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(73, 48, 24, 0.10);
  object-fit: cover;
}
.brand-text strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
}
.brand-text span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 9px 0;
  border-bottom: 3px solid transparent;
  font-weight: 900;
}
.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.search-link {
  justify-self: end;
  font-size: 28px;
  line-height: 1;
  color: #704d2e;
  padding: 6px 8px;
}

.journal-page {
  position: relative;
  overflow: hidden;
}
.journal-page::before {
  content: "";
  position: fixed;
  inset: 92px 0 0 0;
  background-image: var(--page-bg);
  background-size: cover;
  background-position: center top;
  opacity: 0.08;
  filter: blur(8px);
  pointer-events: none;
}
body[data-journal="family"] .journal-page { --page-bg: url('../assets/img/room-family-clean-v61.png?v=61'); }
body[data-journal="health"] .journal-page { --page-bg: url('../assets/img/room-health-clean-v61.png?v=61'); }
body[data-journal="library"] .journal-page { --page-bg: url('../assets/img/room-library-clean-v61.png?v=61'); }
body[data-journal="style"] .journal-page { --page-bg: url('../assets/img/room-style-clean-v61.png?v=61'); }
body[data-journal="light"] .journal-page { --page-bg: url('../assets/img/room-light-clean-v61.png?v=61'); }

.journal-hero {
  position: relative;
  padding: 32px 0 48px;
}
.room-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: saturate(0.95);
}
.room-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(246,240,230,0.08), rgba(246,240,230,0.22) 18%, rgba(246,240,230,0.48) 38%, rgba(246,240,230,0.76) 62%, rgba(246,240,230,0.95) 100%),
    radial-gradient(circle at center, rgba(255,250,243,0.55), rgba(255,250,243,0.05) 50%, rgba(255,250,243,0.0) 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-heading {
  text-align: center;
  padding: 42px 0 24px;
}
.section-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.section-title-row h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: .02em;
}
.ornament {
  color: #d1a05b;
  font-size: 34px;
  line-height: 1;
}
.journal-subtitle {
  margin: 18px auto 0;
  max-width: 760px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.8;
  color: #6c5a4a;
}
.journal-pills {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.9);
  border: 1px solid rgba(231, 216, 198, 0.95);
  box-shadow: 0 6px 16px rgba(88, 60, 34, 0.04);
  color: #7a5531;
  font-size: 14px;
  font-weight: 800;
}

.cards-panel,
.about-panel {
  background: rgba(250, 246, 239, 0.50);
  border: 1px solid rgba(231, 216, 198, 0.65);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.cards-panel {
  padding: 34px 28px 30px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.story-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px 20px;
  background: var(--paper-2);
  border: 1px solid rgba(226, 212, 193, 0.95);
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(88, 60, 34, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.story-card:hover,
.story-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(88, 60, 34, 0.12);
  border-color: rgba(198, 132, 51, 0.55);
}

.card-media {
  width: 100%;
  height: 158px;
  margin: -6px 0 2px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 249, 241, 0.95);
  border: 1px solid rgba(234, 219, 200, 0.85);
  box-shadow: 0 8px 18px rgba(88, 60, 34, 0.06);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.card-journal,
.card-date {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.95);
  border: 1px solid rgba(234, 219, 200, 0.95);
  font-weight: 800;
  color: #9a6a2f;
}
.story-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: .01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt {
  margin: 0;
  color: #6f6256;
  font-size: 16px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.card-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(248, 242, 233, 0.95);
  border: 1px solid rgba(228, 214, 195, 0.95);
  color: #8c7157;
  font-size: 12px;
  font-weight: 700;
}
.cards-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 236px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(198, 132, 51, 0.24);
}
.about-panel {
  margin-top: 28px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .9fr);
  gap: 24px;
  align-items: center;
}
.about-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
}
.about-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 2;
  color: #6b5c4b;
}
.about-thumb-wrap {
  align-self: stretch;
}
.about-thumb {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(88, 60, 34, 0.10);
}
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(213, 194, 170, 0.6);
  background: rgba(250, 246, 239, 0.90);
  backdrop-filter: blur(8px);
}
.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-weight: 800;
  color: #6f5844;
}

@media (max-width: 1120px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-panel { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .wrap { width: min(100% - 24px, 1280px); }
  .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }
  .brand, .main-nav, .search-link { justify-self: center; }
  .main-nav { justify-content: center; gap: 18px; }
  .journal-page::before { inset: 132px 0 0 0; }
  .journal-hero { padding-top: 18px; }
  .hero-heading { padding-top: 30px; }
  .cards-panel { padding: 20px 16px 20px; }
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .story-card { min-height: auto; }
  .card-media { height: 180px; }
  .story-card h3 { font-size: 22px; }
  .card-excerpt { font-size: 16px; }
  .footer-inner {
    min-height: auto;
    padding: 18px 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}


/* CDJ_ARTICLE_LIST_LATEST_V69_20260716
   卡片封面安全規則：只修內容頁文章卡片，不動首頁與五大內容頁底圖。
*/
.card-media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 20261106: calm article rooms, shared brand palette. */
:root{--bg:#faf8f0;--paper:#fffdf8;--paper-2:#fffdf8;--line:#dfe3d3;--text:#344b38;--muted:#65735f;--accent:#42664d;--shadow:0 8px 24px rgba(52,75,56,.04)}
.journal-page::before,.room-bg,.room-fade{display:none}
.journal-page,.journal-hero{background:var(--bg)}
.hero-heading{padding:48px 0 32px}
.section-title-row h1,.about-copy h2{font-family:"Huninn","Microsoft JhengHei",sans-serif;font-weight:400}
.ornament{display:none}
.journal-subtitle,.card-excerpt,.about-copy p{color:var(--muted)}
.pill{background:#f0f2e7;border-color:var(--line);color:var(--accent);box-shadow:none;font-size:17px;font-weight:500}
.cards-panel{background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:12px 0 30px}
.story-card{background:var(--paper);border-color:var(--line);box-shadow:none}
.story-card:hover,.story-card:focus-visible{border-color:#8ca084;box-shadow:var(--shadow)}
.card-media{border-color:var(--line);box-shadow:none;background:#f1eee4}
.card-journal,.card-date{background:#f4f4ea;border-color:var(--line);color:var(--accent);font-size:15px;font-weight:500}
.card-tags span{background:#f5f4ed;border-color:var(--line);color:var(--muted);font-size:14px}
.card-excerpt{font-size:18px}
.btn-primary{background:var(--accent);box-shadow:none}
.about-panel{background:var(--paper);border-color:var(--line);box-shadow:none;backdrop-filter:none}
.site-footer{background:var(--paper);border-color:var(--line);backdrop-filter:none}
.footer-links a{color:var(--accent)}
@media(max-width:860px){.hero-heading{padding:32px 0 24px}.cards-panel{padding:10px 0 24px}.pill{font-size:17px}.card-excerpt,.about-copy p{font-size:18px}.card-tags span{font-size:15px}}

