* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }
        
        /* 椤堕儴瀵艰埅鏍?*/
        .top-nav {
            background-color: #fff;
            border-bottom: 1px solid #e1e4e8;
            padding: 10px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .top-nav-left {
            display: flex;
            align-items: center;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: #ff4500;
            margin-right: 20px;
            text-decoration: none;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-right: 15px;
        }
        
        .nav-links a {
            text-decoration: none;
            color: #666;
            font-size: 0.8rem;
            padding: 6px 12px;
            border-radius: 16px;
            transition: all 0.2s ease;
            font-weight: 400;
        }
        
        .nav-links a:hover {
            color: #ff4500;
            background-color: #fff3f0;
        }
        
        /* 鎮仠鎻愮ず鏍峰紡 */
        [data-tooltip] {
            position: relative;
        }
        
        [data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-bottom: 8px;
            padding: 6px 10px;
            background-color: #333;
            color: white;
            border-radius: 4px;
            font-size: 0.75rem;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease;
            z-index: 1000;
        }
        
        [data-tooltip].show-tooltip::after {
            opacity: 1;
            visibility: visible;
        }
        
        .top-nav-center {
            flex: 1;
            max-width: 500px;
            margin: 0 20px 0 -230px;
        }
        
        .search-box {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #d1d5da;
            border-radius: 20px;
            font-size: 0.9rem;
        }
        
        .search-box:focus {
            outline: none;
            border-color: #ff4500;
            box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.1);
        }
        
        .top-nav-right {
            display: flex;
            align-items: center;
        }
        
        .post-btn {
            background-color: #ff4500;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 16px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-right: 15px;
            cursor: pointer;
        }
        
        .post-btn:hover {
            background-color: #ff6347;
        }
        
        
        
        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            background-size: cover;
            background-position: center;
        }
        
        /* 涓诲鍣?*/
        .main-container {
            display: flex;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* 宸︿晶瀵艰埅鏍?*/
        .left-nav {
            width: 200px;
            margin-right: 20px;
        }
        
        .left-nav-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .left-nav-links li {
            margin-bottom: 10px;
        }
        
       
        
        
        
        .create-community {
            margin-top: 20px;
            padding: 12px 16px;
            border: 1px solid #ff4500;
            border-radius: 8px;
            background-color: white;
            color: #ff4500;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            width: 100%;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .create-community:hover {
            background-color: #fff3f0;
            box-shadow: 0 2px 8px rgba(255, 69, 0, 0.15);
        }
        
        /* 鍐呭鍖?*/
        .content-area {
            flex: 1;
            max-width: 800px;
        }
        
        /* 甯栧瓙璇︽儏 */
        .post-detail {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .post-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }
        
        .post-author-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: #e0e0e0;
            margin-right: 12px;
            flex-shrink: 0;
        }
        
        .post-author-info {
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        
        .post-author-name {
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .post-meta {
            font-size: 0.8rem;
            color: #666;
        }
        
        /* 杩斿洖鎸夐挳 */
        .back-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: 1px solid #d1d5da;
            font-size: 0.8rem;
            color: #666;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: 14px;
            transition: all 0.2s ease;
        }
        
        .back-btn:hover {
            color: #ff4500;
            border-color: #ff4500;
            background-color: #fff3f0;
        }
        
        .post-community {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .community-name {
            font-size: 0.9rem;
            color: #ff4500;
            margin-right: 10px;
            text-decoration: none;
            transition: color 0.2s ease;
        }
        
        .community-name:hover {
            color: #ff6347;
            text-decoration: underline;
            cursor: pointer;
        }
        
        .post-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }
        
        .tag {
            padding: 4px 12px;
            background-color: #f6f8fa;
            border-radius: 16px;
            font-size: 0.8rem;
            color: #666;
            border: 1px solid #e1e4e8;
            transition: all 0.2s ease;
        }
        
        .tag:hover {
            background-color: #e1e4e8;
            border-color: #ff4500;
            color: #ff4500;
        }
        
        .follow-btn {
            padding: 1.5px 5px;
            border: 1px solid #ff4500;
            border-radius: 8px;
            background-color: white;
            color: #ff4500;
            font-size: 0.55rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            line-height: 1.2;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
            position: relative;
            overflow: hidden;
        }
        
        .follow-btn:active {
            transform: scale(0.95);
        }
        
        .follow-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background-color: rgba(255, 69, 0, 0.1);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.3s ease, height 0.3s ease;
        }
        
        .follow-btn:active::after {
            width: 80px;
            height: 80px;
        }
        
        .follow-btn:hover {
            background-color: #ff4500;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 1px 3px rgba(255, 69, 0, 0.3);
        }
        
        .follow-btn.following {
            background-color: #f5f5f5 !important;
            color: #999 !important;
            border-color: #ff4500 !important;
        }
        
        .follow-btn.following:hover {
            background-color: #e8e8e8;
            color: #999;
            border-color: #ff4500;
        }
        
        .post-title {
            font-size: 1.3rem;
            font-weight: 500;
            margin-bottom: 15px;
            line-height: 1.4;
        }
        
        .post-content {
            font-size: 0.95rem;
            color: #333;
            margin-bottom: 20px;
            line-height: 1.7;
        }
        
        .post-content p {
            margin-bottom: 16px;
        }
        
        .post-content ul {
            margin: 12px 0 16px 24px;
        }
        
        .post-content li {
            margin-bottom: 8px;
        }
        
        .post-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 2px;
            margin-bottom: 5px;
        }
        
        .tag {
            padding: 1px 2.5px;
            background-color: #f6f8fa;
            border-radius: 3px;
            font-size: 0.175rem;
            color: #666;
        }
        
        .post-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
            padding: 5px 0;
            border: none;
            background-color: transparent;
            border-radius: 0;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            font-size: 0.75rem;
            font-weight: 500;
            color: #666;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: 14px;
            transition: all 0.2s ease;
        }
        
        /* 浜掑姩鎸夐挳 SVG 鍥炬爣鏍峰紡 */
        .action-btn svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            stroke-width: 1.5;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
        }
        
        .action-btn:hover {
            color: #374151;
            background-color: #f3f4f6;
            transform: translateY(-1px);
        }

        .action-btn:focus-visible {
            outline: 2px solid rgba(26, 115, 232, 0.2);
            outline-offset: 2px;
        }

        .action-btn:active:not(.liked):not(.disliked) {
            color: #1f2937;
            background-color: #e5e7eb;
            transform: translateY(0);
        }
        
        .action-btn.liked {
            color: #1a73e8;
            font-weight: 600;
            background-color: #e3f2fd;
        }
        
        .action-btn.disliked {
            color: #ff4500;
            font-weight: 600;
            background-color: #fff3f0;
        }
        
        /* 绐佸嚭鏍稿績浜掑姩鍔熻兘 */
        .action-btn:nth-child(1), /* 鐐硅禐 */
        .action-btn:nth-child(2), /* 鐐硅俯 */
        .action-btn:nth-child(3)  /* 璇勮 */ {
            font-size: 0.8rem;
            padding: 6px 12px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        
        /* 鏇村鑿滃崟 */
        .more-menu-container {
            position: relative;
        }
        
        .more-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background-color: white;
            border: 1px solid #d1d5da;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            min-width: 150px;
            z-index: 9999;
            display: none;
        }
        
        .more-menu.show {
            display: block;
        }
        
        .more-menu-item {
            display: block;
            width: 100%;
            text-align: left;
            padding: 8px 12px;
            border: none;
            background: none;
            font-size: 0.8rem;
            color: #333;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .more-menu-item.admin-menu-link {
            color: #333;
            text-decoration: none;
        }

        .more-menu-item:hover {
            background-color: #f6f8fa;
        }

        .more-menu-divider {
            height: 1px;
            margin: 4px 0;
            background-color: #eceff3;
        }

        .more-menu-item:first-child {
            border-radius: 6px 6px 0 0;
        }
        
        .more-menu-item:last-child {
            border-radius: 0 0 6px 6px;
        }
        

        
        /* 璇勮鍖?*/
        .comments-section {
            background-color: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .comments-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .comments-title {
            font-size: 1rem;
            font-weight: 500;
            margin: 0;
        }
        
        /* 璇勮绛涢€夋爣绛?*/
        .comment-filters {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }
        
        .filter-btn {
            padding: 4px 10px;
            border: 1px solid #d1d5da;
            border-radius: 14px;
            background-color: white;
            font-size: 0.7rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .filter-btn:hover {
            background-color: #f6f8fa;
            border-color: #ff4500;
            color: #ff4500;
        }
        
        .filter-btn.active {
            background-color: #ff4500;
            border-color: #ff4500;
            color: white;
            font-weight: 500;
        }
        
        .sort-dropdown {
            padding: 6px 10px;
            border: 1px solid #d1d5da;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        /* 璇勮杈撳叆鍖?*/
        .comment-input-section {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e1e4e8;
        }
        
        /* 璇勮杈撳叆妗?*/
        .comment-input-section {
            border: 1px solid #d1d5da;
            border-radius: 16px;
            overflow: hidden;
            margin-bottom: 15px;
            transition: all 0.3s ease;
            background-color: white;
            position: relative;
            min-height: 22px;
            max-width: 500px;
        }
        
        .comment-input-section.expanded {
            border-radius: 8px;
            min-height: 50px;
        }
        
        .editor-content {
            width: 100%;
            min-height: 22px;
            padding: 4px 10px;
            font-size: 0.7rem;
            resize: vertical;
            border: none;
            outline: none;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            white-space: pre-wrap;
        }
        
        .editor-content:empty:before {
            content: attr(placeholder);
            color: #999;
            pointer-events: none;
        }
        
        .comment-input-section.expanded .editor-content {
            min-height: 50px;
            padding: 6px 10px 24px 10px;
        }
        
        /* 绠€鍖栫増宸ュ叿鏍忥紙杈撳叆鍚庢樉绀猴級 */
        .simple-toolbar {
            position: absolute;
            bottom: 4px;
            left: 10px;
            display: none;
            align-items: center;
            gap: 6px;
            z-index: 1;
        }
        
        .comment-input-section.expanded .simple-toolbar {
            display: flex;
        }
        
        .simple-toolbar-btn {
            background: none;
            border: none;
            padding: 3px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 2px;
            color: #999;
        }
        
        .simple-toolbar-btn:hover {
            background-color: #e9ecef;
            color: #333;
        }
        
        /* 瀹屾暣瀵屾枃鏈紪杈戝櫒宸ュ叿鏍?*/
        .full-toolbar {
            display: none;
            align-items: center;
            gap: 4px;
            padding: 4px 6px;
            border-bottom: 1px solid #e1e4e8;
            background-color: #f9f9f9;
            flex-wrap: wrap;
            max-width: 100%;
        }
        
        .toolbar-btn {
            background: none;
            border: none;
            padding: 2px 4px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 0.65rem;
            display: flex;
            align-items: center;
            gap: 2px;
            color: #666;
            transition: all 0.2s ease;
        }
        
        .toolbar-btn:hover {
            background-color: #e9ecef;
            color: #333;
        }
        
        .toolbar-divider {
            width: 1px;
            height: 12px;
            background-color: #d1d5da;
            margin: 0 3px;
        }
        
        /* 璇勮鎿嶄綔鍖?*/
        .comment-actions {
            position: absolute;
            bottom: 4px;
            right: 10px;
            display: none;
            justify-content: flex-end;
            gap: 6px;
            align-items: center;
            z-index: 1;
        }
        
        .comment-input-section.expanded .comment-actions {
            display: flex;
        }
        
        .anonymous-checkbox {
            display: none;
            align-items: center;
            gap: 4px;
            font-size: 0.7rem;
            color: #666;
            margin-right: auto;
        }
        
        .cancel-btn {
            padding: 2px 8px;
            border: 1px solid #d1d5da;
            border-radius: 12px;
            background-color: white;
            font-size: 0.6rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .cancel-btn:hover {
            background-color: #f6f8fa;
        }
        
        .submit-btn {
            padding: 2px 12px;
            border: 1px solid #1a73e8;
            border-radius: 12px;
            background-color: #1a73e8;
            color: white;
            font-size: 0.6rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .submit-btn:hover {
            background-color: #174ea6;
        }
        
        .submit-btn:disabled {
            background-color: #b3d4fc;
            border-color: #b3d4fc;
            cursor: not-allowed;
        }
        
        /* 璇勮鍒楄〃 */
        .comments-list {
            margin-top: 20px;
        }
        
        /* 鏈€浣崇瓟妗堟爣璁?*/
        .best-answer-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 8px;
            background-color: #d4edda;
            color: #155724;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-right: 10px;
        }
        
        /* 鍗曚釜璇勮 */
        .comment {
            padding: 15px 0;
            border-bottom: 1px solid #e1e4e8;
            transition: all 0.2s ease;
        }
        
        .comment:last-child {
            border-bottom: none;
        }
        
        .comment:hover {
            background-color: #f9f9f9;
        }
        
        .comment-header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .comment-author-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: #ddd;
            margin-right: 10px;
        }
        
        /* 璇勮鏍峰紡 */
        .comment {
            margin-bottom: 20px;
            padding: 16px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .comment-header {
            display: flex;
            margin-bottom: 12px;
            align-items: flex-end;
        }
        
        .comment-author-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: #e0e0e0;
            margin-right: 12px;
            flex-shrink: 0;
            position: relative;
        }
        
        .comment-author-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .comment-author-info {
            flex: 1;
        }
        
        .comment-author-name {
            font-size: 14px;
            font-weight: 500;
            color: #333;
            margin-bottom: 4px;
        }
        
        .comment-meta {
            font-size: 12px;
            color: #999;
        }
        
        .comment-content {
            font-size: 14px;
            color: #333;
            line-height: 1.5;
            margin-bottom: 12px;
            margin-left: 44px;
        }
        
        /* 涓€绾ц瘎璁轰簰鍔ㄥ姛鑳?*/
        .comment-action-buttons {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 15px;
            padding: 5px 0;
            border: none;
            background-color: transparent;
            border-radius: 0;
            flex-wrap: wrap;
            margin-left: 44px;
        }
        
        .comment-action-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            font-size: 0.75rem;
            font-weight: 500;
            color: #666;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: 14px;
            transition: all 0.2s ease;
        }
        
        .comment-action-btn:hover {
            color: #374151;
            background-color: #f3f4f6;
            transform: translateY(-1px);
        }

        .comment-action-btn:focus-visible {
            outline: 2px solid rgba(26, 115, 232, 0.2);
            outline-offset: 2px;
        }

        .comment-action-btn:active:not(.liked):not(.disliked) {
            color: #1f2937;
            background-color: #e5e7eb;
            transform: translateY(0);
        }
        
        .comment-action-btn.liked {
            color: #1a73e8;
            font-weight: 600;
            background-color: #e3f2fd;
        }
        
        .comment-action-btn.disliked {
            color: #ff4500;
            font-weight: 600;
            background-color: #fff3f0;
        }
        
        /* 璇勮鏁版寜閽?- 钃濊壊 */
        .comment-count-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            background-color: #1a73e8;
            color: white;
            border: none;
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            padding: 4px 10px;
            border-radius: 14px;
            transition: all 0.2s ease;
        }
        
        .comment-count-btn:hover {
            background-color: #1557b0;
            transform: translateY(-1px);
        }
        
        /* 浜岀骇璇勮鏍峰紡 */
        .nested-replies {
            margin-top: 16px;
            margin-left: 44px; /* 缂╄繘 */
            background-color: #f9f9f9;
            border: 1px solid #e8e8e8;
            border-radius: 8px;
            padding: 16px;
        }
        
        .nested-reply {
            margin-bottom: 16px;
            padding: 0;
        }
        
        /* 鍥炲鍒嗗壊绾?*/
        .reply-divider {
            height: 1px;
            background-color: #e0e0e0;
            margin: 16px 0;
            width: 100%;
            margin-left: 0;
        }
        
        .nested-reply .comment-header {
            margin-bottom: 8px;
        }
        
        .nested-reply .comment-author-avatar {
            width: 24px;
            height: 24px;
        }
        
        .nested-reply .comment-author-info {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        
        .nested-reply .comment-author-name {
            font-size: 13px;
            margin-bottom: 0;
        }
        
        .nested-reply .comment-meta {
            font-size: 11px;
        }
        
        .nested-reply .comment-content {
            font-size: 13px;
            margin-bottom: 8px;
            margin-left: 36px;
        }
        
        /* 浜岀骇璇勮浜掑姩鍔熻兘 */
        .nested-reply .comment-action-buttons {
            gap: 12px;
            margin-left: 36px;
        }
        
        .nested-reply .comment-action-btn {
            font-size: 11px;
        }
        
        /* 鎶樺彔鎸夐挳 */
        .collapse-btn {
            background: none;
            border: none;
            font-size: 12px;
            color: #666;
            cursor: pointer;
            padding: 4px 0;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .collapse-btn:hover {
            color: #ff4500;
        }
        
        /* 鍥炲杈撳叆妗?*/
        .reply-section {
            margin-top: 12px;
            margin-left: -16px;
            margin-right: -300px;
            padding: 12px 16px;
        }
        
        /* 璇勮杈撳叆妗?*/
        .comment-input-section {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }
        
        /* 榛樿鐘舵€佷笅鍙樉绀鸿緭鍏ユ锛屼笉鏄剧ず宸ュ叿鏍忓拰鎿嶄綔鎸夐挳 */
        .comment-input-section:not(.expanded) .simple-toolbar,
        .comment-input-section:not(.expanded) .full-toolbar,
        .comment-input-section:not(.expanded) .comment-actions {
            display: none;
        }
        
        .comment-input-section.expanded {
            gap: 8px;
        }
        
        .comment-input-section.expanded .simple-toolbar,
        .comment-input-section.expanded .full-toolbar,
        .comment-input-section.expanded .comment-actions {
            display: flex;
        }
        
        .editor-container {
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            overflow: hidden;
            width: 100%;
            background-color: #fafafa;
        }
        
        .editor-content {
            min-height: 60px;
            padding: 12px 16px;
            outline: none;
            font-size: 14px;
            line-height: 1.5;
            width: 100%;
            box-sizing: border-box;
            background-color: transparent;
            border: none;
        }
        
        .editor-content:focus {
            background-color: #fff;
        }
        
        /* 宸ュ叿鏍?*/
        .simple-toolbar,
        .full-toolbar {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background-color: #fafafa;
            border-top: 1px solid #e0e0e0;
        }
        
        .toolbar-btn {
            background: none;
            border: none;
            font-size: 14px;
            cursor: pointer;
            padding: 6px 8px;
            border-radius: 4px;
            transition: all 0.2s ease;
            color: #666;
        }
        
        .toolbar-btn:hover {
            background-color: #e8e8e8;
            color: #333;
        }
        
        /* 璇勮鎿嶄綔鎸夐挳 */
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 8px;
        }
        
        .cancel-btn,
        .submit-btn {
            padding: 8px 20px;
            border-radius: 6px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-weight: 500;
        }
        
        .cancel-btn {
            background-color: #f5f5f5;
            color: #666;
            border: 1px solid #e0e0e0;
        }
        
        .cancel-btn:hover {
            background-color: #e8e8e8;
            color: #333;
        }
        
        .submit-btn {
            background-color: #ff4500;
            color: white;
            border: 1px solid #ff4500;
        }
        
        .submit-btn:hover {
            background-color: #e63900;
            border-color: #e63900;
        }
        
        .submit-btn:disabled {
            background-color: #ffb399;
            border-color: #ffb399;
            cursor: not-allowed;
            opacity: 0.6;
        }
        
        /* 璇勮鏇村鑿滃崟 */
        .comment-more-menu-container {
            position: relative;
        }
        
        .comment-more-btn {
            background: none;
            border: none;
            font-size: 12px;
            color: #666;
            cursor: pointer;
            padding: 0;
        }
        
        .comment-more-btn:hover {
            color: #ff4500;
        }
        
        .comment-more-menu {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 4px;
            width: 160px;
            background-color: white;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 4px 0;
            z-index: 1000;
            display: none;
        }
        
        .comment-more-menu.show {
            display: block;
        }
        
        .comment-more-menu-item {
            display: block;
            width: 100%;
            text-align: left;
            background: none;
            border: none;
            padding: 8px 16px;
            font-size: 12px;
            color: #333;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        
        .comment-more-menu-item:hover {
            background-color: #f5f5f5;
        }
        
        /* 寰界珷鏍峰紡 */
        .badges-container {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        
        .badge {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            cursor: pointer;
            position: relative;
        }
        
        .badge:hover {
            transform: scale(1.1);
        }
        
        .badge-more {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: #e0e0e0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            color: #666;
            cursor: pointer;
        }
        
        .badge-more:hover {
            background-color: #d0d0d0;
        }
        
        /* 寰界珷寮圭獥 */
        .badges-popup {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 8px;
            width: 300px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            padding: 16px;
            z-index: 1001;
            display: none;
        }
        
        .badges-popup::before {
            content: '';
            position: absolute;
            top: -8px;
            left: 12px;
            width: 0;
            height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 8px solid white;
        }
        
        .badges-popup.show {
            display: block;
        }
        
        .badges-popup h4 {
            margin-bottom: 12px;
            font-size: 0.9rem;
            font-weight: 600;
        }
        
        .all-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .badge-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px;
            border-radius: 6px;
            background-color: #f8f9fa;
            flex: 0 0 calc(50% - 5px);
        }
        
        .badge-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background-color: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
        }
        
        .badge-info {
            flex: 1;
        }
        
        .badge-name {
            font-size: 0.8rem;
            font-weight: 500;
            color: #333;
        }
        
        .badge-desc {
            font-size: 0.7rem;
            color: #666;
        }
        
        /* 璇勮缂栬緫鍖?*/
        .comment-edit-section {
            margin-left: 42px;
            margin-top: 10px;
            margin-bottom: 10px;
        }
        
        .comment-edit-input {
            width: 100%;
            min-height: 80px;
            padding: 10px;
            border: 1px solid #d1d5da;
            border-radius: 6px;
            font-size: 0.8rem;
            resize: vertical;
            margin-bottom: 8px;
        }
        
        .comment-edit-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
        }
        
        /* 閫氱煡鎻愮ず */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 12px 16px;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            font-size: 0.8rem;
            font-weight: 500;
            transform: translateX(400px);
            transition: transform 0.3s ease;
            z-index: 1000;
        }
        
        .notification.success {
            background-color: #d4edda;
            color: #155724;
            border-left: 4px solid #28a745;
        }
        
        .notification.error {
            background-color: #f8d7da;
            color: #721c24;
            border-left: 4px solid #dc3545;
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        /* 鍔犺浇鍔ㄧ敾 */
        .loading {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #ff4500;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* 纭寮圭獥 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
            animation: fadeIn 0.2s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            min-width: 300px;
            animation: slideIn 0.2s ease;
        }
        
        @keyframes slideIn {
            from { transform: translate(-50%, -60%); opacity: 0; }
            to { transform: translate(-50%, -50%); opacity: 1; }
        }
        
        .modal-header {
            font-size: 1.1rem;
            font-weight: 500;
            margin-bottom: 15px;
        }
        
        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
        }
        
        /* 纭寮圭獥 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
        }
        
        .modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            min-width: 300px;
        }
        
        .modal-header {
            font-size: 1.1rem;
            font-weight: 500;
            margin-bottom: 15px;
        }
        
        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
        }
        
        /* 鍒涘缓鍦堝瓙寮圭獥鏍囩鏍峰紡 */
        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .tag {
            padding: 10px 20px;
            border: 1px solid #d1d5da;
            border-radius: 20px;
            background-color: white;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .tag:hover {
            border-color: #ff4500;
            color: #ff4500;
        }
        
        .tag.selected {
            background-color: #ff4500;
            color: white;
            border-color: #ff4500;
        }

.sg-main {
    flex: 1;
    min-width: 0;
}

.sg-main > .content-area {
    flex: 1;
    max-width: 800px;
}

        .post-author-name a,
        .comment-author-name a {
            color: inherit;
            text-decoration: none;
        }

        .post-meta-sep {
            margin: 0 6px;
        }

        .post-extra-block {
            margin-bottom: 15px;
        }

        .post-log-panel {
            margin-top: 20px;
            border-top: 1px solid #eceff3;
            padding-top: 20px;
        }

        .post-log-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .post-log-title {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #1f2937;
        }

        .post-log-back-link {
            color: #ff4500;
            font-size: 13px;
            text-decoration: none;
        }

        .post-log-back-link:hover {
            text-decoration: underline;
        }

        .post-log-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .post-log-item {
            margin: 0;
            padding: 14px 16px;
            border: 1px solid #eceff3;
            border-radius: 8px;
            background-color: #fafbfc;
        }

        .post-log-item dt {
            margin-bottom: 8px;
            color: #111827;
            font-weight: 600;
        }

        .post-log-item dd {
            margin: 0;
        }

        .post-log-content {
            color: #374151;
            line-height: 1.7;
        }

        .post-log-time {
            margin-top: 10px !important;
            color: #6b7280;
            font-size: 12px;
        }

        .question-extra-list,
        .liked-users-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .question-extra-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: #555;
        }

        .liked-user-avatar {
            display: block;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
        }

        .question-comments-panel {
            margin-top: 16px;
        }

        .question-detail-page .action-btn[data-action="toggle-question-comments"].is-loading {
            pointer-events: none;
            opacity: 0.7;
        }

        .post-author-avatar,
        .comment-author-avatar {
            position: relative;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }

        .question-comments-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .question-comment-reply-section,
        .answer-replies-box .reply-section {
            margin-right: 0;
            margin-left: 0;
            padding: 0;
        }

        .answer-editor-section {
            padding: 16px;
            border-radius: 8px;
            min-height: auto;
            max-width: none;
        }

        .answer-editor-shell {
            margin-bottom: 12px;
        }

        .answer-editor-actions {
            justify-content: flex-end;
            align-items: center;
            gap: 12px;
        }

        .answer-focus-option {
            margin-right: auto;
            font-size: 12px;
            color: #666;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        textarea.editor-content {
            display: block;
            resize: vertical;
            overflow: auto;
            background: transparent;
        }

        .sg-answer-rich-editor .w-e-toolbar,
        .sg-answer-rich-editor .w-e-menu {
            border-bottom: 1px solid #e1e4e8;
        }

        .sg-answer-rich-editor .w-e-text-container {
            border: none !important;
        }

        .sg-answer-rich-editor .w-e-text-container.is-empty::before {
            content: attr(data-placeholder);
            position: absolute;
            top: 12px;
            left: 12px;
            color: #999;
            pointer-events: none;
            font-size: 13px;
        }

        .answer-author-badge {
            display: inline-block;
            margin-left: 8px;
            padding: 2px 6px;
            border-radius: 10px;
            background-color: #fff3f0;
            color: #ff4500;
            font-size: 11px;
            vertical-align: middle;
        }

        .empty-item,
        .empty-tip {
            color: #888;
            font-size: 13px;
        }

        .answers-pagination {
            margin-top: 20px;
        }

        .detail-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1201;
            min-width: 180px;
            max-width: 360px;
            padding: 12px 16px;
            background-color: #202124;
            color: #fff;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transform: translateY(-8px);
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .detail-notification.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* 详情页主内容与右侧栏并排展示，侧栏当前只承接相似帖子静态卡片。 */
        .question-detail-layout {
            display: flex;
            align-items: flex-start;
            gap: 20px;
        }

        .question-detail-layout > .content-area {
            flex: 1;
            min-width: 0;
        }

        .question-page-rightSide {
            width: 300px;
            flex-shrink: 0;
        }

        .question-page-rightSide-inner {
            position: sticky;
            top: 20px;
        }

        .question-page-rightSide .sidebar-section {
            margin-bottom: 20px;
            padding: 20px;
            border-radius: 8px;
            background-color: #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .question-page-rightSide .sidebar-title {
            position: relative;
            margin: 0 0 12px;
            padding-bottom: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            color: #333;
        }

        .question-page-rightSide .sidebar-title::after {
            content: '';
            position: absolute;
            right: 0;
            bottom: 0;
            left: 0;
            height: 1px;
            background-color: #e1e4e8;
        }

        .question-page-rightSide .similar-posts-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .question-page-rightSide .similar-post-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px;
            border-radius: 6px;
            background-color: #f8f9fa;
            transition: transform 0.2s ease, background-color 0.2s ease;
        }

        .question-page-rightSide .similar-post-item:hover {
            background-color: #e9ecef;
            transform: translateX(2px);
        }

        .question-page-rightSide .similar-post-avatar {
            width: 32px;
            height: 32px;
            flex-shrink: 0;
            border-radius: 50%;
            background-color: #ddd;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }

        .question-page-rightSide .similar-post-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }

        .question-page-rightSide .similar-post-info,
        .question-page-rightSide .similar-post-stats {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .question-page-rightSide .similar-post-author {
            font-size: 0.7rem;
            font-weight: 500;
            color: #333;
        }

        .question-page-rightSide .similar-post-time,
        .question-page-rightSide .similar-post-stats .stat-item {
            font-size: 0.6rem;
            color: #666;
        }

        .question-page-rightSide .similar-post-title {
            display: -webkit-box;
            overflow: hidden;
            font-size: 0.7rem;
            font-weight: 500;
            line-height: 1.4;
            color: #333;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }

        .question-page-rightSide .similar-post-community {
            font-size: 0.6rem;
            font-weight: 500;
            color: #ff4500;
        }

        @media (max-width: 1199px) {
            .question-detail-layout {
                flex-direction: column;
            }

            .question-page-rightSide {
                width: 100%;
            }

            .question-page-rightSide-inner {
                position: static;
            }
        }
