/**
 * HSI Group - Contact Us Page Styles
 * 联系我们页面样式 - 应用设计系统
 */

/* ========================================
   Hero Section
======================================== */
.head-img {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--color-primary-900, #0F172A) 0%, #1a2744 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.head-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
}

.head-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.head-img .content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white, #fff);
    padding: 0 24px;
}

.head-img .content h2 {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.head-img .content p {
    font-size: var(--text-lg, 1.125rem);
    color: var(--color-gray-400, #94A3B8);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.head-img .content .knowBtn {
    padding: 14px 32px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: var(--text-base, 1rem);
    font-weight: 500;
    color: var(--color-white, #fff);
    background: linear-gradient(135deg, var(--color-brand-500, #2563EB) 0%, #0284C7 100%);
    border: none;
    border-radius: var(--radius-lg, 12px);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.head-img .content .knowBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Main Content Section
======================================== */
.main {
    background-color: var(--color-gray-50, #F8FAFC);
}

.main .contact-us {
    padding: 80px 24px;
}

.main .contact-us h3 {
    text-align: center;
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-size: clamp(1.75rem, 4vw, var(--text-4xl, 2.25rem));
    font-weight: 700;
    color: var(--color-gray-900, #0F172A);
    margin-bottom: 60px;
    line-height: 1.2;
}

/* ========================================
   Headquarters Section
======================================== */
.headquarters {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-bottom: 60px;
}

.headquarters > li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    background: var(--color-white, #fff);
    border-radius: var(--radius-xl, 16px);
    padding: 40px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
}

.headquarters > li:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

/* ========================================
   Headquarters Left
======================================== */
.headquarters-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 250px;
}

.coordinates {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-brand-500, #2563EB);
}

.coordinates img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.coordinates span {
    font-family: var(--font-heading, 'Sora', sans-serif);
    font-size: var(--text-lg, 1.125rem);
    font-weight: 600;
    color: var(--color-gray-900, #0F172A);
}

.headquarters-left > div:last-child {
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.headquarters-left > div:last-child img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.headquarters > li:hover .headquarters-left > div:last-child img {
    transform: scale(1.02);
}

/* ========================================
   Particulars (Contact Details)
======================================== */
.particulars {
    border-left: 3px solid var(--color-brand-200, #93C5FD);
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.particulars li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.particulars li:hover {
    padding-left: 8px;
}

.particulars li img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    margin-top: 2px;
    flex-shrink: 0;
}

.particulars span {
    font-size: var(--text-base, 1rem);
    color: var(--color-gray-600, #475569);
    line-height: 1.6;
}

.particulars span a {
    color: var(--color-brand-500, #2563EB);
    transition: color 0.2s ease;
}

.particulars span a:hover {
    color: var(--color-brand-600, #1D4ED8);
    text-decoration: underline;
}

/* ========================================
   Map Section
======================================== */
.map {
    margin-top: 40px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
}

.map img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 992px) {
    .headquarters > li {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .particulars {
        border-left: none;
        border-top: 2px solid var(--color-gray-200, #E2E8F0);
        padding-left: 0;
        padding-top: 24px;
    }
    
    .headquarters-left {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .head-img {
        height: 350px;
    }
    
    .main .contact-us {
        padding: 60px 16px;
    }
    
    .headquarters > li {
        padding: 24px;
    }
    
    .coordinates span {
        font-size: var(--text-base, 1rem);
    }
}
