/* ============================================================
   永恆天堂 · Lineage Dark-Fantasy Skin  v8
   Aesthetic: obsidian + weathered gold + crimson, epic serif display
   Override layer on Discuz! X3.4 default CSS (loaded last → wins)
   ============================================================ */

:root{
  --bg:#08080b;
  --bg-2:#0d0e13;
  --panel:#141620;
  --panel-2:#191c28;
  --panel-hi:#20232f;
  --line:#2b2e3c;
  --line-soft:#22242f;
  --gold:#c8a24a;
  --gold-lt:#ecd391;
  --gold-dk:#8c6d2c;
  --crimson:#9c2222;
  --crimson-lt:#c63333;
  --txt:#c3bdae;        /* parchment */
  --txt-hi:#f1e9d4;
  --txt-dim:#82848f;
  --serif:"Noto Serif TC","Source Han Serif TC",serif;
  --cinzel:"Cinzel",serif;
  --sans:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
  --shadow:0 8px 30px -12px rgba(0,0,0,.7);
}

/* ---- gold ornamental hairline divider (reusable) ---- */
.lin-rule, #ct .bm_h::after{
  content:"";display:block;height:1px;
  background:linear-gradient(90deg,transparent,rgba(200,162,74,.55),transparent);
}

/* ================= BASE ================= */
html{background:var(--bg);}
body{
  color:var(--txt);
  font-family:var(--sans);
  font-size:13px;line-height:1.7;
  background:
    radial-gradient(1100px 520px at 50% -160px, rgba(156,34,34,.16), transparent 72%),
    radial-gradient(900px 600px at 80% 8%, rgba(200,162,74,.05), transparent 70%),
    linear-gradient(180deg,#050507 0%, var(--bg) 420px, var(--bg) 100%);
  background-attachment:fixed;
}
/* film-grain / texture overlay */
body::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.5;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/></svg>");
}
body > *{position:relative;z-index:1;}
a{color:var(--txt);transition:color .15s,opacity .15s;}
a:hover{color:var(--gold-lt);text-decoration:none;}
.wp{width:auto;max-width:1600px;margin-left:auto !important;margin-right:auto !important;padding-left:26px;padding-right:26px;box-sizing:border-box;}
em,b,strong{font-style:normal;}

/* selection */
::selection{background:rgba(200,162,74,.3);color:#fff;}

/* ================= TOP UTILITY BAR ================= */
#toptb{
  background:#050507;
  border-bottom:1px solid #16181f;
}
#toptb,#toptb a{color:#6e707b;font-size:12px;}
#toptb a:hover{color:var(--gold-lt);}
#toptb .wp{width:auto;max-width:1600px;margin-left:auto !important;margin-right:auto !important;padding-left:26px;padding-right:26px;box-sizing:border-box;}

/* ================= HERO ================= */
#lineage-hero{
  position:relative;height:420px;margin:0 0 -1px;
  background-color:var(--bg);background-size:cover;background-position:center 24%;
  border-bottom:1px solid var(--gold-dk);
  box-shadow:inset 0 -60px 90px -40px #000, inset 0 60px 80px -50px #000;
}
/* ornate corner-bracket frame (裝飾框) */
#lineage-hero .hero-frame{position:absolute;inset:20px;z-index:2;pointer-events:none;
  border:1px solid rgba(200,162,74,.20);
  box-shadow:inset 0 0 0 5px rgba(0,0,0,.28), inset 0 0 0 6px rgba(200,162,74,.10);}
#lineage-hero .hero-frame span{position:absolute;width:60px;height:60px;border:2px solid var(--gold);
  filter:drop-shadow(0 0 5px rgba(200,162,74,.45));}
#lineage-hero .hero-frame span:nth-child(1){top:-1px;left:-1px;border-width:2px 0 0 2px;}
#lineage-hero .hero-frame span:nth-child(2){top:-1px;right:-1px;border-width:2px 2px 0 0;}
#lineage-hero .hero-frame span:nth-child(3){bottom:-1px;left:-1px;border-width:0 0 2px 2px;}
#lineage-hero .hero-frame span:nth-child(4){bottom:-1px;right:-1px;border-width:0 2px 2px 0;}
/* 角尖金鑽 ◆ */
#lineage-hero .hero-frame span::before{content:"";position:absolute;width:9px;height:9px;background:var(--gold);
  transform:rotate(45deg);box-shadow:0 0 11px rgba(200,162,74,.85);}
#lineage-hero .hero-frame span:nth-child(1)::before{top:-6px;left:-6px;}
#lineage-hero .hero-frame span:nth-child(2)::before{top:-6px;right:-6px;}
#lineage-hero .hero-frame span:nth-child(3)::before{bottom:-6px;left:-6px;}
#lineage-hero .hero-frame span:nth-child(4)::before{bottom:-6px;right:-6px;}
/* 內側小勾(雙線角) */
#lineage-hero .hero-frame span::after{content:"";position:absolute;width:15px;height:15px;border:1px solid rgba(200,162,74,.55);}
#lineage-hero .hero-frame span:nth-child(1)::after{top:10px;left:10px;border-width:1px 0 0 1px;}
#lineage-hero .hero-frame span:nth-child(2)::after{top:10px;right:10px;border-width:1px 1px 0 0;}
#lineage-hero .hero-frame span:nth-child(3)::after{bottom:10px;left:10px;border-width:0 0 1px 1px;}
#lineage-hero .hero-frame span:nth-child(4)::after{bottom:10px;right:10px;border-width:0 1px 1px 0;}
#lineage-hero .hero-inner{
  position:relative;z-index:3;width:1040px;margin:0 auto;height:100%;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;padding-bottom:8px;
}
#lineage-hero .hero-mark{
  font-family:var(--serif);color:var(--gold);font-size:14px;letter-spacing:.22em;text-indent:.22em;
  margin-bottom:18px;text-shadow:0 0 14px rgba(200,162,74,.55);
}
#lineage-hero .logo-cn{
  font-family:var(--serif);font-weight:900;font-size:74px;letter-spacing:.2em;line-height:1.05;
  background:linear-gradient(180deg,#fdf6e3 0%,#ecd391 42%,#b5862f 78%,#7a531c 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 2px 1px #000) drop-shadow(0 0 22px rgba(200,162,74,.35));
  text-indent:.18em;
}
#lineage-hero .logo-en{
  font-family:var(--cinzel);font-weight:700;font-size:20px;letter-spacing:.62em;
  margin-top:14px;color:var(--gold);text-indent:.62em;
  text-shadow:0 1px 3px #000;
  position:relative;padding:0 0 0;
}
#lineage-hero .logo-en::before,#lineage-hero .logo-en::after{
  content:"";position:absolute;top:50%;width:54px;height:1px;
  background:linear-gradient(90deg,transparent,var(--gold-dk));
}
#lineage-hero .logo-en::before{right:calc(100% + 22px);transform:scaleX(-1);}
#lineage-hero .logo-en::after{left:calc(100% + 22px);}
#lineage-hero .slogan{
  position:relative;font-family:var(--serif);font-weight:500;margin-top:30px;
  font-size:16px;letter-spacing:.34em;color:#e7d8b4;text-indent:.34em;
  padding-top:18px;text-shadow:0 1px 4px #000;
}
#lineage-hero .slogan::before{
  content:"◆";position:absolute;top:0;left:50%;transform:translateX(-50%);
  color:var(--gold);font-size:11px;text-shadow:0 0 8px rgba(200,162,74,.6);
}
#lineage-hero .hero-side{position:absolute;top:24px;right:8px;display:flex;gap:10px;}
#lineage-hero .hero-side a{
  font-family:var(--serif);display:inline-block;padding:9px 18px;font-size:13px;letter-spacing:.18em;
  color:var(--gold-lt);border:1px solid rgba(200,162,74,.38);
  background:linear-gradient(180deg,rgba(38,28,16,.82),rgba(12,10,8,.82));
  backdrop-filter:blur(2px);
}
#lineage-hero .hero-side a:hover{border-color:var(--gold);box-shadow:0 0 16px rgba(200,162,74,.4);color:#fff;}

