/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* 页头样式 */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo h1 {
    color: #c41230;
    font-size: 32px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    padding: 5px 10px;
}

nav ul li a.active {
    color: #c41230;
    border-bottom: 2px solid #c41230;
}

nav ul li a:hover {
    color: #c41230;
    border-bottom: 2px solid #c41230;
}

/* 主要内容区样式 */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* 注册表单容器 */
.register-container {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.register-container h2 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
}

.register-container h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #c41230;
    margin: 10px auto;
}

/* 表单样式 */
.register-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #c41230;
    outline: none;
    box-shadow: 0 0 5px rgba(196,18,48,0.2);
}

/* 单选框样式 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

/* 多选框样式 */
select[multiple] {
    height: 120px;
}

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

/* 按钮样式 */
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-submit,
.btn-reset {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background-color: #c41230;
    color: #fff;
}

.btn-submit:hover {
    background-color: #a00e26;
}

.btn-reset {
    background-color: #f5f5f5;
    color: #666;
}

.btn-reset:hover {
    background-color: #e0e0e0;
}

/* 页脚样式 */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-nav a:hover {
    color: #c41230;
}

.copyright {
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .register-container {
        padding: 20px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
    }
} 