/* 联系我们详情页样式 */

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* 联系信息卡片 */
.contact-cards {
    padding: 40px 0 80px 0;
    background: #f8f9fa;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card-desc {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-details {
    text-align: left;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* 联系项目样式 */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

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

.contact-item i {
    color: #3498db;
    font-size: 1.2rem;
    margin-top: 3px;
    min-width: 20px;
}

.contact-item strong {
    display: block;
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.contact-item p {
    color: #555;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-details p {
    margin-bottom: 10px;
    color: #555;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.card-btn:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-2px);
}

/* 联系按钮和二维码容器 */
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.qr-code-small {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}

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

.qr-code-small p {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0;
}

.qr-code {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
}

.qr-code img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.qr-code p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 微信二维码容器 */
.qr-code-container {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.qr-code-img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
}

.qr-code-text {
    font-size: 0.9rem;
    color: #07c160; /* 微信绿色 */
    font-weight: 500;
    margin: 0;
}

/* 联系表单和地图 */
.contact-main {
    padding: 0 0 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-form-section h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
}

.form-intro {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 20px;
}

.quantity-input {
    position: relative;
}

.quantity-input .unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-upload input[type="file"] {
    display: none;
}

.upload-btn {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #555;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.file-name {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.file-hint {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.privacy-link,
.terms-link {
    color: #3498db;
    text-decoration: none;
}

.privacy-link:hover,
.terms-link:hover {
    text-decoration: underline;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

/* 侧边栏样式 */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.map-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.map-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#map {
    height: 300px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.map-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.map-info p {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-info p:last-child {
    margin-bottom: 0;
}

.map-info i {
    color: #3498db;
    width: 20px;
}

.business-hours {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.business-hours h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.hours-grid {
    display: grid;
    gap: 15px;
}

.day {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.day:hover {
    background: #e9ecef;
}

.day span:first-child {
    color: #2c3e50;
    font-weight: 500;
}

.day span:last-child {
    color: #3498db;
    font-weight: 600;
}

.emergency-contact {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.emergency-contact h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.emergency-contact p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.emergency-phone {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.emergency-phone i {
    font-size: 2rem;
}

.emergency-phone strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.emergency-phone p {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

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

.faq-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

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

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.faq-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-content p {
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #2980b9;
}

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

@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .contact-cards,
    .contact-main,
    .faq-section {
        padding: 50px 0;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}