/* 婚姻995 — 文章 / 頁面閱讀版型 (article.css) */

.article-hero { background: var(--bg-warm); border-bottom: 1px solid var(--border-default); padding-block: clamp(2rem, 4vw, 3.2rem); }
.article-hero .container { max-width: var(--maxw); }
.article-hero__meta { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; font-size: .85rem; color: var(--text-secondary); flex-wrap: wrap; }
.article-hero h1 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); line-height: 1.3; margin-bottom: .9rem; }
.article-hero__excerpt { color: var(--text-secondary); font-size: 1.08rem; margin: 0; }
.article-hero__author { display: flex; align-items: center; gap: .6rem; margin-top: 1.3rem; font-size: .9rem; color: var(--text-primary); }
.article-hero__author .av { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-navy); color: #fff; display: grid; place-items: center; font-weight: 700; }

.article-featured { max-width: var(--maxw); margin: -1.5rem auto 0; padding-inline: clamp(1.1rem,4vw,2.2rem); }
.article-featured img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

.article-body { padding-block: clamp(2.4rem, 5vw, 3.5rem); }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); max-width: var(--maxw); margin-inline: auto; }
.article-main { min-width: 0; }

/* 目錄 / 側欄 */
.article-aside { position: sticky; top: 96px; align-self: start; }
.aside-box { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-card); padding: 1.4rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-card); }
.aside-box h4 { font-size: 1rem; margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--bg-gold-soft); }
.toc-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.toc-list li { margin-bottom: .55rem; line-height: 1.5; }
.toc-list a { color: var(--text-secondary); }
.toc-list a:hover { color: var(--brand-rose); }
.aside-cta { background: var(--brand-navy); color: #fff; text-align: center; }
.aside-cta h4 { color: #fff; border: none; padding: 0; }
.aside-cta p { color: rgba(255,255,255,.82); font-size: .9rem; }
.aside-cta .btn { width: 100%; }

.article-tags { margin-top: 2.5rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.article-tags .lbl { font-size: .9rem; color: var(--text-secondary); }

.article-share { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid var(--border-default); }

/* 作者 / 免責 / 相關文章 */
.article-disclaimer { margin-top: 2rem; font-size: .88rem; color: var(--text-secondary); background: var(--bg-warm); border-radius: 12px; padding: 1.1rem 1.3rem; border-left: 3px solid var(--brand-gold); }

.related { background: var(--bg-warm); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* 內文導引 CTA 卡 */
.inline-cta { background: linear-gradient(120deg, var(--brand-navy), var(--brand-navy-dark)); color: #fff; border-radius: var(--radius-card); padding: 1.8rem; margin: 2.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.inline-cta h4 { color: #fff; margin-bottom: .3rem; }
.inline-cta p { margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; }

/* ---------- Page（一般固定頁 / 服務頁）---------- */
.page-hero { background: linear-gradient(180deg,#FBF7F0, var(--bg-warm)); border-bottom: 1px solid var(--border-default); padding-block: clamp(2.6rem,5vw,4rem); text-align: center; }
.page-hero .container { max-width: var(--maxw); }
.page-hero h1 { margin-bottom: .8rem; }
.page-hero p { color: var(--text-secondary); font-size: 1.1rem; margin: 0; }
.page-body { padding-block: clamp(2.4rem,5vw,4rem); }
.page-body .container { max-width: var(--maxw); }

/* 服務頁專用元件（可在頁面 HTML 內使用） */
.svc-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0; padding: 0; list-style: none; }
.svc-points li { display: flex; gap: .7rem; background: #fff; border: 1px solid var(--border-default); border-radius: 12px; padding: 1rem 1.2rem; margin: 0; }
.svc-points li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23B7863C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; margin-top: 3px; }

/* ---------- 聯絡頁 ---------- */
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 2.4rem; padding: 0; list-style: none; }
.contact-methods li { margin: 0; }
.contact-method { display: flex; flex-direction: column; gap: .5rem; height: 100%; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-card); padding: 1.5rem 1.3rem; box-shadow: var(--shadow-card); transition: all .2s ease; }
.contact-method:hover { border-color: var(--brand-rose); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.contact-method__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-navy); color: var(--brand-gold); }
.contact-method__ic svg { width: 24px; height: 24px; }
.contact-method h3 { font-size: 1.08rem; margin: 0; }
.contact-method p { margin: 0; font-size: .92rem; color: var(--text-secondary); }
.contact-method .val { font-size: 1.05rem; font-weight: 700; color: var(--brand-navy); }
.contact-form { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: clamp(1.5rem,4vw,2.4rem); box-shadow: var(--shadow-card); }
.contact-form .field { margin-bottom: 1.1rem; }
.contact-form label { display: block; font-weight: 600; color: var(--brand-navy); margin-bottom: .4rem; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid var(--border-default); border-radius: var(--radius-input); font-family: inherit; font-size: 1rem; background: #fff; color: var(--text-primary); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand-rose); box-shadow: 0 0 0 3px rgba(185,120,120,.15); }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--text-secondary); }
.contact-form .consent input { width: auto; margin-top: .25rem; }
.form-note { font-size: .85rem; color: var(--text-secondary); background: var(--info-bg); border-left: 3px solid var(--info); padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.5rem; }
@media (max-width: 720px) { .contact-methods { grid-template-columns: 1fr; } .contact-form .row2 { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .svc-points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
