/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: #1a73e8; }

/* 核心内容区 */
.contact-wrapper {
    background: #f9fbfd;
    padding: 40px 50px;
    margin: 30px 0 40px 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* 标题：保持与详情页 H2 完全一致的风格 */
.contact-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #0b3d91;
    margin-bottom: 20px;
}

/* 简介文字 - 优化溢出问题 */
.contact-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    word-wrap: break-word;          /* 允许长单词换行 */
    word-break: break-word;         /* 更全面的换行支持 */
    overflow-wrap: break-word;      /* 现代浏览器换行 */
    max-height: 500px;              /* 限制最大高度 */
    overflow-y: auto;               /* 内容过多时显示滚动条 */
    padding-right: 10px;            /* 给滚动条留空间 */
}

/* 自定义滚动条样式 */
.contact-desc::-webkit-scrollbar {
    width: 6px;
}
.contact-desc::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.contact-desc::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.contact-desc::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 联系方式块：干净整洁 */
.contact-info-box {
    background: #fff;
    padding: 20px 25px;
    border-radius: 4px;
    border-left: 4px solid #1a73e8;
    margin-bottom: 30px;
}
.contact-info-box .info-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.contact-info-box .info-item:last-child { border-bottom: none; }
.contact-info-box .label {
    width: 100px;
    font-weight: bold;
    color: #333;
    flex-shrink: 0;
}
.contact-info-box .value {
    color: #555;
    font-size: 14px;
    word-break: break-all;          /* 联系方式长内容换行 */
}

/* 地图容器 - 优化图片显示 */
.map-container {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f8f9fa;      /* 图片加载前的背景色 */
    display: flex;                  /* 使用flex布局 */
    justify-content: center;        /* 水平居中 */
    align-items: center;            /* 垂直居中 */
    min-height: 300px;              /* 最小高度 */
    max-height: 500px;              /* 最大高度 */
}

.map-container img {
    max-width: 100%;                /* 最大宽度不超过容器 */
    max-height: 480px;              /* 最大高度限制 */
    width: auto;                    /* 宽度自动，保持比例 */
    height: auto;                   /* 高度自动，保持比例 */
    display: block;
    object-fit: contain;             /* 保持图片比例，完整显示 */
    margin: 0 auto;                 /* 水平居中 */
    transition: transform 0.3s ease; /* 悬停效果 */
}

/* 图片悬停放大效果（可选） */
.map-container:hover img {
    transform: scale(1.02);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 20px;
        margin: 15px 0 20px 0;
    }

    .contact-info-box .info-item {
        flex-direction: column;
        gap: 5px;
    }

    .contact-info-box .label {
        width: auto;
    }

    .contact-desc {
        max-height: 300px;            /* 移动端减小最大高度 */
        font-size: 14px;              /* 移动端字体稍小 */
    }

    .map-container {
        min-height: 250px;
        max-height: 350px;
    }

    .map-container img {
        max-height: 330px;
    }
}

/* 编辑器内容中的图片自适应（重要！） */
.contact-desc img {
    max-width: 100% !important;     /* 强制限制图片宽度 */
    height: auto !important;        /* 高度自动 */
    margin: 10px 0;                 /* 上下间距 */
    border-radius: 4px;             /* 圆角 */
}

/* 编辑器内容中的表格自适应 */
.contact-desc table {
    max-width: 100%;
    width: auto;
    border-collapse: collapse;
    margin: 15px 0;
}

.contact-desc table td,
.contact-desc table th {
    border: 1px solid #ddd;
    padding: 8px;
    word-break: break-all;
}

/* 编辑器内容中的链接样式 */
.contact-desc a {
    color: #1a73e8;
    text-decoration: none;
}

.contact-desc a:hover {
    text-decoration: underline;
}

/* 空内容占位样式 */
.contact-desc:empty::after {
    content: "暂无详细介绍";
    color: #999;
    font-style: italic;
}