* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    padding: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.sub-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1120px;
    padding: 0 30px;
}

.logo {
    width: 136px;
    height: 23px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-button {
    width: 72px;
    height: 24px;
    line-height: 24px;
    border-radius: 12px;
    background: transparent;
    font-family: Microsoft YaHei UI;
    color: #1D1D1F;
    font-weight: 400;
    font-size: 12px;
    font-style: normal;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-button.active {
    background: linear-gradient(135deg, #a802f2 0%, #fe00c1 40%, #ffa100 60%, #fe019f 100%);
    color: white;
    font-weight: 500;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    position: fixed;
    top: 48px;
    left: 0;
    width: 100vw;
    min-height: 262px;
    height: auto;
    background-color: #F9F9FA;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 15px;
    padding-top: 40px;
    border-radius: 8px;
    z-index: 100;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.dropdown-content.show {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
    .logo {
        display: none;
    }
    
    .dropdown-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        min-height: auto;
        padding: 15px 10px;
        padding-top: 30px;
        height: auto;
    }
    
    .dropdown-content.show {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 480px) {
    .dropdown-content {
        gap: 15px;
        padding: 10px 5px;
        padding-top: 25px;
        width: 100%;
        width: 100vw;
        left: 0;
        box-sizing: border-box;
    }
    
    .dropdown-content.show {
        gap: 15px;
    }
    
    .navbar .product-item {
        width: 100%;
        max-width: 200px;
    }
    
    .navbar .product-image img {
        max-width: 80px;
        height: auto;
    }
}

.navbar .product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
    cursor: pointer;
}

.navbar .product-image {
    width: 156px;
    height: 156px;
    background-color: #f0f0f0;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar .product-name {
    font-family: Microsoft YaHei UI;
    color: #000000;
    font-weight: 400;
    font-size: 14px;
    font-style: normal;
}

/* .navbar .nav-button:hover {
    transform: scale(1.05);
    color: white;
}

.navbar .nav-button:active {
    transform: scale(0.95);
    color: white;
} */


/* Instagram风格按钮 - 对调了悬停和静止状态的颜色 */
/* .nav-button {
  
} */

/* 悬停状态使用Instagram经典渐变 */
/* .nav-button:hover {
    color: white;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    background-size: 200% 200%;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(220, 39, 67, 0.5);
} */

.nav-button:active {
    width: auto;
    height: 24px;
    line-height: 2;
    padding: 0px 10px;
    font-size: 12px;
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    /* 静止状态使用深色渐变 */
    background-size: 200% 200%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(2px);
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.4);
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
}

.nav-button.active {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 0 20px rgba(220, 39, 67, 0.7);
}

/* 添加光晕效果 */
/* .nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
} */

.nav-button:hover::before {
    opacity: 0.3;
    filter: blur(10px);
}