/* 蘇菲餘白｜全站版型（C 版：雜誌底＋電影章節）
   疊在 styles-v2.css 之上；首頁另載 yubai-home.css。
   唯一來源：scripts/yubai_site.py 負責把本檔掛到每一頁。 */

:root {
  --y-bg: #f6f1ea;
  --y-paper: #fffdf9;
  --y-sand: #efe6da;
  --y-ink: #2a2521;
  --y-muted: #6f655c;
  --y-line: #e3d9cc;
  --y-wine: #7b2f3b;
  --y-wine-2: #962f40;
  --y-dark: #0f0e0d;
  --y-dark-2: #171513;
  --y-light: #efe8de;
  --y-gold: #c9a46a;
  --y-gold-2: #e2c48f;
  --y-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --y-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --y-latin: "Cormorant Garamond", Georgia, serif;
  --y-grade: saturate(0.86) contrast(1.04) brightness(0.96) sepia(0.04);
  --y-pad: clamp(16px, 5vw, 72px);
  --y-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 舊樣式變數改接新色票 */
  --ink: var(--y-ink);
  --muted-ink: var(--y-muted);
  --paper: var(--y-bg);
  --paper-strong: var(--y-paper);
  --line: var(--y-line);
  --rose: #a2495a;
  --rose-dark: var(--y-wine);
  --sage: var(--y-wine);
  --sage-soft: var(--y-sand);
  --teal: var(--y-wine);
  --teal-soft: var(--y-sand);
  --gold: #a8823f;
  --graphite: var(--y-ink);
  --shadow: 0 24px 50px -28px rgba(60, 40, 25, 0.4);
}

body { background: var(--y-bg); color: var(--y-ink); font-family: var(--y-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--y-serif); text-wrap: balance; }
h1 { color: var(--y-ink); font-weight: 900; letter-spacing: 0.02em; }
.eyebrow { font-family: var(--y-latin); font-style: italic; font-weight: 500; font-size: 20px; color: var(--y-wine); letter-spacing: 0.04em; }
.script-label { font-family: var(--y-latin); font-style: italic; }
.path-label { color: var(--y-wine); font-weight: 500; letter-spacing: 0.08em; }