/* ===== 頂端導覽列 (對齊落地頁 .topbar) ===== */
#toptb{display:none !important;}                 /* 隱藏 Discuz 原生頂欄 */
.lin-topbar{position:relative;z-index:6;background:rgba(8,7,9,.86);
  border-bottom:1px solid var(--line);backdrop-filter:blur(6px);}
.lin-topbar .wp{display:flex;align-items:center;justify-content:space-between;height:48px;}
.lin-brand{font-family:var(--serif);font-weight:700;color:var(--gold-lt) !important;letter-spacing:.06em;font-size:15px;}
.lin-brand::before{content:"◆";color:var(--gold);font-size:10px;margin-right:8px;}
.lin-nav{display:flex;gap:24px;font-size:13px;letter-spacing:.03em;}
.lin-nav a{color:var(--txt) !important;}
.lin-nav a:hover{color:var(--gold-lt) !important;}

/* ===== Hero CTA 按鈕 (對齊落地頁 hero-cta) ===== */
#lineage-hero .hero-cta{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-top:30px;}
.lin-btn{font-family:var(--serif);display:inline-flex;align-items:center;gap:8px;
  padding:14px 34px;font-size:15px;letter-spacing:.1em;border-radius:3px;
  border:1px solid transparent;transition:all .18s;text-shadow:0 1px 2px rgba(0,0,0,.5);}
.lin-btn-primary{color:#fff !important;
  background:linear-gradient(180deg,#8e1d2e,#5e121f);border-color:rgba(200,162,74,.35);
  box-shadow:0 6px 20px -8px rgba(142,29,46,.8);}
.lin-btn-primary:hover{background:linear-gradient(180deg,#a52537,#6e1626);
  border-color:var(--gold);box-shadow:0 0 22px -4px rgba(200,162,74,.5);transform:translateY(-1px);}
.lin-btn-gold{color:#2a1e0c !important;font-weight:700;
  background:linear-gradient(180deg,#f0d693,#c69a3a);border-color:#e6c979;
  box-shadow:0 6px 20px -8px rgba(200,162,74,.6);}
.lin-btn-gold:hover{background:linear-gradient(180deg,#f7e4ad,#d1a745);
  box-shadow:0 0 22px -3px rgba(200,162,74,.7);transform:translateY(-1px);}

/* ================= HEADER (logo row + user + search) ================= */
#hd{background:transparent;}
#hd .wp{width:auto;max-width:1600px;margin-left:auto !important;margin-right:auto !important;padding-left:26px;padding-right:26px;box-sizing:border-box;}
#hd .hdc{display:none;}            /* default Discuz logo block — replaced by hero */
/* user status / login strip: float into the top utility bar visually */
#hd{padding-top:0;}

/* search bar */
#scbar{margin:16px 0 0;background:transparent;}
#scbar_form table{width:100%;}
#scbar_txt, #scform_text, #scbar input.px, #scbar .scbar_icon_td + td input{
  background:#0c0d12 !important;border:1px solid var(--line) !important;color:var(--txt) !important;
  height:34px;line-height:34px;border-radius:4px 0 0 4px;box-shadow:inset 0 1px 4px rgba(0,0,0,.5);
}
#scbar_txt:focus{border-color:var(--gold-dk) !important;box-shadow:inset 0 1px 4px rgba(0,0,0,.5),0 0 0 1px rgba(200,162,74,.3) !important;}
#scbar .src_go button, #scbar button, .src_go .pn{
  background:linear-gradient(180deg,var(--crimson-lt),var(--crimson)) !important;
  border:1px solid #6c1414 !important;color:#fff !important;border-radius:0 4px 4px 0;
}
#scbar .scform_srchf{background:transparent;}
#scbar .src_tag, #scbar .src_tag a, .src_words a, .hotsearch a{color:var(--txt-dim);}
#scbar .src_tag a:hover, .src_words a:hover{color:var(--gold-lt);}
#scbar select, .scbar_type{background:#0c0d12;color:var(--txt);border:1px solid var(--line);}

/* logged-in user mini box (#um) if shown */
#um, #um a, #um p{color:var(--txt-dim);}
#um strong a{color:var(--gold-lt);}

/* ================= MAIN NAV ================= */
#nv{
  margin-top:16px;border-radius:3px;
  background:linear-gradient(180deg,#1b1305 0%,#0c0905 100%);
  border-top:1px solid var(--gold);border-bottom:1px solid #000;
  box-shadow:0 3px 16px rgba(0,0,0,.55), inset 0 1px 0 rgba(200,162,74,.18);
}
#nv ul{overflow:visible;display:flex;}
#nv ul li{border-right:1px solid rgba(200,162,74,.1);}
#nv ul li:first-child{border-left:1px solid rgba(200,162,74,.06);}
#nv ul li a{
  font-family:var(--serif);font-weight:600;font-size:16px;letter-spacing:.22em;text-indent:.22em;
  padding:0 30px;height:48px;line-height:48px;color:#e8dcc0 !important;
  text-shadow:0 1px 2px #000;display:block;transition:all .18s;
}
#nv ul li a:hover{background:linear-gradient(180deg,rgba(156,34,34,.5),rgba(80,14,14,.5));color:#fff !important;}
#nv ul li.a a,#nv ul li a.a{
  background:linear-gradient(180deg,var(--crimson-lt),var(--crimson));color:#fff !important;
  box-shadow:inset 0 -2px 0 var(--gold), inset 0 0 18px rgba(0,0,0,.45);
}
#qmenu{font-family:var(--serif);color:var(--gold-lt) !important;letter-spacing:.1em;}
#nv .p_pop,.h_pop{background:var(--panel-2);border:1px solid var(--line);}

