/**
 * Contact Page Styles
 * 联系页面专用样式
 */

/* Contact Page Layout */
.contact-page {
    margin-top: 80px;
}

/* Hero Section - 保持不变 */
.contact-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero .wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Animation Nodes */
.contact-nodes {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.contact-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #2563eb;
    border-radius: 50%;
    animation: contactPulse 2s infinite;
}

.contact-node.contact-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.contact-node.contact-2 {
    top: 60%;
    right: 20%;
    animation-delay: 0.5s;
}

.contact-node.contact-3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 1s;
}

.contact-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    animation: contactFlow 3s infinite;
}

.contact-conn-1 {
    top: 30%;
    left: 25%;
    width: 60px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.contact-conn-2 {
    top: 70%;
    right: 25%;
    width: 80px;
    transform: rotate(-45deg);
    animation-delay: 1s;
}

@keyframes contactPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

@keyframes contactFlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 0 1rem;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Contact Card Icons */
.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
    position: relative;
}

.wechat-card .contact-icon {
    background: linear-gradient(135deg, #07c160, #00d4aa);
}

.qr-card .contact-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.phone-card .contact-icon {
    background: linear-gradient(135deg, #059669, #10b981);
}

.email-card .contact-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.location-card .contact-icon {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

/* Contact Content */
.contact-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2563eb;
}

.contact-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.contact-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* QR Code Container */
.qr-code-container {
    margin-top: 1rem;
    text-align: center;
}

.qr-view-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.qr-view-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.qr-view-btn:active {
    transform: translateY(0);
}

.qr-view-btn i {
    font-size: 1rem;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-top: 3rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-hero-title {
        font-size: 2.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.125rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .qr-view-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
}

/* Large Screen Optimizations */
@media (min-width: 1600px) {
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .contact-hero .wrapper {
        gap: 4rem;
    }
    
    .contact-hero-title {
        font-size: 4rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1920px) {
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
    
    .contact-hero-title {
        font-size: 4.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 1.75rem;
    }
}

/* Animation Enhancements */
.contact-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }
.contact-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Copy to Clipboard Functionality */
.copy-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.copy-btn.copied {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}
