/* ========================================
   contact.css — 联系我们页面样式
   ======================================== */

:root {
    --primary: #1765d8;
    --primary-dark: #0f3d82;
    --primary-light: #eaf3ff;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-gray: #6b768d;
    --text-label: #4a5568;
    --shadow-card: 0 4px 24px rgba(17, 73, 135, 0.07);
    --border-light: rgba(23, 101, 216, 0.10);
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   面包屑
   ======================================== */

.breadcrumb-wrap {
    padding-top: 16px;
    padding-bottom: 16px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    color: #c0c8d4;
    margin: 0 2px;
}

.breadcrumb .current {
    color: var(--primary-dark);
    font-weight: 500;
}

/* ========================================
   联系信息快捷卡片（4列）
   ======================================== */

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.info-card {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(17, 73, 135, 0.12);
}

.info-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    font-size: 26px;
    background: linear-gradient(160deg, #eaf3ff, #dcecff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card h3 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   主体：左右两栏布局
   ======================================== */

.contact-main {
    display: grid;
    /*grid-template-columns: 1fr 1.2fr;
    gap: 24px;*/
    margin-bottom: 40px;
    align-items: start;
}

/* ========================================
   左侧：公司详细信息
   ======================================== */

.detail-card {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 32px 30px;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(23, 101, 216, 0.10);
    position: relative;
}

.detail-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.detail-table {
    display: flex;
    flex-direction: column;
    margin-left: 50px;
}

.detail-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px dashed #eef1f6;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    flex: 0 0 80px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-label);
    white-space: nowrap;
}

.detail-value {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* 招商热线卡片 */
.hotline-card {
    background: linear-gradient(135deg, #2569f4, #1c4fcf);
    border-radius: 14px;
    padding: 28px 30px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 105, 244, 0.25);
}

.hotline-content {
    text-align: center;
}

.hotline-content h3 {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.hotline-phone {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.hotline-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}
/* ========================================
   右侧：在线留言表单
   ======================================== */

.contact-form {
    position: sticky;
    top: 20px;
}

.form-card {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 32px 30px;
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(23, 101, 216, 0.10);
    position: relative;
}

.form-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 22px;
    line-height: 1.6;
}

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

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-label);
    margin-bottom: 8px;
}

.form-group .required {
    color: #e8502e;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-dark);
    background: #f8faff;
    border: 1px solid rgba(23, 101, 216, 0.12);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 101, 216, 0.08);
    background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #c0c8d4;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 验证码行 */
.captcha-row {
    display: flex;
    gap: 12px;
}

.captcha-row input {
    flex: 1;
    min-width: 0;
    width: auto !important;
}

.captcha-btn {
    flex: 0 0 auto;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #2569f4, #1c4fcf);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.captcha-btn:hover {
    background: linear-gradient(90deg, #1848cd, #0f3aa8);
}

.form-submit-btn {
    display: block;
    width: 300px;
    margin: 0 auto;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #2569f4, #1c4fcf);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 105, 244, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 105, 244, 0.35);
    background: linear-gradient(90deg, #1848cd, #0f3aa8);
}


/* ========================================
   响应式
   ======================================== */

@media (max-width: 1024px) {
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-main {
        grid-template-columns: 1fr;
    }

    .contact-form {
        position: static;
    }
}

@media (max-width: 768px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .detail-card,
    .form-card {
        padding: 24px 20px;
    }

    .hotline-phone {
        font-size: 24px;
    }

    .detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .detail-label {
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .detail-card,
    .form-card {
        padding: 20px 16px;
    }

    .form-submit-btn {
        padding: 12px 0;
        font-size: 15px;
    }
}
