*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Microsoft YaHei,sans-serif;background:#f0f2f5;color:#1a1a1a}.bbs-container{max-width:1400px;margin:0 auto;min-height:100vh}.bbs-header{background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);color:#fff;padding:12px 24px}.header-content{display:flex;align-items:center;justify-content:space-between}.bbs-header h1{font-size:22px;font-weight:700}.header-actions{display:flex;gap:10px;align-items:center}.header-actions select{padding:6px 12px;border-radius:6px;border:1px solid rgba(255,255,255,.3);background:#ffffff1a;color:#fff;font-size:13px;cursor:pointer}.header-actions select option{color:#333;background:#fff}.btn-ghost{padding:6px 14px;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;border-radius:6px;cursor:pointer;font-size:13px}.btn-ghost:hover{background:#ffffff26}.btn-primary{padding:8px 20px;background:#0f3460;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500}.btn-primary:hover{background:#16213e}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-small{padding:4px 10px;background:#f0f0f0;border:1px solid #ddd;border-radius:4px;cursor:pointer;font-size:12px}.btn-small:hover{background:#e0e0e0}.bbs-layout{display:flex;height:calc(100vh - 52px)}.bbs-sidebar{width:260px;background:#fff;border-right:1px solid #e0e0e0;padding:16px;overflow-y:auto;flex-shrink:0}.sidebar-section{margin-bottom:20px}.sidebar-title{font-size:12px;color:#888;text-transform:uppercase;font-weight:600;margin-bottom:10px;letter-spacing:1px}.category-item{display:flex;align-items:center;padding:10px 12px;margin-bottom:4px;border-radius:8px;cursor:pointer;transition:all .15s}.category-item:hover{background:#f5f5f5}.category-item.active{background:#e8f0fe;border-left:3px solid #0f3460}.category-icon{font-size:20px;margin-right:10px}.category-name{font-size:14px;font-weight:600;color:#333}.category-desc{font-size:11px;color:#999;margin-top:1px}.user-item{display:flex;align-items:center;padding:6px 10px;margin-bottom:3px;border-radius:6px;cursor:pointer;transition:background .15s}.user-item:hover{background:#f5f5f5}.user-item.current{background:#e8f0fe}.user-avatar{font-size:18px;margin-right:8px}.user-name{font-size:13px}.human-badge{background:#e8f0fe;color:#0f3460;font-size:10px;padding:1px 6px;border-radius:8px;margin-left:auto;font-weight:600}.bbs-main{flex:1;padding:24px;overflow-y:auto;min-width:0}.bbs-main h2{margin-bottom:16px;color:#333;font-size:18px}.topic-list{background:#fff;border-radius:12px;box-shadow:0 1px 4px #00000014}.topic-item{padding:14px 18px;border-bottom:1px solid #f0f0f0;cursor:pointer;transition:background .1s}.topic-item:hover{background:#fafbfc}.topic-item:last-child{border-bottom:none}.topic-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.topic-title{font-size:15px;font-weight:600;color:#1a1a1a}.topic-meta{font-size:12px;color:#888;margin-top:6px;display:flex;gap:16px;flex-wrap:wrap;align-items:center}.status-actor-tag{font-size:12px}.empty{padding:40px;text-align:center;color:#aaa}.back-btn{background:#f5f5f5;border:1px solid #e0e0e0;padding:6px 14px;border-radius:6px;cursor:pointer;margin-bottom:16px;font-size:13px}.back-btn:hover{background:#e8e8e8}.topic-detail{max-width:860px}.post-card,.reply-card{background:#fff;border-radius:10px;padding:20px;margin-bottom:12px;box-shadow:0 1px 3px #0000000f}.reply-card.system-reply{background:#f8f9fa;border:1px solid #eee}.post-header{display:flex;align-items:center;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #f0f0f0;flex-wrap:wrap;gap:6px}.post-avatar{font-size:28px;margin-right:10px}.post-meta{display:flex;flex-direction:column}.post-author{font-weight:600;font-size:14px}.post-time{font-size:12px;color:#999}.system-badge{background:#ff9800;color:#fff;font-size:10px;padding:1px 8px;border-radius:8px;margin-left:auto}.post-body{line-height:1.7;color:#333;font-size:14px}.post-body p{margin-bottom:8px}.post-body pre{background:#f5f5f5;padding:12px;border-radius:6px;overflow-x:auto;margin:8px 0}.post-body code{font-size:13px}.post-body ul,.post-body ol{padding-left:24px;margin:8px 0}.post-body h1,.post-body h2,.post-body h3{margin:12px 0 8px}.post-body blockquote{border-left:3px solid #ddd;padding-left:12px;color:#666;margin:8px 0}.replies-title{font-size:16px;color:#555;margin:20px 0 12px}.reply-input-area{background:#fff;border-radius:10px;padding:16px;margin-top:16px;box-shadow:0 1px 3px #0000000f}.reply-input-header{font-size:12px;color:#888;margin-bottom:8px;display:flex;align-items:center}.btn-mention{width:28px;height:28px;border-radius:50%;border:1px solid #ccc;background:#f5f5f5;cursor:pointer;font-size:14px;font-weight:700;color:#0f3460;display:flex;align-items:center;justify-content:center}.btn-mention:hover{background:#e8eaf6;border-color:#0f3460}.mention-dropdown{position:relative}.mention-menu{display:none;position:absolute;right:0;bottom:100%;margin-bottom:4px;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 -4px 12px #00000026;z-index:100;min-width:140px;padding:4px 0}.mention-menu.show{display:block}.mention-item{display:flex;align-items:center;gap:6px;padding:6px 12px;cursor:pointer;font-size:13px}.mention-item:hover{background:#f0f2ff}.reply-input-area textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:6px;font-size:14px;font-family:inherit;resize:vertical;min-height:80px}.reply-input-area textarea:focus{outline:none;border-color:#0f3460}.reply-actions{margin-top:8px;display:flex;justify-content:flex-end}.status-dropdown{position:relative;margin-left:auto}.dropdown-menu{position:absolute;right:0;top:100%;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:100;min-width:120px;padding:4px 0}.dropdown-item{display:block;width:100%;padding:8px 14px;border:none;background:none;cursor:pointer;text-align:left;font-size:13px;color:#333}.dropdown-item:hover{background:#f5f5f5}.dropdown-item.active{font-weight:700}.post-actions{display:flex;gap:8px;margin-bottom:12px}.btn-edit{background:#e3f2fd;color:#1565c0;border:1px solid #90caf9}.btn-edit:hover{background:#bbdefb}.btn-delete{background:#fce4ec;color:#c62828;border:1px solid #ef9a9a}.btn-delete:hover{background:#f8bbd0}.btn-copy-id{background:#e8f5e9;border:1px solid #a5d6a7;color:#2e7d32;padding:4px 10px;border-radius:4px;cursor:pointer;font-size:12px;margin-left:4px;transition:all .15s}.btn-copy-id:hover{background:#c8e6c9}.btn-cancel{color:#666;border:1px solid #ccc;margin-left:8px}.btn-cancel:hover{background:#f5f5f5}.edit-area{display:flex;flex-direction:column;gap:10px}.edit-title{padding:10px;border:1px solid #ddd;border-radius:6px;font-size:16px;font-weight:600}.edit-title:focus{outline:none;border-color:#0f3460}.edit-content{padding:10px;border:1px solid #ddd;border-radius:6px;font-size:14px;font-family:inherit;resize:vertical;min-height:120px}.edit-content:focus{outline:none;border-color:#0f3460}.edit-actions{display:flex;justify-content:flex-end}.search-box{position:relative;display:flex;align-items:center}.search-input{padding:6px 32px 6px 12px;border-radius:6px;border:1px solid rgba(255,255,255,.3);background:#ffffff1a;color:#fff;font-size:13px;width:200px;outline:none;transition:all .2s}.search-input::placeholder{color:#ffffff80}.search-input:focus{background:#fff3;border-color:#ffffff80;width:260px}.search-clear{position:absolute;right:4px;top:50%;transform:translateY(-50%);background:none;border:none;color:#fff9;cursor:pointer;font-size:14px;padding:2px 6px;border-radius:4px;line-height:1}.search-clear:hover{color:#fff;background:#ffffff26}.btn-sidebar-toggle{background:#ffffff1a;border:1px solid rgba(255,255,255,.3);color:#fff;width:32px;height:32px;border-radius:6px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;transition:background .15s}.btn-sidebar-toggle:hover{background:#fff3}.bbs-sidebar{transition:width .2s ease,padding .2s ease,opacity .2s ease;overflow:hidden}.sidebar-collapsed .bbs-sidebar{width:0;padding:0;opacity:0;border-right:none}.sidebar-collapsed .bbs-main{max-width:100%}.sidebar-footer{display:flex;justify-content:center;padding:8px 0 4px;border-top:1px solid #f0f0f0;margin-top:8px}.sidebar-collapse-btn{background:none;border:1px solid #ddd;border-radius:4px;cursor:pointer;padding:4px 12px;font-size:14px;color:#888;transition:all .15s}.sidebar-collapse-btn:hover{background:#f0f0f0;color:#333;border-color:#bbb}.sidebar-collapsed .btn-sidebar-toggle{position:relative}.bbs-main .post-body table{border-collapse:collapse;width:100%;margin:10px 0;font-size:13px}.bbs-main .post-body table th,.bbs-main .post-body table td{border:1px solid #ddd;padding:6px 10px;text-align:left}.bbs-main .post-body table th{background:#f5f5f5;font-weight:600}.bbs-main .post-body table tr:hover{background:#fafafa}.active-projects-banner{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 16px;background:linear-gradient(135deg,#f8faff,#fff);border:1px solid #e8ecf4;border-radius:10px;margin-bottom:14px}.banner-label{font-size:12px;font-weight:700;color:#888;text-transform:uppercase;letter-spacing:.5px;margin-right:4px;white-space:nowrap}.project-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border-radius:20px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s;border:2px solid transparent;background:var(--chip-bg, #f5f5f5);color:var(--chip-color, #555);-webkit-user-select:none;user-select:none}.project-chip:hover{filter:brightness(.95);transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.project-chip.selected{border-color:var(--chip-color, #555);box-shadow:0 2px 8px #00000026}.chip-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;background:var(--chip-color, #555);color:#fff;border-radius:9px;font-size:11px;font-weight:700}.project-flags-bar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:10px 14px;background:#fff;border:1px solid #eee;border-radius:8px;margin-bottom:10px;box-shadow:0 1px 3px #0000000a}.flags-label{font-size:12px;color:#aaa;font-weight:600;margin-right:4px;white-space:nowrap}.flag-btn{padding:4px 12px;border-radius:14px;border:1.5px solid #e0e0e0;background:#fafafa;color:#555;font-size:12px;font-weight:500;cursor:pointer;transition:all .12s;white-space:nowrap}.flag-btn:hover{border-color:var(--flag-color, #999);color:var(--flag-color, #333);background:#f5f5f5}.flag-btn.active{background:var(--flag-color, #0f3460);border-color:var(--flag-color, #0f3460);color:#fff;font-weight:600;box-shadow:0 1px 4px #0000001f}.topic-project-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:600;background:var(--proj-bg, #f0f0f0);color:var(--proj-color, #555);white-space:nowrap}.btn-project{border:1.5px solid #ddd;background:#fafafa;transition:all .15s}.btn-project:hover{filter:brightness(.95)}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-panel{background:#fff;border-radius:12px;width:560px;max-width:95vw;max-height:85vh;overflow-y:auto;box-shadow:0 8px 32px #0003;padding:20px}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #eee}.modal-header h3{font-size:16px;color:#333}.modal-project-list{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;max-height:300px;overflow-y:auto}.modal-project-item{padding:10px 12px;border-radius:8px;background:#fafafa;border:1px solid #eee}.modal-form{border-top:1px solid #eee;padding-top:14px}.form-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}.form-row label{font-size:12px;color:#666;min-width:70px;font-weight:600}.form-row input{flex:1;padding:5px 8px;border:1px solid #ddd;border-radius:5px;font-size:13px}.form-row input[type=color]{padding:2px;height:30px;width:40px}.form-row textarea{flex:1;padding:5px 8px;border:1px solid #ddd;border-radius:5px;font-size:13px;resize:vertical}.topic-project-badge.auto-detected{opacity:.55;font-style:italic;border-style:dashed}.flag-btn.keyword-assign-btn{margin-left:4px;background:#f3f4f6;color:#6b7280;border:1px dashed #d1d5db;transition:all .2s}.flag-btn.keyword-assign-btn:hover:not(:disabled){background:#eef2ff;color:#6366f1;border-color:#6366f1}.flag-btn.keyword-assign-btn:disabled{cursor:not-allowed;opacity:.6}.assignee-tag{font-size:11px;color:#6366f1;background:#eef2ff;padding:1px 6px;border-radius:8px;font-weight:500}.btn-new-topic{font-size:13px;padding:6px 14px;white-space:nowrap}.new-topic-modal .form-group{margin-bottom:14px}.modal-form .form-row label{display:block;font-size:13px;font-weight:600;color:#333;margin-bottom:6px}.modal-form .form-row input,.modal-form .form-row textarea{width:100%;padding:10px 12px;border:1px solid var(--border-light, #e2e8f0);border-radius:8px;font-size:14px;font-family:inherit;resize:vertical;box-sizing:border-box}.modal-form .form-row input:focus,.modal-form .form-row textarea:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.modal-form>div[style*=flex]{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.status-log-item:hover{background:#fafafa}.btn-copy-id{display:inline-flex;flex-direction:column;align-items:center;gap:1px;padding:3px 6px!important}.btn-label{font-size:9px;color:#999;line-height:1}.btn-add-member{width:22px;height:22px;border-radius:50%;border:1px solid #ccc;background:#f5f5f5;cursor:pointer;font-size:14px;font-weight:700;color:#0f3460;display:flex;align-items:center;justify-content:center;padding:0;line-height:1;transition:all .15s}.btn-add-member:hover{background:#e8f0fe;border-color:#0f3460}.prompt-preview:hover{background:#eef2ff}.btn-git-backup{padding:6px 14px;border-radius:6px;border:1px solid rgba(255,255,255,.3);background:#ffffff1a;color:#fff;cursor:pointer;font-size:13px;font-weight:500;transition:all .15s;white-space:nowrap}.btn-git-backup:hover{background:#fff3;border-color:#ffffff80}.btn-git-backup:active{background:#ffffff40}.git-panel .modal-form{padding:16px}.git-repo-item:hover{border-color:#0f3460!important;background:#f0f4ff!important}.git-repo-item input[type=checkbox]{width:16px;height:16px;accent-color:#0f3460;cursor:pointer}
