﻿:root {
    --primary-color: #1E9FFF;
    --secondary-color: #FF5722;
    --bg-color: #F8F8F8;
    --text-color: #333;
    --border-color: #E6E6E6;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

.app-container {
    max-width: 560px;
    margin: 0 auto;
    background-color: #F2F6F9;
    min-height: 100vh;
    position: relative;
    padding-bottom: 40px;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), #5FB878);
    height: 40px;
    color: white;
    /*padding: 15px;*/
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-bar {
    display: contents;
    justify-content: space-around;
    margin-top: 15px;
    font-size: 12px;
}

.bottom-nav {
    /*position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: white;
    border-top: 1px solid var(--border-color);*/
    /*max-width: 480px;*/
    /*margin: 0 auto;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);*/
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0px 0px 0px 0px;
    padding: 7px 28px 0px 28px;
    gap: 10px;
    z-index: 20;
    background-image: linear-gradient(#fff, #fff);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: 0 0, 0 49px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding-bottom: 10px;
    --back: url(https://djpub.imos.dongjiao.cc/static/userSide/tab-back.png);
    height: 60px;
}

#nav-item-main {
    position: absolute;
    flex: none;
    width: 62px;
    height: 62px;
    left: 50%;
    top: -20px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    border-radius: 50%;
    box-shadow: 0 3px 15px 0px #c3c3c396;
}

    #nav-item-main div {
        background-size: 100% 100%;
        background-repeat: no-repeat;
        height: 62px;
        width: 62px;
    }

.nav-item {
    /*flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
    color: darkgray;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 41px;
    height: 41px;
    flex: none;
    position: relative;
    margin-top: 5px;
}

    .nav-item.active {
        color: var(--primary-color);
    }

    .nav-item div {
        height: 21px;
        width: 21px;
        background-position: 0% 0%;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

.nav-item-text {
    font-weight: 400;
    font-size: 10px;
    color: #afbec3;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 5px;
}

.page {
    display: none;
}

    .page.active {
        display: block;
    }

.back-btn {
    position: absolute;
    left: 15px;
    top: 8px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
