/* ====================================================================
   answer 模組樣式（中性版）
   --------------------------------------------------------------------
   由 index.php / question.php / category.php 無條件掛載。

   ⚠ 這支是「模組自帶樣板」的樣式，不是佈景樣式。
     佈景 CADCH_00042A 已覆寫 answer_category_list / answer_question_list /
     answer_question_view 三支，那三頁的外觀請改 themes/CADCH_00042A/style.css
     的〈answer 問答模組〉一節。

     但 answer_category_form / answer_question_form / answer_category_manage
     這三支「沒有」佈景覆寫，前台投稿與分類管理頁吃的就是本檔，不可刪除。

   2026-08-04 清理：移除 mesakfr 時代（2010s）遺留的 149 行舊樣式。
     刪除的內容與理由：
       - .xop_page_path* / .category_menu* / #item_table* / #main_flist /
         #output / .thumb / .image_to_cover / td#view / .answer_table(底線)
         / .itemHead / .itemTitle / .more / .question_area / .question_q
         / .question_a  → 現行樣板已無對應元素，全為死碼
       - #answer_category li a → 唯一「打得到」的舊規則，但會給分類連結鋪一張
         itemHead_bg.gif 當項目符號並加 text-shadow，是有害不是有用
       - .tags / .date → 全域通用類名掛在無條件載入的 stylesheet 上，
         會誤傷頁面上其他模組的同名元素
       - 依賴 ../../mesakfr/images/jqueryui/ 的跨模組圖片路徑
       - ##main_flist（雙井號，無效選擇器）
     連帶刪除的 9 張孤兒圖片：bc_bg.gif / itemHead_bg.gif / itemtitle.gif /
       itemtitle_hover.gif / read_more.gif / zoom.gif / download.gif /
       no_photo.jpg / loading.gif
       （logo.png 有留，xoops_version.php 使用中）
       itemHead_bg.gif 在 themes/CADCH_00042A/style.css 只出現於註解，非實際引用。

     ⚠ themes/CADCH_00042A/style.css 內有 77 條規則當初被迫寫成
       #answer_content / #answer_category 開頭，唯一目的是把權重拉到 (1,0,x)
       去壓過上述舊碼。舊碼已移除，那些規則日後可降回 class 選擇器，
       但那是另一次重構，不要與本次混在一起。
   ==================================================================== */

.answer-module{line-height:1.7;}
.answer-breadcrumb{margin:8px 0;color:#888;font-size:13px;}
.answer-breadcrumb a{color:#3a6ea5;text-decoration:none;}
.answer-breadcrumb a:hover{text-decoration:underline;}
.answer-title{margin:10px 0;}
.answer-toolbar{margin:10px 0;}
.answer-btn,.answer-link-btn{display:inline-block;padding:4px 12px;background:#3a6ea5;color:#fff;border:none;border-radius:3px;cursor:pointer;text-decoration:none;font-size:13px;}
.answer-btn:hover{background:#2c5580;color:#fff;}
.answer-link-btn{background:#c0392b;padding:2px 8px;}
.answer-category-list{list-style:none;padding:0;margin:10px 0;}
.answer-category-list li{border-bottom:1px solid #eee;}
.answer-category-list li a{display:block;padding:10px 6px;text-decoration:none;color:#333;}
.answer-category-list li a:hover{background:#f5f8fb;color:#3a6ea5;}
.answer-cat-answer > a::before{content:"\0025B8  ";color:#3a6ea5;}
.answer-cat-category > a::before{content:"\01F4C1  ";}
.answer-widget{border:1px solid #e2e2e2;border-radius:4px;margin:10px 0;overflow:hidden;}
.answer-itemHead{background:#f2f6fa;padding:10px 12px;cursor:pointer;position:relative;}
.answer-itemTitle{font-weight:bold;color:#2c3e50;}
.answer-itemTitle-focus{color:#3a6ea5;}
.answer-more{position:absolute;right:12px;top:10px;color:#3a6ea5;text-decoration:none;font-weight:bold;}
.answer-qarea{padding:12px;}
.answer-q,.answer-a,.answer-tags,.answer-date,.answer-attachments{margin:8px 0;}
.answer-label{display:inline-block;font-weight:bold;color:#3a6ea5;margin-right:6px;}
.answer-attach-list{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px;}
.answer-rowtools{margin-top:10px;padding-top:8px;border-top:1px dashed #ddd;}
.answer-rowtools a{margin-right:10px;color:#3a6ea5;text-decoration:none;}
.answer-pagenav{text-align:center;margin:16px 0;}
.answer-empty{padding:20px;text-align:center;color:#999;background:#fafafa;border:1px dashed #ddd;border-radius:4px;}
.answer-table{border-collapse:collapse;width:100%;}
.answer-table th,.answer-table td{border:1px solid #e2e2e2;padding:8px;text-align:left;}
.answer-table th{background:#f2f6fa;}
.answer-block-tree,.answer-block-tree ul{list-style:none;margin:0;padding-left:14px;}
.answer-block-tree a{text-decoration:none;color:#333;}
.answer-block-tree a:hover{color:#3a6ea5;}
.answer-block-qlist-ul{list-style:none;margin:0;padding:0;}
.answer-block-qitem{padding:6px 2px;border-bottom:1px dashed #e2e2e2;}
.answer-block-qitem a{text-decoration:none;color:#333;}
.answer-block-qitem a:hover{color:#3a6ea5;}
.answer-block-qdate{display:block;font-size:11px;color:#aaa;}
.answer-block-qtitle{font-weight:bold;color:#2c3e50;text-decoration:none;}
.answer-block-qtitle:hover{color:#3a6ea5;}
.answer-block-q,.answer-block-a{margin:3px 0;font-size:13px;line-height:1.6;color:#555;}
.answer-block-q{color:#333;}
.answer-block-label{font-weight:bold;color:#3a6ea5;margin-right:4px;}

/* ---- 封面圖／縮圖（階段 5，2026-08-05） ----
   ⚠ 只有「本篇自己有圖」時樣板才會輸出這些元素：分類封面圖刻意不落到列表縮圖，
      否則同一個分類底下十筆會並排十張一模一樣的圖。理由見 answer_item_image()。
   佈景 CADCH_00042A 有自己的一套（style.css 的 answer 區段），這裡是無覆寫時的保底。 */
.answer-thumb{flex:none;display:inline-block;width:96px;aspect-ratio:1200/630;border-radius:8px;overflow:hidden;background:#eee;vertical-align:middle;margin-right:10px;}
.answer-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.answer-cat-cover{display:inline-block;width:120px;aspect-ratio:1200/630;border-radius:8px;overflow:hidden;background:#eee;vertical-align:middle;margin-right:10px;}
.answer-cat-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.answer-cover{width:100%;aspect-ratio:1200/630;overflow:hidden;background:#eee;border-radius:10px;margin-bottom:14px;}
.answer-cover img{width:100%;height:100%;object-fit:cover;display:block;}
