html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
#main-frame {
    width: 100%;
    height: calc(100% - 60px);
    border: none;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 60px;
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}
.nav-item.active {
    color: #4CAF50;
    font-weight: bold;
}
.nav-item:hover {
    background-color: #f5f5f5;
}
/* PC端左侧导航栏样式 */
@media (min-width: 900px) {
    .pc-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        background: linear-gradient(180deg, #0d3c4b 0%, #155c7d 100%);
        color: #fff;
        display: flex;
        flex-direction: column;
        z-index: 1100;
        box-shadow: 2px 0 16px rgba(0,0,0,0.08);
    }
    .sidebar-logo {
        display: flex;
        align-items: center;                
        border-bottom: 1px solid rgba(255,255,255,0.08);
        justify-content: center;
    }
    .sidebar-logo img {                
        border-radius: 12px;
        margin-right: 12px;                
        object-fit: contain;
    }
    .sidebar-title {
        font-size: 22px;
        font-weight: bold;
        letter-spacing: 2px;
    }
    .sidebar-user {
        display: flex;
        align-items: center;
        padding: 18px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.04);
    }
    .user-avatar {
        font-size: 36px;
        margin-right: 12px;
    }
    .user-name, .user-id {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: baseline;
    }
    .user-name > div, .user-id > div {
        white-space: nowrap;
        line-height: 1.5;
    }
    .user-name {
        font-size: 16px;
        font-weight: 500;
    }
    .user-name > div:nth-child(2) {
        font-size: 0.75rem;
    }
    .user-id {
        font-size: 12px;
        color: #b6eaff;
    }
    .sidebar-status {
        padding: 16px 20px 10px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.03);
    }
    .sidebar-status-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 15px;
        color: #5ee2e8;
        margin-bottom: 8px;
    }
    .sidebar-time {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .sidebar-market {
        color: #22ffd0;
        font-size: 15px;
    }
    .sidebar-status-btns {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }
    .sidebar-btn {
        background: rgba(255,255,255,0.08);
        border: none;
        border-radius: 7px;
        color: #fff;
        font-size: 18px;
        width: 36px;
        height: 36px;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        outline: none;
    }
    .sidebar-btn:hover {
        background: #1de9b6;
        color: #145c7d;
    }
    .sidebar-status-cards {
        display: flex;
        gap: 10px;
        margin-top: 6px;
    }
    .sidebar-card {
        flex: 1;
        background: rgba(255,255,255,0.10);
        border-radius: 8px;
        padding: 6px 8px 4px 8px;
        text-align: center;
        box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    }
    .card-title {
        font-size: 13px;
        color: #b0eaff;
        margin-bottom: 2px;
    }
    .card-status {
        font-size: 15px;
        font-weight: bold;
    }
    .card-status.expired {
        color: #ff6b3e;
    }
    .card-status.not-joined {
        color: #ff3e69;
    }
    .card-status.next {
        color: #28e66d;
    }
    .sidebar-menu {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 16px 0;
    }
    .sidebar-menu-item {
        position: relative;
        display: flex;
        align-items: center;
        padding: 12px 32px;
        font-size: 16px;
        color: #eaf6ff;
        cursor: pointer;
        border-left: 4px solid transparent;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
        margin-bottom: 2px;
    }
    .sidebar-menu-item small{
        font-size: 0.7rem;
        color: #ff6868;        
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
    }

    .sidebar-menu-item i {
        font-size: 20px;
        margin-right: 16px;
        width: 24px;
        text-align: center;
    }
    .sidebar-menu-item.active, .sidebar-menu-item:hover {
        background: rgba(255,255,255,0.12);
        color: #ffd700;
        border-left: 4px solid #ffd700;
    }
    .sidebar-bottom {
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 16px 0 24px 0;
    }
    .sidebar-logout {
        color: #ff6b6b;
    }
    /* 隐藏底部导航栏 */
    .bottom-nav {
        display: none !important;
    }
    /* 让iframe右移 */
    #main-frame {
        position: absolute;
        left: 260px;
        width: calc(100% - 260px);
        height: 100vh;
        top: 0;
    }
}
/* 移动端隐藏侧栏 */
@media (max-width: 899px) {
    .pc-sidebar {
        display: none !important;
    }
    #main-frame {
        left: 0;
        width: 100%;
    }
}