﻿
/* ── 主体区域（与 news-page 一致） ── */
.contact-body {
    background: #f4f7fb;
    padding: 48px 0 80px;
    min-height: 60vh;
}

/* ── 联系卡片网格（两列） ── */
.contact-cards-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: start;
}

/* ── 左侧信息卡片 ── */
.contact-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

    .contact-info-card h3 {
        font-size: 16px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 20px;
        padding-bottom: 14px;
        border-bottom: 2px solid #e94560;
    }

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
}

    .contact-detail-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(233,69,96,.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e94560;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.5;
}
a.contact-detail-value {
    color: #1a1a2e;
    text-decoration: none;
}
a.contact-detail-value:hover {
    color: #e94560;
    text-decoration: underline;
}

/* ── 右侧表单卡片 ── */
.contact-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

    .contact-form-card h3 {
        font-size: 16px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 24px;
        padding-bottom: 14px;
        border-bottom: 2px solid #e94560;
    }

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

    .cf-row.full {
        grid-template-columns: 1fr;
    }

.cf-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

    .cf-field label .req {
        color: #e94560;
    }

.cf-field input,
.cf-field select,
.cf-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0e6ef;
    border-radius: 8px;
    font-size: 13px;
    color: #1a1a2e;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

    .cf-field input:focus,
    .cf-field select:focus,
    .cf-field textarea:focus {
        border-color: #e94560;
        box-shadow: 0 0 0 3px rgba(233,69,96,.1);
    }

    .cf-field input.error,
    .cf-field select.error,
    .cf-field textarea.error {
        border-color: #e94560;
    }

.cf-err {
    font-size: 11px;
    color: #e94560;
    min-height: 14px;
    margin-top: 4px;
}

.cf-field textarea {
    resize: vertical;
    min-height: 100px;
}

.cf-field select {
    appearance: none;
    cursor: pointer;
}

.cf-select-wrap {
    position: relative;
}

    .cf-select-wrap::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 10px;
        color: #aaa;
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }

.cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e94560;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .15s;
    margin-top: 8px;
}

    .cf-btn:hover {
        background: #c73652;
        transform: translateY(-1px);
    }

    .cf-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none;
    }

/* ── 提交成功 ── */
.cf-success {
    display: none;
    text-align: center;
    padding: 48px 24px;
}

    .cf-success.active {
        display: block;
    }

.cf-success-icon {
    width: 64px;
    height: 64px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #16a34a;
    margin: 0 auto 16px;
}

.cf-success h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.cf-success p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* ── 响应式 ── */
@media (max-width: 900px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .cf-row {
        grid-template-columns: 1fr;
    }

    .contact-form-card {
        padding: 20px;
    }
}