/* ================= BREADCRUMB ================= */
#pt{background:transparent !important;border:0 !important;margin:18px 0 14px;box-shadow:none;padding:0 2px;}
#pt .z{font-size:12px;color:var(--txt-dim);letter-spacing:.04em;}
#pt .z a{color:var(--txt-dim);}
#pt .z a:hover{color:var(--gold-lt);}
#pt .z a.nvhm{color:var(--gold);font-family:var(--serif);}
#pt em{color:var(--gold-dk);margin:0 6px;}

/* ================= PANELS / BOARD MODULES ================= */
.bm{
  background:linear-gradient(180deg,var(--panel-2),var(--panel));
  border:1px solid var(--line);border-radius:5px;
  box-shadow:var(--shadow);margin-bottom:16px;position:relative;
}
.bm.bml,.bm.bmw{overflow:visible;}
.bm_h{
  position:relative;padding:14px 18px;
  background:linear-gradient(180deg,var(--panel-hi),var(--panel-2));
  border-bottom:1px solid transparent;border-radius:5px 5px 0 0;
}
#ct .bm_h::after{position:absolute;left:0;right:0;bottom:0;}   /* gold hairline under header */
/* gold accent bar on the left of board header */
.bm_h::before{
  content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;
  background:linear-gradient(180deg,var(--gold-lt),var(--gold-dk));border-radius:0 2px 2px 0;
}
.bm_h h1,.bm_h h2,.bm_h h1.xs2{
  font-family:var(--serif);font-weight:700;font-size:19px;letter-spacing:.06em;
  color:var(--gold-lt) !important;text-shadow:0 1px 2px #000;
}
.bm_h h1 a,.bm_h h2 a,.bm_h a{color:var(--gold-lt) !important;}
.bm_h .xs1,.bm_h .xs2 .xs1,h1.xs2 .xs1{font-family:var(--sans);font-weight:400;font-size:12px;color:var(--txt-dim) !important;letter-spacing:0;}
.bm_h .xs1 strong,.xi1{color:var(--gold) !important;}
.bm_h .pipe{color:var(--line);}
.bm_c{background:transparent;padding:6px 18px;}
.bm .ico_increase{display:none;}

/* ================= FORUM INDEX (category list) ================= */
.fl_g,.fl_row,.bm.flg{background:transparent;}
td.fl_g h2,.fl_g h2 a{font-family:var(--serif);font-size:16px;font-weight:600;color:var(--txt-hi) !important;letter-spacing:.04em;}
td.fl_g h2 a:hover{color:var(--gold-lt) !important;}
.fl_g .xs0,.fl_g em,.fl_g .xg1,.fl_g .desc{color:var(--txt-dim) !important;}
.fl_icn_g img,.icn img{filter:saturate(.6) brightness(.95);}
.fl tbody tr:hover{background:rgba(200,162,74,.04);}
.subforum a{color:var(--txt-dim);}
.subforum a:hover{color:var(--gold-lt);}

/* ================= THREAD LIST TABLE ================= */
#threadlisttableid,table.tl,.dt{background:transparent;border:0;}
/* column header / filter row */
.tl th.new a,.tl th.common a{color:var(--txt);}
.bm.bml .th,.tl .th,th.by,.dt th{
  background:#1a1d27 !important;color:var(--gold-lt) !important;
  border-color:var(--line-soft) !important;font-weight:600;
}
.tl .th a,.th a{color:var(--gold-lt) !important;}
/* filter tabs (全部主題 最新 熱門 精華) */
.bm.bml .bm_h.cl, #separatorline{border:0;}
.cttp,.tabs li a,.tb li a{color:var(--txt-dim);}
.tb,.notabs{background:transparent;border:0;}
.tb li.a a,.tab-active a{color:var(--gold-lt) !important;border-bottom:2px solid var(--gold) !important;background:transparent !important;}

