* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 15px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Toast提示样式 */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* 页面过渡动画 */
.page-transition {
    animation: pageFadeIn 0.3s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片进入动画 */
.card-enter {
    animation: cardSlideUp 0.5s ease-out;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮悬停和点击效果 */
.btn-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-hover:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 渐入动画 */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 缩放进入动画 */
.scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 滑入动画 */
.slide-in-right {
    animation: slideInRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 滑入动画（从左） */
.slide-in-left {
    animation: slideInLeft 0.3s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: toastIn 0.3s ease-out;
    pointer-events: auto;
}

.toast.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.toast.error {
    background: linear-gradient(135deg, #f44336, #e53935);
}

.toast.info {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* 空状态提示样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
}

/* 增强的加载动画 */
.loading-dots {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 骨架屏加载效果 */
.skeleton {
    background: linear-gradient(90deg, #2a2a4a 25%, #3a3a5a 50%, #2a2a4a 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 进度条加载 */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.empty-action {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.empty-action:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}



html, body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* ========== 顶部导航 ========== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 100;
    color: #fff;
    font-size: 12px;
}

.taojin-tab {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

.taojin-tab:active {
    transform: scale(0.95);
}

.taojin-icon {
    font-size: 12px;
}

.taojin-label {
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.tabs {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
    overflow-x: auto;
    padding: 0 5px;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    opacity: 0.6;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.tab.active {
    opacity: 1;
    font-weight: 700;
    font-size: 14px;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* ========== 游戏流容器 ========== */
.game-feed {
    width: 100%;
    height: calc(100vh - 84px);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-top: 40px;
}

.game-feed::-webkit-scrollbar {
    display: none;
}

/* ========== 游戏卡片 ========== */
.game-card {
    width: 100%;
    height: calc(100vh - 84px);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
}

.game-preview {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;  /* 按钮靠底部 */
    justify-content: center;
    padding-bottom: 180px;  /* 距离底部作者区域的距离，移到红色圆圈位置 */
    background: rgba(0,0,0,0.15);  /* 降低遮罩透明度 */
    pointer-events: none;  /* 允许点击穿透 */
}

.preview-overlay * {
    pointer-events: auto;  /* 子元素可以接收点击 */
}

.center-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.center-buttons.multiplayer-buttons {
    flex-direction: column;
    gap: 15px;
}

.center-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.6);  /* 增大透明度，更通透 */
    border: none;
    border-radius: 30px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);  /* 添加模糊背景效果 */
    position: relative;
    z-index: 10;
    /* 增大点击区域 */
    min-width: 160px;
    min-height: 60px;
}

.center-btn:active {
    transform: scale(0.95);
}

.start-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));  /* 增大透明度 */
    color: #fff;
    padding: 10px 25px;
    border-radius: 16px;
}

.start-btn .btn-icon {
    font-size: 14px;
}

.start-btn .btn-text {
    font-size: 14px;
}

.match-btn {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.6), rgba(230, 126, 34, 0.6));  /* 增大透明度 */
    color: #fff;
}

.invite-btn {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.6), rgba(41, 128, 185, 0.6));  /* 增大透明度 */
    color: #fff;
}

.btn-icon {
    font-size: 18px;
}

.btn-text {
    font-size: 15px;
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

.user-badge {
    position: absolute;
    top: 70px;
    left: 15px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.multiplayer-badge {
    position: absolute;
    top: 110px;
    left: 15px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.waiting-badge {
    position: absolute;
    top: 150px;
    left: 15px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 15px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* 右侧操作栏 */
.action-bar {
    position: absolute;
    right: 8px;
    bottom: 95px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 10px;
    gap: 4px;
}

.action-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.action-btn:active .action-icon {
    transform: scale(0.9);
}

.action-btn.liked .action-icon {
    background: #ff2d55;
    animation: likePulse 0.3s ease-out;
}

@keyframes likePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}

/* 点赞飘心动画 */
.like-float {
    position: absolute;
    font-size: 20px;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.5);
    }
}

/* 底部信息区 */
.game-info {
    position: absolute;
    bottom: 80px;
    left: 15px;
    right: 80px;
    color: #fff;
}

.game-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.game-desc {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 10px;
}

.game-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.8;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
}

