/* ===== 联系我们 — 欧美简约风格 ===== */

/* 本页 .form-input / .form-select 使用 0.9375rem；供 pc-search-select 触发条与之同高 */
.page-custom-design {
    --pc-ss-form-font-size: 0.9375rem;
}

.contact-main {
    min-height: calc(100vh - 200px);
    padding: 56px 0 80px;
    background: #f8f8f8;
}

.contact-container {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ===== 页面标题区（与表单卡片分离，更透气） ===== */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 16px 0;
}

.contact-title {
    font-size: 1.875rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.contact-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 表单卡片：白底、轻边框、无阴影 ===== */
.contact-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    padding: 36px 40px 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    gap: 20px;
}

.form-row-two {
    grid-template-columns: 1fr 1fr;
    justify-items: stretch;
    align-items: start;
}

.form-row-two > .form-group {
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #444;
    letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

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

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #ccc;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* 身份单选：简约横排 */
.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.form-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #555;
    font-weight: 400;
}

.form-radio {
    width: 16px;
    height: 16px;
    accent-color: #1a1a1a;
    cursor: pointer;
}

/* 文件上传：低调样式 */
.form-file {
    font-size: 0.875rem;
    color: #555;
    padding: 8px 0;
}

.form-file::file-selector-button {
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.form-file::file-selector-button:hover {
    background: #eee;
    border-color: #ccc;
}

/* 提交区 */
.form-actions {
    margin-top: 8px;
    padding-top: 4px;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #fff;
    background: #1a1a1a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit:hover {
    background: #333;
}

.btn-submit:active {
    background: #000;
}

/* ===== Custom Design 专属布局：全屏平铺 80%+，欧美风格 ===== */
.page-custom-design .contact-main--custom-design {
    min-height: 80vh;
    padding: 0;
    margin: 0;
    background: #f5f5f4;
    display: flex;
    align-items: stretch;
}

.page-custom-design .contact-container--split {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 80vh;
    padding: 0;
}

/* 左侧视觉区：深色背景 */
.contact-hero {
    background: linear-gradient(165deg, #1a1a1a 0%, #2d2d2d 50%, #252525 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
}

.contact-hero-inner {
    max-width: 380px;
}

.contact-hero-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.contact-hero-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 20px 0;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.contact-hero-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.contact-hero-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-hero-features li {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
}

.contact-hero-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* 右侧表单区 */
.page-custom-design .contact-form-wrapper--split {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 56px 64px 64px;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.page-custom-design .contact-form-wrapper--split .contact-header {
    text-align: left;
    margin-bottom: 36px;
}

.page-custom-design .contact-form-wrapper--split .contact-title {
    font-size: 1.75rem;
    font-weight: 500;
}

.page-custom-design .contact-form-wrapper--split .contact-subtitle {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.page-custom-design .contact-form-wrapper--split .contact-card {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.page-custom-design .contact-form-wrapper--split .form-input,
.page-custom-design .contact-form-wrapper--split .form-select,
.page-custom-design .contact-form-wrapper--split .form-textarea {
    border-radius: 8px;
    padding: 12px 16px;
}

.page-custom-design .contact-form-wrapper--split .btn-submit {
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: 8px;
}

/* Custom Design 响应式：小屏改为上下布局 */
@media (max-width: 1024px) {
    .page-custom-design .contact-container--split {
        grid-template-columns: 1fr;
    }

    .contact-hero {
        padding: 40px 32px;
        min-height: 280px;
    }

    .contact-hero-title {
        font-size: 2rem;
    }

    .page-custom-design .contact-form-wrapper--split {
        padding: 40px 32px 48px;
    }
}

@media (max-width: 768px) {
    .page-custom-design .contact-main--custom-design {
        min-height: 0;
    }

    .page-custom-design .contact-container--split {
        min-height: 0;
    }

    .contact-hero {
        min-height: 220px;
        padding: 32px 24px;
    }

    .contact-hero-title {
        font-size: 1.75rem;
    }

    .page-custom-design .contact-form-wrapper--split {
        padding: 32px 24px 40px;
    }

    .page-custom-design .contact-form-wrapper--split .contact-title {
        font-size: 1.5rem;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .contact-main {
        padding: 40px 0 56px;
    }

    .contact-header {
        margin-bottom: 32px;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-subtitle {
        font-size: 0.875rem;
    }

    .contact-card {
        padding: 28px 24px 32px;
    }

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

    .contact-form {
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .contact-main {
        padding: 32px 0 48px;
    }

    .contact-container {
        padding: 0 16px;
    }

    .contact-badge {
        font-size: 0.625rem;
        letter-spacing: 0.15em;
    }

    .contact-title {
        font-size: 1.375rem;
    }

    .contact-card {
        padding: 24px 20px 28px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 14px;
    }

    .btn-submit {
        padding: 15px;
    }
}
