        /* --- 全局样式重置 --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* --- 主体背景设置 --- */
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #050505;
            color: #ffffff;
            position: relative;
            overflow: hidden;
            height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* --- 粒子画布样式 --- */
        #particle-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        /* --- 导航栏样式 --- */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 40px;
            background: rgba(5, 5, 5, 0.8);
            backdrop-filter: blur(5px);
            z-index: 10;
            border-bottom: 1px solid #333;
        }

        .logo {
            font-size: 24px;
            font-weight: bold;
            letter-spacing: 2px;
            color: #d8b4fe;
        }
        .search-box {
                  display: flex; 
                  align-items: center;
                  background: rgba(255,255,255,0.05);
                  border: 1px solid #333;
                  border-radius: 20px;
                  padding: 8px 20px;
                  width: 400px;
        }

        /* 搜索输入框 */
        .search-input {
                    background: transparent; 
                    border: none; 
                    outline: none;
                    color: #fff; 
                    flex: 1; 
                    margin-left: 10px; 
                    font-size: 14px;
        }

        /* 搜索按钮 */
        .search-btn {
                  background: transparent; 
                  border: none; 
                  color: #a78bfa;
                  cursor: pointer; 
                  font-size: 14px; 
                  transition: color 0.3s;
        }

        /* 搜索按钮悬停效果 */
        .search-btn:hover { 
                        color: #c084fc; 
        }
        .nav-links a {
            color: #e5e5e5;
            text-decoration: none;
            margin-left: 30px;
            font-size: 16px;
            transition: color 0.3s;
            cursor: pointer;
        }

        .nav-links a:hover {
            color: #c084fc;
        }

        /* --- 主内容区域 --- */
        .main-container {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1;
            position: relative;
            padding: 20px;
        }

        .forum-container {
            width: 100%;
            max-width: 1200px;
            background: rgba(20, 20, 20, 0.6);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            border: 1px solid #333;
            box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            height: calc(100% - 40px);
        }

        .forum-header {
            padding: 30px 40px;
            border-bottom: 1px solid #333;
            text-align: center;
        }

        .forum-header h2 {
            font-weight: 300;
            letter-spacing: 1px;
            margin-bottom: 10px;
        }

        .forum-header p {
            color: #aaa;
            font-size: 14px;
        }

        /* --- 帖子列表区域 --- */
        .posts-container {
            flex: 1;
            padding: 20px 40px;
            overflow-y: auto;
        }

        .posts-container::-webkit-scrollbar {
            width: 6px;
        }

        .posts-container::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 3px;
        }

        .posts-container::-webkit-scrollbar-thumb {
            background: #a78bfa;
            border-radius: 3px;
        }

        .post-item {
            padding: 20px;
            border-bottom: 1px solid #333;
            margin-bottom: 15px;
            background: rgba(30, 30, 30, 0.5);
            border-radius: 8px;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .post-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(168, 85, 247, 0.1);
        }

        .post-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .post-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .post-title {
            color: #d8b4fe;
            font-weight: bold;
            font-size: 18px;
            margin: 0;
        }

        .post-meta {
            font-size: 12px;
            color: #888;
            display: flex;
            gap: 15px;
        }

        .post-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .post-content {
            color: #ccc;
            font-size: 14px;
            line-height: 1.8;
            margin-top: 10px;
        }

        /* --- 发帖区域 --- */
        .post-form-container {
            padding: 20px 40px;
            border-top: 1px solid #333;
            background: rgba(15, 15, 15, 0.7);
        }

        .post-form {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .post-input-wrapper {
            flex: 1;
        }

        .post-input-wrapper label {
            display: block;
            margin-bottom: 8px;
            font-size: 13px;
            color: #a78bfa;
        }

        .post-input-wrapper input {
            width: 100%;
            padding: 12px 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid #444;
            border-radius: 8px;
            color: white;
            font-size: 14px;
            transition: border-color 0.3s, background 0.3s;
        }

        .post-input-wrapper input:focus {
            outline: none;
            border-color: #c084fc;
            background: rgba(255, 255, 255, 0.1);
        }

        .btn-post {
            padding: 12px 25px;
            background: #7c3aed;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            white-space: nowrap;
            height: 42px;
        }

        .btn-post:hover {
            background: #8b5cf6;
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
        }

        /* --- 温馨提示区域 --- */
        .info-section {
            padding: 15px 40px;
            background: rgba(100, 60, 180, 0.1);
            border-top: 1px solid #444;
            border-bottom: 1px solid #444;
        }

        .info-box {
            background: rgba(100, 60, 180, 0.2);
            padding: 12px 15px;
            border-radius: 6px;
            border-left: 3px solid #a78bfa;
            font-size: 13px;
            line-height: 1.6;
            color: #ccc;
        }

        .info-box p {
            margin: 5px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* --- 底部信息 --- */
        .footer-info {
            position: absolute;
            bottom: 15px;
            font-size: 11px;
            color: #555;
            z-index: 1;
            text-align: center;
            width: 100%;
        }

        /* --- 响应式设计 --- */
        @media (max-width: 768px) {
            .forum-container {
                margin: 10px;
            }
            
            .forum-header, .posts-container, .post-form-container, .info-section {
                padding: 15px 20px;
            }
            
            .post-form {
                flex-direction: column;
                align-items: stretch;
            }
            
            .btn-post {
                height: auto;
                padding: 12px;
            }
        }
