/**
 * common-contact.css
 * 联系我们组件专用样式（由 <lenet-contact> 使用）
 *
 * 若有 <lenet-contact> 出现，本文件必须引入。
 * 也兼容直接使用 .section-contact 类的旧用法。
 */

.lenet-contact-host,
.section-contact {
    padding: 80px 0;
    background: #ffffff;
}

/* 让组件内嵌时也能找到 .container */
.lenet-contact-host .container,
.section-contact .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.contact-left {
    background: #f5f7fa;
    padding: 60px 48px;
}
.contact-left h2 {
    font-size: 32px;
    color: #252525;
    margin-bottom: 12px;
    font-weight: 700;
}
.contact-left .lead {
    color: #6a7787;
    font-size: 15px;
    margin-bottom: 32px;
}

.contact-info {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #252525;
    font-size: 16px;
    margin-bottom: 16px;
}
.contact-info li .ico {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.contact-info li a {
    color: #1677ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.contact-info li a:hover {
    color: #0958d9;
    text-decoration: underline;
}

.contact-qr {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
}
.contact-qr img {
    width: 90px;
    height: 90px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #ffffff;
    padding: 4px;
}
.contact-qr .qr-text .qr-title {
    color: #252525;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-qr .qr-text .qr-desc {
    color: #6a7787;
    font-size: 13px;
}

.contact-right {
    padding: 60px 48px;
}
.contact-right h3 { display: none; }

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

.form-field label {
    display: block;
    color: #252525;
    font-size: 14px;
    margin-bottom: 8px;
}
.form-field label .req { color: #ff4d4f; margin-left: 2px; }

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e6ed;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #252525;
    background: #ffffff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #1677ff;
}
.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    margin-top: 8px;
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 48px;
    background: #1677ff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit:hover { background: #0f5fd6; }
.btn-submit:disabled {
    background: #91b9ff;
    cursor: not-allowed;
}

.form-alt {
    margin: 12px 0 0;
    text-align: center;
    color: #999;
    font-size: 12px;
}
.form-alt a {
    color: #1677ff;
    text-decoration: none;
    margin-left: 4px;
}
.form-alt a:hover { text-decoration: underline; }

@media (max-width: 1240px) {
    .lenet-contact-host .container,
    .section-contact .container {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .contact-card { grid-template-columns: 1fr; }
    .contact-left, .contact-right { padding: 40px 24px; }
}

@media (max-width: 767px) {
    .lenet-contact-host,
    .section-contact { padding: 48px 0; }
    .lenet-contact-host .container,
    .section-contact .container { padding: 0 16px; }

    .contact-card { border-radius: 8px; }
    .contact-left, .contact-right { padding: 28px 20px; }
    .contact-left h2 { font-size: 24px; }
    .contact-left .lead { font-size: 14px; margin-bottom: 24px; }
    .contact-info li { font-size: 14px; margin-bottom: 12px; }
    .contact-qr { flex-direction: column; align-items: flex-start; }
    .contact-qr img { width: 72px; height: 72px; }

    .form-row { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
    .form-field label { font-size: 13px; }
    .form-field input,
    .form-field textarea {
        padding: 10px 12px;
        font-size: 16px; /* 防止 iOS 缩放 */
    }
    .form-field textarea { min-height: 100px; }

    .btn-submit {
        width: 100%;
        height: 48px;
        padding: 0;
        font-size: 16px;
    }
    .form-alt { font-size: 11px; }
}
