/* 联系我们页面样式 */
.contact-section {
    background-color: #121212;
    border-bottom: 1px solid #333;
}

/* 背景图片区域样式 */
.contact-banner {
    position: relative;
    background-image: url(../images/contact-us/contact-us.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-overlay {
    position: relative;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(18, 18, 18, 0.1) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 50px;
    width: 100%;
}

.banner-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    margin-bottom: 60px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 0;
    line-height: 1.6;
    color: #f0f0f0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

.contact-header p {
    font-size: 18px;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 联系内容容器 */
.contact-banner .banner-overlay .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 联系内容 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* 联系信息样式 */
.contact-info-contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: #444;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.info-card:hover .info-icon {
    background-color: #333;
    transform: scale(1.1);
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
}

.info-content p {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.5;
    margin: 0;
}

/* 联系表单样式 */
.contact-form {
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 16px;
    color: #f0f0f0;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #555;
    background-color: #333;
    box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

/* 社交媒体样式 */
.social-section {
    text-align: center;
}

.social-section h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 600;
}

.social-section .social-icons {
    justify-content: center;
    gap: 16px;
}

.social-section .social-icons a {
    width: 64px;
    height: 64px;
    font-size: 28px;
    position: relative;
}

.social-section .wechat-qr img {
    width: 120px;
    height: 120px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 60px;
    height: 60px;
    background-color: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #f0f0f0;
    text-decoration: none;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.social-link:focus,
.social-link:hover,
.social-link:active {
    background-color: #333;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    outline: 2px solid #555;
    outline-offset: 2px;
}

/* 响应式设计 - 平板和小屏幕 */
@media (max-width: 1200px) {
    .contact-content {
        gap: 40px;
    }
    
    .banner-content h1 {
        font-size: 40px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    /* 联系内容容器 */
    .contact-banner .banner-overlay .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    /* 联系内容 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
        width: 80%;
        margin: 0 auto;
    }

    /* 联系横幅 */
    .contact-banner {
        padding-bottom: 40px;
    }
    
    .banner-overlay {
        padding-top: 60px;
        padding-bottom: 30px;
    }
    
    .banner-content {
        max-width: 90%;
        padding: 0 10px;
        margin-top: 50px;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }

    /* 信息卡片 */
    .info-card {
        padding: 20px;
    }

    /* 联系表单 */
    .contact-form {
        padding: 30px;
        max-width: 100%;
        width: 100%;
    }

    /* 社交媒体链接 */
    .social-links {
        flex-wrap: wrap;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    /* 联系内容容器 */
    .contact-banner .banner-overlay .container {
        padding: 0 5px;
        max-width: 100%;
    }
    
    /* 联系横幅 */
    .contact-banner {
        padding-bottom: 30px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }

    /* 信息卡片 */
    .info-card {
        padding: 15px;
        gap: 15px;
    }

    /* 信息图标 */
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* 信息内容 */
    .info-content h3 {
        font-size: 16px;
    }

    .info-content p {
        font-size: 14px;
    }

    /* 联系表单 */
    .contact-form {
        padding: 20px;
        max-width: 100%;
        width: 100%;
    }

    .contact-form h3 {
        font-size: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* 社交媒体链接 */
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* 表单提交成功动画 */
@keyframes successAnimation {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message {
    background-color: rgba(0, 128, 0, 0.1);
    border: 1px solid rgba(0, 128, 0, 0.3);
    color: #4CAF50;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
    animation: successAnimation 0.5s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
