/* ==========================================================================
   星穹科技皮肤 tech.css
   双主题：默认浅色科技 / body.fmdm-dark 深空科技
   仅由 template/dztech 模板加载，最后引入，可安全覆盖基础主题
   ========================================================================== */

/* 使用当前访问域名加载图标字体，避免跨域字体被浏览器拦截。 */
@font-face {
    font-family: "dzicon";
    src: url("../../../../static/image/common/dzicon.woff2") format("woff2"),
         url("../../../../static/image/common/dzicon.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

:root {
    --tech-accent: #2f6bff;
    --tech-accent2: #00c8ff;
    --tech-accent3: #7c5cff;
    --tech-grad: linear-gradient(120deg, #2f6bff 0%, #00c8ff 100%);
    --tech-grad-soft: linear-gradient(120deg, rgba(47,107,255,.14), rgba(0,200,255,.10));
    --tech-glow: 0 8px 26px rgba(47,107,255,.13), 0 0 0 1px rgba(0,200,255,.05);
    --tech-glow-strong: 0 0 24px rgba(0,200,255,.5);
    --tech-card: rgba(255,255,255,.86);
    --tech-card-solid: #ffffff;
    --tech-card-head: linear-gradient(180deg, rgba(47,107,255,.05), rgba(255,255,255,0));
    --tech-line: rgba(47,107,255,.15);
    --tech-line-strong: rgba(47,107,255,.32);
    --tech-text: #16233b;
    --tech-muted: #5b6b85;
    --tech-header-bg: linear-gradient(96deg, #071327 0%, #0a2148 46%, #053b5e 100%);
    --tech-header-line: rgba(0,200,255,.38);
    --tech-header-text: #dbe9ff;
    --tech-input-bg: rgba(255,255,255,.72);
    --tech-grid-line: rgba(47,107,255,.055);
    --tech-radius: 14px;
}

body.fmdm-dark {
    --dz-fa: #d7e3f5;
    --dz-fb: #a9bbd1;
    --dz-fc: #8ea3bd;
    --tech-accent: #4d8dff;
    --tech-accent2: #26e0ff;
    --tech-accent3: #8b6dff;
    --tech-glow: 0 10px 30px rgba(0,0,0,.55), 0 0 22px rgba(0,200,255,.10);
    --tech-glow-strong: 0 0 26px rgba(0,224,255,.55);
    --tech-card: rgba(15,24,42,.74);
    --tech-card-solid: #101a2c;
    --tech-card-head: linear-gradient(180deg, rgba(0,200,255,.06), rgba(255,255,255,0));
    --tech-line: rgba(84,190,255,.18);
    --tech-line-strong: rgba(84,190,255,.42);
    --tech-text: #dce8f8;
    --tech-muted: #8ea3bd;
    --tech-header-bg: linear-gradient(96deg, #02060e 0%, #041327 50%, #032b3f 100%);
    --tech-header-line: rgba(38,224,255,.45);
    --tech-header-text: #cfeeff;
    --tech-input-bg: rgba(255,255,255,.06);
    --tech-grid-line: rgba(90,190,255,.06);
}

/* ---------- 全局基底 ---------- */
body {
    background-color: #f2f6ff;
    background-image:
        radial-gradient(900px 520px at 6% -8%, rgba(47,107,255,.16), rgba(47,107,255,0) 62%),
        radial-gradient(820px 480px at 100% 0%, rgba(0,200,255,.14), rgba(0,200,255,0) 58%),
        repeating-linear-gradient(0deg, rgba(47,107,255,.045) 0, rgba(47,107,255,.045) 1px, transparent 1px, transparent 42px),
        repeating-linear-gradient(90deg, rgba(47,107,255,.045) 0, rgba(47,107,255,.045) 1px, transparent 1px, transparent 42px);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
body.fmdm-dark {
    background-color: #050a16 !important;
    background-image:
        radial-gradient(960px 560px at 4% -10%, rgba(38,88,255,.26), rgba(38,88,255,0) 62%),
        radial-gradient(800px 460px at 96% 0%, rgba(0,224,255,.18), rgba(0,224,255,0) 58%),
        repeating-linear-gradient(0deg, rgba(90,190,255,.07) 0, rgba(90,190,255,.07) 1px, transparent 1px, transparent 44px),
        repeating-linear-gradient(90deg, rgba(90,190,255,.07) 0, rgba(90,190,255,.07) 1px, transparent 1px, transparent 44px);
}
::selection { background: rgba(0,200,255,.28); color: var(--tech-text); }
a { transition: color .18s ease, opacity .18s ease; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: rgba(47,107,255,.35) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(47,107,255,.55), rgba(0,200,255,.55)); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 顶部导航：深空玻璃 ---------- */
.dz_layer_top {
    background: var(--tech-header-bg) !important;
    box-shadow: 0 10px 34px rgba(3,18,48,.30), inset 0 -1px 0 var(--tech-header-line) !important;
    position: relative;
    isolation: isolate;
}
.dz_layer_top::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(620px 90px at 14% 0%, rgba(0,200,255,.18), transparent 70%),
        radial-gradient(520px 80px at 86% 100%, rgba(124,92,255,.16), transparent 70%);
    pointer-events: none;
}
.dz_layer_top::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,210,255,.85), rgba(90,130,255,.6), transparent);
}
.dz_btm_layer.dz_nav { background: transparent; }
.dz_layer_nav ul li a {
    color: var(--tech-header-text) !important;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color .2s ease, text-shadow .2s ease;
}
.dz_layer_nav ul li a:hover,
.dz_layer_nav ul li.a a,
.dz_layer_nav ul li.hover a { color: #ffffff !important; text-shadow: 0 0 14px rgba(0,210,255,.75); }
.dz_layer_nav ul li a::before,
.dz_layer_nav ul li a::after {
    background: linear-gradient(90deg, #00c8ff, #2f6bff) !important;
    height: 3px !important;
    box-shadow: 0 0 12px rgba(0,200,255,.85);
}
.dz_layer_nav ul .dz_menumore a { color: var(--tech-header-text) !important; }
/* 站标：4:1 比例，按容器高度等比缩放，保证高分屏清晰 */
.dz_nav .dz_nav_logo img { width: 176px; height: 44px; filter: drop-shadow(0 0 12px rgba(0,200,255,.35)); }
@media (max-width: 1240px) {
    .dz_nav .dz_nav_logo img { width: 160px; height: 40px; }
}
@media (max-width: 1024px) {
    .dz_nav .dz_nav_logo img { width: 140px; height: 35px; }
}
.dz_layer_dl .header-right { color: var(--tech-header-text); }

/* 搜索框 */
.header-searcher .search-input {
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(110,190,255,.32) !important;
    color: var(--tech-header-text) !important;
    border-radius: 999px !important;
    box-shadow: inset 0 0 14px rgba(0,140,255,.12);
}
.header-searcher .search-input::placeholder { color: rgba(200,225,255,.55) !important; }
.header-searcher .search-input:focus,
.header-searcher .search-input.active {
    border-color: rgba(0,210,255,.75) !important;
    background: rgba(255,255,255,.12) !important;
    box-shadow: 0 0 0 3px rgba(0,200,255,.14), 0 0 18px rgba(0,200,255,.25) !important;
}
.header-searcher .search-icon { filter: brightness(1.9) drop-shadow(0 0 4px rgba(0,200,255,.5)); opacity: .9; }
.header-searcher .search-panel {
    background: var(--tech-card-solid) !important;
    border: 1px solid var(--tech-line);
    border-radius: 12px !important;
    box-shadow: var(--tech-glow);
}

/* 通知 / 模式切换 / 登录按钮 */
.header-notice .notice-icon,
.header-notice .fmdm-btn {
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(120,200,255,.22);
    border-radius: 50%;
    color: var(--tech-header-text) !important;
    transition: background .2s ease, box-shadow .2s ease;
}
.header-notice .notice-icon:hover,
.header-notice.open .notice-icon,
.header-notice .fmdm-btn:hover {
    background: rgba(0,200,255,.20) !important;
    box-shadow: 0 0 16px rgba(0,200,255,.35);
}
.header-notice .notice-icon .dzicon,
.header-notice .dot { color: #7ff0ff; }
.header-notice .dot { box-shadow: 0 0 10px rgba(0,224,255,.8); }
.header-user-login .login_btn a,
.header-user-login a {
    background: var(--tech-grad);
    color: #fff !important;
    border-radius: 999px;
    padding: 0 22px;
    box-shadow: 0 6px 18px rgba(47,107,255,.35);
    transition: transform .18s ease, box-shadow .18s ease;
}
.header-user-login .login_btn a:hover,
.header-user-login a:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,200,255,.45);
}
.notice-dropdown, .header-user-dropdown {
    border: 1px solid var(--tech-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--tech-glow) !important;
}

/* 二级导航 */
#hds #mu ul {
    background: var(--tech-card) !important;
    border: 1px solid var(--tech-line);
    border-top: none;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(14px);
    box-shadow: var(--tech-glow);
}
#mu ul li a { color: var(--tech-muted); }
#mu ul li a:hover, #mu ul li.a a { color: var(--tech-accent) !important; }
#mu a:hover { background: transparent !important; }

/* ---------- 通用卡片 ---------- */
.bm, .dz_ngbox, .dz_bdl, .bmw, .dz_bm, .dz_flbm .bm, #online.bm, .bm.lk,
.ct2 .mn .bm, .ct2 .sd .bm, .ct2_a .mn, .ct2_a .dz_phbbox .bm, .ct3_a .mn, .ct3_a .sd,
.pg_spacecp #ct.wp .mn .bm, .pg_post #ct.ct2_a .bm, .km_nox, .bm.kmbm_ca {
    background: var(--tech-card) !important;
    border: 1px solid var(--tech-line) !important;
    border-radius: var(--tech-radius) !important;
    box-shadow: var(--tech-glow) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    position: relative;
}
.bm::before, .dz_ngbox::before, .dz_bdl::before, .bmw::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--tech-line-strong), transparent);
    pointer-events: none;
}
.bm_h {
    background: var(--tech-card-head) !important;
    border-bottom: 1px solid var(--tech-line) !important;
    padding-left: 18px !important;
    position: relative;
}
.bm_h::before {
    content: "";
    position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--tech-grad);
    box-shadow: 0 0 12px rgba(0,200,255,.45);
}
.bm_h h3, .bm_h h2, .bm_h h1 { color: var(--tech-text) !important; letter-spacing: .5px; }
.bm_h h3 a, .bm_h h2 a, .bm_h h1 a { color: var(--tech-text) !important; }
.bm_h h3 a:hover, .bm_h h2 a:hover { color: var(--tech-accent) !important; }
.bm_c { background: transparent !important; }
.dz_bm .bm_h::before { display: none; }

