      /* 你原来的全部 CSS */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
            background: #fff;
            color: #000;
            line-height: 1.6;
             padding: 1.2rem;
             
            font-size: 16px;
        }


        a {text-decoration: none;color: #000;}
          /* 顶部 */
    header {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 1.8rem;
      align-items: center;
      border-bottom: 1px solid #eee;
    }

    .logo {
      font-size: 1.4rem;
      font-weight: bold;
    }

    .search {
      flex: 1;
      min-width: 80px;
    }
    
    
    
     /* 下拉菜单样式 */
        .user-dropdown {
            position: relative;
            display: inline-block;
            margin: 10px 0;
        }
        .user-button {
            background: none;
            border: none;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 4px 8px;
            border-radius: 4px;
        }
        .user-button img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid #ddd;
        }
        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #eee;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            min-width: 160px;
            z-index: 1000;
            margin-top: 4px;
        }
        .dropdown-menu a {
            display: block;
            padding: 10px 16px;
            color: #333;
            text-decoration: none;
        }
        .dropdown-menu a:hover {
            background-color: #f9f9f9;
        }
        .dropdown-menu a.logout {
            color: #d32f2f;
            border-top: 1px solid #f5f5f5;
        }
        /* 悬停或聚焦时显示菜单 */
        .user-dropdown:hover .dropdown-menu,
        .user-button:focus + .dropdown-menu,
        .dropdown-menu:focus-within {
            display: block;
        }  


    
    
        .container {
    width: 100%;
    margin: 0 auto;
    padding: 0px; /* 避免边缘贴边 */
}


.comment-content {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    width: 100%;
    min-width: 0;
}

        .back-link {
            display: inline-block;
            margin-bottom: 1.5rem;
            color: #007bff;
            text-decoration: none;
        }

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

        .post-header {
            margin-bottom: 2rem;
        }

        .post-title {
            font-size: 1.3rem;
            font-weight: normal;
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }

        .post-pinned {
            color: #e74c3c;
            font-size: 0.9rem;
            background: #fdf2f2;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 8px;
        }

        .post-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #666;
            font-size: 0.95rem;
            flex-wrap: wrap;
            margin-bottom: 1.2rem;
            border-bottom: 1px solid #eee;
        }

        .post-author-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid #ddd;
        }

        .post-author-name {
            font-weight: bold;
            color: #000;
        }

        .post-actions a {
            color: #000;
            border-bottom: 1px solid #ff0000;
            text-decoration: none;
            margin-left: 12px;
        }

        .post-actions a:hover {
            text-decoration: underline;
        }

        .post-content {
            background: #fff;
            padding: 0px;
            border-radius: 8px;
            
            word-break: break-word;
            overflow-wrap: anywhere; /* 更智能的断行 */
        }

        .section-title {
            font-size: 1.3rem;
            margin: 0.5rem 0 0.2rem;
            font-weight: normal;
            color: #000;
        }

        .comment-form {
            background: #fff;
            padding: 1px;
            border-radius: 8px;
            margin-bottom: 1.5rem;
        }

        .reply-hint {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        textarea {
            width: 100%;
            padding: 5px;
            border: 1px solid #ccc;
            border-radius: 6px;
            font-size: 15px;
    min-height: 60px;
    resize: vertical;
    outline: none;
        }

        textarea:focus {
            border-color: #000;
        }

        .btn {
            background: #0c0c0c;
            color: #fff;
            border: none;
            padding: 5px 6px;
            font-size: 16px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: bold;
            text-align: right;
            transition: opacity 0.2s;
        }

        .btn:hover {
            opacity: 0.9;
        }

        .pagination {
            margin-top: 1.5rem;
            text-align: center;
        }

        .pagination a,
        .pagination span {
            display: inline-block;
            margin: 0 4px;
            padding: 4px 8px;
            text-decoration: none;
            color: #007bff;
        }

        .pagination a.active {
            font-weight: bold;
            color: #0056b3;
        }
         footer {
      margin-top: 0.5rem;
      padding-top: 0.5rem;
      border-top: 1px solid #eee;
      color: #888;
      font-size: 0.9rem;
      text-align: center;
    }
    
    @media (min-width: 768px) {
body {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

}

    

        @media (max-width: 480px) {
            .post-title {
                font-size: 1.3rem;
            }
            .post-actions a {
                margin-left: 1px;
            }
        }