/* ===== CSS变量定义 - 全局颜色和样式配置 ===== */
:root {
    --primary-color: #3498db;        /* 主色调：蓝色 */
    --secondary-color: #2ecc71;      /* 辅助色：绿色 */
    --accent-color: #e74c3c;         /* 强调色：红色 */
    --dark-color: #2c3e50;           /* 深色：深蓝灰 */
    --light-color: #ecf0f1;          /* 浅色：浅灰 */
    --gray-color: #95a5a6;           /* 灰色：中性灰 */
    --transition-speed: 0.3s;        /* 过渡动画速度 */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);  /* 标准阴影效果 */
    --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));  /* 渐变背景 */
}

/* ===== 基础页面样式 ===== */
body {
    font-family: 'Roboto', 'Noto Sans SC', sans-serif;  /* 字体：支持中英文 */
    background-color: #f5f7fa;                          /* 页面背景色：浅灰蓝 */
    color: #333;                                        /* 文字颜色：深灰 */
    line-height: 1.6;                                   /* 行高：提高可读性 */
    overflow-x: hidden;                                 /* 隐藏水平滚动条 */
}

/* ===== 自定义滚动条样式 ===== */
::-webkit-scrollbar {
    width: 10px;                                        /* 滚动条宽度 */
}

::-webkit-scrollbar-track {
    background: #f1f1f1;                               /* 滚动条轨道背景 */
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);                  /* 滚动条滑块颜色 */
    border-radius: 5px;                                /* 滚动条滑块圆角 */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);                /* 滚动条滑块悬停颜色 */
}

/* ===== 导航栏样式 - 顶部固定导航 ===== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);       /* 半透明白色背景 */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);         /* 底部阴影效果 */
    position: sticky;                                   /* 粘性定位，滚动时固定在顶部 */
    top: 0;                                            /* 固定在页面顶部 */
    z-index: 1000;                                     /* 层级：确保在其他元素之上 */
    backdrop-filter: blur(10px);                       /* 背景模糊效果 */
    transition: all var(--transition-speed) ease;      /* 平滑过渡动画 */
    width: 100vw;                                      /* 宽度：全屏宽度 */
    max-width: 100vw;                                  /* 最大宽度：全屏 */
    padding: 0;                                        /* 内边距：无 */
    margin: 0;                                         /* 外边距：无 */
    left: 0;                                           /* 左对齐 */
    right: 0;                                          /* 右对齐 */
    overflow-x: hidden;                                /* 隐藏水平溢出 */
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    width: 100%;
    margin: 0;
}

.site-header .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}

.branding {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-speed);
}

.branding:hover {
    transform: scale(1.05);
}

/* ===== Logo样式 - 网站标识 ===== */
.logo {
    width: 50px;                                        /* Logo宽度：50像素 */
    height: 50px;                                       /* Logo高度：50像素 */
    margin-right: 10px;                                 /* 右边距：与标题分离 */
    object-fit: contain;                                /* 图片适应：防止变形，保持原比例 */
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-description {
    font-size: 14px;
    color: var(--gray-color);
}

/* 导航菜单 */
.main-navigation {
    margin-right: 0;
    display: flex;
    justify-content: flex-end;
    flex: 1;
    padding-right: 0;
    width: auto;
}

.main-navigation .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    padding-right: 0;
}

.main-navigation .menu-item:last-child a {
    margin-right: 0;
    padding-right: 10px !important;
    position: relative;
    right: 0;
}

.main-navigation .menu-item {
    margin: 0 10px;
    position: relative;
}

.main-navigation .menu-item a {
    padding: 10px 20px;
    color: var(--dark-color);
    font-weight: 500;
    text-decoration: none;
    display: block;
    border-radius: 30px;
    transition: all var(--transition-speed);
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

.main-navigation .menu-item a:hover,
.main-navigation .current-menu-item a {
    background: var(--gradient-bg);
    color: white;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

/* 为当前选中的菜单项添加特殊样式 */
.main-navigation .current-menu-item a {
    position: relative;
    font-weight: 600;
}

/* 为当前选中的菜单项添加标记 */
.main-navigation .current-menu-item a::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* 添加页面头部渐变遮罩效果 */
.page-head::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(46, 204, 113, 0.9));
    z-index: 1;
    opacity: 0.85;
}

/* 增强导航菜单项悬停效果 */
.main-navigation .menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.main-navigation .menu-item a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 70%;
    opacity: 1;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* ===== 页面头部 - Hero区域，包含页面标题 ===== */
