/* styles.css */
/* 基础样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --light-text: #64748b;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark-text);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: var(--primary-color);
    color: white;
}

/* 首页样式 */
.hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.team-section {
    padding: 4rem 0;
    background-color: white;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 1rem;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.team-card h4 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.school {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hobbies {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.profile-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.profile-link:hover {
    color: var(--secondary-color);
}

.about-section {
    padding: 4rem 0;
}

.about-content p {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 个人页面样式 */
.profile-page {
    padding: 2rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.back-link:hover {
    color: var(--secondary-color);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hobbies {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.hobbies span {
    background-color: var(--light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.profile-content {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bio-section {
    margin-bottom: 2rem;
}

.bio-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skills-section {
    margin-bottom: 2rem;
}

.skills-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-list li {
    background-color: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

/* 页脚 */
.footer {
    background-color: white;
    padding: 2rem 0;
    text-align: center;
    color: var(--light-text);
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}