/* ====================================================
   联系我们页面专属样式
   独立样式文件，td-contact- 前缀命名
   ==================================================== */

/* ===== 顶部英雄区 ===== */
.td-contact__hero {
    background: #005496;
    padding: 56px 0 46px;
    position: relative;
    overflow: hidden;
}

.td-contact__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    text-align: center;
}

.td-contact__hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: 2px;
}

.td-contact__hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 auto;
    line-height: 1.8;
    max-width: 560px;
}

/* ===== 通用章节标题 ===== */
.td-contact__section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin: 0 0 4px;
}

.td-contact__section-desc {
    font-size: 14px;
    color: #8a98a8;
    text-align: center;
    margin: 0 0 22px;
}

/* ===== 5 大联系方式卡片（强制同一行，永不换行） ===== */
.td-contact__cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 24px;
}

.td-contact__cards .td-contact__card {
    flex: 1 1 0;
    min-width: 0;
}

/* 同一行内：小屏收缩卡片内边距、字号与二维码，保证 5 列始终同行 */
@media (max-width: 1200px) {
    .td-contact__cards {
        gap: 10px;
    }
    .td-contact__card {
        padding: 22px 12px 20px;
    }
    .td-contact__qr-box img,
    .td-contact__qrcode-box img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .td-contact__card {
        padding: 16px 8px 14px;
    }
    .td-contact__qr-box img,
    .td-contact__qrcode-box img {
        width: 84px;
        height: 84px;
    }
    .td-contact__phone-main {
        font-size: 16px;
    }
    .td-contact__mail-item strong {
        font-size: 12px;
    }
    .td-contact__mail-item {
        font-size: 11px;
    }
    .td-contact__card-title {
        font-size: 14px;
    }
}

.td-contact__card {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    padding: 32px 18px 28px;
    text-align: center;
}

.td-contact__card:hover {
    border-color: #bcd4ee;
}

.td-contact__card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    color: #fff;
}