/* thread rows */
#threadlisttableid tbody{border:0;}
#threadlisttableid tbody tr{transition:background .15s;}
#threadlisttableid tbody td,#threadlisttableid tbody th{
  border-bottom:1px solid var(--line-soft) !important;padding-top:13px;padding-bottom:13px;
}
#threadlisttableid tbody:hover td,#threadlisttableid tbody:hover th{background:rgba(200,162,74,.045);}
a.xst,.xst{color:#ddd6c6 !important;font-weight:500;font-size:14px;letter-spacing:.02em;}
a.xst:hover{color:var(--gold-lt) !important;}
.icn img{border-radius:3px;}
td.by,.by cite a,.by em{color:var(--txt-dim) !important;font-size:12px;}
td.by cite a:hover{color:var(--gold-lt) !important;}
td.num,.num a,.num em{color:var(--txt-dim);font-size:12px;}
td.num a{color:var(--txt) !important;}
/* sticky / featured thread tags */
.tps,.threadpric,.xi1.lhighlight{color:var(--crimson-lt) !important;}
em.special,.label,.thread-prefix{color:var(--gold) !important;}
th.new a.xst{color:var(--txt-hi) !important;}

/* ================= BUTTONS ================= */
.pn,a.pn,button.pn,.bw0_all .pn{
  background:linear-gradient(180deg,var(--panel-hi),var(--panel)) !important;
  border:1px solid var(--line) !important;color:var(--txt) !important;border-radius:4px;
  text-shadow:0 1px 1px #000;transition:all .15s;
}
.pn:hover{border-color:var(--gold-dk) !important;color:var(--gold-lt) !important;}
.pn.pnc,a.pnc,.pnpost .pn strong{
  background:linear-gradient(180deg,var(--crimson-lt),var(--crimson)) !important;
  border:1px solid #6c1414 !important;color:#fff !important;
}
.pn.pnc:hover{box-shadow:0 0 14px rgba(198,51,51,.5);color:#fff !important;}
.pn span,.pn em{color:inherit !important;}
/* 發新帖 / 返回 image buttons → text fallback look */
.bm .y .pn,.bm .y a.pn{font-family:var(--serif);letter-spacing:.08em;}

/* ================= PAGINATION ================= */
.pg a,.pgb a,.pages a{background:var(--panel-2);border:1px solid var(--line);color:var(--txt);border-radius:3px;}
.pg a:hover,.pages a:hover{border-color:var(--gold-dk);color:var(--gold-lt);}
.pg strong,.pages strong,.pages .current{background:var(--crimson);border:1px solid #6c1414;color:#fff;border-radius:3px;}
.pgb a{color:var(--txt-dim);}

/* ================= POST / VIEWTHREAD niceties ================= */
.plhin,.pls,.plc{background:transparent;}
.pct,.t_f{color:var(--txt);}
.pcb{color:var(--txt);}
.authi a,.xw1{color:var(--gold-lt);}
blockquote{border-left:2px solid var(--gold-dk);background:rgba(200,162,74,.05);color:var(--txt-dim);}

/* ================= FORMS ================= */
input.px,textarea,.area,select{
  background:#0c0d12;border:1px solid var(--line);color:var(--txt);border-radius:4px;
}
input.px:focus,textarea:focus{border-color:var(--gold-dk);box-shadow:0 0 0 1px rgba(200,162,74,.25);}

/* ================= ONLINE MEMBERS / misc blocks ================= */
.bm .appl .xl,.member_list,.xl li{color:var(--txt-dim);}
.chart strong{color:var(--gold-lt);}

/* ================= FOOTER ================= */
#ft{
  margin-top:24px;padding-top:20px;padding-bottom:26px !important;line-height:1.9;
  background:linear-gradient(180deg,#050507,#0b0c11);
  border-top:1px solid var(--gold-dk);
  color:var(--txt-dim);
  box-shadow:0 -6px 28px rgba(0,0,0,.55);
}
#ft::before{content:"";display:block;height:1px;margin:-18px 0 18px;
  background:linear-gradient(90deg,transparent,rgba(200,162,74,.4),transparent);}
#ft .wp{width:auto;max-width:1600px;margin-left:auto !important;margin-right:auto !important;padding-left:26px;padding-right:26px;box-sizing:border-box;}
#ft,#ft a{color:var(--txt-dim);}
#ft a:hover{color:var(--gold-lt);}
#flk strong a,#flk strong{color:var(--gold-lt);font-family:var(--serif);}

/* ================= KILL DISCUZ BLUE SPRITES / FORCE DARK ================= */
/* active nav item: kill blue nv_a.png, force crimson on the <li> itself */
#nv ul li.a, #nv ul li a.a{
  background:linear-gradient(180deg,var(--crimson-lt),var(--crimson)) !important;
}
#nv ul li.a{box-shadow:inset 0 -2px 0 var(--gold);}
#nv ul li.a a{background:transparent !important;box-shadow:none;}

/* every Discuz button (.pn / .pnc / post / reply) → no sprite, themed */
.pn, a.pn, button.pn, span.pn, .pnpost, .bw0_all, .pnc{
  background-image:none !important;
}
.pn, a.pn, button.pn, span.pn{
  background:linear-gradient(180deg,var(--panel-hi),var(--panel)) !important;
  border:1px solid var(--line) !important;color:var(--txt) !important;
}
.pn em, .pn strong, .pn span{background:none !important;color:inherit !important;}
.pn.pnc, a.pn.pnc, button.pn.pnc, .pnc{
  background:linear-gradient(180deg,var(--crimson-lt),var(--crimson)) !important;
  border:1px solid #6c1414 !important;color:#fff !important;
}
.pn.pnc em,.pn.pnc strong{color:#fff !important;}

/* quick-reply & all editor textareas → dark (was glaring white) */
#fastpostmessage, textarea.pt, textarea, .area, .pt textarea, #e_textarea, .tedt textarea{
  background:#0c0d12 !important;color:var(--txt) !important;border:1px solid var(--line) !important;
}
#fastposteditor .area, .fastpr, .tb_tb, #fastpostform .bm_c{background:transparent;}
/* editor toolbar strip */
.tb_tb, .editortmp, .fpd, .pt_msg{background:#13151d !important;border-color:var(--line) !important;}
/* "新窗" toggle + checkboxes readability */
#atarget.y, .tf .y{color:var(--txt-dim);}
.th .tf a, .th .tf .xi2{color:var(--txt-dim) !important;}
.th .tf a:hover{color:var(--gold-lt) !important;}
.th{background:#1a1d27 !important;border-radius:4px;}

/* ---- replace Discuz blue image buttons (發帖) with themed text buttons ---- */
#ct a > img[src*="pn_post"], #ct a > img[alt="发新帖"], #ct a > img[alt="發新帖"]{display:none !important;}
#ct a:has(> img[src*="pn_post"]){
  display:inline-block;padding:8px 22px;border-radius:4px;line-height:1.1;
  background:linear-gradient(180deg,var(--crimson-lt),var(--crimson));
  border:1px solid #6c1414;box-shadow:0 2px 10px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.12);
  font-family:var(--serif);font-weight:600;font-size:15px;color:#fff !important;letter-spacing:.14em;
}
#ct a:has(> img[src*="pn_post"]):hover{box-shadow:0 0 16px rgba(198,51,51,.55);}
#ct a:has(> img[src*="pn_post"])::before{content:"✦ 發新帖";}

/* ================= GENERIC TEXT COLOR FIXES ON DARK ================= */
.xg1,.xg2,.xs0,.xi1,.xw0{color:var(--txt-dim);}
.xw1{color:var(--txt-hi);}
.bbda,.bbda2,.cl.bbda{border-color:var(--line-soft) !important;}
hr.l,hr{border-color:var(--line-soft);background:var(--line-soft);}
.tip,.tip_c,.p_pop,.m_c .area{background:var(--panel-2);border-color:var(--line);color:var(--txt);}
.flb,.tbmu,.fastpost{background:transparent;}
table.dt td,table.dt th{border-color:var(--line-soft);}

/* ============================================================
   RESPONSIVE  (RWD) — 讓天堂皮膚在平板/手機重排
   ============================================================ */

/* ---- 流體容器：≤1080 寬度自適應 ---- */
@media (max-width:1080px){
  .wp, #toptb .wp, #hd .wp, #ft .wp{
    width:auto !important;max-width:100%;
    padding-left:14px;padding-right:14px;box-sizing:border-box;
  }
  #ct, #ct.wp{width:auto !important;max-width:100%;box-sizing:border-box;padding-left:14px;padding-right:14px;}
  #lineage-hero .hero-inner{width:auto;padding-left:14px;padding-right:14px;}
  body{background-attachment:scroll;}        /* 行動裝置別用 fixed，避免卡頓 */
}

/* ---- 平板 ≤ 900px ---- */
@media (max-width:900px){
  .lin-topbar .wp{flex-direction:column;height:auto;gap:6px;padding-top:9px;padding-bottom:9px;}
  .lin-nav{flex-wrap:wrap;justify-content:center;gap:12px 16px;font-size:12.5px;}
  #lineage-hero .hero-cta{margin-top:22px;}
  .lin-btn{padding:11px 22px;font-size:13.5px;}
  #lineage-hero{height:300px;}
  #lineage-hero .hero-inner{padding-top:30px;}
  #lineage-hero .logo-cn{font-size:48px;}
  #lineage-hero .logo-en{font-size:16px;letter-spacing:.45em;}
  #lineage-hero .slogan{font-size:14px;letter-spacing:.22em;}
  #lineage-hero::after{inset:9px;}
  #lineage-hero .hero-side{top:14px;right:14px;}
  #lineage-hero .hero-side a{padding:7px 12px;font-size:12px;}

  /* 選單：橫向可滑動，不擠壓 */
  #nv ul{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
  #nv ul::-webkit-scrollbar{display:none;}
  #nv ul li a{padding:0 18px;font-size:15px;height:46px;line-height:46px;white-space:nowrap;letter-spacing:.12em;}
  #qmenu{display:none;}

  /* 論壇列表：收掉「最後發表」欄 */
  .fl_tb td.fl_by{display:none;}
  /* 版塊列表：兩欄表格 → 單欄堆疊；並用 !important 打掉 Discuz JS 塞的 inline
     width:365px / margin-left:365px（在窄格會把版名推出格子外 → 中文塌成直排）*/
  .fl_tb, .fl_tb tbody, .fl_tb tr{display:block;width:auto;}
  .fl_tb td.fl_g{display:block;width:auto !important;padding:11px 6px !important;box-sizing:border-box;}
  .fl_tb td.fl_g .fl_icn_g{width:44px !important;min-width:44px;float:left;margin:0 !important;}
  .fl_tb td.fl_g dl{margin-left:56px !important;}
  .fl_tb td.fl_g dt{white-space:normal;line-height:1.35;}
  /* 帖子列表：收掉「最後發表」欄（列最後一個 .by） */
  #threadlisttableid td.by:last-child, .bm .th td.by:last-child{display:none;}
}

/* ---- 手機 ≤ 560px ---- */
@media (max-width:560px){
  #toptb{font-size:11px;}
  #lineage-hero{height:230px;}
  #lineage-hero .hero-inner{padding-top:24px;}
  #lineage-hero .logo-cn{font-size:36px;letter-spacing:.12em;}
  #lineage-hero .logo-en{font-size:13px;letter-spacing:.36em;margin-top:8px;}
  #lineage-hero .logo-en::before,#lineage-hero .logo-en::after{width:24px;}
  #lineage-hero .slogan{font-size:12px;letter-spacing:.12em;margin-top:16px;padding:7px 14px;}
  #lineage-hero .hero-side{position:static;justify-content:center;margin-top:14px;}

  #nv{margin-top:6px;}
  #nv ul li a{padding:0 14px;font-size:14px;height:42px;line-height:42px;}

  /* 搜尋列全寬 */
  #scbar table, #scbar td{display:block;width:100%;}
  #scbar_txt,#scform_text{width:100% !important;box-sizing:border-box;border-radius:4px;}
  #scbar .hotsearch,#scbar .src_tag{display:none;}

  /* 論壇列表：只留 圖示 + 版名（收掉統計數字） */
  .fl_tb td.fl_i{display:none;}
  .fl_tb td.fl_icn img{width:36px;height:36px;}
  td.fl_g h2,.fl_g h2 a{font-size:15px;}

  /* 帖子列表：只留 標題 + 回覆數（收掉作者欄、圖示縮小） */
  #threadlisttableid td.by{display:none;}
  #threadlisttableid td.icn{width:24px;}
  #threadlisttableid td.icn img{width:18px;height:auto;}
  a.xst,.xst{font-size:14px;}
  /* 篩選列收斂 */
  .th .tf{font-size:12px;line-height:1.9;}
  .th .tf a{margin-right:2px;}

  /* 工具列發帖鈕 + 板塊標題微縮 */
  .bm_h h1,.bm_h h2,.bm_h h1.xs2{font-size:16px;}
  #ct a:has(> img[src*="pn_post"]){padding:7px 16px;font-size:14px;}

  /* 文章頁：作者欄(左)收窄 */
  .pls.favatar{width:auto;}
  .plc{margin-left:0;}
  table.plhin, table.plhin tbody, table.plhin tr, table.plhin td{display:block;width:auto;}
  .pls{border-right:0;border-bottom:1px solid var(--line-soft);display:flex;align-items:center;gap:10px;padding:8px 12px;}
  .pls .avatar img{width:42px;height:42px;}
  .pls .pi{margin-top:0;}

  /* 頁尾置中堆疊 */
  #ft .wp{text-align:center;}
  #ft .z,#ft .y{float:none;}
}

/* ---- 雙欄版面(.ct2 主欄+側欄)在窄螢幕收合為單欄 ---- */
@media (max-width:900px){
  .ct2 .mn, .ct2 .sd, .ct1 .mn, .ct3 .mn, .ct3 .sd, .mn, .sd{
    float:none !important; width:auto !important; min-width:0 !important;
    margin-left:0 !important; margin-right:0 !important; box-sizing:border-box;
  }
  .mn .bm, .sd .bm{width:auto !important;min-width:0 !important;}
  .sd{margin-top:14px;}
  /* 任何殘留固定寬表格 → 流體 */
  #ct table{max-width:100% !important;}
  /* 安全網:擋掉頁面級橫向捲動(隱藏表單/編輯器 table 溢出);內容寬表格各自 .t_f 內捲不受影響 */
  #ct{overflow-x:hidden;}
  /* 看帖頁貼文表格：實際 DOM = #postlist>table(無class) > tbody>tr>td.pls/td.plc。
     手機強制拆直堆疊(修作者欄/標題直排+橫向溢出)；只拆貼文外框表格,不碰內容區技能表格 */
  #postlist > table, #postlist table.plhin,
  #postlist > table > tbody, #postlist table.plhin > tbody,
  #postlist > table > tbody > tr, #postlist table.plhin > tbody > tr{ display:block !important; width:auto !important; max-width:100% !important; }
  #postlist td.pls{ display:flex !important; flex-wrap:wrap; align-items:center; gap:8px; width:auto !important; float:none !important; border-right:0 !important; border-bottom:1px solid var(--line-soft); padding:8px 12px !important; }
  #postlist td.pls .avatar img{ width:40px !important; height:40px !important; }
  #postlist td.plc{ display:block !important; width:auto !important; float:none !important; padding:10px 12px !important; min-width:0 !important; }
  #postlist td.plc .t_f, #postlist td.plc .pct{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  /* 作者浮動框(favatar)+內部清單:拆浮動、限寬、換行,徹底防橫向溢出 */
  #postlist .favatar{ float:none !important; width:auto !important; max-width:100% !important; }
  #postlist .favatar .tns, #postlist .favatar dl, #postlist .favatar ul, #postlist .pls .pi{ width:auto !important; max-width:100% !important; }
  #postlist ul.xl2, #postlist ul.xl.o{ display:flex !important; flex-wrap:wrap !important; gap:4px 10px; padding:0; max-width:100% !important; }
  #postlist ul.xl2 li, #postlist .pob li{ float:none !important; }
  /* 手機:作者側欄統計數字(主題/回帖/積分/查看/回復)在 favatar 浮動模式會直排 → 隱藏,只留頭像+名稱+身份 */
  #postlist td.pls .tns,
  #postlist td.pls dl.pil,
  #postlist td.pls .hm.ptn,
  #postlist td.pls ul.xl2{ display:none !important; }
  #postlist td.plc, #postlist td.pls{ max-width:100% !important; overflow-wrap:anywhere; }
  #postlist table{ max-width:100% !important; }
}
@media (max-width:560px){
  .sd{display:none !important;}     /* 手機：收掉右側欄保持乾淨 */
}

/* ---- 解除 Discuz 固定版面的 min-width:960（真正讓 RWD 縮得下去的關鍵） ---- */
@media (max-width:1080px){
  html, body, #wp, #ct, #hd, #ft, #toptb,
  .wp, #wp.wp, #toptb .wp, #hd .wp, #ft .wp, #ct.wp, .mn, .sd{
    min-width:0 !important;
  }
  #wp, #wp.wp{width:auto !important;max-width:100%;}
}

