/* 手机版工作坊样式 */

.mobile-game-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-bottom: 80px; /* 为底部导航留出空间 */
}

/* 顶部导航栏 */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-back-btn,
.mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-back-btn:hover,
.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    flex: 1;
    text-align: center;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background: rgba(26, 26, 46, 0.98);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu-content a {
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 1.1rem;
}

.mobile-menu-content a:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* 工作坊列表 */
.mobile-games-list {
    padding: 1rem;
}

.mobile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mobile-section-header h2,
.mobile-section-header h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin: 0;
}

.mobile-games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.mobile-game-card {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-game-card h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.mobile-game-card .game-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.mobile-game-card .game-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* 按钮样式 */
.mobile-btn-primary,
.mobile-btn-sm {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.mobile-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.mobile-btn-primary:hover,
.mobile-btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* 阶段导航（底部固定） */
.mobile-stage-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.mobile-stage-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    min-width: 60px;
}

.mobile-stage-btn.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.mobile-stage-btn .stage-icon {
    font-size: 1.5rem;
}

.mobile-stage-btn .stage-label {
    font-size: 0.75rem;
}

/* 阶段内容 */
.mobile-stage-content {
    padding: 1rem;
    padding-bottom: 100px; /* 为底部导航留出空间 */
}

.mobile-section {
    margin-bottom: 2rem;
}

/* 操作栏 */
.mobile-actions-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mobile-actions-bar .mobile-btn-primary {
    font-size: 0.85rem;
    padding: 0.75rem 0.5rem;
}

/* 筛选栏 */
.mobile-filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.mobile-filter-bar::-webkit-scrollbar {
    display: none;
}

.mobile-filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-filter-btn:hover,
.mobile-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 卡片列表 */
.mobile-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-card-item {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 12px;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.mobile-card-item:active {
    transform: scale(0.98);
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mobile-card-header h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.mobile-card-actions {
    display: flex;
    gap: 0.5rem;
}

.mobile-card-content {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.mobile-card-content p {
    margin: 0.5rem 0;
}

/* 模态框适配移动端 */
.modal-content {
    max-width: 95vw !important;
    max-height: 90vh;
    overflow-y: auto;
    margin: 5vh auto;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .mobile-actions-bar {
        grid-template-columns: 1fr;
    }
    
    .mobile-stage-nav {
        padding: 0.5rem 0;
    }
    
    .mobile-stage-btn {
        padding: 0.4rem 0.5rem;
        min-width: 50px;
    }
    
    .mobile-stage-btn .stage-icon {
        font-size: 1.3rem;
    }
    
    .mobile-stage-btn .stage-label {
        font-size: 0.7rem;
    }
}











