.contact-page {
    min-height: 100vh;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    padding-bottom: 4rem;
}

.contact-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 联系卡片 */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
    word-break: break-all;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s;
}

.contact-link:hover {
    gap: 0.6rem;
}

.contact-note {
    font-size: 0.85rem;
    color: #999;
    display: block;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.available {
    background: #e8f5e9;
    color: #4caf50;
}

/* 社交媒体 */
.social-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.social-section h2 {
    margin-bottom: 2rem;
    color: #333;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    padding: 1rem;
    border-radius: 10px;
}

.social-item:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    color: #667eea;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s;
}

.social-icon.github { background: #24292e; color: white; }
.social-icon.linkedin { background: #0077b5; color: white; }
.social-icon.twitter { background: #000; color: white; }
.social-icon.wechat { background: #07c160; color: white; }

.social-item:hover .social-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 联系表单区域 */
.contact-form-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-container {
    padding: 3rem;
}

.form-container h2 {
    margin-bottom: 2rem;
    color: #333;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.send-icon {
    transition: transform 0.3s;
}

.submit-btn:hover .send-icon {
    transform: translateX(5px);
}

/* 位置可视化 */
.location-visual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.map-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
}

.map-pin {
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.map-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.map-rings::before,
.map-rings::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-rings::before {
    width: 150px;
    height: 150px;
    animation: ripple 2s infinite 0.5s;
}

.map-rings::after {
    width: 200px;
    height: 200px;
    animation: ripple 2s infinite 1s;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.location-text {
    font-size: 1.2rem;
    opacity: 0.9;
    text-align: center;
}

/* 响应式 */
@media (max-width: 768px) {
    .contact-form-section {
        grid-template-columns: 1fr;
    }
    
    .location-visual {
        min-height: 200px;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
}