body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    
    /* 背景图片 */
    background-image: url('background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    color: #333;
}

h1 {
    color: #b30074;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
}

p {
    margin-bottom: 15px;
}
/* 导航栏样式 */
.navbar {
    background-color: rgba(116, 188, 239, 0.5); /* 深色半透明 */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

/* 主要内容区域样式 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.5); /* 白色半透明背景 */
    border-radius: 10px; /* 可选：圆角效果 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 可选：阴影效果 */
}

.hero-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

/* 图片样式 */
.image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* 让图片变成圆形 */
    object-fit: cover;
    border: 5px solid #3498db;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 文字内容样式 */
.text-content {
    flex: 1;
}

.text-content h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.text-content p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

/* 响应式设计 - 手机端适配 */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
}
/* 通用激活样式 - 保留 */
.nav-link.active {
    color: #d834db;        /* 通用高亮颜色 */
    font-weight: bold;     /* 粗体 */
}

/* 留言板样式 */
.message-board {
    margin: 3rem auto;
    max-width: 800px;
    padding: 0 2rem;
}

.message-container {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.message-input {
    margin-bottom: 2rem;
}

.message-input textarea {
    width: 100%;
    height: 100px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    resize: vertical;
    margin-bottom: 1rem;
}

.message-input button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.message-input button:hover {
    background: #2980b9;
}

.message-item {
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.message-time {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.message-content {
    line-height: 1.5;
}