

/* css/article.css */
/* 單篇文章詳情頁 article.html 專用樣式 */

.article-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.article-hero {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: #8a6a3f;
  font-size: 0.95rem;
  text-decoration: none;
}

.article-back-link:hover {
  color: #5f4323;
}

.article-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 14px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: #fff4dc;
  color: #8a5c20;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.article-hero h1 {
  margin: 0;
  color: #3f2b16;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.article-excerpt {
  max-width: 720px;
  margin: 22px auto 0;
  color: #6f604f;
  font-size: 1.08rem;
  line-height: 1.9;
}

.article-date {
  margin: 18px 0 0;
  color: #9b8c7b;
  font-size: 0.95rem;
}

.article-feature-image-wrap {
  margin: 0 auto 48px;
  border-radius: 28px;
  overflow: hidden;
  background: #f7efe2;
  box-shadow: 0 18px 48px rgba(79, 55, 24, 0.12);
}

.article-feature-image-wrap img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px clamp(22px, 5vw, 64px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(64, 42, 18, 0.08);
  color: #4d3a29;
  font-size: 1.06rem;
  line-height: 2;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #3f2b16;
  line-height: 1.5;
}

.article-content h2 {
  margin: 2.2em 0 0.8em;
  font-size: 1.55rem;
}

.article-content h3 {
  margin: 2em 0 0.7em;
  font-size: 1.25rem;
}

.article-content h4 {
  margin: 1.8em 0 0.6em;
  font-size: 1.08rem;
}

.article-content p {
  margin: 0 0 1.35em;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.article-content li {
  margin-bottom: 0.55em;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 5px solid #d9a64b;
  border-radius: 18px;
  background: #fff8ec;
  color: #6b4c27;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.article-content a {
  color: #8a5c20;
  text-underline-offset: 4px;
}

.article-loading,
.article-error {
  text-align: center;
  color: #7b6b58;
}

.article-bottom-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 44px;
}

.article-back-button,
.article-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.article-back-button {
  background: #fff4dc;
  color: #7a5427;
}

.article-product-link {
  background: #7a5427;
  color: #fffaf2;
}

.article-back-button:hover,
.article-product-link:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .article-page {
    padding: 52px 18px 72px;
  }

  .article-hero {
    margin-bottom: 28px;
    text-align: left;
  }

  .article-category {
    justify-content: flex-start;
  }

  .article-excerpt {
    font-size: 1rem;
  }

  .article-feature-image-wrap {
    margin-bottom: 32px;
    border-radius: 22px;
  }

  .article-content {
    padding: 30px 22px;
    border-radius: 24px;
    font-size: 1rem;
  }

  .article-bottom-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .article-back-button,
  .article-product-link {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .article-page {
    padding: 42px 14px 64px;
  }

  .article-hero h1 {
    font-size: 1.85rem;
  }

  .article-content {
    padding: 26px 18px;
    line-height: 1.9;
  }
}