footer {
    background-color: #1a1a1a;
    color: white;
    padding: 30px 0 0 0; /* 移除底部内边距 */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-slogan {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.footer-slogan p {
    margin: 0;
}

.footer-logo img {
    height: 75px;
    width: 121px;
    object-fit: contain;
}

.footer-info {
    display: flex;
    gap: 80px;
}

.footer-text p, .footer-contact p {
    margin-bottom: 10px;
    color: #999;
    font-size: 14px;
}

.contact-form {
    display: flex;
    align-items: center;
}

.contact-form input {
    background-color: #333;
    border: none;
    padding: 8px 12px;
    color: white;
    border-radius: 4px 0 0 4px;
    width: 300px;
}

.contact-form button {
    background-color: #3457DC;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #2a46b8;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-form input {
        width: 200px;
    }
}


.copyright {
    background-color: #242424;  /* 改为浅灰色背景 */
    padding: 15px 0;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #333;  /* 添加上边框分隔线 */
}

.copyright p {
    color: #999;  /* 调整文字颜色 */
    font-size: 14px;
    margin: 0;
}

/* 添加以下样式到页脚CSS文件中 */
.footer-contact .contact-form {
    position: relative;
    margin-bottom: 30px;  /* 为错误提示预留空间 */
}

.contact-form input {
    width: 100%;
    background-color: #333;
    border: none;
    padding: 8px 12px;
    color: white;
    border-radius: 4px 0 0 4px;
}

/* 添加错误提示样式 */
.email-message {
    position: absolute;
    left: 0;
    bottom: -20px;
    font-size: 12px;
    margin-top: 5px;
}

.email-error {
    color: #ff4d4f;
}

.email-success {
    color: #52c41a;
}

.footer-contact input[type="text"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.footer-contact input[type="text"]:focus {
    border-color: #3366ff;
    outline: none;
}

.footer-contact button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #3366ff;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.footer-contact button:hover {
    color: #2952cc;
}