/* 标签页 */
.dz_wide .tb { border-bottom: 1px solid var(--tech-line); }
.dz_wide .tb .a a, .dz_wide .tb .current a { color: var(--tech-accent) !important; }
.dz_wide .tb .a:after, .dz_wide .tb .current:after {
    background: var(--tech-grad) !important;
    box-shadow: 0 0 10px rgba(0,200,255,.5);
    height: 3px;
}
.tbmu { border-bottom: 1px solid var(--tech-line); }
.tbmu a { color: var(--tech-muted); }
.tbmu a:hover, .tbmu .a { color: var(--tech-accent) !important; }
.tb_h { background: var(--tech-card-head) !important; border-bottom: 1px solid var(--tech-line); color: var(--tech-text); }

/* 表单控件 */
input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.search-input),
textarea, select {
    background: var(--tech-input-bg) !important;
    border: 1px solid var(--tech-line) !important;
    color: var(--tech-text) !important;
    border-radius: 10px !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--tech-accent2) !important;
    box-shadow: 0 0 0 3px rgba(0,200,255,.12), 0 0 16px rgba(0,200,255,.18) !important;
    outline: none;
}
.px, .pxtxt { background: var(--tech-input-bg) !important; color: var(--tech-text) !important; }
input::placeholder, textarea::placeholder { color: var(--tech-muted) !important; opacity: .8; }

