:root {
    --primary-color: #5e72e4;
    --secondary-color: #ff8a5c;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ec 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 导航栏样式 */
.navbar {
    background: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary-color);
}

/* 首页特有样式 */
.hero-section {
    text-align: center;
    padding: 4rem 0;
}

.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.class-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.memory-section h2 {
    text-align: center;
    margin: 2rem 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.photo-card:hover {
    transform: scale(1.02);
}

.photo-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 1rem;
    text-align: center;
    color: #666;
}

/* 成员页样式 */
.classmate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.info-list {
    margin-top: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    color: #666;
}

/* 留言页样式 */
.message-board {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.message-form {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #4a60d6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links {
        margin-top: 1rem;
        gap: 1rem;
    }
    .photo-grid {
        grid-template-columns: 1fr;
    }
    .photo-card img {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    .hero-section {
        padding: 2rem 0;
    }
    .photo-card img {
        height: 200px;
    }
}