/*
Theme Name: 聯盟智庫 · 謝佳穎百科
Theme URI: https://intsmti.com/
Author: 聯盟智庫
Author URI: https://intsmti.com/
Description: 以 intsmti.com 的設計系統（深藍／米白／琥珀）打造的主題。首頁上半部完整複刻參考站首頁（主視覺、人物輪播、四大板塊、聯絡區），連結指向參考站；下半部為 WordPress 文章列表並逐篇輸出全文。其餘頁面沿用 WordPress 原有內容結構，只套用參考站樣式。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xjy-zhiku
Tags: blog, custom-menu, featured-images, translation-ready, threaded-comments
*/

/* --------------------------------------------------------------------------
   此檔案只放主題宣告與少量覆寫；
   主要樣式在 assets/css/base.css（參考站設計系統）與 assets/css/wp.css（WordPress 整合）。
   -------------------------------------------------------------------------- */

/* 首頁文章區的第一個標題不要額外上邊距 */
.xjy-archive .xjy-prose > *:first-child { margin-top: 0; }

/* 文章內文結尾的空白段落收乾淨 */
.xjy-prose > p:empty:last-child { display: none; }

/* 內頁頁首的麵包屑與主視覺之間不要雙線 */
.breadcrumb + .page-hero { border-top: 0; }

/* 首頁人物輪播在 JS 未載入時仍可讀（不做 transform 位移） */
.character-track.is-animated { transform: translate3d(0, 0, 0); }

/* 讀取中：避免未執行 JS 時卡片全部擠壓 */
.character-list .character-card { flex: 0 0 25%; }
@media (max-width: 700px) {
  .character-list .character-card { flex: 0 0 50%; }
}
@media (max-width: 390px) {
  .character-list .character-card { flex: 0 0 100%; }
}
