/* 游戏详情页特定样式 */
.game-detail-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: #f0f0f0;
}

.game-title {
    font-size: 2.2rem;
    color: #bb86fc;
    margin: 0;
    font-weight: 700;
}

.game-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.game-meta-item {
    display: flex;
    align-items: center;
}

.game-meta-label {
    font-weight: 600;
    margin-right: 5px;
    color: #bb86fc;
}

.game-content {
    display: flex;
    gap: 30px;
}

.game-main {
    flex: 1;
}

.game-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* 游戏容器样式 */
.game-container {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    height: 600px;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 游戏控制区域 */
.game-controls {
    display: flex;
    justify-content: space-between;
    background-color: #2d2d2d;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.control-buttons {
    display: flex;
    gap: 10px;
}

.fullscreen-btn, .restart-btn {
    background-color: rgba(187, 134, 252, 0.2);
    color: #bb86fc;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.fullscreen-btn:hover, .restart-btn:hover {
    background-color: rgba(187, 134, 252, 0.3);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-icon {
    color: #bb86fc;
}

.volume-slider {
    width: 100px;
    -webkit-appearance: none;
    height: 5px;
    background: rgba(187, 134, 252, 0.2);
    border-radius: 5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #bb86fc;
    border-radius: 50%;
    cursor: pointer;
}

/* 游戏头部区域样式 */
.game-header-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.game-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(187, 134, 252, 0.1);
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 15px;
}

.game-meta-category {
    color: #bb86fc;
    font-size: 1.1rem;
    font-weight: 600;
}

.game-meta-rating {
    display: flex;
    align-items: center;
    color: #ffeb3b;
    font-weight: 700;
    font-size: 1.2rem;
}

.rating-star {
    margin-right: 5px;
}

/* 游戏部分样式 */
.game-section {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    background-color: rgba(187, 134, 252, 0.2);
    color: #bb86fc;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.action-btn:hover {
    background-color: rgba(187, 134, 252, 0.3);
}

.description-title {
    font-size: 1.5rem;
    color: #bb86fc;
    margin-bottom: 15px;
    font-weight: 600;
}

.description-text {
    line-height: 1.6;
    color: #f0f0f0;
}

/* 侧边栏样式 */
.sidebar-section {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 1.2rem;
    color: #bb86fc;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 推荐游戏卡片样式 */
.similar-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.similar-game-card {
    background-color: rgba(187, 134, 252, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.similar-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.similar-game-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.similar-game-info {
    padding: 8px;
    flex-grow: 1;
}

.similar-game-title {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-game-category {
    font-size: 0.7rem;
    color: #bb86fc;
}

.play-now-btn {
    display: block;
    background-color: #bb86fc;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: auto;
    border-radius: 0;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.play-now-btn:hover {
    background-color: #a157fc;
    box-shadow: 0 0 8px rgba(187, 134, 252, 0.5);
}

.play-now-btn:active {
    background-color: #9149f0;
}

/* 评分星星样式 */
.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.rating-number {
    font-size: 2.5rem;
    color: #ffeb3b;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.rating-stars {
    color: #ffeb3b;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.review-count {
    font-size: 0.8rem;
    color: #a0a0a0;
}

/* 统计列表样式 */
.stat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1rem;
    color: #f0f0f0;
    font-weight: 600;
}

/* 标签样式 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-tag {
    background-color: rgba(187, 134, 252, 0.2);
    color: #bb86fc;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
}

/* 控制方式样式 */
.control-list {
    list-style: none;
}

.control-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.control-icon {
    background-color: rgba(187, 134, 252, 0.2);
    color: #bb86fc;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 简化页脚 */
.footer-simple {
    margin-top: 30px;
    text-align: center;
    padding: 20px 0;
    color: #a0a0a0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 加载动画 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 16, 47, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.loading-text {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #FF4F9A;
    font-weight: 500;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(138, 79, 255, 0.3);
    border-radius: 50%;
    border-top-color: #8A4FFF;
    animation: spin 1s ease-in-out infinite;
}

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

/* 响应式样式 */
@media (max-width: 992px) {
    .game-content {
        flex-direction: column;
    }
    
    .game-sidebar {
        width: 100%;
    }
    
    .similar-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .similar-games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .description-title {
        font-size: 1.3rem;
    }
}

/* 加载和错误提示样式 */
.loading-games {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #a0a0a0;
    text-align: center;
}

.small-spinner {
    width: 30px;
    height: 30px;
    border-width: 3px;
    margin-bottom: 10px;
}

.loading-tag {
    background-color: rgba(187, 134, 252, 0.1);
    color: rgba(187, 134, 252, 0.5);
}

.loading-control {
    opacity: 0.6;
}

/* 错误容器样式 */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    background-color: rgba(255, 87, 87, 0.1);
    border-radius: 8px;
}

.error-container h2 {
    font-size: 2rem;
    color: #ff5757;
    margin-bottom: 20px;
}

.error-container p {
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 600px;
    line-height: 1.6;
}

.error-container .btn {
    background-color: #bb86fc;
    color: #1a1a1a;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}

.error-container .btn:hover {
    background-color: #d0a7ff;
    transform: translateY(-2px);
}

.error-container .btn:active {
    transform: translateY(0);
}

.error-message {
    background-color: rgba(255, 87, 87, 0.1);
    color: #ff5757;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    margin: 30px 0;
}

.error-message h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ff5757;
}

.error-message p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.error-message .btn {
    display: inline-block;
    background-color: rgba(187, 134, 252, 0.2);
    color: #bb86fc;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.error-message .btn:hover {
    background-color: rgba(187, 134, 252, 0.3);
}

/* 本地游戏相关样式 */
.local-game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e;
}

.local-game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

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

.game-header h3 {
    font-size: 1.8rem;
    color: #bb86fc;
    margin: 0;
}

.game-status {
    background-color: rgba(187, 134, 252, 0.2);
    color: #bb86fc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.game-demo-content {
    display: flex;
    flex: 1;
    gap: 30px;
}

.demo-message {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.demo-message p {
    margin-bottom: 20px;
    color: #ffeb3b;
}

.game-instructions {
    color: #f0f0f0;
}

.game-instructions h4 {
    font-size: 1.2rem;
    color: #bb86fc;
    margin: 15px 0 10px;
}

.controls-info {
    margin-top: 20px;
}

.controls-info ul {
    list-style: none;
    padding: 0;
}

.controls-info li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.controls-info i {
    margin-right: 10px;
    color: #bb86fc;
    width: 20px;
    text-align: center;
}

.demo-game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.game-preview-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.interactive-area {
    text-align: center;
}

.interactive-area p {
    margin-bottom: 15px;
    color: #bb86fc;
}

/* 本地游戏样式 */
.local-game-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-score-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: #bb86fc;
    margin-bottom: 20px;
}

/* 颜色匹配游戏样式 */
.color-match-game {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

.color-cell {
    aspect-ratio: 1;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.color-cell:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.color-cell.removed {
    opacity: 0.2;
}

/* 记忆游戏样式 */
.memory-game {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

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

.memory-card {
    perspective: 1000px;
    aspect-ratio: 1;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front {
    background-color: #8a4fff;
}

.card-back {
    background-color: #f0f0f0;
    color: #1a1a1a;
    transform: rotateY(180deg);
    font-size: 2rem;
}

.memory-card.matched .card-inner {
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.8);
}

/* 点击器游戏样式 */
.clicker-game {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.clicker-target {
    width: 150px;
    height: 150px;
    background-color: #8a4fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 3rem;
    color: #fff;
    transition: transform 0.15s, background-color 0.3s;
}

.clicker-target:hover {
    background-color: #bb86fc;
    transform: scale(1.05);
}

.clicker-target.clicked {
    transform: scale(0.95);
}

.clicker-progress {
    width: 100%;
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 15px;
    background-color: rgba(187, 134, 252, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background-color: #bb86fc;
    transition: width 0.3s;
}

.game-controls {
    margin-top: 20px;
}

/* 错误选项样式 */
.error-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
} 