/* 专门用于contact页面的样式 */

/* 联系我们英雄区域 */
.contact-hero {
    background: linear-gradient(135deg, #0a2239 0%, #1d1d1f 100%);
    color: white;
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero .container {
    max-width: 1024px;
    margin: 0 auto;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.contact-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.6;
}

/* 联系页面整体样式 */
.contact-section {
    padding: 60px 20px;
    background-color: white;
}

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 联系信息和表单的网格布局 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info {
    padding-right: 20px;
}

.contact-form {
    padding-left: 20px;
    background-color: #f5f5f7;
    padding: 30px;
    border-radius: 16px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: #86868b;
    margin-bottom: 30px;
}

/* 联系方式列表 */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    gap: 15px;
}

.method-icon {
    background-color: #333333;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.method-info {
    flex-grow: 1;
}

.method-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.method-info p {
    margin: 5px 0;
    color: #515154;
    font-size: 15px;
}

.method-link {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s;
}

.method-link:hover {
    color: #1d1d1f;
    text-decoration: underline;
}

/* 表单样式 */
#contactForm {
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #333333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1em 1em;
    padding-right: 36px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn {
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #333333;
    color: white;
}

.btn-primary:hover {
    background-color: #1d1d1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 分支机构区域 */
.location-map {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.branch-card {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.branch-icon {
    font-size: 32px;
    color: #333333;
    margin-bottom: 15px;
}

.branch-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 10px 0;
}

.branch-card p {
    font-size: 14px;
    color: #515154;
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-info,
    .contact-form {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 15px 40px;
    }
    
    .contact-hero-title {
        font-size: 32px;
    }
    
    .contact-section {
        padding: 40px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 70px 10px 30px;
    }
    
    .contact-hero-title {
        font-size: 26px;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
    }
}