/* style/lottery.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles */
.page-lottery {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #FFFFFF; /* Ensures consistency with body if not overridden by shared */
    padding-top: 0; /* Assuming shared.css handles body padding for header offset */
}

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

.page-lottery__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-lottery__sub-section-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-lottery__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__btn-text-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping for buttons */
    word-wrap: break-word;
}

.page-lottery__btn-primary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
    border: 2px solid #017439;
}

.page-lottery__btn-primary:hover {
    background-color: #005f2e; /* Darker shade on hover */
    border-color: #005f2e;
}

.page-lottery__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
}

.page-lottery__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-lottery__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-lottery__btn-text-link {
    background: none;
    border: none;
    color: #017439;
    padding: 0;
    text-align: left;
    display: block; /* Ensures it takes full width in card if needed */
    margin-top: 10px;
}

.page-lottery__btn-text-link:hover {
    text-decoration: underline;
    color: #005f2e;
}

/* Specific button colors for login/register if needed in main content */
.page-lottery__btn-register {
    background-color: #C30808; /* Red for register */
    color: #FFFF00; /* Yellow text for contrast */
    border: 2px solid #C30808;
}
.page-lottery__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Section background colors for contrast */
.page-lottery__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-lottery__dark-bg .page-lottery__section-title,
.page-lottery__dark-bg .page-lottery__sub-section-title {
    color: #ffffff;
}

.page-lottery__dark-bg .page-lottery__text-block,
.page-lottery__dark-bg .page-lottery__benefits-list li,
.page-lottery__dark-bg .page-lottery__tips-list li,
.page-lottery__dark-bg .page-lottery__faq-question h3,
.page-lottery__dark-bg .page-lottery__faq-answer p {
    color: #ffffff;
}

.page-lottery__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-lottery__light-bg .page-lottery__section-title,
.page-lottery__light-bg .page-lottery__sub-section-title {
    color: #017439;
}

.page-lottery__light-bg .page-lottery__text-block,
.page-lottery__light-bg .page-lottery__benefits-list li,
.page-lottery__light-bg .page-lottery__tips-list li,
.page-lottery__light-bg .page-lottery__faq-question h3,
.page-lottery__light-bg .page-lottery__faq-answer p {
    color: #333333;
}

/* Hero Section */
.page-lottery__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 40px;
    background-color: #f0fdf5; /* Light green tint for hero */
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

.page-lottery__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-lottery__hero-title {
    font-size: 3.5em;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-lottery__hero-description {
    font-size: 1.3em;
    color: #555555;
    margin-bottom: 40px;
}

.page-lottery__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-lottery__hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 1000px;
    height: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-lottery__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* About Section */
.page-lottery__about-section {
    padding: 80px 0;
}

.page-lottery__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-lottery__benefits-list li {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    border-left: 5px solid #017439;
}

.page-lottery__benefits-list li strong {
    color: #017439;
}


/* Games Section */
.page-lottery__games-section {
    padding: 80px 0;
}

.page-lottery__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-lottery__game-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text for cards */
}