/* ---- 修正：窄螢幕主欄/表格要撐滿(width:100%)，不是 auto(會塌成窄條) ---- */
@media (max-width:900px){
  .ct2 .mn, .ct3 .mn, .mn{width:100% !important;float:none !important;margin:0 !important;}
  .ct2 .sd, .ct3 .sd, .sd{width:100% !important;float:none !important;margin:14px 0 0 !important;}
  .mn .bm, .sd .bm{width:100% !important;box-sizing:border-box;}
  /* 版面表格撐滿，欄位才會正常分配（否則標題塌成直書） */
  #threadlisttableid, .fl_tb, #ct .bm table, #ct form > table, .mn table.fl_tb{
    width:100% !important; table-layout:auto;
  }
  #threadlisttableid th, #threadlisttableid td.common, th.common, th.new{white-space:normal;}
}

/* ---- 強制 #ct 與主欄填滿（解 shrink-to-fit 塌縮） ---- */
@media (max-width:1080px){
  #ct, #ct.wp, #ct.ct2, #ct.ct1, #ct.ct3{
    width:100% !important; float:none !important; display:block !important; box-sizing:border-box;
  }
}
@media (max-width:900px){
  #ct .mn, #ct .sd, #ct .bm{width:100% !important; float:none !important; box-sizing:border-box;}
}