/* 按钮 */
.pn, .pnpost .pn, .btn, .km_pnbtn, .btn_big, input[type="submit"], button.btn {
    border-radius: 999px !important;
    border: 1px solid var(--tech-line) !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pn, a.pn, button.pn, input.pn, a.btn, button.btn, input.btn, .km_pnbtn, .btn_big, input[type="submit"] {
    background: var(--dz-btnbg, #e6f0ff);
    color: var(--dz-btntxt, #1e5bff) !important;
}
.pnc, a.pnc, button.pnc, input.pnc, .pnpost .pn, .km_pnbtn, .btn.btn-primary, input[type="submit"].btn {
    background: var(--tech-grad) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(47,107,255,.30);
}
.pnc:hover, .pnpost .pn:hover, .km_pnbtn:hover, .btn.btn-primary:hover, input[type="submit"].btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0,200,255,.42) !important;
}
.pn:not(.pnc):hover, .btn:not(.btn-primary):hover { border-color: var(--tech-line-strong) !important; color: var(--tech-accent) !important; }

/* 第三方登录（微信等） */
.dz_oauth_label {
    margin-left: 12px;
    color: var(--tech-muted);
    font-size: 13px;
    vertical-align: middle;
}
.dz_oauth_btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    padding: 6px 13px;
    border: 1px solid var(--tech-line-strong);
    border-radius: var(--tech-radius);
    background: var(--tech-card);
    color: var(--tech-text);
    font-size: 13px;
    line-height: 1.1;
    text-decoration: none;
    vertical-align: middle;
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.dz_oauth_btn .iconfont { color: #07c160; }
.dz_oauth_btn:hover {
    border-color: var(--tech-accent);
    color: var(--tech-accent);
    box-shadow: 0 4px 14px rgba(7, 193, 96, .18);
}

/* 分页 */
.pg a, .pg strong, .pgb a, .pg label {
    border-radius: 10px !important;
    border: 1px solid var(--tech-line) !important;
    background: var(--tech-card) !important;
    color: var(--tech-muted) !important;
    transition: all .18s ease;
}
.pg strong, .pg a:hover {
    background: var(--tech-grad) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(47,107,255,.32);
}
.pg a.prev, .pg a.nxt { filter: saturate(1.2); }

/* ---------- 论坛首页 / 版块列表 ---------- */
#category_grid { background: transparent !important; border-radius: var(--tech-radius) !important; }
#category_grid h4 {
    color: var(--tech-text) !important;
    font-weight: 500 !important;
    border-bottom: 1px solid var(--tech-line) !important;
    background: var(--tech-card-head) !important;
    position: relative;
}
#category_grid h4::before {
    content: "";
    position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
    background: var(--tech-grad);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(0,200,255,.5);
}
#category_grid td { border-left: 1px solid var(--tech-line) !important; border-color: var(--tech-line) !important; }
#category_grid h4 span {
    background: var(--tech-grad) !important;
    box-shadow: 0 0 16px rgba(0,200,255,.4);
}
.category_newlist li { color: var(--tech-muted); }
.category_newlist li:before { background: var(--tech-accent2) !important; box-shadow: 0 0 8px rgba(0,200,255,.6); }
.category_newlist li:hover a { color: var(--tech-accent) !important; }

.fl_tb td.fl_g { border-radius: 12px !important; transition: background .18s ease, transform .18s ease; }
.fl_tb td.fl_g:hover { background: var(--tech-grad-soft) !important; transform: translateY(-1px); }
.fl_g dt a, .fl_tb td h2 a { color: var(--tech-text) !important; font-weight: 500; }
.fl_g dt a:hover, .fl_tb td h2 a:hover { color: var(--tech-accent) !important; }
.fl_icn img, .fl_icn_g img { border-radius: 12px !important; box-shadow: 0 4px 14px rgba(20,60,140,.16); }
.kmtoday {
    background: var(--tech-grad) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(0,200,255,.5);
    border-radius: 8px !important;
}

