/* =============== 联系我们页面样式 =============== */
.containers {
    max-width: 1620px;
    margin: 40px auto;
    padding: 0 20px;
    /*display: flex;*/
    gap: 30px;
    flex-wrap: wrap;
}
/* =============== 公司信息 + 全宽地图布局 =============== */
.contact-layout {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    height: auto;
    min-height: 400px; /* 确保有最小高度 */
    width: 1620px;
}

/* 左侧：公司信息面板 */
.company-info-panel {
    width: 360px; /* 固定宽度，适合文字内容 */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    flex-shrink: 0; /* 不压缩 */
}

.company-info-panel h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    font-weight: 600;
}

.company-info-panel h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #3498db;
    margin: 6px auto 0;
    border-radius: 2px;
}

.info-item {
    display: flex;
    margin: 14px 0;
    line-height: 1.6;
}

.info-label {
    font-weight: bold;
    color: #34495e;
    min-width: 80px;
    margin-right: 12px;
    flex-shrink: 0;
}

.company-info-panel a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.company-info-panel a:hover {
    color: #2980b9;
    text-decoration: underline;
}


/* 公司信息项 */

.info-box,
.form-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 32px;
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
}

.info-box:hover,
.form-container:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    font-weight: 600;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #3498db;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* 公司信息样式 */
.info-item {
    display: flex;
    margin: 14px 0;
    line-height: 1.6;
}

.info-label {
    font-weight: bold;
    color: #34495e;
    min-width: 80px;
    margin-right: 12px;
    flex-shrink: 0;
}

.info-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.info-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 表单样式 */
.form-container label {
    display: block;
    margin: 20px 0 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fafafa;
    transition: all 0.25s;
    box-sizing: border-box;
}

.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-container button {
    width: 100%;
    padding: 13px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.form-container button:hover {
    background: #2980b9;
}

/* 提示消息 */
.alert {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.alert-success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .containers {
        flex-direction: column;
        min-height: unset;
    }

    .info-box,
    .form-container {
        padding: 24px;
    }

    h2 {
        font-size: 22px;
    }
}
/* 右侧：地图占满剩余空间 */
/* Flex 两列布局：左固定，右自适应 */
.contact-row {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    min-height: 420px; /* 确保有足够高度 */
}

/* 左侧：公司信息 */
.contact-info {
    width: 360px;          /* 固定宽度 */
    flex-shrink: 0;        /* 不允许压缩 */
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.contact-info h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    font-weight: 600;
}

.contact-info h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #3498db;
    margin: 6px auto 0;
    border-radius: 2px;
}

.info-item {
    display: flex;
    margin: 14px 0;
    line-height: 1.6;
}

.label {
    font-weight: bold;
    color: #34495e;
    min-width: 80px;
    margin-right: 12px;
    flex-shrink: 0;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}
.contact-info a:hover {
    text-decoration: underline;
}

/* 右侧：地图容器 */
.contact-map {
    flex: 1;               /* 占据剩余所有空间 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: #f8f9fa;
}

.contact-map iframe,
.contact-map embed,
.contact-map object {
    width: 100% !important;
    height: 100% !important;
    min-height: 420px;     /* 至少 420px 高 */
    border: none;
    display: block;
}

/* 手机端：堆叠 */
@media (max-width: 768px) {
    .contact-row {
        flex-direction: column;
        min-height: auto;
    }

    .contact-info {
        width: 100%;
    }

    .contact-map {
        height: 320px;
    }

    .contact-map iframe,
    .contact-map embed,
    .contact-map object {
        min-height: 320px;
    }
}
