/* ============================================
   BLOG.CSS — 部落格／長文版面
   ============================================ */

/* ---------- HERO ---------- */
.blog-hero {
  background: linear-gradient(180deg, #fdfbf5 0%, #f9f5ec 100%);
  padding: 100px 0 60px;
  border-bottom: 1px solid rgba(48, 78, 56, 0.08);
}
.blog-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.blog-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #847a6c;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}
.blog-breadcrumb a {
  color: #304e38;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.blog-breadcrumb a:hover { border-bottom-color: #c9a449; }
.blog-breadcrumb span[aria-hidden] { color: #c9a449; }

.blog-hero__title {
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.25;
  color: #304e38;
  margin: 20px 0 28px;
  letter-spacing: -0.5px;
}
.blog-hero__title em.text-gold {
  font-style: normal;
  color: #c9a449;
}
.blog-hero__sub {
  font-size: 17px;
  line-height: 1.85;
  color: #4a5447;
  margin: 0 auto 36px;
  max-width: 680px;
}
.blog-hero__sub strong { color: #304e38; }

.blog-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  padding: 12px 24px;
  background: rgba(48, 78, 56, 0.05);
  border-radius: 999px;
  font-size: 13px;
  color: #5a5247;
}
.blog-meta__sep { color: #c9a449; }
.blog-meta__author { font-weight: 600; color: #304e38; }

/* ---------- ARTICLE ---------- */
.blog-article {
  padding: 60px 0 100px;
  background: #fdfbf5;
}
.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOC */
.blog-toc {
  background: #f9f5ec;
  border-left: 4px solid #c9a449;
  border-radius: 10px;
  padding: 28px 32px;
  margin: 0 0 56px;
}
.blog-toc__title {
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  color: #304e38;
  margin: 0 0 16px;
  letter-spacing: 0.5px;
}
.blog-toc__list {
  margin: 0;
  padding-left: 22px;
  color: #4a5447;
  line-height: 2;
  font-size: 15px;
}
.blog-toc__list a {
  color: #304e38;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}
.blog-toc__list a:hover { border-bottom-color: #c9a449; }

/* Callouts */
.blog-callout {
  border-radius: 14px;
  padding: 28px 32px;
  margin: 36px 0;
}
.blog-callout--gold {
  background: linear-gradient(135deg, #fef8e9 0%, #f9efd0 100%);
  border: 1px solid #e3c878;
}
.blog-callout--green {
  background: #304e38;
  color: #fdfbf5;
}
.blog-callout--green ul li,
.blog-callout--green p { color: #e8e4d4; }
.blog-callout--green strong { color: #c9a449; }

.blog-callout h3 {
  font-family: "Noto Serif TC", serif;
  font-size: 20px;
  margin: 0 0 14px;
  color: #304e38;
}
.blog-callout--green h3 { color: #c9a449; }

.blog-callout ul,
.blog-callout ol {
  margin: 0 0 0 0;
  padding-left: 22px;
  line-height: 1.85;
  color: #4a5447;
  font-size: 15.5px;
}
.blog-callout li { margin-bottom: 8px; }
.blog-callout li strong { color: #304e38; }

.blog-callout .btn { margin-top: 16px; }

/* Sections */
.blog-section { margin: 64px 0; }
.blog-section h2 {
  font-family: "Noto Serif TC", serif;
  font-weight: 800;
  font-size: 30px;
  color: #304e38;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #c9a449;
  letter-spacing: -0.3px;
  line-height: 1.45;
}
.blog-section h3 {
  font-family: "Noto Serif TC", serif;
  font-weight: 700;
  font-size: 21px;
  color: #304e38;
  margin: 36px 0 16px;
}
.blog-section p {
  font-size: 16px;
  line-height: 1.95;
  color: #4a5447;
  margin: 0 0 18px;
}
.blog-section p strong { color: #304e38; }
.blog-section ul,
.blog-section ol {
  margin: 0 0 20px;
  padding-left: 24px;
  color: #4a5447;
  line-height: 1.95;
  font-size: 16px;
}
.blog-section li { margin-bottom: 10px; }
.blog-section li strong { color: #304e38; }

.blog-lead {
  font-size: 18px !important;
  line-height: 1.9 !important;
  background: #f9f5ec;
  padding: 22px 26px;
  border-radius: 10px;
  border-left: 4px solid #304e38;
}

.blog-quote {
  margin: 32px 0;
  padding: 22px 28px 22px 36px;
  background: linear-gradient(90deg, rgba(201,164,73,0.08) 0%, transparent 100%);
  border-left: 4px solid #c9a449;
  border-radius: 6px;
}
.blog-quote p {
  font-family: "Noto Serif TC", serif;
  font-size: 19px;
  font-weight: 500;
  color: #304e38;
  margin: 0;
  line-height: 1.7;
}

.blog-note {
  font-size: 13.5px !important;
  color: #847a6c !important;
  font-style: italic;
  line-height: 1.7 !important;
  padding: 10px 0;
}

/* Tables */
.blog-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 10px;
  border: 1px solid #e3dcc9;
}
.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #ffffff;
}
.blog-table thead {
  background: #304e38;
  color: #fdfbf5;
}
.blog-table th,
.blog-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ede6d3;
}
.blog-table th {
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 13.5px;
}
.blog-table td:first-child {
  font-weight: 600;
  color: #304e38;
}
.blog-table tbody tr:nth-child(even) { background: #fdfbf5; }
.blog-table tbody tr:last-child td { border-bottom: none; }

/* Numbered lists with strong */
.blog-numlist {
  list-style: decimal;
  padding-left: 28px;
}
.blog-numlist li::marker {
  color: #c9a449;
  font-weight: 700;
}

/* Tool cards */
.blog-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}
.blog-tool {
  background: #ffffff;
  border: 1px solid #e3dcc9;
  border-left: 4px solid #c9a449;
  border-radius: 10px;
  padding: 22px 26px;
  position: relative;
}
.blog-tool__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 600;
  color: #c9a449;
  opacity: 0.5;
}
.blog-tool h3 {
  margin: 0 0 8px;
  font-size: 18px !important;
  padding-right: 50px;
}
.blog-tool p {
  font-size: 14.5px !important;
  margin: 0 0 8px !important;
  line-height: 1.75 !important;
}
.blog-tool__pair {
  background: #f9f5ec;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13.5px !important;
  margin-top: 10px !important;
}
.blog-tool__pair strong { color: #304e38; }

/* Steps */
.blog-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  margin: 28px 0;
}
.blog-steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 24px 18px 76px;
  background: #ffffff;
  border: 1px solid #e3dcc9;
  border-radius: 10px;
  margin-bottom: 14px;
}
.blog-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 18px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 32px;
  color: #c9a449;
  line-height: 1;
}
.blog-steps strong {
  font-family: "Noto Serif TC", serif;
  font-size: 17px;
  color: #304e38;
  display: block;
  margin-bottom: 4px;
}
.blog-steps p {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.8 !important;
}

/* Pitfalls */
.blog-pitfalls {
  list-style: none;
  padding: 0;
}
.blog-pitfalls li {
  background: #ffffff;
  border-left: 4px solid #d04848;
  padding: 16px 22px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: #4a5447;
}
.blog-pitfalls li strong { color: #304e38; }

/* Final CTA */
.blog-final-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0 28px;
  padding: 32px;
  background: linear-gradient(135deg, #304e38 0%, #1f3a26 100%);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
}
.blog-final-cta .btn--primary {
  background: #c9a449;
  color: #1f3a26;
  border-color: #c9a449;
}
.blog-final-cta .btn--primary:hover {
  background: #b8923d;
  border-color: #b8923d;
}
.blog-final-cta .btn--ghost {
  color: #fdfbf5;
  border-color: #c9a449;
}
.blog-final-cta .btn--ghost:hover { background: rgba(201,164,73,0.15); }

.blog-disclaim {
  margin-top: 28px !important;
  padding: 22px 24px;
  background: #f6f1e7;
  border-radius: 10px;
  font-size: 13px !important;
  line-height: 1.85 !important;
  color: #5a5247 !important;
  border: 1px dashed #c9a449;
}
.blog-disclaim strong { color: #304e38; }

/* Related */
.blog-related {
  margin: 80px 0 0;
  padding-top: 56px;
  border-top: 2px solid #e3dcc9;
}
.blog-related__title {
  font-family: "Noto Serif TC", serif;
  font-size: 24px;
  color: #304e38;
  text-align: center;
  margin: 0 0 32px;
}
.blog-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.blog-related__card {
  background: #ffffff;
  border: 1px solid #e3dcc9;
  border-radius: 12px;
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-related__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(48,78,56,0.12);
}
.blog-related__tag {
  display: inline-block;
  padding: 4px 10px;
  background: #c9a449;
  color: #1f3a26;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.blog-related__card h3 {
  font-family: "Noto Serif TC", serif;
  font-size: 16px;
  color: #304e38;
  line-height: 1.55;
  margin: 0 0 12px;
}
.blog-related__card p {
  font-size: 13px;
  color: #847a6c;
  margin: 0;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #1f3a26;
  color: #d4d0c0;
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fdfbf5;
  font-family: "Noto Serif TC", serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}
.footer__tag {
  font-size: 14px;
  line-height: 1.85;
  color: #b3b09e;
  margin: 0;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col h4 {
  color: #c9a449;
  font-size: 14px;
  letter-spacing: 1px;
  margin: 0 0 14px;
  font-weight: 600;
}
.footer__col a,
.footer__col span {
  display: block;
  color: #d4d0c0;
  text-decoration: none;
  font-size: 14px;
  line-height: 2;
  transition: color 0.2s;
}
.footer__col a:hover { color: #c9a449; }
.footer__legal {
  background: rgba(0,0,0,0.2);
  padding: 18px 0;
  text-align: center;
}
.footer__legal p {
  color: #847a6c;
  font-size: 12.5px;
  margin: 0;
  line-height: 1.7;
}

/* ---------- STICKY CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #c9a449 0%, #b8923d 100%);
  color: #1f3a26;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(201,164,73,0.45), 0 0 0 4px rgba(255,255,255,0.6);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  line-height: 1.2;
}
.sticky-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(201,164,73,0.55), 0 0 0 4px rgba(255,255,255,0.7);
}
.sticky-cta__label {
  font-weight: 700;
  font-size: 15px;
}
.sticky-cta__price {
  font-size: 11.5px;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-top: 2px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .blog-hero { padding: 70px 0 40px; }
  .blog-hero__title { font-size: 30px; }
  .blog-section h2 { font-size: 24px; }
  .blog-section h3 { font-size: 18px; }
  .blog-toc { padding: 22px 24px; }
  .blog-callout { padding: 22px 22px; }
  .blog-steps li { padding: 14px 18px 14px 64px; }
  .blog-steps li::before { font-size: 26px; left: 16px; top: 14px; }
  .blog-final-cta { padding: 22px; }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .footer__col a, .footer__col span { font-size: 13px; }
  .sticky-cta {
    right: 50%;
    transform: translateX(50%);
    bottom: 16px;
    padding: 10px 18px;
  }
  .sticky-cta:hover { transform: translateX(50%) translateY(-2px); }
  .sticky-cta__label { font-size: 13.5px; }
  .sticky-cta__price { font-size: 10.5px; }
}

/* Active nav state */
.nav a.is-active {
  color: #c9a449 !important;
  border-bottom: 2px solid #c9a449;
}