/* ---------- 主题列表 ---------- */
#threadlisttableid, .tl { background: transparent !important; }
.tl th, .tl td { border-color: var(--tech-line) !important; }
.tl th { color: var(--tech-muted); font-weight: 500; }
.tl th a, .tl td.fn a, .tl .s a { color: var(--tech-text); }
.tl th a:hover, .tl td.fn a:hover, .tl .s a:hover { color: var(--tech-accent) !important; }
.tl .th {
    background: var(--tech-card-head) !important;
    border-bottom: 1px solid var(--tech-line) !important;
}
.tl .th th { font-weight: 500; }
.tl tbody tr { transition: background .16s ease, box-shadow .16s ease; }
.tl tbody tr:hover {
    background: var(--tech-grad-soft) !important;
    box-shadow: inset 3px 0 0 var(--tech-accent2), inset 0 0 30px rgba(0,200,255,.05);
}
.tl tbody tr:hover .s a, .tl tbody tr:hover .fn a { color: var(--tech-accent) !important; }
.tl .icn img { border-radius: 10px; }
.tl .by, .tl .by a, .tl .f, .tl .f a { color: var(--tech-muted) !important; }
.s .t a, .tl .t a { font-weight: 500; }
.tl .t a:visited { color: #6d7f99; }
.tl .th td, .tl .th th { border-bottom-color: var(--tech-line) !important; }
/* 热帖 / 置顶标记 */
.tl .p_top a, .tl .p_hot a, .tl .p_good a { color: var(--tech-accent2) !important; }
.tr3 td { background: transparent !important; }
.tl tbody tr.tr3:hover { background: var(--tech-grad-soft) !important; }

/* 版块侧栏 */
.dz_bdl .tbn h2 { color: var(--tech-accent) !important; }
.dz_bdl .tbn h2 a { color: var(--tech-accent) !important; }
.dz_bdl dl dt { background: var(--tech-grad-soft) !important; border-radius: 8px !important; }

/* ---------- 帖子详情 ---------- */
.t_f, .plc, .post_inner { background: transparent !important; }
.pls, .plc { border-color: var(--tech-line) !important; }
.pls .avatar { box-shadow: none !important; }
.pls .avatar .avtm { padding: 0 !important; border: 0 !important; background: transparent !important; }
.pls .avatar img, .block_avatar img { border-radius: 12px !important; box-shadow: 0 0 0 2px rgba(0,200,255,.18), 0 0 18px rgba(0,200,255,.18) !important; }
.pls .username, .pls .username a { color: var(--tech-text) !important; font-weight: 500; }
.pls .username a:hover { color: var(--tech-accent) !important; }
.post_content .post_message, .post_message { color: var(--tech-text); line-height: 1.85; }
.post_content { font-size: 15px; }
.pbl a, .pbl .highlightlink { color: var(--tech-accent) !important; }
.quote, .blockcode {
    background: var(--tech-grad-soft) !important;
    border: 1px solid var(--tech-line) !important;
    border-left: 3px solid var(--tech-accent2) !important;
    border-radius: 10px !important;
    color: var(--tech-text) !important;
}
.t_f .t_fs, .post_title, .subject { color: var(--tech-text) !important; }
#post_reply, #quickreply { background: var(--tech-card) !important; border-radius: var(--tech-radius); }
.rate, .p_btn { border-color: var(--tech-line) !important; }
.rate a, .p_btn a { border-radius: 8px !important; }

/* ---------- 用户中心 / 空间 ---------- */
#uhd, .uhd, .dz_uactive_profile { border-radius: var(--tech-radius); }
#uhd { background: var(--tech-card) !important; border-bottom: 1px solid var(--tech-line) !important; }
#uhd .mn a { color: var(--tech-muted); }
#uhd .mn a:hover, #uhd .mn a.a { color: var(--tech-accent) !important; }
.umn, .umh { border-color: var(--tech-line) !important; }
.umh h3 { color: var(--tech-text); }

/* ---------- 侧边漂浮工具 ---------- */
.dz_rnav a {
    background: var(--tech-card) !important;
    border: 1px solid var(--tech-line) !important;
    color: var(--tech-accent) !important;
    border-radius: 12px !important;
    box-shadow: var(--tech-glow);
    backdrop-filter: blur(10px);
}
.dz_rnav a:hover {
    background: var(--tech-grad) !important;
    color: #fff !important;
    box-shadow: var(--tech-glow-strong);
}

/* ---------- 页脚 ---------- */
.dz_footc {
    background: linear-gradient(96deg, #071327, #0a2148 55%, #053b5e) !important;
    border-radius: var(--tech-radius) var(--tech-radius) 0 0;
    box-shadow: 0 -8px 34px rgba(3,18,48,.28) !important;
    position: relative;
    overflow: hidden;
}
.dz_footc::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,210,255,.8), transparent);
}
.dz_footc a, .dz_footc_copy, .dz_footc_copy a, .dz_footc_nav .pipe { color: rgba(205,232,255,.78) !important; }
.dz_footc a:hover { color: #fff !important; }
.dz_footc_nav { border-bottom-color: rgba(120,200,255,.18) !important; }
.dz_footc_dico { background: transparent !important; }

/* ---------- 提示与弹层 ---------- */
.p_pop, .p_pop.pm_notice_wrap, .popupmenu, .fwin, .fwin .fwin-title {
    border-radius: 12px !important;
    border-color: var(--tech-line) !important;
    box-shadow: var(--tech-glow) !important;
}
.p_pop a:hover, .p_pop a.a { background: var(--tech-grad-soft) !important; color: var(--tech-accent) !important; }
.fwin .fwin-title { background: var(--tech-card-head) !important; color: var(--tech-text); }
#scrolltop, #diy-tg, #i18n-switch { border-radius: 12px !important; }

/* ---------- 版块图标 / 头像 / 图片 ---------- */
img.avatar, .avatar img { border-radius: 10px; }
img[src*="/image/common/"] { vertical-align: middle; }

/* ---------- 阅读增强 ---------- */
.post_message, .dz_bdl, .category_newlist { text-rendering: optimizeLegibility; }
.tl .s a b, .tl .s a strong { color: var(--tech-accent); }
.xi1, .onerror, .rq { color: #ff6b81 !important; }
body.fmdm-dark .xi1, body.fmdm-dark .onerror, body.fmdm-dark .rq { color: #ff8a9b !important; }
.xg1, .xg1 a { color: var(--tech-muted) !important; }

/* ---------- 深色主题下的定点补丁（覆盖 fmdm-dark-auto.css 的硬编码） ---------- */
body.fmdm-dark .bm_h,
body.fmdm-dark .bm_c,
body.fmdm-dark .tl .th,
body.fmdm-dark .tb_h,
body.fmdm-dark .bmw .bm_h,
body.fmdm-dark .bmn,
body.fmdm-dark .fl,
body.fmdm-dark .fl .bm_h,
body.fmdm-dark .dz_bm,
body.fmdm-dark .dz_bdl dl dt,
body.fmdm-dark #category_grid h4 {
    background-color: transparent !important;
    background-image: var(--tech-card-head) !important;
}
body.fmdm-dark .bm_h::before,
body.fmdm-dark #category_grid h4::before { background: var(--tech-grad) !important; }
body.fmdm-dark .tl tbody tr:hover { background: rgba(0,200,255,.07) !important; }
body.fmdm-dark .post_message, body.fmdm-dark .post_content { color: #dce8f8 !important; }
body.fmdm-dark .quote, body.fmdm-dark .blockcode { color: #cfe0f2 !important; background: rgba(0,200,255,.07) !important; }
body.fmdm-dark .header-searcher .search-input { color: #cfeeff !important; }
body.fmdm-dark .notice-dropdown, body.fmdm-dark .header-user-dropdown { background: #0d1728 !important; }
body.fmdm-dark .dz_rnav a { color: #7fe6ff !important; }
body.fmdm-dark .dz_footc, body.fmdm-dark #footer { background: linear-gradient(96deg, #02060e, #041327 55%, #032b3f) !important; }

/* 小屏兜底：避免装饰溢出 */
@media (max-width: 1240px) {
    .dz_layer_top { box-shadow: 0 6px 18px rgba(3,18,48,.25) !important; }
    .dz_rnav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ---------- 抖音链接卡片 ---------- */
.dz_dycard {
    display: flex;
    align-items: stretch;
    gap: 14px;
    max-width: 560px;
    margin: 14px 0;
    padding: 12px;
    background: var(--tech-card-solid);
    border: 1px solid var(--tech-line);
    border-radius: var(--tech-radius);
    box-shadow: var(--tech-glow);
    text-decoration: none !important;
    color: var(--tech-text) !important;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.dz_dycard:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(47,107,255,.22);
}
body.fmdm-dark .dz_dycard { background: rgba(16,26,44,.88) !important; }
.dz_dycard-face {
    position: relative;
    flex: 0 0 132px;
    width: 132px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tech-grad);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.dz_dycard-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dz_dycard-face--none { background: var(--tech-grad); }
.dz_dycard-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border-radius: 50%;
    background: rgba(0,0,0,.42);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: 0 0 18px rgba(0,0,0,.25);
}
.dz_dycard-play::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent #ffffff;
}
.dz_dycard-body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dz_dycard-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--tech-text);
}
.dz_dycard-sub {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--tech-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dz_dycard-tag {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(135deg, #16181d, #333a45);
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
@media (max-width: 640px) {
    .dz_dycard { max-width: none; }
}
/* ---------- 发帖提示 ---------- */
.dz_dy_hint {
    margin: 8px 0 0;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--tech-muted) !important;
    background: var(--tech-grad-soft);
    border: 1px dashed var(--tech-line-strong);
    border-radius: 10px;
}
.dz_dy_hint b { color: var(--tech-accent) !important; font-weight: 600; }

/* ---------- 抖音站内播放器（不跳新窗口） ---------- */
.dz_dyembed {
    display: block;
    margin: 14px 0;
    background: var(--tech-card);
    border: 1px solid var(--tech-line);
    border-radius: var(--tech-radius);
    box-shadow: 0 10px 30px rgba(47,107,255,.12);
    overflow: hidden;
}
body.fmdm-dark .dz_dyembed { background: rgba(16,26,44,.88); }
/* 竖版 9:16（默认）/ 横版 16:9 */
.dz_dyembed--v { max-width: 300px; }
.dz_dyembed--h { max-width: 640px; }
.dz_dyembed-frame {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
}
.dz_dyembed--v .dz_dyembed-frame { padding-bottom: 177.78%; }
.dz_dyembed--h .dz_dyembed-frame { padding-bottom: 56.25%; }
.dz_dyembed-frame iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.dz_dyembed-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}
.dz_dyembed-title {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--tech-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dz_dyembed-sub {
    flex: 0 0 auto;
    color: var(--tech-muted);
    font-size: 12px;
}
.dz_dyembed-ratio {
    flex: 0 0 auto;
    padding: 3px 10px;
    border: 1px solid var(--tech-line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--tech-accent);
    font-size: 12px;
    line-height: 1.6;
    cursor: pointer;
}
.dz_dyembed-ratio:hover { background: var(--tech-grad-soft); }
.dz_dyembed-tag {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(135deg, #16181d, #333a45);
}
@media (max-width: 640px) {
    .dz_dyembed--h { max-width: none; }
    .dz_dyembed--v { max-width: 280px; margin-left: auto; margin-right: auto; }
}

/* ---------- 帖子分享条（微信/朋友圈） ---------- */
.dz_sharebar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: calc(100% - 24px);
    max-width: 1200px;
    margin: 12px auto;
    padding: 12px 16px;
    background: var(--tech-card);
    border: 1px solid var(--tech-line);
    border-radius: var(--tech-radius);
}
body.fmdm-dark .dz_sharebar { background: rgba(16,26,44,.88); }
.dz_sharebar-t { color: var(--tech-text); font-size: 13px; font-weight: 600; }
.dz_sharebar-btn {
    padding: 6px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--tech-grad);
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}
.dz_sharebar-tip { color: var(--tech-muted); font-size: 12px; }

/* ---------- 热榜 ---------- */
.dz_hot { margin: 16px auto 24px; }
.dz_hot_head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.dz_hot_head h2 { color: var(--tech-text); font-size: 22px; font-weight: 700; }
.dz_hot_head h2 span { margin-left: 10px; color: var(--tech-muted); font-size: 12px; font-weight: 400; }
.dz_hot_tabs { display: flex; gap: 8px; }
.dz_hot_tabs a { padding: 6px 16px; border: 1px solid var(--tech-line); border-radius: 999px; color: var(--tech-muted); font-size: 13px; }
.dz_hot_tabs a.a { background: var(--tech-grad); border-color: transparent; color: #ffffff; }
.dz_hot_list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dz_hot_item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--tech-card); border: 1px solid var(--tech-line); border-radius: var(--tech-radius); }
body.fmdm-dark .dz_hot_item { background: rgba(16,26,44,.88); }
.dz_hot_rank { flex: 0 0 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 10px; background: var(--tech-grad-soft); color: var(--tech-accent); font-weight: 700; }
.dz_hot_rank.r1, .dz_hot_rank.r2, .dz_hot_rank.r3 { background: var(--tech-grad); color: #ffffff; }
.dz_hot_main { flex: 1 1 auto; min-width: 0; }
.dz_hot_subject { display: block; color: var(--tech-text); font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz_hot_subject:hover { color: var(--tech-accent); }
.dz_hot_meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 12px; color: var(--tech-muted); font-size: 12px; }
.dz_hot_nums { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; text-align: right; color: var(--tech-muted); font-size: 12px; }
.dz_hot_new { color: var(--tech-accent); font-weight: 600; }
.dz_hot_score { color: var(--tech-text); font-weight: 700; }
.dz_hot_empty { padding: 40px; text-align: center; color: var(--tech-muted); background: var(--tech-card); border: 1px dashed var(--tech-line-strong); border-radius: var(--tech-radius); }
@media (max-width: 640px) {
    .dz_hot_item { flex-wrap: wrap; }
    .dz_hot_nums { flex-direction: row; text-align: left; gap: 12px; }
}

/* ---------- 视频徽标与视频聚合页 ---------- */
.dz_vbadge { background: linear-gradient(135deg, #16181d, #333a45); color: #ffffff; }
.dz_vpage { margin: 16px auto 24px; }
.dz_vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dz_vcard { display: block; background: var(--tech-card); border: 1px solid var(--tech-line); border-radius: var(--tech-radius); overflow: hidden; }
body.fmdm-dark .dz_vcard { background: rgba(16,26,44,.88); }
.dz_vcard:hover { border-color: var(--tech-accent); }
.dz_vcover { display: flex; align-items: center; justify-content: center; position: relative; height: 150px; background: linear-gradient(135deg, #141a2e, #24345e); }
.dz_vplay { position: relative; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.18); }
.dz_vplay::after { content: ''; position: absolute; left: 20px; top: 15px; border-left: 16px solid #ffffff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.dz_vtag { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.35); color: #ffffff; font-size: 10px; letter-spacing: 1px; }
.dz_vbody { display: block; padding: 12px 14px; }
.dz_vtitle { display: block; color: var(--tech-text); font-size: 14px; font-weight: 600; line-height: 1.5; max-height: 42px; overflow: hidden; }
.dz_vmeta { display: block; margin-top: 6px; color: var(--tech-muted); font-size: 12px; }
.dz_vpage_nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0; color: var(--tech-muted); font-size: 13px; }
.dz_vpage_nav a { padding: 6px 16px; border: 1px solid var(--tech-line); border-radius: 999px; color: var(--tech-accent); }
@media (max-width: 900px) {
    .dz_vgrid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 全文搜索 ---------- */
.dz_sopage { margin: 16px auto 24px; }
.dz_so_form { display: flex; gap: 10px; margin-bottom: 14px; }
.dz_so_form input { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--tech-line-strong); border-radius: 10px; background: var(--tech-card); color: var(--tech-text); font-size: 14px; outline: none; }
.dz_so_form input:focus { border-color: var(--tech-accent); }
body.fmdm-dark .dz_so_form input { background: rgba(16,26,44,.88); }
.dz_so_form button { flex: 0 0 auto; padding: 0 22px; border: 0; border-radius: 10px; background: var(--tech-grad); color: #ffffff; font-size: 14px; cursor: pointer; }
.dz_so_stat { margin-bottom: 12px; color: var(--tech-muted); font-size: 13px; }
.dz_so_list { display: flex; flex-direction: column; gap: 10px; }
.dz_so_item { padding: 16px; background: var(--tech-card); border: 1px solid var(--tech-line); border-radius: var(--tech-radius); }
body.fmdm-dark .dz_so_item { background: rgba(16,26,44,.88); }
.dz_so_subject { display: block; color: var(--tech-text); font-size: 16px; font-weight: 600; line-height: 1.5; }
.dz_so_subject:hover { color: var(--tech-accent); }
.dz_so_excerpt { margin-top: 8px; color: var(--tech-muted); font-size: 13px; line-height: 1.7; }
.dz_so_subject em, .dz_so_excerpt em { color: var(--tech-accent); font-style: normal; font-weight: 700; }

/* ---------- 相册与动态相册工作室 ---------- */
.dz_album_grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin: 0; padding: 0; }
.dz_album_grid > li { width: auto !important; margin: 0 !important; padding: 0 0 12px !important; overflow: hidden; background: var(--tech-card); border: 1px solid var(--tech-line); border-radius: var(--tech-radius); }
body.fmdm-dark .dz_album_grid > li { background: rgba(16,26,44,.88); }
.dz_album_cover { position: relative; width: auto !important; height: auto !important; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tech-grad-soft); }
.dz_album_cover > a { display: block; width: 100%; height: 100%; }
.dz_album_cover img { display: block; width: 100%; height: 100%; max-width: none !important; max-height: none !important; padding: 0 !important; border: 0 !important; object-fit: cover; transition: transform .25s ease; }
.dz_album_grid > li:hover .dz_album_cover img { transform: scale(1.035); }
.dz_album_nopic { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--tech-muted); font-size: 13px; }
.dz_album_grid > li > p { margin: 8px 12px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dz_album_grid > li > span { display: block; margin: 6px 12px 0; color: var(--tech-muted); font-size: 12px; }
.dz_photo_grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.dz_photo_grid > li { width: auto !important; margin: 0 !important; padding: 0 !important; }
.dz_photo_link, .dz_photo_cover { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--tech-grad-soft); }
.dz_photo_link img, .dz_photo_cover img { display: block; width: 100%; height: 100%; max-width: none !important; max-height: none !important; padding: 0 !important; border: 0 !important; object-fit: cover; transition: transform .25s ease; }
.dz_photo_link:hover img { transform: scale(1.04); }
.dz_studio_launch { display: inline-block; margin: 0 12px 8px 0; padding: 7px 14px; border-radius: 999px; background: var(--tech-grad); color: #fff !important; font-size: 13px; font-weight: 600; }

.dz_studio { margin: 18px auto 30px; color: var(--tech-text); }
.dz_studio_head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.dz_studio_head h1 { margin: 0 0 5px; font-size: 24px; line-height: 1.3; }
.dz_studio_head p { margin: 0; color: var(--tech-muted); font-size: 13px; }
.dz_studio_back { flex: 0 0 auto; padding: 7px 13px; border: 1px solid var(--tech-line); border-radius: 999px; color: var(--tech-muted); font-size: 13px; }
.dz_studio_layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr); gap: 18px; align-items: start; }
.dz_studio_preview, .dz_studio_section, .dz_studio_photos { background: var(--tech-card); border: 1px solid var(--tech-line); border-radius: var(--tech-radius); }
body.fmdm-dark .dz_studio_preview, body.fmdm-dark .dz_studio_section, body.fmdm-dark .dz_studio_photos { background: rgba(16,26,44,.88); }
.dz_studio_preview { padding: 14px; }
.dz_studio_stage { display: flex; align-items: center; justify-content: center; min-height: 320px; overflow: hidden; border-radius: 12px; background: #090d16; }
.dz_studio_stage canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 68vh; }
.dz_studio_transport { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.dz_studio_transport input { flex: 1 1 auto; min-width: 0; }
.dz_studio_transport span { flex: 0 0 auto; color: var(--tech-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.dz_studio_primary, .dz_studio_musicsearch button, .dz_studio_download { padding: 8px 16px; border: 0; border-radius: 9px; background: var(--tech-grad); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.dz_studio_primary:disabled, .dz_studio_musicsearch button:disabled { opacity: .55; cursor: wait; }
.dz_studio_status { min-height: 20px; margin: 9px 0 0; color: var(--tech-muted); font-size: 12px; }
.dz_studio_panel { display: flex; flex-direction: column; gap: 12px; }
.dz_studio_section { padding: 15px; }
.dz_studio_section h2, .dz_studio_photos h2 { margin: 0 0 13px; font-size: 15px; font-weight: 700; }
.dz_studio_fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dz_studio_fields label, .dz_studio_file, .dz_studio_volume { display: flex; flex-direction: column; gap: 6px; color: var(--tech-muted); font-size: 12px; }
.dz_studio_titlefield, .dz_studio_check { grid-column: 1 / -1; }
.dz_studio_check { flex-direction: row !important; align-items: center; }
.dz_studio_panel select, .dz_studio_panel input[type="text"], .dz_studio_panel input[type="search"] { width: 100%; box-sizing: border-box; height: 36px; padding: 0 10px; border: 1px solid var(--tech-line-strong); border-radius: 8px; background: var(--tech-card); color: var(--tech-text); font-size: 13px; outline: none; }
body.fmdm-dark .dz_studio_panel select, body.fmdm-dark .dz_studio_panel input[type="text"], body.fmdm-dark .dz_studio_panel input[type="search"] { background: #101a2c; }
.dz_studio_panel select:focus, .dz_studio_panel input:focus { border-color: var(--tech-accent); }
.dz_studio_musicsearch { display: grid; grid-template-columns: 86px 1fr auto; gap: 7px; }
.dz_studio_musicsearch button { padding: 7px 12px; }
.dz_studio_musicresults { display: flex; flex-direction: column; gap: 5px; max-height: 220px; margin-top: 10px; overflow: auto; }
.dz_studio_musicresults button { width: 100%; padding: 8px 10px; border: 1px solid var(--tech-line); border-radius: 8px; background: transparent; color: var(--tech-text); text-align: left; cursor: pointer; }
.dz_studio_musicresults button:hover { border-color: var(--tech-accent); }
.dz_studio_musicresults small { color: var(--tech-muted); }
.dz_studio_musicname { margin-top: 10px; color: var(--tech-accent); font-size: 12px; }
.dz_studio_file { margin-top: 10px; }
.dz_studio_file input { max-width: 100%; color: var(--tech-muted); font-size: 11px; }
.dz_studio_volume { margin-top: 10px; }
.dz_studio_hint { margin: 9px 0 0; color: var(--tech-muted); font-size: 11px; line-height: 1.6; }
.dz_studio_exportbox { text-align: center; }
.dz_studio_exportbox .dz_studio_primary { width: 100%; padding: 11px; }
.dz_studio_exportbox progress { width: 100%; height: 8px; margin-top: 12px; accent-color: var(--tech-accent); }
.dz_studio_download { display: inline-block; margin-top: 12px; text-decoration: none; }
.dz_studio_download[hidden] { display: none; }
.dz_studio_photos { margin-top: 18px; padding: 15px; }
.dz_studio_photoshead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dz_studio_photoshead p { margin: 0 0 13px; color: var(--tech-muted); font-size: 12px; }
.dz_studio_photolist { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px; }
.dz_studio_photolist > * { min-width: 0; padding: 8px; border: 1px solid var(--tech-line); border-radius: 10px; background: transparent; }
.dz_studio_photolist img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.dz_studio_photolist button { padding: 4px 7px; border: 1px solid var(--tech-line); border-radius: 6px; background: transparent; color: var(--tech-text); cursor: pointer; }
.dz_studio_photolist label { display: block; margin-top: 7px; overflow: hidden; color: var(--tech-text); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.dz-studio-photo-state { display: block; margin-top: 5px; color: var(--tech-muted); font-size: 11px; }
.dz-studio-photo-actions { display: flex; gap: 6px; margin-top: 7px; }
@media (max-width: 900px) {
    .dz_studio_layout { grid-template-columns: 1fr; }
    .dz_studio_stage { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
    .dz_album_cover img, .dz_photo_link img, .dz_photo_cover img { transition: none; }
}

/* ---------- 实名认证 ---------- */
.dz_realname { padding: 28px 0 60px; }
.dz_rn_card {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px;
    background: var(--tech-card);
    border: 1px solid var(--tech-line);
    border-radius: var(--tech-radius);
    box-shadow: var(--tech-glow);
    backdrop-filter: blur(12px);
    color: var(--tech-text);
}
.dz_rn_head { padding-bottom: 22px; text-align: center; border-bottom: 1px dashed var(--tech-line); }
.dz_rn_tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--tech-grad-soft); color: var(--tech-accent); font-size: 12px; letter-spacing: 1px; }
.dz_rn_head h1 { margin: 14px 0 8px; color: var(--tech-text); font-size: 26px; font-weight: 700; }
.dz_rn_head p { margin: 0; color: var(--tech-muted); font-size: 14px; line-height: 1.8; }
.dz_rn_form { padding-top: 24px; }
.dz_rn_field { margin-bottom: 18px; }
.dz_rn_field label { display: block; margin-bottom: 8px; color: var(--tech-muted); font-size: 14px; }
.dz_rn_field input {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: var(--tech-input-bg);
    border: 1px solid var(--tech-line);
    border-radius: 10px;
    outline: none;
    color: var(--tech-text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.dz_rn_field input:focus { border-color: var(--tech-accent); box-shadow: 0 0 0 3px rgba(47,107,255,.14); }
.dz_rn_tip { margin: 4px 0 22px; color: var(--tech-muted); font-size: 13px; line-height: 1.7; }
.dz_rn_btn {
    display: block;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--tech-grad);
    box-shadow: 0 10px 24px rgba(47,107,255,.28);
    color: #fff;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}
.dz_rn_btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(47,107,255,.34); }
.dz_rn_status { padding-top: 24px; }
.dz_rn_ok {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--tech-grad-soft);
    border: 1px solid var(--tech-line);
    border-radius: 12px;
}
.dz_rn_ok_icon { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tech-grad); }
.dz_rn_ok_icon::after {
    content: '';
    position: absolute;
    left: 16px;
    top: 10px;
    width: 11px;
    height: 20px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(42deg);
}
.dz_rn_ok_text strong { display: block; margin-bottom: 4px; color: var(--tech-text); font-size: 17px; }
.dz_rn_ok_text p { margin: 0; color: var(--tech-muted); font-size: 13px; }
.dz_rn_info { margin: 20px 0 24px; overflow: hidden; border: 1px solid var(--tech-line); border-radius: 12px; }
.dz_rn_info_row { display: flex; justify-content: space-between; padding: 14px 18px; color: var(--tech-muted); font-size: 14px; border-bottom: 1px solid var(--tech-line); }
.dz_rn_info_row:last-child { border-bottom: 0; }
.dz_rn_info_row b { color: var(--tech-text); font-weight: 600; }
.dz_rn_back { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--tech-grad-soft); color: var(--tech-accent); font-size: 14px; }
@media (max-width: 640px) {
    .dz_realname { padding: 16px 12px 40px; }
    .dz_rn_card { padding: 22px 18px; }
    .dz_rn_head h1 { font-size: 22px; }
}

/* ---------- 已实名认证标识（头像角标 + 文字标签） ---------- */
.dz_rn_avatar_mark { position: relative; }
.dz_rn_avatar_mark::after {
    content: '✓';
    position: absolute;
    right: -2px;
    bottom: -2px;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    border: 2px solid var(--tech-card-solid);
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    pointer-events: none;
    z-index: 3;
}
.dz_rn_verify_badge {
    display: flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    margin: 6px auto 0;
    padding: 1px 8px;
    border: 1px solid rgba(22, 163, 74, .35);
    border-radius: 999px;
    background: rgba(22, 163, 74, .1);
    color: #15803d;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    vertical-align: middle;
}
.dz_rn_verify_badge .dz_rn_verify_ico {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 9px;
    line-height: 12px;
    text-align: center;
}
body.fmdm-dark .dz_rn_verify_badge {
    border-color: rgba(34, 197, 94, .4);
    background: rgba(34, 197, 94, .16);
    color: #4ade80;
}

/* 实名认证审核（前台） */
.dz_rn_audit_num{display:inline-block;min-width:16px;height:16px;margin-left:6px;padding:0 4px;border-radius:8px;background:#ef4444;color:#fff;font-size:11px;line-height:16px;text-align:center;vertical-align:middle;font-style:normal;}
.dz_rn_audit_list{display:flex;flex-direction:column;gap:12px;margin:18px 0;}
.dz_rn_audit_item{display:flex;gap:16px;align-items:center;padding:14px;border:1px solid var(--tech-line);border-radius:12px;background:var(--tech-card-solid);}
.dz_rn_audit_photo{flex:none;width:110px;height:110px;border:1px solid var(--tech-line);border-radius:10px;overflow:hidden;background:var(--tech-input-bg);display:flex;align-items:center;justify-content:center;}
.dz_rn_audit_photo img{display:block;width:100%;height:100%;object-fit:cover;}
.dz_rn_audit_nophoto{color:var(--tech-muted);font-size:12px;}
.dz_rn_audit_info{flex:1;min-width:0;}
.dz_rn_audit_row{display:flex;gap:10px;padding:4px 0;color:var(--tech-muted);font-size:13px;}
.dz_rn_audit_row span{flex:none;width:72px;}
.dz_rn_audit_row b{color:var(--tech-text);font-weight:600;word-break:break-all;}
.dz_rn_audit_row b a{color:var(--tech-accent);}
.dz_rn_audit_ops{flex:none;}
.dz_rn_audit_ops form{display:flex;flex-direction:column;gap:8px;}
.dz_rn_audit_ops .dz_rn_btn{width:auto;min-width:88px;height:36px;padding:0 18px;font-size:13px;letter-spacing:0;box-shadow:none;}
.dz_rn_audit_ops .dz_rn_btn_ok{background:#16a34a;box-shadow:0 6px 16px rgba(22,163,74,.24);}
.dz_rn_audit_ops .dz_rn_btn_no{background:var(--tech-input-bg);border:1px solid var(--tech-line-strong);color:var(--tech-muted);}
.dz_rn_audit_ops .dz_rn_btn_no:hover{color:var(--tech-text);}
.dz_rn_audit_empty{padding:46px 0;text-align:center;color:var(--tech-muted);font-size:14px;}
@media (max-width:640px){
.dz_rn_audit_item{flex-direction:column;align-items:stretch;}
.dz_rn_audit_photo{width:100%;height:200px;}
.dz_rn_audit_ops form{flex-direction:row;}
.dz_rn_audit_ops .dz_rn_btn{flex:1;}
}