.edit-tag {
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
}

.music-icon {
    position: absolute;
    right: 15px;
    top: 70px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== 底部导航 ========== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    gap: 2px;
    cursor: pointer;
}

.nav-item.active {
    color: #fff;
}

.nav-icon {
    font-size: 20px;
}

.nav-create {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -8px;
}

.nav-create .nav-icon {
    font-size: 16px;
    color: #fff;
}

.unread-badge {
    position: absolute;
    top: -3px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    background: #ff2d55;
    border-radius: 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ========== 游戏游玩层 ========== */
.game-play-layer {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.game-play-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background: rgba(0,0,0,0.8);
    color: #fff;
}

.back-btn, .share-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.game-play-title {
    font-size: 16px;
    font-weight: 600;
}

#playCanvas {
    flex: 1;
    width: 100%;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
}

.game-play-controls {
    height: 80px;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #fff;
}

.play-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.play-action {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.danmaku-container {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    overflow: hidden;
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    animation: danmaku-move 8s linear forwards;
}

@keyframes danmaku-move {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

/* ========== AI创作流程 ========== */

.create-modal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 500;
    overflow-y: auto;
}

.create-content {
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}

.create-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.create-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    cursor: pointer;
}

.create-subtitle {
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
}

.create-input-area {
    margin-bottom: 30px;
}

.create-input-area textarea {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 16px;
    resize: none;
    margin-bottom: 15px;
    font-family: inherit;
}

.create-input-area textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.create-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.q-tag {
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.2s;
}

.q-tag:hover {
    background: rgba(102, 126, 234, 0.3);
    color: #fff;
}

.create-btn-primary {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    cursor: pointer;
}

.create-btn-secondary {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    cursor: pointer;
}

/* 生成中 */
.create-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.ai-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite;
}

.progress-bar {
    width: 80%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
}

.p-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    transition: all 0.3s;
}

.p-step.active {
    color: #fff;
}

.p-step.done {
    color: #4CAF50;
}

/* 预览调优 */
.create-preview {
    min-height: 100vh;
    background: #000;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    color: #fff;
    font-weight: 600;
}

.preview-canvas-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

#previewCanvas {
    width: 100%;
    height: 100%;
}

.preview-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.preview-controls {
    padding: 20px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 10px;
}

.control-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 16px;
}

.diff-selector, .color-picker {
    display: flex;
    gap: 10px;
}

