/* ================================
   联系页面 v3.0 - 全新设计
   完全独立命名空间，避免冲突
   ================================ */

/* 基础容器 */
.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}
.section {
    padding: 76px 0;
}
.section-head {
    margin-bottom: 48px;
}
.section-head.center {
    text-align: center;
}
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3E6AE1;
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 800;
    color: #171A20;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .container { width: calc(100% - 32px); }
}

/* ====== Hero ====== */
.contact-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0B0F19 0%, #171A20 40%, #1a1f2e 70%, #162044 100%);
    isolation: isolate;
}
.contact-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.contact-hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: contactFloat 8s ease-in-out infinite;
}
.contact-hero__shape--1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #3E6AE1, transparent 70%);
    top: -100px; right: -80px;
    animation-delay: 0s;
}
.contact-hero__shape--2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #5a85f0, transparent 70%);
    bottom: -80px; left: -60px;
    animation-delay: -3s;
    animation-duration: 10s;
}
.contact-hero__shape--3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #7ba3f7, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
    animation-duration: 12s;
}
@keyframes contactFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}
.contact-hero__wrap {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 100px 24px 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.contact-hero__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #8eaaf0;
    margin-bottom: 16px;
}
.contact-hero__title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}
.contact-hero__desc {
    font-size: 17px;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 28px;
}
.contact-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(62,106,225,.15);
    border: 1px solid rgba(62,106,225,.25);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #a8c4fa;
}
.contact-badge i { color: #3E6AE1; font-size: 12px; }

/* Hero 右侧数据 */
.contact-hero__stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.contact-stat {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    transition: all .3s ease;
}
.contact-stat:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(62,106,225,.3);
    transform: translateX(6px);
}
.contact-stat__num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 6px;
}
.contact-stat__plus,
.contact-stat__unit {
    font-size: 22px;
    font-weight: 600;
    color: #3E6AE1;
    margin-left: 2px;
}
.contact-stat__label {
    font-size: 14px;
    color: rgba(255,255,255,.5);
}

/* ====== 表单区域 ====== */
.contact-form-section { background: #fff; }
.contact-form-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.contact-form-info__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3E6AE1;
    margin-bottom: 12px;
}
.contact-form-info__title {
    font-size: 32px;
    font-weight: 800;
    color: #171A20;
    line-height: 1.2;
    margin: 0 0 14px;
}
.contact-form-info__desc {
    font-size: 15px;
    color: #5C5E62;
    line-height: 1.7;
    margin-bottom: 28px;
}
.contact-form-promises {
    list-style: none;
    padding: 0; margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-form-promises li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #393C41;
    font-weight: 500;
}
.contact-form-promises li i {
    color: #3E6AE1;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* 表单面板 */
.contact-form-panel {
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.contact-form-panel__title {
    font-size: 20px;
    font-weight: 700;
    color: #171A20;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f4ff;
}
.contact-form-v3__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.contact-form-v3__group {
    margin-bottom: 16px;
}
.contact-form-v3__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #393C41;
    margin-bottom: 8px;
}
.contact-form-v3__label .required {
    color: #e74c3c;
    margin-left: 2px;
}
.contact-form-v3__input,
.contact-form-v3__select,
.contact-form-v3__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e4e6eb;
    border-radius: 10px;
    font-size: 14px;
    color: #171A20;
    background: #fafbfc;
    transition: all .2s ease;
    outline: none;
    box-sizing: border-box;
}
.contact-form-v3__input:focus,
.contact-form-v3__select:focus,
.contact-form-v3__textarea:focus {
    border-color: #3E6AE1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(62,106,225,.08);
}
.contact-form-v3__textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}
.contact-form-v3__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.contact-form-v3__submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #3E6AE1, #5a85f0);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(62,106,225,.3);
    transition: all .25s ease;
    margin-top: 8px;
}
.contact-form-v3__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(62,106,225,.4);
}
.contact-form-v3__submit.is-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 16px rgba(39,174,96,.3);
}
.contact-form-v3__submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}
.contact-form-v3__privacy {
    text-align: center;
    font-size: 12px;
    color: #8E8E8E;
    margin: 14px 0 0;
}
.contact-form-v3__privacy i {
    color: #3E6AE1;
    margin-right: 4px;
}

/* ====== 联系信息卡片 ====== */
.contact-form-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e4e6eb;
}
.contact-form-meta__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: #f8f9fb;
    border: 1px solid #eceef1;
}
.contact-form-meta__item i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-form-meta__item:not(.contact-form-meta__item--emergency) i {
    background: #eaf0ff;
    color: #3E6AE1;
}
.contact-form-meta__item--emergency i {
    background: #fdeaea;
    color: #e74c3c;
}
.contact-form-meta__item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contact-form-meta__item div strong {
    font-size: 14px;
    font-weight: 700;
    color: #171A20;
}
.contact-form-meta__item div span {
    font-size: 13px;
    color: #5C5E62;
}
.contact-form-meta__item div a {
    font-size: 14px;
    font-weight: 700;
    color: #e74c3c;
    text-decoration: none;
    margin-top: 4px;
}
.contact-form-meta__item div a:hover {
    text-decoration: underline;
}

/* ====== FAQ ====== */
.contact-faq { background: #fff; }
.contact-faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-faq__item {
    border: 1px solid #eceef1;
    border-radius: 14px;
    overflow: hidden;
    transition: all .25s ease;
}
.contact-faq__item:hover {
    border-color: #d4e0f7;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.contact-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #171A20;
    text-align: left;
    transition: background .2s;
}
.contact-faq__question:hover { background: #f8f9fb; }
.contact-faq__icon {
    color: #3E6AE1;
    font-size: 14px;
    transition: transform .3s ease;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f4ff;
}
.contact-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.contact-faq__answer p {
    padding: 0 22px 18px;
    margin: 0;
    font-size: 14px;
    color: #5C5E62;
    line-height: 1.75;
}
.contact-faq__item.is-open {
    border-color: #d4e0f7;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.contact-faq__item.is-open .contact-faq__question {
    background: #f8f9fb;
}
.contact-faq__item.is-open .contact-faq__icon {
    transform: rotate(180deg);
    background: #3E6AE1;
    color: #fff;
}

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
    .contact-hero__wrap {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 80px 24px 60px;
    }
    .contact-hero__stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .contact-stat { flex: 1; min-width: 160px; }
    .contact-form-wrap { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    .contact-hero { min-height: auto; }
    .contact-hero__wrap {
        padding: 60px 16px 40px;
        gap: 28px;
    }
    .contact-hero__title { font-size: 32px; }
    .contact-hero__stats { flex-direction: column; }
    .contact-stat { padding: 18px 20px; }
    .contact-stat__num { font-size: 28px; }
    .contact-form-panel { padding: 24px; }
    .contact-form-v3__row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-meta__item { padding: 14px; }
}
