/* SHBET800 Website Styles - Quantum Matrix Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #e0e6ed;
    background-color: #0a0e27;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(120, 250, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0e27 0%, #1e2850 100%);
    min-height: 100vh;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 1000;
    padding: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.35));
}


/* Compact unified top notice bar */
.top-notice {
    background: linear-gradient(90deg, #ff6b35, #ffd700);
    color: #0a0e27;
    padding: 6px 12px;
    font-size: 12px;
    text-align: center;
    position: sticky;
    top: 70px;
    z-index: 999;
}
.top-notice a { color: #0a0e27; text-decoration: underline; }

.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    color: #e0e6ed;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-nav a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s;
}

.main-nav a:hover:before {
    left: 100%;
}

.main-nav a:hover {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.1);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    color: #ffd700;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ffd700;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: #ffd700;
    color: #0a0e27;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.header-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.btn-login:hover {
    background: #ffd700;
    color: #0a0e27;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-register {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #0a0e27;
    border: 2px solid #ffd700;
}

.btn-register:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffd700;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(255, 215, 0, 0.2);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav li {
        margin: 5px 0;
    }

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

    .header-actions {
        gap: 10px;
    }

    .header-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Adjust body padding for fixed header */
body {
    padding-top: 80px;
}

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

/* Hero Sections */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
}

/* Center hero container and overlay content */
.hero { justify-content: center; }
.hero-overlay .hero-content { max-width: 900px; margin: 0 auto; }
.hero-subtitle, .hero-description { margin-left: auto; margin-right: auto; }


.hero-overlay {
    background: transparent;
    color: white;
    text-align: center;
    position: relative;
}
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.6), rgba(30, 40, 80, 0.5));
    z-index: 1;
}

.hero-overlay .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-left-right, .hero-right-left {
    background: linear-gradient(135deg, #0a0e27, #1e2850);
    color: white;
}

.hero-left-right {
    flex-direction: row;
}

.hero-right-left {
    flex-direction: row-reverse;
}

.hero-content {
    flex: 1;
    padding: 40px;
    z-index: 2;
    position: relative;
}

.hero-image {
    flex: 1;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

/* Hero inner layout (standardize split layouts) */
.hero .hero-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-left-right .hero-inner {
    flex-direction: row;
}

.hero-right-left .hero-inner {
    flex-direction: row-reverse;
}

/* Responsive - Hero */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    .hero .hero-inner {
        flex-direction: column !important;
    }
    .hero-content {
        padding: 20px;
        text-align: center;
    }
    .hero-image {
        min-height: 240px;
    }
}


.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffd700;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.btn-secondary:hover {
    background: #ffd700;
    color: #0a0e27;
}

/* Content Blocks */
.content-blocks {
    padding: 80px 0;
    background: linear-gradient(180deg, #1e2850, #0a0e27);
}

.content-block {
    display: flex;
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.content-block.horizontal {
    flex-direction: row;
    align-items: center;
}

.content-block.vertical {
    flex-direction: column;
}

.block-image {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 215, 0, 0.1);
}

.block-content {
    flex: 1;
    padding: 40px;
    color: white;
}

.block-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ffd700;
    font-weight: bold;
}

.block-content p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

/* Content Grid */
.content-grid {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0e27, #1e2850);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #ffd700;
    font-weight: bold;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.grid-image {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    background-color: rgba(255, 215, 0, 0.1);
}

.grid-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffd700;
    font-weight: bold;
}

.grid-item p {
    color: white;
    line-height: 1.7;
    text-align: justify;
}

/* Footer */
.footer {
    background: #0a0e27;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.footer-content {
    text-align: center;
    color: #ccc;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Enhanced Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .header-container {
        padding: 10px 15px;
    }

    .main-nav li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Typography adjustments */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Layout adjustments */
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        text-align: center;
    }

    .content-block.horizontal {
        flex-direction: column;
    }

    .content-block.vertical {
        text-align: center;
    }

    .block-content {
        padding: 25px 20px;
    }

    .block-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-item h3 {
        font-size: 1.3rem;
    }

    .hero-left-right, .hero-right-left {
        flex-direction: column;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-content, .hero-image {
        flex: none;
        width: 100%;
    }

    .hero-content {
        padding: 30px 20px;
        text-align: center;
    }

    .hero-image {
        min-height: 250px;
        order: -1;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Header mobile optimization */
    .header-container {
        padding: 10px;
    }

    .logo-img { height: 36px; }

    .header-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .lang-switch {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Hero mobile optimization */
    .hero {
        min-height: 70vh;
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .hero-cta .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Content mobile optimization */
    .container {
        padding: 0 10px;
    }

    .content-blocks {
        padding: 40px 0;
    }

    .content-block {
        margin-bottom: 40px;
    }

    .block-content {
        padding: 20px 15px;
    }

    .block-content h2 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .block-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .content-grid {
        padding: 40px 0;
    }

    .grid-item {
        padding: 20px;
    }

    .grid-item h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .grid-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Footer mobile optimization */
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 14px;
    }

    .payment-methods {
        gap: 10px;
    }

    .payment-icon {
        width: 45px;
        height: 28px;
        font-size: 10px;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .block-content h2 {
        font-size: 1.2rem;
    }

    .grid-item h3 {
        font-size: 1.1rem;
    }
}

/* Image loading */
[data-image] {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 53, 0.1));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-image].loading:after {
    content: "正在加载图片...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #0a0e27, #1e2850);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

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

.footer-section h3 {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #e0e6ed;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

.footer-section p {
    color: #a0a6b0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.payment-icon {
    width: 50px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.payment-icon:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ffd700;
    color: #0a0e27;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: left;
}

.footer-bottom p {
    color: #a0a6b0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-bottom .responsible-gaming {
    color: #ff6b35;
    font-weight: bold;
}

.footer-bottom .copyright {
    text-align: center;
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .payment-methods {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}