:root {
    --primary: #FBC902;
    --secondary: #4361EE;
    --accent: #06D6A0;
    --dark: #1A1A2E;
    --light: #F8F9FA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面内容样式 */
.page-content {
    padding: 70px 0 50px;
    min-height: 100vh;
    background-color: #fff;
}

.hero-banner {
    width: 100%;
    padding-top: calc(729 / 1920 * 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Banner底部区域 */
.banner-footer {
    margin-left: 40px;
    margin-top: -120px;
    margin-bottom: 30px;
}

.content-card {
    padding: 0;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.card-text{
    font-size: 20px;
    text-indent: 2em;
    margin-bottom: 50px; /* 添加与下方图片的间距 */
}

/* 图片容器 */
.contact-images {
    display: flex;
    gap: 50px; /* 设置图片之间的固定间距 */
    width: 100%;
    justify-content: flex-start; /* 图片靠左对齐 */
    margin-left: 50px; /* 整体向右移动50px */
    margin-bottom: 80px;
}

/* 联系方式图片 */
.contact-images img {
    max-width: 100%;
    height: auto;
    display: block;
}

.official-images{
    margin-left: 50px; /* 整体向右移动50px */
    margin-bottom: 50px;
}

.official-icons {
    margin-left: 70px;
    display: flex;
    justify-content:flex-start;
    gap: 70px;
    padding: 0 0 20px;
}

.official-icons-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px; /* 控制图片和文字之间的间距 */
}

.official-qrcode {
    width: 100px; /* 缩小二维码图片 */
    height: 100px; /* 缩小二维码图片 */
    object-fit: contain;
}

/* 平台名称文字样式 */
.official-icons-item p {
    font-size: 16px; /* 加大字体 */
    margin-bottom: 15px; /* 文字下方添加间距 */
}

/* 联系表单容器 */
.contact-form-container {
    background-image: url('../img/contact/留言咨询框.webp');
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center top;
    width: 100%;
    min-height: 840px; /* 图片高度 */
    padding: 40px;
    margin-top: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 表单样式 */
.contact-form {
    width: 100%;
    max-width: 800px;
    margin: 160px auto 0 110px; /* 添加顶部，左侧边距 */
}

/* 表单行 */
.form-row {
    display: flex;
    gap: 100px;
    margin-bottom: 25px;
    width: 100%;
}

/* 表单组 */
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #ddd;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* 联系电话输入框宽度控制 */
#phone {
    max-width: 350px; /* 缩小宽度，与称呼输入框一致 */
}

/* 您的需求输入框高度调整 */
#message {
    min-height: 200px; /* 增加高度 */
    resize: none;
}

/* 提交按钮 */
.submit-btn {
    padding: 15px 40px;
    background-color: #fc5d2f; /* 使用主题色 */
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0px auto;
}

.submit-btn:hover {
    background-color: #fc5d2f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* 响应式设计 */
@media (max-width: 800px) {
    .nav {
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }

    /* 优化 logo 在小屏下的表现 */
    .logo img {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .contact-images {
        flex-direction: column; /* 小屏幕上垂直排列 */
        gap: 20px; /* 小屏幕上的间距 */
        align-items: flex-start; /* 小屏幕上也靠左对齐 */
    }
    .official-icons {
        gap: 20px;
    }
    
    .official-icons-item img {
        width: 60px; /* 小屏幕上进一步缩小图片 */
        height: 60px;
    }
    
    .official-icons-item p {
        font-size: 16px; /* 小屏幕上适当减小字体 */
        margin-bottom: 10px; /* 小屏幕上减小间距 */
    }

    .contact-form-container {
        background-size: 100%;
        padding: 60px 20px 20px 20px;
        margin: 20px 0;
        min-height: 600px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }
    
    #phone {
        max-width: 100%; /* 小屏幕上恢复100%宽度 */
    }
    
    #message {
        min-height: 150px; /* 小屏幕上的高度 */
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px;
    }
}