@media (max-width: 1080px) {
    body {
        background: #f7f7f7;
    }

    .function-item-m:nth-child(2) .phone-mockup-m {
        order: 2;
    }

}

.common-container {
    max-width: 1400px;
}

.core-functions-section {
    background: #FFFFFF;
    width: 100%;
    padding: 4.74vw 0 5.521vw 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.functions-container {
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
}

.functions-header {
    text-align: center;
    margin-bottom: 90px;
}

.functions-title {
    font-size: 2.188vw;
    font-weight: bold;
    color: #333333;
    margin: 0 0 1.146vw 0;
}

.functions-content {
    display: flex;
    gap: 2.292vw;
    align-items: center;
    justify-content: space-between;
}

.functions-list {
    flex: 1;
    gap: 3.75vw;
    display: flex;
    flex-direction: column;
}

.function-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 1.667vw 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.function-item:hover,
.function-item.active {
    background: linear-gradient(90deg, #FFEFE4 0%, #FFFFFF 100%);
    border-left: 8px solid #FF6601;
}

.function-item:hover .function-title,
.function-item.active .function-title {
    color: #FF6601;
}

.function-content {
    flex: 1;
    margin-left: 3.125vw;
}

.function-title {
    font-size: 1.667vw;
    font-weight: bold;
    color: #333333;
    margin: 0 0 1.042vw 0;
}

.function-sub-title {
    font-size: 1.042vw;
    color: #777777;
}

.function-description {
    color: #777777;
    font-size: 1.042vw;
    margin: 0;
}

.functions-mockup {
    flex: 1;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../img/download/bg_phone-mockup.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.phone-container {
    position: relative;
}

.phone-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 27.604vw;
    height: 27.604vw;
    background-image: url(/template/hcjy/assets/img/app-function_bg.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    opacity: 0.6;
}

.phone-container img {
    width: 17.083vw;
    height: 35.573vw;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.functions-footer {
    text-align: center;
    margin-top: 5.99vw;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15.99vw;
    height: 3.594vw;
    font-size: 0.938vw;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* QRCode hover styles for btn-mobile-download */
.btn-download.btn-mobile-download .qrcode {
    display: none;
    width: 150px;
    height: 150px;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.btn-download.btn-mobile-download .qrcode::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.btn-download.btn-mobile-download:hover .qrcode {
    display: grid;
    place-items: center;
}

.btn-download.btn-outline {
    background: #FFFFFF;
    border: 1px solid #FF6100;
    color: #FF6601;
}

.btn-download.btn-outline:hover {
    border-color: #FF6601;
    color: #FF6601;
}

.btn-download.btn-primary {
    background: #FF6601;
    border: 1px solid #FF6601;
    color: #FFFFFF;
}

.btn-download.btn-primary:hover {
    background: #E55A00;
    border-color: #E55A00;
}

/* Features Section */
.features-section {
    background: #F7F7F7;
    padding: 6.458vw 0 6.198vw 0;
    width: 100%;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1.563vw;
    padding: 0 20px;
}

.feature-card {
    background: #FFFFFF;
    border-radius: 0.625vw;
    padding: 2.083vw 3.021vw 1.667vw 3.021vw;
    text-align: center;
    flex: 1;
    width: 13.351vw;
    height: 9.74vw;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: 1.823vw;
}

.feature-icon img {
    width: 3.646vw;
    height: 3.646vw;
    object-fit: contain;
}

.feature-text {
    font-size: 1.042vw;
    color: #777777;
    margin: 0;
    white-space: nowrap;
}

.payment-list {
    display: flex;
    gap: 40px;
    justify-content: flex-end;
    margin-bottom: 40px;
    height: 100%;
}

.core-functions-section-m {
    background: #F7F7F7;
    width: 100%;
    padding: 80px 0;
    display: none;
    justify-content: center;
    align-items: center;
    position: relative;
}

.functions-container-m {
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
}

.functions-header-m {
    margin-bottom: 60px;
}

.functions-title-m {
    font-size: 2.188vw;
    font-weight: bold;
    color: #111111;
    margin: 0 0 15px 0;
}

.functions-content-m {
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: center;
}

.function-item-m {
    display: flex;
    /*flex-direction: column;*/
    align-items: center;
    gap: 40px;
    max-width: 600px;
}

.phone-mockup-m {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex: 1;
}

.phone-mockup-m img {
    width: 220px;
    height: 450px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.function-info-m {
    text-align: left;
    flex: 1;
    padding: 0 4vw;
}

.function-title-m {
    font-size: 1.667vw;
    font-weight: bold;
    color: #FF6601;
    margin: 0 0 10px 0;
}

.function-description-m {
    font-size: 1.042vw;
    color: #777777;
    line-height: 1.6;
    margin: 0;
}

@media(min-width:1081px) and (max-width:1280px) {

    .functions-container {
        max-width: 960px;
    }
}

@media(min-width:1281px) and (max-width:1536px) {

    .functions-container {
        max-width: 1200px;
    }
}

@media (max-width: 1080px) {
    .functions-footer {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        margin-top: 40px;
    }

    .btn-download {
        min-width: 60vw;
        padding: 14px 30px;
        font-size: calc(1.481vw * var(--mobile-font-scale, 1));
    }

    /* 移动端隐藏二维码 */
    .btn-download.btn-mobile-download .qrcode {
        display: none !important;
    }

    /* Features Section Mobile - 双列网格布局 */
    .features-section {
        padding: 7.037vw 4vw 7.593vw 4vw;
        overflow: visible;
        box-sizing: border-box;
    }

    .features-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 4.63vw 5.093vw;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-card {
        flex: none;
        width: 100%;
        height: 31.95vw;
        padding: 5vw 3vw;
        border-radius: 2vw;
        margin-right: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* 奇数个卡片时，最后一个占满整行 */
    .feature-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .feature-icon {
        margin-bottom: 3.333vw;
    }

    .feature-icon img {
        width: 10vw;
        height: 10vw;
    }

    .feature-text {
        font-size: calc(3.333vw * var(--mobile-font-scale-lg, 1));
        white-space: normal;
        line-height: 1.4;
    }

    .payment-list {
        justify-content: center;
    }

    .payment-list img {
        width: 15vw;
        height: 15vw;
    }

    .core-functions-section {
        display: none !important;
    }

    .core-functions-section-m {
        display: flex !important;
        padding: 8.333vw 0;
        background: #FFFFFF;
    }

    .functions-container-m {
        padding: 0 4.167vw;
    }

    .functions-header-m {
        margin-bottom: 8.333vw;
    }

    .functions-title-m {
        font-size: calc(5vw * var(--mobile-font-scale-lg, 1));
        margin-bottom: 2.222vw;
    }

    .functions-sub-title-m {
        font-size: calc(3.67vw * var(--mobile-font-scale, 1));
    }

    .functions-content-m {
        gap: 8.333vw;
    }

    .function-item-m {
        gap: 9.259vw;
    }

    .phone-mockup-m::before {
        width: 69.167vw;
        height: 69.167vw;
    }

    .phone-mockup-m img {
        width: 30.833vw;
        height: 62.778vw;
    }

    .function-title-m {
        font-size: calc(3.889vw * var(--mobile-font-scale-lg, 1));
        color: #FF6601;
        width: 35vw;
    }

    .function-description-m {
        font-size: calc(2.593vw * var(--mobile-font-scale, 1));
        line-height: 1.6;
        /*padding: 0 20vw;*/
    }

    /* 移动端下载按钮 */
    .functions-footer-m {
        display: flex;
        align-items: center;
        gap: 3.704vw;
        margin-top: 8.333vw;
    }

    .btn-download-m {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2vw;
        width: 44.444vw;
        height: 9.259vw;
        border-radius: 1.111vw;
        font-size: calc(3.333vw * var(--mobile-font-scale, 1));
        text-decoration: none;
        font-weight: 500;
    }

    .btn-download-m img {
        width: 4.5vw;
        height: auto;
    }

    .btn-ios-m {
        background: #FF6100;
        color: #FFFFFF;
    }

    .btn-android-m {
        background: #FFFFFF;
        border: 1px solid #FF6100;
        color: #FF6100;
    }

    .btn-android-m img {
        filter: brightness(0) saturate(100%) invert(41%) sepia(95%) saturate(1636%) hue-rotate(360deg) brightness(101%) contrast(106%);
    }

    .functions-title {
        font-size: calc(5vw * var(--mobile-font-scale-lg, 1));
        margin-bottom: 30px;
    }

    .functions-content {
        flex-direction: column;
        gap: 40px;
    }

    .functions-list {
        max-width: 100%;
    }

    .function-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .function-title {
        font-size: calc(1.481vw * var(--mobile-font-scale, 1));
    }

    .function-description {
        font-size: calc(1.111vw * var(--mobile-font-scale, 1));
    }

    .phone-container::before {
        width: 200px;
        height: 200px;
    }

    .phone-container img {
        width: 280px;
    }
}