/* 按鈕 */
.button, .btn { border-radius: 99px; font-weight: 500; letter-spacing: 0.05em; transition: transform 0.3s var(--y-ease), background 0.3s, color 0.3s, border-color 0.3s; }
.button.primary { background: var(--y-wine); border-color: var(--y-wine); color: #fff; }
.button.primary:hover { background: var(--y-wine-2); border-color: var(--y-wine-2); transform: translateY(-2px); }
.button.secondary { background: var(--y-paper); border-color: #cdbfae; color: var(--y-ink); }
.button.secondary:hover { border-color: var(--y-wine); color: var(--y-wine); }

/* ---------- 頁首 ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 16px var(--y-pad); background: rgba(246, 241, 234, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--y-line); color: var(--y-ink); transition: background 0.5s, padding 0.5s, border-color 0.5s, color 0.5s; }
.site-header .brand { font-family: var(--y-serif); font-size: 20px; font-weight: 900; letter-spacing: 0.16em; color: inherit; }
.site-header nav { display: flex; width: auto; gap: 24px; align-items: center; font-size: 14px; color: #5b524a; flex-wrap: nowrap; }
.site-header nav a:hover { color: var(--y-wine); }
.site-header .nav-cta { background: var(--y-wine); border: 1px solid var(--y-wine); color: #fff !important; padding: 6px 16px; border-radius: 99px; white-space: nowrap; }
.y-dark-top .site-header:not(.scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; color: var(--y-light); }
.y-dark-top .site-header:not(.scrolled) nav { color: rgba(239, 232, 222, 0.85); }
.y-dark-top .site-header:not(.scrolled) nav a:hover { color: var(--y-gold-2); }
.y-dark-top .site-header:not(.scrolled) .nav-cta { background: transparent; border-color: var(--y-gold); color: var(--y-gold-2) !important; }
.site-header.scrolled { padding-block: 12px; }

/* 閱讀進度條（文章頁） */
.y-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; background: var(--y-gold); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- 頁尾 ---------- */
.site-footer.y-footer { padding: 64px var(--y-pad) 48px; text-align: center; background: var(--y-dark); color: var(--y-light); font-size: 14px; }
.y-footer .footer-brand { font-family: var(--y-serif); font-size: 22px; font-weight: 900; letter-spacing: 0.3em; margin: 0 0 18px; }
.y-footer .footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 14px; color: rgba(239, 232, 222, 0.78); }
.y-footer .footer-nav a:hover { color: var(--y-gold-2); }
.y-footer .footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 18px; color: var(--y-gold-2); }
.y-footer .fine { margin: 0; font-size: 12px; color: #a69c8f; }

/* ---------- 文章頁、主題頁：電影感頁首 ---------- */
.letter-masthead { position: relative; overflow: hidden; padding: 140px var(--y-pad) 84px; background: radial-gradient(ellipse at 78% 30%, rgba(201, 164, 106, 0.12), transparent 55%), var(--y-dark); border-bottom: 0; color: var(--y-light); }
.letter-masthead h1 { color: var(--y-light); font-weight: 900; line-height: 1.22; font-size: clamp(32px, 3.6vw, 54px); text-wrap: balance; }
.letter-masthead .eyebrow { color: var(--y-gold); }
.letter-masthead .letter-dek { color: rgba(239, 232, 222, 0.78); }
.letter-meta-row span { background: transparent; border-color: rgba(239, 232, 222, 0.2); color: #cfc5b8; }
.letter-portrait { width: min(100%, 460px); border-radius: 4px; background: #000; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.letter-portrait img { aspect-ratio: 4 / 5; height: auto; max-height: none; object-fit: cover; object-position: 50% 22%; filter: var(--y-grade); }
.letter-masthead .hero-actions .button.secondary { background: transparent; border-color: rgba(239, 232, 222, 0.4); color: var(--y-light); }
.letter-masthead .hero-actions .button.secondary:hover { border-color: var(--y-gold-2); color: var(--y-gold-2); }
.letter-masthead .hero-actions .button.primary { background: var(--y-gold); border-color: var(--y-gold); color: #17130f; }

.letter-sidebar { border-top-color: var(--y-wine); }
.letter-sidebar ol { color: var(--y-muted); }
.letter-body { color: #2f2924; font-size: clamp(17px, 1.3vw, 18.5px); line-height: 2.05; }
.letter-body h2 { margin-top: 64px; font-size: clamp(25px, 2.6vw, 34px); color: var(--y-ink); }
.letter-body h2::before { content: ""; display: block; width: 40px; height: 2px; margin-bottom: 18px; background: var(--y-gold); }
.letter-body > p:first-child { font-size: 1.12em; color: var(--y-ink); }
.letter-checks li { border-left-color: var(--y-wine); background: var(--y-paper); color: var(--y-muted); }
.hashtag-line { color: var(--y-wine); font-weight: 500; }
.letter-cta { border: 0; border-radius: 4px; background: var(--y-dark-2); color: var(--y-light); padding: clamp(26px, 4vw, 44px); }
.letter-cta h2 { color: var(--y-light); }
.letter-cta h2::before { background: var(--y-gold); }
.letter-cta p { color: rgba(239, 232, 222, 0.82); }
.letter-cta .letter-checks li { background: rgba(255, 255, 255, 0.04); border-left-color: var(--y-gold); color: rgba(239, 232, 222, 0.82); word-break: break-all; }
.letter-cta a { color: var(--y-gold-2); }
.letter-cta .button.primary { background: var(--y-gold); border-color: var(--y-gold); color: #17130f; }
.letter-cta .button.secondary { background: transparent; border-color: rgba(239, 232, 222, 0.4); color: var(--y-light); }

/* ---------- 文章列表（卡片牆） ---------- */
.y-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.y-cards .letter-item { border: 0; }
.y-cards .letter-item a { display: block; padding: 0; }
.y-card figure { margin: 0 0 16px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: var(--y-sand); }
.y-card img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 25%; filter: var(--y-grade); transition: transform 1.2s var(--y-ease); }
.y-card a:hover img { transform: scale(1.06); }
.y-card .y-meta { margin: 0 0 4px; font-family: var(--y-latin); font-size: 16px; color: var(--y-wine); letter-spacing: 0.04em; }
.y-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.5; color: var(--y-ink); transition: color 0.3s; }
.y-card a:hover h3 { color: var(--y-wine); }
.y-card .y-dek { margin: 0; color: var(--y-muted); font-size: 14.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.letters-heading h2 { margin-bottom: 0; }

/* ---------- 其他頁（關於、療程、FAQ、諮詢） ---------- */
.page-hero { padding-top: 140px; background: linear-gradient(180deg, var(--y-sand), var(--y-bg)); border-bottom: 0; }
.page-hero h1 { font-weight: 900; line-height: 1.25; }
.page-portrait { border-radius: 2px; background: var(--y-sand); }
.page-portrait img { filter: var(--y-grade); }
.muted { background: var(--y-sand); }
.topic-card { border: 0; border-radius: 2px; background: var(--y-paper); transition: transform 0.5s var(--y-ease), box-shadow 0.5s; }
.topic-card:hover { transform: translateY(-4px); }
.topic-number { font-family: var(--y-latin); font-style: italic; font-size: 24px; font-weight: 500; color: var(--y-wine); }
.text-link { color: var(--y-wine); font-weight: 500; border-bottom: 1px solid currentColor; }
.service-list article { border: 0; border-radius: 2px; background: var(--y-paper); }
.faq-list article { border-top-color: var(--y-line); }
.band { border: 0; }
.consult.band { background: var(--y-dark-2); color: var(--y-light); }
.consult.band h2 { color: var(--y-light); }
.consult.band .eyebrow { color: var(--y-gold); }
.consult.band p, .consult.band .prose, .consult.band .service-list p { color: rgba(239, 232, 222, 0.8); }
.consult.band .service-list article { background: rgba(255, 255, 255, 0.04); }
.consult.band .service-list h3 { color: var(--y-light); }
.consult.band .button.primary { background: var(--y-gold); border-color: var(--y-gold); color: #17130f; }
.consult.band .button.secondary { background: transparent; border-color: rgba(239, 232, 222, 0.4); color: var(--y-light); }
.check-list.dark li { color: var(--y-ink); }

/* 捲動淡入（由 yubai.js 掛 class；沒有 JS 時內容照常顯示） */
.y-js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--y-ease) var(--d, 0ms), transform 1s var(--y-ease) var(--d, 0ms); }
.y-js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .y-js .reveal { opacity: 1; transform: none; transition: none; }
  .y-progress { display: none; }
}

@media (max-width: 900px) {
  .site-header { padding: 14px 16px; gap: 12px; align-items: center; flex-direction: row; }
  .site-header nav { gap: 14px; font-size: 13px; width: auto; justify-content: flex-end; }
  .site-header nav .m-hide { display: none; }
  .site-header .brand { font-size: 18px; letter-spacing: 0.12em; }
  .letter-masthead { padding: 108px 16px 56px; }
  .letter-portrait { width: 100%; max-width: 520px; justify-self: center; }
  .page-hero { padding-top: 112px; }
  .y-cards { grid-template-columns: 1fr; gap: 36px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .y-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .letter-masthead, .page-hero { padding-top: 104px; }
  .letter-masthead h1 { font-size: clamp(30px, 8.6vw, 42px); }
}

/* ---------- 2026-10-12b：浮動 LINE、文章列表篩選與小圖、文章底部「繼續看」 ---------- */
.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; }

/* 右下角浮動 LINE：每頁都有、跟著捲動 */
.y-line-fab { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 12px; border-radius: 999px;
  background: #06C755; color: #fff !important; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(6, 120, 60, 0.55), 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s; animation: y-fab-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both; }
.y-line-fab svg { width: 34px; height: 34px; flex: none; color: #fff; }
.y-line-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(6, 120, 60, 0.6), 0 2px 6px rgba(0, 0, 0, 0.18); }
.y-line-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.5); animation: y-fab-ring 6s cubic-bezier(0.22, 0.61, 0.36, 1) 2s infinite; pointer-events: none; }
@keyframes y-fab-in { from { opacity: 0; transform: translateY(24px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes y-fab-ring { 0%, 70% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.5); } 85% { box-shadow: 0 0 0 14px rgba(6, 199, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0); } }
.site-footer.y-footer { padding-bottom: 104px; }
@media (max-width: 640px) {
  .y-line-fab { padding: 9px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .y-line-fab svg { width: 40px; height: 40px; }
  .y-line-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .y-line-fab, .y-line-fab::after { animation: none; } }

/* 文章列表：搜尋、主題篩選、大圖／小圖 */
.y-toolbar { position: sticky; top: 64px; z-index: 20; display: grid; grid-template-columns: minmax(220px, 300px) 1fr auto; grid-template-areas: "search chips view" "count count count"; gap: 12px 18px; align-items: center;
  margin: 0 0 36px; padding: 14px 0 12px; background: rgba(246, 241, 234, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(42, 37, 33, 0.12); }
.y-search { grid-area: search; display: block; }
.y-search input { width: 100%; padding: 11px 16px; border: 1px solid rgba(42, 37, 33, 0.2); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; color: var(--y-ink); }
.y-search input:focus { outline: 2px solid var(--y-wine); outline-offset: 1px; }
.y-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 8px; }
.y-chips button, .y-view button { padding: 7px 14px; border: 1px solid rgba(42, 37, 33, 0.18); border-radius: 999px; background: transparent; font: inherit; font-size: 14px; line-height: 1.4; color: var(--y-ink); cursor: pointer; white-space: nowrap; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.y-chips button:hover, .y-view button:hover { border-color: var(--y-wine); color: var(--y-wine); }
.y-chips button[aria-pressed="true"], .y-view button[aria-pressed="true"] { background: var(--y-wine); border-color: var(--y-wine); color: #fff; }
.y-view { grid-area: view; display: flex; gap: 6px; }
.y-count { grid-area: count; margin: 0; font-size: 13px; color: var(--y-muted); }
.y-card[hidden] { display: none !important; }

/* 小圖列表 */
.y-cards.is-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.is-list .y-card a { display: grid; grid-template-columns: 120px 1fr; column-gap: 18px; align-items: start; }
.is-list .y-card figure { margin: 0; aspect-ratio: 1 / 1; grid-column: 1; grid-row: 1 / span 3; }
.is-list .y-card a > :not(figure) { grid-column: 2; }
.is-list .y-card a { grid-template-rows: auto auto 1fr; row-gap: 2px; }
.is-list .y-card .y-meta { font-size: 14px; }
.is-list .y-card h3 { font-size: 16.5px; line-height: 1.55; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.is-list .y-card .y-dek { font-size: 13.5px; -webkit-line-clamp: 2; }

@media (max-width: 900px) {
  .y-toolbar { top: 58px; grid-template-columns: 1fr auto; grid-template-areas: "search view" "chips chips" "count count"; margin: 0 -16px 28px; padding: 12px 16px 10px; }
  .y-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .y-chips::-webkit-scrollbar { display: none; }
  .y-cards.is-list { grid-template-columns: 1fr; gap: 18px; }
  .is-list .y-card a { grid-template-columns: 92px 1fr; column-gap: 14px; }
  .is-list .y-card .y-dek { display: none; }
  .is-list .y-card h3 { font-size: 15.5px; }
}

/* 文章底部「繼續看」：上一篇／下一篇＋左右滑小卡 */
.y-more { padding: 56px 24px 72px; background: #ece3d6; }
.y-more-inner { max-width: 1200px; margin: 0 auto; }
.y-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.y-more-head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); color: var(--y-ink); }
.y-more-head h2::before { display: none !important; }
.y-more-head a { font-size: 14px; color: var(--y-wine); white-space: nowrap; }
.y-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.y-pn a { display: block; padding: 16px 18px; background: var(--y-bg); border-radius: 2px; text-decoration: none; color: var(--y-ink); transition: box-shadow 0.35s; }
.y-pn a:hover { box-shadow: 0 16px 30px -18px rgba(60, 40, 25, 0.45); }
.y-pn small { display: block; font-size: 12.5px; color: var(--y-wine); letter-spacing: 0.08em; margin-bottom: 4px; }
.y-pn b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.55; font-weight: 700; }
.y-pn .next { text-align: right; }
.y-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.y-rail a { flex: 0 0 clamp(190px, 22vw, 240px); scroll-snap-align: start; text-decoration: none; color: var(--y-ink); }
.y-rail figure { margin: 0 0 10px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--y-bg); }
.y-rail img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 25%; filter: var(--y-grade); transition: transform 1s var(--y-ease); }
.y-rail a:hover img { transform: scale(1.05); }
.y-rail small { display: block; font-family: var(--y-latin); font-size: 14px; color: var(--y-wine); }
.y-rail b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.55; font-weight: 700; }
@media (max-width: 640px) {
  .y-more { padding: 40px 16px 56px; }
  .y-pn { grid-template-columns: 1fr; }
  .y-pn .next { text-align: left; }
  .y-rail { margin: 0 -16px; padding: 0 16px 10px; scrollbar-width: none; }
  .y-rail a { flex-basis: 62%; }
}

/* 文章底部「這篇相關的好物」＋ picks.html 私藏清單卡片（蝦皮分潤，affiliate_sync.py 產資料） */
.y-picks { padding: 48px 24px 8px; background: #ece3d6; }
.y-pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.y-pk { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--y-bg); border-radius: 2px; text-decoration: none; color: var(--y-ink); transition: box-shadow 0.35s; }
.y-pk:hover { box-shadow: 0 16px 30px -18px rgba(60, 40, 25, 0.45); }
.y-pk small { font-size: 12.5px; color: var(--y-wine); letter-spacing: 0.06em; }
.y-pk b { font-size: 15.5px; line-height: 1.5; }
.y-pk span { font-size: 14px; line-height: 1.7; color: #5a4d50; flex: 1; }
.y-pk em { font-style: normal; font-size: 14px; color: var(--y-wine); font-weight: 700; margin-top: 4px; }
.y-pk-note { font-size: 12.5px; color: #6e6064; margin: 16px 0 0; line-height: 1.7; }
.y-picks-page .y-pk-cat { margin: 40px 0 14px; font-size: clamp(20px, 2.2vw, 26px); }
.y-picks-page .y-pk { background: #fffaf3; border: 1px solid #e6dccd; }
.y-pk-disclosure { padding: 14px 16px; background: #fffaf3; border-left: 3px solid var(--y-wine); font-size: 14px; line-height: 1.75; }
@media (max-width: 640px) { .y-picks { padding: 36px 16px 4px; } }

.y-rail { scroll-padding-inline: 16px; }
@media (min-width: 641px) { .y-rail { scroll-padding-inline: 0; } }
.y-pk-qa { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.y-pk-qa a { display: block; padding: 14px 16px; background: #fffaf3; border: 1px solid #e6dccd; color: var(--y-ink); text-decoration: none; font-size: 15.5px; line-height: 1.6; }
.y-pk-qa a::after { content: " →"; color: var(--y-wine); }
.y-picks-page .letter-body .y-pk-grid { margin: 14px 0 8px; }
.y-picks-page .eyebrow a { color: inherit; text-decoration: none; }
.y-picks-page .y-pk-entry { margin-top: 32px; border: 1px dashed #b98a8f; background: #fbf3ec; }

/* 2026-10-20：文章署名、延伸閱讀、上下篇、欄目導覽、定位句；AEO 新文章的結論框與對比表 */
.y-position { margin: 0 0 14px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.9; color: var(--y-ink); font-weight: 500; }
.manifesto-text .y-position { color: var(--y-ink); max-width: 560px; }
.page-hero .y-position { margin-top: 16px; max-width: 640px; }
.y-author { margin: 40px 0 8px; padding: 18px 22px; border-left: 3px solid var(--y-gold); background: var(--y-paper); font-size: 15px; line-height: 1.85; color: var(--y-muted); }
.y-author p { margin: 0; }
.y-author-name { margin-bottom: 4px !important; color: var(--y-ink); }
.y-author-name span { margin-right: 10px; font-size: 12.5px; letter-spacing: 0.12em; color: var(--y-wine); }
.y-author-name a { font-weight: 700; font-size: 17px; color: var(--y-ink); text-decoration: none; border-bottom: 1px solid var(--y-gold); }
.y-related { margin: 36px 0 0; }
.y-h { margin: 0 0 12px; font-family: var(--y-serif); font-size: clamp(20px, 2vw, 26px); font-weight: 700; color: var(--y-ink); }
.y-related ul, .y-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.y-related li, .y-list li, .y-cols li { padding: 12px 16px; background: var(--y-paper); border-left: 3px solid var(--y-wine); line-height: 1.6; font-size: 16px; }
.y-related li a, .y-list li a, .y-cols li a { color: var(--y-ink); text-decoration: none; }
.y-related li a:hover, .y-list li a:hover, .y-cols li a:hover { color: var(--y-wine); }
.y-related small, .y-list small { margin-left: 10px; font-family: var(--y-latin); font-size: 14px; color: var(--y-wine); white-space: nowrap; }
.y-col { margin: 14px 0 0; font-size: 14.5px; color: var(--y-muted); line-height: 1.9; }
.y-col b { color: var(--y-ink); }
.y-col span { margin-left: 14px; }
.y-col span a { margin-left: 8px; color: var(--y-wine); text-decoration: underline; text-underline-offset: 3px; }
.y-pn-static { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 36px; }
.y-pn-static a { display: block; padding: 14px 16px; background: var(--y-paper); border: 1px solid var(--y-line); text-decoration: none; color: var(--y-ink); }
.y-pn-static a:hover { border-color: var(--y-wine); }
.y-pn-static small { display: block; font-size: 12.5px; letter-spacing: 0.08em; color: var(--y-wine); margin-bottom: 4px; }
.y-pn-static b { display: block; font-size: 15px; line-height: 1.55; font-weight: 700; }
.y-pn-static .next { text-align: right; }
.y-topic-more { background: var(--y-sand); }
.y-topic-more .y-h { margin-top: 28px; }
.y-topic-more .y-h:first-child { margin-top: 0; }
.y-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.y-cols h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.5; color: var(--y-wine); }
.y-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.y-cols li { font-size: 15px; }
.y-all { margin: 22px 0 0; }
.y-all a { color: var(--y-wine); }
@media (max-width: 640px) {
  .y-pn-static { grid-template-columns: 1fr; }
  .y-pn-static .next { text-align: left; }
  .y-col span { display: block; margin: 4px 0 0; }
  .y-col span a:first-child { margin-left: 0; }
}

/* AEO 新文章模板：結論框、表格、FAQ 小標、對應影片 */
.letter-body .y-answer { margin: 0 0 32px; padding: 20px 24px; border-left: 4px solid var(--y-wine); background: var(--y-paper); }
.letter-body .y-answer .y-answer-label { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.14em; color: var(--y-wine); font-weight: 700; }
.letter-body .y-answer p:last-child { margin: 0; font-size: 1.08em; color: var(--y-ink); font-weight: 700; line-height: 1.85; }
.letter-body .y-table { margin: 22px 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.letter-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.7; background: var(--y-paper); }
.letter-body th, .letter-body td { padding: 10px 14px; border: 1px solid var(--y-line); text-align: left; vertical-align: top; }
.letter-body th { background: var(--y-sand); color: var(--y-ink); font-weight: 700; white-space: nowrap; }
.letter-body h3 { margin: 34px 0 6px; font-size: clamp(19px, 1.9vw, 23px); color: var(--y-ink); }
.letter-body .y-video { margin: 24px 0; padding: 14px 18px; border: 1px dashed var(--y-gold); }
.letter-body .y-video a { color: var(--y-wine); }
