

/* 分组方式切换器样式 */
        .grouping-switch {
            margin: 1.5rem 0;
            border-radius: 8px;
            background-color: #f8f9fa;
            display: inline-flex;
            overflow: hidden;
            border: 1px solid #e9ecef;
        }
        
        .grouping-option {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
        }
        
        .grouping-option.active {
            background-color: #3498db;
            color: white;
            font-weight: 500;
        }
        
        .grouping-option:not(.active):hover {
            background-color: #e9ecef;
        }
        
        /* 段位分组样式 */
        .rank-tabs {
            display: flex;
            border-bottom: 1px solid #ecf0f1;
            margin-bottom: 1.5rem;
            overflow-x: auto;
            scrollbar-width: none;
        }
        
        .rank-tabs::-webkit-scrollbar {
            display: none;
        }
        
        .rank-tab {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.2s;
            white-space: nowrap;
            font-weight: 500;
        }
        
        .rank-tab.amateur {
            color: #2ecc71;
        }
        
        .rank-tab.amateur.active {
            border-bottom-color: #2ecc71;
            color: #2ecc71;
        }
        
        .rank-tab.advanced {
            color: #e67e22;
        }
        
        .rank-tab.advanced.active {
            border-bottom-color: #e67e22;
            color: #e67e22;
        }
        
        .rank-tab.master {
            color: #c0392b;
        }
        
        .rank-tab.master.active {
            border-bottom-color: #c0392b;
            color: #c0392b;
        }
        
        /* 分组内容容器 */
        .grouping-container {
            display: none;
        }
        
        .grouping-container.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }
        .header {
            background-color: #2c3e50;
            color: white;
            padding: 1rem;
            text-align: center;
        }
        .nav {
            background-color: #34495e;
            padding: 0.5rem;
            text-align: center;
        }
        .nav a {
            color: white;
            text-decoration: none;
            margin: 0 1rem;
        }
        .nav a.active {
            color: #3498db;
            font-weight: 600;
            border-bottom: 2px solid #3498db;
        }
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
        .category-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 1.5rem;
            text-align: center;
            transition: transform 0.2s;
            cursor: pointer;
        }
        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        .category-card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 4px;
            margin-bottom: 1rem;
        }
        .category-card h3 {
            margin: 0 0 0.5rem 0;
            color: #2c3e50;
        }
        .category-card p {
            color: #7f8c8d;
            font-size: 0.9rem;
        }
        /* 精灵职业头部 */
        .class-header {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 2rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            gap: 2rem;
        }
        .class-header .class-img {
            width: 180px;
            height: 180px;
            border-radius: 8px;
            object-fit: cover;
        }
        .class-header .class-info h2 {
            color: #2c3e50;
            margin-top: 0;
            margin-bottom: 0.5rem;
        }
        .class-header .class-info p {
            color: #7f8c8d;
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 0;
        }
        /* 评论区样式 */
        .comment-section {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 2rem;
            margin-bottom: 2rem;
        }
        .comment-section .section-title {
            color: #2c3e50;
            margin-top: 0;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #ecf0f1;
            padding-bottom: 0.5rem;
        }
        
        /* 分组选项卡样式 */
        .group-tabs {
            display: flex;
            border-bottom: 1px solid #ecf0f1;
            margin-bottom: 1.5rem;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .group-tabs::-webkit-scrollbar {
            display: none;
        }
        .group-tab {
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.2s;
            white-space: nowrap;
            font-weight: 500;
        }
        .group-tab.active {
            border-bottom-color: #3498db;
            color: #3498db;
        }
        .group-tab:not(.active):hover {
            color: #3498db;
            border-bottom-color: #ecf0f1;
        }
        
        /* 各段位分组样式 */
        .group-tab.topaz {
            color: #e6b800;
        }
        .group-tab.topaz.active {
            border-bottom-color: #e6b800;
            color: #e6b800;
        }
        .group-tab.ruby {
            color: #e74c3c;
        }
        .group-tab.ruby.active {
            border-bottom-color: #e74c3c;
            color: #e74c3c;
        }
        .group-tab.sapphire {
            color: #3498db;
        }
        .group-tab.sapphire.active {
            border-bottom-color: #3498db;
            color: #3498db;
        }
        .group-tab.diamond {
            color: #9b59b6;
        }
        .group-tab.diamond.active {
            border-bottom-color: #9b59b6;
            color: #9b59b6;
        }
        
        /* 分组内容区域 */
        .group-content {
            display: none;
        }
        .group-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* 评论列表 */
        .comment-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* 评论图片样式 */
        .comment-image {
            margin: 1rem 0;
        }

        .comment-image img {
            max-width: 100%;
            max-height: 300px;
            border-radius: 4px;
            border: 1px solid #eee;
            object-fit: cover;
        }
        .comment-item {
            border-bottom: 1px solid #ecf0f1;
            padding-bottom: 1.5rem;
            display: flex;
            gap: 1rem;
        }
        .comment-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        .comment-item .user-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        .comment-item .comment-content {
            flex-grow: 1;
        }
        .comment-item .comment-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        .comment-item .user-name {
            color: #2c3e50;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .comment-item .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #ecf0f1;
            transition: border-color 0.2s ease;
        }
        
        .comment-item .user-avatar:hover {
            border-color: #3498db;
        }
        .comment-item .comment-time {
            color: #bdc3c7;
            font-size: 0.85rem;
            margin: 0;
        }
        .comment-item .comment-text {
            color: #7f8c8d;
            font-size: 0.95rem;
            line-height: 1.6;
            margin: 0;
        }
        .btn {
            display: inline-block;
            background-color: #3498db;
            color: white;
            padding: 0.75rem 1.5rem;
            text-decoration: none;
            border-radius: 4px;
            margin: 0.5rem;
            transition: background-color 0.2s;
        }
        .btn:hover {
            background-color: #2980b9;
        }
        .footer {
            background-color: #ecf0f1;
            padding: 2rem;
            text-align: center;
            margin-top: 2rem;
        }
        /* 提示信息样式 */
        .post-guide {
            background-color: #f8f9fa;
            border-left: 4px solid #3498db;
            padding: 1rem;
            margin-bottom: 2rem;
            font-size: 0.95rem;
            color: #2c3e50;
        }
        .post-guide a {
            color: #3498db;
            text-decoration: none;
            font-weight: 500;
        }
        .post-guide a:hover {
            text-decoration: underline;
        }
        /* 筛选标签样式 */
        .filter-container {
            margin: 1.5rem 0;
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 1rem;
        }
        
        .filter-group {
            margin-bottom: 1rem;
        }
        
        .filter-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #333;
        }
        
        .filter-tabs {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        
        .filter-tab {
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
            border: 1px solid transparent;
        }
        
        .filter-tab.active {
            font-weight: 500;
            border-color: #3498db;
        }
        
        /* 宝石段位标签样式 */
        .gem-tab.topaz {
            color: #f39c12;
        }
        
        .gem-tab.topaz.active {
            background-color: rgba(243, 156, 18, 0.1);
        }
        
        .gem-tab.ruby {
            color: #e74c3c;
        }
        
        .gem-tab.ruby.active {
            background-color: rgba(231, 76, 60, 0.1);
        }
        
        .gem-tab.sapphire {
            color: #3498db;
        }
        
        .gem-tab.sapphire.active {
            background-color: rgba(52, 152, 219, 0.1);
        }
        
        .gem-tab.diamond {
            color: #9b59b6;
        }
        
        .gem-tab.diamond.active {
            background-color: rgba(155, 89, 182, 0.1);
        }
        
        /* 段位分级标签样式 */
        .rank-tab.amateur {
            color: #2ecc71;
        }
        
        .rank-tab.amateur.active {
            background-color: rgba(46, 204, 113, 0.1);
        }
        
        .rank-tab.advanced {
            color: #e67e22;
        }
        
        .rank-tab.advanced.active {
            background-color: rgba(230, 126, 34, 0.1);
        }
        
        .rank-tab.master {
            color: #c0392b;
        }
        
        .rank-tab.master.active {
            background-color: rgba(192, 57, 43, 0.1);
        }
        
        /* 评论区样式 */
        .filtered-comments {
            margin-top: 1rem;
            padding: 1rem;
            border-radius: 8px;
            background-color: #fff;
            border: 1px solid #eee;
        }
        
        .filter-result {
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #eee;
            font-weight: 500;
        }
        
        .no-comments {
            text-align: center;
            padding: 2rem;
            color: #7f8c8d;
            background-color: #f8f9fa;
            border-radius: 4px;
        }