/* 联系页面专用样式 */

/* 页面头部样式 */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 60px 60px;
}

.contact-main-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-main-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* 联系信息区域 */
.contact-info-section {
    padding: 80px 0;
    background: #f8fafc;
}

/* 联系分类样式 */
.contact-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 20px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.category-title i {
    color: #667eea;
    font-size: 2rem;
}

/* 联系人卡片样式 */
.contact-person-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.contact-person-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.person-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.person-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 2rem;
}

.person-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.contact-details {
    space-y: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 24px;
    height: 24px;
    color: #667eea;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

.contact-value:hover {
    color: #667eea;
}

/* 地址卡片样式 */
.address-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.address-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.address-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.address-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.address-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.address-text {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.address-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 快速联系区域 */
.quick-contact-section {
    margin-top: 40px;
}

.quick-contact-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 50px 50px;
}

.quick-contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.quick-contact-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.quick-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.quick-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

.quick-btn i {
    font-size: 1.1rem;
}

/* 返回顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

#back-to-top::before {
    content: '↑';
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 0;
    }
    
    .contact-main-title {
        font-size: 2.5rem;
    }
    
    .contact-main-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-info-section {
        padding: 50px 0;
    }
    
    .category-title {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-person-card,
    .address-card {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .quick-contact-card {
        padding: 30px 20px;
    }
    
    .quick-contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    #back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .contact-person-card,
    .address-card {
        padding: 20px;
    }
    
    .person-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .address-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-person-card,
.address-card,
.quick-contact-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 悬停效果类 */
.hover-effect {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2) !important;
}

/* 地图区域样式 */
.map-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 20px;
}

.map-tabs {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
}

.map-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.map-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.map-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.map-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.map-content {
    display: none;
    padding: 0;
}

.map-content.active {
    display: block;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.3s ease;
}

.map-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #667eea;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.map-wrapper.loaded::before {
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.map-info {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

.map-address {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.map-address i {
    color: #667eea;
    margin-right: 10px;
    font-size: 18px;
}

.map-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
    text-decoration: none;
}

.map-btn i {
    margin-right: 8px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .map-tabs {
        flex-direction: column;
    }
    
    .map-tab {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .map-tab:last-child {
        border-bottom: none;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .map-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .map-info {
        padding: 15px;
    }
    
    .map-address {
        font-size: 14px;
    }
    
    .map-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}