/* 基础容器 */
.ark-nav-container {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(255,255,255,0.97) !important;
    display: flex !important;
    justify-content: space-around;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 9999;
}

/* 导航项通用样式 */
.nav-item {
    flex: 1;
    max-width: 25%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 8px 2px;
    text-decoration: none !important;
    position: relative;
}

/* 图标容器 */
.nav-icon {
    position: relative;
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

/* 图标绘制系统 */
[class*="-icon"]::before,
[class*="-icon"]::after {
    content: '';
    position: absolute;
    box-sizing: border-box;
    transform: translateZ(0);
}

/* 首页图标 */
.home-icon::before {
    width: 26px;
    height: 0;
    border: 13px solid #666;
    border-bottom: none;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.home-icon::after {
    width: 20px;
    height: 13px;
    border: 2px solid #666;
    border-top: none;
    border-radius: 0 0 3px 3px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

/* 商店图标 */
.shop-icon::before {
    width: 22px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 4px 4px 8px 8px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background-image: linear-gradient(to right, 
        transparent 45%,
        #666 45%,
        #666 55%,
        transparent 55%
    );
}

.shop-icon::after {
    width: 14px;
    height: 6px;
    border: 2px solid #666;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}

/* 购物车图标 */
.cart-icon::before {
    width: 24px;
    height: 12px;
    border: 2px solid #666;
    border-radius: 3px 3px 6px 6px;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.cart-icon::after {
    width: 26px;
    height: 22px;
    border: 2px solid #666;
    border-bottom: none;
    border-left: none;
    border-right: none;
    background: 
        radial-gradient(circle at 9px 12px, #666 2px, transparent 2px),
        radial-gradient(circle at 20px 12px, #666 2px, transparent 2px);
    top: 12px;
    left: 45%;
    transform: translateX(-50%);
}

/* 用户图标 */
.profile-icon::before {
    width: 18px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 50%;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset -2px -2px 0 0 rgba(0,0,0,0.1);
}

.profile-icon::after {
    width: 18px;
    height: 6px;
    border: 2px solid #666;
    border-top: none;
    border-radius: 0 0 12px 12px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* 激活状态 */
.nav-item.active [class*="-icon"]::before,
.nav-item.active [class*="-icon"]::after {
    border-color: #1a73e8;
}

.nav-item.active .nav-text {
    color: #1a73e8 !important;
    font-weight: 600;
}

/* 文字标签 */
.nav-text {
    font-size: 12px;
    color: #666;
    font-family: -apple-system, sans-serif;
    margin-top: 2px;
}

/* 购物车角标 */
.cart-badge {
    position: absolute;
    right: 40%;
    top:10%;
    background: #ff4444;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .nav-icon {
        width: 28px;
        height: 28px;
    }
    
    .nav-text {
        font-size: 11px;
    }
    
    .cart-badge {
        right: 30%;
        top:10%;
        min-width: 14px;
        height: 14px;
    }
}