/* Contact Page Styles */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #3182ce;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --bg-dark: #1a202c;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Saira', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.has-dropdown {
    position: relative;
}

.has-dropdown i {
    font-size: 10px;
    margin-left: 5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.phone-link i {
    color: var(--accent-color);
}

.search-btn,
.lang-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.header.scrolled .search-btn,
.header.scrolled .lang-btn {
    color: var(--text-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.header.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* Contact Hero */
.contact-hero {
    position: relative;
    height: 55vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.contact-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 30, 60, 0.75) 0%, rgba(0, 30, 60, 0.35) 100%);
    z-index: -1;
}

.contact-hero-content {
    color: white;
    padding-top: 60px;
    text-align: center;
}

.contact-hero-content h1 {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    max-width: none;
}

.btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: white;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-discover:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-discover i {
    font-size: 12px;
}

/* Contact Info Section */
.contact-info {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-title p {
    font-size: 13px;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Map */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Details */
.contact-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.detail-item {
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 40px 25px;
    border-radius: 16px;
    box-shadow:
        8px 8px 16px #d1d1d1,
        -8px -8px 16px #ffffff,
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-8px);
    box-shadow:
        12px 12px 24px #c5c5c5,
        -12px -12px 24px #ffffff,
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-item:hover::before {
    transform: scaleX(1);
}

.detail-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 50%;
    box-shadow:
        5px 5px 10px #d1d1d1,
        -5px -5px 10px #ffffff;
    transition: all 0.3s ease;
}

.detail-item:hover .detail-icon {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow:
        5px 5px 15px rgba(26, 54, 93, 0.4),
        -5px -5px 15px rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.detail-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.detail-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.form-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 10px;
}

.form-info p {
    font-size: 13px;
    color: var(--text-light);
}

.contact-form {
    background-color: var(--bg-white);
}

/* Contact Form Card (replaces inline form with modal trigger) */
.contact-form-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    box-shadow:
        8px 8px 16px #d1d1d1,
        -8px -8px 16px #ffffff,
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow:
        12px 12px 24px #c5c5c5,
        -12px -12px 24px #ffffff,
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contact-form-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.contact-form-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form-card .btn-contact-modal-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Saira', sans-serif;
    cursor: pointer;
    box-shadow:
        5px 5px 10px rgba(26, 54, 93, 0.3),
        -5px -5px 10px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-form-card .btn-contact-modal-trigger:hover {
    transform: translateY(-3px);
    box-shadow:
        8px 8px 15px rgba(26, 54, 93, 0.4),
        -5px -5px 10px rgba(255, 255, 255, 0.8);
}

.contact-form-card .btn-contact-modal-trigger i {
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 14px 30px;
    background-color: var(--text-dark);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-color);
}

/* Footer */
.footer {
    background-image: url('https://www.conbyth.com/images/footer-bg.webp');
    color: var(--text-dark);
    padding: 50px 0 15px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('https://www.conbyth.com/images/world-map.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.15;
    pointer-events: none;
}

.footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 0px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Logo Section */
.footer-section.logo-section {
    display: flex;
    flex-direction: column;
    flex: 5;
}

.footer-section.nav-section {
    flex: 2;
}

.footer-section.products-section {
    flex: 2;
}

/* 合并后的 Quick Links + Products 区域 */
.footer-section.nav-products-section {
    flex: 4;
}

.nav-products-row {
    display: flex;
    gap: 30px;
}

.quick-links-col {
    flex: 1;
}

.products-col {
    flex: 1;
}

.footer-section.contact-section {
    flex: 2.5;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.company-intro {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

.company-intro strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Nav Section */
.footer-nav-columns {
    display: flex;
    gap: 20px;
}

.footer-section.nav-section h4,
.footer-section.products-section h4,
.footer-section.contact-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.footer-nav-list,
.footer-products-list {
    list-style: none;
}

.footer-nav-list li,
.footer-products-list li {
    margin-bottom: 8px;
}

.footer-nav-list a,
.footer-products-list a {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav-list a:hover,
.footer-products-list a:hover {
    color: var(--primary-color);
}

/* Contact Section */
.contact-section .contact-list {
    list-style: none;
    margin-bottom: 15px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-list li i {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-list li span {
    flex: 1;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
    text-decoration: none;
    background-color: transparent;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.social-links a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-bottom .container {
    border-top: 1px solid #cfd5dd;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.footer-bottom-left {
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-left p {
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-card {
        padding: 35px 25px;
    }

    .contact-form-card h3 {
        font-size: 20px;
    }

    .contact-form-card .btn-contact-modal-trigger {
        padding: 14px 24px;
        font-size: 14px;
    }

}



@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        color: var(--text-dark);
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-actions .phone-link span {
        display: none;
    }

    .contact-hero-content h1 {
        font-size: 36px;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 30px 0 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        padding: 0 16px;
        margin-bottom: 30px;
    }

    .footer-section.logo-section,
    .footer-section.nav-section,
    .footer-section.products-section,
    .footer-section.contact-section,
    .footer-section.nav-products-section {
        flex: none;
    }

    .nav-products-row {
        gap: 20px;
    }

    .quick-links-col,
    .products-col {
        flex: 1;
        min-width: 0;
    }

    .quick-links-col h4,
    .products-col h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==================== Mega Menu ==================== */
.has-megamenu {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: #f0f0f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1001;
    margin-top: 10px;
}

.has-megamenu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.level1-link {
    display: block;
    padding: 12px 24px;
    color: #333333 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.level1-link:hover {
    background: #e0e0e0;
    color: var(--primary-color) !important;
}

@media (max-width: 1024px) {
    .mega-menu {
        display: none;
    }
}

@media (max-width: 430px) {
    .container {
        padding: 0 16px !important;
    }
}