/* style/doi-tac.css */
.page-doi-tac {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for the page */
    background-color: var(--background-color, #08160F); /* Page background from custom colors */
}

/* Container for content */
.page-doi-tac__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

/* Section Titles */
.page-doi-tac__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main, #F2FFF6);
}

/* Text Blocks */
.page-doi-tac__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary, #A7D9B8);
}

/* HERO Section */
.page-doi-tac__hero-section {
    padding-top: 10px; /* Small top padding to avoid double spacing with body padding */
    padding-bottom: 60px;
    background-color: var(--background-color, #08160F);
}

.page-doi-tac__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 40px;
    justify-content: center;
}

.page-doi-tac__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: var(--text-main, #F2FFF6);
}

.page-doi-tac__hero-title {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main, #F2FFF6);
}

.page-doi-tac__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

.page-doi-tac__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-doi-tac__hero-image {
    flex: 1 1 45%;
    text-align: center;
    min-width: 300px;
}

.page-doi-tac__hero-side-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

.page-doi-tac__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #F2FFF6;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-doi-tac__btn-secondary {
    background: transparent;
    color: var(--glow, #57E38D); /* Text Main or Glow for secondary */
    border: 2px solid var(--glow, #57E38D);
}

.page-doi-tac__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
}

/* Intro Section */
.page-doi-tac__intro-section {
    padding: 60px 0;
    background-color: var(--card-b-g, #11271B); /* Use Card BG for this section */
    color: var(--text-main, #F2FFF6);
}

/* Benefits Section */
.page-doi-tac__benefits-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F);
}

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

.page-doi-tac__benefit-card {
    background-color: var(--card-b-g, #11271B);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main, #F2FFF6);
    border: 1px solid var(--border, #2E7A4E);
}

.page-doi-tac__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__card-image {
    width: 100%;
    max-width: 400px; /* Recommended size for blog type */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-doi-tac__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-main, #F2FFF6);
}

.page-doi-tac__card-description {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
}

/* Join Section */
.page-doi-tac__join-section {
    padding: 60px 0;
    background-color: var(--card-b-g, #11271B);
    color: var(--text-main, #F2FFF6);
}

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

.page-doi-tac__step-card {
    background-color: var(--background-color, #08160F); /* Use background color for step cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main, #F2FFF6);
    border: 1px solid var(--border, #2E7A4E);
}

.page-doi-tac__step-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--gold, #F2C14E); /* Gold for titles */
}

.page-doi-tac__step-description {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
}

.page-doi-tac__cta-area {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-doi-tac__faq-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F);
}

.page-doi-tac__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-doi-tac__faq-item {
    background-color: var(--card-b-g, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #F2FFF6);
}

.page-doi-tac__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    font-size: 1.1em;
    color: var(--text-main, #F2FFF6);
}

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

.page-doi-tac__faq-question {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-doi-tac__faq-qtext {
    color: var(--text-main, #F2FFF6);
}

.page-doi-tac__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D);
}

.page-doi-tac__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-answer {
    max-height: 1000px; /* Sufficiently large to show all content */
    transition: max-height 0.5s ease-in;
}

.page-doi-tac__faq-answer p {
    margin-bottom: 0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-doi-tac__hero-title {
        font-size: 2.2em;
    }
    .page-doi-tac__section-title {
        font-size: 2em;
    }
    .page-doi-tac__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-doi-tac__hero-content {
        order: 2; /* Content below image on smaller screens */
    }
    .page-doi-tac__hero-image {
        order: 1; /* Image above content on smaller screens */
        margin-bottom: 30px;
    }
    .page-doi-tac__hero-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* 1. HERO 双栏 */
    .page-doi-tac__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-doi-tac__hero-container {
        padding: 20px 15px;
        gap: 30px;
    }
    .page-doi-tac__hero-title {
        font-size: clamp(1.8em, 5vw, 2.5em); /* Clamp for H1 */
        margin-bottom: 15px;
    }
    .page-doi-tac__hero-description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    .page-doi-tac__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-doi-tac__btn-primary,
    .page-doi-tac__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }
    .page-doi-tac__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 4. 教程长文 / 促销 / 信任 / FAQ / blog / intro 排版 */
    .page-doi-tac__container {
        padding: 20px 15px;
    }
    .page-doi-tac__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-doi-tac__text-block {
        font-size: 1em;
    }
    .page-doi-tac__benefits-grid,
    .page-doi-tac__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-doi-tac__benefit-card,
    .page-doi-tac__step-card {
        padding: 25px;
    }
    .page-doi-tac__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-doi-tac__faq-list {
        margin-top: 30px;
    }
    .page-doi-tac__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-doi-tac__faq-answer {
        padding: 0 20px 15px;
    }

    /* 5. 通用图片与容器 */
    .page-doi-tac img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-doi-tac__section,
    .page-doi-tac__card,
    .page-doi-tac__container,
    .page-doi-tac__benefits-section,
    .page-doi-tac__join-section,
    .page-doi-tac__faq-section,
    .page-doi-tac__intro-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 6. 按钮与按钮容器 */
    .page-doi-tac__cta-button,
    .page-doi-tac__btn-primary,
    .page-doi-tac__btn-secondary,
    .page-doi-tac a[class*="button"],
    .page-doi-tac 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;
    }
    .page-doi-tac__hero-cta-buttons,
    .page-doi-tac__cta-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }
}