﻿/* ================================
   CONTACT US SECTION - 主容器
   ================================ */
.contact-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 30px 0;
}

    .contact-section h2 {
        color: var(--primary-color);
        font-family: "Yanone Kaffeesatz", sans-serif;
        font-size: 42px;
        font-weight: 600;
        text-transform: capitalize;
        margin-bottom: 30px;
        text-align: center;
    }

/* ================================
   CONTACT CONTAINER - 双栏布局容器
   ================================ */
.contact-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* ================================
   LEFT SIDE - 联系信息（绿色背景）
   ================================ */
.contact-info {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .contact-info h3 {
        font-size: 28px;
        margin-bottom: 25px;
        color: white;
        font-weight: 600;
    }

.contact-details {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

    .contact-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* 联系信息图标 */
    .contact-item img {
        width: 80px;
        height: 60px;
        margin-right: 15px;
        margin-top: 5px;
        flex-shrink: 0;
        object-fit: contain;
        /*filter: brightness(0) invert(1);*/
        opacity: 0.9;
    }

    .contact-item strong {
        display: block;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .contact-item a {
        color: white;
        text-decoration: underline;
        transition: opacity 0.3s;
    }

        .contact-item a:hover {
            opacity: 0.8;
        }

    .contact-item p {
        margin: 5px 0 0;
        line-height: 1.5;
        opacity: 0.95;
    }

.contact-note {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 5px;
    margin-top: 25px;
    font-style: italic;
}

/* ================================
   RIGHT SIDE - 联系表单（白色背景）
   ================================ */
.contact-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .contact-form h3 {
        color: var(--primary-color);
        font-size: 28px;
        margin-bottom: 25px;
        font-weight: 600;
    }

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

    .form-row .form-group {
        flex: 1;
    }

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #333;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-size: 16px;
        transition: border-color 0.3s;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 2px rgba(2, 108, 210, 0.1);
        }

/* ================================
   FILE UPLOAD SECTION - 文件上传区域
   按照模板风格设计
   ================================ */
.con-us-content {
    margin-top: 15px;
}

.con-us-p {
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.con-us-a {
    position: relative;
}

/* 文件上传按钮 */
.uploadfiles {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .uploadfiles:hover {
        background: var(--secondary-color);
    }

    .uploadfiles i {
        margin-right: 8px;
    }

/* 图标样式 */
.layui-icon {
    display: inline-block;
    font-size: 14px;
}

/* 隐藏的文件输入框 */
.uploadfiles-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* 文件名显示 */
.file_name {
    color: #666;
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 上传说明文字 */
.upload-note {
    color: #666;
    font-size: 13px;
    margin: 5px 0 0 0;
}

    .upload-note:first-of-type {
        margin-top: 10px;
    }

/* ================================
   FORM SUBMIT - 表单提交区域
   ================================ */
.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .submit-btn:hover {
        background: var(--secondary-color);
    }

.form-note {
    color: #666;
    font-size: 14px;
}

/* ================================
   RESPONSIVE DESIGN - 响应式设计
   ================================ */

/* 平板设备 (max-width: 992px) */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        min-width: 100%;
    }
}

/* 小屏幕平板 (max-width: 768px) */
@media (max-width: 768px) {
    .contact-section {
        padding: 20px;
    }

        .contact-section h2 {
            font-size: 32px;
        }

    .contact-info h3,
    .contact-form h3 {
        font-size: 24px;
    }

    /* 图标调整 */
    .contact-item img {
        width: 20px;
        height: 20px;
    }

    /* 表单行改为垂直布局 */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* 提交按钮区域调整 */
    .form-submit {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* 文件名显示调整 */
    .file_name {
        position: static !important;
        display: block;
        margin-top: 10px !important;
        margin-left: 0 !important;
        max-width: 100%;
    }

    .con-us-a p {
        margin-left: 0 !important;
    }
}

/* 手机设备 (max-width: 576px) */
@media (max-width: 576px) {
    .contact-info,
    .contact-form {
        padding: 20px;
    }

    /* 联系信息项垂直布局 */
    /*.contact-item {
        flex-direction: column;
    }

        .contact-item img {
            margin-bottom: 10px;
            margin-right: 0;
        }*/

    /* 统一图标样式 */
    .contact-item img.contact-icon {
        width: 80px; /* 固定宽度 */
        height: 74px; /* 固定高度 */
        margin-right: 15px;
        margin-top: 0px;
        object-fit: contain; /* 保持比例 */
    }

    /* 文件上传按钮全宽显示 */
    .uploadfiles {
        width: 100%;
        text-align: center;
        display: block;
    }

    .con-us-a {
        display: flex;
        flex-direction: column;
    }
}



/* ================================
   RESPONSIVE DESIGN - Contact Information 底部几个图示 链接样式
   ================================ */

/* 图片链接区域样式 */
.image-links {
    margin-top: -15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.image-links-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.image-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* 增加间距以适应两行布局 */
    max-width: 300px; /* 限制最大宽度，使两行更紧凑 */
    margin: 0 auto; /* 居中显示 */
}

.image-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    /* 调整宽度和边距以适应两行布局 */
    width: 90px; /* 稍微增加宽度以容纳更大的图标 */
    margin-bottom: 15px; /* 增加底部间距以分隔两行 */
}

    .image-link-item:hover {
        transform: translateY(-5px);
    }

/* 统一控制所有社交图标的尺寸 - 修改这里的值来调整大小 */
.social-icon {
    width: 50px; /* 稍微增大图标大小，在有限的6个图标中更显眼 */
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 8px;
    background: white;
    padding: 8px; /* 增加内边距 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* 增强阴影效果 */
}

.image-link-item span {
    color: white;
    font-size: 13px; /* 稍微增大字体 */
    text-align: center;
    margin-top: 5px;
    font-weight: 500;
}

/* 每行显示三个图标的设置 */
/* 不需要特殊设置，因为默认flex-wrap: wrap会在宽度不足时自动换行 */

/* 响应式调整 */
@media (max-width: 768px) {
    .image-links-container {
        justify-content: center;
        max-width: 280px;
        gap: 12px;
    }

    .image-link-item {
        width: 85px;
        margin-bottom: 12px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        padding: 7px;
    }

    .image-link-item span {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .image-links-container {
        max-width: 260px;
        gap: 10px;
    }

    .image-link-item {
        width: 80px;
        margin-bottom: 10px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .image-link-item span {
        font-size: 11px;
    }

    .image-links-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 400px) {
    .image-links-container {
        max-width: 240px;
        gap: 8px;
    }

    .image-link-item {
        width: 75px;
        margin-bottom: 8px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        padding: 5px;
    }

    .image-link-item span {
        font-size: 10px;
    }
}

/* 确保图标在两行完美分布 */
.image-links-container {
    /* 通过计算确保每行正好三个图标 */
    /* 总宽度 = (图标宽度 + 间隙) * 3 - 最后一个间隙 */
    width: fit-content;
}

/* 可选：添加分隔线效果增强视觉层次 */
.image-links-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    margin: 8px auto 15px;
}