/* style/download.css */
.page-download {
    background-color: #0D0E12;
    color: #FFF3E6;
    font-family: Arial, sans-serif; /* Roboto气质 */
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

.page-download__hero-section {
    display: flex;
    flex-direction: column; /* Default for mobile, will change to row for desktop */
    align-items: center;
    text-align: center;
    padding: 10px 20px 40px; /* Small top padding, good bottom padding */
    background-color: #17191F; /* Card BG for hero section */
    border-bottom: 2px solid #A84F0C;
}

.page-download__hero-visual {
    width: 100%;
    max-width: 800px; /* Constrain image width */
    margin-bottom: 20px;
}

.page-download__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 176, 77, 0.5); /* Glow color */
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

.page-download__main-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* Responsive font size */
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFB04D; /* Use glow color for main title */
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-download__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-download__download-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons on mobile */
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.page-download__button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch target */
    box-sizing: border-box;
    width: 100%; /* Full width on mobile */
}

.page-download__button--primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #FFF3E6;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 176, 77, 0.4);
}

.page-download__button--primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
    box-shadow: 0 6px 20px rgba(255, 176, 77, 0.6);
}

.page-download__button--secondary {
    background-color: transparent;
    border: 2px solid #FFA53A;
    color: #FFA53A;
}

.page-download__button--secondary:hover {
    background-color: rgba(255, 165, 58, 0.1);
    color: #FFB04D;
    border-color: #FFB04D;
}

/* Icon styles for buttons (placeholder for now) */
.page-download__button-icon--android,
.page-download__button-icon--ios {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.page-download__button-icon--android {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFF3E6"><path d="M7 11v2h10v-2H7zm12-4h-4V5h4v2zm-4 0H9V5h6v2zM9 19h6v-2H9v2zm8-12V5h-2v2h2zm2 0h-2V5h2v2zM7 19h2v-2H7v2zm-2 0H3v-2h2v2zm0-4H3v-2h2v2zm0-4H3v-2h2v2zm0-4H3V5h2v2zm2-2V5h2v2H7zM3 3h18c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H3c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z"/></svg>');
}
.page-download__button-icon--ios {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFF3E6"><path d="M12 17c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0-4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0-4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0-4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm6.5 2.5c-1.54 0-2.88.85-3.5 2.05-.62-1.2-1.96-2.05-3.5-2.05C8.96 6.5 7.5 7.96 7.5 9.5s1.46 3.5 3.01 3.5c.62 0 1.2-.18 1.69-.47.5.29 1.07.47 1.69.47 1.55 0 3.01-1.46 3.01-3.5S18.04 6.5 16.5 6.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>');
}


.page-download__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem); /* Responsive font size */
    color: #FFB04D;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    font-weight: bold;
}

/* Benefits Section */
.page-download__benefits-section {
    padding: 20px 20px 40px;
    background-color: #0D0E12;
}

.page-download__benefits-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-download__benefit-card {
    background-color: #17191F;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C;
}

.page-download__benefit-icon {
    width: 200px; /* Min size */
    height: auto;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-download__benefit-title {
    font-size: 1.5rem;
    color: #FFA53A;
    margin-bottom: 10px;
}

.page-download__benefit-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* How to Download Section */
.page-download__how-to-download-section {
    padding: 20px 20px 40px;
    background-color: #0D0E12;
}

.page-download__download-steps {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-download__step-card {
    background-color: #17191F;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C;
    text-align: center;
}

.page-download__step-title {
    font-size: 1.8rem;
    color: #FFB04D;
    margin-bottom: 20px;
    text-align: center;
}

.page-download__step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left; /* Steps are left-aligned */
    counter-reset: step-counter;
}

.page-download__list-item {
    font-size: 1.05rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-download__list-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background-color: #FFA53A;
    color: #0D0E12;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 2px;
}

.page-download__step-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 176, 77, 0.3);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-download__button--block {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Features Section */
.page-download__features-section {
    padding: 20px 20px 40px;
    background-color: #0D0E12;
}

.page-download__features-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-download__feature-item {
    background-color: #17191F;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #A84F0C;
}

.page-download__feature-title {
    font-size: 1.5rem;
    color: #FFA53A;
    margin-bottom: 10px;
}

.page-download__feature-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 20px 20px 40px;
    background-color: #0D0E12;
}

.page-download__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-download__faq-item {
    background-color: #17191F;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 25px;
    border: 1px solid #A84F0C;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.page-download__faq-question {
    font-size: 1.2rem;
    color: #FFB04D;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-download__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-download__faq-question.is-active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-download__faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    padding-top: 0;
}

.page-download__faq-answer.is-open {
    max-height: 200px; /* Adjust as needed for content */
    padding-top: 15px;
    opacity: 1;
}

/* CTA Section */
.page-download__cta-section {
    padding: 40px 20px 60px;
    background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Subtle gradient */
    text-align: center;
    border-top: 2px solid #A84F0C;
}

.page-download__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-download__cta-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-download__button--cta {
    margin: 10px auto;
    max-width: 350px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .page-download__hero-section {
        flex-direction: row; /* Desktop layout */
        text-align: left;
        padding-top: 40px; /* More padding for desktop */
        justify-content: center;
        gap: 40px;
    }

    .page-download__hero-visual {
        margin-bottom: 0;
        flex-shrink: 0; /* Prevent image from shrinking too much */
    }

    .page-download__hero-content {
        flex-grow: 1;
        max-width: 500px; /* Constrain content width */
    }

    .page-download__download-buttons {
        flex-direction: row; /* Side-by-side buttons on desktop */
        max-width: none;
        margin: 0;
    }

    .page-download__button {
        width: auto; /* Auto width for desktop buttons */
        padding: 15px 30px;
    }

    .page-download__benefits-grid,
    .page-download__features-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on desktop */
    }

    .page-download__download-steps {
        flex-direction: row; /* Side-by-side download steps on desktop */
    }

    .page-download__step-card {
        text-align: left;
    }

    .page-download__step-list {
        padding-left: 0;
    }
}

/* Mobile specific rules for images to prevent overflow */
@media (max-width: 768px) {
    .page-download img {
        max-width: 100%;
        height: auto;
        display: block;
        min-width: 200px; /* Ensure min size is met */
        min-height: 200px; /* Ensure min size is met */
    }
}