/**
 * Contact Page Styles
 *
 * @package MiniApp_Cloud
 * @version 1.0.0
 */

/* Contact Section */
.contact-section {
    padding-top: 8rem;
    padding-bottom: 6rem;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.contact-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-section .section-title {
    margin-top: 1rem;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Contact Card */
.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

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

/* Contact Icon */
.contact-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

/* WeChat ID Card */
.contact-card:first-child .contact-icon {
    background: linear-gradient(to bottom right, #4f46e5, #2563eb);
}

.contact-card:first-child h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.contact-card:first-child p:first-of-type {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.contact-card:first-child p:last-child {
    font-size: 0.875rem;
    color: #64748b;
}

/* Email Card */
.contact-card:nth-child(2) .contact-icon {
    background: linear-gradient(to bottom right, #3b82f6, #06b6d4);
}

.contact-card:nth-child(2) h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.contact-card:nth-child(2) p:first-of-type {
    font-size: 1rem;
    font-weight: 500;
    color: #3b82f6;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.contact-card:nth-child(2) p:last-child {
    font-size: 0.875rem;
    color: #64748b;
}

/* Address Card */
.contact-card:nth-child(3) .contact-icon {
    background: linear-gradient(to bottom right, #10b981, #14b8a6);
}

.contact-card:nth-child(3) h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.contact-card:nth-child(3) p:first-of-type {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.contact-card:nth-child(3) p:last-child {
    font-size: 0.875rem;
    color: #64748b;
}

/* WeChat Mini Program Card */
.contact-card:nth-child(4) .contact-icon {
    background: linear-gradient(to bottom right, #22c55e, #16a34a);
}

.contact-card:nth-child(4) h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.contact-card:nth-child(4) p:first-of-type {
    font-size: 1.25rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 0.25rem;
}

.contact-card:nth-child(4) p:last-child {
    font-size: 0.875rem;
    color: #64748b;
}

/* QR Section */
.qr-section {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid #e2e8f0;
}

.qr-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3rem;
}

/* QR Grid */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    justify-items: center;
}

/* QR Item */
.qr-item {
    text-align: center;
}

/* QR Image Wrapper */
.qr-image-wrapper {
    width: 240px;
    height: 240px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    border-radius: 1.5rem;
}

/* Mini Program QR */
.qr-item:first-child .qr-image-wrapper {
    background: linear-gradient(to bottom right, #eef2ff, #dbeafe);
    border: 2px solid #c7d2fe;
}

.qr-item:first-child h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.qr-item:first-child > p {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.qr-item:first-child .qr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Customer Service QR */
.qr-item:last-child .qr-image-wrapper {
    background: linear-gradient(to bottom right, #fef3c7, #fde68a);
    border: 2px solid #fcd34d;
}

.qr-item:last-child h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.qr-item:last-child > p {
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.qr-item:last-child .qr-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fef3c7;
    color: #d97706;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* QR Image */
.qr-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}

/* QR Placeholder */
.qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.75rem;
}

.qr-placeholder-content {
    text-align: center;
    color: #94a3b8;
}

.qr-placeholder-content svg {
    margin: 0 auto 0.5rem;
}

.qr-placeholder-content p {
    font-size: 0.875rem;
}

/* Contact Tips */
.contact-tips {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(to right, #eef2ff, #e0e7ff);
    border-radius: 1rem;
    border-left: 4px solid #4f46e5;
}

.contact-tips-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-tips svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-tips h4 {
    font-weight: 600;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
}

.contact-tips p {
    color: #4338ca;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    .contact-section .section-header {
        margin-bottom: 2rem;
    }

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

    .contact-card {
        padding: 1.5rem;
    }

    .qr-section {
        padding: 1.5rem;
    }

    .qr-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .qr-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .contact-tips {
        padding: 1rem;
    }
}
