/* 联系我们页面样式 */

/* 通用部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.separator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.separator span {
    height: 3px;
    width: 80px;
    background-color: #14c45d;
    display: block;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* 联系信息卡片部分 */
.contact-info {
    padding: 5rem 2rem;
    background: white;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.info-card {
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    text-align: center;
    flex: 1;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: #14c45d;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.info-card a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: #14c45d;
}

/* 地图部分 */
.location-map {
    padding: 0;
    background: #f8f9fa;
}

.map-container {
    width: 100%;
}

#map {
    width: 100%;
    height: 500px;
}

/* 联系表单部分 */
.contact-form {
    padding: 5rem 2rem;
    background: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #14c45d;
    box-shadow: 0 0 0 3px rgba(20, 196, 93, 0.1);
    outline: none;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.submit-button {
    background: #14c45d;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background: #0e9c31;
    transform: translateY(-3px);
}

/* 工作时间部分 */
.working-hours {
    padding: 5rem 2rem;
    background: linear-gradient(rgba(20, 196, 93, 0.9), rgba(20, 196, 93, 0.9)), url('../static/images/hours-bg.jpg') no-repeat center center/cover;
    color: white;
}

.hours-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hours-content h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.day {
    font-weight: 500;
    font-size: 1.1rem;
}

.time {
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .info-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .info-card {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    #map {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hours-content h2 {
        font-size: 1.8rem;
    }
    
    #map {
        height: 300px;
    }
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    .hero {
        height: 40vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .contact-info {
        padding: 3rem 1rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 3rem 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        width: 100%;
    }
    
    .submit-button {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 35vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .contact-info {
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .info-card {
        padding: 1.2rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .info-card p {
        font-size: 0.95rem;
    }
}

/* 触摸优化 */
@media (max-width: 768px) {
    .info-card,
    .submit-button {
        min-height: 44px;
    }
    
    input, select, textarea {
        font-size: 16px;
        padding: 0.8rem;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}