header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #349592;
    color: white;
    padding: 10px 13px;
    width: 100%;
    box-sizing: border-box;
}
header h1 {
    margin: 0;
    font-size: 1.5rem;
    flex: 1;
    font-family: "Arial", sans-serif;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    transition: margin-left 0.3s ease; /* Smooth transition for page shift */
    /*font-weight: bold;*/
    /*color: #349592;*/
    /*font-family: 'Anton', sans-serif;*/
}
.logo {
    height: 30px; /* 调整 Logo 大小 */
    width: auto;
    margin-right: 15px;
}
.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-section img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}
.auth-buttons button {
    padding: 7px 14px;
    background-color: white;
    color: #349592;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px; /* 调整按钮之间的水平距离 */
}
.auth-buttons button:hover {
    background-color: #d1d5db;
}
/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 250px;
    z-index: 10;
}
/* 用户信息（邮箱 & 用户名） */
.dropdown-email {
    font-weight: bold;
    margin-top: 12px;
    /*height: 30px;*/
    padding: 1px;
    /*border-bottom: 1px solid #ddd;*/
    color: #349592;
    text-align: center;
}
.dropdown-username {
    font-weight: bold;
    margin-top: 10px;
    height: 32px;
    padding: 1px;
    border-bottom: 1px solid #ddd;
    color: #349592;
    text-align: center;
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #349592;
    font-size: 0.95rem;
}
.dropdown-menu a:hover {
    background-color: #349592;
    color: white;
}
.dropdown-menu i {
    margin-right: 10px; /* Add space between icon and text */
    vertical-align: middle; /* Ensure icons are aligned with text vertically */
}
.nav-links {
    display: flex;
    gap: 10px; /* 控制间距 */
    align-items: center;
    margin-left: auto; /* 让导航链接靠右 */
    margin-right: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white; /* 让链接颜色与 header 统一 */
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out;
}

.nav-links a:hover {
    background-color: #21655d; /* 深色背景 */
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Mobile navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: #349592;
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 15px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    display: block;
}

