:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --sidebar-width: 30%;
    --mobile-breakpoint: 768px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: antiquewhite;
    line-height: 1.6;
    margin: 0;
    box-sizing: border-box;
}

.container {
    display: flex;
    min-height: 90vh;
    width: 90%;
    max-width: 1500px;
    margin: auto;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background: white;
    overflow: hidden;
}

.sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sidebar-width);
    background-image: url(./sidebar_background.jpg);
    background-size: cover;
    padding: 2rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);

}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.nickname {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.bio {
    margin-bottom: 1.5rem;
}

.contact {
    background-color: rgb(255, 255, 255, .4);
    width: 100%;
    padding: 20px 40px;
    border-radius: 10px;
}

.contact a {
    display: block;
    margin: 0.5rem 0;
    color: var(--secondary-color);
    text-decoration: none;
}

.content {
    flex: 1;
    padding: 2rem;
    background: white;

}

.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 0.5rem;
    border-bottom: 2px solid transparent;
}

.tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.page-content {
    display: none;
    padding: 1rem 0;
}

.page-index {
    display: flex !important;
    align-items: center;
    flex-direction: column;
}

.page-index h2 {
    margin: 50px 0;
}

.page-index a {
    display: inline-block;
    background-color: #3498db;
    width: 100px;
    height: 50px;
    margin: 0.5rem 0;
    color: var(--secondary-color);
    text-decoration: none;
    color: #000;
    line-height: 50px;
    text-align: center;
    border-radius: 10px;
}

.page-index-btn {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.page-content.active {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 0;
    }

    .sidebar {
        width: 100%;
        padding: 2rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .content {
        padding: 1rem;
    }
}