/* ============================================================
   CONTACT.CSS - Contact Page with 2x2 Grid Cards
   Mobile First + No Form + Static Info + Hover Effects
   ============================================================ */

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --accent: #f4a261;
    --white: #ffffff;
    --light: #f8f9fa;
    --light-blue: #e8f4f8;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --whatsapp: #25D366;
    --email-blue: #4285f4;
    --phone-orange: #ff9800;
    --wechat-green: #07c160;
    --gradient-warm: linear-gradient(135deg, #fff5f5 0%, #fef3e2 100%);
    --gradient-cool: linear-gradient(135deg, #e8f4f8 0%, #f0f4ff 100%);
    --gradient-primary: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', -apple-system, sans-serif; line-height: 1.6; color: var(--text-dark); background: var(--light); overflow-x: hidden; }
html, body { max-width: 100vw; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ==================== HEADER ==================== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--white); box-shadow: var(--shadow-sm); }
.header-container { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; max-width: 1280px; margin: 0 auto; }
.logo { flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
.nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 48px; height: 48px; background: var(--primary); border: none; border-radius: var(--radius-sm); cursor: pointer; z-index: 1001; box-shadow: var(--shadow-sm); }
.hamburger { width: 22px; height: 3px; background: var(--white); position: relative; border-radius: 2px; transition: var(--transition); }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 22px; height: 3px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle.active { background: var(--secondary); }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }
.nav-menu { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--white); box-shadow: var(--shadow-lg); padding: 80px var(--space-md) var(--space-lg); transition: right 0.4s ease; overflow-y: auto; }
.nav-menu.active { right: 0; }
.nav-list { display: flex; flex-direction: column; gap: var(--space-xs); }
.nav-link { display: block; padding: var(--space-sm) var(--space-md); font-size: 1rem; font-weight: 500; color: var(--text-dark); border-radius: var(--radius-sm); }
.nav-link:hover, .nav-link.active { background: var(--light-blue); color: var(--primary); }
.nav-link.nav-cta { background: var(--gradient-primary); color: var(--white); text-align: center; margin-top: var(--space-sm); }

/* ==================== CONTACT HERO ==================== */
.contact-hero {
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    background: var(--secondary);
    text-align: center;
}
.contact-hero h1 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: var(--space-xs);
}
.contact-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

/* ==================== CONTACT CARDS：紧凑2×2网格 ==================== */
.contact-cards {
    padding: var(--space-xl) 0;
    margin-top: -var(--space-lg);
    position: relative;
    z-index: 10;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 不同联系方式的颜色主题 */
.contact-card.whatsapp { border-left-color: var(--whatsapp); }
.contact-card.whatsapp:hover { background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%); }
.contact-card.whatsapp .card-icon { background: var(--whatsapp); }

.contact-card.email { border-left-color: var(--email-blue); }
.contact-card.email:hover { background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%); }
.contact-card.email .card-icon { background: var(--email-blue); }

.contact-card.phone { border-left-color: var(--phone-orange); }
.contact-card.phone:hover { background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%); }
.contact-card.phone .card-icon { background: var(--phone-orange); }

.contact-card.wechat { border-left-color: var(--wechat-green); }
.contact-card.wechat:hover { background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%); }
.contact-card.wechat .card-icon { background: var(--wechat-green); }

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.contact-card:hover .card-icon { transform: scale(1.1); }

.card-content { flex: 1; }
.card-content h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.card-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    word-break: break-all;
}
.card-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.card-arrow {
    width: 36px;
    height: 36px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}
.contact-card:hover .card-arrow {
    background: var(--secondary);
    color: var(--white);
    transform: translateX(5px);
}

.card-qr {
    display: flex;
    align-items: center;
}
.qr-placeholder {
    width: 60px;
    height: 60px;
    background: var(--light);
    border: 2px dashed var(--text-muted);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==================== LOCATION SECTION ==================== */
.location-section {
    padding: var(--space-xxl) 0;
    background: var(--white);
}
.location-grid {
    display: grid;
    gap: var(--space-xl);
}
.section-tag {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}
.location-info h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: var(--space-lg);
}
.address-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.address-item {
    display: flex;
    gap: var(--space-md);
}
.address-item > i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.address-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 2px;
}
.address-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.location-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
.map-placeholder {
    aspect-ratio: 16/10;
    background: var(--gradient-cool);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
}
.map-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}
.map-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
}
.map-placeholder span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== OFFICES SECTION ==================== */
.offices-section {
    padding: var(--space-xxl) 0;
    background: var(--light);
}
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.section-header h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: var(--space-xs);
}
.offices-grid {
    display: grid;
    gap: var(--space-md);
}
.office-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.office-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.office-flag {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}
.office-card h4 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 4px;
}
.office-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}
.office-card a {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}
.office-card a:hover { text-decoration: underline; }

