/* ============================================================
   陕西中恒钛航 — 联系我们页面样式（重写版）
   配色体系：深空蓝 #0A2540 + 钛橙 #E67E22 + 钛银灰
   风格：钛材科技、简洁清晰、对比明显
   说明：去掉全局body!important，避免与主页CSS冲突；
        字体用px/rem，不用vw；所有元素确保不重叠
   ============================================================ */

/* ---------- 页面容器 ---------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 40px;
    background: transparent;
    box-sizing: border-box;
}

/* ---------- 页面标题区 ---------- */
.page-header {
    text-align: center;
    padding: 10px 0 30px;
    position: relative;
}
.page-header h1 {
    font-size: 32px;
    line-height: 1.4;
    color: #0A2540;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: 4px;
}
.page-header .subtitle {
    font-size: 15px;
    color: #8B9DC3;
    margin: 0;
    font-weight: 400;
    letter-spacing: 3px;
    display: inline-block;
    padding: 6px 24px;
    border-top: 1px solid #E67E22;
    border-bottom: 1px solid #E67E22;
}

/* ---------- 卡片堆叠容器 ---------- */
.contact-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 0;
}

/* ---------- 通用卡片样式 ---------- */
.contact-card {
    background: #ffffff;
    border: 1px solid #E6E9EE;
    border-radius: 8px;
    padding: 28px 32px 32px;
    box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
/* 卡片顶部装饰线 */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0A2540 0%, #E67E22 100%);
}
.contact-card:hover {
    border-color: #0A2540;
    box-shadow: 0 8px 30px rgba(10, 37, 64, 0.08);
}
/* 卡片标题 */
.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0A2540;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F0F4F8;
}
.card-title i {
    color: #E67E22;
    font-size: 22px;
}

/* ============================================================
   卡片1：联系信息（左右两栏）
   ============================================================ */
