/* style/dai-ly.css */
.page-dai-ly {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-dai-ly__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    background-color: #f0f8ff; /* Light background for hero section */
}

.page-dai-ly__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-dai-ly__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-dai-ly__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    color: #333333; /* Dark text for light background */
}

.page-dai-ly__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #26A9E0; /* Brand primary color for H1 */
    margin-bottom: 15px;
}

.page-dai-ly__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555555;
}

/* General Section Styling */
.page-dai-ly__section {
    padding: 60px 0;
}

.page-dai-ly__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-dai-ly__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
}

.page-dai-ly__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-dai-ly__text-block .page-dai-ly__keyword {
    font-weight: bold;
    color: #26A9E0; /* Highlight keywords */
}

.page-dai-ly__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}

.page-dai-ly__image-center {
    margin-left: auto;
    margin-right: auto;
}

/* Dark Background Section */
.page-dai-ly__dark-bg {
    background-color: #26A9E0; /* Brand primary color as background */
    color: #ffffff; /* White text for dark background */
}

.page-dai-ly__dark-bg .page-dai-ly__section-title,
.page-dai-ly__dark-bg .page-dai-ly__hero-title {
    color: #ffffff;
}

.page-dai-ly__dark-bg .page-dai-ly__keyword {
    color: #ffcc00; /* Yellow highlight for keywords on dark background */
}

/* Buttons */
.page-dai-ly__btn-primary,
.page-dai-ly__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    min-width: 150px; /* Ensure buttons are not too small */
}

.page-dai-ly__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-dai-ly__btn-primary:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

.page-dai-ly__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-dai-ly__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
    border-color: #1e87b7;
}

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

.page-dai-ly__benefit-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark bg */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
}

.page-dai-ly__benefit-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-dai-ly__benefit-description {
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.6;
}

/* How to Join Section (Steps) */
.page-dai-ly__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-dai-ly__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-dai-ly__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-dai-ly__step-title {
    font-size: 1.4em;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-dai-ly__step-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Commission Policy Section */
.page-dai-ly__commission-table-wrapper {
    overflow-x: auto; /* Allow horizontal scroll on small screens */
    margin: 30px 0;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px;
}

.page-dai-ly__commission-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table doesn't shrink too much */
}

.page-dai-ly__commission-table th,
.page-dai-ly__commission-table td {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 15px;
    text-align: left;
    color: #ffffff;
}

.page-dai-ly__commission-table th {
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: bold;
    color: #ffffff;
}

.page-dai-ly__commission-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1);
}

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

.page-dai-ly__tool-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-dai-ly__tool-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-dai-ly__tool-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

/* FAQ Section */
.page-dai-ly__faq-list {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-dai-ly__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-dai-ly__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    user-select: none;
    background-color: #f9f9f9;
}

.page-dai-ly__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-dai-ly__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-dai-ly__faq-qtext {
    flex-grow: 1;
}

.page-dai-ly__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-dai-ly__faq-item[open] .page-dai-ly__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X */
}

.page-dai-ly__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
    border-top: 1px solid #e0e0e0;
}

.page-dai-ly__faq-answer p {
    margin-top: 15px;
}

.page-dai-ly__view-all-faq {
    display: block;
    margin-top: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.page-dai-ly__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-dai-ly__cta-content {
    max-width: 900px;
}

.page-dai-ly__cta-button {
    margin-top: 30px;
    font-size: 1.2em;
    padding: 15px 35px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-dai-ly__hero-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-dai-ly__section-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }
    .page-dai-ly__benefits-grid,
    .page-dai-ly__steps-grid,
    .page-dai-ly__tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-dai-ly__hero-section {
        padding-top: 10px; /* Consistent small padding */
        padding-bottom: 30px;
    }
    .page-dai-ly__hero-title {
        font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust for smaller screens */
    }
    .page-dai-ly__hero-description {
        font-size: 1em;
    }
    .page-dai-ly__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 通用图片与容器 */
    .page-dai-ly img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-dai-ly__container,
    .page-dai-ly__section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-dai-ly__section {
        padding: 40px 0;
    }
    .page-dai-ly__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 30px;
    }
    .page-dai-ly__text-block {
        font-size: 1em;
    }

    /* 长文金框区 (Not explicitly a gold border, but the main text sections) */
    /* Handled by general .page-dai-ly__section and .page-dai-ly__container */

    /* 游戏轮播 (Not applicable for non-homepage) */

    /* 合作品牌六宫格 (Not applicable for non-homepage) */

    /* 博客卡片区 (General card layout for this page) */
    .page-dai-ly__benefits-grid,
    .page-dai-ly__steps-grid,
    .page-dai-ly__tools-grid {
        grid-template-columns: 1fr; /* Single column layout for cards */
        gap: 20px;
    }

    /* 按钮与按钮容器 */
    .page-dai-ly__btn-primary,
    .page-dai-ly__btn-secondary,
    .page-dai-ly a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto; /* Center single button */
        margin-right: auto;
    }
    .page-dai-ly__hero-content .page-dai-ly__btn-primary {
        margin-top: 20px;
    }
    .page-dai-ly__cta-content .page-dai-ly__cta-button {
        margin-top: 20px;
    }
    /* If multiple buttons were in a flex container, they'd wrap */
    .page-dai-ly__button-group { /* Example for a group of buttons */
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Section */
    .page-dai-ly__faq-item summary {
        padding: 15px 20px;
        font-size: 1.05em;
    }
    .page-dai-ly__faq-answer {
        padding: 0 20px 15px;
    }
    .page-dai-ly__view-all-faq {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Commission Table */
    .page-dai-ly__commission-table {
        min-width: unset; /* Allow table to shrink, but overflow-x: auto handles content */
    }
    .page-dai-ly__commission-table-wrapper {
        padding: 10px;
    }
    .page-dai-ly__commission-table th,
    .page-dai-ly__commission-table td {
        padding: 10px;
        font-size: 0.9em;
    }
}