/* 页面标题 */
.page-title {
    text-align: center;
    padding: 60px 0;
    background-color: #f5f5f5;
    margin-bottom: 40px;
}

.page-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 18px;
    color: #666;
}

/* 通用样式 */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* 联系信息区域 */
.contact-info {
    background-color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.info-item {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon.location {
    background-image: url('../images/location-icon.png');
}

.icon.phone {
    background-image: url('../images/phone-icon.png');
}

.icon.email {
    background-image: url('../images/email-icon.png');
}

.icon.time {
    background-image: url('../images/time-icon.png');
}

.info-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

/* 联系表单区域 */
.contact-form {
    background-color: #f5f5f5;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-container h3 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #c41230;
    outline: none;
}

.form-container button {
    width: 100%;
    padding: 12px;
    background-color: #c41230;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-container button:hover {
    background-color: #a00f28;
}

/* 地图区域 */
.map-section {
    background-color: #fff;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}

/* 社交媒体区域 */
.social-section {
    background-color: #f5f5f5;
    text-align: center;
}

.social-section h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.social-item {
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.social-item:hover {
    transform: translateY(-5px);
}

.social-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.social-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.social-item p {
    color: #666;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-item,
.form-container,
.social-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* 延迟动画 */
.info-item:nth-child(2) {
    animation-delay: 0.2s;
}

.info-item:nth-child(3) {
    animation-delay: 0.4s;
}

.info-item:nth-child(4) {
    animation-delay: 0.6s;
}

.social-item:nth-child(2) {
    animation-delay: 0.2s;
}

.social-item:nth-child(3) {
    animation-delay: 0.4s;
}

/* 表单验证样式 */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 5px;
}

/* 加载状态 */
.form-container button.loading {
    background-color: #999;
    cursor: not-allowed;
}

/* 成功提示 */
.success-message {
    text-align: center;
    color: #28a745;
    margin-top: 20px;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
} 