/* style/download.css */

/* --- Base Styles --- */
.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark #0d0d0d, so text should be light */
    background-color: transparent; /* Inherit from body */
}

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

.page-download__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #FFD700; /* Gold for titles */
}

/* --- Hero Section --- */
.page-download__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: var(--primary-color, #0A246A); /* Use primary color as background */
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-download__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('[GALLERY:bg:1920x1080:full88,download_hero_background,abstract_geometric]'); /* Background image for hero */
    background-size: cover;
    background-position: center;
    opacity: 0.2; /* Subtle background */
    z-index: 0;
}

.page-download__hero-section > .page-download__container {
    position: relative;
    z-index: 1;
}

.page-download__main-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-download__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-download__download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-download__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: var(--secondary-color, #FFD700);
    color: var(--primary-color, #0A246A);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping on buttons for desktop */
}

.page-download__cta-button:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-download__cta-button--android { background-color: #4CAF50; color: #ffffff; }
.page-download__cta-button--android:hover { background-color: #45a049; }
.page-download__cta-button--ios { background-color: #007AFF; color: #ffffff; }
.page-download__cta-button--ios:hover { background-color: #0056b3; }
.page-download__cta-button--pc { background-color: #0078D4; color: #ffffff; }
.page-download__cta-button--pc:hover { background-color: #005bb5; }
.page-download__cta-button--register { background-color: var(--secondary-color, #FFD700); color: var(--primary-color, #0A246A); }
.page-download__cta-button--register:hover { background-color: #e6c200; }
.page-download__cta-button--contact { background-color: var(--primary-color, #0A246A); color: #ffffff; border: 2px solid #FFD700; }
.page-download__cta-button--contact:hover { background-color: #071c4d; border-color: #e6c200; }


.page-download__qr-code-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-download__qr-code-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 280px; /* Minimum width for QR code item */
    max-width: 300px;
    box-sizing: border-box;
}

.page-download__qr-code-item img {
    width: 200px;
    height: 200px;
    border: 5px solid #ffffff;
    border-radius: 5px;
    margin-bottom: 15px;
    max-width: 100%; /* Important for image responsive */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-download__qr-code-item p {
    font-size: 16px;
    color: #f0f0f0;
    margin: 0;
}


/* --- Features Section --- */
.page-download__features-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-download__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-download__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-download__feature-card img {
    width: 100%;
    max-width: 400px; /* Example max-width, adjust based on actual image usage */
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 2px solid #FFD700;
    max-width: 100%; /* Important for image responsive */
    height: auto; /* Allow height to adjust */
    display: block;
}

.page-download__card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD700;
}

.page-download__feature-card p {
    font-size: 16px;
    color: #f0f0f0;
}


/* --- Guide Section --- */
.page-download__guide-section {
    padding: 80px 0;
    background-color: var(--primary-color, #0A246A);
    color: #ffffff;
}

.page-download__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.page-download__step-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-download__step-item:nth-child(even) {
    flex-direction: row-reverse; /* Alternate layout */
}

.page-download__step-item img {
    width: 50%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid #FFD700;
    max-width: 100%; /* Important for image responsive */
    height: auto; /* Allow height to adjust */
    display: block;
}

.page-download__step-item:nth-child(even) img {
    border-color: #ffffff; /* Alternate border color */
}

.page-download__step-item div {
    flex: 1;
}

.page-download__step-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD700;
}

.page-download__step-item p {
    font-size: 17px;
    color: #f0f0f0;
}

.page-download__register-cta {
    text-align: center;
    margin-top: 80px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-download__register-title {
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 25px;
}

/* --- FAQ Section --- */
.page-download__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

/* FAQ容器样式 */
.page-download__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-download__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    font-size: 16px;
    color: #e0e0e0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-download__faq-item.active .page-download__faq-answer {
    max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.1); /* Slightly different background for active answer */
    border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-download__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-download__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-download__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

/* 问题标题样式 */
.page-download__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #FFD700; /* Gold for FAQ questions */
    pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-download__faq-toggle {
    font-size: 28px; /* Larger icon */
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Larger hit area */
    height: 32px;
}

.page-download__faq-item.active .page-download__faq-toggle {
    color: #ffffff; /* White when active */
    transform: rotate(45deg); /* Rotate to form 'X' or 'minus' */
}


/* --- Contact Section --- */
.page-download__contact-section {
    padding: 80px 0;
    background-color: var(--primary-color, #0A246A);
    color: #ffffff;
    text-align: center;
}

.page-download__contact-section p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-download__main-title {
        font-size: 44px;
    }
    .page-download__hero-description {
        font-size: 18px;
    }
    .page-download__section-title {
        font-size: 32px;
    }
    .page-download__guide-steps {
        gap: 40px;
    }
    .page-download__step-item {
        flex-direction: column;
        text-align: center;
    }
    .page-download__step-item:nth-child(even) {
        flex-direction: column; /* Reset for mobile */
    }
    .page-download__step-item img {
        width: 80%;
        max-width: 500px;
        height: auto; /* Allow height to adjust */
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-download {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .page-download__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fixed header offset for mobile */
    .page-download__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-download__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-download__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-download__download-buttons {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Ensure buttons don't touch edges */
    }
    .page-download__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-download__qr-code-section {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
        padding: 0 15px;
    }
    .page-download__qr-code-item {
        min-width: unset;
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }
    .page-download__qr-code-item img {
        
        
    }

    .page-download__section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .page-download__features-section,
    .page-download__guide-section,
    .page-download__faq-section,
    .page-download__contact-section {
        padding: 60px 0;
    }

    .page-download__features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-download__feature-card {
        padding: 25px;
    }
    .page-download__feature-card img {
        height: 250px; /* Adjust height for mobile */
        margin-bottom: 20px;
    }
    .page-download__card-title {
        font-size: 20px;
    }

    .page-download__guide-steps {
        gap: 50px;
    }
    .page-download__step-item img {
        width: 90%;
        max-width: 400px;
        height: auto;
    }
    .page-download__step-title {
        font-size: 24px;
    }
    .page-download__register-cta {
        margin-top: 60px;
        padding: 30px;
    }
    .page-download__register-title {
        font-size: 28px;
    }

    .page-download__faq-list {
        max-width: 100%;
    }
    .page-download__faq-question {
        padding: 15px 20px;
    }
    .page-download__faq-question h3 {
        font-size: 16px;
    }
    .page-download__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }
    .page-download__faq-item.active .page-download__faq-answer {
        padding: 15px 20px !important;
    }

    .page-download__contact-section p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* All images responsive fix */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    /* All video responsive fix */
    .page-download video,
    .page-download__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-download__video-section,
    .page-download__video-container,
    .page-download__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Handled by section padding */
        padding-right: 0; /* Handled by section padding */
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-download__main-title {
        font-size: 28px;
    }
    .page-download__hero-description {
        font-size: 15px;
    }
    .page-download__section-title {
        font-size: 24px;
    }
    .page-download__cta-button {
        padding: 10px 15px !important;
        font-size: 15px !important;
    }
    .page-download__qr-code-item img {
        
        
    }
    .page-download__qr-code-item p {
        font-size: 14px;
    }
    .page-download__feature-card img {
        height: 200px;
    }
    .page-download__card-title {
        font-size: 18px;
    }
    .page-download__step-title {
        font-size: 20px;
    }
    .page-download__faq-question h3 {
        font-size: 15px;
    }
    .page-download__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
}