/* 移动端优化 - 针对近两年手机 */
@media screen and (max-width: 428px) {
    /* 大屏手机 */
    html, body {
        font-size: 16px;
    }

    .header-title {
        font-size: 1.4rem;
    }

    .name {
        font-size: 1.4rem;
    }

    .number {
        width: 85px;
        height: 85px;
        font-size: 2.2rem;
        line-height: 85px;
    }

    .top {
        min-height: 150px;
        padding: 28px 22px;
        margin: 50px 15px 15px 15px;
    }
}

@media screen and (max-width: 390px) {
    /* 标准手机 */
    html, body {
        font-size: 15px;
    }

    .header-title {
        font-size: 1.3rem;
    }

    .name {
        font-size: 1.35rem;
    }

    .number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        line-height: 80px;
    }

    .top {
        min-height: 140px;
        padding: 25px 20px;
        margin: 45px 12px 12px 12px;
    }
}

@media screen and (max-width: 375px) {
    /* 小屏手机 */
    html, body {
        font-size: 14px;
    }

    .header-title {
        font-size: 1.25rem;
    }

    .name {
        font-size: 1.3rem;
    }

    .number {
        width: 75px;
        height: 75px;
        font-size: 1.8rem;
        line-height: 75px;
    }

    .top {
        min-height: 130px;
        padding: 22px 18px;
        margin: 40px 10px 10px 10px;
    }
}

/* 触摸反馈优化 */
.bottom-row-item {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.1);
    tap-highlight-color: rgba(102, 126, 234, 0.1);
}

/* 安全区域适配 */
.header {
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
}

.chinacaring-scroll-content {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

/* 现代浏览器特性 */
.top, .doctor-info, .pay-container {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 电池优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