.mobile-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-user-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-auth-buttons button {
    padding: 12px 20px;
    background-color: white;
    color: #349592;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-auth-buttons button:hover {
    background-color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .user-section {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .logo {
        height: 25px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 10px;
    }
    
    header h1 {
        font-size: 1rem;
    }
    
    .logo {
        height: 22px;
        margin-right: 8px;
    }
    
    .mobile-nav-content {
        width: 100%;
    }
}

footer {
            background: linear-gradient(135deg, #349592, #28847E);
            color: white;
            padding: 50px 0;
            text-align: center;
            position: relative;
        }
        /* 📌 Footer 容器 */
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            padding: 0 20px;
        }

        .footer-firstc {
            flex: 1;
            min-width: 200px;
            max-width: 250px;
            padding-top: 10px;
            padding-right: 50px;
            text-align: left;
        }

        /* Footer 子区域 */
        .footer-column {
            flex: 1;
            /*padding: 30px;*/
            min-width: 200px;
            max-width: 230px;
            text-align: left;
        }

        /* Logo 样式 */
        .footer-logo {
            font-size: 1.8rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* 链接样式 */
        .footer-links {
            list-style: none;
            padding: 0;
        }

        .footer-links li {
            margin: 8px 0;
        }

        .footer-links a {
            text-decoration: none;
            color: white;
            font-size: 1rem;
            transition: color 0.3s ease-in-out;
        }

        .footer-links a:hover {
            color: #b0e0d3;
        }

        /* 社交媒体图标 */
        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-icons a {
            color: white;
            font-size: 1.5rem;
            transition: transform 0.3s ease-in-out;
        }

        .social-icons a:hover {
            transform: translateY(-5px) scale(1.1);
            color: #b0e0d3;
        }

        /* ⬆回到顶部按钮 */
        #back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: white;
            color: #349592;
            width: 50px; /* 正圆 */
            height: 50px; /* 正圆 */
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease-in-out;
            z-index: 1100;
        }


        #back-to-top:hover {
            transform: scale(1.1);
        }

        /* 🌍 版权信息 */
        .footer-bottom {
            display: flex;
            justify-content: center; /* 水平居中 */
            align-items: center; /* 垂直居中 */
            gap: 15px;
            margin-top: 20px; /* 调整顶部间距 */
            margin-bottom: -20px;
            padding: 10px 0; /* 调整高度 */
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.8);
            text-align: center;
        }

        /* 🎯 让 "Privacy Policy | Terms of Service" 在同一行 */
        .footer-bottom .footer-links {
            display: inline-block;
            font-size: inherit;
        }

        .footer-bottom a {
            color: white;
            text-decoration: none;
            margin: 0 10px; /* 适当的间距 */
            transition: color 0.3s ease-in-out;
            font-size: inherit;
        }

        .footer-bottom a:hover {
            color: #b0e0d3;
        }

        /* 主页备案信息 */
        .footer-bottom-2 {
            display: flex;
            width: 100%; /* ✅ 占据整行 */
            justify-content: center; /* 水平居中 */
            align-items: center; /* 垂直居中 */
            gap: 15px;
            margin-top: -15px; /* 调整顶部间距 */
            margin-bottom: -30px;
            padding: 10px 0; /* 调整高度 */
            font-size: 0.85rem;
            color: var(--primary-color);
            text-align: center;
        }

        /* 🎯 让 "Privacy Policy | Terms of Service" 在同一行 */
        .footer-bottom-2 .footer-links {
            display: inline-block;
            color: var(--primary-color);
            font-size: inherit;
        }

        .footer-bottom-2 a {
            color: var(--primary-color);
            text-decoration: none;
            margin: 0 10px; /* 适当的间距 */
            transition: color 0.3s ease-in-out;
            font-size: inherit;
        }

        .footer-bottom-2 a:hover {
            color: #b0e0d3;
        }

        /* 登录页备案信息 */
        .footer-bottom-3 {
            display: flex;
            justify-content: center; /* 水平居中 */
            align-items: center; /* 垂直居中 */
            gap: 15px;
            margin-top: 20px; /* 调整顶部间距 */
            margin-bottom: -20px;
            padding: 10px 0; /* 调整高度 */
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 0.85rem;
            color: white;
            text-align: center;
        }

        /* 🎯 让 "Privacy Policy | Terms of Service" 在同一行 */
        .footer-bottom-3 .footer-links {
            display: inline-block;
            color: white;
            font-size: inherit;
        }

        .footer-bottom-3 a {
            color: white;
            text-decoration: none;
            margin: 0 10px; /* 适当的间距 */
            transition: color 0.3s ease-in-out;
            font-size: inherit;
        }

        .footer-bottom-3 a:hover {
            color: #b0e0d3;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .footer-container {
                flex-direction: column;
                text-align: center;
            }

            .footer-firstc {
                margin-bottom: 20px;
            }

            .footer-column {
                margin-bottom: 20px;
            }

            .social-icons {
                justify-content: center;
            }

            #back-to-top {
                bottom: calc(16px + env(safe-area-inset-bottom));
                right: 16px;
                width: 44px;
                height: 44px;
                font-size: 1.3rem;
            }

            .footer-bottom {
                flex-direction: column;
                gap: 5px;
                padding: 15px 0;
            }

            .footer-bottom .footer-links {
                margin-top: 5px;
            }

            .footer-bottom-2 {
                flex-direction: column;
                gap: 5px;
                padding: 15px 0;
            }

            .footer-bottom-2 .footer-links {
                margin-top: 5px;
            }

            .footer-bottom-3 {
                flex-direction: column;
                gap: 5px;
                padding: 15px 0;
            }

            .footer-bottom-3 .footer-links {
                margin-top: 5px;
            }
        }

.lang-switch-btn {
    background-color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 14px;
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lang-switch-btn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.lang-switch-btn i {
    font-size: 1.1rem;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switcher .btn {
    margin-left: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-switcher .btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.language-switcher .btn.active {
    background-color: var(--primary-color);
    color: white;
}