/* ===== 營火部落 視覺調整（2026 深色版） ===== */

/* 1. 字型：補上中文字體堆疊 */
body, button, input, select, textarea,
.entry-title, .site-title, .main-navigation a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

/* 2. 深色基底 */
html, body, body.custom-colors { background: #14110f !important; }
body, body p, body li, body dd, body .entry-content { color: #d9d2cb; }
body h1, body h2, body h3, body h4, body h5, body h6,
body .page-title, body .archive-title { color: #f7f3ee; }
body hr { background: rgba(255,255,255,.1); }
body .site-header { background: #14110f !important; border-bottom: 1px solid rgba(255,255,255,.07); }
body .site-title a, body .site-title a:visited { color: #f7f3ee !important; }
body .site-title a:hover { color: #f0813a !important; }
body .site-description { color: #9c948c !important; }

/* 3. 文章卡片：漸層遮罩讓標題在任何照片上都清楚 */
article .square-area::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 35%, rgba(0,0,0,.76) 100%);
  pointer-events: none; transition: opacity .3s ease;
}
article:hover .square-area::after { opacity: .88; }
article .square-area .entry-header { position: relative; z-index: 2; }
article .square-area .entry-title,
article .square-area .entry-title a { color: #fff !important; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
article .square-area .entry-meta,
article .square-area .entry-meta a { color: rgba(255,255,255,.82) !important; }

/* 4. 導覽列 */
body .main-navigation a { color: #d9d2cb !important; }
body .main-navigation a:hover,
body .main-navigation li.current-menu-item > a,
body .main-navigation li.current_page_item > a,
body .main-navigation li.current-menu-ancestor > a { color: #f0813a !important; }
body .main-navigation ul ul {
  background: #1e1a17 !important; border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 14px 30px rgba(0,0,0,.55);
}
body .main-navigation ul ul a { color: #d9d2cb !important; }
body .main-navigation ul ul a:hover { background: rgba(240,129,58,.12); color: #f0813a !important; }
body .menu-toggle, body .menu-toggle:hover { color: #f7f3ee !important; background: transparent !important; }

/* 5. 分頁與無限捲動按鈕 */
body .navigation.pagination .page-numbers {
  background: #241f1b !important; color: #d9d2cb !important;
  border: 1px solid rgba(255,255,255,.09);
}
body .navigation.pagination .page-numbers.current,
body .navigation.pagination a.page-numbers:hover {
  background: #d2551c !important; color: #fff !important; border-color: #d2551c !important;
}
body #infinite-handle span,
body #infinite-handle span button {
  background: #d2551c !important; color: #fff !important;
  border: 0 !important; border-radius: 4px; font-weight: 700;
}
body #infinite-handle span:hover,
body #infinite-handle span button:hover { background: #f0813a !important; }
body .infinite-loader, body #infinite-footer { background: transparent !important; }

/* 6. 小工具區 */
body .widget-area {
  background: #1a1613 !important;
  border-top: 1px solid rgba(255,255,255,.07);
}
body .widget-area .widget-title {
  text-align: left; font-size: .95rem; letter-spacing: .06em;
  margin-bottom: 1.1em; color: #f7f3ee !important;
}
body .widget-area .widget { max-width: 460px; }
body .search-field, body input[type="search"], body input[type="text"],
body input[type="email"], body input[type="url"], body textarea {
  background: #14110f !important; color: #e7e2dc !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}
body ::placeholder { color: #7d756e; opacity: 1; }
body .search-submit, body .widget_search button, body .search-form button {
  background: #d2551c !important; color: #fff !important; border-color: #d2551c !important;
}
body .search-submit:hover, body .widget_search button:hover { background: #f0813a !important; }

/* 7. 頁尾 */
body .site-footer { background: #0c0a09 !important; border-top: 1px solid rgba(255,255,255,.07); }
body .site-info, body .site-info a { color: #8a827b !important; }
body .site-info a:hover { color: #f0813a !important; }
body .jetpack-social-navigation a { color: #cfc6bd !important; border-color: rgba(255,255,255,.22) !important; }
body .jetpack-social-navigation a:hover { color: #f0813a !important; border-color: #f0813a !important; }
body .jetpack-social-navigation svg { fill: currentColor; }

/* 8. 單篇文章 */
body .single .hero-area .entry-header,
body .page .hero-area .entry-header { text-shadow: 0 2px 14px rgba(0,0,0,.75); }
body .single .hero-area .entry-meta,
body .single .hero-area .entry-meta a,
body .page .hero-area .entry-meta { color: #f2ede8 !important; }
body .single .hero-area .entry-meta a:hover { color: #f0813a !important; }
body .entry-content a { color: #f0813a; }
body .entry-content a:hover { color: #ffa05c; }
body .entry-content blockquote {
  border-left: 3px solid #d2551c; background: rgba(255,255,255,.035);
  color: #b8b0a8; padding: 1em 1.4em;
}
body .entry-content code, body .entry-content pre {
  background: #1e1a17; color: #e7e2dc; border: 1px solid rgba(255,255,255,.08);
}
body .entry-content table, body .entry-content td, body .entry-content th { border-color: rgba(255,255,255,.12); }
body .entry-meta, body .entry-footer, body .cat-links, body .tags-links { color: #9c948c; }
body .comments-area, body .comment-body, body .comment-content { color: #d9d2cb; }
body .comment-metadata a, body .comment-author a { color: #b8b0a8; }

/* 9. 頁尾三欄：熱門主題與簡介 */
body .footer-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6em 1em; }
body .footer-topics li { margin: 0; padding: 0; }
body .footer-topics a { text-decoration: none; color: #c4bcb4; font-size: .9rem; border-bottom: 1px solid transparent; }
body .footer-topics a:hover { color: #f0813a; border-bottom-color: #f0813a; }
body .footer-about { font-size: .9rem; line-height: 1.85; color: #9c948c; margin: 0 0 1em; }
body .footer-about-link { margin: 0; }
body .footer-about-link a { text-decoration: none; font-weight: 700; color: #f0813a; font-size: .9rem; border: 0; }
body .footer-about-link a:hover { color: #ffa05c; }

/* 10. 社群追蹤卡 */
body .fb-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px; margin: 0 0 10px; background: #241f1b;
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body .fb-cta:hover { transform: translateY(-2px); background: #2b2521; box-shadow: 0 12px 26px rgba(0,0,0,.5); }
body .fb-cta__icon {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #d2551c; color: #fff;
}
body .fb-cta--yt .fb-cta__icon { background: #c1341a; }
body .fb-cta--ig .fb-cta__icon { background: linear-gradient(45deg, #f0a03a, #e8792f, #c1341a); }
body .fb-cta__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 60px; min-width: 0; }
body .fb-cta__text strong { color: #faf8f5; font-size: .92rem; line-height: 1.35; font-weight: 700; }
body .fb-cta__text small { color: #a8a09a; font-size: .74rem; line-height: 1.5; }
body .fb-cta__btn {
  flex: 1 0 100%; text-align: center; padding: 7px 12px; border-radius: 999px;
  background: #d2551c; color: #fff; font-size: .78rem; font-weight: 700;
}
body .fb-cta:hover .fb-cta__btn { background: #f0813a; }

@media (max-width: 782px) {
  body .widget-area .widget { margin-bottom: 2em; }
}

/* 11. 手機版：CAMPFIRE 品牌官網常駐連結 */
@media screen and (max-width: 767px) {
  body .menu-wrapper { display: block; width: 100%; }
  body .main-navigation {
    background: #1a1613;
    border-top: 1px solid rgba(255,255,255,.07);
  }
  body .menu-wrapper:not(.toggled-on) #primary-menu { display: block; }
  body .menu-wrapper:not(.toggled-on) #primary-menu > li { display: none; }
  body .menu-wrapper:not(.toggled-on) #primary-menu > li.menu-item-17113 { display: block; }
  body #primary-menu > li.menu-item-17113 { border-top: 0; }
  body #primary-menu > li.menu-item-17113 > a,
  body #primary-menu > li.menu-item-17113 > a:hover {
    display: block;
    background: #f0813a;
    color: #14110f !important;
    text-align: center;
    font-weight: 700;
    letter-spacing: .03em;
    padding: .8em 1em;
  }
  body #primary-menu > li.menu-item-17113 > a::after { content: " \2192"; }
}

/* 12. 桌機：CAMPFIRE 品牌官網按鈕 */
@media screen and (min-width: 768px) {
  body #primary-menu > li.menu-item-17113 {
    margin-left: 1em;
    padding-bottom: 0;
    align-self: center;
  }
  body #primary-menu > li:nth-last-child(2)::after,
  body #primary-menu > li.menu-item-17113::after { content: none; }
  body #primary-menu > li.menu-item-17113 > a,
  body #primary-menu > li.menu-item-17113 > a:focus {
    background: #f0813a;
    color: #14110f !important;
    border-radius: 999px;
    padding: .45em 1.15em;
    line-height: 1.45;
    transition: background .18s ease;
  }
  body #primary-menu > li.menu-item-17113 > a:hover {
    background: #ff9a5c;
    color: #14110f !important;
  }
}

/* 13. 文章頁殘留的淺色元件補深色 */
body .post-navigation .nav-links a,
body .post-navigation .nav-links a:hover,
body .post-navigation .nav-links a:focus {
  background: #241f1b !important;
  color: #f7f3ee !important;
  border: 1px solid rgba(255,255,255,.09);
}
body .post-navigation .nav-links a:hover { border-color: rgba(240,129,58,.55); }
body .post-navigation .nav-subtitle { color: #9c948c !important; }
body .sharedaddy .sd-button,
body .sharedaddy .sd-button:visited {
  background: #241f1b !important;
  color: #d9d2cb !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: none !important;
}
body .sharedaddy .sd-button span { color: #d9d2cb !important; }
body .sharedaddy .sd-button::before { color: #d9d2cb !important; }
body .sharedaddy .sd-button:hover { background: #302823 !important; color: #f0813a !important; }
body .sharedaddy .sd-button:hover::before { color: #f0813a !important; }
body #jp-relatedposts .jp-relatedposts-post-title,
body #jp-relatedposts .jp-relatedposts-post-title a { color: #f7f3ee !important; }
body #jp-relatedposts .jp-relatedposts-post-title a:hover { color: #f0813a !important; }
body #jp-relatedposts .jp-relatedposts-post-date,
body #jp-relatedposts .jp-relatedposts-post-context { color: #9c948c !important; }
body .entry-footer { color: #9c948c; }
body button,
body input[type="button"],
body input[type="reset"],
body input[type="submit"] { background: #f0813a; color: #14110f; }
body #respond input[type="text"],
body #respond input[type="email"],
body #respond input[type="url"],
body #respond textarea {
  background: #241f1b;
  color: #f7f3ee;
  border: 1px solid rgba(255,255,255,.14);
}

/* 14. 手機版頁首縮成一行：站名在左、Menu 在右，副標不顯示（2026/09/26 達哥） */
@media screen and (max-width: 767px) {
  body .site-header { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
  body .site-header .site-branding { margin: 0; text-align: left; min-width: 0; flex: 1 1 auto; }
  body .site-header .site-title { font-size: 1.25rem; line-height: 1.3; }
  body .site-header .site-description { display: none; }
  body .site-header .menu-toggle { margin: 0; flex: 0 0 auto; }
  body .site-header .menu-wrapper { flex: 1 1 100%; }
}

/* 15. 手機版「CAMPFIRE 品牌官網」橘色條改細（2026/09/27 達哥：佔據太多高度）。只改高度與字級，顏色、位置、點 Menu 展開後的選單都不變；要還原刪掉這一段即可 */
@media screen and (max-width: 767px) {
  body .menu-wrapper:not(.toggled-on) #site-navigation { padding-top: 6px; padding-bottom: 0; margin-bottom: 0; }
  body #primary-menu > li.menu-item-17113 > a,
  body #primary-menu > li.menu-item-17113 > a:hover { padding: .35em 1em; font-size: 13px; line-height: 1.5; }
}
