/* 清爽明亮的配色方案 */
:root {
    --primary-blue: #0056b3;
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --accent-blue: #e7f1ff;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-dark);
    background-color: #fff;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
}

/* 首页大图 */
.hero {
    height: 40vh;
    background: linear-gradient(rgba(0,86,179,0.7), rgba(0,86,179,0.7)), url('img/hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }

/* 内容容器 */
.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 20px;
}

.about-section p { margin-bottom: 1.5rem; font-size: 1.1rem; }

.highlight-box {
    background: var(--accent-blue);
    padding: 2rem;
    border-left: 5px solid var(--primary-blue);
    margin-top: 2rem;
}

/* 图片网格 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    background-color: #eee; /* 占位色 */
}

.gallery-item img:hover { transform: scale(1.03); }

/* 联系页 */
.contact-info {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
}

.contact-info h3 { color: var(--primary-blue); margin-bottom: 1rem; }
/* Contact 页面特有样式 */
.contact-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-card {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.info-card:hover {
    box-shadow: 0 5px 15px rgba(0,86,179,0.1);
}

.info-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.contact-form {
    flex: 1.2;
    min-width: 300px;
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* 确保宽度计算准确 */
}

.submit-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #004494;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-dark);
}
.map-link-btn {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.map-link-btn:hover {
    text-decoration: underline;
}

.map-container iframe {
    background-color: #eee; /* 在地图加载前显示的底色 */
}