/* ===========================
   RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #b0b0b0;
}

/* ===========================
   HEADER
   =========================== */
.header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-image {
    height: 45px;
    width: auto;
    transition: transform 0.3s;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo h1 {
    color: #ff6b35;
    font-size: 1.8rem;
    font-weight: 800;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff6b35;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    border-color: #ff6b35;
    color: #ff6b35;
    background: transparent;
}

.btn-outline:hover {
    background: #ff6b35;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 0 80px;
    /* 留出header高度 */
    padding-top: 120px;
    background-color: #1a1a1a;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/banner-optimized.jpg');
    background-size: cover;
        background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: -2;
    background-color: #1a1a1a;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #f0f0f0;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-weight: 500;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #ff6b35;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-stats .stat-label {
    color: #e0e0e0;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   SECTION STYLES
   =========================== */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background: #111;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #888;
}

/* ===========================
   CONTENT BLOCKS
   =========================== */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

/* 左右布局 */
.content-block.left-right .block-image {
    order: 1;
}

.content-block.left-right .block-content {
    order: 2;
}

/* 右左布局 */
.content-block.right-left .block-image {
    order: 2;
}

.content-block.right-left .block-content {
    order: 1;
}

/* 上下布局 */
.content-block.top-bottom {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.block-image {
    overflow: hidden;
    border-radius: 12px;
}

.block-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.block-image:hover img {
    transform: scale(1.05);
}

.block-content h3 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

.block-content p {
    margin-bottom: 1.5rem;
}

/* 特性列表 */
.about-features,
.block-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0b0b0;
}

.feature i {
    color: #ff6b35;
    font-size: 1.2rem;
}

/* 统计数据 */
.feature-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.feature-stats .stat {
    text-align: center;
}

.feature-stats strong {
    display: block;
    font-size: 1.5rem;
    color: #ff6b35;
    margin-bottom: 0.25rem;
}

.feature-stats span {
    color: #888;
    font-size: 0.9rem;
}

/* ===========================
   GAME CATEGORIES
   =========================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #333;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b35;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    margin-bottom: 1rem;
}

.category-card p {
    margin-bottom: 1.5rem;
    color: #888;
}

.category-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.category-link:hover {
    color: #f7931e;
}

/* ===========================
   PROMOTIONS SECTION
   =========================== */
.promo-details {
    list-style: none;
    margin: 1.5rem 0;
}

.promo-details li {
    padding: 0.5rem 0;
    color: #b0b0b0;
}

.promo-details i {
    color: #4caf50;
    margin-right: 0.5rem;
}

/* ===========================
   PAYMENT SECTION
   =========================== */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.payment-group h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #ff6b35;
}

.payment-group i {
    font-size: 1.5rem;
}

.payment-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.payment-logos img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.payment-logos img:hover {
    transform: scale(1.1);
}

.payment-logo {
    width: 100%;
    height: 60px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #333;
}

.payment-logo:hover {
    transform: scale(1.1);
}

.bank-logo.vcb {
    background: linear-gradient(135deg, #0078d4, #005a9a);
    color: white;
}

.bank-logo.tcb {
    background: linear-gradient(135deg, #e31e24, #b71c1c);
    color: white;
}

.bank-logo.bidv {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: white;
}

.bank-logo.acb {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
}

/* ===========================
   REGISTRATION SECTION
   =========================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 12px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.cta-center {
    text-align: center;
}

/* ===========================
   FAQ SECTION
   =========================== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #ff6b35;
}

.faq-item h4 {
    margin-bottom: 1rem;
    color: #ff6b35;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: #000;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff6b35;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #ff6b35;
    transform: translateY(-3px);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #888;
}

.contact-info i {
    color: #ff6b35;
    margin-right: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #666;
}

.footer-licenses {
    display: flex;
    gap: 1rem;
}

.footer-licenses img {
    height: 40px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.footer-licenses img:hover {
    opacity: 1;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Mobile Header Optimization */
    .header {
        padding: 0.75rem 0;
    }
    
    .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
        margin: 0;
        white-space: nowrap;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: rgba(20, 20, 30, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        color: #fff;
        border-left: 3px solid transparent;
        padding-left: 15px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: #ff6b35;
        border-left-color: #ff6b35;
        background: rgba(255, 107, 53, 0.1);
    }
    
    .auth-buttons {
        display: flex;
        gap: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .auth-buttons .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .auth-buttons .btn-outline {
        border-width: 1px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.25rem;
        cursor: pointer;
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-block.left-right .block-image,
    .content-block.right-left .block-image {
        order: 1;
    }
    
    .content-block.left-right .block-content,
    .content-block.right-left .block-content {
        order: 2;
    }
    
    .categories-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .auth-buttons .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .auth-buttons {
        gap: 0.25rem;
    }
    
    .mobile-menu-toggle {
        font-size: 1.1rem;
        min-width: 35px;
        min-height: 35px;
        padding: 0.25rem;
    }
}