.d-opt {
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.d-opt.active, .d-opt:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.c-opt {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.c-opt:hover, .c-opt.active {
    border-color: #fff;
    transform: scale(1.1);
}

.preview-actions {
    display: flex;
    gap: 15px;
    padding: 0 20px 30px;
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

/* 发布设置 */
.publish-icon {
    font-size: 60px;
    text-align: center;
    margin: 40px 0 20px;
}

.publish-form {
    margin: 30px 0;
}

.form-item {
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.form-item input, .form-item textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
}

.tag-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.t-opt {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.t-opt.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.publish-tips {
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

.publish-tips p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* 发布成功 */
.create-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.success-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
}

.success-stats div {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.success-stats strong {
    display: block;
    color: #fff;
    font-size: 24px;
    margin-top: 5px;
}

/* 工具类 */
.hidden {
    display: none !important;
}

/* ========== 多人匹配弹窗 ========== */
.match-content {
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}

.match-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.match-header h2 {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.match-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.match-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.match-option:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
}

.match-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.match-text {
    flex: 1;
    text-align: left;
}

.match-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.match-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.match-count {
    font-size: 14px;
    font-weight: 600;
    color: #f39c12;
}

.match-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.match-tips {
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    text-align: center;
}

.match-tips p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

/* ========== 评论面板样式 ========== */
.comments-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 300;
    transition: bottom 0.3s ease-out;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.comments-panel.show {
    bottom: 0;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.comments-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.comments-list::-webkit-scrollbar {
    width: 4px;
}

.comments-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.no-comments {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    padding: 40px 0;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    animation: commentFadeIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.comment-item.new-comment {
    animation: newCommentIn 0.3s ease-out forwards;
    opacity: 1;
    transform: translateY(0);
}

@keyframes commentFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes newCommentIn {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.comment-time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.comment-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    word-break: break-all;
}

.comments-input {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-input input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.comments-input input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
}

.comments-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-btn {
    padding: 12px 24px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.send-btn:hover {
    transform: scale(1.02);
}

.send-btn:active {
    transform: scale(0.98);
}

/* 素材库样式 */
.asset-library {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

.asset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.asset-header .back-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.asset-header span {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.asset-header .confirm-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.asset-tabs {
    display: flex;
    padding: 15px 20px;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: rgba(102, 126, 234, 0.3);
    color: #fff;
}

.asset-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.asset-panel {
    display: block;
}

.asset-panel.hidden {
    display: none;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.bg-grid {
    grid-template-columns: repeat(2, 1fr);
}

.asset-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.asset-item:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.asset-item:active {
    border-color: #667eea;
}

.asset-emoji {
    font-size: 36px;
    margin-bottom: 8px;
}

.asset-name {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.bg-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.bg-item:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.02);
}

.bg-item:active {
    border-color: #667eea;
}

.bg-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.clear-obstacles-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: rgba(239, 83, 80, 0.2);
    color: #ef5350;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.asset-selected {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.selected-item span:last-child {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

/* 消息页面样式 */
.message-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    background: #0a0a0f;
    overflow-y: auto;
    z-index: 100;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    padding-top: 40px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.3), transparent);
}

.message-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.clear-all-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #888;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.clear-all-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.message-tabs {
    display: flex;
    padding: 0 20px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.message-tab {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
}

.message-tab.active {
    color: #fff;
}

.message-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.message-content {
    padding: 20px;
}

.message-panel {
    display: block;
}

.message-panel.hidden {
    display: none;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.message-item:hover {
    background: rgba(255,255,255,0.1);
}

.message-item.unread {
    background: rgba(102, 126, 234, 0.15);
    border-left: 3px solid #667eea;
}

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.message-info {
    flex: 1;
    min-width: 0;
}

.message-title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.message-desc {
    color: #888;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-time {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.message-badge {
    width: 8px;
    height: 8px;
    background: #ff2d55;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

/* 好友页面样式 */
.friends-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    background: #0a0a0f;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.friends-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    padding-top: 40px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.2), transparent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.add-friend-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friends-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.friends-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 0 5px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.section-count {
    font-size: 12px;
    color: #888;
}

.section-badge {
    background: #ff4444;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.friends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 12px;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 3px;
}

.friend-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.friend-status.online {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
}

.friend-status.offline {
    color: #888;
    background: rgba(136, 136, 136, 0.2);
}

.friend-desc {
    font-size: 12px;
    color: #888;
}

.friend-action {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.friend-action.disabled {
    background: rgba(255,255,255,0.1);
    cursor: not-allowed;
}

.friend-action.add-btn {
    background: rgba(76, 175, 80, 0.8);
}

.request-item {
    justify-content: space-between;
}

.request-actions {
    display: flex;
    gap: 8px;
}

.accept-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: #4caf50;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.reject-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* 好友邀请弹窗样式 */
.invite-game-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 15px;
}

.invite-game-icon {
    font-size: 48px;
    margin-right: 12px;
}

.invite-game-details {
    flex: 1;
}

.invite-game-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.invite-game-desc {
    font-size: 13px;
    color: #888;
}

.invite-friends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.invite-checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.invite-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.2);
}

.invite-checkbox:hover input ~ .checkmark {
    background: rgba(255,255,255,0.15);
}

.invite-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.invite-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.invite-checkbox input:disabled ~ .checkmark {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 添加好友弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.modal-content {
    width: 90%;
    max-width: 320px;
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 热门页面样式 */
.hot-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    background: #0a0a0f;
    overflow-y: auto;
    z-index: 100;
}

.hot-header {
    background: linear-gradient(180deg, rgba(243, 156, 18, 0.3), transparent);
    padding: 20px;
    padding-top: 40px;
    text-align: center;
}

.hot-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.hot-subtitle {
    font-size: 14px;
    color: #888;
}

.hot-content {
    padding: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

/* 排行榜样式 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ranking-item:hover {
    background: rgba(255,255,255,0.1);
}

.ranking-item.top-three {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(230, 126, 34, 0.1));
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.ranking-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #888;
}

.ranking-num.top1 {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #fff;
}

.ranking-num.top2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #fff;
}

.ranking-num.top3 {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #fff;
}

.ranking-avatar {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.ranking-stats {
    font-size: 12px;
    color: #888;
}

.ranking-arrow {
    color: #666;
    font-size: 16px;
}

/* 热门游戏列表 */
.hot-game-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hot-game-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.hot-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hot-game-cover {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.hot-game-info {
    padding: 10px;
}

.hot-game-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-game-stats {
    font-size: 11px;
    color: #888;
}

/* 上升最快列表 */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
    border-left: 3px solid #4CAF50;
    cursor: pointer;
    transition: all 0.2s;
}

.trending-item:hover {
    background: rgba(76, 175, 80, 0.15);
}

.trending-arrow {
    color: #4CAF50;
    font-size: 18px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.trending-info {
    flex: 1;
}

.trending-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.trending-gain {
    font-size: 12px;
    color: #4CAF50;
    font-weight: 500;
}

/* 设置页面样式 */
.settings-page, .feedback-page, .about-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0f;
    z-index: 200;
}

.settings-header, .feedback-header, .about-header {
    display: flex;
    align-items: center;
    padding: 20px;
    padding-top: 40px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.2), transparent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.settings-header span, .feedback-header span, .about-header span {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.settings-content {
    padding: 20px;
}

.settings-section {
    margin-bottom: 25px;
}

.section-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    padding-left: 10px;
}

.settings-list {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background: rgba(255,255,255,0.05);
}

.settings-icon {
    font-size: 20px;
    margin-right: 12px;
}

.settings-text {
    flex: 1;
    color: #fff;
    font-size: 15px;
}

.settings-value {
    color: #888;
    font-size: 14px;
    margin-right: 10px;
}

.settings-arrow {
    color: #666;
    font-size: 18px;
}

/* 开关样式 */
.toggle-item {
    justify-content: space-between;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.2);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* 反馈页面样式 */
.feedback-content {
    padding: 20px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    color: #888;
}

.form-select, .form-input, .form-textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-size: 15px;
}

.form-textarea {
    min-height: 120px;
    resize: none;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 10px;
}

/* 登录/注册页面样式 */
.auth-page, .account-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0f;
    z-index: 200;
}

.auth-header {
    display: flex;
    align-items: center;
    padding: 20px;
    padding-top: 40px;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.2), transparent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.auth-header span {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.auth-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
}

.auth-logo {
    font-size: 60px;
    margin-bottom: 15px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 40px;
}

.auth-form {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 14px;
}

.link-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    cursor: pointer;
}

/* 账号信息页面样式 */
.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 15px;
}

.account-name {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.account-id {
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
}

.account-form {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 登录提示样式 */
.login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    text-align: center;
}

.prompt-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.prompt-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.prompt-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}

.login-prompt .submit-btn {
    width: 100%;
    max-width: 200px;
}

/* 关于页面样式 */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.about-logo {
    font-size: 80px;
    margin-bottom: 20px;
}

.about-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.about-version {
    font-size: 14px;
    color: #888;
    margin-bottom: 25px;
}

.about-desc {
    font-size: 15px;
    color: #aaa;
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    font-size: 14px;
    color: #888;
}

/* ========== 响应式设计 ========== */

/* 小屏幕设备（手机） */
@media screen and (max-width: 480px) {
    .top-bar {
        height: 45px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .tab {
        padding: 4px 6px;
        font-size: 13px;
    }
    
    .tab.active {
        font-size: 15px;
    }
    
    .game-card {
        min-height: 568px;
    }
    
    .game-title {
        font-size: 17px;
    }
    
    .game-desc {
        font-size: 13px;
    }
    
    .center-btn {
        min-width: 140px;
        min-height: 50px;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .action-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .bottom-bar {
        height: 55px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-item {
        font-size: 10px;
    }
    
    .nav-create {
        width: 44px;
        height: 32px;
    }
    
    .music-icon {
        width: 35px;
        height: 35px;
        top: 65px;
    }
    
    .user-badge, .multiplayer-badge, .waiting-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .user-badge {
        top: 65px;
    }
    
    .multiplayer-badge {
        top: 100px;
    }
    
    .waiting-badge {
        top: 135px;
    }
}

/* 中等屏幕设备（平板） */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .top-bar {
        height: 55px;
        padding: 0 15px;
        font-size: 15px;
    }
    
    .tab {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .tab.active {
        font-size: 17px;
    }
    
    .game-title {
        font-size: 20px;
    }
    
    .game-desc {
        font-size: 15px;
    }
    
    .center-btn {
        min-width: 180px;
        min-height: 65px;
        padding: 16px 30px;
        font-size: 17px;
    }
    
    .action-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    
    .bottom-bar {
        height: 65px;
    }
    
    .nav-icon {
        font-size: 24px;
    }
    
    .nav-item {
        font-size: 12px;
    }
    
    .nav-create {
        width: 52px;
        height: 40px;
    }
}

/* 大屏幕设备（桌面） */
@media screen and (min-width: 769px) {
    html, body {
        max-width: 420px;
        margin: 0 auto;
        background: #1a1a2e;
    }
    
    .top-bar {
        height: 55px;
        padding: 0 15px;
        font-size: 15px;
    }
    
    .game-title {
        font-size: 20px;
    }
    
    .center-btn {
        min-width: 180px;
        min-height: 65px;
        padding: 16px 30px;
        font-size: 17px;
    }
    
    .center-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    
    .action-icon:hover {
        transform: scale(1.1);
    }
    
    .bottom-bar {
        height: 65px;
    }
    
    .nav-item:hover {
        color: #fff;
    }
    
    .nav-create:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
}

/* 横屏模式 */
@media screen and (orientation: landscape) and (max-height: 450px) {
    .preview-overlay {
        padding-bottom: 120px;
    }
    
    .game-info {
        bottom: 60px;
    }
    
    .action-bar {
        bottom: 100px;
    }
    
    .center-btn {
        min-height: 50px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .tab.active::after {
        background: #fff;
    }
    
    .center-btn {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .action-icon {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .game-feed {
        scroll-snap-type: none;
    }
}

.about-copyright {
    font-size: 12px;
    color: #666;
}

/* ========== 排行榜样式 ========== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-item.me {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.leaderboard-item .rank {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.leaderboard-item .avatar {
    font-size: 32px;
}

.leaderboard-item .info {
    flex: 1;
}

.leaderboard-item .username {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.leaderboard-item .score {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.leaderboard-item .total {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

/* ========== 成就样式 ========== */

.achievement-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease-out;
}

.achievement-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.achievement-notification .achievement-icon {
    font-size: 40px;
}

.achievement-notification .achievement-info {
    color: #fff;
}

.achievement-notification .achievement-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.achievement-notification .achievement-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.achievement-notification .achievement-desc {
    font-size: 12px;
    opacity: 0.8;
}

.achievements-modal {
    max-height: 85vh;
}

.achievements-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.achievements-stats .stat-item {
    text-align: center;
}

.achievements-stats .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.achievements-stats .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
}

.achievement-item.unlocked {
    background: rgba(102, 126, 234, 0.1);
}

.achievement-item.unlocked:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.achievement-item.locked {
    opacity: 0.5;
}

.achievement-item .achievement-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.achievement-item .achievement-name {
    font-size: 12px;
    color: #fff;
    text-align: center;
}

.achievement-item .achievement-lock {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
}

/* ========== 队伍样式 ========== */

.teams-modal {
    max-height: 85vh;
}

.my-team {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.my-team .team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.my-team .team-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.my-team .team-badge {
    padding: 4px 12px;
    background: #667eea;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

.my-team .team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.my-team .member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.my-team .member-avatar {
    font-size: 20px;
}

.my-team .member-name {
    font-size: 14px;
    color: #fff;
}

.my-team .member-role {
    font-size: 11px;
    padding: 2px 8px;
    background: #f39c12;
    border-radius: 8px;
    color: #fff;
}

.teams-list h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.teams-list .team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
}

.teams-list .team-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.teams-list .team-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.btn-small {
    padding: 8px 16px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-small:active {
    transform: scale(0.98);
}

/* ========== 关卡编辑器样式 ========== */

.level-editor-modal {
    max-width: 450px;
}

.editor-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.control-group {
    flex: 1;
}

.control-group label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.control-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.level-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.grid-cell {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-cell:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.editor-tools {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.tool-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tool-btn.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: scale(1.1);
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.editor-actions button {
    flex: 1;
    padding: 12px;
}

/* ========== 自定义关卡列表样式 ========== */

.custom-levels-modal {
    max-height: 70vh;
}

.levels-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.level-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s;
}

.level-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.level-info {
    flex: 1;
}

.level-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.level-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.level-actions {
    display: flex;
    gap: 8px;
}

/* 我的页面样式 */
.profile-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    background: #0a0a0f;
    overflow-y: auto;
    z-index: 100;
}

.profile-header {
    position: relative;
    padding: 20px;
    padding-top: 40px;
}

.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 30px 30px;
}

.profile-info {
    position: relative;
    text-align: center;
    padding-top: 50px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 15px;
    border: 4px solid #0a0a0f;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.profile-name {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.profile-id {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    margin-top: 10px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 5px;
}

.edit-profile-btn {
    position: absolute;
    top: 50px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.profile-tabs {
    display: flex;
    padding: 0 20px;
    margin-top: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.profile-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    cursor: pointer;
    position: relative;
}

.profile-tab.active {
    color: #fff;
    font-weight: 600;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.profile-content {
    padding: 20px;
    min-height: 300px;
}

.profile-panel {
    display: block;
}

.profile-panel.hidden {
    display: none;
}

.my-games-list, .favorites-list, .history-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.game-card-mini {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    align-items: stretch;
}

.game-card-mini:hover {
    transform: scale(1.02);
}

.game-card-mini .card-main {
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.game-card-mini .card-cover {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.game-card-mini .card-info {
    padding: 10px;
}

.game-card-mini .card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-mini .card-stats {
    font-size: 11px;
    color: #888;
    display: flex;
    gap: 10px;
}

.game-card-mini .card-actions {
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.2);
}

.game-card-mini .action-btn {
    flex: 1;
    width: 40px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-mini .action-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.game-card-mini .edit-btn:hover {
    background: rgba(102, 126, 234, 0.3);
}

.game-card-mini .delete-btn:hover {
    background: rgba(255, 45, 85, 0.3);
}

.game-card-mini .card-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.empty-tip {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.create-game-btn {
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.profile-menu {
    padding: 0 20px 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
}

.menu-icon {
    font-size: 22px;
    margin-right: 15px;
}

.menu-text {
    flex: 1;
    font-size: 15px;
    color: #fff;
}

.menu-arrow {
    font-size: 20px;
    color: rgba(255,255,255,0.3);
}

/* 编辑资料弹窗 */
.edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.edit-header span {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.save-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.edit-form {
    padding: 20px;
}

.edit-avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.edit-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 15px;
    border: 4px solid rgba(255,255,255,0.1);
}

.change-avatar-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* 头像选择弹窗 */
.avatar-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.avatar-picker-header span {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
}

.avatar-item {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.avatar-item:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.1);
}

.avatar-item:active {
    border-color: #667eea;
}

/* ========== 搜索功能样式 ========== */

.search-results {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.search-result-item:active {
    transform: translateX(2px);
}

.search-game-cover {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.search-game-info {
    flex: 1;
    min-width: 0;
}

.search-game-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.search-game-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-game-stats {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.search-game-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-text {
    font-size: 14px;
}

/* ========== 91淘金入口样式 ========== */

.taojin-entry {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.taojin-entry:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

.taojin-entry:active {
    transform: translateY(-50%) scale(0.95);
}

.taojin-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.taojin-text {
    font-size: 10px;
    font-weight: 600;
    color: #8B4513;
}