/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* 固定顶部导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.navbar nav ul li {
    margin: 0 20px;
}

.navbar nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.navbar nav ul li a:hover {
    color: #d3cce3;
}

/* 英雄图片区域 */
.hero-image {
    margin-top: 80px; /* 导航栏高度 */
    text-align: center;
    background-color: #e0e0e0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* 内容部分 */
.main-content {
    text-align: center;
    padding: 20px;
}

.main-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.main-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#openModalButton {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#openModalButton:hover {
    background-color: #764ba2;
}

/* 模态框样式 */
.modal {
    display: none; /* 隐藏模态框 */
    position: fixed; /* 固定位置 */
    z-index: 1; /* 层叠顺序 */
    left: 0;
    top: 0;
    width: 100%; /* 全屏宽度 */
    height: 100%; /* 全屏高度 */
    overflow: auto; /* 允许滚动 */
    background-color: rgba(0, 0, 0, 0.4); /* 半透明背景 */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 居中 */
    padding: 20px;
    border: 1px solid #888;
    width: 500px;
    max-height: 80%; /* 宽度 */
    border-radius: 10px; /* 圆角 */
    text-align: center;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #667eea;
    color: white;
}