/* ============================================================
   会员话题模块 · 深蓝商务
   只作用于 /e/topic/，与会员中心、后台风格独立
   ============================================================ */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
    font:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Tahoma,sans-serif;
    font-size:13px;line-height:1.7;color:#1C2B3A;
    background:#F2F5F9;-webkit-font-smoothing:antialiased;
}
a{color:#1E5AA8;text-decoration:none}
a:hover{color:#14467F;text-decoration:none}
img{max-width:100%;border:0}

/* ---------- 顶栏 ---------- */
.tp-top{background:#FFFFFF;border-bottom:1px solid #E3E9F2}
.tp-top-inner{max-width:1200px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;gap:18px}
.tp-logo{font-size:20px;font-weight:700;color:#0C2340;letter-spacing:.5px}
.tp-logo span{color:#1E5AA8}
.tp-nav{flex:1}
.tp-nav a{padding:6px 14px;border-radius:6px;color:#5B6B7F;font-size:13px}
.tp-nav a:hover{background:#EEF4FC;color:#1E5AA8}
.tp-user{display:flex;align-items:center;gap:12px;font-size:12.5px;color:#5B6B7F}
.tp-user b{color:#1C2B3A;font-weight:700}
.tp-btn{
    display:inline-block;padding:6px 14px;border-radius:6px;border:0;cursor:pointer;
    background:linear-gradient(180deg,#2A6BBE,#1E5AA8);color:#fff;font-size:12.5px;font-weight:600;
    box-shadow:0 2px 6px rgba(30,90,168,.22);
}
.tp-btn:hover{background:linear-gradient(180deg,#1E5AA8,#14467F);color:#ccc;}
.tp-btn.ghost{background:#fff;color:#1E5AA8;border:1px solid #D6DEE9;box-shadow:none}
.tp-btn.ghost:hover{background:#EEF4FC}
.tp-btn.warn{background:linear-gradient(180deg,#c92a2a,#a61e1e)}
.tp-btn.mini{padding:4px 10px;font-size:12px}

.tp-accent{height:5px;background:linear-gradient(90deg,#c1d8f5,#1E5AA8)}
.tp-accent2{height:5px;background:linear-gradient(90deg,#1E5AA8,#c1d8f5)}

/* ---------- 主体 ---------- */
.tp-wrap{max-width:1200px;margin:20px auto 40px;padding:0 24px}
.tp-crumb{color:#8494A8;font-size:12.5px;margin-bottom:14px}
.tp-crumb a{color:#5B6B7F}
.tp-crumb a:hover{color:#1E5AA8}

.card{background:#fff;border:1px solid #E3E9F2;border-radius:10px;padding:18px 22px;margin-bottom:16px;box-shadow:0 1px 4px rgba(12,35,64,.04)}
.card + .card{margin-top:12px}
.card h2{font-size:17px;color:#0C2340;margin:0 0 12px}
.card h3{font-size:14px;color:#14467F;margin:0 0 10px}

/* ---------- 列表 ---------- */
.list-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.list-head h2{margin:0}
.list-head .count{margin-left:auto;color:#8494A8;font-size:12.5px}

.topic-row{display:block;padding:12px 14px;border-bottom:1px solid #EEF3FA;transition:background .15s}
.topic-row:last-child{border-bottom:0}
.topic-row:hover{background:#F7FAFD}
.topic-row .tl{display:flex;align-items:center;gap:8px;font-size:14.5px}
.topic-row .tl .title{flex:1;color:#1C2B3A;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topic-row .tl .title:hover{color:#1E5AA8}
.topic-row .meta{display:flex;gap:14px;margin-top:4px;color:#8494A8;font-size:12px}
.topic-row .meta b{color:#45566B}

.tag{display:inline-block;padding:2px 7px;border-radius:3px;font-size:11.5px;font-weight:600;letter-spacing:.3px}
.tag-top{background:#fff4e6;color:#c92a2a;border:1px solid #ffd8a8}
.tag-good{background:#ebfbee;color:#2b8a3e;border:1px solid #b2f2bb}
.tag-lock{background:#fff5f5;color:#a61e1e;border:1px solid #ffc9c9}
.tag-new{background:#e7f5ff;color:#1971c2;border:1px solid #a5d8ff}

/* ---------- 详情 ---------- */
.detail-head{border-bottom:1px solid #EEF3FA;padding-bottom:14px;margin-bottom:14px}
.detail-title{font-size:20px;color:#0C2340;margin:0 0 8px}
.detail-meta{color:#8494A8;font-size:12.5px;display:flex;gap:18px;flex-wrap:wrap;align-items:center}
.detail-meta b{color:#45566B}
.detail-body{font-size:14px;color:#2C3E55;line-height:1.8;padding:4px 0 6px}
.detail-body img{max-width:100%;border-radius:6px}
.detail-body p{margin:.4em 0}

.adminbar{margin-top:14px;padding:10px 14px;background:#FFF8E1;border:1px solid #FFE082;border-radius:6px;display:flex;gap:8px;flex-wrap:wrap}
.adminbar b{color:#856404;font-size:12.5px}

/* ---------- 回复 ---------- */
.reply{padding:14px 0;border-bottom:1px solid #F0F4FA}
.reply:last-child{border-bottom:0}
.reply .floor{color:#8494A8;font-size:12px;margin-bottom:4px}
.reply .floor b{color:#1E5AA8;font-weight:700}
.reply .rmeta{color:#8494A8;font-size:12px;margin:2px 0 4px}
.reply .rbody{font-size:13.5px;color:#2C3E55;line-height:1.75}
.reply .ract{margin-top:6px;display:flex;gap:8px}

/* ---------- 表单 ---------- */
.frow{margin-bottom:14px}
.frow label{display:block;font-size:13px;font-weight:600;color:#45566B;margin-bottom:5px}
.frow input[type=text],.frow textarea{
    width:100%;padding:9px 12px;border:1px solid #D6DEE9;border-radius:6px;background:#fff;
    font:13px/1.6 -apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:#1C2B3A;outline:none;
}
.frow input[type=text]:focus,.frow textarea:focus{border-color:#1E5AA8;box-shadow:0 0 0 3px rgba(30,90,168,.12)}
.frow .hint{color:#8494A8;font-size:12px;margin-top:4px}
.factions{display:flex;gap:10px;margin-top:6px}

/* ---------- 分页 ---------- */
.pager{margin:20px 0 8px;text-align:center;color:#5B6B7F;font-size:12.5px}
.pager a,.pager b{display:inline-block;padding:5px 10px;margin:0 2px;border-radius:5px;border:1px solid #D6DEE9;background:#fff;color:#45566B}
.pager a:hover{border-color:#1E5AA8;background:#EEF4FC;color:#1E5AA8;text-decoration:none}
.pager b{background:#1E5AA8;border-color:#1E5AA8;color:#fff;font-weight:600}

/* ---------- 空状态 ---------- */
.empty{text-align:center;padding:36px 18px;color:#8494A8}
.empty b{display:block;font-size:15px;color:#5B6B7F;margin-bottom:6px}

/* ---------- 消息 ---------- */
.msg{padding:10px 14px;border-radius:6px;font-size:13px;margin-bottom:12px}
.msg.ok{background:#ebfbee;color:#2b8a3e;border:1px solid #b2f2bb}
.msg.err{background:#fff5f5;color:#a61e1e;border:1px solid #ffc9c9}
.msg.info{background:#e7f5ff;color:#1971c2;border:1px solid #a5d8ff}

/* ---------- 登录引导 ---------- */
.guide-box{max-width:420px;margin:80px auto;background:#fff;border:1px solid #E3E9F2;border-radius:10px;padding:28px;text-align:center;box-shadow:0 4px 20px rgba(12,35,64,.06)}
.guide-box h2{color:#0C2340;margin:0 0 10px}
.guide-box p{color:#5B6B7F;margin-bottom:18px}

/* ---------- 后台页面（复用会员配色但更适合后台密集表格） ---------- */
.adm-topic{background:#F2F5F9;font:13px/1.7 -apple-system,"Segoe UI","Microsoft YaHei",Tahoma,sans-serif;color:#1C2B3A}
.adm-topic a{color:#1E5AA8}
.adm-topic table{border-collapse:collapse;width:100%;background:#fff;border:1px solid #E3E9F2;border-radius:6px;overflow:hidden;margin-bottom:10px}
.adm-topic th,.adm-topic td{padding:8px 10px;border-bottom:1px solid #EEF3FA;font-size:12.5px;text-align:left;vertical-align:middle}
.adm-topic th{background:#EEF3FA;color:#14467F;font-weight:600;border-bottom:1px solid #D6DEE9}
.adm-topic tr:hover td{background:#F7FAFD}
.adm-topic input[type=text],.adm-topic select{padding:5px 8px;border:1px solid #D6DEE9;border-radius:4px;background:#fff;font-size:12.5px}
.adm-topic input[type=submit],.adm-topic button,.adm-topic .btn{padding:5px 12px;background:linear-gradient(180deg,#2A6BBE,#1E5AA8);color:#fff;border:0;border-radius:4px;font-size:12.5px;cursor:pointer;text-decoration:none;display:inline-block}
.adm-topic input[type=submit]:hover,.adm-topic button:hover,.adm-topic .btn:hover{background:linear-gradient(180deg,#1E5AA8,#14467F)}
.adm-topic .btn.danger{background:linear-gradient(180deg,#c92a2a,#a61e1e)}
.adm-topic .btn.ghost{background:#fff;color:#1E5AA8;border:1px solid #D6DEE9}
.adm-topic .btn.ghost:hover{background:#EEF4FC}
.adm-topic form{display:inline}
.adm-topic .filter{display:flex;gap:10px;align-items:center;margin-bottom:12px;flex-wrap:wrap}
.adm-topic .filter label{color:#5B6B7F;font-size:12.5px}
.adm-topic .head{padding:10px 2px;margin-bottom:10px;border-bottom:1px solid #D6DEE9;display:flex;align-items:center;gap:10px}
.adm-topic .head h2{margin:0;font-size:16px;color:#0C2340}

/* ---------- 响应式 ---------- */
@media (max-width:820px){
    .tp-top-inner{flex-wrap:wrap;gap:10px}
    .tp-user{order:3;width:100%;justify-content:flex-start}
    .topic-row .tl{flex-wrap:wrap}
}

/* ============================================================
   登录门厅（login.php）
   页面正常显示 + 居中弹出登录窗口
   ============================================================ */
.lp-body{background:#0C2340;overflow:hidden}
.lp-page{
    position:fixed;inset:0;display:flex;align-items:center;justify-content:flex-start;
    padding:0 0 0 28vw;
    background:radial-gradient(1200px 600px at 20% 10%,#1E5AA8 0%,#123E66 42%,#0C2340 100%);
}
.lp-page::after{
    content:"";position:absolute;inset:0;pointer-events:none;
    background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
    background-size:44px 44px;
}
.lp-brand{position:relative;z-index:1;max-width:min(520px,40vw);padding:0;color:#fff;text-align:left}
.lp-logo{font-size:26px;font-weight:700;letter-spacing:1px;color:#fff;margin-bottom:18px}
.lp-logo span{color:#7FB6F0}
.lp-brand h1{font-size:32px;font-weight:600;letter-spacing:5px;margin:0 0 14px;color:#fff}
.lp-desc{color:#BFD3E8;font-size:14px;margin:0 0 26px}
.lp-points{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.lp-points li{
    padding:8px 16px;border:1px solid rgba(255,255,255,.18);border-radius:20px;
    background:rgba(255,255,255,.06);color:#D6E4F2;font-size:12.5px;
}

.lp-mask{
    position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:flex-end;
    padding-right:28vw;
    background:linear-gradient(90deg,rgba(6,20,36,0) 0%,rgba(6,20,36,0) 44%,rgba(6,20,36,.52) 100%);
}
.lp-modal{
    position:relative;width:380px;max-width:calc(100vw - 32px);
    background:#fff;border-radius:12px;padding:30px 30px 22px;
    box-shadow:0 24px 60px rgba(0,0,0,.35);
    animation:lpIn .22s ease-out;
}
@keyframes lpIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.lp-x{
    position:absolute;top:10px;right:14px;width:26px;height:26px;line-height:24px;text-align:center;
    color:#8494A8;font-size:20px;border-radius:50%;text-decoration:none;
}
.lp-x:hover{background:#F2F5F9;color:#1C2B3A}
.lp-modal h2{font-size:19px;color:#0C2340;margin:0 0 6px;letter-spacing:1px}
.lp-sub{color:#8494A8;font-size:12.5px;margin:0 0 20px}
.lp-row{margin-bottom:12px}
.lp-row input[type=text],.lp-row input[type=password]{
    width:100%;padding:11px 13px;border:1px solid #D6DEE9;border-radius:8px;
    font-size:13.5px;color:#1C2B3A;outline:none;background:#FBFCFE;transition:.15s;
}
.lp-row input[type=text]:focus,.lp-row input[type=password]:focus{border-color:#1E5AA8;background:#fff;box-shadow:0 0 0 3px rgba(30,90,168,.12)}
.lp-key{display:flex;gap:8px;align-items:center}
.lp-key input{flex:1}
.lp-key img{height:40px;border:1px solid #D6DEE9;border-radius:8px;cursor:pointer;background:#fff}
.lp-remember{display:flex;align-items:center;gap:6px;color:#5B6B7F;font-size:12.5px;margin:2px 0 18px;cursor:pointer}
.lp-submit{
    width:100%;padding:11px 0;border:0;border-radius:8px;cursor:pointer;
    background:linear-gradient(180deg,#2A6BBE,#1E5AA8);color:#fff;
    font-size:14px;font-weight:600;letter-spacing:3px;
    box-shadow:0 4px 12px rgba(30,90,168,.3);
}
.lp-submit:hover{background:linear-gradient(180deg,#1E5AA8,#14467F)}
.lp-foot{margin-top:16px;text-align:center;color:#C3CEDA;font-size:12px}
.lp-foot a{color:#5B6B7F}
.lp-foot a:hover{color:#1E5AA8}
.lp-foot span{margin:0 8px;color:#DDE5EE}
@media (max-width:900px){
    /* 窄屏放不下左文右窗，隐藏背景介绍，登录框居中 */
    .lp-page{display:none}
    .lp-mask{justify-content:center;padding:0 16px;background:rgba(6,20,36,.45)}
    .lp-modal{max-width:380px;width:100%}
}
@media (max-width:520px){
    .lp-brand h1{font-size:23px;letter-spacing:2px}
    .lp-points{flex-direction:column;align-items:center}
    .lp-modal{padding:26px 20px 18px}
}

/* ============================================================
   富文本编辑器（topic_editor）
   ============================================================ */
.tp-editor{border:1px solid #D6DEE9;border-radius:8px;background:#fff;overflow:hidden;transition:.15s}
.tp-editor:focus-within{border-color:#1E5AA8;box-shadow:0 0 0 3px rgba(30,90,168,.12)}
.tp-editor-bar{
    display:flex;flex-wrap:wrap;align-items:center;gap:2px;
    padding:6px 8px;background:#F7F9FC;border-bottom:1px solid #E3E9F2;
}
.tp-editor-bar button{
    min-width:28px;height:26px;padding:0 7px;border:1px solid transparent;border-radius:5px;
    background:transparent;color:#45566B;font-size:12px;line-height:24px;
    cursor:pointer;font-family:inherit;
}
.tp-editor-bar button:hover{background:#E8EFF9;color:#1E5AA8}
.tp-editor-bar button.on{background:#DCE9F8;color:#1E5AA8;border-color:#BBD4EF}
.tp-editor-bar .sep{width:1px;height:16px;background:#DDE5EE;margin:0 5px}
.tp-editor-body{
    padding:12px 14px;outline:none;overflow-y:auto;max-height:520px;
    font:13.5px/1.75 -apple-system,'Segoe UI','Microsoft YaHei',sans-serif;color:#1C2B3A;
}
.tp-editor-body:empty:before{content:attr(data-ph);color:#A9B7C6;pointer-events:none}
.tp-editor-body p{margin:0 0 10px}
.tp-editor-body h2{font-size:18px;color:#0C2340;margin:14px 0 8px}
.tp-editor-body h3{font-size:15.5px;color:#0C2340;margin:12px 0 6px}
.tp-editor-body ul,.tp-editor-body ol{margin:6px 0 10px;padding-left:22px}
.tp-editor-body blockquote{margin:8px 0;padding:8px 12px;border-left:3px solid #1E5AA8;background:#F2F5F9;color:#4A5A6E}
.tp-editor-body a{color:#1E5AA8}
.tp-editor-body img{max-width:100%;height:auto;border-radius:6px;margin:6px 0}
.tp-editor-input{display:none}

/* 详情正文 / 回复正文里的富文本元素 */
.detail-body h2,.rbody h2{font-size:18px;color:#0C2340;margin:16px 0 8px}
.detail-body h3,.rbody h3{font-size:15.5px;color:#0C2340;margin:12px 0 6px}
.detail-body ul,.detail-body ol,.rbody ul,.rbody ol{margin:6px 0 10px;padding-left:22px}
.detail-body blockquote,.rbody blockquote{
    margin:8px 0;padding:8px 12px;border-left:3px solid #1E5AA8;background:#F2F5F9;color:#4A5A6E;
}
.detail-body a,.rbody a{color:#1E5AA8}
.rbody img{max-width:100%;height:auto;border-radius:6px;margin:6px 0}

/* ============================================================
   轻提示（操作结果 toast）
   ============================================================ */
.tp-toast{
    position:fixed;top:22px;left:50%;z-index:9999;
    min-width:170px;max-width:80vw;padding:11px 22px;border-radius:8px;
    font-size:13.5px;line-height:1.5;text-align:center;color:#fff;
    background:#1E5AA8;box-shadow:0 8px 24px rgba(12,35,64,.28);
    opacity:0;pointer-events:none;
    transform:translateX(-50%) translateY(-12px);
    transition:opacity .2s ease,transform .2s ease;
}
.tp-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.tp-toast.ok{background:#1E5AA8}
.tp-toast.err{background:#C0392B}
