/**
 * jili168 Core Stylesheet
 * Prefix: g749-
 * Color Palette: #D8BFD8 | #0F0F23 | #BDC3C7 | #FAF0E6 | #F4A460
 */

/* CSS Variables */
:root {
    --g749-primary: #D8BFD8;
    --g749-bg: #0F0F23;
    --g749-text: #FAF0E6;
    --g749-accent: #F4A460;
    --g749-muted: #BDC3C7;
    --g749-card-bg: #1a1a3e;
    --g749-border: #2a2a5e;
    --g749-gradient: linear-gradient(135deg, #0F0F23 0%, #1a1a3e 100%);
}

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

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--g749-bg);
    color: var(--g749-text);
    line-height: 1.5rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.g749-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.g749-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--g749-bg);
    border-bottom: 1px solid var(--g749-border);
    padding: 0.8rem 0;
}

.g749-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.g749-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g749-logo img {
    width: 28px;
    height: 28px;
}

.g749-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--g749-primary);
}

.g749-header-actions {
    display: flex;
    gap: 0.6rem;
}

.g749-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.g749-btn-login:hover {
    background: var(--g749-primary);
    color: var(--g749-bg);
}

.g749-btn-register {
    background: var(--g749-accent);
    color: var(--g749-bg);
}

.g749-btn-register:hover {
    background: #e8943a;
    transform: translateY(-1px);
}

.g749-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--g749-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Navigation */
.g749-nav {
    display: flex;
    gap: 1.2rem;
}

.g749-nav a {
    color: var(--g749-muted);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.g749-nav a:hover {
    color: var(--g749-primary);
}

/* Mobile Menu */
.g749-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.g749-overlay-active {
    display: block;
}

.g749-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g749-card-bg);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.g749-menu-active {
    right: 0;
}

.g749-mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--g749-text);
    font-size: 2rem;
    cursor: pointer;
}

.g749-mobile-menu-nav {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.g749-mobile-menu-nav a {
    color: var(--g749-text);
    font-size: 1.4rem;
    padding: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.g749-mobile-menu-nav a:hover {
    background: var(--g749-border);
    color: var(--g749-primary);
}

/* Main Content */
main {
    padding-top: 6rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero/Slider Section */
.g749-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.g749-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g749-slide-active {
    opacity: 1;
}

.g749-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Title */
.g749-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g749-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--g749-accent);
}

/* Game Grid */
.g749-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.g749-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.g749-game-item:hover {
    transform: scale(1.05);
}

.g749-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    border: 2px solid var(--g749-border);
}

.g749-game-item span {
    font-size: 1rem;
    color: var(--g749-text);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Label */
.g749-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g749-accent);
    margin-bottom: 1rem;
}

/* Cards */
.g749-card {
    background: var(--g749-card-bg);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--g749-border);
}

.g749-card h3 {
    font-size: 1.4rem;
    color: var(--g749-primary);
    margin-bottom: 0.8rem;
}

.g749-card p {
    font-size: 1.2rem;
    color: var(--g749-muted);
    line-height: 1.6;
}

/* Promo Button */
.g749-promo-btn {
    display: inline-block;
    background: var(--g749-accent);
    color: var(--g749-bg);
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.g749-promo-btn:hover {
    background: #e8943a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 164, 96, 0.4);
}

/* Footer */
.g749-footer {
    background: var(--g749-card-bg);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--g749-border);
}

.g749-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.g749-footer-brand p {
    font-size: 1.1rem;
    color: var(--g749-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.g749-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.g749-footer-links a {
    background: var(--g749-border);
    color: var(--g749-text);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.g749-footer-links a:hover {
    background: var(--g749-accent);
    color: var(--g749-bg);
}

.g749-footer-sitemap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.g749-footer-sitemap a {
    color: var(--g749-muted);
    font-size: 1rem;
    transition: color 0.3s;
}

.g749-footer-sitemap a:hover {
    color: var(--g749-primary);
}

.g749-footer-copyright {
    text-align: center;
    font-size: 1rem;
    color: var(--g749-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--g749-border);
}

/* Bottom Navigation */
.g749-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #1a1a3e 0%, #0F0F23 100%);
    border-top: 1px solid var(--g749-border);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

@media (min-width: 769px) {
    .g749-bottom-nav {
        display: none;
    }
}

.g749-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    padding: 0.4rem;
}

.g749-nav-item:hover {
    background: var(--g749-border);
}

.g749-nav-item i,
.g749-nav-item span.material-icons-outlined,
.g749-nav-item ion-icon {
    font-size: 22px;
    margin-bottom: 2px;
    transition: transform 0.3s;
}

.g749-nav-item:hover i,
.g749-nav-item:hover span.material-icons-outlined,
.g749-nav-item:hover ion-icon {
    transform: scale(1.1);
}

.g749-nav-item span:not(.material-icons-outlined) {
    font-size: 10px;
    color: var(--g749-muted);
}

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

.g749-nav-item-active i,
.g749-nav-item-active span.material-icons-outlined,
.g749-nav-item-active ion-icon {
    color: var(--g749-accent);
}

/* FAQ Section */
.g749-faq-item {
    background: var(--g749-card-bg);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid var(--g749-border);
}

.g749-faq-question {
    padding: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--g749-primary);
    cursor: pointer;
}

.g749-faq-answer {
    padding: 0 1rem 1rem;
    font-size: 1.2rem;
    color: var(--g749-muted);
    line-height: 1.6;
}

/* Feature List */
.g749-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.g749-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--g749-card-bg);
    border-radius: 8px;
    border: 1px solid var(--g749-border);
}

.g749-feature-item i,
.g749-feature-item span.material-icons {
    font-size: 2rem;
    color: var(--g749-accent);
    flex-shrink: 0;
}

.g749-feature-content h4 {
    font-size: 1.3rem;
    color: var(--g749-primary);
    margin-bottom: 0.3rem;
}

.g749-feature-content p {
    font-size: 1.1rem;
    color: var(--g749-muted);
}

/* Testimonials */
.g749-testimonial {
    background: var(--g749-card-bg);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--g749-accent);
}

.g749-testimonial-text {
    font-size: 1.2rem;
    color: var(--g749-text);
    font-style: italic;
    margin-bottom: 0.8rem;
}

.g749-testimonial-author {
    font-size: 1.1rem;
    color: var(--g749-accent);
    font-weight: 600;
}

/* Payment Methods */
.g749-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.g749-payment-item {
    background: var(--g749-border);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--g749-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Winners Showcase */
.g749-winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--g749-border);
}

.g749-winner-name {
    font-size: 1.1rem;
    color: var(--g749-text);
}

.g749-winner-amount {
    font-size: 1.2rem;
    color: var(--g749-accent);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 430px) {
    .g749-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .g749-game-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .g749-nav {
        display: none;
    }

    .g749-menu-toggle {
        display: block;
    }
}

/* Utility Classes */
.g749-text-center {
    text-align: center;
}

.g749-mb-1 {
    margin-bottom: 1rem;
}

.g749-mb-2 {
    margin-bottom: 2rem;
}

.g749-mt-1 {
    margin-top: 1rem;
}

.g749-hidden {
    display: none;
}

/* Internal Link Style */
.g749-internal-link {
    color: var(--g749-primary);
    text-decoration: underline;
    transition: color 0.3s;
}

.g749-internal-link:hover {
    color: var(--g749-accent);
}
