/* ===== 穎流風格文章頁面模板 ===== */

/* Hero 區塊：簡潔左對齊 */
.article-header {
  padding: 120px 0 0;
}
.article-header .shell {
  max-width: 1100px;
}
.breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #d4a55c; }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }

.article-category-tag {
  display: inline-block; padding: 6px 16px; font-size: 12px; font-weight: 700;
  background: rgba(212,165,92,0.12); border: 1px solid rgba(212,165,92,0.25);
  color: #e5c189; border-radius: 4px; letter-spacing: 0.05em; margin-bottom: 20px;
}

.article-title-main {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.3;
  color: #fff; margin-bottom: 20px; max-width: 800px;
}

.article-author-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 36px;
  flex-wrap: wrap;
}
.article-author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(212,165,92,0.15); border: 1px solid rgba(212,165,92,0.3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.article-author-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-author-info { display: flex; flex-direction: column; gap: 2px; }
.article-author-name { font-size: 15px; font-weight: 700; color: #fff; }
.article-author-date { font-size: 13px; color: rgba(255,255,255,0.45); }

/* 封面圖：超大佔滿內容區寬度 */
.article-cover-main {
  width: 100%; border-radius: 8px; margin-bottom: 48px;
  border: 1px solid rgba(255,255,255,0.08);
  object-fit: cover; max-height: 520px; display: block;
}

/* 雙欄佈局 */
.article-layout {
  display: grid; grid-template-columns: 1fr;
  gap: 40px; max-width: 1100px; margin: 0 auto; padding: 40px 20px 80px;
}
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 1fr 300px; gap: 72px; align-items: start; }
}

/* 內容區塊 */
.article-content { font-size: 17px; line-height: 2; color: rgba(255,255,255,0.85); }
.article-content h2 {
  font-size: 26px; font-weight: 800; margin: 56px 0 24px; color: #fff;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px;
}
.article-content h2::before {
  content: ""; display: block; width: 4px; height: 24px;
  background: #d4a55c; border-radius: 2px; flex-shrink: 0;
}
.article-content h3 { font-size: 21px; font-weight: 700; margin: 40px 0 18px; color: #e5c189; }
.article-content p { margin-bottom: 26px; }
.article-content strong {
  color: #fff; font-weight: 700;
  background: rgba(212,165,92,0.15); padding: 2px 6px; border-radius: 4px;
}
.article-content em { font-style: italic; color: #d4a55c; }
.article-content a { color: #d4a55c; text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s; }
.article-content a:hover { color: #fff; }

/* 列表 */
.article-content ul, .article-content ol {
  margin-bottom: 32px; padding-left: 20px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 24px 24px 24px 48px;
}
.article-content li { margin-bottom: 16px; position: relative; }
.article-content li::marker { color: #d4a55c; font-weight: 700; }

/* 引言 */
.article-content blockquote {
  padding: 32px; border-left: 4px solid #d4a55c;
  background: linear-gradient(90deg, rgba(212,165,92,0.08) 0%, rgba(212,165,92,0.02) 100%);
  margin: 48px 0; border-radius: 0 16px 16px 0; position: relative;
}
.article-content blockquote::before {
  content: "\201C"; position: absolute; top: -10px; left: 20px;
  font-size: 80px; color: rgba(212,165,92,0.15); font-family: serif; line-height: 1;
}
.article-content blockquote p {
  margin-bottom: 0; font-size: 20px; font-weight: 700; color: #fff;
  line-height: 1.6; position: relative; z-index: 2;
}

/* 目錄 */
.toc-container {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 28px; margin: 0 0 48px;
  box-shadow: inset 0 0 40px rgba(255,255,255,0.02);
}
.toc-title {
  font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.toc-list { list-style: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; border: none !important; }
.toc-list li { margin-bottom: 10px !important; }
.toc-list a {
  color: rgba(255,255,255,0.6) !important; text-decoration: none !important;
  display: flex; align-items: center; gap: 12px; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; transition: all 0.2s;
}
.toc-list a::before {
  content: "\2192"; font-size: 14px; color: #d4a55c;
  opacity: 0; transform: translateX(-10px); transition: all 0.2s;
}
.toc-list a:hover { color: #fff !important; background: rgba(255,255,255,0.05); }
.toc-list a:hover::before { opacity: 1; transform: translateX(0); }

/* FAQ 手風琴 */
.faq-item {
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  margin-bottom: 16px; background: rgba(255,255,255,0.02);
  overflow: hidden; transition: all 0.3s;
}
.faq-item:hover { border-color: rgba(212,165,92,0.3); background: rgba(255,255,255,0.04); }
.faq-question {
  padding: 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 17px; color: #fff;
}
.faq-question::after { content: "+"; color: #d4a55c; font-size: 24px; font-weight: 300; transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 24px; display: none; color: rgba(255,255,255,0.7); line-height: 1.8; }
.faq-item.active .faq-answer { display: block; border-top: 1px dashed rgba(255,255,255,0.05); padding-top: 24px; margin-top: -8px; }

/* 側邊欄 */
.sidebar { position: sticky; top: 120px; }
.widget {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 24px; margin-bottom: 28px;
}
.widget-title {
  font-size: 14px; font-weight: 700; color: #d4a55c;
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li {
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.widget-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.widget-list a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 14px; line-height: 1.5; transition: color 0.2s; display: block;
}
.widget-list a:hover { color: #fff; }
.widget-tag {
  display: inline-block; padding: 4px 10px;
  background: rgba(255,255,255,0.05); border-radius: 6px;
  font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px;
}

/* CTA Widget */
.widget-cta {
  background: linear-gradient(135deg, rgba(212,165,92,0.1) 0%, rgba(212,165,92,0.02) 100%);
  border: 1px solid rgba(212,165,92,0.3); text-align: center;
}
.widget-cta h4 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.widget-cta p { color: rgba(255,255,255,0.7); font-size: 13px; line-height: 1.6; margin-bottom: 20px; }

/* 底部相關文章 */
.related-articles { margin-top: 72px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.08); }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin-top: 28px;
}
.related-card {
  display: block; text-decoration: none;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 24px; transition: all 0.3s;
}
.related-card:hover { border-color: rgba(212,165,92,0.3); transform: translateY(-2px); }
.related-card-tag { font-size: 12px; color: #8de4ff; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.1em; }
.related-card-title { color: #fff; font-weight: 700; font-size: 16px; line-height: 1.5; margin-bottom: 12px; }
.related-card-link { color: #d4a55c; font-size: 13px; font-weight: 700; }

/* 文章底部 CTA */
.article-bottom-cta {
  background: linear-gradient(135deg, rgba(212,165,92,0.15) 0%, rgba(212,165,92,0.05) 100%);
  border: 1px solid rgba(212,165,92,0.3); border-radius: 16px;
  padding: 40px; text-align: center; margin-top: 48px;
}
.article-bottom-cta h3 { margin-top: 0; color: #fff; font-size: 24px; margin-bottom: 12px; border-bottom: none; }
.article-bottom-cta h3::before { display: none; }
.article-bottom-cta p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.article-bottom-cta .cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* 手機版 */
@media (max-width: 1023px) {
  .sidebar { display: none !important; }
  .article-layout { grid-template-columns: 1fr !important; }
}
