:root {
    --primary-color: #FFA500; /* 橙黄色主题 */
    --primary-light: #FFD700;
    --primary-dark: #FF8C00;
    --secondary-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 8px;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 头部样式 */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo i {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    gap: 15px;
}

.main-nav a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.main-nav a:hover {
    background-color: rgba(255, 165, 0, 0.1);
    color: var(--primary-dark);
}

.main-nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 60px 0;
    color: var(--white);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 内容区域 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 游戏卡片 */
.game-cards, .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.game-card, .game-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.game-card:hover, .game-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-card img, .game-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-card-content, .game-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-content h3, .game-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.game-card-content p, .game-info p {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
    flex: 1;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.game-category {
    display: inline-block;
    background-color: rgba(255, 165, 0, 0.1);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    border-radius: 0;
    padding: 12px 20px;
    white-space: nowrap;
}

/* 游戏播放器 */
.game-player-container {
    max-width: 1000px;
    margin: 40px auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.player-header {
    padding: 15px 20px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.player-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.player-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    width: 100%;
}

.player-controls {
    display: flex;
    gap: 10px;
}

.player-controls button {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.player-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.game-frame-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.back-btn-container {
    text-align: center;
    margin: 30px 0;
}

/* 页脚 */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.main-footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .game-cards, .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .player-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .player-controls {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .search-bar {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-bar input {
        border-radius: 12px 12px 0 0 !important;
    }
    
    .search-bar button {
        border-radius: 0 0 12px 12px !important;
    }
    
    .game-cards, .games-grid {
        grid-template-columns: 1fr;
    }
}
/* 添加到现有样式文件中 */

/* App下载栏样式 */
.app-download-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 90;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-icon {
    font-size: 1.8rem;
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.app-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.btn-download {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 50px;
    white-space: nowrap;
}

.btn-download:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--white);
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-close:hover {
    transform: rotate(90deg);
}

/* 调整主内容区底部间距 */
main.section {
    padding-bottom: 100px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .app-info {
        flex-direction: column;
        text-align: center;
    }
    
    .app-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-download {
        width: 100%;
    }
    
    .btn-close {
        top: 5px;
        right: 5px;
    }
}
/* App下载相关样式 */

/* 英雄区域的App下载CTA */
.app-download-cta {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.app-download-cta p {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--white);
}

.app-download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-download {
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* 英雄区域的APP预览图 */
.hero-image {
    position: relative;
}

.app-mockup {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.app-mockup:hover {
    transform: rotate(0) scale(1.05);
}

/* 浮动App下载栏 */
.floating-app-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    max-width: 600px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 95;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-app-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.floating-app-content .app-icon {
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-app-content .app-text {
    flex: 1;
}

.floating-app-content .app-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.floating-app-content .app-text p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.floating-app-content .app-buttons {
    display: flex;
    gap: 10px;
}

.floating-app-content .btn-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--white);
    color: var(--primary-color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.floating-app-content .btn-close:hover {
    transform: rotate(90deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-download-buttons {
        flex-direction: column;
    }
    
    .app-download-buttons .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .app-mockup {
        width: 120px;
        bottom: -20px;
        right: -10px;
    }
    
    .floating-app-bar {
        width: calc(100% - 30px);
        bottom: 10px;
    }
    
    .floating-app-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .floating-app-content .app-text {
        flex: 0 0 100%;
        text-align: center;
    }
    
    .floating-app-content .btn-close {
        top: 5px;
        right: 5px;
    }
}
/* 添加退出全屏按钮样式 */
.exit-fullscreen-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
}

.exit-fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* 全屏状态下显示退出按钮 */
:fullscreen .exit-fullscreen-btn,
:-webkit-full-screen .exit-fullscreen-btn,
:-moz-full-screen .exit-fullscreen-btn,
:-ms-fullscreen .exit-fullscreen-btn {
    opacity: 1;
}
/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown > a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 50px;
    transition: var(--transition);
}

.user-dropdown > a:hover {
    background-color: rgba(255, 165, 0, 0.1);
    color: var(--primary-dark);
}

.user-dropdown > a i {
    font-size: 1.2rem;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 165, 0, 0.1);
    color: var(--primary-dark);
}

.dropdown-menu a i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}
/* 游戏库样式 */
.category-filter {
    margin-bottom: 25px;
}

.category-btn {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.category-btn:hover {
    background-color: #e0e0e0;
}

.category-btn.active {
    background-color: #FFA500;
    color: white;
}

.category-section {
    margin-bottom: 40px;
}

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.category-icon {
    width: 40px;
    height: 40px;
    background-color: #FFA500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 18px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 8px;
        margin-bottom: 8px;
    }
    
    .category-title {
        margin-bottom: 15px;
    }
    
    .category-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-right: 10px;
    }
}