.page-head {
    position: relative;                                 /* 相对定位：为伪元素提供定位基准 */
    padding: 100px 0;                                  /* 内边距：上下100px，营造宽敞感 */
    background-color: var(--primary-color);            /* 背景色：主色调蓝色 */
    color: white;                                       /* 文字颜色：白色，与背景形成对比 */
    text-align: center;                                /* 文字对齐：居中 */
    overflow: hidden;                                   /* 溢出隐藏：确保背景效果不溢出 */
    margin-bottom: 30px;                               /* 底部边距：与下方内容分离 */
}

.page-head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../decorate/cta-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: 0;
}

.page-head::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(46, 204, 113, 0.9));
    z-index: 1;
}

.page-head .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 进度阅读滚动条 */
.progress-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 4px;
    z-index: 1001;
}

.progress-bar {
    height: 4px;
    background: var(--gradient-bg);
    width: 0%;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* 回到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    box-shadow: 0 3px 15px rgba(52, 152, 219, 0.3);
    z-index: 1000;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.5);
}

/* 联系信息卡片样式已移除，因为不再需要联系信息卡片显示 */

/* ===== 联系表单容器 - 包含表单的白色卡片 ===== */
.contact-form-container {
    background-color: white;                            /* 背景色：纯白色 */
    border-radius: 15px;                               /* 圆角：15px，与其他卡片保持一致 */
    box-shadow: var(--box-shadow);                     /* 阴影：标准阴影效果 */
    padding: 30px;                                     /* 内边距：30px，提供表单空间 */
    margin-bottom: 30px;                               /* 底部边距：与其他元素分离 */
}

.contact-form-container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark-color);
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 16px;
    transition: all var(--transition-speed);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

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

.contact-form .submit-btn {
    background: var(--gradient-bg);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    width: 100%;
}

.contact-form .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

