
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航栏 */
nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 10px;
    margin-bottom: 30px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background: #667eea;
    color: white;
}

/* 主内容区域 */
main {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

h1 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-align: center;
}

h2 {
    color: #764ba2;
    margin: 30px 0 15px;
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* 关于我页面 */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #667eea;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* 日常页面 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 25px;
    width: 15px;
    height: 15px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-date {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 相册页面 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
}

.photo-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
}

.photo-info {
    padding: 15px;
}

.photo-info h4 {
    color: #667eea;
    margin-bottom: 5px;
}

.photo-info p {
    color: #666;
    font-size: 14px;
}

/* 工作日记页面 */
.diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.diary-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.diary-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.diary-title {
    color: #667eea;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.diary-content {
    color: #555;
    line-height: 1.8;
}

.diary-tags {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 30px;
    color: white;
    margin-top: 30px;
}

/* 响应式 */
@media (max-width: 768px) {
    nav ul {
        gap: 15px;
    }
    
    nav ul li a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    main {
        padding: 25px;
    }
    
    h1 {
        font-size: 2em;
    }
}
