/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #343a40;
    --border-color: #dee2e6;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fix for oversized images */
img {
    max-width: 100%;
    height: auto;
}

/* Banner images */
.banner-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #003d7a;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    background-color: #003d7a;
    color: var(--light-text);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-size: 2rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Navigation Bar Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 15px;
    width: 100%;
}

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

.school-logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
    display: inline-block;
}

.logo-text {
    display: inline-block;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.9rem;
    color: #666;
}

nav {
    margin-left: auto;
}

nav ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 3px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(0, 86, 179, 0.1);
}

/* 学生登录按钮样式 */
.login-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #004494;
    border-bottom: none !important;
}

.login-btn i {
    margin-right: 5px;
}

.language-switch {
    font-size: 0.9rem;
}

.language-switch a {
    color: #666;
    margin: 0 5px;
}

.language-switch a.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* Main Banner Styles */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/1.png');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* School Introduction Preview Styles */
.about-preview {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* School Features Styles */
.features {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Campus Gallery Preview Styles */
.gallery-preview {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-more {
    text-align: center;
    margin-top: 40px;
}

/* Footer Styles */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3, .footer-contact h3, .footer-links h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-info p, .footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-text);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* About Us Page Styles */
.about-page {
    padding: 80px 0;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-section p {
    margin-bottom: 20px;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mission-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mission-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Contact Page Styles */
.contact-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

.contact-info {
    margin-bottom: 40px;
}

/* 联系页面样式 - 新设计 */
.contact-fullscreen-bg {
    height: 60vh;
    background-image: url('../images/3.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-subtitle {
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 联系卡片区域 */
.contact-cards-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-card-icon i {
    font-size: 30px;
    color: #fff;
}

.contact-card-content h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5rem;
}

.contact-card-content p {
    color: #666;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    background-color: #007bff;
    color: #fff;
}

/* 校园地图区域 */
.campus-map-section {
    padding: 80px 0;
}

.map-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.campus-map {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-info {
    flex: 1;
    min-width: 300px;
}

.map-info h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.8rem;
}

.transportation-list {
    list-style: none;
    padding: 0;
}

.transportation-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #555;
}

.transportation-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #007bff;
}

/* 新的卡片式布局 */
.info-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.info-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 350px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}

.info-content {
    flex: 1;
}

.info-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.info-content p {
    margin-bottom: 5px;
    color: var(--text-color);
}

/* 邮箱部分样式 */
.email-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
}

.email-content {
    flex: 1;
}

.email-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.email-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.email-item p {
    margin-bottom: 5px;
}

.email-item strong {
    color: var(--text-color);
}

/* 表单部分样式 */
.contact-form-section {
    padding: 60px 0;
}

.form-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.form-notice p {
    color: #856404;
    margin: 0;
}

.form-notice i {
    margin-right: 10px;
}

.contact-form {
    max-width: 800px;
    margin: 30px auto 0;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.contact-form .btn {
    padding: 12px 30px;
    font-size: 1rem;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 8px;
    border: none;
    font-weight: 600;
}

.contact-form .btn:hover {
    background-color: #004494;
}

/* 表单提交消息 */
.form-message {
    display: none;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Campus Gallery Page Styles */
.gallery-page {
    padding: 80px 0;
}

.gallery-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-full-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-full-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-full-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-text);
    padding: 10px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-full-item:hover .gallery-caption {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        margin-bottom: 15px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h3 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}