/* ===== 地图容器 - 可点击的地图预览区域 ===== */
.map-container {
    position: relative;                                 /* 相对定位：为覆盖层提供定位基准 */
    height: 450px;                                     /* 高度：450px，合适的预览尺寸 */
    overflow: hidden;                                   /* 溢出隐藏：确保内容不超出边界 */
    border-radius: 15px;                               /* 圆角：15px，与其他卡片一致 */
    box-shadow: var(--box-shadow);                     /* 阴影：标准阴影效果 */
    margin-bottom: 30px;                               /* 底部边距：与其他元素分离 */
    cursor: pointer;                                    /* 鼠标样式：手型，提示可点击 */
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.map-container:hover img {
    transform: scale(1.02);
    filter: brightness(0.8);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.map-container:hover .map-overlay {
    opacity: 1;
}

.map-overlay i {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.map-overlay span {
    font-size: 20px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 30px;
}

/* 移除旧的悬停提示 */
.map-container::after {
    content: none;
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    margin: 0 10px;
    color: var(--primary-color);
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.social-links a:hover {
    transform: translateY(-5px);
    color: white;
    background: var(--gradient-bg);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

/* 联系页面特殊布局 */
.contact-section {
    padding: 20px 0 50px;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
}   

.contact-heading {
    text-align: center;
    margin-bottom: 40px; /* 与表单区域保持适当距离，界面紧凑 */
}

.contact-heading h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.contact-heading p {
    color: var(--gray-color);
    font-size: 18px;
}

/* 联系信息容器和项目样式已移除，因为不再需要联系信息卡片 */

/* 响应式调整 */
@media (max-width: 992px) {
    /* contact-info-item 样式已移除 */
    
    .main-navigation .menu-item a {
        min-width: 70px;
    }
    
    /* 优化表单和地图布局 */
    .contact-form-container {
        margin-bottom: 20px;
    }
    
    /* 改进社交媒体链接间距 */
    .social-links a {
        width: 45px;
        height: 45px;
        margin: 0 8px;
    }
    
    /* 确保地图响应式 */
    .map-container {
        height: 400px;
    }
    
    /* 调整contact-heading间距 */
    .contact-heading {
        margin-bottom: 10px; /* 进一步减少间距 */
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 40px;
    }
    
    /* contact-info-item 样式已移除 */
    
    .contact-form-container {
        padding: 20px;
    }
    
    .map-container {
        height: 350px;
    }
    
    .contact-heading h2 {
        font-size: 30px;
    }
    
    /* 进一步减少contact-heading间距 */
    .contact-heading {
        margin-bottom: 8px; /* 更小的间距 */
    }
    
    .main-navigation .menu-item a {
        min-width: auto;
        text-align: left;
    }
    
    /* 移动端布局改进 */
    .contact-section {
        padding: 10px 0 30px;
    }
    
    /* 修复联系表单布局 */
    .form-group {
        margin-bottom: 15px;
    }
    
    /* 调整工作时间表格 */
    .working-hours table {
        width: 100%;
    }
    
    .working-hours th, 
    .working-hours td {
        padding: 6px 8px;
        font-size: 14px;
    }
    
    /* 地图模态框调整 */
    .map-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .map-image-container {
        height: 400px;
    }
    
    .map-controls {
        top: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .map-control-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    /* 确保网站内容不会水平溢出 */
    .site-content {
        overflow-x: hidden;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 32px;
    }
    
    /* 小屏幕下进一步优化contact-heading间距 */
    .contact-heading {
        margin-bottom: 5px; /* 最小化间距 */
    }
    
    .contact-heading h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }
    
    .contact-heading p {
        font-size: 16px;
        margin-bottom: 0;
    }
    
    /* contact-info-card 样式已移除 */
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin: 0 5px;
    }
    
    .map-container {
        height: 250px;
    }
    
    /* 改进表单响应性 */
    .contact-form .submit-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .contact-form .form-control {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    /* 适应小屏幕 */
    .container {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }
    
    /* 模态框调整 */
    .map-modal-content {
        width: 95%;
        margin: 15% auto 5%;
    }
    
    .map-image-container {
        height: 300px;
    }
    
    .map-modal-header h3 {
        font-size: 18px;
    }
    
    .close-modal {
        font-size: 20px;
    }
    
    /* 调整页脚布局 */
    .site-footer .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* 超小屏幕设备优化 */
@media (max-width: 375px) {
    .page-title {
        font-size: 28px;
    }
    
    /* 超小屏幕下最小化contact-heading间距 */
    .contact-heading {
        margin-bottom: 3px; /* 极小间距 */
    }
    
    .contact-heading h2 {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .contact-heading p {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    /* contact-info-card 标题和段落样式已移除 */
    
    .map-container {
        height: 220px;
    }
    
    .map-image-container {
        height: 260px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .contact-form .form-control {
        font-size: 14px;
    }
    
    /* 页头调整 */
    .page-head {
        padding: 80px 0;
    }
}

/* 增强触摸设备体验 */
@media (hover: none) {
    /* contact-info-card 悬停和激活样式已移除 */
    
    .contact-form .submit-btn:hover {
        transform: none;
    }
    
    .contact-form .submit-btn:active {
        transform: translateY(-2px);
    }
    
    /* 优化地图交互 */
    .map-overlay {
        opacity: 0.8;
    }
    
    .map-container:hover .map-overlay {
        opacity: 1;
    }
}

/* 工作时间表格 */
.working-hours {
    margin-top: 20px;
}

.working-hours table {
    width: 100%;
    border-collapse: collapse;
}

.working-hours th, 
.working-hours td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.working-hours th {
    font-weight: 600;
    color: var(--dark-color);
}

.working-hours td {
    color: var(--gray-color);
}

/* 页脚样式 */
.site-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.site-footer .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.site-footer .widget {
    margin-bottom: 30px;
}

.site-footer .widget-title {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.site-footer .arrow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .arrow-list li {
    margin-bottom: 10px;
}

.site-footer .arrow-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.site-footer .arrow-list a:hover {
    color: white;
}

.site-footer .colophon {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.site-footer .colophon a {
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 992px) {
    .site-footer .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .site-footer .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 复制成功消息样式 */
.copy-message {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: fadeInUp 0.3s ease;
}

/* 错误消息样式 */
.error-message {
    color: var(--accent-color);
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* 成功消息容器 */
.success-message {
    text-align: center;
    padding: 30px 20px;
}

.success-message .icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 40px;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.success-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.success-message p {
    color: var(--gray-color);
    margin-bottom: 25px;
}

.success-message .submit-btn {
    max-width: 250px;
    margin: 0 auto;
}

/* ===== 地图模态框 - 全屏地图查看弹窗 ===== */
.map-modal {
    display: none;                                      /* 显示状态：默认隐藏 */
    position: fixed;                                    /* 固定定位：覆盖整个视口 */
    z-index: 2000;                                     /* 层级：最高层级，覆盖所有内容 */
    left: 0;                                           /* 左边界：0 */
    top: 0;                                            /* 顶部边界：0 */
    width: 100%;                                       /* 宽度：全屏 */
    height: 100%;                                      /* 高度：全屏 */
    background-color: rgba(0, 0, 0, 0.5);             /* 背景色：半透明黑色遮罩 */
    backdrop-filter: blur(5px);                        /* 背景模糊：5px模糊效果 */
    overflow: auto;                                     /* 溢出处理：允许滚动 */
    animation: fadeIn 0.3s ease;                       /* 入场动画：淡入效果 */
}

.map-modal.show {
    display: block;
}

.map-modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    animation: slideDown 0.4s ease;
    overflow: hidden;
}

.map-modal-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.map-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--dark-color);
    font-weight: 600;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--gray-color);
    cursor: pointer;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-modal:hover {
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.map-modal-body {
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* 地图图片容器 */
.map-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-map-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
    user-select: none;
    /* 性能优化 */
    backface-visibility: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
    will-change: transform;
    /* 硬件加速 */
    transform: translateZ(0);
}

.modal-map-image:active {
    cursor: grabbing;
}

.modal-map-image.zoomed {
    cursor: grab;
}

/* 地图控制按钮 */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.map-control-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.map-control-btn:active {
    transform: translateY(0);
}

.map-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

/* 地图信息 */
.map-info {
    text-align: center;
}

.map-info p {
    margin: 8px 0;
    color: var(--gray-color);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.map-info i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 缩放状态指示器 */
.zoom-indicator {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-indicator.show {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 禁止滚动 */
body.modal-open {
    overflow: hidden;
}

/* 移动端导航打开时禁止页面滚动 */
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .map-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .map-image-container {
        height: 400px;
    }
    
    .map-controls {
        top: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .map-control-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .map-modal-content {
        width: 95%;
        margin: 15% auto 5%;
    }
    
    .map-image-container {
        height: 350px;
    }
    
    .map-modal-header h3 {
        font-size: 18px;
    }
    
    .map-info p {
        font-size: 14px;
        flex-direction: column;
        gap: 5px;
    }
}

/* 导航菜单包装器样式 */
.main-navigation > div {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 10px;
    margin-right: 0;
}

/* ===== 移动端导航菜单 - 下拉式菜单，适配小屏幕设备 ===== */
.mobile-navigation {
    display: none;                                      /* 显示状态：默认隐藏 */
    position: fixed;                                    /* 固定定位：相对于视口定位，完全脱离导航栏约束 */
    top: 0;                                            /* 初始位置：会通过JavaScript动态调整 */
    left: 0;                                           /* 左边界：0 */
    right: 0;                                          /* 右边界：0 */
    width: 100%;                                       /* 宽度：全屏宽度 */
    background: rgba(255, 255, 255, 0.98);            /* 背景：半透明白色 */
    backdrop-filter: blur(10px);                       /* 背景模糊：10px模糊效果 */
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);  /* 阴影：下拉阴影效果 */
    z-index: 999;                                      /* 层级：降低层级，确保不覆盖导航栏 */
    border-radius: 0 0 1rem 1rem;                      /* 圆角：底部圆角 */
    transform: translateY(-100%);                       /* 初始变换：隐藏在顶部 */
    opacity: 0;                                        /* 初始透明度：完全透明 */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);  /* 过渡动画：平滑的缓动效果 */
    border-top: 2px solid var(--primary-color);        /* 顶部边框：主色调边框 */
    /* 自适应高度配置 */
    height: auto;                                       /* 高度：自适应 */
    min-height: auto;                                   /* 最小高度：自适应 */
    max-height: calc(100vh - 100px);                    /* 最大高度：留出导航栏空间 */
    overflow-y: auto;                                   /* 垂直溢出：允许滚动 */
    padding-bottom: 1rem;                              /* 底部内边距：1rem */
    /* 不使用padding-top，而是通过JavaScript动态设置top位置 */
    padding-left: 0;                                   /* 左内边距：0 */
    padding-right: 0;                                  /* 右内边距：0 */
}

.mobile-navigation.show {
    display: block;
    transform: translateY(0); /* 滑入到导航栏下方的正确位置 */
    opacity: 1;
}

.mobile-navigation .menu {
    display: flex;
    flex-direction: column;
    padding: 1rem 0; /* 适中的垂直内边距 */
    margin: 0;
    list-style: none;
    gap: 0.25rem; /* 菜单项之间的小间距 */
    /* 添加水平容器边距，与页面内容保持一致 */
    max-width: 100%;
    padding-left: 1.25rem; /* 与branding的margin-left保持一致 */
    padding-right: 1.25rem;
}

.mobile-navigation .menu-item {
    margin: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(-10px); /* 轻微的向上位移 */
    animation: slideInDown 0.3s ease forwards; /* 缩短动画时间 */
    overflow: visible;
    flex-shrink: 0;
}

.mobile-navigation .menu-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-navigation .menu-item:nth-child(2) { animation-delay: 0.1s; }
.mobile-navigation .menu-item:nth-child(3) { animation-delay: 0.15s; }
.mobile-navigation .menu-item:nth-child(4) { animation-delay: 0.2s; }
.mobile-navigation .menu-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-navigation .menu-item a {
    padding: 0.875rem 1rem; /* 减少水平内边距 */
    color: var(--dark-color);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    border-radius: 0.5rem; /* 适中的圆角 */
    border-left: 0.25rem solid transparent;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem; /* 16px - 标准字体大小 */
    min-height: 3rem; /* 适中的最小高度 */
    white-space: nowrap;
    background: transparent;
    margin: 0; /* 移除左右边距，因为容器已有边距 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* 轻微的分隔线 */
}

.mobile-navigation .menu-item:last-child a {
    border-bottom: none; /* 最后一项不显示分隔线 */
}

.mobile-navigation .menu-item a:hover,
.mobile-navigation .current-menu-item a {
    border-left: 0.25rem solid var(--primary-color);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.05));
    color: var(--primary-color);
    transform: translateX(5px); /* 轻微的右移效果 */
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.15);
}

.mobile-navigation .menu-item a:active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(46, 204, 113, 0.1));
    transform: scale(0.98) translateX(5px);
}

/* 为移动端菜单项添加图标 */
.mobile-navigation .menu-item a::before {
    content: '';
    width: 0.5rem; /* 8px */
    height: 0.5rem; /* 8px */
    border-radius: 50%;
    background-color: var(--gray-color);
    margin-right: 0.75rem; /* 12px */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-navigation .menu-item a:hover::before,
.mobile-navigation .current-menu-item a::before {
    background-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--dark-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    z-index: 100;
}

.menu-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.menu-toggle:focus {
    outline: none;
}

/* 响应式媒体查询优化 - 下拉菜单适配 */
@media (max-width: 990px) {
    .menu-toggle {
        display: flex !important;
        margin-right: 1rem;
    }
    
    .main-navigation .menu {
        display: none !important;
    }
    
    .mobile-navigation {
        max-height: calc(100vh - 100px); /* 调整最大高度 */
    }
    
    .mobile-navigation .menu {
        padding-left: 1rem; /* 减少容器边距 */
        padding-right: 1rem;
    }
    
    .mobile-navigation .menu-item a {
        padding: 0.75rem 0.875rem; /* 调整内边距 */
        font-size: 0.9375rem; /* 15px */
        min-height: 2.75rem;
    }
    
    .mobile-navigation .menu-item a::before {
        width: 0.4375rem; /* 7px */
        height: 0.4375rem;
        margin-right: 0.625rem; /* 10px */
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        margin-right: 1rem;
    }
    
    .main-navigation .menu {
        display: none !important;
    }
    
    .mobile-navigation {
        max-height: calc(100vh - 100px); /* 调整最大高度 */
    }
    
    .mobile-navigation .menu {
        padding-left: 1rem; /* 减少容器边距 */
        padding-right: 1rem;
    }
    
    .mobile-navigation .menu-item a {
        padding: 0.75rem 0.875rem; /* 调整内边距 */
        font-size: 0.9375rem; /* 15px */
        min-height: 2.75rem;
    }
    
    .mobile-navigation .menu-item a::before {
        width: 0.4375rem; /* 7px */
        height: 0.4375rem;
        margin-right: 0.625rem; /* 10px */
    }
}

/* 超小屏幕优化 */
@media (max-width: 375px) {
    .mobile-navigation {
        max-height: calc(100vh - 80px);
    }
    
    .mobile-navigation .menu {
        padding: 0.5rem 0;
        padding-left: 0.5rem; /* 最小容器边距 */
        padding-right: 0.5rem;
    }
    
    .mobile-navigation .menu-item a {
        padding: 0.5rem 0.625rem; /* 调整内边距 */
        font-size: 0.8125rem; /* 13px */
        min-height: 2.25rem;
    }
    
    .mobile-navigation .menu-item a::before {
        width: 0.3125rem; /* 5px */
        height: 0.3125rem;
        margin-right: 0.375rem; /* 6px */
    }
}

@media screen and (min-width: 991px) {
    .mobile-navigation {
        display: none !important;
    }
    
    .menu-toggle {
        display: none;
    }
} 