.contact-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: clamp(150px, 25vw, 350px);
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
}

.banner-content h1 {
    color: #ffffff;
    margin: 0;
    font-size: clamp(20px, 4vw, 40px);
    position: relative;
}

/* ==========================================
   联系方式卡片
   ========================================== */
.contact-cards-section {
    background: #F7F7F7;
    padding: 80px 0;
}

.contact-cards-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: var(--frame-safe-x);
    padding-right: var(--frame-safe-x);
    box-sizing: border-box;
}

.contact-grid {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.custom-contact-card {
    flex: 1;
    min-height: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 60px 25px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.icon-positioner {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-positioner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 110px;
    height: 110px;
    border: 1px solid #F08200;
    border-radius: 50%;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.custom-contact-card:hover .icon-positioner::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.animating-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F08200;
    border-radius: 20px;
    transform: rotate(45deg) scale(1);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-radius 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.custom-contact-card:hover .animating-bg {
    transform: rotate(45deg) scale(1.15);
    border-radius: 50%;
}

.static-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-contact-card .icon-positioner .static-icon svg {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    color: #ffffff;
    display: block;
}

.card-content {
    margin-top: 10px;
}

.card-title {
    color: #F08200;
    font-size: var(--fs-card);
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
}

.card-text {
    color: #888;
    line-height: 1.7;
    margin: 0 0 6px;
}

.card-text a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.card-text a:hover {
    color: #F08200;
}

/* ==========================================
   响应式：移动端（统一断点 991.98px）
   ========================================== */
@media screen and (max-width: 991.98px) {
    .contact-grid {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .custom-contact-card {
        width: 100%;
        max-width: 450px;
    }

    .form-row.two-col {
        flex-direction: column;
    }
}

/* ==========================================
   留言表单区域
   ========================================== */
.contact-form-section {
    background: #ffffff;
    padding: 80px 0 60px;
}

.contact-form-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: var(--frame-safe-x);
    padding-right: var(--frame-safe-x);
    box-sizing: border-box;
}

.form-header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: var(--fs-title);
    font-weight: 700;
    color: #333;
    margin: 0 0 18px;
}

.form-subtitle {
    font-size: 15px;
    color: #999;
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto;
}

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

.form-row {
    display: flex;
    gap: 16px;
}

.form-row.two-col .form-field {
    flex: 1;
}

.form-field {
    position: relative;
    flex: 1;
}

.form-field input,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 44px 14px 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #444;
    background: #fff;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

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

.form-field input:focus,
.form-field textarea:focus {
    border-color: #F08200;
}

.form-field input.is-error,
.form-field textarea.is-error {
    border-color: #e53935;
    background: #fff8f8;
}

.form-field .field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #bbb;
    pointer-events: none;
}

.textarea-field textarea {
    height: 130px;
    resize: vertical;
    padding-top: 14px;
}

.textarea-field .field-icon.textarea-icon {
    top: 16px;
    transform: none;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: #F08200;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.form-submit:hover {
    background: #d97500;
}

.form-footer-note {
    margin-top: 40px;
    text-align: center;
}

.form-footer-note p {
    font-size: 18px;
    color: #333;
    margin: 0 0 6px;
}

.form-footer-note a {
    color: #F08200;
    font-size: 18px;
    text-decoration: none;
}

/* ==========================================
   地图区域
   ========================================== */
.full-width-map {
    width: 100%;
    height: 450px;
    overflow: hidden;
    display: block;
    line-height: 0;
}

.full-width-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
