/* 联系方式页面样式 */

/* 横幅 */
.banner {
    background: linear-gradient(135deg, rgba(0, 120, 255, 0.9) 0%, rgba(0, 86, 179, 0.9) 100%),
                url('../images/contact-banner-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 160px 0 100px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* 背景装饰元素 */
.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    z-index: 1;
}

/* 调整遮罩层透明度，确保背景图片可见 */
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,120,255,0.4) 0%, rgba(0,86,179,0.4) 100%);
    z-index: 2;
}

.banner .container {
    position: relative;
    z-index: 3;
}

/* 背景动画 */
@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.banner h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 联系内容 */
.contact-content {
    padding: 60px 0;
    background-color: #fff;
}

.contact-info {
    margin-bottom: 0;
}

.contact-info h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-item {
    background-color: #f0f2f5;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.info-item p {
    font-size: 16px;
    color: #666;
}

.contact-form {
    background-color: #f0f2f5;
    padding: 40px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Noto Sans SC', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0078FF;
    box-shadow: 0 0 0 2px rgba(0, 120, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px 30px;
    background-color: #0078FF;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner h2 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .contact-info h3,
    .contact-form h3 {
        font-size: 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px;
    }
}