:root {
    --primary-color: #F2C14E; /* 主色调 */
    --secondary-color: #FFD36B; /* 辅助色 */
    --card-bg: #111111; /* Card BG */
    --background-color: #0A0A0A; /* 背景 */
    --text-main-color: #FFF6D6; /* Text Main */
    --border-color: #3A2A12; /* 边框 */
    --glow-color: #FFD36B; /* Glow */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* 按钮 */
}

.page-casino {
    color: var(--text-main-color); /* 深色背景配浅色文字 */
    background-color: var(--background-color); /* body背景色是#0A0A0A，所以这里设置主体背景色 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-casino__section {
    padding: 60px 0;
    text-align: center;
}

.page-casino__section-title {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-casino__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-main-color);
    font-size: 17px;
    line-height: 1.8;
}

/* HERO Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* 小额顶距，不使用 --header-offset */
    overflow: hidden; /* 防止图片溢出 */
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* 确保在桌面默认 CSS 中 width: 100% */
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-main-color);
}

.page-casino__hero-content h1 {
    font-size: clamp(28px, 5vw, 52px); /* 使用clamp限制字号，避免过大 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: var(--text-main-color);
}

.page-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    max-width: 100%; /* 按钮响应式 */
    box-sizing: border-box; /* 按钮响应式 */
    white-space: normal; /* 按钮响应式 */
    word-wrap: break-word; /* 按钮响应式 */
}

.page-casino__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-casino__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Game Grid Section */
.page-casino__game-grid,
.page-casino__promo-grid,
.page-casino__feature-grid,
.page-casino__payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__game-card,
.page-casino__promo-card,
.page-casino__feature-card,
.page-casino__payment-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.page-casino__game-card:hover,
.page-casino__promo-card:hover,
.page-casino__feature-card:hover,
.page-casino__payment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-casino__game-card img,
.page-casino__promo-card img,
.page-casino__payment-card img {
    width: 100%;
    height: 200px; /* 固定高度，确保图片大小一致 */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-casino__game-card h3,
.page-casino__promo-card h3,
.page-casino__feature-card h3,
.page-casino__payment-card h4 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-casino__game-card h3 a,
.page-casino__promo-card h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-card h3 a:hover,
.page-casino__promo-card h3 a:hover {
    color: var(--primary-color);
}

.page-casino__game-card p,
.page-casino__promo-card p,
.page-casino__feature-card p,
.page-casino__payment-card p {
    font-size: 15px;
    color: var(--text-main-color);
    line-height: 1.7;
    flex-grow: 1; /* Make paragraphs take up available space */
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: rgba(var(--primary-color-rgb), 0.05); /* Slightly lighter background */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Why Choose Section */
.page-casino__why-choose-section {
    padding-bottom: 80px;
}

.page-casino__feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-casino__feature-card p {
    font-size: 16px;
    color: var(--text-main-color);
    line-height: 1.7;
}

/* Payment Section */
.page-casino__payment-methods {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-casino__payment-card img {
     /* Smaller images for payment methods */
    width: auto;
    max-width: 80%;
    object-fit: contain;
    background-color: #222;
    padding: 15px;
    border-radius: 8px;
}

/* FAQ Section */
.page-casino__faq-section {
    padding-bottom: 80px;
}

details.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-casino__faq-item summary.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 18px;
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
    display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
}
.page-casino__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--secondary-color);
}
.page-casino__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 25px 25px;
    background: rgba(var(--card-bg-rgb), 0.8);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    color: var(--text-main-color);
    text-align: left;
}
.page-casino__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}
.page-casino__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}
.page-casino__faq-answer a:hover {
    color: var(--secondary-color);
}

/* Final CTA Section */
.page-casino__cta-final-section {
    padding-top: 80px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 1), rgba(17, 17, 17, 0.8));
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* 按钮容器响应式 */
    max-width: 100%; /* 按钮容器响应式 */
    box-sizing: border-box; /* 按钮容器响应式 */
    overflow: hidden; /* 按钮容器响应式 */
}

.page-casino__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
}

.page-casino__btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-content h1 {
        font-size: clamp(28px, 4vw, 48px);
    }
    .page-casino__section-title {
        font-size: 32px;
    }
    .page-casino__game-card h3,
    .page-casino__promo-card h3,
    .page-casino__feature-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 15px;
        line-height: 1.7;
    }
    .page-casino__hero-section {
        padding-top: 10px !important; /* 移动端保持小额顶距 */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__hero-image img {
        border-radius: 8px;
    }
    .page-casino__hero-content h1 {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 15px;
    }
    .page-casino__hero-description {
        font-size: clamp(14px, 3vw, 18px);
        margin-bottom: 20px;
    }
    .page-casino__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__section {
        padding: 40px 0;
    }
    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-casino__text-block {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__feature-grid,
    .page-casino__payment-methods {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__feature-card,
    .page-casino__payment-card {
        padding: 20px;
    }
    .page-casino__game-card img,
    .page-casino__promo-card img,
    .page-casino__payment-card img {
        
        border-radius: 6px;
        margin-bottom: 15px;
    }
    .page-casino__game-card h3,
    .page-casino__promo-card h3,
    .page-casino__feature-card h3,
    .page-casino__payment-card h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .page-casino__game-card p,
    .page-casino__promo-card p,
    .page-casino__feature-card p,
    .page-casino__payment-card p {
        font-size: 14px;
    }

    details.page-casino__faq-item summary.page-casino__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-casino__faq-qtext {
        font-size: 16px;
    }
    .page-casino__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-casino__faq-item .page-casino__faq-answer {
        padding: 0 20px 20px;
    }
    .page-casino__faq-answer p {
        font-size: 14px;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* 按钮容器响应式 */
    }
    .page-casino__cta-final-section {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    /* Mobile image and container responsive rules */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-casino__section,
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__feature-card,
    .page-casino__payment-card,
    .page-casino__container,
    .page-casino__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__hero-section .page-casino__container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-image img {
        border-radius: 6px;
    }
    .page-casino__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-casino__section-title {
        font-size: 24px;
    }
    .page-casino__game-card h3,
    .page-casino__promo-card h3,
    .page-casino__feature-card h3,
    .page-casino__payment-card h4 {
        font-size: 18px;
    }
    .page-casino__game-card img,
    .page-casino__promo-card img,
    .page-casino__payment-card img {
        
    }
    details.page-casino__faq-item summary.page-casino__faq-question {
        padding: 12px 15px;
        font-size: 15px;
    }
    .page-casino__faq-qtext {
        font-size: 15px;
    }
    .page-casino__faq-toggle {
        font-size: 22px;
    }
    details.page-casino__faq-item .page-casino__faq-answer {
        padding: 0 15px 15px;
    }
}