/* === header.css === 固定头部+基础重置+弹窗样式 === */
/* 全局样式重置（基础依赖，放在header.css保证优先加载） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

html, body {
    font-size: 16px;
    color: #333;
    background-color: #f8f8f8;
    scroll-behavior: smooth;
}

ul, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 通用组件样式（头部关联） */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #3498db;
    margin: 0.5rem auto;
}

.more-btn {
    display: block;
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    border-radius: 4px;
    margin: 1rem auto 0px;
    transition: background-color 0.3s;
    width:7rem;
}

.more-btn:hover {
    background-color: #2980b9;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 250px;
}

.slogan {
    margin-left: 1rem;
    font-size: 1rem;
    color: #666;
}

/* 导航样式（PC端） */
.nav-list {
    display: flex;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link.active, .nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s;
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

/* 汉堡包按钮 */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* 移动端侧边导航 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s;
    padding: 2rem 1rem;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

.mobile-nav.show {
    transform: translateX(0);
}

.close-nav {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-list {
    margin-top: 2rem;
}

.mobile-nav-item {
    margin: 1.5rem 0;
}

.mobile-nav-link {
    font-size: 1.2rem;
    padding: 0.5rem 0;
    display: block;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
    color: #3498db;
}

/* 报名弹窗（头部按钮触发，归属头部样式） */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: none;
}

.modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #2c3e50;
}

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    padding: 1rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

/* 懒加载基础样式（全局依赖） */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s;
}

.lazy-load.loaded {
    opacity: 1;
}