/* ==================== INQUIRY CTA ==================== */
.inquiry-cta {
    padding: var(--space-xxl) 0;
    background: var(--gradient-warm);
}
.cta-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--white);
}
.cta-text h2 {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: var(--space-xs);
}
.cta-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-3px); }
.btn-email { background: var(--secondary); color: var(--white); }
.btn-email:hover { background: var(--primary); transform: translateY(-3px); }

/* ==================== FOOTER ==================== */
.footer { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%); color: var(--text-dark); padding: var(--space-xxl) 0 var(--space-lg); }
.footer .container { max-width: 1280px; }
.footer-grid { display: grid; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.footer-col h4 { font-size: 1rem; margin-bottom: var(--space-md); color: var(--primary); font-weight: 700; }
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col a { color: var(--text-dark); font-weight: 700; }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.contact-list li { display: flex; align-items: center; gap: var(--space-sm); color: var(--text-dark); font-weight: 700; }
.contact-list i { color: var(--primary); width: 20px; }
.footer-bottom { text-align: center; padding-top: var(--space-lg); border-top: 1px solid rgba(0,0,0,0.08); }
.footer-bottom p { color: var(--text-dark); font-weight: 700; font-size: 0.875rem; }

.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; background: var(--primary); color: var(--white); border: none; border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; box-shadow: var(--shadow-md); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-5px); }

/* ==================== TABLET (768px+) ==================== */
@media (min-width: 768px) {
    .header-container { padding: 8px 20px; }
    .logo img { height: 32px; }
    .nav-toggle { display: none; }
    .nav-menu { position: static; width: auto; height: auto; background: transparent; box-shadow: none; padding: 0; overflow: visible; }
    .nav-list { flex-direction: row; gap: 0; }
    .nav-link { padding: 4px 3px; font-size: 0.65rem; white-space: nowrap; }
    .nav-link:hover, .nav-link.active { background: transparent; color: var(--primary); }
    .nav-link.nav-cta { margin-top: 0; margin-left: 2px; padding: 4px 6px; font-size: 0.65rem; background: var(--primary); color: var(--white); }
    .nav-link.nav-cta:hover, .nav-link.nav-cta.active { background: var(--primary-dark); color: var(--white); }
    
    .contact-hero h1 { font-size: 2.25rem; }
    
    /* 2×2网格 */
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    
    .location-grid { grid-template-columns: 1fr 1fr; align-items: center; }
    
    .offices-grid { grid-template-columns: repeat(3, 1fr); }
    
    .cta-box { display: flex; align-items: center; text-align: left; gap: var(--space-lg); padding: var(--space-lg) var(--space-xl); }
    .cta-icon { margin: 0; flex-shrink: 0; }
    .cta-text { flex: 1; }
    .cta-text p { margin-bottom: 0; }
    .cta-actions { flex-direction: row; }
    
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==================== DESKTOP (1024px+) ==================== */
@media (min-width: 1024px) {
    .header-container { padding: 10px 30px; gap: 40px; justify-content: flex-start; }
    .nav-menu { margin-left: 0; }
    .nav-list { gap: 5px; }
    .logo img { height: 46px; }
    .nav-link { padding: 8px 12px; font-size: 0.92rem; }
    .nav-link.nav-cta { padding: 8px 18px; font-size: 0.92rem; }
    
    .contact-hero { padding: calc(90px + var(--space-xxl)) 0 var(--space-xxl); }
    .contact-hero h1 { font-size: 2.75rem; }
    
    .contact-card { padding: var(--space-xl); }
    .card-icon { width: 64px; height: 64px; font-size: 1.75rem; }
    .card-value { font-size: 1.1rem; }
    
    .location-info h2 { font-size: 2rem; }
    
    .section-header h2 { font-size: 2rem; }
    
    .cta-box { padding: var(--space-xl) var(--space-xxl); }
    .cta-text h2 { font-size: 1.5rem; }
}
