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

/* 办公地址 */
.office-section {
    padding: 80px 0 50px;
    background: #fff;
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.office-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.office-card.headquarters {
    border-top-color: #a42227;
}

.office-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #002FA7, #a42227);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 47, 167, 0.2);
}

.office-card:hover:before {
    transform: scaleX(1);
}

.office-badge {
    display: inline-block;
    background: #a42227;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.office-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, #002FA7 0%, #1e40af 100%);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s;
}

.office-card:hover .office-icon {
    transform: rotateY(360deg);
}

.office-card h3 {
    font-size: 24px;
    color: #002FA7;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.office-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #a42227;
}

.office-addr {
    color: #333;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.office-contact {
    text-align: left;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
}

.office-contact p {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 工作时间 */
.hours-section {
    padding: 50px 0 80px;
    background: #fff;
}

.hours-card {
    max-width: 500px;
    margin: 0 auto;
    background: #f7fafc;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-left: 3px solid #002FA7;
}

.hours-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 47, 167, 0.15);
}

.hours-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, #002FA7 0%, #1e40af 100%);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s;
}

.hours-card:hover .hours-icon {
    transform: rotateY(360deg);
}

.hours-card h3 {
    font-size: 24px;
    color: #002FA7;
    margin-bottom: 15px;
}

.hours-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

/* 联系表单 */
.contact-form-section {
    padding: 80px 0;
    background: #f7fafc;
    position: relative;
    overflow: hidden;
}

.contact-form-section:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 47, 167, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 3px solid #002FA7;
}

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

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

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

.required {
    color: #a42227;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #002FA7;
    box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.form-note {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 3px solid #a42227;
}

.form-note p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.form-note strong {
    color: #002FA7;
}

/* 地图 */
.map-section {
    padding: 80px 0;
    background: #fff;
}

.map-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.map-tab {
    padding: 10px 25px;
    border: 2px solid #002FA7;
    background: transparent;
    color: #002FA7;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 500;
}

.map-tab:hover,
.map-tab.active {
    background: #002FA7;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 47, 167, 0.3);
}

.map-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .office-grid {
        grid-template-columns: 1fr;
    }
    
    .map-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .map-tab {
        width: 200px;
    }
}
