/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* ========== 导航栏 ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

/* ========== 内容背景 ========== */
.content-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(102,126,234,0.03) 0%, rgba(118,75,162,0.03) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667eea' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    z-index: -1;
}

/* ========== 布局容器 ========== */
.layout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    min-height: 100vh;
}

/* ========== 侧边栏 ========== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.sidebar-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.sidebar-avatar:hover {
    transform: scale(1.05);
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.sidebar-bio {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sidebar-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.8rem;
    color: #a0aec0;
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.sidebar-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.sidebar-social a:hover {
    transform: translateY(-3px);
}

/* ========== 主内容区域 ========== */
.main-content {
    min-height: calc(100vh - 100px);
    padding-bottom: 3rem;
}

/* ========== 页脚 ========== */
.footer {
    background: white;
    color: #718096;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .layout-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .sidebar {
        position: static;
        top: auto;
    }

    .sidebar-card {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
        padding: 1.5rem;
    }

    .sidebar-avatar {
        width: 80px;
        height: 80px;
        margin: 0;
    }

    .sidebar-info {
        flex: 1;
    }

    .sidebar-name {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .sidebar-bio {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .sidebar-stats {
        display: none;
    }

    .sidebar-social {
        margin-top: 0;
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
}
