/* 移动端：改为 fixed 居中显示 */
@media (max-width: 768px) {
    .download-modal {
        position: fixed;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 300px;
        height: auto;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        background: #FFFFFF;
        display: flex;
        flex-direction: row;
        padding: 16px;
        gap: 16px;
    }

    /* 可选：优化二维码和按钮大小 */
    .download-modal .qr-code-container {
        width: 90px;
        height: 90px;
    }

    .download-modal .download-buttons {
        width: 90px;
        height: 90px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .download-modal .download-button {
        width: 100%;
        height: 40px;
        border-radius: 6px;
        background: #FFFFFF;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .download-modal .download-button:hover {
        border-color: #007AFF;
        transform: scale(1.02);
    }
}
/* 响应式调整 */
@media (max-width: 768px) {
    .footer .col-6.order-md-2,
    .footer .col-6.order-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
        text-align: left;
    }

    .footer .col-12.col-md-8.order-md-1.col-lg-12.col-xl-4 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left;
        margin-bottom: 20px;
    }

    .footer__logo,
    .footer__tagline {
        text-align: left;
    }

    .footer__download {
        text-align: left;
    }

    .footer__list--download {
        justify-content: flex-start;
    }

    .footer__title {
        text-align: left;
    }

    .footer__list {
        text-align: left;
    }

    .footer__list li {
        display: block;
        margin: 5px 0;
    }

    .footer__email {
        display: block;
    }

    #header-vip {
        width: 180px;
        height: 32px;
        padding: 4px 12px;
    }

    #header-library {
        font-size: 14px;
    }

    #header-signin {
        width: 36px;
        height: 36px;
    }
}
@media (max-width: 768px) {
    .header__actions {
        gap: 10px;
    }

    #header-vip {
        width: 160px;
        height: 30px;
        padding: 3px 10px;
    }

    #header-library {
        font-size: 13px;
    }

    #header-signin {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 576px) {
    .header__logo img {
        margin-right: 30px;
    }
    /* footer移动端样式 */
    .footer__list--download {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .footer__list--download li {
        margin-right: 10px;
        margin-bottom: 10px;
    }

    .footer__list--download img {
        height: 35px;
    }
}

/* 在现有样式基础上添加以下媒体查询 */

