* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    width: 100%;
    height: 100%;
}
body {
    background-color: black;
    min-height: 100vh;
    background-image: url("../images/background.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

.box-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 6rem;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.5rem;
}
.header-container .logo {
    height: 3.2rem;
}

.header-browser-tip {
    flex: 1;
    margin-left: 0.8rem;
    padding: 0.6rem 0.5rem;
    background: rgba(247, 144, 2, 0.1);
    border: 1px solid rgba(247, 144, 2, 0.3);
    border-radius: 6px;
    text-align: center;
    color: #ffcc00;
    font-size: 0.75rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heartbeat 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(247, 144, 2, 0.2);
}

.header-tip-icon {
    display: inline-block;
    margin-right: 5px;
    font-size: 0.9rem;
    animation: heartbeat-icon 1.2s ease-in-out infinite;
    transform-origin: center;
}

.header-tip-text {
    font-weight: bold;
}

.header-picture {
    width: 100%;
    max-width: 480px;
    padding: 0 0.8rem;
    margin-top: 0.5rem;
}

.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 8rem;
}

.mySwiper {
    width: 85%;
    max-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}
.swiper-wrapper {
    display: flex;
    width: 600%;
    transition: transform 0.5s ease-in-out;
}
.swiper-slide {
    width: 16.6666666667%;
    flex-shrink: 0;
    padding: 0 2px;
}
.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.download-fixed-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.download-fixed-wrapper {
    width: 85%;
    max-width: 300px;
}
.download-fixed-wrapper a {
    display: block;
    width: 100%;
    cursor: pointer;
    transition: transform 0.1s;
}
.download-fixed-wrapper a:active {
    transform: scale(0.95);
}
.download-fixed-wrapper a img {
    width: 100%;
    display: block;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.03);
    }
    10% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.03);
    }
    20% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes heartbeat-icon {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.3);
    }
    10% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.3);
    }
    20% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
}

.loading-text {
    color: #f79002;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.backup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.backup-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    width: 80%;
    max-width: 300px;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #f79002;
    box-shadow: 0 0 20px rgba(247, 144, 2, 0.3);
}

.backup-modal-title {
    color: #f79002;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(247, 144, 2, 0.5);
}

.backup-modal-text {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.backup-download-btn {
    background: linear-gradient(135deg, #f79002 0%, #ffaa33 100%);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(247, 144, 2, 0.3);
}

.backup-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(247, 144, 2, 0.4);
}

.backup-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(247, 144, 2, 0.3);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #f79002;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
}

@media screen and (max-width: 480px) {
    body {
        background-image: url("../images/background12.png");
    }
    .header-container {
        padding: 0.8rem 0.8rem 0.4rem;
    }
    .header-container .logo {
        height: 3rem;
    }
    .header-browser-tip {
        font-size: 0.7rem;
        padding: 0.5rem 0.4rem;
        margin-left: 0.6rem;
    }
    .mySwiper {
        width: 90%;
    }
    .download-fixed-wrapper {
        width: 90%;
    }
}

@media screen and (max-width: 375px) {
    .header-container {
        padding: 0.7rem 0.6rem 0.3rem;
    }
    .header-container .logo {
        height: 2.8rem;
    }
    .header-browser-tip {
        font-size: 0.65rem;
        padding: 0.4rem 0.3rem;
        margin-left: 0.5rem;
    }
    .mySwiper {
        width: 92%;
        margin-bottom: 1.2rem;
    }
    .download-fixed-wrapper {
        width: 92%;
    }
}

@media screen and (max-width: 320px) {
    .header-container {
        padding: 0.6rem 0.5rem 0.2rem;
    }
    .header-container .logo {
        height: 2.5rem;
    }
    .header-browser-tip {
        font-size: 0.6rem;
        padding: 0.4rem 0.3rem;
        margin-left: 0.4rem;
    }
    .mySwiper {
        width: 95%;
        margin-bottom: 1rem;
    }
    .download-fixed-wrapper {
        width: 95%;
    }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    .header-container {
        padding: 0.5rem 0.8rem 0.3rem;
    }
    .header-picture {
        display: none;
    }
    .main-content {
        padding-bottom: 5rem;
    }
    .download-fixed-container {
        padding: 0.5rem 0;
    }
}

@media screen and (max-height: 600px) {
    .header-container {
        padding: 0.5rem 0.8rem 0.3rem;
    }
    .header-picture {
        max-height: 60px;
        object-fit: contain;
    }
    .mySwiper {
        margin-bottom: 1rem;
    }
    .main-content {
        padding-bottom: 7rem;
    }
    .download-fixed-container {
        padding: 0.5rem 0;
    }
}