/* 全局样式 */
        * {
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: #fff;
            margin: 0;
            padding: 0;
            color: #111;
            font-size: 14px;
        }

        a {
            color: #000;
            text-decoration: none;
        }

        

        /* 主要内容区 */
        .main-content {
            margin: 0 auto;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-content: flex-start;
            justify-content: flex-start;
            align-items: flex-start;
            width: 100%;
            margin-top: 60px;
        }
        
        /* 左侧菜单区 */
        .main-content-left {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-content: flex-start;
            justify-content: flex-start;
            align-items: flex-start;
            width: 350px;
            background-color: #ffffff;
            border-right: 1px solid #e9ecef;
            height: calc(100vh - 60px);
            overflow-y: auto;
        }
        
        /* 左侧图标菜单 */
        .left-icon-menu {
            width: 80px;
            background-color: #007bff;
            color: #fff;
            padding: 20px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }
        
        .icon-menu-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            padding: 15px 10px;
            border-radius: 0;
            transition: all 0.3s ease;
            width: 100%;
            position: relative;
        }
        
        .icon-menu-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .icon-menu-item.active {
            background-color: #ffffff;
            color: #007bff;
            font-weight: bold;
        }
        
        .icon-menu-item.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background-color: #0056b3;
        }
        
        .icon-menu-item i {
            font-size: 20px;
        }
        
        .icon-menu-item span {
            font-size: 12px;
            text-align: center;
        }
        
        /* 右侧二级菜单 */
        .right-secondary-menu {
            flex: 1;
            padding: 0;
            background-color: #ffffff;
            width: 270px;
        }
        
        .secondary-menu-item {
            margin-bottom: 0;
        }
        
        .secondary-menu-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            padding: 12px 20px;
            background-color: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
            transition: all 0.3s ease;
        }
        
        .secondary-menu-title:hover {
            background-color: #e9ecef;
        }
        
        .secondary-menu-title .menu-text {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .secondary-menu-title i {
            font-size: 12px;
            transition: transform 0.3s ease;
        }
        
        .secondary-menu-title.collapsed i {
            transform: rotate(-90deg);
        }
        
        .secondary-menu-content {
            margin-left: 0;
            margin-top: 0;
            display: none;
        }
        
        .secondary-menu-content.expanded {
            display: block;
        }
        
        .secondary-menu-link {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            padding: 10px 20px;
            transition: all 0.3s ease;
            text-decoration: none;
            color: #333;
            border-bottom: 1px solid #f1f1f1;
        }
        
        .secondary-menu-link:hover {
            background-color: #f8f9fa;
        }
        
        .secondary-menu-link i {
            font-size: 14px;
            width: 16px;
            text-align: center;
        }
        
        .secondary-menu-link span {
            font-size: 14px;
        }
        
        .secondary-menu-content.expanded {
            display: block;
        }
        
        .secondary-menu-link {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 4px;
            transition: all 0.3s ease;
            cursor: pointer;
            color: #495057;
            text-decoration: none;
        }
        
        .secondary-menu-link:hover {
            background-color: rgba(0, 0, 0, 0.05);
            color: #007bff;
        }
        
        /* 右侧内容区 */
        .main-content-right {
            flex: 1;
            padding: 25px 20px;
            height: calc(100vh - 60px);
            overflow-y: auto;
        }

        /* 搜索关键词列表 */
        .search-keywords {
            display: flex;
            gap: 12px;
            padding: 16px 0;
            margin-bottom: 16px;
            overflow-x: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
            background-color: #f8f9fa;
        }

        .search-keywords::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }

        .keyword-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background-color: #111;
            color: #fff;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s ease;
        }

        .keyword-item::before {
            content: "#";
            font-size: 16px;
        }

        .keyword-item:hover {
            background-color: #333;
            transform: translateY(-1px);
        }

        .keyword-item.active {
            background-color: #e60023;
        }

        

        /* 课程截图容器 */
        .screenshot-container {
            position: relative;
            overflow: hidden;
            padding-bottom: 75%; /* 创建4:3宽高比 */
            padding-left: 12px;
            padding-right: 12px;
        }

        /* 课程截图 */
        .game-screenshot {
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            bottom: 12px;
            width: calc(100% - 24px);
            height: calc(100% - 24px);
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        

        

        .game-modal-header {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            padding: 12px 24px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            flex-direction: row;
            flex-wrap: nowrap;
            align-content: center;
            gap:20px;
        }

        .game-modal-author {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-author-avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            object-fit: cover;
        }

        .modal-author-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .modal-author-name {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }

        .modal-header-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-follow-btn {
            padding: 6px 16px;
            background-color: #000;
            color: #fff;
            border: none;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .modal-follow-btn:hover {
            background-color: #333;
        }

        .modal-follow-btn.followed {
            background-color: #e60023;
            color: #fff;
        }

        .modal-close-btn {
            position: absolute;
            top: 12px;
            right: 20px;
            background-color: rgba(0, 0, 0, 0);
            border: none;
            cursor: pointer;
            color: #000;
            padding: 0;
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
            font-size: 34px;
            line-height: 34px;
            align-content: center;
            flex-direction: row;
            flex-wrap: nowrap;
            font-weight: 100;
        }

        .modal-close-btn:hover {
            color: #000;
        }

        .game-modal-body {
            display: flex;
            flex-direction: row;
        }
        .game-modal-center {
            flex: 1;
            padding: 20px;
            border-right: 1px solid #eee;
        }
        .game-modal-left {
            flex: 1;
            padding: 20px;
            border-right: 1px solid #eee;
        }

        .modal-image-container {
            width: 100%;
            height: 0;
            padding-bottom: 100%;
            position: relative;
            overflow: hidden;
            border-radius: 4px;
        }

        .modal-game-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: calc(100% - 80px);
            max-width: 100%;
            max-height: calc(100% - 80px);
            display: block;
            object-fit: contain;
        }

        .game-modal-right {
            flex: 1;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }

        .modal-game-title {
            margin: 0 0 12px;
            font-size: 24px;
            font-weight: 700;
        }

        .modal-game-description {
            margin: 0 0 16px;
            font-size: 14px;
            color: #666;
            line-height: 1.5;
        }

        .modal-game-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .modal-game-tags .tag {
            background-color: #f0f0f0;
            color: #666;
            font-size: 12px;
            padding: 4px 12px;
            border-radius: 16px;
        }

        .modal-game-stats {
            display: flex;
            gap: 20px;
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }

        .modal-stat-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            color: #666;
        }

        .modal-stat-value {
            font-weight: 600;
        }

        .modal-stat-item.modal-like-btn {
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .modal-stat-item.modal-like-btn:hover {
            color: #e60023;
        }

        .modal-stat-item.modal-like-btn.liked {
            color: #e60023;
        }

        .modal-comments-section {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .modal-comments-title {
            margin: 0 0 16px;
            font-size: 18px;
            font-weight: 600;
        }

        .modal-comment-input {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            padding: 12px;
            background-color: #f8f9fa;
            border-radius: 24px;
        }

        .modal-comment-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }

        .modal-comment-text {
            flex: 1;
            border: none;
            background: none;
            font-size: 14px;
            padding: 8px 0;
            outline: none;
        }

        .modal-comment-submit {
            background: none;
            border: none;
            color: #fff;
            font-size: 14px;
            font-weight: 400;
            cursor: pointer;
            padding: 8px 16px;
            border-radius: 20px;
            transition: background-color 0.2s ease;
            background:#000;
        }

        .modal-comment-submit:hover {
            background-color: #000;
        }

        .modal-comments-list {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 16px;
            padding:12px;
            overflow-y: auto;
        }

        .modal-comment-item {
            display: flex;
            gap: 12px;
            padding-bottom: 16px;
            border-bottom: 1px solid #f0f0f0;
        }

        .modal-comment-author {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .modal-comment-content {
            flex: 1;
        }

        .modal-comment-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .modal-comment-username {
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }

        .modal-comment-time {
            font-size: 12px;
            color: #999;
        }

        .modal-comment-text-content {
            font-size: 14px;
            color: #333;
            line-height: 1.5;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .game-modal-body {
                flex-direction: column;
            }

            .game-modal-left {
                border-right: none;
                border-bottom: 1px solid #eee;
            }

            .game-modal-content {
                width: 95%;
                margin: 10% auto;
            }
        }

        
        
        
        /* 导航菜单和子菜单样式 */
        .nav-menu {
            position: relative;
            display: inline-block;
        }

        .submenu {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 8px;
            background-color: #fff;
            border: 1px solid #eee;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            min-width: 200px;
        }

        .submenu-content {
            padding: 8px 0;
        }

        .submenu-item {
            display: block;
            padding: 12px 16px;
            font-size: 14px;
            color: #333;
            text-decoration: none;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .submenu-item:hover {
            background-color: #f8f9fa;
        }

        .submenu-item.active {
            background-color: #e6f0ff;
            color: #007bff;
        }
        
        /* 多级菜单样式 */
        .submenu-item.has-children {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .submenu-item.has-children:hover {
            background-color: #f8f9fa;
        }
        
        .submenu-title {
            flex: 1;
        }
        
        .child-submenu {
            position: absolute;
            top: 0;
            left: 100%;
            margin-left: 8px;
            margin-top: 0;
            min-width: 180px;
        }
        
        /* 响应式多级菜单 */
        @media (max-width: 768px) {
            .child-submenu {
                position: static;
                margin-left: 20px;
                margin-top: 8px;
                box-shadow: none;
                border-left: 2px solid #eee;
            }
        }

        /* 课程元信息样式 */
        .game-meta-info {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 8px 0;
            padding: 8px 0;
            border-top: 1px solid #f0f0f0;
        }

        .meta-item {
            font-size: 12px;
            color: #666;
            background-color: #f8f9fa;
            padding: 4px 8px;
            border-radius: 12px;
        }
        /* 小屏幕优化 */
        @media (max-width: 480px) {
            .nav-buttons {
                display: none;
            }
        }

        /* 搜索按钮样式 */
        .search-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 4px;
            transition: all 0.2s ease;
            color: #666;
        }

        .search-btn:hover {
            background-color: #f8f9fa;
            color: #000;
        }

        .search-btn.active {
            background-color: #e60023;
            color: #fff;
        }

        .search-btn i {
            font-size: 16px;
        }



        