/* ==========================================================================
   ShowPost.php 帖子页单栏布局（仅本页加载；删掉本文件+去掉引用即回滚）
   ========================================================================== */

body { background: #eef1f5 !important; }

.bbswrap {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #24292f;
    text-align: left;
}
.bbswrap * { box-sizing: border-box; }
.bbswrap img { border: 0; }
.bbswrap a { color: #2f6fb2; }

/* ---------- 面包屑 + 搜索 ---------- */
.bbsnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    color: #6b7684;
}
.bbsnav .crumb { flex: 1 1 280px; min-width: 0; overflow-wrap: break-word; }
.bbsnav .crumb a { text-decoration: none; }
.bbsnav .crumb .sep { color: #b9c2cc; margin: 0 4px; }
.bbsnav .crumb .cur { color: #39424e; }
.bbsnav form { display: flex; gap: 6px; margin: 0; flex: 0 0 auto; }
.bbsnav input[name="content"] {
    width: 120px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #d7dde5;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}
.bbsnav input[type="submit"] {
    height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: #2f6fb2;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* ---------- 操作条 ---------- */
.bbsbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 12px 0 10px;
    font-size: 13px;
    color: #6b7684;
}
.bbsbtn {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    background: #2f6fb2;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.3;
}
.bbsbtn.ghost { background: #fff; border: 1px solid #cdd6e0; color: #33507a !important; }
.bbsbar-sp { flex: 1 1 auto; }
.bbsnp a { color: #6b7684; text-decoration: none; margin-left: 12px; }
.bbsviews b { color: #24292f; }

/* ---------- 标题 ---------- */
.bbstopic {
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    padding: 14px 16px 10px;
    margin-bottom: 10px;
}
.bbstopic h1 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    color: #1a1d21;
}
.bbstopic .tacts { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; }
.bbstopic .tacts a { color: #8a94a2; text-decoration: none; }

/* ---------- 楼层卡片 ---------- */
.bbsPost {
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    margin: 0 0 10px;
}
.phead {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: #fafbfc;
    border-bottom: 1px solid #eef1f5;
    border-radius: 11px 11px 0 0;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #e7ecf2;
    flex: 0 0 auto;
}
.pinfo { flex: 1 1 auto; min-width: 0; }
.pname {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1d21;
    line-height: 1.5;
}
.pname a { color: #1a1d21; text-decoration: none; }
.pname .lv {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #8a94a2;
}
.pname .lv img { width: 16px; height: 16px; vertical-align: middle; }
.pmeta { margin-top: 2px; font-size: 12px; color: #9aa3ae; line-height: 1.6; }
.pmeta span { white-space: nowrap; }
.pmeta span + span::before { content: "·"; margin: 0 5px; color: #ccd3dc; }
.floor {
    flex: 0 0 auto;
    padding: 2px 10px;
    border-radius: 999px;
    background: #e7ecf2;
    color: #5c6b7e;
    font-size: 12px;
    line-height: 1.7;
}
.floor.op { background: #2f6fb2; color: #fff; }

/* ---------- 正文 ---------- */
.pbody {
    padding: 16px;
    font-size: 16px;
    line-height: 1.85;
    color: #24292f;
    overflow-wrap: break-word;
    word-break: break-word;
}
.pbody p { margin: 0 0 .85em; font-size: 16px; line-height: 1.85; }
.pbody img { max-width: 100%; height: auto; }
.pbody blockquote {
    margin: 8px 0;
    padding: 6px 12px;
    border-left: 3px solid #d3dce6;
    background: #f7f9fb;
    color: #5a6675;
}
.pbody pre { overflow-x: auto; }

.psign {
    margin: 0 16px 12px;
    padding-top: 10px;
    border-top: 1px dashed #eceff3;
    font-size: 13px;
    line-height: 1.7;
    color: #98a1ac;
    overflow-wrap: break-word;
}

/* ---------- 楼层底栏 ---------- */
.pfoot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 10px 16px;
    background: #fafbfc;
    border-top: 1px solid #eef1f5;
    border-radius: 0 0 11px 11px;
    font-size: 13px;
    color: #9aa3ae;
}
.pfoot .ptime { margin-right: auto; }
.pfoot .pacts { display: flex; gap: 14px; }
.pfoot .pacts a { color: #4d6a8f; text-decoration: none; }
.pfoot .pacts a.reply { color: #2f6fb2; font-weight: 600; }

details.pmenu { position: relative; }
details.pmenu > summary {
    list-style: none;
    cursor: pointer;
    color: #6b7684;
    padding: 2px 9px;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
}
details.pmenu > summary::-webkit-details-marker { display: none; }
details.pmenu > summary::after { content: " ▾"; }
details.pmenu[open] > summary::after { content: " ▴"; }
details.pmenu .pmenu-body {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 20;
    margin-top: 6px;
    padding: 8px 10px;
    width: 230px;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(20, 35, 60, .12);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
details.pmenu .pmenu-body { gap: 6px; }
details.pmenu .pmenu-body a {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f3f6fa;
    color: #4d6a8f;
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none;
    white-space: nowrap;
}
details.pmenu .pmenu-body a:hover { background: #e6eef8; }

/* ---------- 分页 ---------- */
.bbspager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    font-size: 13px;
    color: #6b7684;
}
.bbspager #hailanpage { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.bbspager #hailanpage a,
.bbspager #hailanpage strong { margin: 0 !important; }
.bbspager .pglinks { margin-left: auto; }
.bbspager .pglinks a { color: #4d6a8f; text-decoration: none; margin-left: 12px; }

/* ---------- 快速回复 ---------- */
.bbsreplybox {
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
}
.rbhead {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #1a1d21;
    margin-bottom: 10px;
}
.rbhead .rbuser { margin-left: auto; font-size: 13px; font-weight: 400; color: #8a94a2; }
.rbhead .rbuser a { color: #8a94a2; }
/* 表情面板：默认收起，点“表情”才展开 */
.rbemos {
    display: none;
    margin-top: 10px;
    padding: 8px;
    background: #f7f9fb;
    border: 1px solid #eceff3;
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.rbemos.open { display: block; }
.emo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 4px;
}
.emo-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 6px;
}
.emo-grid a:hover { background: #e9f0f9; }
.emo-grid img { width: 24px; height: 24px; }
.rbemo-toggle.on { background: #e9f1fb; border-color: #9dbde0; color: #2f6fb2; }
.rbbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rbbtns input {
    height: 32px;
    padding: 0 14px;
    border: 1px solid #cdd6e0;
    border-radius: 6px;
    background: #fff;
    color: #33507a;
    font-size: 13px;
    cursor: pointer;
}
.rbbtns input[name="submit1"] { background: #2f6fb2; border-color: #2f6fb2; color: #fff; }
#hlEdit .edui-editor,
#hlEdit .edui-container,
#hlEdit .edui-iframe { max-width: 100% !important; }

/* ---------- 管理选项 ---------- */
.bbsmanage {
    padding: 10px 14px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    font-size: 12px;
    line-height: 2;
    color: #8a94a2;
}
.bbsmanage a { color: #4d6a8f; text-decoration: none; margin: 0 2px; }

/* ---------- 发新帖 / 编辑表单 ---------- */
.bbsform-card {
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    padding: 6px 16px 12px;
    margin-bottom: 10px;
}
.frow {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #eef1f5;
}
.frow:last-child { border-bottom: 0; }
.flabel {
    flex: 0 0 86px;
    padding-top: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #5c6b7e;
}
.fctrl { flex: 1 1 auto; min-width: 0; }
.ftitle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fsel {
    height: 38px;
    padding: 0 8px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    background: #fff;
    color: #39424e;
    font-size: 14px;
}
.ftopic {
    flex: 1 1 240px;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    font-size: 15px;
    color: #24292f;
    background: #fff;
}
.ftopic:focus, .fsel:focus {
    outline: none;
    border-color: #9dbde0;
    box-shadow: 0 0 0 3px rgba(47, 111, 178, .12);
}
.ficos { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ficos label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ficos img { height: 18px; vertical-align: middle; }
.fedittools { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; font-size: 13px; }
.fedittools a { color: #4d6a8f; text-decoration: none; }
.fedittools .rbemo-toggle {
    height: 30px;
    padding: 0 14px;
    border: 1px solid #cdd6e0;
    border-radius: 6px;
    background: #fff;
    color: #33507a;
    font-size: 13px;
    cursor: pointer;
}
.bbs-editor { max-width: 100%; }
.bbs-editor .edui-container,
.bbs-editor .edui-editor,
.bbs-editor .edui-iframe { max-width: 100% !important; }
.fcheck {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #39424e;
    cursor: pointer;
}
.fradios { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0; font-size: 14px; }
#adv textarea {
    width: 100%;
    min-height: 96px;
    padding: 8px 10px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}
.bbsmore { margin-bottom: 10px; }
.bbsmore > summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e1e6ec;
    border-radius: 10px;
    font-size: 13px;
    color: #4d6a8f;
}
.bbsmore > summary::-webkit-details-marker { display: none; }
.bbsmore > summary::after { content: " ▾"; }
.bbsmore[open] > summary { border-radius: 10px 10px 0 0; border-bottom: 0; }
.bbsmore[open] > summary::after { content: " ▴"; }
.bbsmore .bbsform-card { margin: 0 0 10px; border-radius: 0 0 12px 12px; }
.bbsmore .upfileFrame { height: 21px !important; border: 0; display: block; }
.fsubmit { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.fbtn {
    height: 40px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    background: #2f6fb2;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}
.fbtn.ghost { background: #fff; border: 1px solid #cdd6e0; color: #33507a; }

/* ---------- 手机 ---------- */
@media screen and (max-width: 640px) {
    .bbstopic { padding: 12px 12px 8px; }
    .bbstopic h1 { font-size: 17px; }
    .phead { padding: 10px 12px; gap: 8px; }
    .pbody { padding: 12px; font-size: 16px !important; }
    .pbody p { font-size: 16px !important; line-height: 1.85 !important; }
    .psign { margin: 0 12px 10px; }
    .pfoot { padding: 8px 12px; }
    .pfoot .pacts { width: 100%; justify-content: flex-end; }
    .bbsreplybox { padding: 10px 12px; }
    .bbsbar .bbsviews { display: none; }
    .bbsnav form { width: 100%; }
    .bbsnav input[name="content"] { flex: 1 1 auto; width: auto; }
    .bbsform-card { padding: 4px 12px 10px; }
    .frow { display: block; padding: 8px 0; }
    .flabel { flex: none; padding: 0 0 6px; font-size: 13px; }
    .ftopic { flex: 1 1 100%; }
    .fsel { flex: 1 1 auto; min-width: 0; max-width: 100%; }
    .fsubmit .fbtn { flex: 1 1 auto; padding: 0 16px; }
    .bbsmore .upfileFrame { height: 42px !important; }
}

/* ---------- 登录 / 验证密码 ---------- */
.loginpage {
    max-width: 400px;
    margin: 0 auto;
    padding: 14px 14px 44px;
}
.loginCrumb {
    font-size: 13px;
    color: #7b8698;
    margin: 2px 0 10px;
}
.loginCrumb a {
    color: #2f6fb2;
    text-decoration: none;
}
.loginCrumb span {
    margin: 0 4px;
    color: #b3bcc9;
}
.logincard {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 22px 20px;
    box-shadow: 0 8px 26px rgba(26, 45, 75, .08);
}
.logincard h1 {
    margin: 0 0 6px;
    font-size: 21px;
    color: #1a1d21;
    letter-spacing: .5px;
}
.loginSub {
    margin: 0 0 20px;
    font-size: 13px;
    color: #7b8698;
    line-height: 1.7;
}
.lf {
    display: block;
    margin-bottom: 14px;
}
.lf span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #4a5568;
}
.lf input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid #d9e1ea;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 16px;
    color: #1a1d21;
    outline: none;
    -webkit-appearance: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.lf input:focus {
    border-color: #4f8fd8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 143, 216, .13);
}
.lfopt {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 4px 0 18px;
    font-size: 13px;
    color: #5c6879;
}
.lfopt label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.lfopt input {
    width: 16px;
    height: 16px;
    margin: 0;
}
.lfbtn {
    display: block;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #2f6fb2;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
}
.lfbtn:hover { background: #2a649f; }
.lfbtn:active { background: #24588c; }
.lflinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 16px;
    font-size: 13px;
}
.lflinks a {
    color: #2f6fb2;
    text-decoration: none;
}
.loginAlt {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef1f5;
    text-align: center;
}
.loginAlt a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #3f6fa5;
    text-decoration: none;
}
.loginAlt img {
    height: 24px;
    width: auto;
}

@media screen and (max-width: 640px) {
    .loginpage { padding: 10px 12px 36px; }
    .logincard {
        padding: 20px 16px 16px;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(26, 45, 75, .07);
    }
    .logincard h1 { font-size: 19px; }
    .lf input { height: 44px; }
    .lfbtn { height: 46px; }
}

/* ---------- 控制面板 ---------- */
.cpwrap { padding-bottom: 24px; }
.cptabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}
.cptabs a {
    display: inline-block;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #33507a;
    font-size: 13px;
    text-decoration: none;
}
.cptabs a:hover { border-color: #9dbde0; color: #2f6fb2; }
.cptabs a.on { background: #2f6fb2; border-color: #2f6fb2; color: #fff; }
.cpgrid {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.cpcol-l { flex: 0 0 284px; width: 284px; min-width: 0; }
.cpcol-r { flex: 1 1 auto; min-width: 0; }
.cpcard {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}
.cpcard h3 {
    margin: 0;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #33507a;
    background: #f7f9fc;
    border-bottom: 1px solid #eef1f5;
}
.cpbody { padding: 14px; }
.cpavatar { text-align: center; }
.cpavatar img { max-width: 120px; max-height: 120px; border-radius: 10px; }
.cpnoimg {
    width: 90px;
    height: 90px;
    line-height: 90px;
    margin: 0 auto;
    border-radius: 50%;
    background: #eef3f9;
    color: #94a3b8;
    font-size: 12px;
}
.cpname { margin-top: 10px; font-size: 16px; font-weight: 600; color: #1a1d21; }
.cplevel { margin-top: 4px; font-size: 13px; color: #7b8698; }
.cpstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.cpstats > div {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 13px;
    border-bottom: 1px dashed #f0f3f7;
    padding-bottom: 5px;
}
.cpstats span { color: #7b8698; white-space: nowrap; }
.cpstats b {
    color: #1a1d21;
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cpmsgnums { display: flex; gap: 12px; }
.cpmsgnums a {
    flex: 1 1 0;
    display: block;
    text-align: center;
    padding: 12px 8px;
    background: #f7f9fc;
    border-radius: 10px;
    text-decoration: none;
}
.cpmsgnums b { display: block; font-size: 22px; color: #2f6fb2; line-height: 1.2; }
.cpmsgnums span { font-size: 12px; color: #7b8698; }
.cpmsg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #f1f4f8;
    font-size: 14px;
}
.cpmsg:first-of-type { border-top: 0; }
.cpmsg .who {
    flex: 0 0 84px;
    color: #2f6fb2;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cpmsg .txt {
    flex: 1 1 auto;
    min-width: 0;
    color: #4a5568;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cpmsg .tm { flex: 0 0 auto; font-size: 12px; color: #94a3b8; }
.cplink {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #f1f4f8;
    font-size: 14px;
    color: #2f6fb2;
    text-decoration: none;
}
.cplink:first-of-type { border-top: 0; }
.cplink .tt {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cplink .tm { flex: 0 0 auto; font-size: 12px; color: #94a3b8; }
.cpempty { padding: 18px 14px; text-align: center; color: #94a3b8; font-size: 13px; }

@media screen and (max-width: 640px) {
    .cptabs { gap: 6px; }
    .cptabs a { padding: 6px 11px; font-size: 12px; }
    .cpgrid { display: block; }
    .cpcol-l { width: auto; flex: none; }
    .cpmsg { flex-wrap: wrap; gap: 4px 8px; }
    .cpmsg .who { flex: 0 0 auto; }
    .cpmsg .tm { margin-left: auto; }
    .cpmsg .txt { flex: 1 1 100%; order: 3; white-space: normal; }
    .cplink { flex-wrap: wrap; }
    .cplink .tm { margin-left: auto; }
}

/* ---------- 资料编辑表单 ---------- */
.cfrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f3f7;
}
.cfrow:last-child { border-bottom: 0; }
.cflabel {
    flex: 0 0 96px;
    text-align: right;
    font-size: 13px;
    color: #4a5568;
}
.cfrow input[type=text],
.cfrow input[type=password] {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 11px;
    box-sizing: border-box;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #fbfcfe;
    font-size: 15px;
    color: #1a1d21;
    outline: none;
}
.cfrow select {
    height: 40px;
    padding: 0 8px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #fbfcfe;
    font-size: 15px;
    color: #1a1d21;
    outline: none;
}
.cfrow input:focus,
.cfrow select:focus,
.cfrow textarea:focus {
    border-color: #4f8fd8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 143, 216, .12);
}
.cfrow input.cfmini { flex: 0 0 90px; }
.cfrow .cfhint {
    flex: 0 0 auto;
    font-size: 12px;
    color: #94a3b8;
}
.cfavatar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cfavatar img {
    border-radius: 6px;
    background: #f0f4f9;
}
.cplinkbtn {
    font-size: 13px;
    color: #2f6fb2;
    text-decoration: none;
}
.cfblock {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f3f7;
}
.cfblock .cflabel {
    display: block;
    text-align: left;
    margin-bottom: 6px;
}
.cfblock textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #fbfcfe;
    font-size: 15px;
    line-height: 1.7;
    color: #1a1d21;
    outline: none;
    resize: vertical;
}
.cfg2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.cpradio {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 14px;
    color: #334155;
}
.cpradio label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.cpradio input {
    width: 16px;
    height: 16px;
    margin: 0;
}
.cpactions {
    padding: 16px 14px;
    text-align: center;
}
.cpbtn {
    display: inline-block;
    min-width: 180px;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: #2f6fb2;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 46px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.cpbtn:hover { background: #2a649f; }
.cpbtn,
.cpbtn:link,
.cpbtn:visited,
.cpbtn:hover { color: #fff; }
.cpbtn.sm {
    min-width: 0;
    height: 34px;
    line-height: 34px;
    padding: 0 14px;
    font-size: 13px;
}
.cpbind {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f3f7;
    font-size: 14px;
    color: #334155;
}
.cpbind:last-child { border-bottom: 0; }

@media screen and (max-width: 640px) {
    .cfg2 { grid-template-columns: 1fr; gap: 0; }
    .cfrow {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 6px 10px;
    }
    .cflabel {
        flex: 1 1 100%;
        text-align: left;
        color: #7b8698;
    }
    .cfrow .cfhint { flex: 1 1 100%; }
    .cfrow input.cfmini { flex: 1 1 auto; }
    .cpbtn { width: 100%; }
    .cpbtn.sm { width: auto; }
}

/* ---------- 好友列表 ---------- */
.fritem {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr 78px 84px;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-top: 1px solid #f1f4f8;
    font-size: 14px;
}
.fritem:first-child { border-top: 0; }
.frname {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    min-width: 0;
}
.frname a {
    color: #2f6fb2;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.frstate {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 1px 7px;
    border-radius: 999px;
}
.frstate.on { background: #e8f6ec; color: #1a7f37; }
.frstate.off { background: #f1f3f6; color: #94a3b8; }
.frmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    min-width: 0;
    font-size: 13px;
    color: #7b8698;
}
.frmeta a {
    color: #7b8698;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.frmeta a:hover { color: #2f6fb2; }
.frmsg a { font-size: 13px; color: #2f6fb2; text-decoration: none; }
.frpick {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7b8698;
    cursor: pointer;
}
.frpick input { width: 16px; height: 16px; margin: 0; }
.cpbtn.danger { background: #c0392b; }
.cpbtn.danger:hover { background: #a93226; }

@media screen and (max-width: 640px) {
    .fritem {
        grid-template-columns: 1fr auto;
        gap: 6px 10px;
    }
    .frname { grid-column: 1; }
    .frpick { grid-column: 2; justify-self: end; }
    .frmeta { grid-column: 1 / -1; order: 3; }
    .frmsg { grid-column: 1 / -1; order: 4; }
}

/* ---------- 短消息 ---------- */
.msgtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 12px;
}
.msgtabs > a:not(.cpbtn) {
    padding: 7px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #33507a;
    font-size: 13px;
    text-decoration: none;
}
.msgtabs > a:not(.cpbtn).on {
    background: #2f6fb2;
    border-color: #2f6fb2;
    color: #fff;
}
.msgtabs .msgsp { flex: 1 1 auto; }
.msgitem {
    padding: 12px 14px;
    border-top: 1px solid #f1f4f8;
}
.msgitem:first-child { border-top: 0; }
.msgwho {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    font-size: 13px;
}
.msgwho a {
    color: #2f6fb2;
    text-decoration: none;
    font-weight: 600;
}
.msgtime {
    margin-left: auto;
    font-size: 12px;
    color: #94a3b8;
}
.msgbody {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
    word-break: break-word;
}
.msgbody img { max-width: 100%; height: auto; }
.msgact {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    font-size: 13px;
}
.msgact a { color: #2f6fb2; text-decoration: none; }
.msgact a.del { color: #c0392b; }

/* ---------- 用户资料 ---------- */
.profhero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.profava { flex: 0 0 auto; }
.profava img {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    background: #eef3f9;
}
.profava .cpnoimg { width: 84px; height: 84px; line-height: 84px; }
.profinfo { flex: 1 1 auto; min-width: 0; }
.profname {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 20px;
    font-weight: 700;
    color: #1a1d21;
}
.profsex {
    font-size: 12px;
    font-weight: 400;
    color: #7b8698;
    background: #f1f4f8;
    padding: 1px 8px;
    border-radius: 999px;
}
.profsub {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 4px;
    font-size: 13px;
    color: #7b8698;
}
.proftags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.proftags a {
    padding: 5px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    color: #33507a;
    background: #fbfcfe;
    text-decoration: none;
}
.proftags a:hover { border-color: #9dbde0; color: #2f6fb2; }
.proffig { text-align: center; }
.proffig img { max-width: 100%; height: auto; border-radius: 10px; }
.proftxt {
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
    white-space: pre-line;
}
.cpstats b a { color: #2f6fb2; text-decoration: none; }

/* ---------- 版块主题列表 ---------- */
.fnotice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    font-size: 14px;
    overflow: hidden;
}
.fnotice a {
    color: #2f6fb2;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fnlabel {
    flex: 0 0 auto;
    font-size: 12px;
    color: #b45309;
    background: #fff4e5;
    padding: 1px 8px;
    border-radius: 999px;
}
.fonline {
    padding: 0 4px 10px;
    font-size: 12px;
    color: #94a3b8;
}
.fonline b { color: #4a5568; }
.ffilters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.ffilters > a {
    padding: 5px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #33507a;
    font-size: 12px;
    text-decoration: none;
}
.ffilters > a.on {
    background: #2f6fb2;
    border-color: #2f6fb2;
    color: #fff;
}
.fmods {
    margin-left: auto;
    font-size: 12px;
    color: #7b8698;
}
.fmods a { color: #2f6fb2; text-decoration: none; }
.ftopic {
    display: block;
    height: auto !important;
    min-height: 64px;
    box-sizing: border-box;
    padding: 11px 14px !important;
    border-top: 1px solid #f1f4f8;
    line-height: 1.6;
}
.ftopic:first-child { border-top: 0; }
.ftopic::after { content: ""; display: block; clear: both; }
.fticon {
    float: left;
    margin: 3px 8px 0 0;
}
.fticon img { display: block; max-width: 18px; height: auto; }
.ftmain { display: block; height: auto; min-width: 0; }
.fttitle {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
    font-size: 15px;
}
.fttitle .ftlink {
    color: #1f2d3d;
    font-weight: 500;
    text-decoration: none;
}
.fttitle .ftlink:hover { color: #2f6fb2; }
.ftplus {
    width: 11px;
    height: 11px;
    opacity: .6;
    cursor: pointer;
}
.ftbadge {
    font-size: 11px;
    line-height: 17px;
    padding: 0 6px;
    border-radius: 999px;
}
.ftbadge.good { background: #fff1e6; color: #c2410c; }
.ftbadge.mine { background: #eaf2fd; color: #2f6fb2; }
.ftbadge.new { background: #e8f6ec; color: #1a7f37; }
.ftmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 3px;
    font-size: 12px;
    color: #94a3b8;
}
.ftmeta a { color: #7b8698; text-decoration: none; }
.ftmeta a:hover { color: #2f6fb2; }
.ftlast {
    flex: 0 0 120px;
    text-align: right;
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
}
.ftlast a { color: #7b8698; text-decoration: none; }
.ftpages a { font-size: 12px; color: #2f6fb2; text-decoration: none; }
.ftfollow {
    background: #fafbfd;
    border-top: 1px solid #f1f4f8;
}
.ftfollow-in { padding: 10px 14px; font-size: 13px; color: #7b8698; }
.fsubtable { width: 100%; border-collapse: collapse; }
.fpagerbar { margin-top: 10px; }
.fcount { font-size: 12px; color: #7b8698; }
.fcount b { color: #4a5568; }

@media screen and (max-width: 640px) {
    .ftopic { flex-wrap: wrap; gap: 6px 8px; }
    .ftmain { flex: 1 1 0; }
    .ftlast {
        flex: 1 1 100%;
        padding-left: 28px;
        text-align: left;
        font-size: 12px;
    }
    .fttitle { font-size: 14px; }
    .fmods { flex: 1 1 100%; margin-left: 0; }
    .bbsbar { flex-wrap: wrap; }
}

@media screen and (max-width: 640px) {
    .profhero { gap: 12px; padding: 14px; }
    .profava img { width: 64px; height: 64px; }
    .profava .cpnoimg { width: 64px; height: 64px; line-height: 64px; }
    .profname { font-size: 18px; }
}

/* ---------- 网络日志 ---------- */
.bloggrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: start;
}
.blogpost h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1d21;
}
.blogmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}
.blogmeta a { color: #7b8698; text-decoration: none; }
.bloghide { color: #c0392b; }
.blogbody {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
}
.blogbody img { max-width: 100%; height: auto; }
.blogfoot {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f4f8;
    font-size: 13px;
}
.blogfoot a { color: #2f6fb2; text-decoration: none; }
.blogfoot a.del { color: #c0392b; }
.blogfoot .off { color: #c7cdd6; }
.bloglist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bloglist li {
    padding: 7px 0;
    border-top: 1px dashed #eef2f7;
    font-size: 13px;
    line-height: 1.6;
}
.bloglist li:first-child { border-top: 0; }
.bloglist a { color: #33507a; text-decoration: none; }
.bloglist a:hover { color: #2f6fb2; }
.bloglist .bd {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}

@media screen and (max-width: 820px) {
    .bloggrid { grid-template-columns: 1fr; }
}

/* ---------- 上传头像 ---------- */
.cpfaces {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cpfacecur {
    flex: 0 0 auto;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}
.cpfacecur img {
    display: block;
    width: 96px;
    height: 96px;
    margin-top: 6px;
    border-radius: 14px;
    object-fit: cover;
    background: #eef3f9;
}
.cpfacecur .cpnoimg {
    width: 96px;
    height: 96px;
    line-height: 96px;
    margin-top: 6px;
}
.cpfaceup {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.cpfaceup label { font-size: 13px; color: #7b8698; }
.cpfaceup input[type="file"] { font-size: 13px; }
.cpfaceurl {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.cpfaceurl input {
    flex: 1 1 240px;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2d3d;
    background: #fbfcfe;
    outline: none;
}
.cpfaceurl input:focus {
    border-color: #7fa9d8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 111, 178, .12);
}
.cphelp {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
}

/* ---------- 上传照片 ---------- */
.cpphotos {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.cpphotocur {
    flex: 0 0 auto;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}
.cpphotocur img {
    display: block;
    max-width: 180px !important;
    max-height: 200px !important;
    margin-top: 6px;
    border-radius: 12px;
    background: #eef3f9;
}
.cpphotocur .cpnoimg {
    width: 150px;
    height: 110px;
    line-height: 110px;
    margin-top: 6px;
}

/* ---------- 社区日志 / 日历 ---------- */
.navlinks {
    display: flex;
    gap: 12px;
    font-size: 13px;
}
.navlinks a { color: #2f6fb2; text-decoration: none; }
.calwrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    align-items: start;
}
.calhead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    font-size: 14px;
    color: #334155;
}
.caldate { font-weight: 600; color: #1a1d21; }
.calpick select {
    height: 30px;
    padding: 0 4px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: #334155;
}
.calgrid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    table-layout: fixed;
}
.calweek td {
    padding: 2px 0;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}
.calgrid tr:not(.calweek) td {
    height: 54px;
    padding: 5px 2px;
    text-align: center;
    vertical-align: top;
    background: #fbfcfe;
    border: 1px solid #f1f4f8;
    border-radius: 10px;
}
.calgrid td font {
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}
.calgrid td br + font {
    font-size: 11px !important;
    color: #94a3b8;
}
.calgrid td a { color: #1f2d3d; text-decoration: none; }
.calclock { display: none; }
.calday {
    margin: 2px 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1d21;
}
.calform { margin: 0; }
.cfrow {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid #f1f4f8;
}
.cfrow:first-of-type { border-top: 0; }
.cfrow label {
    padding-top: 11px;
    font-size: 13px;
    color: #7b8698;
}
.calctl { display: flex; gap: 10px; flex-wrap: wrap; }
.calinput {
    flex: 1 1 240px;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 14px;
    color: #1f2d3d;
    outline: none;
}
.calinput:focus {
    border-color: #7fa9d8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 111, 178, .12);
}
.calselect {
    height: 40px;
    padding: 0 8px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    color: #334155;
}
.caleditor { min-width: 0; }
.calbtns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f4f8;
}

@media screen and (max-width: 820px) {
    .calwrap { grid-template-columns: 1fr; }
    .cfrow { grid-template-columns: 1fr; gap: 6px; }
    .cfrow label { padding-top: 0; }
    .calgrid tr:not(.calweek) td { height: 46px; }
    .calgrid td font { font-size: 13px !important; }
}

/* ---------- 会员列表 ---------- */
.uthead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
}
.utsearch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.utsearch input[type="text"] {
    width: 150px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dfe5ee;
    border-radius: 9px;
    background: #fbfcfe;
    font-size: 14px;
    outline: none;
}
.utsearch select {
    height: 38px;
    padding: 0 6px;
    border: 1px solid #dfe5ee;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    color: #334155;
}
.utsearch .cpbtn { height: 38px; padding: 0 16px; font-size: 13px; }
.utreset { font-size: 12px; color: #7b8698; text-decoration: none; }
.utabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 0 10px;
    border-top: 1px solid #f1f4f8;
    padding-top: 10px;
}
.utabs a {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #e3e9f1;
    background: #fff;
    font-size: 12px;
    color: #5b6b7c;
    text-decoration: none;
}
.utabs a.on {
    background: #2f6fb2;
    border-color: #2f6fb2;
    color: #fff;
}
.utlist {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #f1f4f8;
}
.utrow {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eef2f7;
}
.utname {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
}
.utname a { color: #2f5f9e; text-decoration: none; }
.uthome {
    font-size: 11px !important;
    font-weight: 400;
    color: #94a3b8 !important;
}
.utmeta {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    color: #334155;
}
.utmeta span { display: flex; flex-direction: column; min-width: 0; }
.utmeta i {
    font-style: normal;
    font-size: 11px;
    color: #9aa7b5;
}
.utmeta b {
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.utmsg {
    flex: 0 0 auto;
    padding: 4px 12px;
    border: 1px solid #d7e3f1;
    border-radius: 999px;
    background: #f4f8fd;
    font-size: 12px;
    color: #2f6fb2;
    text-decoration: none;
    white-space: nowrap;
}

@media screen and (max-width: 820px) {
    .utrow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
    .utmeta { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
}

/* ---------- 管理团队 ---------- */
.adgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.admhead {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admface {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef3f9;
}
.admnoimg {
    display: inline-block;
    background: #e6edf6;
}
.admwho { flex: 1 1 auto; min-width: 0; }
.admname a {
    font-size: 15px;
    font-weight: 600;
    color: #1a1d21;
    text-decoration: none;
}
.admlv {
    margin-top: 2px;
    font-size: 12px;
    color: #94a3b8;
}
.admacts { display: flex; gap: 6px; flex: 0 0 auto; }
.admacts a {
    padding: 3px 10px;
    border: 1px solid #d7e3f1;
    border-radius: 999px;
    background: #f4f8fd;
    font-size: 12px;
    color: #2f6fb2;
    text-decoration: none;
    white-space: nowrap;
}
.admstats { margin-top: 10px; }
.admtxt { margin-top: 8px; font-size: 13px; }
.admfoot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
}
.admfoot a { color: #7b8698; text-decoration: none; word-break: break-all; }
.admfig img {
    max-width: 160px !important;
    max-height: 160px !important;
    margin-top: 8px;
    border-radius: 10px;
    background: #eef3f9;
}

@media screen and (max-width: 820px) {
    .adgrid { grid-template-columns: 1fr; }
    .admacts { flex-direction: column; }
}

/* ---------- 使用帮助 ---------- */
.helpgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.helplink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid #e6ecf4;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 14px;
    color: #33507a;
    text-decoration: none;
}
.helplink span { font-size: 12px; color: #9aa7b5; }
.helplink:hover { border-color: #b9d2ec; background: #f4f8fd; }
.helpwrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.helpmenu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #5b6b7c;
    text-decoration: none;
}
.helpmenu a.on {
    background: #eaf2fb;
    color: #2f6fb2;
    font-weight: 600;
}
.helpsec { min-width: 0; overflow-x: auto; }
.helpsec table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse !important;
    background: #fff !important;
}
.helpsec td {
    padding: 8px 10px !important;
    border: 0 !important;
    background: #fff !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #334155;
}
.helpsec td.a1 {
    background: #f4f7fb !important;
    border-radius: 6px !important;
    font-weight: 600;
}
.helpsec table table td { font-size: 13px !important; }
.helpsec img { max-width: 100% !important; height: auto !important; }
.helpsec font { font-family: inherit !important; }
.helpsec marquee { max-width: 100%; }
.helpsec input[name="content"] { width: 100%; max-width: 420px; }
@media screen and (max-width: 820px) {
    .helpgrid { grid-template-columns: 1fr; }
    .helpwrap { grid-template-columns: 1fr; }
    .helpmenu .cpbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .helpsec table.helpscroll { min-width: 560px; }
    .helpsec td { padding: 6px 8px !important; font-size: 13px !important; }
}

/* ---------- 收藏夹 ---------- */
.cpcount {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}
.cpempty { padding: 14px 0; font-size: 13px; color: #94a3b8; }
.favlist { margin: 0; padding: 0; list-style: none; }
.favrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "title time del" "meta meta meta";
    gap: 4px 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eef2f7;
    font-size: 14px;
}
.favrow:last-child { border-bottom: 0; }
.fav-title {
    grid-area: title;
    color: #2f5f9e;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}
.fav-title:hover { text-decoration: underline; }
.fav-new {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 6px;
    background: #e8342a;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    vertical-align: 2px;
}
.fav-meta { grid-area: meta; font-size: 12px; color: #7b8698; }
.fav-time { grid-area: time; font-size: 12px; color: #94a3b8; white-space: nowrap; }
.fav-del { grid-area: del; font-size: 12px; color: #c0392b; text-decoration: none; white-space: nowrap; }
.favforum { display: block; position: relative; padding-right: 54px; }
.favforum .fav-meta { display: block; margin-top: 4px; }
.favforum .fav-del { position: absolute; top: 12px; right: 0; }
.favadd {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f4f8;
    font-size: 13px;
    color: #7b8698;
}
.favadd-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.favadd-row input[type="text"] {
    flex: 1 1 180px;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dfe5ee;
    border-radius: 9px;
    background: #fbfcfe;
    font-size: 13px;
    outline: none;
}
.favadd-row .cpbtn { height: 38px; }
@media screen and (max-width: 820px) {
    .favrow {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "title del" "meta meta" "time time";
    }
    .favforum { padding-right: 54px; }
}

/* ---------- 社区配偶 ---------- */
.fav-acts { grid-area: del; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.spouse { display: flex; gap: 14px; align-items: flex-start; }
.spouse-photo {
    flex: 0 0 auto;
    max-width: 160px !important;
    max-height: 200px !important;
    border-radius: 10px;
    background: #eef3f9;
}
.spouse-info { flex: 1 1 auto; min-width: 0; }
.spouse-name { font-size: 17px; font-weight: 600; color: #1a1d21; }
.spouse-name a { color: #2f5f9e; text-decoration: none; }
.spouse-sex {
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef3f9;
    font-size: 12px;
    font-weight: 400;
    color: #5b6b7c;
    vertical-align: 2px;
}
.spouse-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #334155;
}
.spouse-meta span { display: flex; flex-direction: column; min-width: 0; }
.spouse-meta i { font-style: normal; font-size: 11px; color: #9aa7b5; }
.spouse-meta b { font-weight: 400; }
.spouse-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f7f9fc;
    font-size: 13px;
    color: #5b6b7c;
    line-height: 1.7;
}
.spouse-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.spouse-btn {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid #2f6fb2;
    border-radius: 999px;
    background: #2f6fb2;
    color: #fff !important;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}
.spouse-btn.ghost { background: #fff; border-color: #d7e3f1; color: #2f6fb2 !important; }
.spouse-btn.danger { background: #fff; border-color: #efc9c4; color: #c0392b !important; }
.spouse-form .cfrow { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; }
.spouse-form label { font-size: 13px; color: #5b6b7c; padding-top: 9px; }
.spouse-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dfe5ee;
    border-radius: 9px;
    background: #fbfcfe;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
}
.spouse-form .cffoot { display: flex; gap: 10px; padding-top: 10px; }
@media screen and (max-width: 640px) {
    .spouse { flex-direction: column; }
    .spouse-photo { max-width: 140px !important; }
    .spouse-form .cfrow { grid-template-columns: 1fr; gap: 4px; }
    .spouse-form label { padding-top: 0; }
    .spouse-form .cffoot .cpbtn { flex: 1 1 0; width: auto; min-width: 0; }
}

/* ---------- 注册 ---------- */
.regsteps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.regsteps span {
    padding: 5px 14px;
    border: 1px solid #e3e9f1;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    color: #94a3b8;
}
.regsteps span.done { border-color: #d7e3f1; color: #2f6fb2; }
.regsteps span.on { border-color: #2f6fb2; background: #2f6fb2; color: #fff; }
.regface {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px dashed #dde6f1;
    border-radius: 10px;
    background: #fbfcfe;
}
.regface-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}
.regface-sel {
    height: 38px;
    padding: 0 8px;
    border: 1px solid #dfe5ee;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    color: #334155;
    margin-left: 6px;
}
.regface-all { font-size: 12px; color: #2f6fb2; text-decoration: none; }
.regface-ctrl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.regform .cfrow { grid-template-columns: 96px minmax(0, 1fr); }
.regform .cfrow > label { padding-top: 11px; font-size: 13px; color: #7b8698; }
.regform .cfctrl input[type="text"],
.regform .cfctrl input[type="password"],
.regform .cfctrl select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 14px;
    color: #1f2d3d;
    outline: none;
    box-sizing: border-box;
}
.regform .cfctrl input:focus,
.regform .cfctrl select:focus,
.regform .cfctrl textarea:focus {
    border-color: #7fa9d8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 111, 178, .12);
}
.regform .cfctrl input.readonly { background: #f1f4f8; color: #94a3b8; }
.regform textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}
.regform .cfhelp { margin-top: 6px; font-size: 12px; color: #94a3b8; line-height: 1.6; }
.regform .cffoot { padding-top: 14px; text-align: center; }
.regtags { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.regtags label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid #e6ecf4;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: #5b6b7c;
    cursor: pointer;
}
.regtags input { width: 14px; height: 14px; margin: 0; }
.regagree {
    max-height: 52vh;
    overflow-y: auto;
    padding: 12px 14px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 13px;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
}
.regcheck .cfrow { grid-template-columns: 96px minmax(0, 1fr); }
@media screen and (max-width: 820px) {
    .cfg2 { grid-template-columns: 1fr; }
    .regform .cfrow, .regcheck .cfrow { grid-template-columns: 1fr; gap: 4px; }
    .regform .cfrow > label { padding-top: 0; }
    .regform .cffoot .cpbtn { flex: 1 1 0; width: auto; min-width: 0; }
}

/* ---------- 找回密码 ---------- */
.cpbtn.ghost {
    background: #fff;
    border: 1px solid #d7e3f1;
    color: #2f6fb2 !important;
}
.cpbtn.ghost:hover { background: #f4f8fd; }
.cpbtn.sm { min-width: 96px; height: 36px; padding: 0 14px; font-size: 13px; line-height: 36px; }
.recovercard { max-width: 560px; margin: 0 auto; }
.recoverintro { margin: 0 0 12px; font-size: 13px; line-height: 1.8; color: #5b6b7c; }
.recoverlist {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rc;
}
.recoverlist li {
    position: relative;
    margin-bottom: 12px;
    padding: 12px 14px 12px 42px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #fbfcfe;
}
.recoverlist li::before {
    counter-increment: rc;
    content: counter(rc);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2f6fb2;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}
.recoverlist li b { display: block; font-size: 14px; color: #1a1d21; }
.recoverlist li span { display: block; margin: 4px 0 10px; font-size: 12px; line-height: 1.7; color: #7b8698; }
.recoverq {
    padding: 10px 12px;
    border-radius: 9px;
    background: #f4f8fd;
    font-size: 14px;
    color: #33507a;
}
.recovercard .cffoot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- 论坛状态 ---------- */
.ostat {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.ostat-item {
    padding: 12px 14px;
    border: 1px solid #eef2f7;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 40, 70, .04);
}
.ostat-item i { display: block; font-style: normal; font-size: 12px; color: #94a3b8; }
.ostat-item b { display: block; margin-top: 2px; font-size: 20px; color: #1a1d21; }
.onlinefilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.onlinefilter input[type="text"] {
    flex: 1 1 150px;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dfe5ee;
    border-radius: 9px;
    background: #fbfcfe;
    font-size: 13px;
    outline: none;
}
.onlinelist { margin: 0; padding: 0; list-style: none; }
.onlinerow {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed #eef2f7;
    font-size: 13px;
}
.onlinerow:last-child { border-bottom: 0; }
.online-user, .online-place, .online-time { display: flex; flex-direction: column; min-width: 0; }
.onlinerow em { font-style: normal; font-size: 12px; color: #94a3b8; word-break: break-all; }
.onlinerow a { color: #2f5f9e; text-decoration: none; }
.oguest { color: #94a3b8; }
.ospider {
    align-self: flex-start;
    margin: 2px 0 1px;
    padding: 0 6px;
    border-radius: 8px;
    background: #fff1e0;
    color: #b0562b;
    font-size: 11px;
    line-height: 16px;
    font-style: normal;
    white-space: nowrap;
}
.barrows { margin: 0; padding: 0; list-style: none; }
.barrow {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 60px;
    gap: 10px;
    align-items: center;
    padding: 7px 0;
    font-size: 13px;
}
.bar-name { color: #2f5f9e; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: block; height: 9px; border-radius: 999px; background: #f1f4f8; overflow: hidden; }
.bar-fill { display: block; height: 100%; min-width: 2px; border-radius: 999px; }
.bar-num { text-align: right; color: #334155; font-variant-numeric: tabular-nums; }
@media screen and (max-width: 820px) {
    .ostat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .onlinerow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .online-time { grid-column: 1 / -1; }
    .barrow { grid-template-columns: 110px minmax(0, 1fr) 44px; }
}

/* ---------- 搜索 ---------- */
.searchsum {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid #eef2f7;
    border-radius: 11px;
    background: #fff;
    font-size: 13px;
    color: #5b6b7c;
}
.searchsum b { color: #c0392b; }
.searchorder { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.searchorder a {
    padding: 3px 10px;
    border: 1px solid #e3e9f1;
    border-radius: 999px;
    color: #5b6b7c;
    text-decoration: none;
    font-size: 12px;
}
.searchorder a.on { border-color: #2f6fb2; background: #eaf2fb; color: #2f6fb2; }
.searchbig { display: flex; gap: 10px; margin-bottom: 12px; }
.searchbig input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 15px;
    outline: none;
}
.searchbig input[type="text"]:focus { border-color: #7fa9d8; background: #fff; box-shadow: 0 0 0 3px rgba(47,111,178,.12); }
.searchbig .cpbtn { min-width: 120px; }
.searchradios { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 8px; }
.searchradios label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #334155; }
.searchform select, .searchuser select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 14px;
    color: #1f2d3d;
    outline: none;
    box-sizing: border-box;
}
.searchuser { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.searchuser input[type="text"] {
    flex: 1 1 180px;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 14px;
    outline: none;
}
@media screen and (max-width: 820px) {
    .searchbig { flex-direction: column; }
    .searchbig .cpbtn { width: 100%; }
    .searchorder { margin-left: 0; }
    .searchuser .cpbtn { flex: 1 1 auto; }
}

/* ---------- 短信弹窗 / 查看讯息 ---------- */
.msgpop { max-width: 100%; }
.msgpop-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 4px 2px 10px;
}
.msgpop-head b { font-size: 16px; color: #1a1d21; }
.msgpop-head span { font-size: 12px; color: #94a3b8; }
.msgpop-card {
    border: 1px solid #eef2f7;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 40, 70, .04);
    padding: 12px 14px;
}
.msgpop-who { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.msgpop-who a { color: #2f5f9e; font-weight: 600; text-decoration: none; }
.msgpop-who span { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.msgpop-body {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eef2f7;
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
    word-break: break-word;
}
.msgpop-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.msgpop-foot .cpbtn { flex: 0 0 auto; }
.msgform .cfrow { grid-template-columns: 72px minmax(0, 1fr); }
.msgform .cfrow > label { padding-top: 10px; font-size: 13px; color: #7b8698; }
.msgform .cfctrl input[type="text"], .msgform textarea {
    width: 100%;
    padding: 0 12px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 14px;
    color: #1f2d3d;
    outline: none;
    box-sizing: border-box;
}
.msgform .cfctrl input[type="text"] { height: 42px; }
.msgform textarea { padding: 10px 12px; line-height: 1.7; resize: vertical; }
.msgform .cfctrl input:focus, .msgform textarea:focus {
    border-color: #7fa9d8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47,111,178,.12);
}
.msgform .cfhelp { margin-top: 4px; font-size: 12px; color: #94a3b8; }
.msgform .cfrow { margin-bottom: 10px; }
.cpbtn.disabled { opacity: .45; pointer-events: none; }
@media screen and (max-width: 520px) {
    .msgpop-foot .cpbtn { flex: 1 1 0; }
}

.msgpop-foot .cpbtn,
.msgpop-foot input.cpbtn {
    height: 38px;
    line-height: 36px;
    padding: 0 16px;
    box-sizing: border-box;
}
