/* 首屏区 */
.contact-hero {
    background: linear-gradient(135deg, #1a56a8, #002366);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.contact-hero::before {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="white"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="white"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="white"></path></svg>');
    background-size: cover;
    transform: rotate(180deg);
}

.contact-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: white;
    color: #1a5276;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* 联系通道卡片 */
.contact-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
margin: 60px auto; /* 修改这里：左右margin改为auto */
    max-width: 1080px;

}

.channel-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.channel-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1a5276, #2c82c9);
}

.channel-card.highlight::before {
    background: linear-gradient(90deg, #6a1b9a, #9b59b6);
}

.channel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bg-blue {
    background: linear-gradient(135deg, #1a5276, #3498db);
}

.bg-purple {
    background: linear-gradient(135deg, #6a1b9a, #9b59b6);
}

.bg-green {
    background: linear-gradient(135deg, #00796b, #27ae60);
}

.channel-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.channel-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    line-height: 1.7;
}

.qr-code {
    width: 140px;
    height: 200px;
    margin: 20px auto;
    display: block;
    border: 1px solid #eee;
    padding: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.link-arrow {
    color: #1a5276;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

.link-arrow::after {
    content: "→";
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.link-arrow:hover::after {
    margin-left: 10px;
}

/* 智能表单 */
.smart-form {
    background: white;
    padding: 60px;
    margin: 0 30px 60px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.smart-form h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a5276;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #f9f9f9;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1a5276;
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
    background: white;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, #1a5276, #2c82c9);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 82, 118, 0.4);
}

.btn-submit i {
    margin-right: 10px;
}


/* 响应式设计 */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 20px;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .contact-hero .subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .smart-form {
        padding: 30px 20px;
        margin: 0 15px 40px;
    }

}

/* 原有CSS保持不变，新增以下样式 */

/* 常见问题板块 */
.faq-section {
    background: white;
    padding: 60px 30px;
    margin: 0 30px 60px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a5276;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: #7f8c8d;
    line-height: 1.7;
    padding-right: 30px;
}

/* 社交媒体板块 */
.social-media {
    background: white;
    padding: 60px 30px;
    margin: 0 30px 60px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    max-width: 1080px;
    margin: 60px auto; /* 上下60px，左右自动居中 */
}

.social-media h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a5276;
}

.social-platforms {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.platform-card {
    width: 160px;
    text-align: center;
}

.platform-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.weibo {
    background: linear-gradient(135deg, #e6162d, #ff8140);
}

.xiaohongshu {
    background: linear-gradient(135deg, #ff2442, #ff2e63);
}

.zhihu {
    background: linear-gradient(135deg, #0084ff, #00bbff);
}

.wechat {
    background: linear-gradient(135deg, #07c160, #09e766);
}

.platform-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.platform-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.platform-card a {
    color: #1a5276;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 10px;
}

.platform-card a:hover {
    text-decoration: underline;
}

/* 修改后 - 添加到媒体查询中 */
@media (max-width: 768px) {
    .contact-hero {
        padding: 60px 15px;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .contact-hero .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .contact-channels {
        grid-template-columns: 1fr;
        margin: 30px 15px;
        gap: 20px;
    }

    .channel-card {
        padding: 30px 20px;
    }

    .smart-form {
        padding: 30px 15px;
        margin: 0 15px 40px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn-submit {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .faq-section {
        padding: 40px 15px;
        margin: 0 15px 40px;
    }

    .faq-section h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .social-media {
        padding: 40px 15px;
        margin: 0 15px 40px;
    }

    .social-platforms {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .platform-card {
        width: 100%;
    }

    #mainNav {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }

    #mainNav li {
        margin: 5px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 20px;
        text-align: center;
    }
}