body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #2156b1, #fcfdfd);
    margin: 0;
    padding: 0;
}

header {
    width: 100%;
    background-color: #ffffff;
    padding: 10px 20px; /* 调整为和之前一致的内边距 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between; /* 让Logo和标题分开布局 */
    position: fixed; /* 固定在页面顶部 */
    top: 0;
    left: 0;
    z-index: 1000;
    height: 80px; /* 调整高度与之前代码一致 */
    border-bottom: 4px solid #1906a6; /* 增加与之前一致的边框 */
}

header .header-content {
    display: flex;
    align-items: center;
    margin-left: 60px; /* 保持与之前一致的左侧间距 */
}

header img {
    height: 60px; /* 设置Logo高度与之前一致 */
    margin-right: 15px; /* 与标题保持合适的距离 */
}

header h1 {
    font-size: 26px;
    font-weight: bold;
    color: #1906a6;
    margin: 0;
    letter-spacing: 0.5px; /* 增加字母间距，与之前代码一致 */
}

.main-content {
    margin-top: 120px; /* 增加顶部间距，使表单框进一步向下移动，避免被header遮挡 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

.form-container {
    background-color: #ffffff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 800px;
}

h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    resize: none;
    height: 100px;
}

.form-group-inline {
    display: flex;
    gap: 10px;
}

.form-group-inline .form-group {
    flex: 1;
}

.btn-group {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.btn.active {
    background-color: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.btn:hover {
    background-color: #ddd;
}

.submit-btn {
    background-color: #ff6600;
    color: #fff;
    border: none;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #e55b00;
}


/* 模态弹窗样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 1001; /* 确保在其他元素之上 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.modal-content {
    background-color: #ffffff;
    padding: 40px; /* 增加内边距 */
    border-radius: 10px;
    width: 500px; /* 增加弹窗宽度 */
    text-align: center;
    font-size: 24px; /* 设置较大的字体 */
    line-height: 1.6; /* 增加行高，便于阅读 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px; /* 放大关闭按钮 */
    font-weight: bold;
    cursor: pointer;
}