@media (max-width: 768px) {
    /* 在移动端隐藏 Go VIP 和 Library 按钮，只显示 Sign In */
    #header-vip,
    #header-library {
        display: none;
    }
    .header__actions img {
        display: none;
    }

    /* 调整 Sign In 按钮在移动端的样式 */
    #header-signin {
        width: 40px;
        height: 40px;
        margin-left: auto; /* 使按钮在右侧对齐 */
    }
    #header-signin img {
        display: block;
        max-width: 100%;
        height: 40px;
    }

    /* 调整 header actions 在移动端的布局 */
    .header__actions {
        gap: 15px;
    }
}
/* 移动端适配：全屏居中 */
@media (max-width: 768px) {
    .search-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        overflow: hidden;
    }

    .search-modal-content {
        width: 100%;
        max-width: none;
        min-width: 100%;
        height: 100%;
        max-height: none;
        margin: 0;
        border-radius: 0;
        padding: 16px;
        gap: 12px;
    }

    .search-input-wrapper {
        padding: 0;
    }

    #search-input {
        padding: 12px 16px;
        font-size: 16px;
    }

    .close-btn {
        right: 12px;
        font-size: 24px;
    }
}
/* 用户信息窗口 - 移动端模式 */
@media (max-width: 768px) {
    .user-profile-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .user-profile-content {
        width: 90%;
        max-width: 400px;
        height: auto;
        max-height: 90vh;
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }
}
@media (max-width: 1200px) {
    .menu__search {
        display: flex;
    }
}
/* 为移动端底部区域添加专门的样式 */
@media (min-width: 768px) {
    .mobile-footer {
        display: none;
    }
    .col-md-8 {
        flex: 0 0 auto;
        width: 20%;
    }
    .col-md-4 {
        flex: 0 0 auto;
        width: 20%;
    }
    .footer__title {
        width: 87px;
        height: 19px;
        font-family: Roboto, Roboto;
        font-weight: 700;
        font-size: 16px;
        color: #333333;
        line-height: 19px;
        text-align: left;
        font-style: normal;
        text-transform: none;
        white-space: nowrap;
    }
    .footer__tagline {
        width: 251px;
        height: 16px;
        font-family: Roboto, Roboto;
        font-weight: 400;
        font-size: 14px;
        color: #333333;
        line-height: 16px;
        text-align: left;
        font-style: normal;
        text-transform: none;
        white-space: nowrap;
    }
    .footer__list a {
        width: 83px;
        height: 16px;
        font-family: Roboto, Roboto;
        font-weight: 400;
        font-size: 14px;
        color: #333333;
        line-height: 16px;
        text-align: left;
        font-style: normal;
        text-transform: none;
    }
    .footer__email {
        width: 135px;
        height: 16px;
        font-family: Roboto, Roboto;
        font-weight: 400;
        font-size: 14px;
        color: #333333;
        line-height: 16px;
        text-align: left;
        font-style: normal;
        text-transform: none;
    }
}
@media (max-width: 768px) {

    /*侧边栏*/
    .menu__nav-link {
        width: 186px;
        height: 40px;
        font-family: Source Han Sans, Source Han Sans;
        font-weight: 400;
        font-size: 14px;
        color: #666666;
        line-height: 20px;
        text-align: left;
        font-style: normal;
        text-transform: none;
        border-bottom: 1px solid #D8D8D8;
    }


    /*底部*/
    .footer {
        padding: 0;
    }
    .footer:before {
        display: none;
    }
    .pc-footer {
        display: none;
    }
    /* 移动端底部容器 */
    .mobile-footer {
        display: block;
        background-color: #FFFFFF;
        padding: 0 16px;
        border-top: 0 solid #E5E7EB;
        margin-top: 24px;
    }

    /* 政策部分样式 */
    .mobile-policy-section {
        margin-bottom: 24px;
    }

    .mobile-policy-title {
        width: 80px;
        height: 20px;
        font-family: Source Han Sans, Source Han Sans;
        font-weight: 500;
        font-size: 14px;
        color: #333333;
        line-height: 20px;
        text-align: left;
        font-style: normal;
        text-transform: none;
    }

    .mobile-policy-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid #E5E7EB;
        cursor: pointer;
    }


    .mobile-policy-text {
        font-size: 12px;
        color: #333333;
    }

    .mobile-policy-arrow {
        width: 16px;
        height: 16px;
        color: #999999;
    }

    /* 联系我们部分样式 */
    .mobile-contact-section {
        margin-bottom: 24px;
    }

    .mobile-contact-title {
        width: 73px;
        height: 20px;
        font-family: Source Han Sans, Source Han Sans;
        font-weight: 500;
        font-size: 14px;
        color: #333333;
        line-height: 20px;
        text-align: left;
        font-style: normal;
        text-transform: none;
    }

    .mobile-contact-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid #E5E7EB;
    }

    .mobile-contact-email {
        font-size: 12px;
        color: #333333;
        font-family: Source Han Sans, Source Han Sans;
        font-style: normal;
    }

    /* 下载部分样式 */
    .mobile-download-section {
        margin-bottom: 24px;
    }

    .mobile-download-title {
        width: 69px;
        height: 20px;
        font-family: Source Han Sans, Source Han Sans;
        font-weight: 500;
        font-size: 14px;
        color: #333333;
        line-height: 20px;
        text-align: left;
        font-style: normal;
        text-transform: none;
    }

    .mobile-download-buttons {
        display: flex;
        gap: 16px;
        margin-bottom: 24px;
    }

    .mobile-download-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 128px;
        height: 40px;
        border-radius: 8px;
        border: 1px solid #E5E7EB;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .mobile-download-button img {
        width: 100%;
        height: 100%;
    }

    /* 底部品牌信息样式 */
    .mobile-brand-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .mobile-brand-logo {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-brand-logo img {
        width: 40px;
        height: 40px;
        border-radius: 8px 8px 8px 8px;
    }
    .mobile-brand-logo span {
        width: 88px;
        height: 20px;
        font-family: Source Han Sans, Source Han Sans;
        font-weight: 400;
        font-size: 24px;
        color: #9E6DFC;
        line-height: 20px;
        text-align: left;
        font-style: normal;
        text-transform: none;
    }

    .mobile-brand-slogan {
        width: 113px;
        height: 36px;
        font-family: Source Han Sans, Source Han Sans;
        font-weight: 400;
        font-size: 14px;
        color: #333333;
        line-height: 18px;
        text-align: left;
        font-style: normal;
        text-transform: none;
        margin-right: 85px;
    }

    /* 版权信息样式 */
    .mobile-copyright {
        width: 375px;
        height: 20px;
        font-family: Source Han Sans, Source Han Sans;
        font-weight: 400;
        font-size: 14px;
        color: #333333;
        line-height: 20px;
        text-align: left;
        font-style: normal;
        text-transform: none;
    }
}