* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --background-color: #1a1a2e;
    --card-background: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --gradient-1: #FF6B6B;
    --gradient-2: #4ECDC4;
    --gradient-3: #45B7D1;
    --gradient-4: #96C93D;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.search-bar:hover {
    transform: translateY(-2px);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 5px;
    background: transparent;
}

.search-btn {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary-color);
}

/* 导航标签样式 */
.nav-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-tabs a {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    position: relative;
}

.nav-tabs a.active {
    color: #4CAF50;
    font-weight: bold;
}

.nav-tabs a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: #4CAF50;
    border-radius: 3px;
}

/* 游戏卡片样式 */
.featured-game {
    margin-bottom: 30px;
}

.game-card {
    background: var(--card-background);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    padding: 3px;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--gradient-1),
        var(--gradient-2),
        var(--gradient-3),
        var(--gradient-4),
        var(--gradient-1)
    );
    background-size: 400%;
    z-index: -1;
    border-radius: 22px;
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.game-card:hover::before {
    opacity: 1;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.game-card .inner-content {
    background: var(--card-background);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
}

.game-card.large img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-info {
    padding: 20px;
    position: relative;
}

.game-info h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--text-primary);
}

.game-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.install-btn {
    background: linear-gradient(45deg, var(--gradient-1), var(--gradient-2));
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: absolute;
    right: 5px;
    bottom: 30px;
}

.install-btn:hover {
    background: linear-gradient(45deg, var(--gradient-2), var(--gradient-1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 快捷功能区样式 */
.quick-access {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quick-item .icon {
    font-size: 24px;
    margin-bottom: 5px;
}

/* 游戏列表样式 */
.game-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.game-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-radius: 3px;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
}

.rating {
    color: #FFD700;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.3s ease;
}

.bottom-nav a.active {
    color: var(--primary-color);
}

.bottom-nav a:hover {
    transform: translateY(-2px);
}

.bottom-nav .icon {
    font-size: 22px;
    margin-bottom: 4px;
}

footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.copyright {
    display: flex;
    position: relative;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}