/* 晨緹牙醫診所 — 共用樣式表（衛教文章頁 / 療程落地頁） */
:root {
  --primary-green: #8bc34a;
  --light-green: #dcedc8;
  --wood-dark: #8d6e63;
  --wood-light: #efebe9;
  --bg-light: #fefdfb;
  --text-main: #3e2723;
  --text-light: #5d4037;
  --bg-white: #ffffff;
  --accent-color: #ff9800;
}

html, body { margin: 0; padding: 0; width: 100%; max-width: 100vw; overflow-x: hidden; }
* { box-sizing: border-box; font-family: 'Noto Sans TC', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-main); line-height: 1.7; scroll-behavior: smooth; }
a { color: var(--primary-green); }

/* 頁首 */
header { background-color: rgba(255,255,255,0.96); box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: fixed; width: 100%; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 15px 50px; backdrop-filter: blur(5px); }
.logo { font-size: 24px; font-weight: 700; color: var(--primary-green); display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 45px; width: 45px; object-fit: contain; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.nav-links a { text-decoration: none; color: var(--text-main); margin-left: 20px; font-weight: 500; transition: all 0.3s ease; position: relative; }
.nav-links a:hover { color: var(--primary-green); }
.mobile-menu-btn { display: none; }

/* 麵包屑 */
.breadcrumb { max-width: 900px; margin: 0 auto; padding: 110px 20px 0; font-size: 14px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-green); }
.breadcrumb span { color: var(--primary-green); }

/* 頁面主體 */
.page { max-width: 900px; margin: 0 auto; padding: 25px 20px 80px; }
.page h1 { font-size: 34px; color: var(--wood-dark); line-height: 1.4; margin: 15px 0 10px; font-weight: 700; }
.page .meta { color: #888; font-size: 15px; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.page .lead { font-size: 19px; color: var(--text-main); font-weight: 500; margin-bottom: 30px; }

/* 文章內文 */
.article-body-text { color: var(--text-main); font-size: 18px; line-height: 1.85; word-wrap: break-word; overflow-wrap: break-word; }
.article-body-text h2 { color: var(--wood-dark); font-size: 26px; font-weight: 700; margin: 40px 0 15px; }
.article-body-text h3 { color: var(--primary-green); margin: 30px 0 15px; font-size: 22px; font-weight: 700; }
.article-body-text p { margin-bottom: 20px; }
.article-body-text ul { margin-bottom: 20px; padding-left: 20px; }
.article-body-text li { margin-bottom: 10px; }
.article-body-text img { width: 100%; max-width: 600px; border-radius: 12px; margin: 25px auto; box-shadow: 0 4px 15px rgba(0,0,0,0.08); display: block; }

/* 按鈕 */
.btn-primary { background-color: var(--primary-green); color: #fff; padding: 15px 36px; border-radius: 30px; text-decoration: none; font-size: 17px; font-weight: 700; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(139,195,74,0.3); border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background-color: #7cb342; transform: translateY(-2px); color: #fff; }
.btn-outline { background-color: transparent; color: var(--primary-green); padding: 12px 28px; border-radius: 30px; text-decoration: none; font-size: 16px; font-weight: 500; transition: all 0.3s ease; border: 2px solid var(--primary-green); cursor: pointer; display: inline-block; }
.btn-outline:hover { background-color: var(--primary-green); color: #fff; }

/* 常見問答 */
.faq { max-width: 900px; margin: 50px auto 0; }
.faq h2 { font-size: 26px; color: var(--wood-dark); font-weight: 700; margin-bottom: 20px; }
.faq-item { background: var(--bg-white); border: 1px solid #f0ece9; border-left: 4px solid var(--primary-green); border-radius: 0 12px 12px 0; padding: 20px 24px; margin-bottom: 16px; }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; color: var(--text-main); }
.faq-item p { margin: 0; font-size: 16px; color: var(--text-light); }

/* 行動呼籲區 */
.cta-box { max-width: 900px; margin: 55px auto 0; background: var(--wood-light); border-radius: 24px; padding: 45px 30px; text-align: center; }
.cta-box h2 { font-size: 24px; color: var(--wood-dark); margin: 0 0 12px; }
.cta-box p { color: var(--text-light); margin: 0 0 25px; font-size: 16px; }
.cta-buttons { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }

/* 相關文章 */
.related { max-width: 900px; margin: 50px auto 0; }
.related h2 { font-size: 22px; color: var(--wood-dark); margin-bottom: 18px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.related a { display: block; background: var(--bg-white); border: 1px solid #f0ece9; border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--text-main); font-weight: 500; transition: all 0.2s; }
.related a:hover { border-color: var(--primary-green); color: var(--primary-green); }

/* 頁尾 */
footer { background-color: var(--text-main); color: rgba(255,255,255,0.8); text-align: center; padding: 35px 20px; font-size: 14px; margin-top: 60px; }
footer a { color: rgba(255,255,255,0.9); }

@media (min-width: 700px) { .related ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  header { padding: 15px 25px; }
  .nav-links { display: none; }
  .page h1 { font-size: 26px; }
  .article-body-text { font-size: 16px; }
  .breadcrumb { padding-top: 95px; }
}
