/* Contact Us Page Specific Styles */

/* Banner Section */
.contact-banner {
    position: relative;
    height: 50vh;
    overflow: hidden;
}

.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Message Section */
.message-section {
    margin: 40px 0;
}

.message-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.message-header {
    background: #146fc8;
    color: white;
    padding: 20px;
    text-align: center;
}

.message-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.message-form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #146fc8;
}

.form-submit {
    text-align: center;
    margin-top: 20px;
}

.submit-btn {
    background: #146fc8;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #0f5ba3;
}

/* Comments Section */
.comments-section {
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.comment-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-content {
    width: 100%;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.comment-text {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.comment-date {
    color: #999;
    font-size: 12px;
}

/* Contact Cards Section */
.contact-cards-section {
    margin: 40px 0;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.qr-code {
    padding: 20px;
    text-align: center;
}

.qr-code img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.qr-img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.qr-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.qr-desc {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.qr-phone {
    color: #146fc8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.qr-email {
    color: #666;
    font-size: 11px;
    margin-bottom: 3px;
}

.qr-website {
    color: #666;
    font-size: 11px;
    margin-bottom: 3px;
}

.name-display {
    width: 100px;
    height: 100px;
    border-radius: 5px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #146fc8, #0f5ba3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.consult-btn {
    background: #146fc8;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 15px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    height: 35px;
    width: 100px;
    display: inline-block;
    line-height: 15px;
    text-align: center;
    text-decoration: none;
}

.consult-btn:hover {
    background: #0f5ba3;
}

/* Locations Section */
.locations-section {
    margin: 40px 0;
}

.location-item {
    display: flex;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.location-name {
    background: #f8f9fa;
    padding: 35px 25px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #eee;
}

.city-cn {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.city-en {
    font-size: 14px;
    color: #666;
    font-style: italic;
    font-weight: 500;
}

.location-details {
    padding: 35px 30px;
    flex: 1;
}

.location-details div {
    margin-bottom: 12px;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.location-details div:last-child {
    margin-bottom: 0;
}

.address {
    color: #333 !important;
    font-weight: 600;
    font-size: 16px !important;
}

/* Map Section */
.map-section {
    margin: 40px 0;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.location-info {
    padding: 20px 0;
}

.location-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    text-align: center;
}

.location-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-bottom: 30px;
}

.contact-details {
    margin-top: 20px;
}

.contact-item {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
}

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

.contact-item strong {
    color: #333;
    display: inline-block;
    min-width: 50px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.map-actions {
    margin-top: 15px;
}

.map-actions .btn {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.map-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.map-actions .btn i {
    font-size: 12px;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .location-info {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .location-title {
        font-size: 2rem;
    }
    
    .map-actions .col-md-4 {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .map-section {
        padding: 20px 15px;
    }
    
    .location-title {
        font-size: 1.8rem;
    }
    
    .contact-item {
        font-size: 13px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .location-item {
        flex-direction: column;
    }
    
    .location-name {
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 576px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-logo {
        height: 40px;
    }
    
    .message-form {
        padding: 20px;
    }
}