/* ---- 手機：面板內距收斂，多留內容寬 ---- */
@media (max-width:560px){
  .bm_c{padding-left:10px !important;padding-right:10px !important;}
  .bm_h{padding-left:12px !important;padding-right:12px !important;}
  .wp, #toptb .wp, #hd .wp, #ft .wp, #ct, #ct.wp{padding-left:10px;padding-right:10px;}
}

/* ============================================================
   AESTHETIC FIXES v18 — 暗黑一致性收尾
   ============================================================ */

/* 1) 白色版塊/分類標題 → 強制深色（蓋掉 titlebg.png 淺底） */
#ct .bm_h, .bm_h.cl, .bm.bmw .bm_h, #ct .bm .bm_h, #category_1 .bm_h{
  background:linear-gradient(180deg,var(--panel-hi),var(--panel-2)) !important;
  color:var(--gold-lt) !important;
}
#ct .bm_h h2, #ct .bm_h h2 a, #ct .bm_h h1, #ct .bm_h .xs2{color:var(--gold-lt) !important;}

/* 2) 收合圈 icon（collapsed_*.gif）→ 換成乾淨金色 ▾ / ▴ */
.bm_h img[src*="collapsed"], .bm_h .o img[id$="_img"], img[id$="_img"][src*="collapse"],
.y img[src*="collapsed"], img[src*="collapsed_no"], img[src*="collapsed_yes"]{display:none !important;}
.bm_h .y, .bm_h .o{display:inline-flex;align-items:center;}

/* 3) 版塊圖示（forum.gif 灰氣泡）→ 換成金色 ✦ 徽記 */
td.fl_icn img, .fl_icn_g img, .icn img[src*="forum"]{display:none !important;}
td.fl_icn, .fl_icn_g{position:relative;text-align:center;vertical-align:middle;width:46px;}
td.fl_icn::before, .fl_icn_g::before{
  content:"✦";font-size:20px;color:var(--gold);
  text-shadow:0 0 10px rgba(200,162,74,.5);opacity:.85;
}
/* 已讀(無新)版塊 ✦ 暗一點 */
.fl_icn_g.fl_icn_g_n::before, td.fl_icn.fl_o::before{color:var(--gold-dk);opacity:.55;}

/* 4) 會員等級圖例彩色方塊（online_*.gif / star_*）→ 收掉，只留文字 */
.bm_c img[src*="online_"], img[src*="star_level"], .xg1 img[src*="online"], dl.cl dt img[src*="online"]{display:none !important;}

/* 5) 點狀虛線分隔 → 改細實線 hairline */
#ct .bm_c table td, #ct .bm_c table th, .fl tbody td, .fl_tb td,
.fl tbody tr td, .fl_row td, .subforum, .bm_c .cl{
  border-bottom-style:solid !important;border-bottom-color:var(--line-soft) !important;
}

/* 6) 破碎「開啟輔助訪問 / 寬窄切換」圖示 → 隱藏 */
#switchblind, #switchwidth, .switchblind, .switchwidth, #toptb .y a.switchblind{display:none !important;}

/* 7) 返回頂部按鈕 → 主題化 */
#scrolltop a, .scrolltop a, a.returnboard, #returntop a{
  background:var(--panel-2) !important;border:1px solid var(--line) !important;
  border-radius:4px;box-shadow:var(--shadow);
}
#scrolltop a:hover{border-color:var(--gold-dk) !important;}

