/* 移动端特定样式 */
body {
    justify-content: flex-start;
    padding: 10px 0 80px;
    min-height: 100vh;
    height: -webkit-fill-available;
}

.book-container {
    margin: 20px auto;
    width: 92vw;
    height: auto;
    min-height: auto;
    perspective: none;
}

.book {
    transform: none !important;
    animation: none !important;
    backdrop-filter: none;
    min-height: auto;
    flex-direction: column;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.welcome-text {
    font-size: 1.5em;
    margin: 15px 0;
    padding: 0;
    line-height: 1.4;
}

.page {
    padding: 20px;
    flex: none;
    min-height: 180px;
    height: auto;
}

.page.right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 0;
}

.page.left {
    padding-bottom: 10px;
}

.page.left::after {
    display: none;
}

.button {
    padding: 12px 20px;
    font-size: 1em;
    min-width: 140px;
    margin: 5px 0;
}

.button-container {
    gap: 12px;
    margin: 0;
    padding: 10px 0;
    width: 100%;
}

.footer-section {
    position: relative;
    height: auto;
    margin-top: 30px;
    padding: 15px 0;
    background: transparent;
}

.footer {
    flex-direction: column;
    gap: 8px;
    padding: 0 10px;
    width: 100%;
}

.footer-item {
    font-size: 0.8em;
    padding: 8px 15px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-item:not(:last-child)::after {
    display: none;
}

.mouse-cursor {
    display: none;
}

/* iPhone 12/13/14 Pro Max 特定优化 */
@media screen and (device-width: 428px) and (device-height: 926px),
       screen and (device-width: 390px) and (device-height: 844px),
       screen and (device-width: 430px) and (device-height: 932px) {
    body {
        padding: 20px 0 100px;
    }

    .book-container {
        margin: 30px auto;
        height: auto;
        min-height: 500px;
    }

    .book {
        min-height: 500px;
    }

    .welcome-text {
        font-size: 1.6em;
        margin: 30px 0;
    }

    .button-container {
        margin: 15px 0;
        gap: 20px;
    }
    
    .page {
        padding: 25px;
        height: 50%;
    }

    .button {
        padding: 15px 30px;
        min-width: 180px;
        margin: 10px 0;
    }
}

/* 较小屏幕的 iPhone */
@media (max-width: 380px) {
    .book-container {
        min-height: 350px;
    }

    .book {
        min-height: 350px;
    }

    .welcome-text {
        font-size: 1.3em;
    }

    .button {
        padding: 8px 15px;
        min-width: 120px;
    }
}
