:root{
    --bg:#f5f7fb;
    --card:#fff;
    --text:#1f2937;
    --muted:#6b7280;
    --line:#e6eaf0;
    --primary:#22a9e8;
    --primary2:#3178f6;
    --shadow:0 10px 30px rgba(15,23,42,.06);
    --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;color:var(--text);background:linear-gradient(180deg,#fff 0,#f7f9fc 130px,#f4f6fa 100%);font-size:15px}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.top-header{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.top-left,.top-actions{display:flex;align-items:center;gap:16px}.brand{font-size:28px;font-weight:800;letter-spacing:.02em}.icon-btn{border:0;background:transparent;color:#111827;font-size:28px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px}.text-link{font-size:14px;color:#334155;padding:8px 10px;border-radius:999px}.text-link:hover{background:#eef6ff;color:var(--primary2)}
.mini-bar{height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:72px;z-index:49}.mini-bar span{font-size:14px;font-weight:700;color:#1f2937}.mini-bar .icon-btn{font-size:22px}.side-menu{position:fixed;left:-290px;top:0;bottom:0;width:280px;background:#fff;z-index:80;box-shadow:var(--shadow);padding:18px;transition:.25s}.side-menu.show{left:0}.side-head{font-size:18px;font-weight:800;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.side-menu a{display:block;padding:13px 12px;border-radius:12px;color:#334155}.side-menu a:hover{background:#f1f7ff;color:var(--primary2)}.side-mask{display:none;position:fixed;inset:0;background:rgba(15,23,42,.22);z-index:70}.side-mask.show{display:block}.page-wrap{max-width:1240px;margin:18px auto 36px;padding:0 18px}.flash{padding:12px 16px;border-radius:12px;margin:12px 0;background:#eef6ff;color:#0f5f96;border:1px solid #bee3ff}.flash.error{background:#fff1f2;color:#be123c;border-color:#fecdd3}.flash.success{background:#ecfdf5;color:#047857;border-color:#bbf7d0}
.hero{position:relative;height:198px;border-radius:14px;overflow:hidden;margin:8px 0 18px;background:#111827;box-shadow:var(--shadow)}.hero-slide{position:absolute;inset:0;display:none;padding:42px 90px;color:#fff;background-size:cover;background-position:center}.hero-slide.active{display:block}.hero-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,7,18,.58),rgba(3,7,18,.22),rgba(3,7,18,.35));z-index:0}.hero-content{position:relative;z-index:1;max-width:560px}.hero h1{font-size:34px;line-height:1.18;margin:0 0 8px;font-weight:900;text-shadow:0 3px 20px rgba(0,0,0,.25)}.hero p{font-size:16px;margin:0;opacity:.95}.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.88);font-size:28px;color:#1f2937;cursor:pointer}.hero-arrow.prev{left:26px}.hero-arrow.next{right:26px}.hero-dots{position:absolute;bottom:15px;left:0;right:0;z-index:3;text-align:center}.hero-dots button{width:9px;height:9px;border-radius:50%;border:0;margin:0 5px;background:rgba(255,255,255,.55);cursor:pointer}.hero-dots button.active{background:#fff}.section-head{display:flex;align-items:center;justify-content:space-between;margin:16px 4px 10px}.section-head h2{margin:0;font-size:18px}.section-head a{font-size:14px;color:#6b7280}.board-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.board-card{min-height:104px;background:var(--card);border-radius:12px;box-shadow:var(--shadow);border:1px solid #edf0f5;display:flex;align-items:center;padding:18px 52px;gap:22px;transition:.2s}.board-card:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(15,23,42,.1)}.board-icon{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:28px;font-weight:800;flex:none}.board-name{font-weight:800;font-size:17px;margin-bottom:7px}.board-meta{font-size:13px;color:var(--muted)}.post-panel{background:var(--card);border:1px solid #edf0f5;border-radius:14px;overflow:hidden;box-shadow:var(--shadow);margin-bottom:22px}.post-item{display:grid;grid-template-columns:56px 1fr auto;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line)}.post-item:last-child{border-bottom:0}.avatar{width:46px;height:46px;border-radius:50%;object-fit:cover;border:1px solid #edf0f5;background:#eef6ff}.post-main{min-width:0}.post-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:6px}.username{font-size:13px;color:#374151;min-width:86px;flex:0 0 auto}.post-top-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;flex:1}.tag{font-size:12px;color:#1685da;background:#eef7ff;border:1px solid #b9e2ff;border-radius:5px;padding:2px 8px;white-space:nowrap}.post-title{font-size:16px;font-weight:800;margin-bottom:6px;color:#111827}.post-title:hover{color:var(--primary2)}.post-summary{font-size:13px;color:#6b7280;line-height:1.55;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;color:#6b7280;font-size:12px}.meta-left{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.report-link{font-size:12px;color:#94a3b8;margin-left:auto;white-space:nowrap}.time{color:#6b7280;font-size:12px;white-space:nowrap;align-self:end;text-align:right}.image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0 2px;max-width:880px}.image-grid img,.image-placeholder{width:100%;height:148px;border-radius:8px;border:1px solid #dbe7f6;object-fit:cover;background:linear-gradient(135deg,#eef6ff,#fff)}.image-placeholder{display:flex;align-items:center;justify-content:center;color:#5b8ac8;font-weight:700}.empty{background:#fff;border:1px dashed #d5dde8;border-radius:14px;padding:42px;text-align:center;color:#6b7280;box-shadow:var(--shadow)}.empty .big{font-size:42px;display:block;margin-bottom:8px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 16px;border-radius:10px;border:1px solid #d8e3f0;background:#fff;color:#334155;cursor:pointer}.btn.primary{background:linear-gradient(135deg,var(--primary),var(--primary2));border:0;color:#fff}.btn.danger{background:#fff1f2;color:#be123c;border-color:#fecdd3}.btn:hover{filter:brightness(.98)}.form-card{background:#fff;border:1px solid #edf0f5;border-radius:16px;box-shadow:var(--shadow);padding:22px;max-width:760px;margin:20px auto}.form-card.wide{max-width:1050px}.form-row{margin-bottom:15px}.form-row label{display:block;font-weight:700;margin-bottom:7px}.input,textarea,select{width:100%;border:1px solid #d8e3f0;border-radius:10px;padding:11px 12px;background:#fff;outline:none}.input:focus,textarea:focus,select:focus{border-color:#88cdf7;box-shadow:0 0 0 3px #e8f6ff}textarea{min-height:160px;resize:vertical}.detail-card{background:#fff;border:1px solid #edf0f5;border-radius:16px;box-shadow:var(--shadow);padding:22px;margin-bottom:18px}.detail-title{font-size:28px;margin:0 0 12px}.author-row{display:flex;align-items:center;gap:12px;color:#6b7280;margin-bottom:18px}.content{font-size:16px;line-height:1.9}.content img{max-width:100%;border-radius:10px;margin:8px 0}.comment-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.comment-item:last-child{border-bottom:0}.comment-body{flex:1}.comment-meta{font-size:12px;color:#6b7280;margin-top:4px}.filter-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.filter-tabs a{padding:7px 12px;border-radius:999px;border:1px solid #d8e3f0;color:#475569}.filter-tabs a.active{background:#eaf6ff;color:#1685da;border-color:#b9e2ff}.pagination{text-align:center;margin:20px 0}.pagination a{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:8px;margin:0 4px;background:#fff;border:1px solid #d8e3f0}.pagination a.active{background:var(--primary2);color:#fff;border-color:var(--primary2)}.site-footer{max-width:1240px;margin:0 auto 28px;padding:0 18px;color:#94a3b8;font-size:12px;display:flex;justify-content:space-between}.back-top{position:fixed;right:22px;bottom:24px;width:42px;height:42px;border-radius:50%;border:0;background:#111827;color:#fff;box-shadow:var(--shadow);display:none;cursor:pointer}.back-top.show{display:block}.search-line{display:flex;gap:10px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat-card{background:#fff;border:1px solid #edf0f5;border-radius:14px;box-shadow:var(--shadow);padding:18px}.stat-card b{font-size:28px;display:block;margin-top:8px}.report-link:hover{color:#be123c}
@media(max-width:760px){.top-header{height:60px;padding:0 16px}.brand{font-size:22px}.top-actions .text-link{display:none}.mini-bar{top:60px}.page-wrap{padding:0 12px;margin-top:12px}.hero{height:154px}.hero-slide{padding:36px 55px}.hero h1{font-size:23px}.board-grid{grid-template-columns:repeat(2,1fr)}.board-card{padding:16px;gap:12px}.board-icon{width:46px;height:46px;font-size:22px}.post-item{grid-template-columns:44px 1fr;gap:10px}.post-item .time{grid-column:2;text-align:left;margin-top:4px}.avatar{width:40px;height:40px}.image-grid{grid-template-columns:1fr}.image-grid img,.image-placeholder{height:150px}.post-summary{white-space:normal}.site-footer{display:block}.stat-grid{grid-template-columns:repeat(2,1fr)}}
.oauth-box{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.oauth-title{display:flex;align-items:center;gap:10px;color:#64748b;font-size:13px;margin-bottom:12px}.oauth-title span{height:1px;background:var(--line);flex:1}.oauth-buttons{display:flex;gap:10px;flex-wrap:wrap}.oauth-btn{display:inline-flex;align-items:center;justify-content:center;min-width:112px;padding:10px 14px;border-radius:10px;border:1px solid #d8e3f0;background:#fff;color:#334155;font-weight:700}.oauth-btn:hover{background:#f8fbff}.oauth-qq{color:#1685da;border-color:#b9e2ff}.oauth-wechat{color:#16a34a;border-color:#bbf7d0}.oauth-chlogin,.oauth-third{color:#7c3aed;border-color:#ddd6fe}.beian-link{color:#94a3b8}.beian-link:hover{color:#64748b}
.auth-shell{max-width:1080px;margin:26px auto;display:grid;grid-template-columns:1fr 440px;gap:18px;align-items:stretch}.auth-hero{position:relative;overflow:hidden;border-radius:18px;padding:42px;background:linear-gradient(135deg,#111827,#176ee8 55%,#25b7e9);color:#fff;box-shadow:var(--shadow);min-height:420px;display:flex;flex-direction:column;justify-content:center}.auth-hero:after{content:"";position:absolute;right:-90px;bottom:-90px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.15)}.auth-hero h1{font-size:42px;line-height:1.1;margin:16px 0 12px}.auth-hero p{font-size:16px;line-height:1.9;margin:0;max-width:520px;opacity:.92}.auth-badge{display:inline-flex;width:max-content;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);font-weight:800}.auth-card{background:#fff;border:1px solid #edf0f5;border-radius:18px;box-shadow:var(--shadow);padding:28px}.auth-card h2{font-size:26px;margin:0 0 8px}.auth-sub{margin:0 0 20px;color:#64748b}.auth-submit{width:100%;height:44px;margin-top:2px}.auth-links{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.auth-links a{color:#1685da;font-weight:700}.auth-note{color:#64748b;font-size:12px;line-height:1.7;margin:14px 0 0}.auth-sep{border:0;border-top:1px solid var(--line);margin:18px 0}.reset-code-form{background:#f8fbff;border:1px solid #edf0f5;border-radius:14px;padding:14px;margin-bottom:8px}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.profile-grid .full{grid-column:1/-1}@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-hero{min-height:auto;padding:30px}.auth-hero h1{font-size:32px}}@media(max-width:640px){.auth-card{padding:20px}.profile-grid{grid-template-columns:1fr}.auth-links{display:block}.auth-links a{display:inline-block;margin:4px 10px 0 0}}

/* v5 用户主页 */
.user-home-card{background:#fff;border:1px solid #edf0f5;border-radius:18px;box-shadow:var(--shadow);overflow:hidden;margin-bottom:18px}.user-cover{height:210px;position:relative;background:radial-gradient(circle at 18% 20%,rgba(34,169,232,.85),transparent 32%),linear-gradient(135deg,#101827,#176ee8 58%,#25b7e9);background-size:cover;background-position:center}.cover-glow{position:absolute;right:-80px;bottom:-80px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.16)}.user-cover-actions{position:absolute;right:18px;top:18px}.btn.glass{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.35);color:#fff;backdrop-filter:blur(10px)}.user-profile-main{display:grid;grid-template-columns:112px 1fr auto;gap:18px;align-items:end;padding:0 24px 18px;margin-top:-54px;position:relative}.user-avatar-lg{width:112px;height:112px;border-radius:28px;object-fit:cover;border:5px solid #fff;background:#eef6ff;box-shadow:0 12px 34px rgba(15,23,42,.16)}.user-title-block h1{margin:0 0 8px;font-size:30px}.user-subline{color:#64748b;line-height:1.7}.role-pill{display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border-radius:999px;background:#eef7ff;color:#1685da;border:1px solid #b9e2ff;font-weight:800}.role-pill.admin{background:#fff7ed;color:#ea580c;border-color:#fed7aa}.user-stats{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);background:#fbfdff}.user-stats div{padding:17px 12px;text-align:center;border-right:1px solid var(--line)}.user-stats div:last-child{border-right:0}.user-stats b{display:block;font-size:24px;color:#111827}.user-stats span{font-size:12px;color:#64748b}.user-info-card{padding-top:14px}.section-head.in-card{margin:0 0 12px}.user-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.info-line{padding:14px;border-radius:12px;background:#f8fbff;border:1px solid #edf0f5}.info-line span{display:block;color:#64748b;font-size:12px;margin-bottom:7px}.info-line b{font-size:15px}.profile-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.profile-settings-grid .form-card{margin:0;max-width:none}.profile-box h2{margin-top:0}.profile-grid.single{display:grid;grid-template-columns:1fr;gap:0}.appearance-preview{display:grid;grid-template-columns:120px 1fr;gap:12px;margin:12px 0 16px}.preview-avatar,.preview-cover{border:1px solid #edf0f5;border-radius:14px;background:#f8fbff;min-height:110px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#64748b;font-size:12px;position:relative}.preview-avatar{flex-direction:column;gap:8px}.preview-avatar img{width:70px;height:70px;border-radius:22px;object-fit:cover}.preview-cover{background:linear-gradient(135deg,#111827,#176ee8);background-size:cover;background-position:center;color:#fff}.preview-cover span{position:absolute;left:12px;bottom:10px;padding:5px 9px;border-radius:999px;background:rgba(15,23,42,.36);backdrop-filter:blur(8px)}.check-line{display:flex;align-items:center;gap:8px;margin:8px 0;color:#64748b}.account-actions{display:flex;flex-direction:column}.action-item{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-weight:700}.action-item:last-child{border-bottom:0}.action-item span{font-size:24px;color:#94a3b8}@media(max-width:860px){.user-cover{height:170px}.user-profile-main{grid-template-columns:88px 1fr;margin-top:-42px;padding:0 16px 16px}.user-avatar-lg{width:88px;height:88px;border-radius:24px}.user-badges{grid-column:1/-1}.user-title-block h1{font-size:24px}.user-stats{grid-template-columns:repeat(2,1fr)}.user-stats div:nth-child(2){border-right:0}.user-stats div:nth-child(-n+2){border-bottom:1px solid var(--line)}.user-info-grid{grid-template-columns:1fr}.profile-settings-grid{grid-template-columns:1fr}.appearance-preview{grid-template-columns:1fr}.preview-cover{height:130px}}

/* v6 板块加入与发帖编辑器 */
.small{font-size:13px;color:#64748b;line-height:1.7;margin:6px 0}.board-section-head{align-items:flex-start}.board-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.board-actions form{margin:0}.board-notice{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid #edf0f5;border-radius:14px;box-shadow:var(--shadow);padding:16px 18px;margin:0 0 16px}.board-notice-icon{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:26px;flex:none}.board-notice p{margin:4px 0 0;color:#64748b}.board-grid.compact{grid-template-columns:repeat(3,1fr);margin:12px 0 18px}.board-grid.compact .board-card{padding:16px 20px;min-height:92px}.publish-card h2{margin:0}.publish-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.publish-head p{margin:8px 0 0;color:#64748b}.editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;background:#f8fbff;border:1px solid #d8e3f0;border-bottom:0;border-radius:12px 12px 0 0;padding:10px}.editor-toolbar button{height:32px;min-width:38px;border:1px solid #d8e3f0;border-radius:8px;background:#fff;color:#334155;cursor:pointer;font-weight:700}.editor-toolbar button:hover{background:#eef7ff;color:#1685da;border-color:#b9e2ff}.editor-toolbar+textarea{border-radius:0 0 12px 12px;min-height:260px}.textarea-small{min-height:96px}.content blockquote{margin:12px 0;padding:12px 14px;border-left:4px solid #93c5fd;background:#f8fbff;border-radius:8px;color:#475569}.content h2{font-size:22px;margin:18px 0 8px}.content a{color:#1685da;font-weight:700}.content .code-block{background:#0f172a;color:#e2e8f0;border-radius:12px;padding:14px;overflow:auto;white-space:pre-wrap;line-height:1.65}.content .code-block code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.publish-guide .board-card{box-shadow:none}@media(max-width:760px){.board-section-head{display:block}.board-actions{margin-top:10px}.board-actions .btn,.board-actions form,.board-actions button{width:100%}.board-notice{align-items:flex-start}.board-grid.compact{grid-template-columns:1fr}.publish-head{display:block}.publish-head .btn{margin-top:10px;width:100%}.editor-toolbar{gap:6px}.editor-toolbar button{font-size:13px;min-width:auto;padding:0 9px}}

/* v9 资料设置入口页 */
.profile-entry-card{margin-bottom:18px}.profile-entry-mini{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:14px}.profile-entry-mini a{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #d8e3f0;border-radius:12px;background:#f8fbff;color:#334155;font-weight:800}.profile-entry-mini a:hover{background:#eef7ff;color:#1685da;border-color:#b9e2ff}.settings-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.settings-user-mini{display:flex;align-items:center;gap:16px}.user-avatar-lg.mini{width:72px;height:72px;border-radius:22px;border:4px solid #fff;margin:0;box-shadow:0 10px 28px rgba(15,23,42,.14)}.settings-user-mini h1{margin:0 0 6px;font-size:28px}.settings-user-mini p{margin:0;color:#64748b}.settings-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.settings-entry-list{display:flex;flex-direction:column;border:1px solid #edf0f5;border-radius:16px;overflow:hidden;background:#fff}.settings-entry-list.compact{border:0}.settings-entry-item{display:grid;grid-template-columns:52px 1fr 28px;gap:12px;align-items:center;padding:17px 18px;border-bottom:1px solid var(--line);transition:.16s;background:#fff}.settings-entry-item:last-child{border-bottom:0}.settings-entry-item:hover{background:#f8fbff}.settings-entry-icon{width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eef7ff,#f8fbff);border:1px solid #d9ecff;font-size:20px}.settings-entry-text b{display:block;color:#111827;font-size:16px;margin-bottom:4px}.settings-entry-text em{display:block;font-style:normal;color:#64748b;font-size:13px;line-height:1.5}.settings-entry-arrow{font-size:26px;color:#94a3b8;text-align:right}.settings-entry-item.danger .settings-entry-icon{background:#fff1f2;border-color:#fecdd3;color:#be123c}.settings-entry-item.danger .settings-entry-text b{color:#be123c}.settings-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}.settings-sidebar{position:sticky;top:86px;padding:14px}.settings-back{display:block;padding:10px 12px;color:#64748b;border-bottom:1px solid var(--line);margin-bottom:8px}.settings-tab{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;color:#334155;margin:4px 0}.settings-tab span{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#f3f8ff}.settings-tab.active,.settings-tab:hover{background:#eef7ff;color:#1685da}.settings-content .form-card,.settings-content .detail-card{margin:0;max-width:none}.appearance-preview.larger{grid-template-columns:150px 1fr}.appearance-preview.larger .preview-avatar,.appearance-preview.larger .preview-cover{min-height:150px}.appearance-preview.larger .preview-avatar img{width:88px;height:88px;border-radius:26px}.account-actions-card{padding:22px}@media(max-width:860px){.profile-entry-mini{grid-template-columns:1fr}.settings-hero{display:block}.settings-hero-actions{margin-top:16px}.settings-layout{grid-template-columns:1fr}.settings-sidebar{position:static}.settings-tab{display:inline-flex;margin:4px 2px}.appearance-preview.larger{grid-template-columns:1fr}.appearance-preview.larger .preview-cover{height:160px}}

/* v10 全站置顶 */
.tag.global-top{color:#c2410c;background:#fff7ed;border-color:#fed7aa;font-weight:800}.post-detail-tags{display:flex;gap:8px;flex-wrap:wrap;margin:-4px 0 14px}.table .small .global-top-text{color:#c2410c;font-weight:800}

/* v12 帖子详情点赞与右上角更多菜单 */
.post-detail-card{position:relative}.post-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 14px}.back-board-link{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;border:1px solid #d8e3f0;color:#475569;background:#fff}.back-board-link:hover{background:#eef7ff;color:#1685da;border-color:#b9e2ff}.post-menu-wrap{position:relative}.post-more-btn{width:44px;height:44px;border:0;border-radius:50%;background:#f2f4f8;color:#4b5563;font-size:30px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}.post-more-btn:hover{background:#eaf6ff;color:#1685da}.post-more-menu{position:absolute;right:0;top:52px;width:220px;background:#fff;border:1px solid #edf0f5;border-radius:18px;box-shadow:0 18px 48px rgba(15,23,42,.14);padding:10px;display:none;z-index:30}.post-more-menu.show{display:block}.post-more-menu::before{content:"";position:absolute;right:18px;top:-7px;width:14px;height:14px;background:#fff;border-left:1px solid #edf0f5;border-top:1px solid #edf0f5;transform:rotate(45deg)}.post-more-menu a,.post-more-menu button,.post-more-menu .menu-disabled{width:100%;border:0;background:transparent;text-align:left;display:grid;grid-template-columns:32px 1fr;align-items:center;gap:10px;padding:13px 12px;border-radius:12px;color:#334155;font-size:15px;cursor:pointer}.post-more-menu a:hover,.post-more-menu button:hover{background:#f5f9ff;color:#1685da}.post-more-menu span span,.post-menu-action span{font-size:18px;color:#6b7280}.post-more-menu .menu-disabled{color:#a3aab7;cursor:not-allowed}.like-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:22px;padding-top:22px}.like-summary{display:flex;align-items:center;gap:14px;color:#4b5563}.like-summary strong{font-size:20px;font-weight:800}.like-avatars{display:flex;align-items:center;min-width:42px}.like-avatars img{width:42px;height:42px;border-radius:50%;object-fit:cover;border:3px solid #fff;background:#eef6ff;margin-left:-10px;box-shadow:0 4px 12px rgba(15,23,42,.12)}.like-avatars img:first-child{margin-left:0}.like-empty-icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:3px solid #fff;background:#f1f5f9;color:#94a3b8;box-shadow:0 4px 12px rgba(15,23,42,.08);font-size:22px}.like-btn{border:0;border-radius:999px;background:linear-gradient(135deg,var(--primary),#43c7e8);color:#fff;padding:12px 26px;font-weight:900;font-size:18px;box-shadow:0 12px 30px rgba(34,169,232,.25);cursor:pointer;display:inline-flex;align-items:center;gap:10px;min-width:136px;justify-content:center}.like-btn span{font-size:28px;line-height:1}.like-btn.liked{background:linear-gradient(135deg,#14b8a6,var(--primary2))}.modal-mask{position:fixed;inset:0;background:rgba(15,23,42,.32);display:none;align-items:center;justify-content:center;z-index:120;padding:20px}.modal-mask.show{display:flex}.modal-card{width:min(520px,100%);background:#fff;border-radius:20px;box-shadow:0 24px 80px rgba(15,23,42,.2);padding:24px;position:relative}.modal-card h2{margin:0 0 8px}.modal-close{position:absolute;right:14px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:#f1f5f9;color:#64748b;font-size:24px;cursor:pointer}.modal-close:hover{background:#eef7ff;color:#1685da}.report-reason-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.report-reason-grid label{border:1px solid #d8e3f0;border-radius:12px;padding:12px;background:#f8fbff;color:#334155;cursor:pointer}.report-reason-grid label:hover{border-color:#b9e2ff;background:#eef7ff}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.modal-empty{box-shadow:none;margin:14px 0;padding:22px}.comment-jump-note{font-size:12px;color:#94a3b8}
@media(max-width:760px){.post-detail-toolbar{margin-top:0}.post-more-menu{right:-2px;width:210px}.like-strip{align-items:stretch;flex-direction:column}.like-form{width:100%}.like-btn{width:100%}.like-summary{justify-content:space-between}.report-reason-grid{grid-template-columns:1fr}.modal-actions{flex-direction:column-reverse}.modal-actions .btn{width:100%}}

/* v13 板块页右上角菜单 */
.board-page-head{align-items:flex-start}.board-page-head .post-more-btn{width:46px;height:46px}.board-more-menu{width:240px}.board-more-menu form{margin:0}.post-more-menu form button{width:100%;border:0;background:transparent;text-align:left;display:grid;grid-template-columns:32px 1fr;align-items:center;gap:10px;padding:13px 12px;border-radius:12px;color:#334155;font-size:15px;cursor:pointer}.post-more-menu form button:hover{background:#f5f9ff;color:#1685da}.post-more-menu form button span{font-size:18px;color:#6b7280}.board-notice{margin-bottom:18px}@media(max-width:760px){.board-page-head{display:flex;align-items:flex-start}.board-more-menu{right:-2px;width:230px}}


/* v14 板块信息入口 + 帖子评论区固定发布栏 */
.board-info-card{overflow:hidden}.board-info-hero{display:flex;align-items:center;gap:22px}.board-info-icon{width:88px;height:88px;border-radius:28px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:44px;box-shadow:0 14px 34px rgba(34,169,232,.22);flex:none}.board-info-main h1{margin:0 0 8px;font-size:30px}.board-info-main p{margin:0;color:#64748b;line-height:1.7}.board-info-stats{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.board-info-stats span{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:#f8fbff;border:1px solid #d8e3f0;color:#64748b}.board-info-stats b{color:#111827}.board-info-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.board-info-actions form{margin:0}.board-info-list{display:flex;flex-direction:column}.board-info-list a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line);color:#334155}.board-info-list a:last-child{border-bottom:0}.board-info-list a:hover span{color:#1685da}.board-info-list em{font-style:normal;color:#94a3b8;font-size:12px;white-space:nowrap}
.comment-section-card{padding:0;overflow:hidden}.comment-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}.comment-section-head h2{margin:0;font-size:20px}.comment-section-head h2 span{font-size:16px;color:#64748b;margin-left:6px}.comment-sort-pills{display:flex;align-items:center;background:#f1f3f8;border-radius:999px;padding:4px;gap:4px}.comment-sort-pills a{min-width:58px;text-align:center;padding:7px 12px;border-radius:999px;color:#64748b;font-weight:800;font-size:14px}.comment-sort-pills a.active{background:#fff;color:#1685da;box-shadow:0 6px 18px rgba(15,23,42,.08)}.comment-list-item{padding:18px 22px;border-bottom:1px solid var(--line);align-items:flex-start}.comment-list-item .avatar{width:48px;height:48px}.comment-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.comment-topline strong{color:#19a7d8;font-size:15px}.comment-topline span{color:#94a3b8;font-size:13px;white-space:nowrap}.comment-content-text{font-size:15px;line-height:1.8;color:#1f2937;min-height:26px}.comment-bottomline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;color:#c0c6d0;font-size:13px}.comment-actions{color:#64748b}.fixed-comment-bar{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(1240px,100%);padding:14px 18px calc(14px + env(safe-area-inset-bottom));background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-top:1px solid #edf0f5;box-shadow:0 -12px 34px rgba(15,23,42,.08);z-index:80;display:flex;align-items:center;gap:12px}.fixed-comment-input{height:58px;flex:1;border:0;border-radius:999px;background:#f1f3f8;color:#111827;padding:0 22px;font-size:16px;outline:none}.fixed-comment-input:focus{box-shadow:0 0 0 3px #dff3ff;background:#fff}.fixed-comment-send{width:58px;height:58px;border:0;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;font-size:28px;cursor:pointer;box-shadow:0 12px 26px rgba(34,169,232,.26);display:flex;align-items:center;justify-content:center}.fixed-comment-login{justify-content:center}.fixed-comment-login a{display:flex;align-items:center;justify-content:center;width:100%;height:54px;border-radius:999px;background:#f1f3f8;color:#64748b;font-weight:800}.fixed-comment-spacer{height:96px}.post-detail-card .content{padding-bottom:4px}
@media(max-width:760px){.board-info-hero{align-items:flex-start}.board-info-icon{width:70px;height:70px;border-radius:22px;font-size:34px}.board-info-main h1{font-size:24px}.board-info-actions .btn,.board-info-actions form,.board-info-actions button{width:100%}.board-info-list a{display:block}.board-info-list em{display:block;margin-top:6px}.comment-section-head{padding:16px}.comment-list-item{padding:16px}.comment-topline{align-items:flex-start}.fixed-comment-bar{padding:12px 14px calc(12px + env(safe-area-inset-bottom))}.fixed-comment-input{height:54px}.fixed-comment-send{width:54px;height:54px}.back-top{bottom:94px}}


/* v15 整站紧凑比例优化 + 移除顶部大标题栏 */
:root{
    --radius:14px;
    --shadow:0 8px 22px rgba(15,23,42,.055);
}
body{font-size:14px;background:linear-gradient(180deg,#fff 0,#f7f9fc 92px,#f4f6fa 100%)}
.top-header{display:none!important}.mini-bar{height:44px;top:0;padding:0 18px}.mini-bar span{font-size:13px}.mini-bar .icon-btn{font-size:20px;width:30px;height:30px;min-width:30px}.icon-btn{font-size:22px;min-width:30px;height:30px}.page-wrap{max-width:1120px;margin:14px auto 28px;padding:0 16px}.site-footer{max-width:1120px}.side-menu{width:260px;left:-270px;padding:14px}.side-head{font-size:16px}.side-menu a{padding:11px 10px;border-radius:10px}.hero{height:168px;border-radius:13px;margin:8px 0 14px}.hero-slide{padding:34px 72px}.hero h1{font-size:28px}.hero p{font-size:14px}.hero-arrow{width:36px;height:36px;font-size:24px}.hero-arrow.prev{left:20px}.hero-arrow.next{right:20px}.hero-dots{bottom:11px}.hero-dots button{width:8px;height:8px;margin:0 4px}.section-head{margin:13px 3px 8px}.section-head h2{font-size:16px}.section-head a{font-size:13px}.board-grid{gap:10px;margin-bottom:14px}.board-card{min-height:86px;padding:14px 38px;gap:16px;border-radius:11px}.board-icon{width:48px;height:48px;font-size:23px}.board-name{font-size:15px;margin-bottom:5px}.board-meta{font-size:12px}.post-panel{border-radius:13px;margin-bottom:18px}.post-item{grid-template-columns:50px 1fr auto;gap:12px;padding:13px 16px}.avatar{width:40px;height:40px}.post-top{gap:7px;margin-bottom:5px}.username{font-size:12px;min-width:76px}.tag{font-size:11px;padding:2px 7px}.post-title{font-size:15px;margin-bottom:5px}.post-summary{font-size:12px;line-height:1.5}.meta{gap:18px;margin-top:8px;font-size:11px}.time{font-size:11px}.image-grid{gap:8px;margin:10px 0 2px;max-width:780px}.image-grid img,.image-placeholder{height:124px}.empty{padding:32px;border-radius:13px}.empty .big{font-size:34px}.btn{padding:8px 13px;border-radius:9px;font-size:13px}.form-card{padding:18px;border-radius:14px;margin:16px auto;max-width:700px}.form-card.wide{max-width:980px}.form-row{margin-bottom:12px}.form-row label{margin-bottom:6px}.input,textarea,select{border-radius:9px;padding:9px 11px}textarea{min-height:140px}.detail-card{padding:18px;border-radius:14px;margin-bottom:14px}.detail-title{font-size:24px}.author-row{gap:10px;margin-bottom:14px}.content{font-size:15px;line-height:1.8}.filter-tabs{gap:7px;margin:8px 0 13px}.filter-tabs a{padding:6px 10px;font-size:13px}.stat-grid{gap:10px}.stat-card{padding:15px;border-radius:13px}.stat-card b{font-size:24px}.auth-shell{max-width:980px;margin:20px auto;grid-template-columns:1fr 400px;gap:16px}.auth-hero{border-radius:16px;padding:34px;min-height:360px}.auth-hero h1{font-size:34px}.auth-card{border-radius:16px;padding:24px}.auth-card h2{font-size:22px}.profile-hero,.settings-hero,.profile-entry-card,.board-info-card{border-radius:16px}.profile-cover{height:190px}.profile-avatar img{width:84px;height:84px}.profile-name{font-size:24px}.settings-sidebar,.settings-panel{border-radius:14px}.post-more-btn{width:38px;height:38px;font-size:26px}.post-more-menu{top:46px;width:205px;border-radius:16px}.post-more-menu a,.post-more-menu button,.post-more-menu .menu-disabled,.post-more-menu form button{padding:11px 10px;font-size:14px}.like-strip{margin-top:18px;padding-top:18px}.like-avatars img,.like-empty-icon{width:36px;height:36px}.like-summary strong{font-size:17px}.like-btn{padding:10px 22px;font-size:16px;min-width:118px}.like-btn span{font-size:24px}.comment-section-head{padding:15px 18px}.comment-section-head h2{font-size:18px}.comment-section-head h2 span{font-size:14px}.comment-sort-pills a{min-width:52px;padding:6px 10px;font-size:13px}.comment-list-item{padding:15px 18px}.comment-list-item .avatar{width:42px;height:42px}.comment-content-text{font-size:14px;line-height:1.7}.fixed-comment-bar{width:min(1120px,100%);padding:11px 16px calc(11px + env(safe-area-inset-bottom))}.fixed-comment-input{height:50px;font-size:14px;padding:0 18px}.fixed-comment-send{width:50px;height:50px;font-size:24px}.fixed-comment-spacer{height:82px}.board-info-icon{width:76px;height:76px;border-radius:24px;font-size:38px}.board-info-main h1{font-size:26px}.back-top{width:38px;height:38px}.admin-wrap{max-width:1120px!important;padding:14px!important}.admin-layout{grid-template-columns:200px 1fr!important;gap:14px!important}.admin-side{border-radius:14px!important;padding:12px!important}.admin-side h2{font-size:16px!important;margin:6px 8px 12px!important}.admin-side a{padding:10px!important;border-radius:9px!important}.admin-top{margin-bottom:14px!important}.admin-top h1{font-size:22px!important}.table-card{border-radius:14px!important;padding:13px!important}.table th,.table td{padding:9px 8px!important;font-size:13px!important}.config-section,.sys-card{border-radius:14px!important;padding:15px!important}.config-section h2,.sys-card h2{font-size:18px!important}.modal-card{border-radius:18px;padding:20px}
@media(max-width:760px){body{font-size:13px}.mini-bar{height:42px;padding:0 14px}.mini-bar span{font-size:13px}.page-wrap{padding:0 10px;margin-top:10px}.hero{height:128px;border-radius:12px}.hero-slide{padding:26px 48px}.hero h1{font-size:21px;line-height:1.2}.hero p{font-size:12px}.hero-arrow{width:34px;height:34px;font-size:22px}.hero-arrow.prev{left:14px}.hero-arrow.next{right:14px}.board-grid{gap:9px}.board-card{min-height:80px;padding:12px;gap:10px}.board-icon{width:42px;height:42px;font-size:20px}.board-name{font-size:14px}.board-meta{font-size:12px}.post-item{grid-template-columns:38px 1fr;gap:9px;padding:12px}.avatar{width:36px;height:36px}.post-top{align-items:flex-start}.post-top-tags{gap:6px;justify-content:flex-end}.post-title{font-size:14px}.meta-left{gap:14px}.post-item .time{text-align:right}.image-grid img,.image-placeholder{height:118px}.detail-card{padding:15px}.detail-title{font-size:21px}.content{font-size:14px}.form-card{padding:16px}.auth-shell{margin:14px auto;gap:12px}.auth-hero{padding:24px}.auth-hero h1{font-size:28px}.auth-card{padding:18px}.profile-cover{height:150px}.profile-avatar img{width:74px;height:74px}.profile-name{font-size:21px}.stat-grid{grid-template-columns:repeat(2,1fr)}.post-more-btn{width:36px;height:36px}.fixed-comment-input{height:48px}.fixed-comment-send{width:48px;height:48px}.fixed-comment-bar{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.back-top{bottom:86px}.admin-layout{grid-template-columns:1fr!important}.admin-side nav{grid-template-columns:repeat(2,1fr)!important}.admin-wrap{padding:12px!important}.admin-top h1{font-size:20px!important}}


/* v16 修复补丁：强制加载新版样式、修复菜单外露、详情页偏左/过小、资料入口未成列表 */
html,body{width:100%;max-width:100%;overflow-x:hidden}
body{min-width:0}
.page-wrap{width:100%;max-width:1120px;margin-left:auto!important;margin-right:auto!important;padding-left:16px;padding-right:16px}
.site-footer{width:100%;max-width:1120px;margin-left:auto!important;margin-right:auto!important}
.detail-card,.post-panel,.post-detail-card,.comment-section-card,.settings-index-card,.settings-layout,.profile-entry-card{width:100%;max-width:100%}
.post-detail-card{margin-left:0!important;margin-right:0!important;overflow:visible}
.content{width:100%;max-width:100%;word-break:break-word;overflow-wrap:anywhere}
.content img{display:block;max-width:100%!important;height:auto!important;border-radius:12px;margin:10px 0}
.post-detail-card .image-grid{width:100%;max-width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}
.post-detail-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%;gap:10px;position:relative;z-index:10}
.post-menu-wrap{position:relative!important;display:inline-flex!important;align-items:center;justify-content:flex-end;flex:none}
.post-more-btn{appearance:none;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:0;outline:0}
.post-more-menu[hidden],.modal-mask[hidden]{display:none!important}
.post-more-menu{position:absolute!important;right:0!important;left:auto!important;top:calc(100% + 8px)!important;width:220px!important;max-width:calc(100vw - 28px)!important;background:#fff!important;border:1px solid #edf0f5!important;border-radius:16px!important;box-shadow:0 18px 48px rgba(15,23,42,.16)!important;padding:8px!important;z-index:999!important;display:none!important}
.post-more-menu.show{display:block!important}
.post-more-menu a,.post-more-menu button,.post-more-menu .menu-disabled,.post-more-menu form button{width:100%!important;border:0!important;background:transparent!important;text-align:left!important;display:grid!important;grid-template-columns:28px 1fr!important;align-items:center!important;gap:8px!important;padding:11px 10px!important;border-radius:12px!important;color:#334155!important;font-size:14px!important;line-height:1.35!important;cursor:pointer!important;white-space:nowrap!important}
.post-more-menu form{margin:0!important}.post-more-menu a:hover,.post-more-menu button:hover{background:#f5f9ff!important;color:#1685da!important}.post-more-menu .menu-disabled{color:#a3aab7!important;cursor:not-allowed!important}
.board-page-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px;margin-bottom:10px!important}.board-page-head>div:first-child{min-width:0;flex:1}.board-more-wrap{margin-left:auto}.board-notice{margin-top:10px}
.settings-entry-list{display:flex!important;flex-direction:column!important;border:1px solid #edf0f5!important;border-radius:16px!important;overflow:hidden!important;background:#fff!important}.settings-entry-list.compact{border:0!important}.settings-entry-item{display:grid!important;grid-template-columns:48px minmax(0,1fr) 24px!important;gap:12px!important;align-items:center!important;padding:15px 16px!important;border-bottom:1px solid var(--line)!important;background:#fff!important;color:#334155!important}.settings-entry-item:last-child{border-bottom:0!important}.settings-entry-icon{width:40px!important;height:40px!important;border-radius:13px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#f3f8ff!important;border:1px solid #d9ecff!important;font-size:19px!important}.settings-entry-text b{display:block!important;font-size:15px!important;margin-bottom:3px!important;color:#111827!important}.settings-entry-text em{display:block!important;font-style:normal!important;font-size:12px!important;line-height:1.45!important;color:#64748b!important}.settings-entry-arrow{font-size:22px!important;color:#94a3b8!important;text-align:right!important}
.profile-entry-mini{display:none!important}.profile-entry-card .section-head{margin-bottom:6px}.profile-entry-card .small{font-size:13px;line-height:1.75}.profile-entry-card .btn{white-space:nowrap}
.modal-mask{position:fixed!important;inset:0!important;background:rgba(15,23,42,.34)!important;display:none!important;align-items:center!important;justify-content:center!important;z-index:1200!important;padding:18px!important}.modal-mask.show{display:flex!important}.modal-card{width:min(520px,100%)!important;background:#fff!important;border-radius:18px!important;box-shadow:0 24px 80px rgba(15,23,42,.24)!important;padding:20px!important;position:relative!important}.modal-close{position:absolute!important;right:12px!important;top:10px!important}
.fixed-comment-bar{position:fixed!important;left:50%!important;right:auto!important;bottom:0!important;transform:translateX(-50%)!important;width:min(1120px,100%)!important;max-width:100%!important;background:rgba(255,255,255,.94)!important;z-index:900!important}.fixed-comment-spacer{height:86px!important}

@media(max-width:760px){
  .page-wrap{width:100%!important;max-width:none!important;margin:8px 0 24px!important;padding-left:12px!important;padding-right:12px!important}
  .site-footer{padding-left:12px!important;padding-right:12px!important}
  .detail-card,.post-panel{border-radius:14px!important}
  .post-detail-card,.comment-section-card{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  .detail-title{font-size:22px!important;line-height:1.3!important}
  .author-row{align-items:flex-start!important;font-size:12px!important}
  .content{font-size:15px!important;line-height:1.9!important}
  .content img{width:100%!important;max-width:100%!important;height:auto!important}
  .post-detail-card .image-grid{grid-template-columns:1fr!important}
  .board-page-head{display:flex!important;align-items:flex-start!important}
  .post-more-menu{right:0!important;top:calc(100% + 8px)!important;width:210px!important}
  .board-more-menu{width:220px!important}
  .settings-entry-item{grid-template-columns:44px minmax(0,1fr) 22px!important;padding:14px!important}
  .settings-entry-text em{font-size:12px!important}
  .profile-entry-card{padding:16px!important}
  .fixed-comment-bar{padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important}
}


/* v20：用户主页去个人资料卡片、用户自主管理帖子 */
.user-post-panel .post-item{border-bottom:0}
.user-post-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 18px 14px 88px;border-bottom:1px solid var(--line);background:#fff;color:#94a3b8;font-size:12px}
.user-post-actions:last-child{border-bottom:0}
.user-post-actions .inline-form{display:inline-flex;margin:0}
.user-post-actions .btn{padding:7px 12px;border-radius:8px;font-size:12px}
.post-more-menu form{margin:0!important}.post-more-menu form button span{display:inline-block;text-align:center}
@media(max-width:760px){.user-post-actions{padding:0 12px 12px 59px;justify-content:flex-start;flex-wrap:wrap}.user-post-actions span{width:100%;font-size:12px}.user-post-actions .btn{padding:6px 11px}}


/* v22：个人资料卡片移动到 资料设置 -> 个人资料 */
.profile-info-card{display:block!important;padding-top:14px!important}
.profile-info-card .section-head.in-card{margin:0 0 12px!important}
.profile-info-card .section-head.in-card .btn{padding:7px 12px;font-size:13px;border-radius:9px}
.profile-info-card .old-profile-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.profile-info-card .info-line{padding:14px!important;border-radius:12px!important;background:#f8fbff!important;border:1px solid #edf0f5!important;min-width:0!important}
.profile-info-card .info-line span{display:block!important;color:#64748b!important;font-size:12px!important;margin-bottom:7px!important}
.profile-info-card .info-line b{display:block!important;font-size:15px!important;color:#111827!important;word-break:break-all!important}
@media(max-width:760px){.profile-info-card .old-profile-grid{grid-template-columns:1fr!important}.profile-info-card .section-head.in-card{align-items:center!important}.profile-info-card .section-head.in-card h2{font-size:18px!important}}

/* v23 attachment + reply-visible */
.reply-tag{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.reply-hidden-box{margin:16px 0;padding:22px;border:1px dashed #93c5fd;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#ffffff);text-align:center;color:#334155}.reply-hidden-box .reply-hidden-icon{font-size:34px;margin-bottom:8px}.reply-hidden-box strong{display:block;font-size:18px;color:#172033;margin-bottom:6px}.reply-hidden-box p{margin:0 0 12px;color:#64748b;line-height:1.7}.reply-hidden-box.small-box{padding:16px;text-align:left}.reply-hidden-box.small-box strong{font-size:16px}.attachment-panel{margin:18px 0;padding:16px;border:1px solid #e6eef8;border-radius:18px;background:#f8fbff}.attachment-panel h3{margin:0 0 12px;font-size:18px}.attachment-panel h3 span{font-size:14px;color:#64748b}.attachment-list{display:grid;gap:10px}.attachment-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:12px 14px;border:1px solid #e6eef8;border-radius:14px;background:#fff;color:#172033;text-decoration:none}.attachment-item:hover{border-color:#93c5fd;background:#f8fbff}.attachment-icon{font-size:22px}.attachment-name{font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-meta{font-size:12px;color:#64748b;white-space:nowrap}.attachment-manage-list{display:grid;gap:10px}.attachment-manage-item{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid #e6eef8;border-radius:12px;background:#f8fbff}.attachment-manage-item span{font-size:12px;color:#64748b}@media(max-width:700px){.attachment-item{grid-template-columns:auto 1fr}.attachment-meta{grid-column:2;white-space:normal}.attachment-panel{padding:12px}.reply-hidden-box{padding:18px}}


/* v24：页面内悬浮三个点移到顶部导航右侧，根据当前页面显示对应菜单 */
.board-page-head .board-more-wrap,
.post-detail-toolbar .post-menu-wrap{display:none!important}
.page-context-menu{position:fixed!important;right:14px!important;top:58px!important;left:auto!important;width:min(240px,calc(100vw - 28px))!important;z-index:1200!important}
.page-context-menu::before{content:"";position:absolute;right:18px;top:-7px;width:14px;height:14px;background:#fff;border-left:1px solid #edf0f5;border-top:1px solid #edf0f5;transform:rotate(45deg)}
.mini-bar .more-toggle{color:#111827}
@media(max-width:760px){
  .page-context-menu{right:12px!important;top:54px!important;width:min(235px,calc(100vw - 24px))!important}
  .board-page-head{padding-right:0!important}
  .post-detail-toolbar{justify-content:flex-start!important}
}


/* v26: unified post-card alignment for homepage, board page and user page */
.post-item{
    position:relative;
}
.post-main{
    min-width:0;
}
.post-top{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:10px!important;
    width:100%;
}
.post-top .username{
    flex:0 0 auto;
}
.post-top-tags{
    margin-left:auto;
    display:flex!important;
    align-items:center;
    justify-content:flex-end!important;
    flex-wrap:wrap;
    gap:7px;
    min-width:0;
    text-align:right;
}
.post-title{
    display:block;
    padding-right:0;
}
.meta{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    width:100%;
}
.meta-left{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap;
    gap:18px;
    min-width:0;
}
.report-link{
    margin-left:auto!important;
    white-space:nowrap;
    text-align:right;
}
.post-item .time{
    text-align:right!important;
    justify-self:end;
}
.user-post-panel .post-item,
.post-panel .post-item{
    width:100%;
}
.user-post-actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    margin-top:8px;
}
@media(max-width:760px){
    .post-item{
        grid-template-columns:38px minmax(0,1fr)!important;
    }
    .post-top{
        align-items:flex-start!important;
    }
    .post-top-tags{
        justify-content:flex-end!important;
        gap:6px;
    }
    .post-item .time{
        grid-column:2!important;
        text-align:right!important;
        justify-self:end!important;
        width:100%;
    }
    .meta-left{
        gap:14px;
    }
    .report-link{
        margin-left:auto!important;
    }
    .user-post-actions{
        justify-content:flex-end;
        flex-wrap:wrap;
    }
}


/* v27: board icon image upload and unified post image previews */
.board-icon img,
.board-notice-icon img,
.board-info-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:inherit;
    display:block;
}
.board-icon span,
.board-notice-icon span,
.board-info-icon span{
    line-height:1;
}
.board-icon-preview{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin:6px 0 8px;
    color:#64748b;
    font-size:13px;
}
.board-icon-preview img,
.board-icon-preview > span:first-child{
    width:44px;
    height:44px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    object-fit:cover;
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    color:#fff;
    font-size:24px;
    overflow:hidden;
}
.board-icon-preview.small{
    margin:0;
}
.board-icon-preview.small img,
.board-icon-preview.small > span:first-child{
    width:34px;
    height:34px;
    border-radius:10px;
    font-size:20px;
}

/* 帖子列表图片：1张显示1张，2张显示2张，3张及以上显示前三张横向排列 */
.post-item .image-grid{
    display:grid!important;
    gap:8px;
    margin:10px 0 2px;
    max-width:100%;
}
.post-item .image-grid-count-1{
    grid-template-columns:minmax(0, 1fr);
    max-width:360px;
}
.post-item .image-grid-count-2{
    grid-template-columns:repeat(2, minmax(0, 1fr));
}
.post-item .image-grid-count-3{
    grid-template-columns:repeat(3, minmax(0, 1fr));
}
.post-item .image-grid img{
    width:100%;
    height:120px;
    border-radius:9px;
    object-fit:cover;
    border:1px solid #dbe7f6;
    background:#f8fbff;
}
@media(max-width:760px){
    .post-item .image-grid{
        gap:6px;
    }
    .post-item .image-grid-count-1{
        grid-template-columns:minmax(0, 1fr);
        max-width:100%;
    }
    .post-item .image-grid-count-2{
        grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    }
    .post-item .image-grid-count-3{
        grid-template-columns:repeat(3, minmax(0, 1fr))!important;
    }
    .post-item .image-grid img{
        height:76px!important;
        border-radius:8px;
    }
    .post-item .image-grid-count-1 img{
        height:130px!important;
    }
}


/* v28: social login multi-select and account bind management */
.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}.check-grid label{display:flex;align-items:center;gap:8px;border:1px solid #d8e3f0;border-radius:10px;padding:10px 12px;background:#fff;color:#334155;font-weight:700}.check-grid input{width:auto}.social-bind-list{display:flex;flex-direction:column;gap:10px}.social-bind-item{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e6edf6;border-radius:14px;padding:14px;background:#fbfdff}.social-bind-main{display:flex;align-items:center;gap:12px;min-width:0}.social-bind-actions{display:flex;align-items:center;gap:8px;flex:none}.social-bind-actions form{margin:0}.small-empty{padding:18px}.oauth-btn[class*="oauth-chlogin_"]{color:#7c3aed;border-color:#ddd6fe}.oauth-btn[class*="oauth-chlogin_"]:hover{background:#f5f3ff}
@media(max-width:760px){.check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.social-bind-item{align-items:flex-start;flex-direction:column}.social-bind-actions{width:100%;justify-content:flex-end}}


/* v29: 登录/注册保持原风格，但不自动拉满屏幕；彩虹聚合登录类型去重 */
.auth-shell{
    width:min(100%, 1080px);
    align-items:start!important;
}
.auth-login .auth-card,
.auth-register .auth-card{
    align-self:start;
}
.auth-register{
    max-width:980px;
    grid-template-columns:minmax(0,1fr) 420px;
}
.auth-login{
    max-width:980px;
    grid-template-columns:minmax(0,1fr) 420px;
}
.auth-register .auth-hero,
.auth-login .auth-hero{
    min-height:360px;
}
.auth-register .auth-card,
.auth-login .auth-card{
    max-width:440px;
    width:100%;
}
.check-grid label{
    min-width:0;
}
@media(max-width:900px){
    .auth-shell{
        width:min(94vw, 520px);
        grid-template-columns:1fr!important;
        margin-left:auto!important;
        margin-right:auto!important;
    }
    .auth-hero{
        min-height:auto!important;
    }
    .auth-register .auth-card,
    .auth-login .auth-card{
        max-width:none;
    }
}
@media(max-width:640px){
    .auth-shell{
        width:min(94vw, 430px);
    }
    .auth-hero{
        padding:22px!important;
        border-radius:16px!important;
    }
    .auth-hero h1{
        font-size:28px!important;
    }
    .auth-card{
        border-radius:16px!important;
    }
    .oauth-buttons{
        display:grid;
        grid-template-columns:1fr 1fr;
    }
    .oauth-btn{
        min-width:0;
        width:100%;
    }
}


/* v32 板块信息页重做 */
.board-info-v32,.board-staff-v32,.board-latest-v32{padding:20px}
.board-info-topline{display:flex;align-items:center;gap:8px;font-weight:800;color:#1f2937;margin-bottom:14px}
.board-info-title-mark{width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#f3f4f6;color:#4b5563;font-size:13px}
.board-info-hero.v32{display:flex;gap:18px;align-items:flex-start;padding:8px 0 2px}
.board-info-hero.v32 .board-info-icon{width:88px;height:88px;border-radius:24px;display:flex;align-items:center;justify-content:center;flex:0 0 88px;background:linear-gradient(135deg,#eef6ff,#f8fbff);box-shadow:inset 0 0 0 1px #e5edf7}
.board-info-hero.v32 .board-info-icon img{width:64px;height:64px;object-fit:cover;border-radius:18px}
.board-info-hero.v32 .board-info-icon .emoji-icon{font-size:48px}
.board-info-main h1{margin:2px 0 10px;font-size:30px;line-height:1.15;color:#111827}
.board-info-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:0 0 14px}
.board-info-meta-grid>div{padding:10px 12px;border:1px solid #ebeff5;border-radius:14px;background:#fafcff}
.board-info-meta-grid span{display:block;font-size:12px;color:#6b7280;margin-bottom:4px}
.board-info-meta-grid b{font-size:15px;color:#111827}
.board-info-desc{margin:0;color:#475569;line-height:1.8}
.board-info-actions.v32{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.board-info-actions.v32 form{margin:0}
.board-staff-groups{display:grid;gap:16px}
.board-staff-group{border:1px solid #edf1f6;border-radius:20px;padding:16px;background:linear-gradient(180deg,#fff,#fafcff)}
.board-staff-group h3{margin:0 0 6px;font-size:20px;color:#111827}
.board-staff-group p{margin:0;color:#64748b;font-size:13px;line-height:1.6}
.board-staff-list{display:grid;gap:12px;margin-top:14px}
.board-staff-item{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #edf1f5;border-radius:16px;background:#fff;transition:.2s ease;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.board-staff-item:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,23,42,.06)}
.board-staff-avatar{width:58px;height:58px;flex:0 0 58px}
.board-staff-avatar img{width:58px;height:58px;border-radius:999px;object-fit:cover;border:3px solid #fff;box-shadow:0 4px 12px rgba(15,23,42,.08)}
.board-staff-content{min-width:0;flex:1}
.board-staff-name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.board-staff-name-row strong{font-size:16px;color:#111827}
.role-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e;font-size:12px;font-weight:700}
.board-staff-sub{font-size:12px;color:#64748b;line-height:1.6;word-break:break-all}
.small-empty{padding:18px 14px;margin-top:12px}
.board-info-list.v32{display:grid;gap:10px}
.board-info-list.v32 a{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 16px;border:1px solid #edf1f5;border-radius:16px;background:#fff}
.board-info-list.v32 span{font-weight:600;color:#111827;min-width:0}
.board-info-list.v32 em{font-style:normal;color:#94a3b8;font-size:12px;white-space:nowrap}
@media(max-width:760px){
  .board-info-v32,.board-staff-v32,.board-latest-v32{padding:16px}
  .board-info-hero.v32{flex-direction:column;gap:14px}
  .board-info-main h1{font-size:24px}
  .board-info-meta-grid{grid-template-columns:1fr}
  .board-staff-item{align-items:flex-start}
  .board-info-list.v32 a{flex-direction:column;align-items:flex-start}
}


/* v35：板块信息页、顶部菜单、板块管理UI修复 */
.board-info-context-menu{display:none}
.board-info-context-menu.show{display:block}
.board-info-context-menu form{margin:0}
.board-info-context-menu button{width:100%;border:0;background:transparent;text-align:left;display:flex;align-items:center;gap:16px;padding:12px 14px;border-radius:12px;color:#334155;cursor:pointer}
.board-info-context-menu button:hover{background:#f1f7ff;color:#1685da}

.board-info-meta-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:520px}
.board-info-meta-grid>div{min-height:78px}
@media(max-width:760px){
  .board-info-hero.v32{flex-direction:row!important;align-items:flex-start!important}
  .board-info-hero.v32 .board-info-icon{width:76px;height:76px;flex-basis:76px}
  .board-info-hero.v32 .board-info-icon img{width:56px;height:56px}
  .board-info-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;max-width:none}
  .board-info-meta-grid>div{min-height:72px;padding:9px 10px}
}
@media(max-width:390px){
  .board-info-hero.v32{gap:12px}
  .board-info-hero.v32 .board-info-icon{width:64px;height:64px;flex-basis:64px}
  .board-info-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

.board-mod-section{padding:20px;overflow:hidden}
.board-mod-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.board-mod-head h2{margin:0 0 6px;font-size:20px}
.board-mod-head p{margin:0;color:#64748b;line-height:1.6}
.board-mod-list{display:grid;gap:12px}
.board-mod-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;border:1px solid #edf1f5;border-radius:18px;background:#fff;padding:16px;box-shadow:0 4px 14px rgba(15,23,42,.035)}
.board-mod-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.board-mod-title{font-size:16px;font-weight:800;color:#111827;line-height:1.45}
.board-mod-title:hover{color:#1685da}
.board-mod-status{font-size:12px;padding:3px 8px;border-radius:999px;border:1px solid #d8e3f0;background:#f8fbff;color:#64748b}
.board-mod-status.ok{border-color:#bbf7d0;background:#ecfdf5;color:#047857}
.board-mod-status.off{border-color:#fecdd3;background:#fff1f2;color:#be123c}
.board-mod-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#64748b;font-size:12px;margin-bottom:8px}
.board-mod-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.board-mod-actions{display:grid;grid-template-columns:repeat(2,max-content);gap:8px;justify-content:end}
.board-mod-actions form{margin:0}
.board-mod-actions .btn{min-width:76px}
.board-report-list{display:grid;gap:10px}
.board-report-card{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #edf1f5;border-radius:16px;background:#fff;padding:14px 16px}
.board-report-card a{font-weight:800;color:#111827}
.board-report-card p{margin:6px 0;color:#475569}
.board-report-card span{font-size:12px;color:#94a3b8}
.board-report-card strong{white-space:nowrap;color:#f59e0b}
@media(max-width:760px){
  .board-mod-section{padding:16px}
  .board-mod-card{grid-template-columns:1fr;align-items:start}
  .board-mod-actions{grid-template-columns:repeat(3,1fr);width:100%;justify-content:stretch}
  .board-mod-actions .btn{width:100%;min-width:0}
  .board-report-card{align-items:flex-start;flex-direction:column}
}


/* v36 等级、称号、任务系统 */
.level-badge,.level-mini{display:inline-flex;align-items:center;gap:4px;border-radius:999px;background:#eef7ff;border:1px solid #b9e2ff;color:#1685da;font-weight:800}
.level-badge{padding:4px 10px;font-size:12px}.level-badge.big{padding:7px 12px;font-size:14px}
.level-mini{padding:1px 6px;font-size:11px;margin-left:6px}
.title-badge,.title-mini{--title-color:#1685da;display:inline-flex;align-items:center;border-radius:999px;background:color-mix(in srgb,var(--title-color) 12%,#fff);border:1px solid color-mix(in srgb,var(--title-color) 35%,#fff);color:var(--title-color);font-weight:800}
.title-badge{padding:4px 10px;font-size:12px}.title-badge.big{padding:7px 12px;font-size:14px}
.title-mini{padding:1px 6px;font-size:11px;margin-left:6px}
.author-growth-line,.user-growth-inline,.growth-level-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:5px 0}
.growth-hero{display:flex;align-items:center;gap:18px;padding:22px}.growth-icon{width:84px;height:84px;border-radius:24px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eef7ff,#fff);font-size:42px;border:1px solid #dbeafe}.growth-main{flex:1;min-width:0}.growth-main h1{margin:0 0 8px;font-size:28px}.growth-main p{margin:0 0 12px;color:#64748b;line-height:1.7}
.growth-progress{height:12px;border-radius:999px;background:#eef2f7;overflow:hidden;margin-top:12px}.growth-progress div{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--primary),var(--primary2))}
.growth-progress.compact{height:10px}.growth-progress-text{font-size:13px;color:#64748b;margin-top:8px}
.growth-section{padding:18px}.task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.task-card{display:grid;gap:12px;border:1px solid #edf1f5;border-radius:16px;padding:14px;background:#fff}.task-card.done{background:linear-gradient(180deg,#fff,#f7fffb)}.task-card h3{margin:0 0 6px;font-size:17px}.task-card p{margin:0;color:#64748b;line-height:1.6}.task-reward{font-size:12px;color:#1685da;margin-top:8px;font-weight:800}.task-progress{display:flex;align-items:center;gap:10px}.task-progress span{font-size:12px;color:#64748b;min-width:48px}.task-progress div{height:8px;flex:1;background:#eef2f7;border-radius:999px;overflow:hidden}.task-progress i{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#16a34a)}
.title-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.title-card{text-align:left;border:1px solid #edf1f5;border-radius:16px;background:#fff;padding:14px;display:grid;gap:8px}.title-card.active{border-color:#93c5fd;background:#f8fbff}.title-card strong{color:var(--title-color);font-size:16px}.title-card p{margin:0;color:#64748b;font-size:13px;line-height:1.5}.growth-user-card{margin-top:14px}
@media(max-width:760px){.growth-hero{align-items:flex-start;flex-direction:column}.task-grid,.title-grid{grid-template-columns:1fr}.growth-icon{width:72px;height:72px;font-size:34px}}


/* v39 等级称号任务后台增强 */
.growth-icon img,.growth-level-icon-large{width:58px;height:58px;object-fit:cover;border-radius:16px}
.growth-icon .growth-icon-emoji{font-size:42px}
.growth-icon-preview img,.growth-icon-preview .growth-icon-img{width:100%;height:100%;object-fit:cover}


/* v41 消息系统 + 积分系统 */
.message-list{display:flex;flex-direction:column;gap:12px}
.message-item{display:grid;grid-template-columns:10px 1fr auto;gap:14px;align-items:start;border:1px solid #edf0f5;border-radius:14px;background:#fff;padding:14px;box-shadow:var(--shadow)}
.message-item.unread{border-color:#b9e2ff;background:#f8fcff}
.message-dot{width:10px;height:10px;border-radius:50%;background:#cbd5e1;margin-top:8px}
.message-item.unread .message-dot{background:#22a9e8;box-shadow:0 0 0 4px #eaf6ff}
.message-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.message-title-row span,.message-meta{font-size:12px;color:#64748b}
.message-main p{margin:8px 0;line-height:1.7;color:#475569}
.message-meta{display:flex;gap:12px;flex-wrap:wrap}
.message-meta a{color:#1685da;font-weight:700}
.message-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.points-hero{display:flex;align-items:center;justify-content:space-between;gap:18px}
.points-balance{min-width:180px;border-radius:16px;background:linear-gradient(135deg,#22a9e8,#3178f6);color:#fff;padding:18px 22px;text-align:center;box-shadow:0 12px 32px rgba(49,120,246,.22)}
.points-balance span{display:block;opacity:.9;margin-bottom:6px}
.points-balance strong{font-size:34px;line-height:1}
.point-log-list{display:flex;flex-direction:column;gap:10px}
.point-log-item{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #edf0f5;border-radius:14px;background:#fff;padding:14px}
.point-log-item p{margin:5px 0 0;color:#64748b;font-size:12px}
.point-amount{text-align:right;font-weight:900;color:#16a34a;font-size:18px}
.point-log-item.minus .point-amount{color:#dc2626}
.point-amount small{display:block;color:#94a3b8;font-weight:500;font-size:12px;margin-top:3px}
.growth-progress-text a{color:#1685da;font-weight:900}
@media(max-width:760px){
    .message-item{grid-template-columns:10px 1fr;gap:10px}
    .message-actions{grid-column:2;justify-content:flex-start}
    .message-title-row{display:block}
    .points-hero{display:block}
    .points-balance{margin-top:14px;width:100%}
}


/* v43 API 文档 */
.api-doc-card{max-width:980px}
.api-doc-pre{white-space:pre-wrap;word-break:break-word;background:#0f172a;color:#e2e8f0;border-radius:14px;padding:18px;line-height:1.7;font-size:13px;overflow:auto}
.api-doc-pre code{color:#bfdbfe}


/* v45 API 文档主题优化 */
.api-hero-card{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:stretch;background:linear-gradient(135deg,#ffffff,#f8fbff);border:1px solid #edf0f5;border-radius:18px;box-shadow:var(--shadow);padding:22px;margin-bottom:18px}
.api-pill{display:inline-flex;align-items:center;width:max-content;background:#eaf6ff;color:#1685da;border:1px solid #b9e2ff;border-radius:999px;padding:6px 12px;font-weight:900;font-size:12px}.api-hero-card h1{font-size:30px;margin:14px 0 10px;color:#111827}.api-hero-card p{color:#64748b;line-height:1.8;margin:0}.api-hero-card code,.api-endpoint code,.api-info-card code,.api-login-box code{background:#eef7ff;color:#0f6db8;border:1px solid #d7edff;border-radius:8px;padding:2px 6px;font-family:Consolas,Menlo,monospace;font-size:12px}.api-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.api-login-box{background:#fff;border:1px solid #edf0f5;border-radius:16px;padding:18px;display:flex;flex-direction:column;justify-content:center}.api-login-title{font-weight:900;color:#111827;margin-bottom:10px}.api-login-box p{font-size:12px;margin-top:10px}.api-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}.api-sidebar{position:sticky;top:58px;background:#fff;border:1px solid #edf0f5;border-radius:16px;box-shadow:var(--shadow);padding:14px}.api-sidebar strong{display:block;margin:4px 8px 10px;color:#111827}.api-sidebar a{display:block;padding:10px 9px;border-radius:10px;color:#475569;font-weight:700}.api-sidebar a:hover{background:#f8fbff;color:#1685da}.api-main{display:flex;flex-direction:column;gap:16px}.api-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.api-info-card{background:#fff;border:1px solid #edf0f5;border-radius:14px;box-shadow:var(--shadow);padding:15px}.api-info-card b{display:block;color:#111827;margin-bottom:8px}.api-info-card span{color:#64748b}.api-response-card,.api-group-card{background:#fff;border:1px solid #edf0f5;border-radius:16px;box-shadow:var(--shadow);padding:18px}.api-response-card h2,.api-group-card h2{margin:0;color:#111827}.api-code-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.api-code-grid.single{grid-template-columns:1fr}.api-code-grid h3{font-size:14px;margin:0 0 8px;color:#334155}.api-code-grid pre,.api-param-box pre{margin:0;background:#f8fbff;border:1px solid #edf0f5;border-radius:12px;padding:13px;white-space:pre-wrap;word-break:break-word;overflow:auto}.api-code-grid code,.api-param-box code{font-family:Consolas,Menlo,monospace;color:#334155;font-size:12px;line-height:1.6}.api-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.api-group-head p{margin:8px 0 0;color:#64748b;line-height:1.7}.api-group-head span{background:#f8fbff;border:1px solid #edf0f5;border-radius:999px;padding:6px 10px;color:#64748b;font-size:12px;white-space:nowrap}.api-endpoint-list{display:flex;flex-direction:column;gap:12px}.api-endpoint{border:1px solid #edf0f5;background:#fcfdff;border-radius:14px;padding:14px}.api-endpoint-top{display:flex;align-items:center;gap:10px}.api-method{display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:24px;border-radius:999px;font-size:12px;font-weight:900}.api-method.get{background:#ecfdf5;color:#059669;border:1px solid #bbf7d0}.api-method.post{background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe}.api-endpoint p{margin:8px 0 12px;color:#64748b;line-height:1.7}.api-url-row{display:grid;grid-template-columns:74px minmax(0,1fr);gap:8px;align-items:start}.api-url-row span{font-size:12px;color:#94a3b8;padding-top:4px}.api-url-row code{display:block;overflow:auto;white-space:nowrap}.api-param-box{margin-top:10px}.api-param-box summary{cursor:pointer;color:#1685da;font-weight:900}.api-param-box pre{margin-top:8px}@media(max-width:900px){.api-hero-card{grid-template-columns:1fr}.api-layout{grid-template-columns:1fr}.api-sidebar{position:static}.api-info-grid,.api-code-grid{grid-template-columns:1fr}.api-hero-card h1{font-size:24px}}


/* v47.2 等级勋章佩戴效果：原始勋章按 156×58 适配 */
.level-medal-badge{display:inline-flex;align-items:center;justify-content:center;width:156px;height:58px;line-height:1;vertical-align:middle;flex:0 0 auto;background:transparent;border:0;padding:0;overflow:visible}
.level-medal-badge img,.level-medal-image{width:156px;height:58px;object-fit:contain;display:block;border-radius:0;background:transparent}
.level-medal-mini{display:inline-flex;align-items:center;justify-content:center;width:78px;height:29px;margin-left:6px;vertical-align:middle;line-height:1;background:transparent;border:0;padding:0;overflow:hidden;flex:0 0 auto}
.level-medal-mini img{width:78px;height:29px;object-fit:contain;display:block}
.growth-medal-preview,.level-medal-display{width:156px;height:58px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:transparent;border:0;border-radius:0}
.level-medal-card{align-content:start}.level-medal-card .btn{width:max-content}.level-medal-card strong{color:#172033}
@media(max-width:640px){.level-medal-badge{width:118px;height:44px}.level-medal-badge img{width:118px;height:44px}.growth-medal-preview,.level-medal-display{width:140px;height:52px}.level-medal-image{width:140px;height:52px}.level-medal-mini{width:70px;height:26px}.level-medal-mini img{width:70px;height:26px}}


/* v47.5 帖子列表等级勋章/称号自适应修复，避免移动端重叠 */
.post-top{flex-wrap:wrap!important;}
.post-top .username{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;flex:1 1 260px;line-height:1.5;}
.post-top .username-text{font-weight:700;color:#374151;min-width:0;max-width:100%;word-break:break-all;}
.post-top .level-mini,.post-top .title-mini,.post-top .level-medal-mini{margin-left:0!important;}
.post-top-tags{flex:1 1 100%;width:100%;margin-left:0;justify-content:flex-start!important;text-align:left;row-gap:6px;}
.level-medal-mini{width:72px;height:27px;}
.level-medal-mini img{width:72px;height:27px;object-fit:contain;display:block;}
@media(min-width:761px){
  .post-top{align-items:flex-start!important;}
  .post-top .username{flex:1 1 auto;}
  .post-top-tags{flex:0 1 auto;width:auto;margin-left:auto;justify-content:flex-end!important;text-align:right;}
}
@media(max-width:760px){
  .post-top{flex-direction:column;align-items:flex-start!important;gap:8px!important;}
  .post-top .username{width:100%;gap:5px 6px;}
  .post-top-tags{width:100%;justify-content:flex-start!important;gap:6px;}
  .post-top-tags .tag{max-width:100%;}
  .level-mini,.title-mini{font-size:10px;padding:1px 6px;}
  .level-medal-mini{width:64px;height:24px;}
  .level-medal-mini img{width:64px;height:24px;}
}


/* v47.6 全站佩戴勋章展示适配：详情页、用户主页、评论区统一不重叠 */
.author-row{align-items:flex-start;gap:12px;}
.author-row > div{min-width:0;flex:1;}
.author-growth-line,.user-growth-inline,.comment-userline{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    min-width:0;
    max-width:100%;
    line-height:1.45;
}
.author-growth-line .level-badge,
.author-growth-line .title-badge,
.author-growth-line .level-medal-badge,
.user-growth-inline .level-badge,
.user-growth-inline .title-badge,
.user-growth-inline .level-medal-badge{
    margin-left:0!important;
}
.comment-topline{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:10px!important;
    flex-wrap:wrap!important;
}
.comment-userline{
    flex:1 1 220px;
}
.comment-userline strong{
    min-width:0;
    max-width:100%;
    word-break:break-all;
}
.comment-time{
    flex:0 0 auto;
    color:#64748b;
    font-size:12px;
    white-space:nowrap;
}
.comment-userline .level-mini,
.comment-userline .title-mini,
.comment-userline .level-medal-mini{
    margin-left:0!important;
}
.user-title-block{min-width:0;}
.user-growth-inline{margin-top:8px;}
.user-profile-main{align-items:end;}
/* 详情页和用户主页用原始 156×58，空间不足时自动独占一行 */
.author-growth-line .level-medal-badge,
.user-growth-inline .level-medal-badge,
.growth-level-row .level-medal-badge{
    max-width:100%;
}
@media(max-width:760px){
    .author-row{
        display:flex!important;
        align-items:flex-start!important;
        gap:10px!important;
    }
    .author-growth-line,.user-growth-inline{
        gap:6px!important;
    }
    .author-growth-line .level-medal-badge,
    .user-growth-inline .level-medal-badge,
    .growth-level-row .level-medal-badge{
        width:118px!important;
        height:44px!important;
    }
    .author-growth-line .level-medal-badge img,
    .user-growth-inline .level-medal-badge img,
    .growth-level-row .level-medal-badge img{
        width:118px!important;
        height:44px!important;
    }
    .comment-topline{
        flex-direction:column;
        gap:6px!important;
    }
    .comment-userline{
        width:100%;
        flex:1 1 auto;
        gap:5px!important;
    }
    .comment-time{
        white-space:normal;
    }
    .user-profile-main{
        align-items:start!important;
    }
    .user-growth-inline .level-medal-badge{
        flex-basis:118px;
    }
}


/* v47.7 修复手机端帖子卡片顶部被用户名区域撑高的问题 */
.post-top .username{
    flex-basis:auto!important;
    min-height:0!important;
}
@media(max-width:760px){
    .post-top{
        flex-direction:column!important;
        align-items:flex-start!important;
        gap:6px!important;
        min-height:0!important;
    }
    .post-top .username{
        flex:0 1 auto!important;
        width:100%!important;
        min-height:0!important;
        line-height:1.35!important;
    }
    .post-top-tags{
        flex:0 1 auto!important;
        width:100%!important;
        min-height:0!important;
        margin-top:0!important;
    }
    .post-main{
        min-height:0!important;
    }
    .post-item{
        align-items:start!important;
    }
}


/* v47.8 彻底修复帖子卡片空白：重写帖子列表顶部布局，避免 flex-basis 在纵向布局撑高 */
.post-item{
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr) auto!important;
    align-items:start!important;
}
.post-item > a:first-child{
    grid-column:1!important;
    align-self:start!important;
}
.post-main{
    grid-column:2!important;
    align-self:start!important;
    min-width:0!important;
    min-height:0!important;
}
.post-top{
    display:flex!important;
    flex-direction:row!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:8px!important;
    width:100%!important;
    min-height:0!important;
    margin:0 0 6px!important;
}
.post-author-line{
    display:flex!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    min-width:0!important;
    flex:1 1 auto!important;
    line-height:1.35!important;
}
.post-author-line .username-text{
    font-size:13px!important;
    font-weight:700!important;
    color:#374151!important;
    min-width:0!important;
    max-width:100%!important;
    word-break:break-all!important;
}
.post-author-line .level-mini,
.post-author-line .title-mini,
.post-author-line .level-medal-mini{
    margin-left:0!important;
}
.post-top .username{
    display:contents!important;
    flex:initial!important;
    flex-basis:auto!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
}
.post-top-tags{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    flex:0 1 auto!important;
    text-align:right!important;
}
.level-medal-mini{
    width:64px!important;
    height:24px!important;
    margin-left:0!important;
    overflow:hidden!important;
}
.level-medal-mini img{
    width:64px!important;
    height:24px!important;
    object-fit:contain!important;
    display:block!important;
}
@media(max-width:760px){
    .post-item{
        grid-template-columns:38px minmax(0,1fr)!important;
        gap:9px!important;
        padding:12px!important;
    }
    .post-item > a:first-child{
        grid-column:1!important;
        grid-row:1!important;
    }
    .post-main{
        grid-column:2!important;
        grid-row:1!important;
    }
    .post-top{
        display:block!important;
        min-height:0!important;
        margin:0 0 7px!important;
    }
    .post-author-line{
        display:flex!important;
        align-items:center!important;
        flex-wrap:wrap!important;
        gap:5px 6px!important;
        width:100%!important;
        min-height:0!important;
        margin:0!important;
        padding:0!important;
        line-height:1.35!important;
    }
    .post-top-tags{
        display:flex!important;
        justify-content:flex-start!important;
        width:100%!important;
        margin:6px 0 0!important;
        min-height:0!important;
        gap:6px!important;
        text-align:left!important;
    }
    .post-author-line .username-text{
        font-size:12px!important;
    }
    .level-mini,.title-mini{
        font-size:10px!important;
        padding:1px 6px!important;
    }
    .level-medal-mini{
        width:58px!important;
        height:22px!important;
    }
    .level-medal-mini img{
        width:58px!important;
        height:22px!important;
    }
    .post-title{
        margin-top:0!important;
    }
    .post-item .time{
        grid-column:2!important;
        justify-self:end!important;
        text-align:right!important;
        margin-top:4px!important;
    }
}


/* v47.9 勋章按原图 156×58 比例统一适配：不裁剪、不变形，只等比例缩放 */
:root{
    --medal-ratio-w:156;
    --medal-ratio-h:58;
    --medal-post-list-w:78px;
    --medal-post-list-h:29px;
    --medal-author-w:110px;
    --medal-author-h:41px;
    --medal-comment-w:64px;
    --medal-comment-h:24px;
}
.level-medal-badge,
.level-medal-mini,
.level-medal-image,
.level-medal-display,
.growth-medal-preview{
    background:transparent!important;
    border:0!important;
    padding:0!important;
    overflow:hidden!important;
}
.level-medal-badge img,
.level-medal-mini img,
.level-medal-image{
    object-fit:contain!important;
    display:block!important;
    border-radius:0!important;
    background:transparent!important;
}
/* 勋章墙/预览保留原始 156×58 展示 */
.level-medal-display,
.growth-medal-preview,
.level-medal-image{
    width:156px!important;
    height:58px!important;
}
/* 帖子列表：缩小但保持 156:58 比例 */
.post-author-line .level-medal-mini,
.post-author-line .level-medal-mini img,
.post-top .level-medal-mini,
.post-top .level-medal-mini img{
    width:var(--medal-post-list-w)!important;
    height:var(--medal-post-list-h)!important;
}
/* 帖子详情/用户主页/成长中心顶部：中等尺寸，保持 156:58 比例 */
.author-growth-line .level-medal-badge,
.author-growth-line .level-medal-badge img,
.user-growth-inline .level-medal-badge,
.user-growth-inline .level-medal-badge img,
.growth-level-row .level-medal-badge,
.growth-level-row .level-medal-badge img{
    width:var(--medal-author-w)!important;
    height:var(--medal-author-h)!important;
}
/* 评论区：小尺寸，保持 156:58 比例 */
.comment-userline .level-medal-mini,
.comment-userline .level-medal-mini img{
    width:var(--medal-comment-w)!important;
    height:var(--medal-comment-h)!important;
}
/* 详情页、用户主页、评论区整体紧凑化 */
.author-row{align-items:flex-start!important;gap:10px!important;margin-bottom:12px!important;}
.author-row .avatar{width:40px!important;height:40px!important;}
.author-row>div{min-width:0!important;flex:1!important;}
.author-growth-line,.user-growth-inline,.growth-level-row,.comment-userline{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;line-height:1.4!important;min-width:0!important;}
.author-growth-line .level-badge,.author-growth-line .title-badge,.user-growth-inline .level-badge,.user-growth-inline .title-badge,.growth-level-row .level-badge,.growth-level-row .title-badge{padding:3px 8px!important;font-size:11px!important;}
.user-cover{height:150px!important;}
.user-profile-main{grid-template-columns:84px minmax(0,1fr) auto!important;gap:12px!important;padding:0 18px 14px!important;margin-top:-42px!important;align-items:end!important;}
.user-avatar-lg{width:84px!important;height:84px!important;border-radius:22px!important;border-width:4px!important;}
.user-title-block{min-width:0!important;}
.user-title-block h1{font-size:24px!important;margin:0 0 6px!important;}
.user-subline{font-size:12px!important;line-height:1.55!important;}
.user-stats div{padding:12px 8px!important;}
.user-stats b{font-size:20px!important;}
.comment-list-item{gap:10px!important;padding:12px 18px!important;}
.comment-list-item .avatar{width:36px!important;height:36px!important;}
.comment-topline{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important;}
.comment-userline{flex:1 1 220px!important;gap:5px!important;}
.comment-userline strong{word-break:break-all;}
.comment-time{flex:0 0 auto;color:#64748b;font-size:12px;white-space:nowrap;}
.detail-card{padding:18px!important;}
.detail-title{font-size:24px!important;margin-bottom:10px!important;}
.content{font-size:15px!important;line-height:1.8!important;}
@media(max-width:760px){
    :root{
        --medal-post-list-w:62px;
        --medal-post-list-h:23px;
        --medal-author-w:94px;
        --medal-author-h:35px;
        --medal-comment-w:52px;
        --medal-comment-h:19px;
    }
    .detail-card{padding:13px!important;border-radius:14px!important;}
    .detail-title{font-size:20px!important;line-height:1.35!important;}
    .author-row{gap:8px!important;margin-bottom:10px!important;}
    .author-row .avatar{width:34px!important;height:34px!important;}
    .author-growth-line .level-badge,.author-growth-line .title-badge,.user-growth-inline .level-badge,.user-growth-inline .title-badge{font-size:10px!important;padding:2px 6px!important;}
    .user-cover{height:118px!important;}
    .user-profile-main{grid-template-columns:64px minmax(0,1fr)!important;gap:10px!important;padding:0 13px 13px!important;margin-top:-32px!important;align-items:start!important;}
    .user-avatar-lg{width:64px!important;height:64px!important;border-radius:18px!important;border-width:3px!important;}
    .user-title-block h1{font-size:20px!important;margin-bottom:5px!important;}
    .user-badges{grid-column:1/-1!important;margin-top:2px!important;}
    .user-stats{grid-template-columns:repeat(2,1fr)!important;}
    .user-stats div{padding:10px 6px!important;}
    .user-stats b{font-size:18px!important;}
    .comment-list-item{padding:11px 13px!important;gap:8px!important;}
    .comment-list-item .avatar{width:32px!important;height:32px!important;}
    .comment-topline{flex-direction:column!important;gap:6px!important;}
    .comment-userline{width:100%!important;flex:1 1 auto!important;}
    .comment-time{white-space:normal!important;}
    .content{font-size:14px!important;line-height:1.75!important;}
}


/* v47.13 采集器源帖格式渲染 */
.content .collector-post-html{line-height:1.85;color:#334155;word-break:break-word;overflow:hidden}
.content .collector-post-html p,.content .collector-post-html div{margin:.55em 0}
.content .collector-post-html h1,.content .collector-post-html h2,.content .collector-post-html h3{margin:1em 0 .55em;color:#0f172a;line-height:1.35}
.content .collector-post-html h1{font-size:1.45em}.content .collector-post-html h2{font-size:1.28em}.content .collector-post-html h3{font-size:1.15em}
.content .collector-post-html img{display:block;max-width:100%;height:auto;margin:10px auto;border-radius:8px;border:1px solid #edf0f5;background:#f8fbff}
.content .collector-post-html blockquote{margin:12px 0;padding:10px 12px;border-left:4px solid #93c5fd;background:#f8fbff;border-radius:8px;color:#475569}
.content .collector-post-html pre{white-space:pre-wrap;word-break:break-word;background:#0f172a;color:#e2e8f0;border-radius:10px;padding:12px;overflow:auto}
.content .collector-post-html code{font-family:Consolas,Menlo,Monaco,monospace}
.content .collector-post-html ul,.content .collector-post-html ol{padding-left:1.35em;margin:.55em 0}
.content .collector-post-html table{width:100%;border-collapse:collapse;margin:10px 0;overflow:auto;display:block}
.content .collector-post-html td,.content .collector-post-html th{border:1px solid #e5edf7;padding:6px 8px}
.collector-preview-box{border:1px solid #edf0f5;background:#fff;border-radius:12px;padding:14px;max-height:520px;overflow:auto}


/* v47.14 板块分区 + 置顶专区功能 */
.pinned-board-panel{
    background:#fff;
    border:1px solid #edf0f5;
    border-radius:14px;
    box-shadow:var(--shadow);
    margin:12px 0 14px;
    overflow:hidden;
}
.pinned-board-head{
    padding:12px 16px;
    font-weight:900;
    color:#172033;
    border-bottom:1px solid #eef2f7;
    background:linear-gradient(135deg,#fff,#f8fbff);
}
.pinned-board-list{display:flex;flex-direction:column}
.pinned-row{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 16px;
    border-bottom:1px solid #f1f5f9;
    color:#172033;
    min-width:0;
}
.pinned-row:last-child{border-bottom:0}
.pinned-row:hover{background:#fbfdff}
.pin-label{
    flex:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    padding:2px 8px;
    border-radius:6px;
    font-size:12px;
    font-weight:900;
    color:#c2410c;
    background:#fff7ed;
    border:1px solid #fed7aa;
}
.pin-label.global{
    color:#1685da;
    background:#eef7ff;
    border-color:#b9e2ff;
}
.pin-title{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:800;
}
.board-category-tabs{
    overflow:auto;
    flex-wrap:nowrap;
    padding-bottom:2px;
}
.board-category-tabs a{
    white-space:nowrap;
}
.category-chip-grid{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.category-chip{
    cursor:pointer;
}
.category-chip input{
    display:none;
}
.category-chip span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:96px;
    padding:10px 18px;
    border-radius:999px;
    border:1px solid #cfd8e3;
    background:#fff;
    color:#64748b;
    font-weight:800;
}
.category-chip input:checked + span{
    border-color:#16a34a;
    color:#16a34a;
    background:#f0fdf4;
    box-shadow:0 0 0 3px rgba(34,197,94,.10);
}
.required-star{color:#ef4444}
.category-tag{background:#f0fdf4;border-color:#bbf7d0;color:#16a34a}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.form-grid .full{grid-column:1/-1}
@media(max-width:760px){
    .pinned-board-head{padding:10px 12px}
    .pinned-row{padding:11px 12px;gap:8px}
    .pin-label{font-size:11px;min-width:38px;padding:2px 6px}
    .pin-title{font-size:14px}
    .board-category-tabs{margin-left:-2px;margin-right:-2px}
    .category-chip-grid{gap:8px}
    .category-chip span{min-width:88px;padding:8px 14px}
    .form-grid{grid-template-columns:1fr}
}


/* v47.18 分区批量操作 */
.batch-toolbar{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:14px;
    padding:10px 12px;
    border:1px solid #edf0f5;
    border-radius:12px;
    background:#f8fbff;
}
.check-all-line{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-weight:800;
    color:#334155;
}
.category-batch-form .table input[type="checkbox"],
.batch-toolbar input[type="checkbox"]{
    width:16px;
    height:16px;
}
@media(max-width:760px){
    .batch-toolbar{align-items:flex-start;flex-direction:column}
}


/* v47.21 后台帖子管理优化：取消新增表单，选中后才显示批量操作 */
.admin-post-search-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
.admin-post-search-grid .full{grid-column:1/-1}
.admin-post-list-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}
.post-batch-panel{
    border:1px solid #d7e8ff;
    background:linear-gradient(135deg,#f7fbff,#ffffff);
    border-radius:16px;
    padding:14px;
    margin:0 0 14px;
    box-shadow:0 8px 22px rgba(22,133,218,.08);
}
.post-batch-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
}
.post-batch-group{
    border:1px solid #eef2f7;
    background:#fff;
    border-radius:12px;
    padding:12px;
    margin-top:10px;
}
.post-batch-group-title{
    font-weight:900;
    color:#172033;
    margin-bottom:8px;
}
.post-batch-row{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.post-batch-row select{
    min-width:160px;
}
.post-batch-danger{
    display:flex;
    justify-content:flex-end;
    margin-top:12px;
}
.admin-post-table tr.row-selected td{
    background:#f0f8ff;
}
.admin-post-table input[type="checkbox"],
.check-all-line input[type="checkbox"]{
    width:16px;
    height:16px;
}
@media(max-width:900px){
    .admin-post-search-grid{grid-template-columns:1fr}
    .admin-post-list-head{display:block}
    .post-batch-row{display:grid;grid-template-columns:1fr}
    .post-batch-row select,.post-batch-row button{width:100%}
    .post-batch-title{align-items:flex-start;flex-direction:column}
    .post-batch-danger{justify-content:stretch}
    .post-batch-danger .btn{width:100%}
}


/* v47.23 批量操作弹窗化 */
.post-batch-panel.compact{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
}
.post-batch-operator{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.post-batch-operator select{
    min-width:220px;
}
.batch-modal-mask{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.46);
    z-index:9998;
}
.batch-modal{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:min(560px,calc(100vw - 28px));
    max-height:calc(100vh - 60px);
    overflow:auto;
    background:#fff;
    border-radius:18px;
    box-shadow:0 24px 80px rgba(15,23,42,.28);
    z-index:9999;
    border:1px solid #e5eef7;
}
.batch-modal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:16px 18px;
    border-bottom:1px solid #eef2f7;
}
.batch-modal-head h3{
    margin:0;
    font-size:18px;
}
.modal-close{
    border:0;
    background:#f1f5f9;
    color:#334155;
    width:32px;
    height:32px;
    border-radius:50%;
    font-size:22px;
    line-height:1;
    cursor:pointer;
}
.batch-modal-body{
    padding:18px;
}
.batch-modal-body label{
    display:block;
    margin:0 0 8px;
    font-weight:800;
    color:#334155;
}
.batch-modal-body select,
.batch-modal-body input{
    width:100%;
}
.batch-modal-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.batch-modal-foot{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    padding:14px 18px 18px;
    border-top:1px solid #eef2f7;
}
.danger-modal .batch-modal-head h3{
    color:#dc2626;
}
@media(max-width:760px){
    .post-batch-panel.compact{
        align-items:stretch;
        flex-direction:column;
    }
    .post-batch-operator{
        display:grid;
        grid-template-columns:1fr;
        width:100%;
    }
    .post-batch-operator select,
    .post-batch-operator button{
        width:100%;
    }
    .batch-modal-grid{
        grid-template-columns:1fr;
    }
    .batch-modal-foot{
        flex-direction:column;
    }
    .batch-modal-foot .btn{
        width:100%;
    }
}


/* v47.24 通用后台批量操作：选择后显示操作，下拉后弹窗 */
.admin-batch-panel.compact{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    border:1px solid #d7e8ff;
    background:linear-gradient(135deg,#f7fbff,#ffffff);
    border-radius:16px;
    padding:14px;
    margin:0 0 14px;
    box-shadow:0 8px 22px rgba(22,133,218,.08);
}
.admin-batch-panel[hidden]{display:none!important}
.admin-batch-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-batch-operator{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-batch-operator select{min-width:220px}
.admin-row-selected td{background:#f0f8ff!important}
.admin-batch-modal-mask{position:fixed;inset:0;background:rgba(15,23,42,.46);z-index:9998}
.admin-batch-modal-mask[hidden]{display:none!important}
.admin-batch-modal{
    position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);
    width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 60px);overflow:auto;
    background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(15,23,42,.28);
    z-index:9999;border:1px solid #e5eef7;
}
.admin-batch-modal[hidden]{display:none!important}
.admin-batch-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #eef2f7}
.admin-batch-modal-head h3{margin:0;font-size:18px}
.admin-batch-modal-body{padding:18px}
.admin-batch-modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px 18px;border-top:1px solid #eef2f7}
.admin-batch-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.admin-batch-modal-body label{display:block;margin:0 0 8px;font-weight:800;color:#334155}
.admin-batch-modal-body select,.admin-batch-modal-body input{width:100%}
.admin-modal-close{border:0;background:#f1f5f9;color:#334155;width:32px;height:32px;border-radius:50%;font-size:22px;line-height:1;cursor:pointer}
.admin-batch-check{width:16px;height:16px}
@media(max-width:760px){
    .admin-batch-panel.compact{align-items:stretch;flex-direction:column}
    .admin-batch-operator{display:grid;grid-template-columns:1fr;width:100%}
    .admin-batch-operator select,.admin-batch-operator button{width:100%}
    .admin-batch-modal-grid{grid-template-columns:1fr}
    .admin-batch-modal-foot{flex-direction:column}
    .admin-batch-modal-foot .btn{width:100%}
}


/* v47.67 帖子图片大图预览 */
.content img,
.collector-preview-box img,
.post-detail-card img.post-image-clickable{
    cursor: zoom-in;
}
.image-preview-mask{
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(2,6,23,.88);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px;
}
.image-preview-mask[hidden]{display:none!important}
.image-preview-inner{
    position:relative;
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}
.image-preview-inner img{
    max-width:96vw;
    max-height:92vh;
    object-fit:contain;
    border-radius:12px;
    box-shadow:0 22px 60px rgba(0,0,0,.45);
    background:#fff;
}
.image-preview-close{
    position:fixed;
    top:18px;
    right:18px;
    width:42px;
    height:42px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.25);
    background:rgba(15,23,42,.72);
    color:#fff;
    font-size:28px;
    line-height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}
.image-preview-tip{
    position:fixed;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    color:#e5e7eb;
    background:rgba(15,23,42,.62);
    border:1px solid rgba(255,255,255,.16);
    border-radius:999px;
    padding:8px 14px;
    font-size:13px;
}
@media(max-width:760px){
    .image-preview-mask{padding:10px}
    .image-preview-close{top:12px;right:12px;width:38px;height:38px;font-size:24px}
    .image-preview-inner img{max-width:100vw;max-height:88vh;border-radius:8px}
}

.image-grid img{cursor:zoom-in}


/* v47.70 视频同款：帖子图片居中预览，不跳新页面 */
.content img,.image-grid img,.collector-preview-box img{cursor:zoom-in}
.xw-img-preview70{
    position:fixed;
    inset:0;
    z-index:10020;
    background:rgba(15,23,42,.58);
    backdrop-filter:blur(1px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
}
.xw-img-preview70[hidden]{display:none!important}
.xw-img-stage70{
    position:relative;
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}
.xw-img-stage70 img{
    max-width:92vw;
    max-height:82vh;
    object-fit:contain;
    border-radius:8px;
    box-shadow:0 18px 55px rgba(0,0,0,.38);
    background:#fff;
}
.xw-img-close70{
    position:fixed;
    top:16px;
    right:16px;
    width:40px;
    height:40px;
    border:0;
    border-radius:999px;
    background:rgba(15,23,42,.72);
    color:#fff;
    font-size:28px;
    line-height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}
@media(max-width:760px){
    .xw-img-preview70{padding:8px}
    .xw-img-stage70 img{max-width:96vw;max-height:78vh;border-radius:6px}
    .xw-img-close70{top:12px;right:12px;width:38px;height:38px}
}


/* v47.74 图片加载失败不撑满页面 */
img.img-load-error{
    opacity:.45;
    background:#eaf4ff;
    object-fit:contain!important;
}
