/*
Theme Name: MyDollCare
Theme URI: https://mydollcare.com/
Author: KD人形藝術
Description: MyDollCare 專用精簡 classic 主題——矽膠娃娃選購／保養／材質內容站。手刻 HTML 直接對應，繁中單語，輕量無框架。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: mydollcare
*/

/* =========================================================
   色票（plan 指定，抽成 CSS vars）
   ========================================================= */
:root {
  --ink:       #2a2319;  /* 主文字 / topbar / 深底 */
  --ink-deep:  #1c1710;  /* footer 底 */
  --gold:      #8a6a3a;  /* 強調金 */
  --sand:      #d4b896;  /* 淺金 / 高亮 */
  --cream:     #faf8f5;  /* 頁底 */
  --beige:     #f0ebe0;  /* 區塊底 */
  --line:      #d9cfc2;  /* 邊線 */
  --nav-h:     110px;    /* 導覽列高度（改這裡，sticky 分類 bar 會自動跟上） */
  --logo-h:    84px;     /* logo 顯示高度；3:2 logo → 寬 ≈ 高 × 1.5（84→126） */
  --content-max: 1100px; /* 內容中軸最大寬：所有滿版色塊的內容都對齊到這條 */
  --gutter:    2rem;     /* 內容左右留白（斷點會縮小） */
}

