/* 联系我们页面特定样式 */
.hero {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(41, 54, 84, 0.85) 0%, rgba(41, 54, 84, 0.78) 100%), url(./img/School-1.png) center / cover no-repeat;
    color: white;
    display: flex
;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

/* 文件2样式整合 */
.page-header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e4e8f0 100%);
    border-radius: 10px;
    margin: 40px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.divider {
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 40px 0;
    border: none;
}

/* 联系我们内容样式 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dark-section .contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    font-size: 1.5rem;
}

.dark-section .contact-card h3 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 15px;
    color: var(--primary-color);
    min-width: 20px;
    font-size: 18px;
    margin-top: 3px;
}

.dark-section .contact-info i {
    color: var(--accent-color);
}

.map-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.dark-section .map-link {
    color: var(--accent-color);
}

.map-link:after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.map-link:hover {
    color: var(--accent-color);
}

.dark-section .map-link:hover {
    color: white;
}

.map-link:hover:after {
    margin-left: 10px;
}

/* 表单样式 */
.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin-bottom: 60px;
}

.dark-section .contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.dark-section .form-group label {
    color: white;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--light-bg);
}

.dark-section .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 地图样式 */
.map-container {
    margin-bottom: 60px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 常见问题样式 */
.faq-container {
    margin-top: 60px;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
    background: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.dark-section .faq-question {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.faq-question:hover {
    background: var(--primary-light);
    color: white;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--light-bg);
}

.dark-section .faq-answer {
    background: rgba(255, 255, 255, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-column {
        margin-bottom: 40px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(41, 54, 84, 0.95);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: none;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links.active {
        display: flex;
        background: rgba(41, 54, 84, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .nav-links li {
        margin: 15px 0;
        transform: none;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        color: white;
        transform: none;
        padding: 15px;
        font-size: 16px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .nav-links.active a {
        color: white;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .nav-links.active a:hover {
        color: #3498db;
        text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }
    
    .nav-links.active a.active {
        color: #3498db;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }
    
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 30px;
        width: 100%;
    }
    
    .contact-card, .contact-form-container {
        padding: 25px;
    }
}
