/* 社区帖子列表卡片 + 详情 */
.cp-card{
    background:#fff;border-radius:16px;padding:14px 14px 12px;
    box-shadow:0 2px 12px rgba(0,0,0,.04);margin-bottom:12px;
}
.cp-card-hd{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px;}
.cp-av{
    width:42px;height:42px;border-radius:50%;flex-shrink:0;
    background:linear-gradient(135deg,#6FB4BC,#FFF0DE);
    color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:15px;overflow:hidden;
}
.cp-av img{width:100%;height:100%;object-fit:cover;display:block;}
.cp-user{flex:1;min-width:0;}
.cp-name{font-size:14px;font-weight:700;color:#e8872e;line-height:1.3;}
.cp-date{font-size:12px;color:#a1a1aa;margin-top:3px;}
.cp-more{
    width:28px;height:28px;border:0;background:transparent;color:#a1a1aa;
    font-size:18px;line-height:1;padding:0;flex-shrink:0;
}
.cp-featured-tag{
    display:inline-flex;align-items:center;gap:4px;
    padding:2px 8px;border-radius:6px;margin-bottom:8px;
    background:#e8f7fa;color:#2aa8b8;font-size:12px;font-weight:700;
}
.cp-title{font-size:16px;font-weight:800;color:#111;line-height:1.45;margin:0 0 8px;}
.cp-title a{color:inherit;text-decoration:none;}
.cp-excerpt{font-size:14px;line-height:1.55;color:#71717a;margin-bottom:10px;}
.cp-img-grid{
    display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:12px;
}
.cp-img-cell{
    position:relative;border-radius:10px;overflow:hidden;background:#f4f4f5;
    aspect-ratio:3/4;
}
.cp-img-cell img,.cp-img-cell video{width:100%;height:100%;object-fit:cover;display:block;}
.cp-img-more{
    position:absolute;inset:0;background:rgba(0,0,0,.45);
    color:#fff;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;
}
.cp-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid #f4f4f5;}
.cp-board-tag{
    display:inline-flex;align-items:center;gap:4px;
    padding:4px 10px;border-radius:999px;background:#f4f4f5;color:#52525b;
    font-size:12px;font-weight:600;text-decoration:none;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.cp-stats{display:flex;align-items:center;gap:14px;color:#a1a1aa;font-size:12px;}
.cp-stat{display:inline-flex;align-items:center;gap:4px;}
.cp-stat svg{width:16px;height:16px;display:block;}

/* 详情页 */
.pd-page{background:#f3f5f8;min-height:100vh;padding-bottom:calc(72px + env(safe-area-inset-bottom));}
.pd-nav{
    position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:8px;
    padding:10px 12px;background:#fff;border-bottom:1px solid #f0f0f2;
}
.pd-nav a,.pd-nav button{
    width:34px;height:34px;border:0;border-radius:50%;background:transparent;
    display:flex;align-items:center;justify-content:center;font-size:20px;color:#333;text-decoration:none;
}
.pd-nav h1{flex:1;text-align:center;font-size:17px;font-weight:700;margin:0;}
.pd-main{padding:12px;}
.pd-card{background:#fff;border-radius:16px;padding:16px 14px;box-shadow:0 2px 12px rgba(0,0,0,.04);}
.pd-title{font-size:20px;font-weight:800;color:#111;line-height:1.4;margin:0 0 14px;}
.pd-user-row{display:flex;align-items:flex-start;gap:10px;margin-bottom:16px;position:relative;}
.pd-user-row .cp-av{width:44px;height:44px;}
.pd-user-row .cp-name{font-size:15px;}
.pd-stamp{
    position:absolute;right:0;top:0;
    width:54px;height:54px;border:2px solid #e74c3c;border-radius:8px;
    color:#e74c3c;font-size:14px;font-weight:900;display:flex;align-items:center;justify-content:center;
    transform:rotate(12deg);opacity:.88;letter-spacing:2px;
    background:rgba(255,255,255,.85);
}
.pd-body{font-size:15px;line-height:1.7;color:#27272a;}
.pd-body .pd-text{margin:0 0 14px;white-space:pre-wrap;word-break:break-word;}
.pd-body .pd-img,.pd-body .pd-vid{
    width:100%;border-radius:12px;margin:0 0 14px;display:block;background:#f4f4f5;overflow:hidden;
}
.pd-body .pd-img img,.pd-body .pd-vid video{width:100%;display:block;}
.pd-board-center{text-align:center;margin:18px 0 6px;}
.pd-board-center .cp-board-tag{display:inline-flex;max-width:80%;}
.pd-cmt-sec{background:#fff;border-radius:16px;margin-top:12px;padding:14px;box-shadow:0 2px 12px rgba(0,0,0,.04);}
.pd-cmt-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:15px;font-weight:700;}
.pd-cmt-hd span{color:#a1a1aa;font-size:12px;font-weight:500;}
.pd-cmt-sec .cmt-item{padding:12px 0;border-bottom:1px solid #f4f4f5;}
.pd-cmt-sec .cmt-item:last-child{border-bottom:0;}
.pd-cmt-sec .cmt-user{font-size:13px;font-weight:600;color:#52525b;margin-bottom:4px;}
.pd-cmt-sec .cmt-body{font-size:14px;line-height:1.55;color:#27272a;}
.pd-cmt-sec .cmt-time{font-size:11px;color:#a1a1aa;margin-top:6px;}
.pd-cmt-sec .cmt-empty{text-align:center;padding:24px;color:#a1a1aa;font-size:13px;}
.pd-bar{
    position:fixed;left:0;right:0;bottom:0;z-index:30;
    display:flex;align-items:center;gap:10px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));
    background:#fff;border-top:1px solid #eee;box-shadow:0 -2px 12px rgba(0,0,0,.04);
}
.pd-bar-compose{
    flex:1;min-width:0;display:flex;align-items:center;gap:8px;
    background:#f4f4f5;border-radius:999px;padding:4px 4px 4px 14px;
}
.pd-bar-inp{
    flex:1;min-width:0;border:0;background:transparent;
    padding:8px 0;font-size:14px;outline:none;
}
.pd-bar-send{
    flex-shrink:0;border:0;border-radius:999px;padding:7px 14px;
    background:#6FB4BC;color:#fff;font-size:13px;font-weight:700;cursor:pointer;
}
.pd-bar-send:disabled{opacity:.55;cursor:not-allowed;}
.pd-bar-acts{display:flex;align-items:center;gap:12px;color:#71717a;flex-shrink:0;}
.pd-bar-btn{
    border:0;background:transparent;padding:0;display:flex;align-items:center;gap:3px;
    font-size:12px;color:#71717a;cursor:pointer;position:relative;
}
.pd-bar-btn.on{color:#6FB4BC;}
.pd-bar-btn svg{width:22px;height:22px;display:block;}
.pd-bar-badge{
    position:absolute;top:-4px;right:-6px;min-width:14px;height:14px;padding:0 3px;
    border-radius:7px;background:#ff4d4f;color:#fff;font-size:9px;font-weight:700;
    display:flex;align-items:center;justify-content:center;line-height:1;
}

/* 块编辑器 */
.ce-page{padding:12px 12px calc(var(--tabbar-offset) + 12px);}
.ce-top{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.ce-top a{width:34px;height:34px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 1px 4px rgba(0,0,0,.06);text-decoration:none;color:#333;}
.ce-top h1{font-size:17px;font-weight:700;flex:1;}
.ce-card{background:#fff;border-radius:16px;padding:14px;box-shadow:0 2px 10px rgba(0,0,0,.04);}
.ce-row{margin-bottom:14px;}
.ce-row label{display:block;font-size:13px;font-weight:600;margin-bottom:8px;color:#52525b;}
.ce-row select{width:100%;padding:10px 12px;border:1px solid #e4e4e7;border-radius:10px;font-size:14px;background:#fff;}
.ce-blocks{display:flex;flex-direction:column;gap:10px;}
.ce-block{border:1px solid #ececf0;border-radius:12px;padding:10px;background:#fafafa;}
.ce-block textarea{
    width:100%;min-height:88px;border:0;background:transparent;resize:vertical;
    outline:none;font-size:15px;line-height:1.55;
}
.ce-block-img img{max-width:100%;border-radius:10px;display:block;}
.ce-block-vid video{width:100%;max-height:240px;border-radius:10px;display:block;background:#111;}
.ce-block-media{margin-bottom:8px;}
.ce-block-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
.ce-btn{
    border:0;border-radius:8px;padding:7px 12px;font-size:12px;font-weight:600;cursor:pointer;
    background:#f4f4f5;color:#52525b;
}
.ce-btn.primary{background:#6FB4BC;color:#fff;}
.ce-btn.danger{background:#fff1f2;color:#e11d48;}
.ce-toolbar{display:flex;gap:8px;margin-top:12px;}
.ce-submit{
    width:100%;border:0;border-radius:12px;padding:13px;font-size:15px;font-weight:700;color:#fff;
    background:#6FB4BC;cursor:pointer;margin-top:12px;
}
.ce-err{background:#fff1f2;color:#e11d48;padding:10px 12px;border-radius:10px;font-size:13px;margin-bottom:12px;}
