/* contact.css */
.contact-page-container {
    width: 100%;
    background-color: #f5f7fa;
    padding-bottom: 60px;
}

.contact-banner {
    width: 100%;
    height: 300px;
    background: url('/img/tmp/8d509fa373ff40b19ed367961bf5760c_3840x1242.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.contact-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}

.contact-banner .banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 20px;
}

.contact-banner h1 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.contact-banner p {
    font-size: 18px;
    letter-spacing: 2px;
}

.contact-main {
    max-width: 1200px;
    margin: 12px auto 0;
    position: relative;
    z-index: 2;
}

.contact-info-section {
    margin-bottom: 12px;
}

.contact-social-section {
    background: #fff;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}

.info-top-block {
    display: flex;
    gap: 12px;
}

.info-left-card {
    flex: 1;
    background: #fff;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.info-right-card {
    width: 600px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.info-left {
    padding-top: 20px;
    padding-left: 20px;
}

.info-left {
    flex: 1;
    padding-top: 20px;
    padding-left: 20px;
}

.info-bottom-block {
    display: flex;
    gap: 40px;
}

.info-left h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 24px;
    font-weight: 600;
}

.info-item {
    font-size: 14px;
    color: #606266;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-media-section {
    flex: 1;
    padding-left: 20px;
}

.social-media-section h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 24px;
    font-weight: 600;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 24px;
    column-gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--g-color-default);
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('/img/icon/chat.png');
    background-repeat: no-repeat;
    background-position-y: top;
    background-size: 360px 80px;
    margin-right: 8px;
    transform: scale(0.6);
    transform-origin: left center;
}

.icon-wechat { background-position-x: -200px; }
.icon-bilibili { background-position-x: -320px; }
.icon-tiktok { background-position-x: -160px; }
.icon-weibo { background-position-x: -240px; }
.icon-xiaohongshu { background-position-x: -280px; }
.icon-youtube { background-position-x: -80px; }
.icon-x { background-position-x: -40px; }
.icon-facebook { background-position-x: 0; }
.icon-linkedin { background-position-x: -120px; }

/* 视频号 / 知乎:使用独立 PNG 图标(雪碧图 chat.png 中无对应图标) */
.icon-channels,
.icon-zhihu {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.icon-channels { 
    background-image: url('/img/icon/icon_sph.png'); 
    width: 35px;
    height: 35px;
}
.icon-zhihu    { 
    background-image: url('/img/icon/icon_zh.png'); 
    width: 35px;
    height: 35px;
}

.info-right {
    width: 100%;
}

.map-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 4px;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.qr-section {
    width: 600px;
    display: flex;
    justify-content: space-between;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 120px;
    height: 120px;
    margin-bottom: 8px;
}

.qr-item p {
    font-size: 12px;
    color: #606266;
    margin: 0;
}

.contact-form-section {
    background: #fff;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-form-section h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    color: #606266;
    margin-bottom: 8px;
}

.form-group label span.required {
    color: #f56c6c;
    margin-right: 4px;
}

.form-control {
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--g-color-default);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-agreement {
    margin-bottom: 30px;
    font-size: 14px;
    color: #606266;
    display: flex;
    align-items: center;
}

.form-agreement input[type="checkbox"] {
    margin-right: 8px;
}

.form-agreement a {
    color: #009688;
    text-decoration: none;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-submit {
    background-color: #009688;
    color: #fff;
    border: none;
    padding: 10px 40px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #00796b;
}

.btn-reset {
    background-color: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
    padding: 10px 40px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset:hover {
    border-color: #c0c4cc;
    color: #333;
}

/* ============= 平板响应式 ============= */
@media (max-width: 992px) {
    /* 主体宽度自适应 */
    .contact-main {
        margin: 0;
        padding: 0 16px;
        box-sizing: border-box;
    }

    /* 公司信息 + 地图:由横向转纵向,信息卡片自适应 */
    .info-top-block {
        flex-direction: column;
        gap: 12px;
    }
    .info-left-card {
        padding: 32px 24px;
    }
    .info-right-card {
        width: 100%;
    }
    .map-container {
        height: 280px;
    }

    /* 社交媒体 + 二维码:纵向堆叠 */
    .contact-social-section {
        padding: 32px 24px;
    }
    .info-bottom-block {
        flex-direction: column;
        gap: 32px;
    }
    .social-media-section {
        padding: 0;
    }
    .qr-section {
        width: 100%;
        justify-content: space-around;
    }

    /* 表单:两列变单列在 768 才处理,此处仍两列但缩窄 */
    .contact-form-section {
        padding: 32px 24px;
    }
}

/* ============= 移动端响应式 ============= */
@media (max-width: 768px) {
    .contact-page-container {
        padding-bottom: 32px;
    }

    /* 顶部 Banner */
    .contact-banner {
        height: 200px;
    }
    .contact-banner h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    .contact-banner p {
        font-size: 14px;
    }

    /* 主体宽度自适应 */
    .contact-main {
        margin: 0;
        padding: 0 12px;
        box-sizing: border-box;
    }

    /* 公司信息 + 地图:纵向堆叠 */
    .info-top-block {
        flex-direction: column;
        gap: 12px;
    }
    .info-left-card {
        padding: 24px 20px;
    }
    .info-left {
        padding: 0;
    }
    .info-right-card {
        width: 100%;
    }
    .map-container {
        height: 220px;
    }

    /* 社交媒体 + 二维码:纵向堆叠 */
    .contact-social-section {
        padding: 24px 20px;
    }
    .info-bottom-block {
        flex-direction: column;
        gap: 24px;
    }
    .social-media-section {
        padding: 0;
    }
    .social-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 16px;
    }
    .social-link {
        font-size: 12px;
    }
    .social-icon {
        transform: scale(0.5);
    }
    .qr-section {
        width: 100%;
        justify-content: space-around;
    }
    .qr-item img {
        width: 90px;
        height: 90px;
    }

    /* 表单:单列,按钮全宽 */
    .contact-form-section {
        padding: 24px 20px;
    }
    .contact-form-section h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .form-control {
        font-size: 14px;
    }
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    .btn-submit,
    .btn-reset {
        width: 100%;
        padding: 12px 0;
    }
}