/* ===== 首页样式 ===== */
.infinite-scroll-item { transition: transform 0.3s; }
.infinite-scroll-item:hover { transform: translateY(-5px); }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ===== 弹窗特有样式 ===== */
.promo-coupon-gold {
    background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
    position: relative;
    overflow: hidden;
}
.promo-coupon-gold::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: inherit;
    pointer-events: none;
}
.promo-coupon-gold::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
}
.promo-coupon-gold-right::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
}
#promo-modal.show {
    opacity: 1;
    pointer-events: auto;
}
#promo-modal.show #promo-container {
    transform: scale(1);
}

/* ===== 分类页样式 ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

body { font-family: 'Inter', 'PingFang SC', sans-serif; }

.glass-nav { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(226, 232, 240, 0.6); }

.category-sidebar-item { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.category-sidebar-item.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.product-card {
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.08);
    border-color: #fee2e2;
}

.price-font { font-family: 'Inter', sans-serif; font-weight: 700; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.discount-badge {
    background: linear-gradient(45deg, #ef4444, #f97316);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 90%);
}

/* ===== 常见问题样式 ===== */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.faq-item.active .faq-content {
    max-height: 500px;
    padding-top: 1rem;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
.sidebar-btn.active {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: 700;
}

/* ===== 日期输入框占位符 ===== */
.date-input::placeholder {
    color: #94a3b8;
}

/* ===== 登入页面样式 ===== */
.login-card { transition: all 0.3s ease; }
.tab-active { color: #dc2626; border-bottom: 2px solid #dc2626; }
.reg-tab-active { color: #dc2626; background: #fee2e2; }

/* ===== Toast 提示组件 ===== */
#toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    min-width: 280px;
    max-width: 460px;
    animation: toastSlideIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
    border-left: 4px solid #94a3b8;
    position: relative;
    overflow: hidden;
}
.toast-item.toast-removing {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.toast-item.toast-success { border-left-color: #22c55e; }
.toast-item.toast-error   { border-left-color: #ef4444; }
.toast-item.toast-warning { border-left-color: #f59e0b; }
.toast-item.toast-info    { border-left-color: #3b82f6; }
.toast-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.toast-success .toast-icon { background: #f0fdf4; color: #22c55e; }
.toast-error   .toast-icon { background: #fef2f2; color: #ef4444; }
.toast-warning .toast-icon { background: #fffbeb; color: #f59e0b; }
.toast-info    .toast-icon { background: #eff6ff; color: #3b82f6; }
.toast-message { flex: 1; line-height: 1.5; }
.toast-close {
    background: none; border: none; cursor: pointer;
    color: #94a3b8; font-size: 18px; padding: 0 2px;
    line-height: 1; transition: color 0.2s;
}
.toast-close:hover { color: #475569; }
.toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    border-radius: 0 0 0 14px;
    animation: toastProgress 3s linear forwards;
}
.toast-success .toast-progress { background: #22c55e; }
.toast-error   .toast-progress { background: #ef4444; }
.toast-warning .toast-progress { background: #f59e0b; }
.toast-info    .toast-progress { background: #3b82f6; }
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-20px) scale(0.95); }
}
@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}
