@charset "utf-8";
/*
 * 联系我们页面样式 / Contact Us Page Styles
 * 深圳市爱租网络有限公司 2016-2026 / Shenzhen iZu Network Co., Ltd. 2016-2026
 */

/* ===== Banner 区域 ===== */
.contact-banner {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}
.contact-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,22,52,.85) 0%, rgba(11,60,120,.7) 50%, rgba(6,22,52,.9) 100%);
    z-index: 1;
    pointer-events: none;
}
.contact-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    /* background: linear-gradient(to top, #f7f9fc, transparent); */
    z-index: 2;
    pointer-events: none;
}
.contact-banner-inner {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.contact-banner-inner h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: none;
}
.contact-banner-inner p {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 主体区域 ===== */
.contact-section {
    padding: 60px 0 80px;
    background: #f7f8fa;
}
.contact-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* ===== 左侧：留言表单 ===== */
.contact-form-wrap {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: var(--ent-radius);
    border: 1px solid var(--ent-line);
    padding: 40px;
}
.contact-form-title {
    font-size: 26px;
    color: #1b2431;
    margin: 0 0 30px;
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ent-primary);
    display: inline-block;
}
.contact-fi {
    margin-bottom: 22px;
}
.contact-fi label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}
.contact-fi .red {
    color: #e4393c;
    margin-right: 4px;
}
.contact-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--ent-line);
    border-radius: var(--ent-radius);
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .25s;
    background: #fafbfc;
}
.contact-input:focus {
    border-color: var(--ent-primary);
    background: #fff;
}
.contact-select {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    cursor: pointer;
    color: #333;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* 产品选择下拉框 */
.product-select-wrap {
    position: relative;
}
.product-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--ent-line);
    border-radius: var(--ent-radius);
    padding: 12px 14px;
    font-size: 14px;
    cursor: pointer;
    background: #fafbfc;
    transition: border-color .25s;
    user-select: none;
}
.product-select-trigger:hover {
    border-color: var(--ent-primary);
}
.product-select-trigger.selected {
    border-color: var(--ent-primary);
    background: #fff;
}
.product-select-trigger .product-select-placeholder {
    color: #999;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-select-trigger.selected .product-select-placeholder {
    color: #333;
}
.product-select-trigger i {
    color: #bbb;
    font-size: 12px;
    margin-left: 8px;
    transition: transform .2s;
}
.product-select-trigger.selected i {
    color: var(--ent-primary);
}
.product-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--ent-line);
    border-radius: var(--ent-radius);
    max-height: 360px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.product-select-search {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    background: #fafbfc;
}
.product-select-search i {
    color: #bbb;
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
}
.product-select-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
    color: #333;
}
.product-select-search input::placeholder {
    color: #bbb;
}
.product-select-list {
    max-height: 280px;
    overflow-y: auto;
}
.product-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid #f0f0f0;
}
.product-select-item:last-child {
    border-bottom: none;
}
.product-select-item:hover {
    background: #f0f5ff;
}
.product-select-item .product-select-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f0f0f0;
}
.product-select-item span {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}
.product-select-no {
    padding: 24px 14px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
.product-select-loading {
    padding: 24px 14px;
    text-align: center;
    color: #bbb;
    font-size: 18px;
}

/* 多选 - 已选标签 */
.product-select-tags {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
    align-items: center;
}
.product-tag {
    display: inline-flex;
    align-items: center;
    background: #e8f0fe;
    color: #1a5bbf;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    gap: 4px;
    max-width: 100%;
    line-height: 1.6;
}
.product-tag .product-tag-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
}
.product-tag .product-tag-remove {
    font-size: 12px;
    cursor: pointer;
    opacity: .5;
    transition: opacity .2s;
}
.product-tag .product-tag-remove:hover {
    opacity: 1;
}
.product-select-item.selected {
    background: #e8f0fe;
    position: relative;
    padding-right: 36px;
}
.product-select-item.selected::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ent-primary);
    font-size: 13px;
}

.contact-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--ent-line);
    border-radius: var(--ent-radius);
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .25s;
    background: #fafbfc;
    resize: vertical;
    min-height: 130px;
    font-family: inherit;
}
.contact-textarea:focus {
    border-color: var(--ent-primary);
    background: #fff;
}
.contact-captcha-input {
    display: inline-block;
    width: 160px;
    margin-right: 12px;
}
.contact-fi .captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-fi .captcha_img {
    cursor: pointer;
    height: 40px;
    border-radius: 4px;
}

