/* General styles for the download page */
.page-download {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background: #0D0E12; /* Background */
}

/* Ensure content is not covered by fixed header, small top padding for first section */
.page-download__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-download__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFB04D; /* Glow */
    line-height: 1.2;
}

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

/* Hero Section */
.page-download__hero-section {
    display: flex;
    flex-direction: column; /* Ensure image is above content initially */
    align-items: center;
    background: #0D0E12; /* Background */
    padding-bottom: 50px;
}

.page-download__hero-image {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-download__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9; /* Standard aspect ratio for hero */
}

.page-download__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 15px;
}

.page-download__main-title {
    font-size: clamp(32px, 5vw, 48px); /* Use clamp for H1 font size */
    font-weight: 800;
    margin-bottom: 20px;
    color: #FFB04D; /* Glow */
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-download__description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #FFF3E6; /* Text Main */
}

.page-download__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for buttons group */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.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: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button adapts to container */
}

.page-download__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-download__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #E87810 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 165, 58, 0.6);
}

.page-download__btn-secondary {
    background: #17191F; /* Card BG */
    color: #FFA53A; /* Auxiliary color */
    border: 2px solid #A84F0C; /* Border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary:hover {
    background: #2a2d34;
    color: #FFB04D;
    border-color: #FFB04D;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-download__dark-section {
    background: #17191F; /* Card BG */
    padding: 60px 0;
}

/* Benefits Section */
.page-download__benefits-section {
    padding: 60px 0;
}

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

.page-download__benefit-card {
    background: #0D0E12; /* Background */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-download__benefit-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFB04D; /* Glow */
    margin-bottom: 15px;
}

.page-download__benefit-text {
    font-size: 16px;
    color: #FFF3E6; /* Text Main */
}

/* Guide Section */
.page-download__guide-section {
    padding: 60px 0;
    background: #0D0E12; /* Background */
}

.page-download__guide-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.page-download__tab-button {
    background: #17191F; /* Card BG */
    color: #FFA53A; /* Auxiliary color */
    border: 1px solid #A84F0C; /* Border */
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-download__tab-button:hover {
    background: #2a2d34;
    color: #FFB04D;
    border-color: #FFB04D;
}

.page-download__tab-button--active {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #ffffff;
    border-color: #D96800;
    box-shadow: 0 3px 10px rgba(255, 165, 58, 0.4);
}

.page-download__tab-content {
    display: none;
}

.page-download__tab-content--active {
    display: block;
}

.page-download__guide-step {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: #17191F; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__guide-step--reverse {
    flex-direction: row-reverse;
}

.page-download__guide-text {
    flex: 1;
}

.page-download__guide-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFB04D; /* Glow */
    margin-bottom: 15px;
}

.page-download__guide-text p {
    font-size: 17px;
    color: #FFF3E6; /* Text Main */
}

