/* 联系我们页面样式 */

/* 主内容区域 */
.contact-main {
    padding: 40px 0;
    background: #f8fafc;
}

.contact-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
}

/* 单列布局（无留言表单） */
.contact-layout-single {
    max-width: 100%;
    margin: 0 auto;
}

.contact-layout-single .contact-info-section {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.contact-layout-single .contact-info-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
    text-align: center;
}

/* 联系信息区域 */
.contact-info-section {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.contact-info-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 30px 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #f1f5f9;
    flex-direction: row;
    align-items: flex-start;
}

.contact-item:last-of-type {
    border-bottom: none;
}

/* 单列布局的联系卡片 */
.contact-layout-single .contact-info-section {
    display: block;
}

.contact-layout-single .contact-items-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .contact-layout-single .contact-items-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-layout-single .contact-items-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.contact-layout-single .contact-item {
    background: #fff;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    border-bottom: none;
    min-height: 140px;
}

.contact-layout-single .contact-item .contact-details {
    flex: 1;
}

.contact-layout-single .contact-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.contact-value {
    font-size: 17px;
    font-weight: 600;
    color: #f97316;
    margin: 0 0 4px 0;
}

.contact-time {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* 工作时间 */
.working-hours {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.contact-layout-single .working-hours {
    background: #fff;
    padding: 35px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-top: 0;
    border-top: 1px solid #e2e8f0;
}

.working-hours h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px 0;
}

.contact-layout-single .working-hours h3 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 25px;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.hours-item.inactive {
    opacity: 0.5;
}

.hours-item .day {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.hours-item .time {
    font-size: 14px;
    color: #f97316;
    font-weight: 600;
}

/* 留言表单区域 */
.message-form-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.message-form-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.form-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 30px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

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

select.form-control {
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: #f97316;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* 地图区域 */
.map-section {
    background: #fff;
}

.map-container {
    width: 100%;
    max-width: 100%;
}

/* 常见问题 */
.faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.faq-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 15px 0;
}

.faq-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

.faq-card a {
    color: #f97316;
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-main {
        padding: 40px 0;
    }
    
    .contact-info-section,
    .message-form-section {
        padding: 25px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

