/*
Theme Name: DZ Classic
Theme URI: https://grayfree.tw/
Author: 格雷資訊
Author URI: https://grayfree.tw/
Description: 仿 Discuz! X 經典論壇風格的 WordPress 主題。分類＝分區／版塊，文章＝主題，留言＝樓層（樓主、沙發、板凳、地板）。附首頁版塊列表、主題列表、樓層式文章頁、頂部迷你登入框與手機版排版。
Version: 1.0.1
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dzclassic
Tags: blog, news, custom-logo, custom-menu, threaded-comments, translation-ready
*/

:root{
	--dz-blue:#2b7acd;
	--dz-blue-d:#005ab4;
	--dz-bd:#cdcdcd;
	--dz-bd-l:#c2d5e3;
	--dz-bg-h:#e5edf2;
	--dz-bg-l:#f5f8fa;
	--dz-link:#333;
	--dz-xi1:#f26c4f;
	--dz-xi2:#336699;
	--dz-xg1:#999;
	--dz-w:1200px;
}
*{box-sizing:border-box}
html{font-size:14px}
body{margin:0;background:#fff;color:#444;font:14px/1.6 "Microsoft JhengHei","PingFang TC","Noto Sans TC",Tahoma,Helvetica,Arial,sans-serif}
a{color:var(--dz-link);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto}
h1,h2,h3,h4{color:#333}
.wp{max-width:var(--dz-w);margin:0 auto;padding:0 12px}
.cl:after{content:"";display:table;clear:both}
.z{float:left}.y{float:right}
.xi1,.xi1 a{color:var(--dz-xi1)}
.xi2,.xi2 a{color:var(--dz-xi2)}
.xg1,.xg1 a{color:var(--dz-xg1)}
.xg2{color:#666}
.xw0{font-weight:400}.xw1{font-weight:700}
.xs1{font-size:12px}
.pipe{margin:0 6px;color:#ccc}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{clip:auto!important;clip-path:none;height:auto;width:auto;z-index:100000;background:#fff;padding:8px 12px;left:5px;top:5px}

/* ---------- 表單元件 ---------- */
.px,#commentform input[type=text],#commentform input[type=email],#commentform input[type=url]{border:1px solid;border-color:#848484 #e0e0e0 #e0e0e0 #848484;background:#fff;padding:3px 6px;font:inherit;font-size:13px;height:28px;color:#333}
.px:focus,#commentform textarea:focus,#commentform input:focus{outline:2px solid #8cb8e8;outline-offset:0}
.pn,#commentform .submit{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 14px;border:1px solid #999;background:linear-gradient(#fff,#e5e5e5);color:#333;cursor:pointer;font:inherit;font-size:13px;border-radius:2px;white-space:nowrap}
.pn:hover{text-decoration:none;filter:brightness(.97)}
.pnc,#commentform .submit{border-color:#235994;background:linear-gradient(#4a97e3,#1e6fc4);color:#fff;font-weight:700}
.pnc:hover,#commentform .submit:hover{filter:brightness(1.08)}

/* ---------- 頂部工具列 ---------- */
#toptb{background:#f2f2f2;border-bottom:1px solid #e8e8e8;font-size:12px;line-height:32px;color:#666}
#toptb a{color:#666}
#toptb ul{list-style:none;margin:0;padding:0;display:inline}
#toptb li{display:inline;margin-right:14px}
#toptb .y > *{margin-left:12px}

/* ---------- 頁首 ---------- */
#hd{background:#fff}
.hdc{min-height:96px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0}
.logo{margin:0;font-size:28px;line-height:1.2}
.logo a{color:var(--dz-blue);font-weight:700;letter-spacing:1px}
.logo a:hover{text-decoration:none}
.logo small{display:block;font-size:12px;color:#999;font-weight:400;letter-spacing:0;margin-top:4px}
.custom-logo{max-height:64px;width:auto;display:block}

.hd-login{font-size:12px}
.hd-login-form{display:grid;grid-template-columns:auto 150px auto auto;gap:6px 8px;align-items:center}
.hd-login-form label{color:#666}
.hd-login-form .px{width:150px}
.hd-login-form .chk{display:flex;align-items:center;gap:3px;white-space:nowrap}
.hd-login-form a{color:var(--dz-xi2)}
.hd-user{display:flex;gap:10px;align-items:center;border:1px solid var(--dz-bd-l);background:var(--dz-bg-l);padding:8px 12px}
.hd-user img{width:48px;height:48px;border:1px solid #ccc;padding:2px;background:#fff}
.hd-user strong a{color:var(--dz-xi2)}
.hd-user p{margin:2px 0 0;color:#999}
.hd-user p a{color:#666}

/* ---------- 主導覽列 ---------- */
#nv{background:var(--dz-blue);min-height:40px;display:flex;align-items:stretch;border-radius:3px 3px 0 0}
#nv ul{list-style:none;margin:0;padding:0}
#nv .nv-menu{display:flex;flex-wrap:wrap}
#nv .nv-menu > li{position:relative}
#nv .nv-menu a{display:block;line-height:40px;padding:0 18px;color:#fff;font-weight:700;font-size:15px}
#nv .nv-menu a:hover,
#nv .nv-menu > li:hover > a,
#nv .nv-menu .current-menu-item > a,
#nv .nv-menu .current-menu-ancestor > a,
#nv .nv-menu .current-post-ancestor > a{background:var(--dz-blue-d);text-decoration:none}
#nv .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:170px;background:#fff;border:1px solid var(--dz-bd);box-shadow:0 3px 8px rgba(0,0,0,.12);z-index:60}
#nv .nv-menu li:hover > .sub-menu,#nv .nv-menu li:focus-within > .sub-menu{display:block}
#nv .sub-menu .sub-menu{top:-1px;left:100%}
#nv .sub-menu li{position:relative}
#nv .sub-menu a{color:#333;font-weight:400;line-height:34px;font-size:13px}
#nv .sub-menu a:hover{background:var(--dz-bg-h);color:var(--dz-blue)}
.nv-toggle{display:none;background:none;border:0;color:#fff;font:inherit;font-weight:700;padding:0 14px;cursor:pointer;min-height:40px}

/* ---------- 搜尋列 ---------- */
#scbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#f7f7f7;border:1px solid #e3e3e3;border-top:0;padding:8px 12px}
#scbar form{display:flex;flex:0 1 520px;gap:0}
#scbar .scbar-txt{flex:1;height:32px;border:1px solid #c4c4c4;border-right:0;padding:0 10px;font:inherit;min-width:0}
#scbar .scbar-btn{height:32px;border-radius:0 2px 2px 0;padding:0 18px}
#scbar .scbar-hot{font-size:12px;color:#999}
#scbar .scbar-hot a{margin-right:10px;color:#666}

/* ---------- 麵包屑 ---------- */
#pt{margin:10px 0;line-height:28px;font-size:13px;color:#999}
#pt a{color:#666}
#pt em{font-style:normal;margin:0 6px;color:#bbb}
#pt .nvhm{display:inline-block;width:16px;height:16px;vertical-align:-3px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5 1 8h2v6h4v-4h2v4h4V8h2z' fill='%232b7acd'/%3E%3C/svg%3E") center/contain no-repeat}

/* ---------- 通用方塊 ---------- */
.bm{border:1px solid var(--dz-bd);background:#fff;margin-bottom:10px}
.bm_h{display:flex;align-items:center;gap:10px;min-height:36px;padding:0 10px;border-top:1px solid #fff;border-bottom:1px solid var(--dz-bd-l);background:var(--dz-bg-h)}
.bm_h h2,.bm_h h1{margin:0;font-size:14px;flex:1;line-height:36px}
.bm_h h2 a{color:var(--dz-xi2)}
.bm_h .bm_h_r{font-size:12px;color:#999}
.bm_c{padding:10px}
.bm.collapsed .bm_c,.bm.collapsed .bm_tb{display:none}
.bm.collapsed .bm_h{border-bottom:0}
.dz-toggle{border:0;background:none;cursor:pointer;width:22px;height:22px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:#7c98b1}
.dz-toggle:before{content:"";width:0;height:0;border:5px solid transparent;border-top:6px solid currentColor;margin-top:6px;transition:transform .15s}
.bm.collapsed .dz-toggle:before{transform:rotate(-90deg);margin-top:0;margin-left:4px}

/* ---------- 首頁統計／公告 ---------- */
#chart{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 10px;font-size:12px;color:#999}
#chart p{margin:0}
#chart em{font-style:normal;color:var(--dz-xi1);font-weight:700}
#chart em a{color:var(--dz-xi1)}
#an{display:flex;align-items:center;gap:10px;padding:6px 10px;border:1px solid #f0d6a4;background:#fffbea;font-size:13px}
#an .an-label{flex:none;background:var(--dz-xi1);color:#fff;font-size:12px;padding:0 8px;line-height:20px;border-radius:2px}
#an .an-text{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#an .an-text a{color:#c3501c}

/* ---------- 首頁動態區塊 ---------- */
.dz-portal{display:grid;grid-template-columns:repeat(3,1fr)}
.dz-portal .col{padding:10px 14px;min-width:0}
.dz-portal .col + .col{border-left:1px dashed var(--dz-bd)}
.dz-portal h3{font-size:13px;margin:0 0 6px;padding-bottom:4px;color:var(--dz-xi2);border-bottom:1px solid #eee}
.dz-portal ol{margin:0;padding:0;list-style:none;counter-reset:n}
.dz-portal li{counter-increment:n;display:flex;gap:8px;line-height:26px;font-size:13px;min-width:0}
.dz-portal li:before{content:counter(n);flex:none;width:18px;height:16px;margin-top:5px;background:#bbb;color:#fff;font-size:11px;line-height:16px;text-align:center;border-radius:2px}
.dz-portal li:nth-child(-n+3):before{background:var(--dz-xi1)}
.dz-portal li a{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.dz-portal li span{flex:none;color:#aaa;font-size:12px}

/* ---------- 版塊列表 ---------- */
.fl_tb{width:100%;border-collapse:collapse}
.fl_tb td{padding:10px 8px;border-top:1px dashed var(--dz-bd);vertical-align:middle}
.fl_tb tr:first-child td{border-top:0}
.fl_icn{width:60px}
.ficon{display:flex;width:44px;height:44px;border-radius:8px;align-items:center;justify-content:center;color:#fff;font-size:20px;font-weight:700;opacity:.5;filter:saturate(.4)}
.ficon:hover{text-decoration:none;opacity:.8}
.has-new .ficon{opacity:1;filter:none;box-shadow:0 2px 5px rgba(0,0,0,.18)}
.fl_tb h3{margin:0;font-size:15px}
.fl_tb h3 a{color:#333}
.fl_tb .today{font-style:normal;color:var(--dz-xi1);font-size:12px;font-weight:400}
.fl_tb p{margin:2px 0 0;font-size:12px;color:#999}
.fl_tb .subf{font-size:12px;color:#999;margin-top:2px}
.fl_tb .subf a{color:var(--dz-xi2);margin-right:8px}
.fl_i{width:120px;text-align:center;font-size:12px;color:#999;white-space:nowrap}
.fl_i .xi2{font-size:14px}
.fl_by{width:270px;font-size:12px;line-height:1.7;color:#999}
.fl_by a.xi2{display:block;max-width:260px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}
.fl_by cite{font-style:normal;color:#999}
.fl_by cite a{color:#666}

/* ---------- 版塊頭部 ---------- */
.forum-head .bm_c{display:flex;gap:14px;align-items:flex-start;padding:14px}
.forum-head .ficon{width:56px;height:56px;font-size:26px;flex:none}
.forum-head h1{margin:0;font-size:20px;display:inline}
.forum-head h1 a{color:#333}
.forum-head .fh-num{font-size:12px;color:#999;margin-left:12px}
.forum-head .fh-num strong{color:var(--dz-xi1)}
.forum-head .fh-desc{font-size:13px;color:#777;margin-top:6px}
.forum-head .fh-desc p{margin:0}

/* ---------- 主題列表 ---------- */
.pgs{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0}
.btn-new,.btn-reply{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 18px;color:#fff;font-weight:700;border-radius:3px;font-size:14px}
.btn-new{background:linear-gradient(#ff8a3d,#f0600f);border:1px solid #d65308}
.btn-reply{background:linear-gradient(#4a97e3,#1e6fc4);border:1px solid #235994}
.btn-new:hover,.btn-reply:hover{text-decoration:none;filter:brightness(1.08)}
.btn-new:before{content:"+";font-size:18px;line-height:1}
.btn-back{font-size:13px;color:var(--dz-xi2);margin-left:10px}

.tl{border:1px solid var(--dz-bd);background:#fff;margin-bottom:10px}
.tl table{width:100%;border-collapse:collapse;table-layout:fixed}
.tl thead th{background:var(--dz-bg-l);border-bottom:1px solid var(--dz-bd-l);height:34px;font-weight:400;font-size:12px;color:#666;text-align:left;padding:0 6px}
.tl tbody td,.tl tbody th{padding:9px 6px;border-bottom:1px solid #e9eef2;vertical-align:middle}
.tl tbody tr:last-child td,.tl tbody tr:last-child th{border-bottom:0}
.tl tbody tr:hover td,.tl tbody tr:hover th{background:#f5f9fc}
.tl tbody th{font-weight:400;text-align:left;overflow:hidden}
.tl .icn{width:36px;text-align:center}
.tl .by{width:140px;font-size:12px;line-height:1.5}
.tl .by cite{display:block;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl .by cite a{color:#333}
.tl .by em{font-style:normal;color:#999}
.tl .by em a{color:#999}
.tl .num{width:80px;font-size:12px;line-height:1.5}
.tl .num a{display:block;color:var(--dz-xi2);font-weight:700}
.tl .num em{font-style:normal;color:#999}
.tl th .tcat{font-style:normal;margin-right:4px}
.tl th .tcat a{color:var(--dz-xi2)}
.tl .xst{font-size:14px;color:#333}
.tl tr.is-sticky .xst{color:#333;font-weight:700}
.tl tr.is-hot .xst{color:#c33}
.tl tr.sep td{background:var(--dz-bg-l);font-size:12px;color:#999;text-align:center;padding:4px;border-top:1px solid var(--dz-bd-l)}
.tl .empty{padding:40px 10px;text-align:center;color:#999}
.m-meta{display:none;font-size:12px;color:#999;margin-top:2px}
.tbadge{display:inline-block;padding:0 4px;font-size:11px;line-height:16px;border-radius:2px;margin-left:4px;vertical-align:1px;color:#fff;font-weight:400}
.tbadge.new{background:var(--dz-xi1)}
.tbadge.hot{background:#ff8c00}
.tbadge.img{background:#47a447}
.tbadge.lock{background:#999}
.ticon{display:inline-block;width:20px;height:20px;vertical-align:middle;background:center/contain no-repeat}
.ticon-normal{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 4h6l2 2h8v10H2z' fill='%23c4d3e0'/%3E%3C/svg%3E")}
.ticon-new{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 4h6l2 2h8v10H2z' fill='%232b7acd'/%3E%3C/svg%3E")}
.ticon-hot{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1c1 4 6 6 6 11a6 6 0 0 1-12 0c0-3 2-4 2-7 2 1 3 3 3 5 1-2 1-5 1-9z' fill='%23f26c4f'/%3E%3C/svg%3E")}
.ticon-pin{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2l7 8h-4v8H7v-8H3z' fill='%23f26c4f'/%3E%3C/svg%3E")}
.ticon-lock{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 9V7a5 5 0 0 1 10 0v2h1v9H4V9zm2 0h6V7a3 3 0 0 0-6 0z' fill='%23aaa'/%3E%3C/svg%3E")}

/* ---------- 分頁 ---------- */
.pg{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.pg .page-numbers{display:inline-block;min-width:28px;height:28px;padding:0 8px;line-height:26px;text-align:center;border:1px solid var(--dz-bd);background:#fff;color:#333;font-size:12px}
.pg a.page-numbers:hover{border-color:var(--dz-blue);color:var(--dz-blue);text-decoration:none}
.pg .current{background:var(--dz-blue);border-color:var(--dz-blue);color:#fff;font-weight:700}
.pg .dots{border:0;background:none}
.pg .pg-total{font-size:12px;color:#999;margin-left:6px}

/* ---------- 主題內容（樓層） ---------- */
.pl{border:1px solid var(--dz-bd);background:#fff}
.pl-replies{border-top:0}
.plhin,.thread-head{width:100%;border-collapse:collapse;table-layout:fixed}
.pls-cell{width:180px;background:var(--dz-bg-h);border-right:1px solid var(--dz-bd-l);vertical-align:top;padding:0}
.floor .plhin{border-top:1px solid var(--dz-bd-l)}
.floor-first .plhin{border-top:0}
.floor:target .plc,.floor.is-highlight .plc{background:#fffbe6}
.thread-head{border-bottom:1px solid var(--dz-bd-l)}
.thread-head td{padding:10px 14px;vertical-align:middle}
.thread-head .pls-cell{text-align:center;font-size:12px;color:#999;vertical-align:middle}
.thread-head .pls-cell strong{color:var(--dz-xi1)}
.ts{margin:0;font-size:19px;line-height:1.45;color:#333;display:inline}
.ts .tcat{font-weight:400;color:var(--dz-xi2);font-size:16px;margin-right:4px}
.th-tools{float:right;font-size:12px;margin-top:4px}
.th-tools a{color:var(--dz-xi2);cursor:pointer}

.pls{padding:12px 12px 16px}
.pls-name{font-weight:700;font-size:14px;padding-bottom:8px;border-bottom:1px dashed var(--dz-bd-l);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pls-name a{color:var(--dz-xi2)}
.pls-avatar{padding:12px 0;text-align:center}
.pls-avatar img{width:124px;height:124px;padding:3px;background:#fff;border:1px solid #c9d6e0;border-radius:2px}
.pls-stats{display:flex;justify-content:space-around;margin:0 0 10px;padding:6px 0;border-top:1px dashed var(--dz-bd-l);border-bottom:1px dashed var(--dz-bd-l)}
.pls-stats div{text-align:center}
.pls-stats dt{font-size:12px;color:#999}
.pls-stats dd{margin:0;font-weight:700;color:var(--dz-xi2);font-size:13px}
.pls-group{font-size:12px;line-height:1.9}
.pls-group .g{font-weight:700}
.g-admin{color:#e33}
.g-smod{color:#f60}
.g-mod{color:#090}
.g-member{color:var(--dz-xi2)}
.g-guest{color:#999}
.stars{color:#f5b301;letter-spacing:1px;font-size:13px}
.pls-meta{font-size:12px;color:#888;line-height:1.9}

.plc{vertical-align:top;padding:0 18px 12px}
.pi{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;border-bottom:1px dashed var(--dz-bd);font-size:12px;color:#999}
.pi .floor-no{flex:none;font-size:14px}
.pi .floor-no a{color:#999;font-weight:700}
.floor-first .pi .floor-no a{color:var(--dz-xi1)}
.authi a{color:var(--dz-xi2)}
.pstatus{display:block;margin-top:12px;font-size:12px;color:#999;font-style:italic}
.moderation{margin:12px 0 0;padding:6px 10px;background:#fff6e0;border:1px solid #f0d6a4;color:#a0620b;font-size:13px}
.t_f{padding:16px 0;font-size:15px;line-height:1.9;color:#333;min-height:110px;overflow-wrap:anywhere}
.t_f p{margin:0 0 1em}
.t_f h2,.t_f h3{margin:1.2em 0 .6em}
.t_f a{color:var(--dz-xi2);text-decoration:underline}
.t_f img{border-radius:2px}
.t_f blockquote{margin:10px 0;padding:10px 14px 10px 44px;background:#f8f8f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 18V11c0-4 2-6 6-7v3c-2 1-3 2-3 4h3v7zm10 0V11c0-4 2-6 6-7v3c-2 1-3 2-3 4h3v7z' fill='%23c8c8c8'/%3E%3C/svg%3E") 12px 12px/20px no-repeat;border:1px dashed #d5d5d5;color:#666;font-size:14px}
.t_f blockquote strong{display:block;font-size:12px;color:#999;font-weight:400}
.t_f blockquote p:last-child{margin:0}
.t_f pre{background:#f6f8fa;border:1px solid #e1e4e8;padding:10px 12px;overflow:auto;font-size:13px;line-height:1.6}
.t_f code{font-family:Consolas,Menlo,monospace;font-size:.92em}
.t_f table{border-collapse:collapse;max-width:100%}
.t_f td,.t_f th{border:1px solid #ddd;padding:4px 8px}
.ptg{font-size:12px;color:#999;margin-bottom:8px}
.ptg a{display:inline-block;margin:0 4px 4px 0;padding:0 8px;line-height:20px;background:var(--dz-bg-l);border:1px solid var(--dz-bd-l);color:var(--dz-xi2);border-radius:2px}
.sign{margin-top:6px;padding-top:8px;border-top:1px dashed #ccc;font-size:12px;color:#999;max-height:90px;overflow:hidden}
.po{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:14px;font-size:12px;padding-top:8px;border-top:1px solid #f0f0f0}
.po a{color:var(--dz-xi2);cursor:pointer}
.thread-nav{display:flex;justify-content:space-between;gap:20px;font-size:13px}
.thread-nav a{color:var(--dz-xi2)}

/* ---------- 回覆表單 ---------- */
.quick-reply .bm_c{display:flex;gap:16px}
.quick-reply .qr-avatar{flex:none;text-align:center;font-size:12px;color:#999}
.quick-reply .qr-avatar img{width:80px;height:80px;border:1px solid #ccc;padding:2px;background:#fff}
.quick-reply .qr-main{flex:1;min-width:0}
#commentform p{margin:0 0 8px}
#commentform label{font-size:13px;color:#666;margin-right:4px}
#commentform textarea{width:100%;min-height:150px;border:1px solid #c4c4c4;padding:8px 10px;font:inherit;font-size:14px;resize:vertical;line-height:1.7}
#commentform .comment-form-author,#commentform .comment-form-email,#commentform .comment-form-url{display:inline-block;margin-right:14px}
#commentform .comment-form-cookies-consent{font-size:12px;color:#999}
#commentform .form-submit{display:flex;align-items:center;gap:12px;margin:0}
#commentform .submit{height:32px;padding:0 22px}
.comment-reply-title{display:none}
.logged-in-as{font-size:12px;color:#999}
.qr-tip{font-size:12px;color:#999}
.qr-closed{padding:24px;text-align:center;color:#999}
.comments-pagination,.comment-navigation{margin:10px 0}
.comments-pagination .nav-links{display:flex;flex-wrap:wrap;gap:4px}
.comments-pagination .page-numbers{display:inline-block;min-width:28px;height:28px;padding:0 8px;line-height:26px;text-align:center;border:1px solid var(--dz-bd);background:#fff;font-size:12px}
.comments-pagination .current{background:var(--dz-blue);color:#fff;border-color:var(--dz-blue)}

/* ---------- 一般頁面／提示訊息 ---------- */
.page-box .bm_h h1{font-size:16px}
.page-box .t_f{padding:16px 20px}
.dz-msg{max-width:640px;margin:40px auto}
.dz-msg .bm_c{padding:28px 24px 28px 86px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23f5a623'/%3E%3Crect x='21.5' y='11' width='5' height='18' rx='2.5' fill='%23fff'/%3E%3Ccircle cx='24' cy='35' r='3' fill='%23fff'/%3E%3C/svg%3E") 24px 28px/44px no-repeat}
.dz-msg .alert{font-size:15px;color:#333;margin:0 0 10px}
.dz-msg .alert-sub{font-size:12px;color:#999;margin:0}
.dz-msg .alert-sub a{color:var(--dz-xi2)}
.search-head form{display:flex;gap:6px;max-width:520px}
.search-head .px{flex:1;height:32px}
.search-head .pn{height:32px}
.search-head p{margin:8px 0 0;font-size:13px;color:#666}
.author-head .bm_c{display:flex;gap:14px;align-items:center}
.author-head img{width:72px;height:72px;border:1px solid #ccc;padding:2px}
.author-head h1{margin:0;font-size:18px}
.author-head p{margin:4px 0 0;font-size:12px;color:#999}

/* ---------- 小工具 ---------- */
.dz-widgets{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin-bottom:10px}
.dz-widgets .widget{margin:0}
.dz-widgets .widget-title{margin:-10px -10px 10px;padding:0 10px;line-height:36px;font-size:14px;background:var(--dz-bg-h);border-bottom:1px solid var(--dz-bd-l);color:var(--dz-xi2)}
.dz-widgets ul{margin:0;padding:0;list-style:none}
.dz-widgets li{line-height:26px;font-size:13px}

/* ---------- 頁尾 ---------- */
#ft{border-top:2px solid var(--dz-blue);margin-top:20px;padding:14px 0 30px;font-size:12px;color:#999;line-height:1.9}
#ft .wp{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
#ft a{color:#666}
#ft strong a{color:#333}
#ft p{margin:0}
#scrolltop{position:fixed;right:20px;bottom:40px;width:42px;height:42px;background:#fff;border:1px solid var(--dz-bd);border-radius:3px;display:none;align-items:center;justify-content:center;cursor:pointer;color:#666;font-size:12px;box-shadow:0 2px 6px rgba(0,0,0,.08);z-index:90}
#scrolltop.show{display:flex}
#scrolltop:hover{color:var(--dz-blue);border-color:var(--dz-blue)}

/* ---------- 響應式 ---------- */
@media (max-width:960px){
	.hd-login{display:none}
	.fl_by{display:none}
	.dz-portal{grid-template-columns:1fr}
	.dz-portal .col + .col{border-left:0;border-top:1px dashed var(--dz-bd)}
	.tl .by-last{display:none}
	.pls-cell{width:150px}
	.pls-avatar img{width:100px;height:100px}
}
@media (max-width:680px){
	#toptb .z{display:none}
	.hdc{min-height:0}
	.logo{font-size:22px}
	#nv{flex-direction:column;border-radius:0}
	.nv-toggle{display:block;text-align:left}
	#nv .nv-menu{display:none;flex-direction:column}
	#nv.open .nv-menu{display:flex}
	#nv .sub-menu{position:static;display:block;border:0;box-shadow:none;background:rgba(255,255,255,.12)}
	#nv .sub-menu a{color:#fff;padding-left:32px}
	#scbar .scbar-hot{display:none}
	#scbar form{flex:1}
	.fl_i{display:none}
	.fl_icn{width:48px}
	.ficon{width:36px;height:36px;font-size:16px}
	.tl thead,.tl .by,.tl .num{display:none}
	.tl .icn{width:28px}
	.m-meta{display:block}
	.plhin,.plhin tbody,.plhin tr,.plhin td,.thread-head,.thread-head tbody,.thread-head tr,.thread-head td{display:block;width:auto}
	.thread-head .pls-cell{text-align:left;background:none;border:0;padding-bottom:0}
	.pls-cell{border-right:0;border-bottom:1px solid var(--dz-bd-l)}
	.pls{display:flex;align-items:center;gap:10px;padding:8px 10px}
	.pls-avatar{order:-1;padding:0}
	.pls-avatar img{width:40px;height:40px;padding:1px}
	.pls-name{border:0;padding:0;flex:1}
	.pls-stats,.pls-meta,.stars{display:none}
	.pls-group{line-height:1.4}
	.plc{padding:0 12px 10px}
	.t_f{font-size:15px;min-height:0}
	.quick-reply .qr-avatar{display:none}
	.forum-head .fh-num{display:block;margin:4px 0 0}
	.th-tools{float:none;display:block}
}
