* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* 头部导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
}

/* 导航栏背景图片 */
.nav-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
    z-index: 5;
}

.nav-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Header中的顶部中间选择图标（猫头装饰） */
.header .top-center-selector {
    position: absolute;
    top: -50px;
    left: 33%;
    transform: translateX(-50%);
    z-index: 1;
    width: auto;
    height: auto;
    overflow: visible;
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header .selector-img {
    width: auto;
    height: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 猫头悬停特效 */
.header .top-center-selector:hover .selector-img {
    transform: translateY(-8px) scale(1.1);
    animation: catWiggle 0.6s ease-in-out;
}

/* 猫咪摆动动画 */
@keyframes catWiggle {
    0% {
        transform: translateY(-8px) scale(1.1) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) scale(1.1) rotate(-2deg);
    }
    50% {
        transform: translateY(-12px) scale(1.1) rotate(2deg);
    }
    75% {
        transform: translateY(-10px) scale(1.1) rotate(-1deg);
    }
    100% {
        transform: translateY(-8px) scale(1.1) rotate(0deg);
    }
}

.navbar {
    height: 8vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    background: transparent;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: center;
    padding: 0 20px 0 0;
}

/* Logo样式 */
.nav-logo {
    display: flex;
    align-items: center;
    position: absolute;
    left: 100px;
    top: 60%;
    transform: translateY(-50%);
    z-index: 20;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.nav-item {
    margin: 0 20px;
}

.nav-item:first-child {
    margin-left: 20px;
}

.nav-item:last-child {
    margin-right: 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-text-en {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nav-text-cn {
    font-size: 12px;
    font-weight: 400;
    color: #ccc;
    margin-top: 2px;
    line-height: 1;
}

.nav-link:hover {
    background-color: rgba(0, 212, 255, 0.1);
}

/* 购物车图标样式 */
.nav-cart {
    justify-self: end;
    margin-left: 30px;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cart-link:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    transform: scale(1.1);
}

.cart-icon {
    width: 20px;
    height: 20px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.cart-count:empty {
    display: none;
}

.nav-link:hover .nav-text-en {
    color: #00d4ff;
}

.nav-link:hover .nav-text-cn {
    color: #00d4ff;
}

/* 当前激活页面样式 */
.nav-link.active,
.nav-link-active {
    background-color: rgba(0, 212, 255, 0.2);
}

.nav-link.active .nav-text-en,
.nav-link-active .nav-text-en {
    color: #00d4ff;
}

.nav-link.active .nav-text-cn,
.nav-link-active .nav-text-cn {
    color: #00d4ff;
}

/* 注释掉下方小点样式，只保留字体颜色变化
.nav-link.active::after,
.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #00d4ff;
    border-radius: 50%;
*/

/* 页面内容区域 */
.page-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: 0;
}

/* 背景图片容器 */
.content-background {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
    margin-top: -100px;
}

.content-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 右上角扫码图标 */
.qr-icon {
    position: absolute;
    top: 90px;
    right: 30px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-icon:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .navbar {
        height: 65px;
    }

    .content-background {
        margin-top: -80px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px 0 0;
        grid-template-columns: 1fr auto;
    }

    .nav-logo {
        left: 5px;
    }

    .nav-item {
        margin: 0 10px;
    }

    .nav-item:first-child {
        margin-left: 10px;
    }

    .nav-item:last-child {
        margin-right: 10px;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    .navbar {
        height: 60px;
    }

    .nav-text-en {
        font-size: 12px;
    }

    .nav-text-cn {
        font-size: 10px;
    }

    .logo-img {
        height: 35px;
    }

    .content-background {
        margin-top: -60px;
    }

    .qr-icon {
        top: 85px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        grid-template-columns: auto;
        justify-content: end;
        gap: 10px;
    }

    .nav-logo {
        left: 5px;
    }

    .nav-menu {
        display: none;
    }

    .navbar {
        height: 50px;
    }

    .content-background {
        margin-top: -40px;
    }
}

/* 响应式设计 - Header中的选择图标 */
@media (max-width: 768px) {
    .header .top-center-selector {
        top: -40px;
        left: 33%;
    }

    .header .selector-img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .header .top-center-selector {
        top: -30px;
        left: 33%;
    }

    .header .selector-img {
        max-width: 90px;
    }
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 10vh;
    z-index: 1000;
    /*background: linear-gradient(to right, #371341, #1c134d);*/
    background: #0a0a0a;
    display: flex;
    justify-content:space-between;

}

.cg {
    padding-top: 20px;
    padding-right: 10px;
    text-align: center;
    color: #8a84a2;
    font-size: 12px;
}

.cg a {
    text-decoration: none;
    color: #8a84a2;
}