.info-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}
/* 左栏：联系方式列表 */
.info-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #F0F4F8;
}
.info-item:last-child {
    border-bottom: none;
}
/* 图标 */
.info-item .icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0A2540 0%, #0d2e4f 100%);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}
.info-item:hover .icon {
    background: linear-gradient(135deg, #E67E22 0%, #d35400 100%);
    transform: translateY(-2px);
}
/* 内容区 */
.info-item .content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.info-item .label {
    font-size: 12px;
    color: #8B9DC3;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.info-item .value {
    font-size: 15px;
    color: #16222A;
    line-height: 1.6;
    word-break: break-word;
}
.info-item .value a {
    color: #16222A;
    text-decoration: none;
    transition: color 0.3s ease;
}
.info-item .value a:hover {
    color: #E67E22;
}
/* 公司名称特殊样式 */
.info-item.company-name .value {
    font-size: 18px;
    font-weight: 700;
    color: #0A2540;
    line-height: 1.4;
}
/* 右栏：公司图片 */
.info-right {
    border-radius: 8px;
    overflow: hidden;
    background: #F0F4F8;
    border: 1px solid #E6E9EE;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-right img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.info-right:hover img {
    transform: scale(1.03);
}
/* 底部辅助信息（跨两栏） */
.info-footer {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #F0F4F8;
    font-size: 13px;
    color: #5A6472;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.info-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.info-footer span i {
    color: #E67E22;
}

/* ============================================================
   卡片2：扫码关注（四个二维码）
   ============================================================ */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
}
.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E6E9EE;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}
.qr-item:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(10, 37, 64, 0.1);
}
/* 各平台hover边框色 */
.qr-item.wechat:hover { border-color: #07c160; }
.qr-item.weibo:hover { border-color: #ff8200; }
.qr-item.douyin:hover { border-color: #00c8f0; }
.qr-item.video:hover { border-color: #09b83e; }
/* 模拟二维码图 */
.qr-sim {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 1px;
    background: #fff;
    padding: 6px;
    border: 1px solid #E6E9EE;
    flex-shrink: 0;
}
.qr-sim span {
    background: #f0f2f5;
    border-radius: 1px;
}
.qr-sim span.dark { background: #2c3e50; }
.qr-sim span.gold { background: #0A2540; }
/* 二维码信息 */
.qr-info {
    width: 100%;
}
.qr-item .qr-name {
    font-size: 15px;
    font-weight: 600;
    color: #0A2540;
    margin-bottom: 4px;
}
.qr-item .qr-desc {
    font-size: 12px;
    color: #8B9DC3;
    margin: 0;
    line-height: 1.4;
}
/* 提示文字 */
.qr-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #8B9DC3;
    letter-spacing: 1px;
    padding-top: 16px;
    border-top: 1px dashed #E6E9EE;
}
.qr-hint i {
    color: #E67E22;
    margin-right: 6px;
}

/* ============================================================
   卡片3：地理位置（百度地图）
   ============================================================ */
.map-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #F0F4F8;
    border: 1px solid #E6E9EE;
}
#allmap {
    width: 100%;
    height: 480px;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 8px;
}
/* 地图加载占位 */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: #8B9DC3;
    flex-direction: column;
    gap: 12px;
    background: #F8FAFC;
    border-radius: 8px;
}
.map-loading i {
    font-size: 40px;
    color: #0A2540;
    opacity: 0.5;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}
/* 地图底部信息 */
.map-footer {
    margin-top: 18px;
    font-size: 14px;
    color: #5A6472;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #F0F4F8;
}
.map-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.map-footer span i {
    color: #E67E22;
}

/* ============================================================
   页面底部简单版权（页面内，非整站页脚）
   ============================================================ */
.site-footer {
    margin-top: 30px;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #8B9DC3;
    letter-spacing: 1px;
    border-top: 1px solid #F0F4F8;
}
.site-footer p {
    margin: 0;
}

/* ============================================================
   响应式适配
   ============================================================ */

/* ---------- 平板 ≤1024px ---------- */
@media screen and (max-width: 1024px) {
    .container {
        padding: 24px 16px 32px;
    }
    .page-header h1 {
        font-size: 28px;
    }
    .contact-card {
        padding: 24px 24px 28px;
    }
    .info-split {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    #allmap {
        height: 400px;
    }
}

/* ---------- 手机 ≤768px ---------- */
@media screen and (max-width: 768px) {
    .container {
        padding: 16px 12px 28px;
    }
    .page-header {
        padding: 8px 0 20px;
    }
    .page-header h1 {
        font-size: 24px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }
    .page-header .subtitle {
        font-size: 13px;
        letter-spacing: 2px;
        padding: 5px 16px;
    }
    .contact-stack {
        gap: 20px;
    }
    .contact-card {
        padding: 20px 16px 24px;
        border-radius: 6px;
    }
    .card-title {
        font-size: 18px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    /* 联系信息：改为单列，图片在上 */
    .info-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .info-right {
        order: -1;  /* 图片显示在上方 */
        min-height: 200px;
    }
    .info-right img {
        min-height: 200px;
    }
    .info-item {
        padding: 12px 0;
    }
    .info-item .icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .info-item .value {
        font-size: 14px;
    }
    .info-item.company-name .value {
        font-size: 16px;
    }
    .info-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        margin-top: 16px;
        padding-top: 14px;
    }
    /* 二维码：两列 */
    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .qr-item {
        padding: 18px 12px;
        gap: 10px;
    }
    .qr-sim {
        width: 80px;
        height: 80px;
    }
    .qr-item .qr-name {
        font-size: 14px;
    }
    .qr-item .qr-desc {
        font-size: 11px;
    }
    .qr-hint {
        font-size: 12px;
        margin-top: 16px;
        padding-top: 12px;
    }
    /* 地图 */
    #allmap {
        height: 320px;
    }
    .map-footer {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }
    .site-footer {
        font-size: 12px;
        padding: 16px 0;
    }
}

/* ---------- 小屏手机 ≤480px ---------- */
@media screen and (max-width: 480px) {
    .page-header h1 {
        font-size: 20px;
    }
    .page-header .subtitle {
        font-size: 12px;
    }
    .contact-card {
        padding: 16px 14px 20px;
    }
    .card-title {
        font-size: 16px;
    }
    .info-item .icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .info-item .label {
        font-size: 11px;
    }
    .info-item .value {
        font-size: 13px;
    }
    .info-item.company-name .value {
        font-size: 15px;
    }
    /* 二维码：小屏也保持两行两列，不改成单列 */
    .qr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .qr-item {
        padding: 14px 10px;
        gap: 8px;
    }
    .qr-sim {
        width: 72px;
        height: 72px;
        padding: 5px;
    }
    .qr-item .qr-name {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .qr-item .qr-desc {
        font-size: 10px;
        line-height: 1.3;
    }
    #allmap {
        height: 260px;
    }
}


/* ============================================================
   [真实二维码图片样式 - 开始]
   说明：替换原CSS模拟二维码(.qr-sim)为真实图片(.qr-img)
   使用：追加到 lianxi.css 末尾
   ============================================================ */

/* 二维码图片容器 */
.qr-img-box {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #E6E9EE;
    padding: 4px;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* 二维码图片本身 */
.qr-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* hover时二维码容器轻微上浮+阴影 */
.qr-item:hover .qr-img-box {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 37, 64, 0.12);
}

/* 各平台hover边框色 */
.qr-item.wechat:hover .qr-img-box { border-color: #07c160; }
.qr-item.weibo:hover  .qr-img-box { border-color: #ff8200; }
.qr-item.douyin:hover .qr-img-box { border-color: #00c8f0; }
.qr-item.video:hover  .qr-img-box { border-color: #09b83e; }

/* ---------- 响应式：二维码图片尺寸随屏幕调整 ---------- */

/* 平板 ≤1024px */
@media screen and (max-width: 1024px) {
    .qr-img-box {
        width: 90px;
        height: 90px;
    }
}

/* 手机 ≤768px */
@media screen and (max-width: 768px) {
    .qr-img-box {
        width: 80px;
        height: 80px;
        padding: 3px;
    }
}

/* 小屏 ≤480px（两行两列） */
@media screen and (max-width: 480px) {
    .qr-img-box {
        width: 72px;
        height: 72px;
        padding: 3px;
    }
}

/* 超小屏 ≤375px（两行两列） */
@media screen and (max-width: 375px) {
    .qr-img-box {
        width: 68px;
        height: 68px;
        padding: 2px;
    }
}

/* ============================================================
   [真实二维码图片样式 - 结束]
   ============================================================ */
/* ============================================================
   百度地图显示修复补丁
   问题：buchong.css全局 img{max-width:100%;max-height:100%} 导致
        百度地图瓦片图片被压缩，底图/路段不可见，仅标记点显示
   修复：重置 #allmap 容器内所有图片和元素的全局样式影响
   使用：追加到 lianxi.css 或 buchong.css 末尾
   ============================================================ */

/* ---------- 地图容器内所有元素重置box-sizing ---------- */
#allmap,
#allmap * {
    box-sizing: content-box !important;
}

/* ---------- 地图容器内所有图片重置（核心修复） ---------- */
#allmap img {
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    vertical-align: baseline !important;
    padding: 0 !important;
    border: none !important;
    float: none !important;
}

/* ---------- 百度地图版权信息/控件重置 ---------- */
#allmap .BMap_cpyCtrl,
#allmap .anchorBL,
#allmap .BMap_scaleCtrl,
#allmap .BMap_navigationControl {
    box-sizing: content-box !important;
}
#allmap .BMap_cpyCtrl img,
#allmap .anchorBL img {
    max-width: none !important;
    max-height: none !important;
    display: block !important;
}

/* ---------- 地图标记点信息窗口重置 ---------- */
#allmap .BMap_bubble_title,
#allmap .BMap_bubble_content {
    max-width: none !important;
    box-sizing: content-box !important;
}

/* ---------- 地图容器本身保持原有尺寸 ---------- */
#allmap {
    box-sizing: border-box !important;
}

/* ============================================================
   修复补丁 - 结束
   ============================================================ */