/* 8) 統計列 / 在线会员 數字與標籤色調統一 */
.bm.xg1, .drv, #category_1 .xg1, .chart{color:var(--txt-dim);}
.fl_tb td.fl_i, .fl_tb td.fl_i a{color:var(--txt-dim) !important;}
.fl_tb td.fl_by a, .fl_tb td.fl_by .xi2{color:var(--txt) !important;}
.fl_tb td.fl_by a.xst, .fl_tb td.fl_by a:first-child{color:var(--txt) !important;}

/* ===== 佩特拉 版塊列表卡片強化 (2026-07-10) ===== */
#ct table.fl_tb{border-collapse:separate;border-spacing:16px 16px;width:100%;table-layout:fixed;}
#ct table.fl_tb td.fl_g{
  background:linear-gradient(150deg,rgba(38,30,24,.60),rgba(14,12,15,.82));
  border:1px solid var(--line) !important;border-radius:7px;padding:18px 20px !important;vertical-align:middle;
  box-shadow:inset 0 1px 0 rgba(200,162,74,.07),0 8px 22px -12px rgba(0,0,0,.7);transition:.22s ease;position:relative;overflow:hidden;}
#ct table.fl_tb td.fl_g::after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--gold),transparent);opacity:.5;}
#ct table.fl_tb td.fl_g:hover{border-color:var(--gold) !important;transform:translateY(-2px);
  box-shadow:inset 0 0 0 1px rgba(200,162,74,.22),0 0 26px -6px rgba(200,162,74,.30);}
/* 圖示：強制圓形金徽（覆蓋 Discuz inline width:365px）+ ✦ 來自既有 ::before */
#ct td.fl_g .fl_icn_g{width:54px !important;min-width:54px;height:54px !important;float:left;margin:1px 16px 0 0 !important;
  display:flex !important;align-items:center;justify-content:center;text-align:center;
  border:1px solid var(--line);border-radius:50%;
  background:radial-gradient(circle at 50% 38%,rgba(200,162,74,.18),rgba(0,0,0,.42));
  box-shadow:inset 0 0 12px rgba(200,162,74,.14);}
#ct td.fl_g .fl_icn_g::before{font-size:24px !important;opacity:1 !important;}
#ct td.fl_g dl{margin:0 !important;overflow:hidden;}
#ct td.fl_g dt{font-size:19px !important;margin-bottom:6px;line-height:1.2;white-space:normal;}
#ct td.fl_g dt a{font-family:var(--serif) !important;font-weight:600;color:var(--txt-hi) !important;letter-spacing:.05em;}
#ct td.fl_g dt a:hover{color:var(--gold-lt) !important;}
#ct td.fl_g dd,#ct td.fl_g .fl_i em{color:var(--txt-dim) !important;font-size:12px;letter-spacing:.02em;}
/* 隱藏 Discuz 官方推廣連結區 */
#ct .bm.lk{display:none !important;}

/* ===== 版塊內頁 forumdisplay 主題列表版面 (2026-07-10) ===== */
/* 表格撐滿面板 + 欄寬分配（原本只 537px 全擠左） */
#ct #threadlisttableid, #ct table.tl{width:100% !important;table-layout:auto;}
#ct #threadlisttableid td.icn{width:30px;min-width:30px;text-align:center;padding:12px 4px 12px 8px;}
#ct #threadlisttableid td.icn img{border-radius:3px;opacity:.9;}
#ct #threadlisttableid th.common, #ct #threadlisttableid th.new{text-align:left !important;width:auto;padding-right:14px;}
#ct #threadlisttableid td.by{width:120px !important;min-width:120px;text-align:center;white-space:nowrap;vertical-align:middle;padding:10px 6px;}
#ct #threadlisttableid td.num{width:92px !important;min-width:92px;text-align:center;white-space:nowrap;vertical-align:middle;padding:10px 6px;}
/* 回覆/查看 直式堆疊 */
#ct #threadlisttableid td.num a{display:block;font-size:15px;font-weight:600;color:var(--gold-lt) !important;line-height:1.35;}
#ct #threadlisttableid td.num em{display:block;font-size:11px;color:var(--txt-dim) !important;font-style:normal;}
/* 作者/最後發表 直式堆疊 */
#ct #threadlisttableid td.by cite{display:block;font-style:normal;line-height:1.4;}
#ct #threadlisttableid td.by cite a{color:var(--txt) !important;font-size:12px;}
#ct #threadlisttableid td.by cite a:hover{color:var(--gold-lt) !important;}
#ct #threadlisttableid td.by em{display:block;font-style:normal;}
#ct #threadlisttableid td.by em a, #ct #threadlisttableid td.by em span{color:var(--txt-dim) !important;font-size:11px;}
/* 主題標題 */
#ct #threadlisttableid th.common a.xst, #ct #threadlisttableid th.s a.xst{font-size:15px !important;font-family:var(--serif);letter-spacing:.02em;}
/* 置頂/預覽等小操作淡化 */
#ct #threadlisttableid .showcontent, #ct #threadlisttableid .closeprev, #ct #threadlisttableid .tdpre{font-size:11px;color:var(--txt-dim) !important;margin-right:4px;}
#ct #threadlisttableid .closeprev:hover, #ct #threadlisttableid .tdpre:hover{color:var(--gold-lt) !important;}
/* 行 hover + 分隔線 */
#ct #threadlisttableid tbody{border:0;}
#ct #threadlisttableid tbody + tbody{border-top:1px solid var(--line-soft);}
#ct #threadlisttableid tbody:hover td, #ct #threadlisttableid tbody:hover th{background:rgba(200,162,74,.05);}
/* 篩選 tab 列 div.tf → 深金 tab 條 */
#ct .bm .th .tf, #ct div.tf, #ct td.tl div.tf{display:flex !important;flex-wrap:wrap;align-items:center;gap:2px 2px;padding:2px 0;}
#ct div.tf a{padding:4px 11px;color:var(--txt-dim) !important;border-radius:3px;font-size:13px;line-height:1.6;}
#ct div.tf a:hover{color:var(--gold-lt) !important;background:rgba(200,162,74,.08);}
#ct div.tf a.xw1, #ct div.tf strong a, #ct div.tf .a a{color:var(--gold-lt) !important;font-weight:600;}
#ct div.tf span.pipe, #ct div.tf .pipe{color:var(--line);}
/* 表頭列(含篩選)的欄位標籤 作者/回復查看/最後發表 */
#ct #threadlisttableid > thead th, #ct #threadlisttableid tr.th th, #ct #threadlisttableid tr.th td{
  color:var(--txt-dim) !important;font-size:12px;font-weight:400;padding-bottom:8px;border-bottom:1px solid var(--line-soft);}
