/* ===== 联系我们页面专用样式 ===== */

/* 静态 Banner */
.page-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 250px;
    background-image: url('/assets/home/images/contact-banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 142, 79, 0.8) 0%, rgba(0, 142, 79, 0.4) 100%);
}

.page-banner .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-banner h1 span {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* 面包屑导航 */
.breadcrumb-wrapper {
    max-width: 1400px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    background: #f8fafc;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    border: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #008e4f;
}

.breadcrumb i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.breadcrumb .current {
    color: #008e4f;
    font-weight: 500;
}

/* ===== 联系我们页面主体 ===== */
.contact-page {
    max-width: 1400px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
}

/* 介绍文字 */
.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-intro p {
    color: #64748b;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 一行两列布局 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* ===== 左侧联系方式卡片 ===== */
.contact-info {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.info-header {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.info-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.info-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.info-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #008e4f;
    border-radius: 2px;
}

/* 联系方式项目 */
.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 142, 79, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #008e4f;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.info-value {
    color: #334155;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

.info-value a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
}

.info-value a:hover {
    color: #008e4f;
}

/* 社交媒体 */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.social-link {
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: #008e4f;
    border-color: #008e4f;
    color: white;
    transform: translateY(-3px);
}

/* ===== 右侧询盘表单 ===== */
.contact-form {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.form-header {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.form-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #008e4f;
    border-radius: 2px;
}

/* 表单组 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: #008e4f;
    margin-right: 0.3rem;
}

.form-group label span {
    color: #be0600;
    margin-left: 0.2rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #008e4f;
    box-shadow: 0 0 0 3px rgba(0, 142, 79, 0.1);
    background: white;
}

.form-control.error {
    border-color: #be0600;
    background: #fef2f2;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* 错误提示 */
.error-message {
    color: #be0600;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    background: #008e4f;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #006f3d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.3);
}

.btn-submit i {
    font-size: 1.1rem;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 提交状态 */
.form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.form-status.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-status i {
    margin-right: 0.3rem;
}

/* 地图区域（可选） */
.map-section {
    margin-top: 3rem;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.map-section iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .page-banner {
        height: 180px;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .contact-intro h2 {
        font-size: 1.6rem;
    }

    .contact-info, .contact-form {
        padding: 1.5rem;
    }

    .info-item {
        margin-bottom: 1.5rem;
    }

    .map-section iframe {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .breadcrumb-wrapper {
        padding: 0 1rem;
    }

    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .contact-page {
        padding: 0 1rem;
    }

    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-links {
        justify-content: center;
    }
}