/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Noto Sans SC', Tahoma, Geneva, Verdana, sans-serif;
    cursor: default;
}

body {
    height: 100%;
    color: #333;
    line-height: 1.7;
    max-width: 80%;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    padding-top: calc(30vh + 2rem);
}

@media (max-width: 1080px) {
    body {
        padding-top: calc(60vh + 1.5rem);
        max-width: 90%;
    }
}

/* 顶部Banner作为固定背景，占视口高度60% */
.banner-container {
    position: fixed;
    /* 固定在顶部 */
    top: 0;
    left: 0;
    width: 100%;
    height: 65vh;
    z-index: -1;
    overflow: hidden;
    filter: brightness(0.7); /* 降低亮度 */
}

@media (max-width: 1300px) {
    .banner-container {
        height: 70vh;
    }
}

.banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 保持比例填充容器 */
}


/* 内容容器 - 增加白色背景提高可读性 */
.content-wrapper {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 8px; 
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    top: 10vh;
    position: relative;
    margin: 0 auto; /* 居中 */
}

@media (max-width: 1080px) {
    .content-wrapper {
        top: -30vh;
        position: relative;
    }
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    border: 4px solid #fff;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    /* 添加过渡效果 */
}

.avatar:hover {
    transform: scale(1.1);
    /* 鼠标悬浮时放大1.1倍 */
}

.title {
    text-align: center;
    font-size: 2.1rem;
    color: #2d3748;
    margin: 1rem 0 0.3rem 0;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 1300px) {
    .row {
        grid-template-columns: 1fr;
    }
}

.col {
    display: flex;
    flex-direction: column;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 1rem 0;
}

.icon-text i {
    font-size: 1.3rem;
    color: #718096;
    transition: color 0.3s ease;
    cursor: pointer;
}

.icon-text:hover i {
    color: #4299e1;
}

h1 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 2rem 1rem 0.5rem 1rem;
    font-weight: 700;
}

hr {
    color: #718096;
    margin: 1rem;
}

h2 {
    font-size: 1.3rem;
    color: #718096;
    margin: 1rem;
    font-weight: 600;
}

p {
    text-indent: 2em;
    /* 首行缩进两个字符 */
    font-size: 1rem;
    margin: 0.6rem 2rem 0cm 2rem;
}

a {
    color: #4299e1;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 列表 */
.info-list {
    list-style: none;
    margin: 0.6rem 2rem 1.2rem 2rem;
}

.info-list li {
    font-size: 1.02rem;
    padding-left: 1.4rem;
    position: relative;
}

.info-list li::before {
    content: "•";
    color: #4299e1;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

.contrib-chart {
    display: block;
    margin: 0 auto;
    width: 90%;
    height: auto;
}

/* 底部信息 */
.footer-info {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    color: #868e96;
    font-size: 0.9rem;
    text-align: center;
}

.footer-info p {
    margin: 0.3rem 0;
}

.course-table {
    width: 90%;
    border-collapse: collapse;
    display: block;
    margin: 20px auto;
}

.course-table caption {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #718096;
    font-weight: 600;
}

.course-table th.left,
.course-table td.left {
    width: 3%;
}

.course-table th,
.course-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    width: calc((90% - 3%) / 5);
}

.course-table th {
    background-color: #f2f2f2;
}

.course {
    background-color: #e6f2ff;
    font-size: 0.95em;
    line-height: 1.5;
}

.course:hover {
    background-color: #bcddfb;
    cursor: pointer;
    transform: scale(1.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* 表单内容区域 */
.form-content {
    padding: 10px;
}

/* 分栏布局 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 1300px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 表单字段样式 */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.form-label i {
    margin-right: 8px;
    color: #3498db;
}

.form-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: text;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* 性别选择样式 */
.gender-options {
    display: flex;
    gap: 20px;
    padding-top: 5px;
}

.gender-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gender-option input {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
    cursor: pointer;
}

/* 提交按钮样式 */
.submit-container {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}