/* 人机验证码（数学问答） */
.captcha-math-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.captcha-math-question {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 40px;
    padding: 0 16px;
    background: var(--ent-primary-light, #f0f4ff);
    border: 1px solid var(--ent-primary, #1a73e8);
    border-radius: var(--ent-radius, 4px);
    font-size: 16px;
    font-weight: 600;
    color: var(--ent-primary, #1a73e8);
    white-space: nowrap;
}
.contact-captcha-input {
    width: 150px !important;
}
.captcha-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d2d2d2;
    border-radius: var(--ent-radius, 4px);
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    transition: all .2s;
    flex-shrink: 0;
}
.captcha-refresh-btn:hover {
    border-color: var(--ent-primary, #1a73e8);
    color: var(--ent-primary, #1a73e8);
    background: var(--ent-primary-light, #f0f4ff);
}
.contact-fi .form_prompt {
    float: none;
    color: #e4393c;
    font-size: 12px;
    min-height: 18px;
    margin-top: 4px;
}
.contact-btn {
    background: var(--ent-primary);
    color: #fff;
    border: none;
    border-radius: var(--ent-radius);
    padding: 14px 50px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background .25s, transform .15s;
    display: inline-block;
}
.contact-btn:hover {
    background: var(--ent-primary-dark, #0a4790);
    transform: translateY(-1px);
}
.contact-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}
.contact-form-msg {
    padding: 12px 16px;
    border-radius: var(--ent-radius);
    font-size: 14px;
    margin-top: 16px;
}
.contact-form-msg.success {
    background: #eaf7ee;
    color: #1e7e34;
    border: 1px solid #b8e0c5;
}
.contact-form-msg.loading {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}
.contact-form-msg.error {
    background: #fef0ef;
    color: #c4392e;
    border: 1px solid #f5c6cb;
}

/* ===== 右侧：联系信息 + 侧边栏 ===== */
.contact-info-wrap {
    flex: 0 0 380px;
    max-width: 380px;
}
.contact-info-card {
    background: #fff;
    border-radius: var(--ent-radius);
    border: 1px solid var(--ent-line);
    padding: 30px;
    margin-bottom: 24px;
}
.contact-info-title {
    font-size: 20px;
    color: #1b2431;
    margin: 0 0 8px;
    font-weight: 700;
}
.contact-info-desc {
    color: var(--ent-sub);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 24px;
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--ent-line);
}
.contact-info-item:last-child {
    border-bottom: none;
}
.contact-info-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    background: var(--ent-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ent-primary);
    font-size: 16px;
}
.contact-info-text {
    flex: 1;
    min-width: 0;
}
.contact-info-label {
    display: block;
    font-size: 12px;
    color: var(--ent-sub);
    margin-bottom: 2px;
}
.contact-info-value {
    display: block;
    font-size: 14px;
    color: #222;
    font-weight: 500;
    word-break: break-all;
}
.contact-info-meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ent-line);
    font-size: 12px;
    color: var(--ent-sub);
    line-height: 1.8;
}

/* ===== 侧边栏小部件 ===== */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-side-widget {
    background: #fff;
    border-radius: var(--ent-radius);
    border: 1px solid var(--ent-line);
    overflow: hidden;
}
.contact-side-widget h4 {
    margin: 0;
    padding: 14px 20px;
    font-size: 15px;
    color: #1b2431;
    background: var(--ent-bg);
    border-bottom: 1px solid var(--ent-line);
    font-weight: 600;
}
.contact-side-body {
    padding: 18px 20px;
    text-align: center;
}
.contact-side-body p {
    font-size: 13px;
    color: var(--ent-sub);
    margin: 0 0 12px;
}
.contact-side-btn {
    display: inline-block;
    background: var(--ent-primary);
    color: #fff;
    padding: 8px 24px;
    border-radius: var(--ent-radius);
    font-size: 14px;
    text-decoration: none;
    transition: background .25s;
}
.contact-side-btn:hover {
    background: var(--ent-primary-dark, #0a4790);
}
.contact-side-btn--phone {
    background: #e87d2f;
    font-size: 18px;
    font-weight: 700;
    padding: 10px 20px;
}
.contact-side-btn--phone:hover {
    background: #d06d20;
}
.contact-qr-placeholder {
    width: 120px;
    height: 120px;
    border: 2px dashed var(--ent-line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #ccc;
    font-size: 40px;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .contact-banner {
        min-height: 260px;
    }
    .contact-banner-inner h1 {
        font-size: 32px;
    }
    .contact-banner-inner p {
        font-size: 15px;
    }
}
@media (max-width: 992px) {
    .contact-info-wrap {
        flex: 0 0 320px;
        max-width: 320px;
    }
    .contact-banner {
        min-height: 220px;
    }
}
@media (max-width: 768px) {
    .contact-banner {
        min-height: 200px;
    }
    .contact-banner-inner h1 {
        font-size: 26px;
    }
    .contact-banner-inner p {
        font-size: 14px;
    }

    .contact-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .contact-info-wrap {
        flex: none;
        max-width: 100%;
    }
    .contact-form-wrap {
        padding: 24px;
    }
    .contact-form-title {
        font-size: 22px;
    }
    .contact-section-title {
        font-size: 22px;
    }
    .contact-section .ent-wrap,
    .contact-branch-section .ent-wrap,
    .contact-map-section .ent-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media (max-width: 600px) {
    .contact-banner {
        min-height: 160px;
    }
    .contact-banner-inner h1 {
        font-size: 22px;
        letter-spacing: 1px;
    }
    .contact-banner-inner p {
        font-size: 13px;
    }

}

@media (max-width: 400px) {
    .contact-banner {
        min-height: 130px;
    }
    .contact-banner-inner h1 {
        font-size: 18px;
        letter-spacing: 1px;
    }
    .contact-banner-inner p {
        font-size: 12px;
    }
}
@media (max-width: 480px) {

    .contact-section {
        padding: 20px 0 40px;
    }
    /* ent-wrap 内边距在 ≤480px 收紧 */
    .contact-section .ent-wrap,
    .contact-branch-section .ent-wrap,
    .contact-map-section .ent-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }
    .contact-form-wrap {
        padding: 16px 14px;
    }
    .contact-form-title {
        font-size: 17px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    .contact-fi {
        margin-bottom: 14px;
    }
    .contact-fi label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .contact-input,
    .contact-select,
    .product-select-trigger {
        padding: 10px 10px;
        font-size: 14px;
    }
    .contact-textarea {
        padding: 10px;
        min-height: 90px;
        font-size: 14px;
    }
    .contact-btn {
        padding: 13px 36px;
        font-size: 15px;
        width: 100%;
        text-align: center;
    }
    .contact-captcha-input {
        width: 120px !important;
    }
    .contact-fi .captcha-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .contact-info-card {
        padding: 18px 14px;
    }
    .contact-info-title {
        font-size: 16px;
    }
    .contact-info-item {
        padding: 10px 0;
        gap: 10px;
    }
    .contact-info-icon {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .contact-side-widget h4 {
        padding: 11px 14px;
        font-size: 13px;
    }
    .contact-side-body {
        padding: 12px 14px;
    }
    .contact-qr-placeholder {
        width: 90px;
        height: 90px;
        font-size: 30px;
    }
    .product-select-item {
        padding: 8px 10px;
        gap: 6px;
    }
    .product-select-item .product-select-thumb {
        width: 28px;
        height: 28px;
    }
    .product-select-item span {
        font-size: 12px;
    }
    .product-select-dropdown {
        max-height: 260px;
    }
    .product-select-list {
        max-height: 180px;
    }
    .product-tag {
        font-size: 11px;
        padding: 1px 5px;
    }
    .product-tag .product-tag-text {
        max-width: 60px;
    }
    .product-select-trigger {
        min-height: 38px;
    }
}

/* 小屏手机 ≤400px 进一步优化 */
@media (max-width: 400px) {
    .contact-form-wrap {
        padding: 12px 10px;
    }
    .contact-fi {
        margin-bottom: 12px;
    }
    .contact-captcha-input {
        width: 100% !important;
    }
    .contact-fi .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-fi .captcha_img {
        align-self: flex-start;
    }
    .product-select-item .product-select-thumb {
        width: 24px;
        height: 24px;
    }
    .product-select-dropdown {
        max-height: 220px;
    }
    .product-select-list {
        max-height: 150px;
    }
    .product-tag .product-tag-text {
        max-width: 50px;
    }
    .contact-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ===== 分公司地址卡片 ===== */
.contact-branch-section {
    padding: 60px 0;
    background: #fff;
}
.contact-section-title {
    font-size: 26px;
    color: #1b2431;
    margin: 0 0 36px;
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ent-primary);
    display: inline-block;
}
.contact-branch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.contact-branch-card {
    background: #f7f8fa;
    border-radius: var(--ent-radius);
    border: 1px solid var(--ent-line);
    padding: 28px 24px;
    transition: transform .25s, box-shadow .25s;
}
.contact-branch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.branch-name {
    font-size: 18px;
    font-weight: 700;
    color: #1b2431;
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--ent-primary);
    line-height: 1.4;
}
.branch-info {
    list-style: none;
    margin: 0;
    padding: 0;
}
.branch-info li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.branch-info li i {
    flex: 0 0 16px;
    font-size: 14px;
    color: var(--ent-primary);
    margin-top: 3px;
}
.branch-info li span {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

/* ===== 地图区域 ===== */
.contact-map-section {
    padding: 0 0 60px;
    background: #fff;
}
.contact-map-section .ent-wrap {
    padding-bottom: 24px;
}
.contact-map {
    width: 100%;
    height: 420px;
    border-radius: var(--ent-radius);
    border: 1px solid var(--ent-line);
    overflow: hidden;
}

@media (max-width: 992px) {
    .contact-branch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-map {
        height: 360px;
    }
}
@media (max-width: 768px) {
    .contact-branch-section {
        padding: 40px 0;
    }
    .contact-branch-grid {
        grid-template-columns: 1fr;
    }
    .contact-section-title {
        font-size: 22px;
    }
    .contact-map-section {
        padding: 0 0 40px;
    }
    .contact-map {
        height: 300px;
    }
}
@media (max-width: 480px) {
    .contact-branch-section {
        padding: 24px 0;
    }
    .contact-branch-card {
        padding: 20px 16px;
    }
    .branch-name {
        font-size: 16px;
        padding-left: 10px;
        margin-bottom: 12px;
    }
    .branch-info li {
        font-size: 13px;
        padding: 4px 0;
    }
    .contact-section-title {
        font-size: 18px;
        margin-bottom: 24px;
        padding-bottom: 12px;
    }
    .contact-map {
        height: 220px;
    }
}
