/* 联系页面特定样式 */

/* 联系头部 */
.contact-header {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.5rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* 联系信息 */
.contact-info {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 2rem;
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 16px;
}

.contact-card-description {
    color: #475569;
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-details {
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.875rem;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-details i {
    color: #3b82f6;
    width: 20px;
}

/* 联系表单 */
.contact-form-section {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0f172a;
}

.form-group label::after {
    content: " *";
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #0f172a;
    background: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.form-agreement {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.form-agreement label {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.form-agreement a {
    color: #3b82f6;
    text-decoration: none;
}

.form-agreement a:hover {
    text-decoration: underline;
}

/* 常见问题快速链接 */
.faq-quicklinks {
    padding: 80px 0;
    background: white;
}

.faq-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.faq-link:hover {
    background: #e0f2fe;
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.faq-link i {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.faq-link-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.faq-link-content p {
    font-size: 0.875rem;
    color: #64748b;
}

/* 社交媒体 */
.social-media {
    padding: 80px 0;
    background: #f8fafc;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-card.wechat:hover {
    border-color: #07c160;
}

.social-card.weibo:hover {
    border-color: #e6162d;
}

.social-card.qq:hover {
    border-color: #12b7f5;
}

.social-card.github:hover {
    border-color: #333;
}

.social-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.social-card.wechat .social-icon {
    background: linear-gradient(135deg, #07c160, #05a049);
}

.social-card.weibo .social-icon {
    background: linear-gradient(135deg, #e6162d, #c01426);
}

.social-card.qq .social-icon {
    background: linear-gradient(135deg, #12b7f5, #0f9bd8);
}

.social-card.github .social-icon {
    background: linear-gradient(135deg, #333, #222);
}

.social-content {
    flex: 1;
}

.social-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.social-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 4px;
}

.social-tip {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 500;
}

/* 地图 */
.map-section {
    padding: 80px 0;
    background: white;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.map-info {
    padding: 40px;
}

.map-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
}

.map-details {
    margin-bottom: 32px;
}

.map-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #475569;
}

.map-details i {
    color: #3b82f6;
    width: 20px;
}

.map-hours {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.map-hours h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.map-hours h4 i {
    color: #3b82f6;
}

.map-hours p {
    color: #64748b;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.map-hours p:last-child {
    margin-bottom: 0;
}

.map-placeholder {
    position: relative;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-placeholder:hover .map-overlay {
    opacity: 1;
}

.map-overlay i {
    font-size: 3rem;
    margin-bottom: 12px;
}

.map-overlay p {
    font-size: 1.125rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .map-container {
        grid-template-columns: 1fr;
    }

    .map-info {
        order: 2;
    }

    .map-placeholder {
        order: 1;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 2.5rem;
    }

    .contact-subtitle {
        font-size: 1.25rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-footer {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .form-agreement {
        justify-content: center;
    }

    .faq-links {
        grid-template-columns: 1fr;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-header {
        padding: 120px 0 60px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 1.125rem;
    }

    .contact-card {
        padding: 24px;
    }

    .contact-form {
        padding: 24px;
    }

    .map-info {
        padding: 24px;
    }
}