/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* 加载页面样式 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #775fd9, #c24491);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.logo-container {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top: 8px solid white;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    height: 24px;
    text-align: center;
}

.progress-container {
    width: 70%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.countdown {
    color: white;
    font-size: 16px;
}

/* 主内容区域样式 */
.content-area {
    height: calc(100vh - 60px);
    width: 100%;
}

#content-frame {
    width: 100%;
    height: 100%;
}

/* 底部导航栏样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(90deg, #775fd9, #c24491);
    box-shadow: 0 -5px 20px rgba(119, 95, 217, 0.3);
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.bottom-nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    list-style: none;
    padding: 0 10px;
}

.bottom-nav li {
    flex: 1;
    text-align: center;
    max-width: 80px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    padding: 10px 5px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link svg {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    fill: currentColor;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-link span {
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.nav-link.active svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.nav-link:active {
    transform: translateY(1px);
    transition: transform 0.1s ease;
}

/* 自适应调整 */
@media (max-width: 360px) {
    .bottom-nav {
        height: 60px;
    }
    .bottom-nav ul {
        padding: 0 3px;
    }
    .nav-link svg {
        width: 20px;
        height: 20px;
    }
    .nav-link span {
        font-size: 10px;
    }
    .nav-link.active {
        transform: translateY(-2px);
    }
}

@media (min-width: 768px) {
    .logo-container {
        width: 200px;
        height: 200px;
    }
    .loading-text {
        font-size: 24px;
    }
    .progress-container {
        width: 50%;
    }
    .countdown {
        font-size: 20px;
    }
    .bottom-nav {
        height: 75px;
    }
    .nav-link svg {
        width: 28px;
        height: 28px;
    }
    .nav-link span {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .logo-container {
        width: 200px;
        height: 200px;
    }
    .loading-text {
        font-size: 24px;
    }
    .progress-container {
        width: 50%;
    }
    .countdown {
        font-size: 20px;
    }
}