:root {
    --primary-color: #6200ea;
    --secondary-color: #03dac6;
    --background-color: #f5f5f5;
    --text-color: #333333;
    --card-background: #ffffff;
    --sidebar-width: 220px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: white;
    padding: 20px 15px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    margin-bottom: 30px;
    font-weight: 300;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sidebar li {
    margin-bottom: 20px;
}

.sidebar li:last-child {
    margin-top: auto;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.3s;
    padding: 10px;
    border-radius: 5px;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 40px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-weight: 300;
    font-size: 2.5em;
}

.portfolio {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px 40px;
    flex-grow: 1;
}

.card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 300px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: 500;
}

.card p {
    color: var(--text-color);
    line-height: 1.6;
}

.card a {
    display: inline-block;
    margin-top: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.card a:hover {
    background-color: var(--secondary-color);
}

.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.portfolio h2 {
    width: 100%;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about {
    padding: 40px;
    background-color: var(--card-background);
    margin: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.about h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

.contact {
    padding: 40px;
    background-color: var(--card-background);
    margin: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .avatar {
        margin-bottom: 20px;
    }
}

.favicon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.friend-links {
    margin-top: auto;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.friend-links h3 {
    color: white;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.friend-links-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
}

.friend-link-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.friend-link-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.friend-link-item i {
    font-size: 1.2em;
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: white; /* 确保所有图标颜色一致 */
}

.friend-link-item span {
    font-size: 0.9em;
    font-weight: 300;
    color: white; /* 确保所有文本颜色一致 */
}

@media (max-width: 768px) {
    .friend-links-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .friend-link-item {
        width: calc(50% - 5px);
    }
}