/* 特价秒杀页面专用样式 */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 100;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
a {
    text-decoration: none;
    color: inherit;
}

a:hover, a:visited, a:active, a:link {
    text-decoration: none;
    color: inherit;
}
.header-fixed .fas {
    color: #333;
    font-size: 20px;
}

.header-right {
    width: 40px;
    display: flex;
    justify-content: flex-end;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff3b30;
}

.banner-container {
    margin-top: 50px;
    width: 100%;
}

.banner-container img {
    width: 100%;
    display: block;
}

.countdown-container {
    background: linear-gradient(to right, #ff3b30, #ff9500);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    margin-top: 50px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-title i {
    margin-right: 5px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 5px;
    font-size: 16px;
}

.time-box {
    background-color: #fff;
    color: #ff3b30;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.product-list {
    padding: 10px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.product-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    position: relative;
}

.product-image img {
    width: 100%;
    display: block;
}

.seckill-tag {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: #ff3b30;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 5px rgba(255,59,48,0.5);
    animation: pulse 1.5s infinite;
    z-index: 10;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.current-price {
    font-size: 22px;
    font-weight: bold;
    color: #ff3b30;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.discount-tag {
    background-color: #ff9500;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.urgent-tag {
    display: inline-block;
    color: #ff3b30;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    animation: shake-animation 0.8s infinite;
}

@keyframes shake-animation {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.product-name-tag {
    display: inline-block;
    background-color: #ff3b30;
    color: white;
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
    animation: flash 1s infinite;
}

.buy-button {
    background-color: #ff3b30;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 0;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-button i {
    margin-right: 5px;
}

.sales-info {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: right;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.flash-animation {
    animation: flash 1s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.shake-animation {
    animation: shake 0.5s infinite;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    z-index: 100;
    max-width: 640px;
    margin: 0 auto;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 20%;
}

.bottom-nav .nav-item .nav-icon {
    font-size: 20px;
    color: #666;
    margin-bottom: 4px;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 20px;
    max-height: 20px;
    margin: 0 auto 4px;
}

/* 确保所有SVG图标在非激活状态下颜色一致 */
.bottom-nav .nav-item svg path {
    fill: #666;
}

/* 为img类型的SVG图标设置颜色 */
.bottom-nav .nav-item .nav-icon {
    color: #666;
    filter: invert(42%) sepia(0%) saturate(0%) hue-rotate(143deg) brightness(95%) contrast(92%);
}

.bottom-nav .nav-item span {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.bottom-nav .nav-item.active .nav-icon,
.bottom-nav .nav-item.active span {
    color: #ff4d4f;
}

.bottom-nav .nav-item.active .nav-icon {
    color: #ff4d4f;
    filter: invert(39%) sepia(79%) saturate(2449%) hue-rotate(328deg) brightness(100%) contrast(98%);
}

.bottom-nav .nav-item.active svg path {
    fill: #ff4d4f;
    /* 确保激活状态下SVG图标颜色覆盖默认颜色 */
    transition: fill 0.2s ease;
}