/* ============================================================
   联系我们 - 手机端专属样式
   包含：订阅区、客户评价、联系表单、联系信息
   ============================================================ */

/* ---------- 1. 订阅区 Hero ---------- */
.m-contact-hero {
    position: relative;
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 16px 60px;
    overflow: hidden;
}

.m-contact-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.m-contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 26, 68, 0.72) 0%, rgba(11, 26, 68, 0.88) 100%);
    z-index: 1;
}

.m-contact-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 520px;
    width: 100%;
}

.m-contact-hero-content h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.m-contact-hero-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

/* 订阅表单 */
.m-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-subscribe-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.m-subscribe-input {
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
    outline: none;
}

.m-subscribe-input::placeholder {
    color: #999;
}

.m-subscribe-btn {
    align-self: center;
    min-width: 110px;
    height: 40px;
    padding: 0 24px;
    border: none;
    border-radius: 20px;
    background: #fff;
    color: #0b2a6b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.m-subscribe-btn:active {
    background: #f5b800;
    color: #fff;
}

/* 联系客服按钮：蓝渐变胶囊 + 客服图标 */
.m-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 120px;
    height: 42px;
    padding: 0 26px;
    border-radius: 21px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, #2b4bb8, #4f8ff7);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 6px 16px rgba(43, 75, 184, 0.35);
}

.m-service-btn:active {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.m-service-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ---------- 2. 客户的声音 ---------- */
.m-contact-voices {
    background: #fff;
}

.m-contact-voices .m-section-head {
    padding-bottom: 8px;
}

.m-voice-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 16px;
}

.m-voice-card {
    display: flex;
    align-items: stretch;
    background: #f8f9fb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(11, 42, 107, 0.05);
}

.m-voice-img {
    flex: 0 0 38%;
    max-width: 140px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.m-voice-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-voice-text {
    flex: 1 1 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.m-voice-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0b2a6b;
    margin-bottom: 8px;
}

.m-voice-text p {
    font-size: 0.78rem;
    line-height: 1.65;
    color: #555;
}

/* ---------- 3. 联系我们区域 ---------- */
.m-contact-section {
    background: #10182b;
    color: #fff;
    padding-top: 48px;
    padding-bottom: 48px;
}

.m-contact-section .m-section-head.light .m-title,
.m-contact-section .m-section-head.light .m-desc {
    color: #fff;
}

.m-contact-section .m-section-head.light .m-title::after {
    background: #f5b800;
}

.m-contact-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
}

/* 联系表单 */
.m-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.m-contact-input,
.m-contact-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    caret-color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.m-contact-input::placeholder,
.m-contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* 输入文字选中时保持亮色 */
.m-contact-input::selection,
.m-contact-textarea::selection {
    background: rgba(61, 91, 189, 0.55);
    color: #fff;
}

/* Chrome/Safari 自动填充：强制保持深色背景 + 亮白文字，避免浅底黑字看不清 */
.m-contact-input:-webkit-autofill,
.m-contact-input:-webkit-autofill:hover,
.m-contact-input:-webkit-autofill:focus,
.m-contact-textarea:-webkit-autofill,
.m-contact-textarea:-webkit-autofill:hover,
.m-contact-textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.08) inset;
    transition: background-color 9999s ease-in-out 0s;
}

.m-contact-input:focus,
.m-contact-textarea:focus {
    border-color: #f5b800;
}

.m-contact-textarea {
    resize: vertical;
    min-height: 100px;
}

.m-contact-submit {
    align-self: center;
    min-width: 110px;
    height: 40px;
    padding: 0 28px;
    border: none;
    border-radius: 20px;
    background: #fff;
    color: #10182b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.m-contact-submit:active {
    background: #f5b800;
    color: #fff;
}

/* 联系信息 */
.m-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.m-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.m-info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #f5b800;
}

.m-info-item strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}

.m-info-item p {
    margin: 0;
    line-height: 1.5;
}

/* ---------- 4. 页脚 ---------- */
.m-footer {
    background: #0d1425;
    color: rgba(255, 255, 255, 0.5);
    padding: 24px 16px;
    text-align: center;
    font-size: 0.75rem;
}

/* ---------- 5. 适配小屏 ---------- */
@media (max-width: 359px) {
    .m-subscribe-row {
        grid-template-columns: 1fr;
    }

    .m-voice-card {
        flex-direction: column;
    }

    .m-voice-img {
        flex: none;
        max-width: 100%;
        width: 100%;
        min-height: 160px;
    }
}
