* {
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

a {

    text-decoration: none;
    color: #000;
}

/* 给页面内容增加上间距，防止被 header 遮挡 */
body {
    padding-top: 70px;
    /* 根据 header 高度调整 */
}

header {
    display: flex;
    justify-content: space-between;
    /* 两端对齐 */
    align-items: center;
    background-color: #f8f8f8;
    padding: 10px 20px;
    position: fixed;
    /* 固定在顶部 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    /* 保证在最上层 */
    border-bottom: 2px solid #ececec;
    /* 下边框 */
}

header .logo {
    flex-shrink: 0;
    /* 避免被压缩 */
}

header .logo img {
    width: 100px;
    /* logo 宽度 */
    height: auto;
}

header nav {
    display: flex;
    gap: 20px;
    /* 菜单间距 */
}

header nav a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    margin: 0 10px;
}

header nav a:hover {
    color: red;
}

header nav a.active {
    color: red;
}

/* 
footer 样式
*/

footer {
    background: #f2f2f2;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    color: #333;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-left,
.footer-right {
    flex: 1 1 300px;
}

.footer-left h3,
.footer-right h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.footer-left p {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-right form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.footer-right input {
    flex: 1 1 150px;
    /* 自适应宽度 */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.footer-right textarea {
    flex: 1 1 150px;
    /* 自适应宽度 */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.footer-right button {
    flex: 0 0 120px;
    /* 固定按钮宽度 */
    padding: 10px;
    background-color: #0b65d4;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.footer-right button:hover {
    background-color: #084aad;
}

/* Footer File Input Style */
.footer-right .form-group.file-input-wrapper {
    flex: 1 1 100%; /* Take full width on small screens, or adjust as needed */
    margin: 0;
}

.footer-right .inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
    padding: 0;
    margin: 0;
    border: none;
}

.footer-right .inputfile + label {
    font-size: 14px; /* Smaller font for footer */
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    display: inline-block;
    width: 100%;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-right .inputfile:focus + label,
.footer-right .inputfile + label:hover {
    background-color: #f0f8ff;
    border-color: #0b65d4;
    color: #0b65d4;
}

/* Loading Animation for Footer Button */
.footer-right .submit-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-right .submit-btn .btn-loader {
    display: none;
    width: 16px; /* Smaller loader for footer */
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

.footer-right .submit-btn.loading .btn-text {
    opacity: 0.8;
}

.footer-right .submit-btn.loading .btn-loader {
    display: block;
}

.footer-right .submit-btn.loading {
    cursor: not-allowed;
    background-color: #7aa5dd;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 营业执照文字链接 */
.business-license {
    text-align: center;
    margin-top: 20px;
}

.business-license a {
    color: #0b65d4;
    text-decoration: underline;
    font-weight: bold;
}

.business-license a:hover {
    color: #084aad;
}

/* WhatsApp 固定按钮样式 */
.whatsapp-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.whatsapp-fixed img {
    width: 32px;
    height: 32px;
}

.whatsapp-fixed:hover {
    transform: scale(1.1);
}