.page-download__guide-image {
    flex: 1;
    min-width: 400px; /* Ensure image has enough space */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-download__guide-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-download__cta-buttons--bottom {
    margin-top: 60px;
}

/* Features Section */
.page-download__features-section {
    padding: 60px 0;
}

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

.page-download__feature-card {
    background: #0D0E12; /* Background */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-download__feature-card img {
    width: 100%;
    height: 200px; /* Fixed height for feature images */
    object-fit: cover;
    display: block;
}

.page-download__feature-card-content {
    padding: 25px;
}

.page-download__feature-title {
    font-size: 22px;
    font-weight: 700;
    color: #FFB04D; /* Glow */
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0 25px; /* Adjust padding to match content */
}

.page-download__feature-text {
    font-size: 16px;
    color: #FFF3E6; /* Text Main */
    padding: 0 25px 25px; /* Adjust padding to match content */
}

/* Devices Section */
.page-download__devices-section {
    padding: 60px 0;
    background: #0D0E12; /* Background */
}

.page-download__device-compatibility {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.page-download__device-item {
    background: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    flex: 1;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__device-title {
    font-size: 26px;
    font-weight: 700;
    color: #FFB04D; /* Glow */
    margin-bottom: 15px;
}

.page-download__device-text {
    font-size: 17px;
    color: #FFF3E6; /* Text Main */
}

.page-download__cta-buttons--center {
    margin-top: 50px;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 60px 0;
    background: #17191F; /* Card BG */
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #0D0E12; /* Background */
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #17191F; /* Card BG */
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6; /* Text Main */
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6; /* Text Main */
}

/* Final CTA Section */
.page-download__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-download__cta-final-content .page-download__section-title {
    font-size: 42px;
    margin-bottom: 25px;
}

.page-download__cta-final-content .page-download__description {
    font-size: 22px;
    margin-bottom: 40px;
}

/* All images general responsive styles */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles for tablets and smaller desktops */
@media (max-width: 1024px) {
    .page-download__hero-section {
        padding-bottom: 40px;
    }
    .page-download__main-title {
        font-size: clamp(28px, 4.5vw, 42px);
    }
    .page-download__description {
        font-size: 18px;
    }
    .page-download__guide-step {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 25px;
    }
    .page-download__guide-step--reverse {
        flex-direction: column;
    }
    .page-download__guide-text {
        text-align: center;
    }
    .page-download__guide-image {
        min-width: unset;
        width: 100%;
        max-width: 600px; /* Limit image width on smaller screens */
        margin: 0 auto;
    }
    .page-download__guide-title {
        font-size: 24px;
    }
    .page-download__guide-text p {
        font-size: 16px;
    }
    .page-download__cta-buttons--bottom {
        margin-top: 40px;
    }
    .page-download__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-download__feature-title {
        font-size: 20px;
    }
    .page-download__feature-text {
        font-size: 15px;
    }
    .page-download__device-compatibility {
        flex-direction: column;
        gap: 30px;
    }
    .page-download__device-item {
        max-width: 100%;
    }
    .page-download__faq-qtext {
        font-size: 17px;
    }
    .page-download__cta-final-content .page-download__section-title {
        font-size: 36px;
    }
    .page-download__cta-final-content .page-download__description {
        font-size: 20px;
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-download__container {
        padding: 15px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-download__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-download__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* HERO 主图区域 */
    .page-download__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }
    .page-download__hero-image {
        margin-bottom: 25px;
        border-radius: 10px;
    }
    .page-download__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-download__main-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }
    .page-download__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-download__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-download__btn-primary,
    .page-download__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 通用图片与容器 */
    .page-download img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-download__section,
    .page-download__card,
    .page-download__container,
    .page-download__hero-section,
    .page-download__benefits-section,
    .page-download__guide-section,
    .page-download__features-section,
    .page-download__devices-section,
    .page-download__faq-section,
    .page-download__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Benefits Section */
    .page-download__benefits-section {
        padding: 40px 0;
    }
    .page-download__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__benefit-card {
        padding: 20px;
    }
    .page-download__benefit-title {
        font-size: 20px;
    }
    .page-download__benefit-text {
        font-size: 15px;
    }

    /* Guide Section */
    .page-download__guide-section {
        padding: 40px 0;
    }
    .page-download__guide-tabs {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }
    .page-download__tab-button {
        width: 100%;
        padding: 10px 15px;
        font-size: 16px;
    }
    .page-download__guide-step {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        padding: 20px;
    }
    .page-download__guide-step--reverse {
        flex-direction: column;
    }
    .page-download__guide-title {
        font-size: 22px;
    }
    .page-download__guide-text p {
        font-size: 15px;
    }
    .page-download__cta-buttons--bottom {
        margin-top: 40px;
    }

    /* Features Section (Product Display) */
    .page-download__features-section {
        padding: 40px 0;
    }
    .page-download__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-download__feature-card img {
        
    }
    .page-download__feature-title {
        font-size: 20px;
    }
    .page-download__feature-text {
        font-size: 15px;
    }

    /* Devices Section */
    .page-download__devices-section {
        padding: 40px 0;
    }
    .page-download__device-compatibility {
        flex-direction: column;
        gap: 25px;
    }
    .page-download__device-title {
        font-size: 22px;
    }
    .page-download__device-text {
        font-size: 15px;
    }
    .page-download__cta-buttons--center {
        margin-top: 30px;
    }

    /* FAQ Section */
    .page-download__faq-section {
        padding: 40px 0;
    }
    .page-download__faq-list {
        margin-top: 30px;
    }
    details.page-download__faq-item summary.page-download__faq-question {
        padding: 15px;
    }
    .page-download__faq-qtext {
        font-size: 16px;
    }
    .page-download__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-download__faq-item .page-download__faq-answer {
        padding: 0 15px 15px;
    }

    /* Final CTA Section */
    .page-download__cta-final-section {
        padding: 50px 0;
    }
}