/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

/* Contact Hero Section */
.contact-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 100%);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.4;
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.contact-hero-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Cards Section */
.contact-cards-section {
    padding: 60px 0 80px;
    background: #f8fafc;
    margin-top: 140px;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 每行显示2个卡片 */
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0EA5E9 0%, #14B8A6 100%);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.18);
    border-color: #0EA5E9;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #dbeafe 0%, #ccfbf1 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.12);
}

.contact-card:hover .contact-card-icon {
    background: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 100%);
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.contact-card-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #0EA5E9;
    transition: color 0.3s;
}

.contact-card:hover .contact-card-icon .dashicons {
    color: white;
}

.contact-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.contact-card-detail {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 12px;
}

.contact-card-detail:last-child {
    margin-bottom: 0;
}

.contact-card-detail strong {
    color: #1e293b;
    font-weight: 600;
}

.contact-card-detail a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-card-detail a:hover {
    color: #1e40af;
}

.contact-time {
    display: inline-block;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    margin-top: 18px;
    background: linear-gradient(135deg, #14B8A6 0%, #0EA5E9 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.contact-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
    color: white;
}

/* Address Section */
.contact-address-section {
    padding: 80px 0;
    background: white;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.address-card {
    background: white;
    padding: 45px 40px;
    border-radius: 28px;
    transition: all 0.3s;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.address-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.15);
    border-color: #0EA5E9;
}

.address-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
}

.address-card:hover .address-icon {
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.35);
}

.address-icon .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: white;
}

.address-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.address-detail {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
}

.address-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: #0EA5E9;
    border: 2px solid #0EA5E9;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.address-link:hover {
    background: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 100%);
    color: white;
    border-color: #0EA5E9;
    transform: translateX(5px);
}

.address-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.contact-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 55px 50px;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

/* Form Response Messages */
#contact-form-response {
    margin-bottom: 30px;
}

.message-success,
.message-error {
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
    animation: slideInDown 0.4s ease-out;
}

.message-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.message-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.message-success .dashicons,
.message-error .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.message-success .dashicons {
    color: #10b981;
}

.message-error .dashicons {
    color: #ef4444;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-form-header .section-title {
    font-size: 38px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.contact-form-header .section-subtitle {
    font-size: 17px;
    color: #64748b;
}

.modern-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.modern-contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.modern-contact-form label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
    font-size: 15px;
}

.modern-contact-form input,
.modern-contact-form textarea {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: #f8fafc;
}

.modern-contact-form input:focus,
.modern-contact-form textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.modern-contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.modern-contact-form .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    width: 100%;
}

.modern-contact-form .btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
}

.modern-contact-form .btn-submit:active {
    transform: translateY(-2px);
}

.modern-contact-form .btn-submit .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .address-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 70px 0 50px;
        margin-top: 60px;
    }
    
    .contact-hero-title {
        font-size: 36px;
    }
    
    .contact-hero-subtitle {
        font-size: 17px;
    }
    
    .contact-cards-section {
        padding: 40px 0 50px;
        margin-top: 100px;
    }
    
    .contact-address-section,
    .contact-form-section {
        padding: 50px 0;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 35px 25px;
    }
    
    .contact-card-icon {
        width: 80px;
        height: 80px;
    }
    
    .contact-card-icon .dashicons {
        font-size: 36px;
        width: 36px;
        height: 36px;
    }
    
    .contact-card-title {
        font-size: 22px;
    }
    
    .address-grid {
        gap: 25px;
    }
    
    .address-card {
        padding: 35px 28px;
    }
    
    .address-icon {
        width: 70px;
        height: 70px;
    }
    
    .address-icon .dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }
    
    .address-title {
        font-size: 24px;
    }
    
    .contact-form-wrapper {
        padding: 40px 28px;
    }
    
    .modern-contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-header .section-title {
        font-size: 30px;
    }
    
    .modern-contact-form .btn-submit {
        padding: 16px 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 60px 0 45px;
    }
    
    .contact-hero-title {
        font-size: 30px;
    }
    
    .contact-hero-subtitle {
        font-size: 16px;
    }
    
    .contact-cards-section,
    .contact-address-section,
    .contact-form-section {
        padding: 40px 0;
    }
    
    .contact-card {
        padding: 30px 22px;
    }
    
    .contact-card-icon {
        width: 70px;
        height: 70px;
    }
    
    .contact-card-icon .dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }
    
    .contact-card-title {
        font-size: 20px;
    }
    
    .address-card {
        padding: 30px 22px;
    }
    
    .address-icon {
        width: 65px;
        height: 65px;
    }
    
    .address-icon .dashicons {
        font-size: 30px;
        width: 30px;
        height: 30px;
    }
    
    .address-title {
        font-size: 22px;
    }
    
    .contact-form-wrapper {
        padding: 35px 22px;
    }
    
    .contact-form-header .section-title {
        font-size: 26px;
    }
    
    .modern-contact-form .btn-submit {
        padding: 15px 30px;
        font-size: 15px;
    }
}