/* 平板：縮小 header 與留白 */
@media (max-width: 900px) {
  :root { --nav-h: 84px; --logo-h: 58px; --gutter: 1.5rem; }
}
/* 手機 */
@media (max-width: 600px) {
  :root { --nav-h: 64px; --logo-h: 46px; --gutter: 1.15rem; }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Lato', sans-serif; background: var(--cream); color: var(--ink); font-size: 14px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

/* =========================================================
   TOPBAR（共用）
   ========================================================= */
.mdc-topbar { background: var(--ink); }
.mdc-topbar__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; height: 40px; }
.mdc-topbar__left { display: flex; gap: 18px; }
.mdc-topbar__left a, .mdc-topbar__right a { font-size: 11px; letter-spacing: 0.12em; color: #8a7e6e; transition: color 0.2s; }
.mdc-topbar__left a:hover, .mdc-topbar__right a:hover,
.mdc-topbar__left a.is-current { color: var(--sand); }
.mdc-topbar__right { display: flex; align-items: center; gap: 14px; }
.mdc-topbar__right a svg { width: 16px; height: 16px; stroke: #8a7e6e; transition: stroke 0.2s; }
.mdc-topbar__right a:hover svg { stroke: var(--sand); }

/* =========================================================
   NAV（共用）
   ========================================================= */
.mdc-nav { background: var(--cream); border-bottom: 1px solid var(--line); height: var(--nav-h); position: sticky; top: 0; z-index: 200; }
.mdc-nav__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.mdc-nav__logo { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; letter-spacing: 0.08em; color: var(--ink); flex-shrink: 0; }
.mdc-nav__logo em { font-style: italic; color: var(--gold); }
/* 圖片 logo：適應 header 高度，比例自動（用 --logo-h 控制大小） */
.mdc-nav__logo--img { display: flex; align-items: center; height: var(--nav-h); line-height: 0; }
.mdc-nav__logo--img .custom-logo-link { display: flex; align-items: center; }
.mdc-nav__logo--img .custom-logo { height: var(--logo-h); width: auto; max-width: 220px; aspect-ratio: 3 / 2; object-fit: contain; display: block; }
.mdc-nav__links { display: flex; gap: 28px; list-style: none; align-items: center; }
/* 漢堡鈕：桌機隱藏，平板/手機顯示 */
.mdc-nav__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; padding: 8px; background: none; border: none; cursor: pointer; }
.mdc-nav__burger span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform 0.25s, opacity 0.2s; }
.mdc-nav.is-open .mdc-nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mdc-nav.is-open .mdc-nav__burger span:nth-child(2) { opacity: 0; }
.mdc-nav.is-open .mdc-nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mdc-nav__links a { font-size: 11.5px; letter-spacing: 0.14em; color: #5a4f40; text-transform: uppercase; font-weight: 400; transition: color 0.2s; }
.mdc-nav__links a:hover,
.mdc-nav__links .current-menu-item > a,
.mdc-nav__links .current_page_item > a,
.mdc-nav__links .current-menu-parent > a,
.mdc-nav__links a.active { color: var(--ink); }
.mdc-nav__links .current-menu-item > a,
.mdc-nav__links .current_page_item > a,
.mdc-nav__links a.active { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.mdc-nav__right { display: flex; align-items: center; gap: 16px; }

/* SEARCH */
.mdc-search-wrap { position: relative; }
.mdc-search-toggle { background: none; border: none; cursor: pointer; color: #5a4f40; display: flex; align-items: center; padding: 4px; transition: color 0.2s; }
.mdc-search-toggle:hover { color: var(--ink); }
.mdc-search-box { position: absolute; right: 0; top: calc(100% + 12px); width: 260px; background: #fff; border: 0.5px solid var(--line); display: none; z-index: 300; }
.mdc-search-box.open { display: flex; }
.mdc-search-box input { flex: 1; border: none; padding: 11px 14px; font-family: 'Lato', sans-serif; font-size: 13px; color: var(--ink); background: transparent; outline: none; }
.mdc-search-box input::placeholder { color: #a09080; }
.mdc-search-box button { background: var(--ink); border: none; padding: 0 14px; cursor: pointer; color: var(--beige); font-size: 11px; letter-spacing: 0.1em; white-space: nowrap; }
.mdc-search-box button:hover { background: var(--gold); }

/* =========================================================
   HERO（首頁）
   ========================================================= */
.mdc-hero { background: var(--beige); border-bottom: 1px solid var(--line); }
.mdc-hero__inner { max-width: var(--content-max); margin: 0 auto; padding: 4rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.mdc-hero__text { flex: 1; max-width: 500px; }
.mdc-hero__label { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.mdc-hero__title { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300; line-height: 1.15; color: var(--ink); margin-bottom: 1.2rem; }
.mdc-hero__title em { font-style: italic; color: var(--gold); }
.mdc-hero__desc { font-size: 14px; line-height: 1.85; color: #5a4f40; margin-bottom: 1.8rem; }
.mdc-hero__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 1.4rem; font-size: 12px; color: #a09080; flex-wrap: wrap; }
.mdc-hero__meta span { display: flex; align-items: center; gap: 5px; }
.mdc-btn--dark { display: inline-block; background: var(--ink); color: var(--beige); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 12px 28px; transition: background 0.2s; }
.mdc-btn--dark:hover { background: var(--gold); color: var(--beige); }
.mdc-hero__card { flex: 0 0 300px; background: #fff; border: 0.5px solid var(--line); overflow: hidden; }
.mdc-hero__card-img { width: 100%; height: auto; display: block; background: #e8d5b7; } /* 依原圖比例呈現 */
.mdc-hero__card-fallback { width: 100%; height: 190px; background: #e8d5b7; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.mdc-hero__card-body { padding: 1.1rem; }
.mdc-tag { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.mdc-hero__card-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 400; color: var(--ink); line-height: 1.45; }

/* =========================================================
   CATEGORY FILTER BAR（首頁）
   ========================================================= */
.mdc-cats { background: var(--ink); position: sticky; top: var(--nav-h); z-index: 100; }
.mdc-cats__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mdc-cats__inner::-webkit-scrollbar { display: none; }
.mdc-cat { padding: 14px 22px; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #6a5e4e; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: all 0.2s; background: none; border-top: none; border-left: none; border-right: none; font-family: 'Lato', sans-serif; }
.mdc-cat:hover { color: var(--beige); }
.mdc-cat.active { color: var(--sand); border-bottom-color: var(--sand); }

/* =========================================================
   MAIN LAYOUT
   ========================================================= */
.mdc-layout { max-width: var(--content-max); margin: 0 auto; padding: 3rem var(--gutter); display: grid; grid-template-columns: 1fr 300px; gap: 3rem; }
.mdc-layout--article { grid-template-columns: 1fr 280px; gap: 3.5rem; }

/* Section Header */
.mdc-section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.mdc-section-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--ink); }
.mdc-section-more { font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); transition: color 0.2s; }
.mdc-section-more:hover { color: var(--ink); }

/* POST CARDS — grid */
.mdc-posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; margin-bottom: 3rem; }
.mdc-post-card { background: #fff; border: 0.5px solid var(--line); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: block; }
.mdc-post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(42,35,25,0.1); }
.mdc-post-card__thumb { width: 100%; height: auto; display: block; background: #ede6da; } /* 依原圖比例呈現 */
.mdc-post-card__thumb--fallback { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 38px; }
.mdc-post-card__body { padding: 1.1rem; }
.mdc-post-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 0.55rem; flex-wrap: wrap; }
.mdc-post-card__date { font-size: 11px; color: #a09080; }
.mdc-post-card__readtime { font-size: 11px; color: #c9bfb0; display: flex; align-items: center; gap: 4px; }
.mdc-post-card__title { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 400; color: var(--ink); line-height: 1.5; margin-bottom: 0.5rem; }
.mdc-post-card__excerpt { font-size: 12.5px; line-height: 1.7; color: #7a6e5e; margin-bottom: 0.8rem; }
.mdc-post-card__author { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #a09080; padding-top: 0.7rem; border-top: 0.5px solid var(--beige); }
.mdc-author-avatar { width: 22px; height: 22px; border-radius: 50%; background: #e8d5b7; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

/* POST WIDE — list */
.mdc-post-wide { display: grid; grid-template-columns: 160px 1fr; background: #fff; border: 0.5px solid var(--line); overflow: hidden; margin-bottom: 1.2rem; transition: box-shadow 0.2s; }
.mdc-post-wide:hover { box-shadow: 0 4px 16px rgba(42,35,25,0.08); }
.mdc-post-wide__thumb { background: #ede6da; overflow: hidden; align-self: start; }
.mdc-post-wide__thumb img { width: 100%; height: auto; display: block; } /* 依原圖比例呈現 */
.mdc-post-wide__thumb--box { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 110px; }
.mdc-post-wide__thumb-fallback { font-size: 32px; }
.mdc-post-wide__body { padding: 1rem 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.mdc-post-wide__title { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 400; color: var(--ink); line-height: 1.5; margin-bottom: 0.35rem; }
.mdc-post-wide__excerpt { font-size: 12.5px; line-height: 1.7; color: #7a6e5e; margin-bottom: 0.6rem; }
.mdc-post-wide__footer { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #a09080; }

/* =========================================================
   SIDEBAR（共用）
   ========================================================= */
.mdc-sidebar-widget { margin-bottom: 2.5rem; }
.mdc-widget-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 400; color: var(--ink); padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.mdc-about { text-align: center; padding: 1.5rem; background: #f5f0e8; border: 0.5px solid var(--line); }
.mdc-about__avatar { width: 72px; height: 72px; border-radius: 50%; background: #e8d5b7; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.mdc-about__name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 400; color: var(--ink); margin-bottom: 0.4rem; }
.mdc-about__bio { font-size: 12.5px; line-height: 1.75; color: #7a6e5e; }
.mdc-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.mdc-tag-item { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #5a4f40; border: 0.5px solid #c9bfb0; padding: 5px 12px; cursor: pointer; transition: all 0.2s; background: none; font-family: 'Lato', sans-serif; }
.mdc-tag-item:hover, .mdc-tag-item.active { background: var(--ink); color: var(--beige); border-color: var(--ink); }
.mdc-popular-item { display: flex; gap: 12px; padding: 0.8rem 0; border-bottom: 0.5px solid #e8e0d5; }
.mdc-popular-item:last-child { border-bottom: none; }
.mdc-popular-num { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; color: var(--sand); min-width: 28px; line-height: 1; padding-top: 3px; }
.mdc-popular-title { font-size: 13px; color: var(--ink); line-height: 1.5; }
.mdc-popular-meta { font-size: 11px; color: #a09080; margin-top: 3px; }
.mdc-newsletter { background: var(--ink); padding: 1.6rem; text-align: center; }
.mdc-newsletter__title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; color: var(--beige); margin-bottom: 0.5rem; }
.mdc-newsletter__desc { font-size: 12px; color: #8a7e6e; margin-bottom: 1.2rem; line-height: 1.65; }
.mdc-newsletter__input { width: 100%; background: rgba(255,255,255,0.08); border: 0.5px solid rgba(255,255,255,0.2); padding: 10px 14px; color: var(--beige); font-family: 'Lato', sans-serif; font-size: 13px; margin-bottom: 10px; outline: none; }
.mdc-newsletter__input::placeholder { color: rgba(240,235,224,0.38); }
.mdc-newsletter__btn { width: 100%; background: var(--sand); color: var(--ink); border: none; padding: 11px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; font-family: 'Lato', sans-serif; transition: background 0.2s; }
.mdc-newsletter__btn:hover { background: #c4a880; }

/* =========================================================
   FOOTER（共用）
   ========================================================= */
.mdc-footer { background: var(--ink-deep); color: #8a7e6e; padding: 3.5rem 0 0; }
.mdc-footer__inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.mdc-footer__top { display: grid; grid-template-columns: 1.6fr 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 0.5px solid rgba(255,255,255,0.1); }
.mdc-footer__logo { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 300; color: var(--beige); margin-bottom: 0.5rem; letter-spacing: 0.06em; }
.mdc-footer__logo em { font-style: italic; color: var(--sand); }
.mdc-footer__tagline { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.2rem; }
.mdc-footer__desc { font-size: 13px; line-height: 2; color: #5a5040; }
.mdc-footer__desc a { color: #7a6e5e; } .mdc-footer__desc a:hover { color: var(--sand); }
.mdc-footer__col-title { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); margin-bottom: 1.4rem; padding-bottom: 0.6rem; border-bottom: 0.5px solid rgba(212,184,150,0.25); }
.mdc-store { margin-bottom: 1.3rem; }
.mdc-store__region { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); margin-bottom: 0.3rem; }
.mdc-store__badge { display: inline-block; font-size: 9.5px; letter-spacing: 0.1em; color: var(--sand); border: 0.5px solid rgba(212,184,150,0.4); padding: 1px 7px; margin-left: 6px; vertical-align: middle; position: relative; top: -1px; }
.mdc-store__badge--appt { color: #6a5e4e; border-color: rgba(106,94,78,0.35); }
.mdc-store__address { font-size: 13px; line-height: 1.75; color: #8a7e6e; }
.mdc-store__hint { font-size: 11px; color: #4a4030; font-style: italic; margin-top: 2px; }
.mdc-store__meta { font-size: 11.5px; color: #4a4030; margin-top: 4px; line-height: 1.7; }
.mdc-social-list { list-style: none; }
.mdc-social-list li { margin-bottom: 0.65rem; }
.mdc-social-list a { font-size: 13px; color: #7a6e5e; display: flex; align-items: center; gap: 10px; transition: color 0.2s; }
.mdc-social-list a:hover { color: var(--sand); }
.mdc-social-icon { width: 28px; height: 28px; border: 0.5px solid rgba(212,184,150,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.mdc-social-list a:hover .mdc-social-icon { background: rgba(212,184,150,0.12); }
.mdc-social-icon svg { width: 14px; height: 14px; stroke: var(--sand); fill: none; }
.mdc-footer-links { list-style: none; }
.mdc-footer-links li { margin-bottom: 0.65rem; }
.mdc-footer-links a { font-size: 13px; color: #7a6e5e; transition: color 0.2s; }
.mdc-footer-links a:hover { color: var(--beige); }
.mdc-footer__mid { padding: 1.4rem 0; border-bottom: 0.5px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.mdc-contact-chip { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #7a6e5e; }
.mdc-contact-chip svg { width: 14px; height: 14px; stroke: var(--sand); fill: none; flex-shrink: 0; }
.mdc-contact-chip a { color: #8a7e6e; } .mdc-contact-chip a:hover { color: var(--sand); }
.mdc-divider { width: 0.5px; height: 14px; background: rgba(255,255,255,0.12); }
.mdc-footer__bottom { padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #3a3225; flex-wrap: wrap; gap: 8px; }
.mdc-footer__bottom-links { display: flex; gap: 20px; }
.mdc-footer__bottom-links a { font-size: 11.5px; color: #3a3225; }
.mdc-footer__bottom-links a:hover { color: #7a6e5e; }

/* filter JS helper */
.mdc-post-item { transition: opacity 0.2s; }
.mdc-post-item.hidden { display: none; }
.mdc-empty { display: none; padding: 3rem 0; text-align: center; color: #a09080; font-size: 13px; }

/* =========================================================
   文章內頁（single）— art-* 由內文 HTML 帶 class，主題供 CSS
   ========================================================= */
.art-hero { background: var(--beige); border-bottom: 1px solid var(--line); padding: 4rem var(--gutter) 3.5rem; }
.art-hero__inner { max-width: 820px; margin: 0 auto; }
.art-hero__label { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.art-hero__title { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 5vw, 46px); font-weight: 300; line-height: 1.2; color: var(--ink); margin-bottom: 1.2rem; }
.art-hero__title em { font-style: italic; color: var(--gold); }
.art-hero__desc { font-size: 14.5px; color: #5a4f40; line-height: 1.85; max-width: 560px; }

.art-body { min-width: 0; font-size: 15px; line-height: 1.85; }

/* TOC */
.art-toc { border: 0.5px solid var(--line); margin-bottom: 3rem; background: #fff; }
.art-toc__head { background: #f5f0e8; padding: 12px 18px; border-bottom: 0.5px solid var(--line); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.art-toc__list { list-style: none; padding: 16px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.art-toc__list li { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.art-toc__list li::before { content: attr(data-num); font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--sand); min-width: 22px; flex-shrink: 0; }
.art-toc__list a { color: #5a4f40; transition: color 0.2s; }
.art-toc__list a:hover { color: var(--ink); }

/* SECTION */
.art-section { margin-bottom: 3.5rem; padding-bottom: 3.5rem; border-bottom: 0.5px solid var(--line); scroll-margin-top: 90px; }
.art-section:last-child { border-bottom: none; margin-bottom: 0; }
.art-h2 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: var(--ink); display: flex; align-items: center; gap: 14px; margin-bottom: 1.4rem; padding-bottom: 0.8rem; border-bottom: 0.5px solid var(--line); }
.art-h2__num { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 300; letter-spacing: 0.15em; color: var(--sand); border: 0.5px solid var(--line); padding: 4px 10px; flex-shrink: 0; }
.art-p { margin-bottom: 1.1rem; color: #3a3025; font-size: 14.5px; line-height: 1.9; }
.art-p:last-child { margin-bottom: 0; }
.art-p strong { font-weight: 500; color: var(--ink); }

/* Def block */
.art-def { border-left: 2px solid var(--sand); padding: 16px 20px; margin: 20px 0; background: #f5f0e8; }
.art-def__label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.art-def p { font-size: 14px; color: #4a3f30; line-height: 1.85; margin-bottom: 10px; }
.art-def p:last-child { margin-bottom: 0; }
.art-def strong { color: var(--ink); font-weight: 500; }

/* Callout */
.art-callout { border-left: 2px solid #c9bfb0; padding: 12px 18px; margin: 18px 0; font-size: 14px; color: #5a4f40; background: var(--cream); font-style: italic; }
.art-callout strong { font-style: normal; color: var(--ink); }

/* Table */
.art-table-wrap { overflow-x: auto; margin: 20px 0; }
.art-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.art-body thead th { background: var(--ink); color: var(--beige); font-weight: 400; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 11px 16px; text-align: left; }
.art-body tbody tr { border-bottom: 0.5px solid #e8e0d5; }
.art-body tbody tr:last-child { border-bottom: none; }
.art-body tbody tr:nth-child(even) td { background: #f8f4ee; }
.art-body td { padding: 11px 16px; vertical-align: top; line-height: 1.75; color: #3a3025; }
.art-body td:first-child { font-weight: 400; font-size: 13px; color: var(--ink); }

/* Price list */
.art-price-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.art-price-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: 0.5px solid var(--line); border-left: 2px solid var(--sand); }
.art-price-text { font-size: 14px; color: #3a3025; flex: 1; line-height: 1.65; }
.art-price-text strong { color: var(--ink); }

/* Badge */
.mdc-badge { display: inline-block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border: 0.5px solid #c9bfb0; color: var(--gold); background: #f5f0e8; white-space: nowrap; }

/* Material cards */
.art-mat-cards { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.art-mat-card { background: #fff; border: 0.5px solid var(--line); overflow: hidden; }
.art-mat-card__head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #f5f0e8; border-bottom: 0.5px solid var(--line); font-size: 12.5px; color: #5a4f40; }
.art-mat-card__rec { margin-left: auto; font-size: 10.5px; color: var(--gold); letter-spacing: 0.05em; }
.art-mat-card__body { padding: 14px 16px; font-size: 13.5px; color: #4a3f30; line-height: 1.8; }

/* Notice */
.art-notice { border: 0.5px dashed #c9bfb0; padding: 14px 18px; margin: 16px 0; font-size: 13px; color: #5a4f40; background: #f5f0e8; line-height: 1.8; }
.art-notice strong { color: var(--ink); }
.art-notice a { color: var(--gold); border-bottom: 0.5px solid #c9bfb0; }

/* Check list */
.art-check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.art-check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; padding: 10px 14px; background: #fff; border: 0.5px solid var(--line); color: #3a3025; line-height: 1.75; }
.art-check-list li::before { content: '✓'; color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Alt list */
.art-alt-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.art-alt-list li { display: flex; gap: 12px; font-size: 14px; color: #3a3025; line-height: 1.75; }
.art-alt-list li::before { content: '→'; color: var(--sand); flex-shrink: 0; font-family: sans-serif; }
.art-alt-list a { color: var(--gold); border-bottom: 0.5px solid #c9bfb0; }
.art-alt-list a:hover { color: var(--ink); }

/* Brand recs */
.art-brand-recs { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.art-brand-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; background: #fff; border: 0.5px solid var(--line); border-left: 2px solid var(--sand); font-size: 13.5px; }
.art-brand-row a { color: var(--gold); border-bottom: 0.5px solid #c9bfb0; transition: color 0.2s; }
.art-brand-row a:hover { color: var(--ink); }

/* FAQ */
.art-faq { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.art-faq-q { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 400; color: var(--ink); margin-bottom: 8px; display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.art-faq-q::before { content: 'Q'; font-size: 10px; letter-spacing: 0.12em; color: var(--beige); background: var(--ink); padding: 3px 7px; flex-shrink: 0; margin-top: 3px; }
.art-faq-a { font-size: 14px; color: #4a3f30; line-height: 1.85; padding-left: 32px; }
.art-faq-divider { border: none; border-top: 0.5px solid #e8e0d5; margin: 18px 0 0; }

/* Conclusion list */
.art-conclusion-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.art-conclusion-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #3a3025; padding: 10px 16px; background: #fff; border: 0.5px solid var(--line); border-left: 2px solid var(--sand); line-height: 1.75; }
.art-conclusion-list li .arrow { color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 18px; flex-shrink: 0; line-height: 1.5; }

/* CTA */
.art-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.art-btn { display: inline-block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 12px 26px; border: 0.5px solid #c9bfb0; color: #5a4f40; transition: all 0.2s; }
.art-btn:hover { background: var(--ink); color: var(--beige); border-color: var(--ink); }
.art-btn--dark { background: var(--ink); color: var(--beige); border-color: var(--ink); }
.art-btn--dark:hover { background: var(--gold); border-color: var(--gold); }

/* Meta tags */
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; padding-top: 20px; border-top: 0.5px solid var(--line); margin-top: 3rem; }
.art-meta__info { font-size: 11.5px; color: #a09080; }
.art-meta-tag { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; border: 0.5px solid #c9bfb0; padding: 3px 10px; color: var(--gold); }

/* =========================================================
   通用 / 封存頁標題
   ========================================================= */
.mdc-archive-head { max-width: var(--content-max); margin: 0 auto; padding: 3rem var(--gutter) 0; }
.mdc-archive-title { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; color: var(--ink); }
.mdc-archive-desc { font-size: 13px; color: #7a6e5e; margin-top: 0.5rem; }
.mdc-404 { max-width: 700px; margin: 0 auto; padding: 5rem 2rem; text-align: center; }
.mdc-404__code { font-family: 'Cormorant Garamond', serif; font-size: 72px; font-weight: 300; color: var(--sand); }
.mdc-404__title { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--ink); margin-bottom: 1rem; }
.mdc-pagination { display: flex; gap: 8px; justify-content: center; margin: 2rem 0 1rem; flex-wrap: wrap; }
.mdc-pagination a, .mdc-pagination span { padding: 8px 14px; border: 0.5px solid var(--line); font-size: 12px; color: #5a4f40; }
.mdc-pagination .current { background: var(--ink); color: var(--beige); border-color: var(--ink); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* ── 平板以下：側欄落到內容下方、導覽改漢堡選單 ── */
@media (max-width: 900px) {
  .mdc-layout, .mdc-layout--article { grid-template-columns: 1fr; gap: 2.5rem; }
  .mdc-footer__top { grid-template-columns: 1fr 1fr; }

  .mdc-nav__burger { display: flex; }

  /* primary 選單 → 滑下式面板 */
  .mdc-nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0 var(--gutter); max-height: 0; overflow: hidden;
    box-shadow: 0 12px 24px rgba(42,35,25,0.08);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .mdc-nav.is-open .mdc-nav__links { max-height: 80vh; padding: 0.5rem var(--gutter) 1rem; overflow-y: auto; }
  .mdc-nav__links li { width: 100%; }
  .mdc-nav__links a { display: block; padding: 14px 2px; border-bottom: 0.5px solid var(--line); font-size: 13px; }
  .mdc-nav__links .current-menu-item > a,
  .mdc-nav__links .current_page_item > a,
  .mdc-nav__links a.active { border-bottom: 0.5px solid var(--line); padding-bottom: 14px; color: var(--gold); }

  /* 搜尋面板在小螢幕貼齊右側、避免溢出 */
  .mdc-search-box { width: min(78vw, 280px); }
}

/* ── 手機 ── */
@media (max-width: 600px) {
  .mdc-hero__inner { flex-direction: column; align-items: flex-start; padding: 2.75rem var(--gutter); }
  .mdc-hero__card { flex: none; width: 100%; }
  .mdc-hero__title { font-size: 34px; }
  .mdc-posts-grid { grid-template-columns: 1fr; }
  .mdc-post-wide { grid-template-columns: 104px 1fr; }

  /* ── 手機 footer 緊湊化 ── */
  .mdc-footer { padding-top: 2.25rem; }
  .mdc-footer__top { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 1.5rem; }
  .mdc-footer__col-title { margin-bottom: 0.85rem; }
  .mdc-store { margin-bottom: 0.85rem; }
  /* 社群：直列 → 橫向圖示列（只留圖示，省高度） */
  .mdc-social-list { display: flex; flex-wrap: wrap; gap: 12px; }
  .mdc-social-list li { margin-bottom: 0; }
  .mdc-social-list a { font-size: 0; gap: 0; }
  .mdc-social-list .mdc-social-icon { width: 40px; height: 40px; }
  .mdc-social-list .mdc-social-icon svg { width: 16px; height: 16px; }
  /* 分類：直列 → 兩欄 */
  .mdc-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.25rem; }
  .mdc-footer-links li { margin-bottom: 0; }
  /* 中段聯絡列：去掉直立分隔線、收緊 */
  .mdc-footer__mid { gap: 0.6rem 1rem; padding: 1.1rem 0; }
  .mdc-footer__mid .mdc-divider { display: none; }
  .mdc-layout { padding-top: 2rem; padding-bottom: 2rem; }
  .art-hero { padding: 2.75rem var(--gutter) 2.25rem; }
  .art-hero__title { font-size: 28px; }
  .art-toc__list { grid-template-columns: 1fr; }
  .art-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; }
  .mdc-cat { padding: 12px 16px; }
}

/* ── 窄手機：避免 wide 卡片縮圖過小 ── */
@media (max-width: 420px) {
  .mdc-post-wide { grid-template-columns: 1fr; }
  .mdc-post-wide__thumb { min-height: 150px; }
}
