/* ============================================
   薪火教育中心 - Blog Article Styles
   ============================================ */

/* === Article Layout === */
.article {
  padding: 48px 0 64px;
  background: #fff;
}

.article .container {
  max-width: 780px;
}

/* === Article Header === */
.article__head {
  margin-bottom: 36px;
  text-align: center;
}

.article__tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(26, 82, 118, 0.10);
  color: #1A5276;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.article__title {
  font-family: "Playfair Display", "Noto Sans TC", serif;
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 900;
  color: #0B1F33;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.article__meta {
  font-size: 14px;
  color: #64748B;
}

/* === Article Body === */
.article__body {
  font-size: 17px;
  line-height: 1.85;
  color: #1F2937;
}

.article__body p {
  margin-bottom: 18px;
}

.article__body strong {
  color: #0B2545;
}

/* Lead paragraph */
.article__body .lead {
  font-size: 18.5px;
  line-height: 1.9;
  color: #0B2545;
  padding: 20px 24px;
  background: #EBF5FB;
  border-left: 4px solid #1A5276;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
  font-weight: 500;
}

/* === Headings === */
.article__body h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0B2545;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #D4E6F1;
  line-height: 1.4;
}

.article__body h3 {
  font-size: 19px;
  font-weight: 700;
  color: #1A5276;
  margin: 28px 0 12px;
  line-height: 1.45;
}

/* === Lists === */
.article__body ul.bullet {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.article__body ul.bullet li {
  position: relative;
  padding: 6px 0 6px 26px;
  line-height: 1.8;
}

.article__body ul.bullet li::before {
  content: "●";
  position: absolute;
  left: 6px;
  top: 6px;
  color: #1A5276;
  font-size: 12px;
}

.article__body ol.number {
  padding-left: 22px;
  margin-bottom: 20px;
}

.article__body ol.number li {
  padding: 6px 0;
  line-height: 1.8;
}

.article__body ol.number li::marker {
  color: #1A5276;
  font-weight: 700;
}

/* === Tables === */
.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  overflow-x: auto;
  display: block;
}

.article__body table thead th {
  background: #133A54;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.article__body table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #D4E6F1;
  line-height: 1.6;
}

.article__body table tbody tr:nth-child(even) {
  background: #F8FAFC;
}

.article__body table tbody tr:hover {
  background: #EBF5FB;
}

/* === Callout Box === */
.article__body .callout {
  padding: 22px 26px;
  background: linear-gradient(135deg, #EBF5FB, #F0F4F8);
  border: 1px solid #D4E6F1;
  border-radius: 12px;
  margin: 28px 0;
}

.article__body .callout > strong {
  display: block;
  font-size: 17px;
  color: #133A54;
  margin-bottom: 8px;
}

.article__body .callout p {
  margin-bottom: 0;
  font-size: 15.5px;
  color: #374151;
}

/* === FAQ Section === */
.article-faq {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid #D4E6F1;
}

.article-faq h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0B2545;
  margin-bottom: 20px;
}

.article-faq details {
  border: 1px solid #D4E6F1;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.article-faq details[open] {
  box-shadow: 0 4px 16px rgba(11, 31, 51, 0.06);
}

.article-faq summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 16px;
  color: #1A5276;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background 0.2s;
}

.article-faq summary:hover {
  background: #F8FAFC;
}

.article-faq summary::-webkit-details-marker {
  display: none;
}

.article-faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #64748B;
  transition: transform 0.25s;
}

.article-faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.article-faq details p {
  padding: 0 20px 18px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #374151;
}

/* === Related Articles === */
.article-related {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid #D4E6F1;
}

.article-related h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0B2545;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: #F8FAFC;
  border: 1px solid #D4E6F1;
  border-radius: 10px;
  text-decoration: none;
  color: #0B2545;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.08);
  border-color: transparent;
}

.related-card__tag {
  font-size: 11px;
  font-weight: 700;
  color: #1A5276;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.related-card strong {
  font-size: 15px;
  line-height: 1.5;
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 16px 0;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb__list li {
  display: flex;
  align-items: center;
}

.breadcrumb__list li + li::before {
  content: "/";
  margin: 0 8px;
  color: #94A3B8;
}

.breadcrumb__list a {
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb__list a:hover {
  color: #1A5276;
}

.breadcrumb__list [aria-current="page"] {
  color: #0B2545;
  font-weight: 600;
}

/* === Responsive === */
@media (max-width: 768px) {
  .article {
    padding: 32px 0 48px;
  }

  .article .container {
    padding: 0 20px;
  }

  .article__title {
    font-size: 24px;
  }

  .article__body {
    font-size: 16px;
  }

  .article__body .lead {
    font-size: 16.5px;
    padding: 16px 18px;
  }

  .article__body h2 {
    font-size: 20px;
  }

  .article__body h3 {
    font-size: 17px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article__body table {
    font-size: 13.5px;
  }

  .article__body table thead th,
  .article__body table tbody td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .article__head {
    text-align: left;
  }

  .article__title {
    font-size: 22px;
  }

  .article-faq summary {
    font-size: 15px;
  }
}