

.contact_main {
    padding-bottom: 0px;
    margin: 0 auto;
}

/* Utility Classes */
.contact_main .mx-auto { margin-left: auto; margin-right: auto; }
.contact_main .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.contact_main .py-16 { padding-top: 3rem; padding-bottom: 4rem; }
.contact_main .mb-16 { margin-bottom: 4rem; }
.contact_main .mb-2 { margin-bottom: 0.5rem; }
.contact_main .mb-6 { margin-bottom: 1.5rem; }
.contact_main .mb-8 { margin-bottom: 2rem; }
.contact_main .mb-12 { margin-bottom: 3rem; }
.contact_main .text-center { text-align: center; }
.contact_main .space-y-6 > * + * { margin-top: 1.5rem; }

/* Font Styles */
.contact_main .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.contact_main .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.contact_main .font-bold { font-weight: 700; }
.contact_main .font-semibold { font-weight: 600; }
.contact_main .text-gray-600 { color: #4B5563; }
.contact_main .text-gray-700 { color: #374151; }
.contact_main .text-sm { font-size: 0.875rem; line-height: 1.25rem; }

/* Icon System */
.contact_main .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


/* 通用卡片样式 */
.contact_main .contact-card,
.contact_main .contact-form-section,
.contact_main .contact-social,
.contact_main .bg-white {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

/* 恢复标题字体 */
.contact_main .contact-card h3,
.contact_main .contact-form-section h2,
.contact_main .contact-social h2,
.contact_main .faq-section h2{
    font-family: Cardo, serif;
}

/* 卡片悬停效果 */
.contact_main .contact-card:hover,
.contact_main .contact-form-section:hover,
.contact_main .contact-social:hover,
.contact_main .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Icon container styles */
.contact_main .contact-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 74, 0.1); /* 使用主题色的浅色版本作为背景 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.contact_main .contact-card-icon .icon {
    width: 24px;
    height: 24px;
    color: rgba(255, 107, 74, 0.7); /* 默认状态下使用半透明的主题色 */
    transition: all 0.3s ease;
}

/* 悬停效果 */
.contact_main .contact-card:hover .contact-card-icon {
    background: #ff6b4a; /* 悬停时背景变为主题色 */
    transform: translateY(-5px); /* 添加上浮动效果 */
}

.contact_main .contact-card:hover .contact-card-icon .icon {
    color: white; /* 悬停时图标变为白色 */
}


/* Hero Section Styles */
.contact_main .contact-hero {
    position: relative;
    background: linear-gradient(135deg, #0a192f 0%, #0d1b2a 100%);
    padding: 8rem 0 6rem;
    color: white;
    overflow: hidden;
    text-align: center;
}

.contact_main .contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.contact_main .contact-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact_main .contact-hero h1 {
    font-family: Cardo, serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.contact_main .contact-hero p {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.contact_main .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hero Section */
.contact_main .contact-hero {
    position: relative;
    background: linear-gradient(135deg, #0a192f 0%, #0d1b2a 100%);
    padding: 8rem 0 6rem;
    color: white;
    overflow: hidden;
}

.contact_main .contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.contact_main .contact-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact_main .contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact_main .contact-hero p {
    font-size: 1.25rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Contact Cards */
.contact_main .contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 3;
}

.contact_main .contact-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: -3rem;
}

.contact_main .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 107, 74, 0.2);
}

.contact_main .contact-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 107, 74, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.contact_main .contact-card-icon .icon {
    width: 24px;
    height: 24px;
    color: rgba(255, 107, 74, 0.7);
    transition: all 0.3s ease;
}

.contact_main .contact-card:hover .contact-card-icon {
    background: #ff6b4a;
}

.contact_main .contact-card:hover .contact-card-icon .icon {
    color: white;
}

.contact_main .contact-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact_main .contact-card p {
    color: #666;
    line-height: 1.6;
}

/* Form Section */
.contact_main .contact-form-section {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem; /* 或者 mb-8 如果你使用 Tailwind */
}

.contact_main .contact-form-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

/* Form Elements */
.contact_main .form-input {
    width: 100%;
}


/* Custom Checkbox */
.contact_main .custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
}

.contact_main .custom-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact_main .custom-checkbox input[type="checkbox"]:checked {
    background-color: #ff6b4a;
    border-color: #ff6b4a;
}

.contact_main .custom-checkbox input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact_main .contact-form-grid button[type="submit"] {
    width: 100%;
    background-color: #ff6b4a;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact_main .contact-form-grid button[type="submit"]:hover {
    background-color: #e85a3a;
    transform: translateY(-2px);
}

/* Social Media Section */
.contact_main .contact-social {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact_main .contact-social h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.contact_main .contact-social p {
    color: #666;
    margin-bottom: 2rem;
}

.contact_main .contact-social-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact_main .social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 74, 0.1);
    border-radius: 50%;
    color: #ff6b4a;
    transition: all 0.3s ease;
}

.contact_main .social-icon:hover {
    background: #ff6b4a;
    color: white;
    transform: translateY(-3px);
}

/* Map Section */
.contact_main .contact-map {
    padding: 1rem;  /* 或者用 p-4 如果使用 Tailwind */
    background: white;
    border-radius: 0.5rem;  /* 或者用 rounded-lg 如果使用 Tailwind */
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);  /* 可选：添加轻微阴影 */
}

.contact_main .contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 0.25rem;  /* 或者用 rounded 如果使用 Tailwind */
}

 /* FAQ Section */
 .contact_main .faq-section {
    margin-top: 4rem;
    padding: 4rem 0;
    background: #f8f9fa;  /* 浅灰色背景 */
    left: 50%;           /* 配合下面的transform使用 */
    right: 50%;
}

.contact_main .faq-section .container {
    max-width: 1200px;   /* 与页面主体内容同宽 */
    margin: 0 auto;      /* 居中对齐 */
    padding: 0 2rem;     /* 两侧留白 */
}

.contact_main .faq-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;  /* 标题居中 */
}

.contact_main .faq-item {
    margin: 0 auto 1.5rem;  /* 居中对齐 */
    background: #fff;    /* 白色背景 */
    padding: 1.5rem;     /* 内边距 */
    border-radius: 8px;  /* 圆角 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);  /* 轻微阴影 */
}

.contact_main .faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact_main .faq-answer {
    color: #666;
    line-height: 1.6;
}


/* Responsive Design */
@media (max-width: 768px) {
    .contact_main .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact_main .contact-cards-grid {
        grid-template-columns: 1fr;
        margin-top: 0; /* 移除负边距 */
        padding-top: 2rem; /* 添加上部填充 */
        gap: 3rem; /* 增加卡片之间的间距 */
    }
    
    .contact_main .contact-card {
        margin-top: 0; /* 移除负边距 */
    }
    
    .contact_main .contact-social-grid {
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact_main .contact-card {
    animation: fadeInUp 0.5s ease forwards;
}

.contact_main .contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact_main .contact-card:nth-child(3) {
    animation-delay: 0.4s;
}