/* General Page Styles */
.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background: #0A0A0A; /* Background */
}

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

.page-download__section {
    padding: 60px 0;
}

.page-download__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: #FFD36B; /* Glow */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-download__section-title--light {
    color: #FFF6D6; /* Text Main */
}

.page-download__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #FFF6D6; /* Text Main */
}

/* Card Styles */
.page-download__card {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #FFF6D6; /* Text Main */
}

.page-download__card-title {
    font-size: 22px;
    color: #FFD36B; /* Glow */
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Buttons */
.page-download__btn-primary,
.page-download__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%; /* For responsive */
    box-sizing: border-box; /* For responsive */
    white-space: normal; /* For responsive */
    word-wrap: break-word; /* For responsive */
    text-align: center;
}

.page-download__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-download__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-download__btn-secondary {
    background: transparent;
    color: #FFD36B; /* Glow */
    border: 2px solid #FFD36B; /* Glow */
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-download__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

.page-download__btn-block {
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    overflow: hidden;
    background: #0A0A0A; /* Background */
}

.page-download__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-download__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    filter: brightness(0.6); /* Darken for text readability */
}

.page-download__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.page-download__main-title {
    font-size: clamp(36px, 5vw, 58px);
    color: #FFD36B; /* Glow */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-download__description {
    font-size: 20px;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__description--light {
    color: #FFF6D6; /* Text Main */
}

.page-download__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* For responsive */
    width: 100%; /* For responsive */
    max-width: 100%; /* For responsive */
    box-sizing: border-box; /* For responsive */
}

/* Why Download Section */
.page-download__why-download {
    background: #0A0A0A; /* Background */
}

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

.page-download__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 0; /* Ensure no filter */
}

/* How to Download Section */
.page-download__how-to-download {
    background: #0A0A0A; /* Background */
}

.page-download__download-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

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

.page-download__step-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-download__step-list li {
    margin-bottom: 15px;
    font-size: 16px;
    color: #FFF6D6; /* Text Main */
}

.page-download__step-list li strong {
    color: #FFD36B; /* Glow */
}

.page-download__qr-code-wrapper {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-download__qr-code {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border: 5px solid #FFD36B; /* Glow */
    border-radius: 10px;
}

.page-download__qr-text {
    margin-top: 10px;
    font-size: 16px;
    color: #FFF6D6; /* Text Main */
}

/* App Features Section */
.page-download__app-features {
    background: #0A0A0A; /* Background */
}

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

.page-download__feature-item {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-download__feature-item .page-download__card-title {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #FFD36B; /* Glow */
}

.page-download__feature-item p {
    font-size: 16px;
    color: #FFF6D6; /* Text Main */
    flex-grow: 1;
}

.page-download__feature-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Security & Safety Section */
.page-download__security-safety {
    background: #0A0A0A; /* Background */
}

.page-download__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-download__security-text {
    flex: 1;
    text-align: left;
}

.page-download__security-text p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #FFF6D6; /* Text Main */
}

.page-download__security-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-download__security-text ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #FFF6D6; /* Text Main */
    font-size: 16px;
}

.page-download__security-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FFD36B; /* Glow */
    font-weight: bold;
}

.page-download__security-text strong {
    color: #FFD36B; /* Glow */
}

.page-download__security-image {
    flex: 0 0 450px; /* Fixed width for desktop */
    text-align: center;
}

.page-download__security-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #3A2A12; /* Border */
}

/* Final CTA Section */
.page-download__cta-final {
    padding: 80px 0;
    background: #0A0A0A; /* Background */
}

.page-download__cta-final .page-download__container {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 15px;
    padding: 50px;
    text-align: center;
}

/* FAQ Section */
.page-download__faq-section {
    background: #0A0A0A; /* Background */
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* Increased border-radius for aesthetic */
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  font-size: 18px; /* Increased font size for questions */
  font-weight: 600;
  color: #FFD36B; /* Glow */
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
  background: rgba(255, 211, 107, 0.1); /* Subtle hover effect */
  border-color: #FFD36B; /* Glow */
}
.page-download__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-download__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: #FFD36B; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Larger toggle area */
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: #111111; /* Card BG */
  border-radius: 0 0 10px 10px; /* Match item border-radius */
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
}
details.page-download__faq-item .page-download__faq-answer p {
    margin: 0;
}

/* Global Image Styles for responsiveness */
.page-download img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for most images */
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-download__hero-content {
        padding: 20px 40px;
    }
    .page-download__main-title {
        font-size: clamp(32px, 4.5vw, 50px);
    }
    .page-download__section-title {
        font-size: clamp(26px, 3.5vw, 38px);
    }
    .page-download__download-steps,
    .page-download__security-content {
        gap: 30px;
        flex-direction: column;
    }
    .page-download__security-image {
        flex: none;
        width: 100%;
    }
    .page-download__security-img {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-download__hero-section {
        min-height: 60vh;
        padding-top: 10px; /* Small top padding, not header offset */
    }
    .page-download__hero-image img {
        object-fit: contain !important; /* Mobile: contain, not cover */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        height: auto !important; /* Ensure height adjusts */
        width: 100% !important;
        opacity: 0.2; /* Lighter opacity for smaller screens */
    }
    .page-download__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }
    .page-download__description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-download__cta-buttons {
        flex-direction: column; /* Buttons stack vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 通用图片与容器 */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-download__container,
    .page-download__section,
    .page-download__card,
    .page-download__features-grid,
    .page-download__download-steps,
    .page-download__features-list,
    .page-download__security-content,
    .page-download__cta-final .page-download__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Ensure no horizontal scroll */
    }
    
    /* 产品展示图区域 (General grid needs to adapt) */
    .page-download__features-grid,
    .page-download__features-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }
    .page-download__download-steps {
        grid-template-columns: 1fr; /* Single column */
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-download__section-title {
        font-size: clamp(24px, 7vw, 32px);
        text-align: center;
        padding: 0 10px;
    }
    .page-download__section-description {
        font-size: 15px;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    .page-download__security-text ul li {
        font-size: 15px;
    }
    .page-download__security-image {
        padding: 0 15px;
    }
    .page-download__security-img {
        max-width: 100%;
    }

    /* FAQ */
    details.page-download__faq-item summary.page-download__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-download__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-download__faq-item .page-download__faq-answer {
        padding: 0 20px 20px;
        font-size: 15px;
    }
    .page-download__cta-final .page-download__container {
        padding: 30px 20px;
    }
}