/* 联系我页面主体样式 */
.contact-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

/* 侧边信息卡片 */
.contact-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    position: sticky;
    top: 3rem;
    height: fit-content;
}

.card-header {
    margin-bottom: 2rem;
}

.card-header h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.card-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
}

.card-header p {
    color: #777;
    line-height: 1.7;
}

/* 联系方式列表 */
.contact-list {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e3f2fd;
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: #555;
    line-height: 1.6;
}

.contact-details a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 社交链接 */
.social-contact {
    margin-top: 2rem;
}

.social-contact h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #f8f9fa;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
}

.social-links a i {
    color: #3498db;
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: white;
}

/* 表单区域 */
.contact-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #f0f0f0;
    position: relative;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #3498db;
}

/* 表单样式 */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

/* 表单验证提示 */
.error-message {
    position: absolute;
    bottom: -1.2rem;
    left: 0;
    font-size: 0.85rem;
    color: #e74c3c;
    display: none;
}

.form-group.error .form-input, .form-group.error .form-textarea {
    border-color: #e74c3c;
}

.form-group.error .error-message {
    display: block;
}

/* 提交按钮 */
.submit-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 提交成功提示 */
.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    display: none;
    border: 1px solid #c8e6c9;
}

/* 位置信息 */
.location-card {
    margin-top: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.location-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.map-container {
    width: 100%;
    /*height: 300px;*/
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 页脚（与原页面一致） */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .contact-info-card, .contact-form-card, .location-card {
        padding: 1.5rem;
    }

    .form-title, .card-header h2 {
        font-size: 1.4rem;
    }

    .social-links {
        flex-direction: column;
    }

    .map-container {
        height: 250px;
    }
}