/* ========================================================
   awoo x 咖啡鄉 – v3.4 家長文章強化版 (穩定版)
   ======================================================== */

/* ========== A. Variables ========== */
:root{
  --brand-primary:#0056b3;
  --brand-secondary:#004a99;
  --background-light:#f8f9fa;
  --font-dark:#2c3e50;
  --font-medium:#34495e;
  --font-light:#495057;
  --shadow-light:0 4px 12px rgba(0,0,0,.05);
  --shadow-heavy:0 8px 25px rgba(0,0,0,.1);
}

/* ========== B. Scope: cms-article-scope ========== */
.cms-article-scope{
  font-family:'Noto Sans TC','Helvetica Neue',Helvetica,Arial,sans-serif;
  line-height:1.8;
  color:var(--font-medium);
  max-width:880px;
  margin:0 auto;
  padding:0 1rem;
}

/* ========== C. Section Cards ========== */
.cms-article-scope .section-card {
  background: var(--background-light);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}
.cms-article-scope .section-card:hover { box-shadow: var(--shadow-heavy); }
.cms-article-scope .section-card p {
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: #333;
  margin-bottom: 1.2rem;
}

/* ========== D. Tip box & Blockquote ========== */
.cms-article-scope .tip-box {
  background: #fff8e1;
  border-left: 6px solid #ffc107;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #5c4400;
}
.cms-article-scope .tip-box strong { color:#e65100; }

.cms-article-scope blockquote {
  background: #f5f9ff;
  border-left: 6px solid #1976d2;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: #1a3c6b;
  border-radius: 8px;
}

/* ========== E. Lists ========== */
.cms-article-scope .section-card ul { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.cms-article-scope .section-card ul li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.4rem;
}
.cms-article-scope .section-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

/* ========== F. Headings ========== */
.cms-article-scope h2, 
.cms-article-scope h3 {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
  color: #222;
  margin: 1.6rem 0 1rem;
}
.cms-article-scope h2 {
  font-size: 1.6rem;
  border-bottom: 3px solid #ff7043;
  padding-bottom: 0.3rem;
}
.cms-article-scope h3 {
  font-size: 1.3rem;
  border-left: 4px solid #42a5f5;
  padding-left: 0.6rem;
}

/* ========== G. Highlight ========== */
.cms-article-scope .highlight-text {
  background: linear-gradient(90deg,#ffecb3 0%,#ffe082 100%);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* ========== H. Slide embeds (圖片) ========== */
.cms-article-scope .slide-embed img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  margin: 0 auto;
  display: block;
}

/* ========== I. Special Blocks ========== */
.cms-article-scope .highlight-kaohsiung {
  background:#f8f9fa;
  border-left:5px solid var(--brand-primary);
  margin:2em 0;
  padding:20px 25px;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}
.cms-article-scope .highlight-kaohsiung h2{
  font-size:1.4em; font-weight:700; color:#333; margin:0 0 15px;
}
.cms-article-scope .highlight-kaohsiung p{
  font-size:1.1em; line-height:1.8; color:#495057; margin-bottom:12px;
}
.cms-article-scope .highlight-kaohsiung p strong{
  color:var(--brand-secondary); font-weight:600;
}

/* CTA Banner */
.cms-article-scope .cta-banner{
  background:#fff;
  border-left:5px solid var(--brand-primary);
  border-radius:12px;
  padding:20px 24px;
  margin:32px 0;
  box-shadow:var(--shadow-light);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.cms-article-scope .cta-banner .cta-text{
  flex:1 1 320px;
  color:var(--font-light);
  line-height:1.8;
  font-size:1.05em;
}
.cms-article-scope .cta-banner .cta-text a{
  color:var(--brand-primary);
  text-decoration:underline;
}
.cms-article-scope .cta-banner .cta-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

/* Buttons */
.cms-article-scope .btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:8px;
  font-weight:700;
  text-decoration:none;
  line-height:1;
  transition:box-shadow .2s ease, transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cms-article-scope .btn-primary{
  background:var(--brand-primary);
  color:#fff !important;
  box-shadow:var(--shadow-light);
}
.cms-article-scope .btn-primary:hover{
  box-shadow:var(--shadow-heavy);
  transform:translateY(-1px);
}
.cms-article-scope .btn-ghost{
  background:transparent;
  color:var(--brand-primary) !important;
  border:2px solid var(--brand-primary);
}
.cms-article-scope .btn-ghost:hover{
  background:var(--brand-primary);
  color:#fff !important;
  border-color:var(--brand-primary);
}

/* ========== J. Mobile 微調 ========== */
@media (max-width:600px){
  .cms-article-scope .cta-banner{ padding:16px 16px; }
  .cms-article-scope .btn{ width:100%; text-align:center; }
}
