
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    outline: none;
    border: none;
    background: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

html, body {
    height: 100%;
}

.wrapper {
    display: flex;
    height: 100%;
}

.sidebar {
    width: 250px;
    min-width: 200px;
    background-color: #111c43;
    color: white;
    transition: transform 0.3s ease;
}

.sidebar li {
    padding: 0 .75rem;
}

.sidebar li i {
    margin-right: 15px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: .5rem;
}

.sidebar a:hover {
    background-color: rgb(255 255 255 / 29%);
}

.sidebar .active a {
    background-color: rgb(255 255 255 / 29%);
}

.sidebar-header {
    padding: 22px 0px 18px 22px;
}

.sidebar .list-group-heading {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .065rem;
    text-transform: uppercase;
    padding: .75rem 1.65rem;
    white-space: nowrap;
    opacity: .5;
}

.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    overflow: hidden;
}

.topbar {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    z-index: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
 
/* 移动端样式 */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1050;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .menu-toggle {
        position: fixed;
        top: 10px;
        left: 10px;
        background-color: #343a40;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 5px;
        z-index: 1050;
    }

    .main-content {
        margin-top: 60px;
    }
}

/* 注册登录页面样式 */
.login-section {
    margin: 195px auto 0px auto;
    width: 460px;
    -moz-border-radius: 0;
    -moz-background-clip: padding;
    border-radius: 0;
    background-clip: padding-box;
	background: #fff;
    padding: 15px;
}

.login-section .logon-tab {
    margin: -15px -15px 0 -15px;
}

.login-section .logon-tab > a {
    display: block;
    padding: 20px;
    float: left;
    width: 50%;
    font-size: 16px;
    text-align: center;
    color: #616161;
    background-color: #efefef;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.login-section .logon-tab > a.active {
    background-color: #fff;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.login-section .login-main {
    padding: 40px 45px 20px 45px;
}

.particles { 
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background-image: radial-gradient(circle farthest-corner, #060A33, #000000);
}

@media (max-width: 768px) {
	.login-section {
		margin: 135px auto 0px auto;
		width: 100%;
	}
}