.td-contact__card-icon--blue    { background: #005496; }
.td-contact__card-icon--green   { background: #52c41a; }
.td-contact__card-icon--cyan    { background: #12b7f5; }
.td-contact__card-icon--amber   { background: #d48806; }
.td-contact__card-icon--red     { background: #e03c3c; }

.td-contact__card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.td-contact__card-sub {
    font-size: 12px;
    color: #b0becd;
    margin: 0 0 16px;
}

/* ----- 公众号二维码卡片 ----- */
.td-contact__qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.td-contact__qr-box img {
    width: 160px;
    height: 160px;
    border: 2px solid #eef3f8;
    border-radius: 8px;
    background: #fff;
}

.td-contact__qr-label {
    font-size: 13px;
    color: #4d6278;
    font-weight: 500;
    background: #f3f6fb;
    padding: 3px 14px;
    border-radius: 999px;
}

.td-contact__qr-hint {
    font-size: 12px;
    color: #b0becd;
    margin: 0;
    line-height: 1.5;
}

/* ----- 手机号码卡片 ----- */
.td-contact__phone-list {
    text-align: center;
}

.td-contact__phone-main {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #005496;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
    text-decoration: none;
    margin-bottom: 2px;
}

.td-contact__phone-main:hover {
    color: #0077c8;
}

.td-contact__phone-sub {
    display: block;
    font-size: 13px;
    color: #4d6278;
    text-decoration: none;
    line-height: 1.8;
}

.td-contact__phone-sub:hover {
    color: #005496;
}

.td-contact__phone-sub i {
    margin-right: 4px;
    font-size: 12px;
    color: #8a98a8;
}

.td-contact__phone-divider {
    width: 30px;
    height: 1px;
    background: #dfe8f2;
    margin: 8px auto;
}

/* ----- 电子邮箱卡片 ----- */
.td-contact__mail-list {
    text-align: center;
}

.td-contact__mail-item {
    display: block;
    font-size: 13px;
    color: #4d6278;
    text-decoration: none;
    padding: 5px 0;
    line-height: 1.6;
}

.td-contact__mail-item:hover {
    color: #005496;
}

.td-contact__mail-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1px;
}

.td-contact__mail-divider {
    width: 30px;
    height: 1px;
    background: #dfe8f2;
    margin: 6px auto;
}

/* ----- 企业二维码卡片 ----- */
.td-contact__qrcode-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.td-contact__qrcode-box img {
    width: 160px;
    height: 160px;
    border: 2px solid #eef3f8;
    border-radius: 8px;
    background: #fff;
}

.td-contact__qrcode-label {
    font-size: 13px;
    color: #4d6278;
    font-weight: 500;
    background: #f3f6fb;
    padding: 3px 14px;
    border-radius: 999px;
}

.td-contact__qrcode-hint {
    font-size: 12px;
    color: #b0becd;
    margin: 0;
    line-height: 1.5;
}

/* ===== 公司信息横幅 ===== */
.td-contact__banner {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.td-contact__banner-item {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-right: 1px solid #eef3f8;
}

.td-contact__banner-item:last-child {
    border-right: none;
}

.td-contact__banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.td-contact__banner-icon--blue    { background: #005496; }
.td-contact__banner-icon--green   { background: #52c41a; }
.td-contact__banner-icon--amber   { background: #d48806; }

.td-contact__banner-body {
    flex: 1;
    min-width: 0;
}

.td-contact__banner-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 3px;
}

.td-contact__banner-body p {
    font-size: 13px;
    color: #4d6278;
    margin: 0;
    line-height: 1.6;
}

.td-contact__banner-body a {
    color: #005496;
    text-decoration: none;
}

.td-contact__banner-body a:hover {
    text-decoration: underline;
}

/* ===== 在线留言表单 ===== */
.td-contact__form-section {
    margin-top: 24px;
}

.td-contact__form-header {
    text-align: center;
    margin-bottom: 18px;
}

.td-contact__form-box {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    padding: 34px 38px;
}

.td-contact__form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.td-contact__form-col {
    flex: 1;
    min-width: 0;
}

.td-contact__form-col label,
.td-contact__form-full label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.td-contact__form-col label span,
.td-contact__form-full label span {
    color: #e03c3c;
}

.td-contact__form-full {
    margin-bottom: 18px;
}

.td-contact__form-box .layui-input,
.td-contact__form-box .layui-textarea,
.td-contact__form-box .layui-select {
    border-radius: 6px;
    border-color: #d9e2ec;
}

.td-contact__form-box .layui-input:focus,
.td-contact__form-box .layui-textarea:focus {
    border-color: #005496 !important;
}

.td-contact__captcha {
    display: flex;
    align-items: center;
    gap: 12px;
}

.td-contact__captcha img {
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #d9e2ec;
}

.td-contact__form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.td-contact__form-actions .layui-btn {
    background: #005496 !important;
    border-color: #005496 !important;
    padding: 0 48px !important;
    height: 42px !important;
    line-height: 42px !important;
    font-size: 15px !important;
    border-radius: 6px !important;
}

.td-contact__form-actions .layui-btn:hover {
    background: #0077c8 !important;
}

/* ===== 地图区域 ===== */
.td-contact__map-section {
    margin-top: 24px;
}

.td-contact__map-box {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    padding: 30px 36px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.td-contact__map-marker {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e03c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    flex-shrink: 0;
}

.td-contact__map-info {
    flex: 1;
}

.td-contact__map-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.td-contact__map-info p {
    font-size: 13px;
    color: #4d6278;
    margin: 0 0 4px;
    line-height: 1.6;
}

.td-contact__map-info a {
    font-size: 13px;
    color: #005496;
    text-decoration: none;
}

.td-contact__map-info a:hover {
    text-decoration: underline;
}
