/* 联系我们页面样式 */

/* 基础设置 */
:root {
    --accent-color: #A5282C;  /* 主题红色 */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f8f8;
    --bg-dark: #000000;
    --section-padding: 80px 5%;
}

body {
    font-family: 'PingFang SC', 'Alibaba PuHuiTi 3.0', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 优化文本选择样式 */
::selection {
    background-color: var(--accent-color);
    color: #fff;
}

/* 横幅区域样式 */
.hero-banner {
    position: relative;
    height: 300px;
    background-image: url('../images/hero_background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.banner-content p {
    font-size: 16px;
    margin: 0 auto;
    letter-spacing: 1px;
    line-height: 1.6;
    text-transform: uppercase;
}

/* 联系信息部分 */
.contact-info-section {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.section-desc {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    color: #666;
    line-height: 1.7;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 30px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* 地图区域 */
.map-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

/* 百度地图容器 */
#company-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
}

/* 地图控制按钮 */
.map-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #eee;
}

.map-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: white;
    border-radius: 50%;
    margin: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.map-btn i {
    font-size: 16px;
    color: var(--accent-color);
}

.map-button {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

.map-button:hover {
    background-color: #8a2023;
}

/* 地图信息窗口样式 */
.map-info {
    padding: 5px;
    max-width: 300px;
}

.map-info h3 {
    margin-top: 5px;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 18px;
}

.map-info p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

/* 联系表单部分 */
.contact-form-section {
    padding: 60px 0;
    background-color: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.required {
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-checkbox label {
    font-size: 14px;
    color: #666;
}

.form-checkbox a {
    color: var(--accent-color);
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.submit-button {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #8a2023;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hero-banner {
        height: 250px;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        height: 220px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #company-map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 200px;
    }
    
    .banner-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .banner-content p {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-desc {
        font-size: 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    #company-map {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-banner {
        height: 180px;
    }
    
    .banner-content h1 {
        font-size: 20px;
    }
    
    #company-map {
        height: 300px;
    }
    
    .map-actions {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .map-button {
        padding: 10px 20px;
        font-size: 14px;
    }
} 