/* 返回/發新帖 工具列面板底 */
#ct .bm.cl, #ct .ptm.cl{border:0;}
/* 空版塊「尚無主題」→ 置中設計過的空狀態，清掉殘留細線 */
#ct #threadlisttableid p.emp, #ct .emp{
  padding:60px 20px !important;text-align:center;color:var(--txt-dim) !important;
  font-size:15px;letter-spacing:.08em;line-height:1.6;}
#ct #threadlisttableid p.emp::before{
  content:"❖";display:block;font-size:36px;color:var(--gold-dk);
  margin-bottom:16px;opacity:.6;letter-spacing:0;}
#ct #threadlisttableid p.emp::after{
  content:"成為第一個在此發表的旅人";display:block;font-size:12px;
  color:var(--txt-dim);opacity:.6;margin-top:8px;letter-spacing:.04em;}
/* 空版時移除承載空訊息的 th 上下殘線 */
#ct #threadlisttableid th:has(p.emp){border:0 !important;background:transparent !important;}
#ct #threadlisttableid tbody:has(p.emp){border:0 !important;}
#ct #threadlisttableid tbody:has(p.emp) + tbody{border-top:0;}

/* ============================================================
   討論頁 / 列表頁 原生元件 主題化 (2026-07-12 昀)
   修 Ray 回報:查看/回覆/電梯直達/發新帖/返回列表 排版差
   ============================================================ */
/* 麵包屑 */
#ct .z, .z{color:var(--txt-dim) !important;font-family:var(--sans);}
#ct .z a{color:var(--gold) !important;text-decoration:none;}
#ct .z a:hover{color:var(--gold-lt) !important;}
#ct .z em{color:var(--line) !important;font-style:normal;}
.z .nvhm{filter:sepia(1) saturate(2) hue-rotate(5deg) brightness(.9);}

/* 底部動作列 pgs / #pgt */
.pgs.cl, #pgt.pgs{background:var(--panel) !important;border:1px solid var(--line);border-radius:5px;padding:9px 16px;margin:16px 0;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow);}
.pgs .pgt{flex:0 0 auto;order:3;margin-left:auto;}
.pgs .y.pgb{order:1;float:none !important;}

/* 藏掉 Discuz 預設按鈕破圖(發新帖 pn_post / 電梯 fj_btn / 快速回覆) */
#newspecial img, .pgs a[title="發新帖"] img,
.pi img[src*="fj_btn"], .p_pop img, a.fastre img,
.psth img, .pob img[src*="common"]{display:none !important;}

/* 發新帖 → 金色膠囊鈕 */
#newspecial, .pgs a[title="發新帖"]{display:inline-flex !important;align-items:center;gap:5px;background:linear-gradient(#3a2f14,#241d0e) !important;border:1px solid var(--gold-dk) !important;color:var(--gold-lt) !important;border-radius:4px;padding:6px 16px;font-family:var(--serif);letter-spacing:.06em;text-decoration:none;line-height:1;}
#newspecial:hover, .pgs a[title="發新帖"]:hover{border-color:var(--gold) !important;color:#fff !important;}

/* 返回列表 */
.pgb a, .returnlist, .pgs .y.pgb a{display:inline-flex;align-items:center;background:var(--panel-2);border:1px solid var(--line);color:var(--txt) !important;border-radius:4px;padding:6px 16px;text-decoration:none;font-family:var(--serif);letter-spacing:.06em;}
.pgb a:hover, .returnlist:hover, .pgs .y.pgb a:hover{border-color:var(--gold-dk);color:var(--gold-lt) !important;background:var(--panel-hi);}

/* 樓層 info / 電梯直達 popup */
#postlist .plc .pi{border-bottom:1px solid var(--line-soft);padding-bottom:4px;}
.pi .pti, .pi .authi, .authi, .authi a{color:var(--txt-dim) !important;}
.pi strong a, .po.hm, .po.hm a, .plc .pi .xg1{color:var(--gold-dk) !important;text-decoration:none;}
.pi strong a:hover, .po.hm a:hover{color:var(--gold-lt) !important;}
.p_pop{background:var(--panel-2) !important;border:1px solid var(--line) !important;box-shadow:var(--shadow) !important;color:var(--txt) !important;}
.p_pop a{color:var(--txt) !important;}
.p_pop a:hover{background:var(--panel-hi) !important;color:var(--gold-lt) !important;}

/* post 選項列 (回覆/引用/評分/舉報/分享) */
.pob .cm a, .pob a, .cm a, .pnpost a, .p_opt a{color:var(--txt-dim) !important;text-decoration:none;}
.pob .cm a:hover, .pob a:hover, .cm a:hover{color:var(--gold-lt) !important;}

/* 作者欄 */
.pls{border-right:1px solid var(--line-soft);}
.pls .authi a, .pls a.xw1, .pls .xg2{color:var(--gold) !important;}
.pls .avatar img, .avatar img{border:1px solid var(--line);border-radius:3px;}
.pls .pi{color:var(--txt-dim);}

/* 時間/發表於/回覆數等灰字 */
.xg1, .xw0, .xg2, .authi span{color:var(--txt-dim) !important;}

/* 快速回覆框 */
#fastpostform, .fastpost, #fastpostmessage, #fastpostsubmit{background:var(--panel-2) !important;border:1px solid var(--line) !important;color:var(--txt) !important;border-radius:4px;}
#fastpostsubmit, .pn.pnc, button.pn{background:linear-gradient(#3a2f14,#241d0e) !important;border:1px solid var(--gold-dk) !important;color:var(--gold-lt) !important;border-radius:4px;cursor:pointer;}
#fastpostsubmit:hover{border-color:var(--gold) !important;color:#fff !important;}

/* 列表頁 主題行 查看/回覆 數字 */
.tl td.num a, .tl td.num em, .tl .num strong{color:var(--gold) !important;}
.tl td.num, .tl .num .xg1, .tl th.new .xw1{color:var(--txt-dim) !important;}
.tl .by, .tl .by cite a, .tl .by em a{color:var(--txt-dim) !important;}
.tl .by cite a:hover{color:var(--gold-lt) !important;}
/* 電梯直達 輸入框 + 微調 */
.psth input.p_fre, input.p_fre, #pgt input{background:var(--panel-2) !important;border:1px solid var(--line) !important;color:var(--txt) !important;border-radius:3px;width:34px;text-align:center;}
.psth{color:var(--txt-dim) !important;}
