﻿:root {
    --primary-color: #f0f2f5; /*  */
    --secondary-color: #ff6f00; /* ， */
    --accent-color: #ffffff; /*  */
    --text-color: #333; /*  */
    --text-secondary: #666; /*  */
    --card-bg: #ffffff; /*  */
    --bottom-nav-bg: #e65100; /*  */
    --bottom-nav-active: #fff4eb; /*  */
    --button-gradient: linear-gradient(90deg, #ff6f00, #e65100); /*  */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px; /*  */
    max-width: 500px; /* ， */
    margin: 0 auto; /*  */
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 500px;
}

.logo img {
    height: 40px;
}

.login-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.btn {
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.login {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.register {
    background: var(--button-gradient);
    border: none;
    color: white;
}

/* ： */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 25px 20px 30px;
    background-color: var(--card-bg);
    margin: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(255, 111, 0, 0.2); /*  */
    border: 1px solid rgba(255, 111, 0, 0.1); /*  */
}

.hero-content {
    z-index: 2;
    position: relative;
    margin-bottom: 25px;
    padding: 0 5px; /*  */
}

.main-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-color); /*  */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.sub-title {
    font-size: 15px;
    margin-bottom: 25px;
    color: var(--text-secondary);
    max-width: 95%;
    line-height: 1.6;
    letter-spacing: 0.3px;
    opacity: 0.9;
}

.cta-btn {
    background: var(--button-gradient);
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3); /*  */
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    margin: 5px auto 0;
    width: fit-content;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 111, 0, 0.4); /*  */
}

.hero-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    height: auto;
    min-height: 300px;
    background-color: var(--card-bg);
}

.hero-image img {
    width: 100%;
    display: block;
    object-fit: contain;
    padding: 10px;
}

/* ： */
.section-title {
    text-align: center;
    margin: 30px 0 20px;
    color: var(--text-color); /*  */
    font-size: 24px;
    font-weight: 600;
}

.features-section {
    padding: 0 20px 30px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 111, 0, 0.1); /*  */
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color); /*  */
    box-shadow: 0 10px 20px rgba(255, 111, 0, 0.2); /*  */
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 32px;
    color: var(--secondary-color); /*  */
}

.feature-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color); /*  */
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ： */
.payment-section {
    padding: 0 20px 30px;
    background-color: var(--card-bg);
    margin: 20px;
    border-radius: 15px;
}

.payment-methods {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 10px;
    overflow-x: auto;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    flex: 1;
}

.payment-method i {
    font-size: calc(16px + 1vw);
    color: var(--secondary-color); /*  */
    margin-bottom: 5px;
}

.payment-method span {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

/* ： */
.promotions-section {
    padding: 0 20px 30px;
}

.promotions-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.promotion-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.promotion-image {
    width: 100%;
    height: 120px;
    background-color: var(--card-bg);
}

.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promotion-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promotion-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color); /*  */
}

.promotion-content p {
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    flex: 1;
}

.promo-btn {
    font-size: 13px;
    padding: 6px 15px;
    background: var(--button-gradient);
    color: white;
    align-self: flex-start;
}

.promotion-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color), #e65100); /*  */
    height: 120px;
    position: relative;
}

.promotion-icon i {
    font-size: 48px;
    color: white; /*  */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color); /*  */
    color: white;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/*  */
.games-section {
    padding: 0 20px 30px;
    margin-bottom: 20px;
}

.game-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.game-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1 / 1.1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    transform-origin: center;
    background-color: var(--card-bg);
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--card-bg);
    transition: transform 0.5s ease;
    padding: 5px;
}

.game-item:hover img {
    transform: scale(1.05); /*  */
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: center;
    justify-content: center; /*  */
    opacity: 0.7; /*  */
    transition: opacity 0.3s ease, padding 0.3s ease;
    height: 30%; /*  */
}

.game-item:hover .game-overlay {
    padding-bottom: 20px; /*  */
    opacity: 1; /*  */
}

.game-name {
    font-weight: 700; /*  */
    font-size: 16px; /*  */
    color: #ffffff; /*  */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /*  */
    letter-spacing: 0.5px; /*  */
    text-align: center;
    transition: transform 0.3s ease;
}

.game-item:hover .game-name {
    transform: translateY(-5px); /*  */
}

/*  */
.game-overlay::before {
    content: "PG Soft";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary-color); /*  */
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-item:hover .game-overlay::before {
    opacity: 1;
    transform: translateY(0);
}

/*  */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bottom-nav-bg);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    max-width: 500px; /* ， */
    margin: 0 auto; /*  */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    width: 20%;
    text-align: center;
}

.nav-item.active {
    color: var(--bottom-nav-active);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-icon i {
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-item.active .nav-icon i {
    color: var(--bottom-nav-active);
}

/*  */
.nav-item:nth-child(3) {
    transform: translateY(-20px);
}

.nav-item:nth-child(3) .nav-icon {
    background-color: var(--secondary-color); /*  */
    border-radius: 50%;
    padding: 10px;
    width: 50px;
    height: 50px;
    position: relative;
}

.nav-item:nth-child(3) .nav-icon i {
    font-size: 24px;
    color: white;
}

.nav-item:nth-child(3) .nav-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background-color: rgba(255, 111, 0, 0.3); /*  */
    border-radius: 50%;
    z-index: -1;
}