/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 主容器 */
.mobile-container {
    min-height: 100vh;
    background: transparent;
    position: relative;
}

/* 顶部导航栏 */
.mobile-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 56px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.85) 0%, rgba(79, 70, 229, 0.85) 50%, rgba(59, 130, 246, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000 !important;
    box-shadow: 0 2px 20px rgba(124, 58, 237, 0.25);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: headerShine 3s ease-in-out infinite;
}

.mobile-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #00D4FF, #ffffff, #0066FF);
    animation: headerGlow 2s ease-in-out infinite alternate;
}

@keyframes headerShine {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes headerGlow {
    0% {
        opacity: 0.3;
        transform: scaleY(1);
    }
    100% {
        opacity: 0.8;
        transform: scaleY(2);
    }
}

.header-left, .header-right {
    width: 40px;
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    text-align: center;
}

.site-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    position: relative;
}

.site-title::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00D4FF, #ffffff, #0066FF, #00D4FF);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
}

.mobile-header:hover .site-title::before {
    opacity: 0.6;
}

/* 汉堡菜单按钮 */
.category-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.category-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.category-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.hamburger-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: lineShine 2s ease-in-out infinite;
}

.hamburger-line:nth-child(2)::before {
    animation-delay: 0.2s;
}

.hamburger-line:nth-child(3)::before {
    animation-delay: 0.4s;
}

@keyframes lineShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.category-toggle:hover .hamburger-line {
    background: #f0f0f0;
}

/* 公告按钮 */
.notice-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notice-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.notice-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.notice-btn:hover::before {
    width: 100%;
    height: 100%;
}

.notice-btn i {
    position: relative;
    z-index: 2;
}

/* 公告铃铛摇摆动画 */
.notice-btn:hover i {
    animation: bellRing 0.5s ease-in-out;
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* 公告弹窗 */
.notice-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notice-modal.active {
    opacity: 1;
    visibility: visible;
}

.notice-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notice-modal.active .notice-content {
    transform: translateY(0);
}

.notice-header {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 50%, #3B82F6 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notice-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
}

.notice-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.notice-body p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 遮罩层 */
.modal-overlay, .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active, .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 侧边栏分类 */
.category-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1002;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-sidebar.active {
    left: 0;
}

.category-header {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9) 0%, rgba(79, 70, 229, 0.9) 50%, rgba(59, 130, 246, 0.9) 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 15px rgba(0, 150, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.category-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.category-list {
    padding: 16px 0;
}

.category-item-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f0f0f0;
}

.category-item-mobile:hover {
    background: #f8f9fa;
}

.category-item-mobile.active {
    background: linear-gradient(90deg, rgba(0,212,255,0.15) 0%, rgba(0,102,255,0.15) 100%);
    border-left-color: #7C3AED;
    color: #7C3AED;
    font-weight: 600;
}

.category-name {
    font-size: 15px;
    color: #333;
    flex: 1;
}

.category-count {
    background: #e9ecef;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.category-item-mobile.active .category-count {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    color: white;
}

/* 主内容区 */
.main-content {
    margin-top: 52px;
    padding: 16px;
    min-height: calc(100vh - 56px);
}

/* 商品列表页公告 */
.goods-notice {
    margin-bottom: 18px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(79, 70, 229, 0.1) 50%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 12px;
    animation: noticePulse 3s ease-in-out infinite;
}

.goods-notice-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7C3AED;
    font-size: 14px;
    font-weight: 500;
}

.goods-notice-content i {
    font-size: 16px;
    animation: bellGentle 2s ease-in-out infinite;
}

@keyframes noticePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 150, 255, 0.1);
    }
    50% {
        box-shadow: 0 2px 12px rgba(0, 150, 255, 0.2);
    }
}

@keyframes bellGentle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.05);
    }
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.product-wrapper {
    display: flex;
    padding: 12px;
    gap: 12px;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-title {
    font-size: 15px;
    font-weight: normal;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
}

.original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.delivery-info {
    display: flex;
    align-items: center;
}

.delivery-tag {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.delivery-tag i {
    font-size: 10px;
}

.delivery-tag.auto {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid #10b981;
}

.delivery-tag.auto:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.delivery-tag.manual {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid #3b82f6;
}

.delivery-tag.manual:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.product-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 8px !important;
    width: 100%;
}

.product-footer-separate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 12px 12px;
    margin-top: -8px;
}

.product-stats {
    display: flex !important;
    gap: 12px;
    flex: 1;
}

.stat-item {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item i {
    color: #999;
}

.product-actions {
    display: flex !important;
    justify-content: flex-end !important;
    flex-shrink: 0;
}

.buy-btn {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 50%, #0066FF 100%);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 150, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    text-decoration: none;
    color: white;
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.buy-btn:hover::before {
    left: 100%;
}

/* 隐藏类 */
.d-none {
    display: none !important;
}

/* 响应式优化 */
@media (max-width: 375px) {
    .mobile-header {
        padding: 0 12px;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .product-wrapper {
        padding: 10px;
        gap: 10px;
    }
    
    .product-image {
        width: 70px;
        height: 70px;
    }
    
    .product-footer-separate {
        padding: 0 10px 10px 10px;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    .category-sidebar {
        width: 260px;
        left: -260px;
    }
}

/* 滚动条样式 */
.category-sidebar::-webkit-scrollbar,
.notice-body::-webkit-scrollbar {
    width: 4px;
}

.category-sidebar::-webkit-scrollbar-track,
.notice-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-sidebar::-webkit-scrollbar-thumb,
.notice-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.category-sidebar::-webkit-scrollbar-thumb:hover,
.notice-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 商品购买页面样式 */
/* 全局容器 */
/* ==================== 商品购买页面样式 ==================== */

/* 购买页专用Header */
.goods-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 56px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.95) 0%, rgba(79, 70, 229, 0.95) 50%, rgba(59, 130, 246, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1001 !important; /* 比原header高 */
    box-shadow: 0 2px 20px rgba(124, 58, 237, 0.25);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.goods-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: headerShine 4s ease-in-out infinite;
}

@keyframes headerShine {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.goods-header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.header-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
}

.header-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-back:active {
    transform: translateX(0);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: center;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-placeholder {
    width: 40px;
    height: 40px;
}

.goods-container {
    margin-top: 76px;
    padding: 0 16px;
    background: transparent;
}

/* 商品图片卡片 */
.goods-image-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 20px;
    position: relative;
    padding: 10px;
}

.goods-image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    animation: imageShine 3s ease-in-out infinite;
}

@keyframes imageShine {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.goods-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* 商品信息卡片 */
.goods-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 20px;
    padding-bottom: 2px;
}

.goods-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
}

.goods-container .goods-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    gap: 10px;
}

.goods-container .meta-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.goods-container .meta-right {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    flex: 1;
}

.meta-item {
    display: inline-block;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.meta-item i {
    color: #7C3AED;
}

/* 原有价格区域样式已移除 - 价格现在集成到meta区域 */

/* 购买页面规格选择 */
.goods-container .spec-group {
    margin-bottom: 20px;
}

.goods-container .spec-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.goods-container .meta-item i {
    color: #7C3AED;
}

/* 左列价格样式 */
.goods-container .meta-left .price-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.goods-container .price-item .current-price {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.goods-container .price-item .currency {
    font-size: 12px;
    font-weight: 500;
}

.goods-container .price-item .discount-info {
    font-size: 10px;
    color: #666;
}

.goods-container .spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.goods-container .spec-option {
    padding: 8px 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.goods-container .spec-option:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.goods-container .spec-option.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
    border-color: #7C3AED;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.goods-container .spec-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* 购买页面数量选择 */
.goods-container .quantity-section {
    margin-bottom: 20px;
}

.goods-container .quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    overflow: hidden;
    max-width: 150px;
}

.goods-container .quantity-btn {
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #7C3AED;
    font-size: 16px;
    transition: all 0.3s ease;
}

.goods-container .quantity-btn:hover {
    background: rgba(124, 58, 237, 0.2);
}

.goods-container .quantity-input {
    width: 70px;
    height: 40px;
    border: none;
    border-left: 1px solid rgba(124, 58, 237, 0.2);
    border-right: 1px solid rgba(124, 58, 237, 0.2);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    outline: none;
    background: rgba(255, 255, 255, 0.5);
}

/* 购买页面支付方式 */
.goods-container .payment-section {
    margin-bottom: 20px;
}

.goods-container .payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goods-container .payment-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.goods-container .payment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
}

.goods-container .payment-item:hover::before {
    left: 100%;
}

.goods-container .payment-item:hover {
    background: rgba(124, 58, 237, 0.05);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.goods-container .payment-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: #7C3AED;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.goods-container .payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.goods-container .payment-icon img {
    width: 24px;
    height: 24px;
}

.goods-container .payment-info {
    flex: 1;
}

.goods-container .payment-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.goods-container .payment-desc {
    font-size: 12px;
    color: #666;
}

.goods-container .payment-checked {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #7C3AED;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.goods-container .payment-item.active .payment-checked {
    display: flex;
}

/* 购买页面输入框 */
.goods-container .input-field {
    margin-bottom: 20px;
}

.goods-container .layui-input {
    height: 45px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 15px;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.goods-container .layui-input:focus {
    border-color: #7C3AED !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* 购买页面购买按钮 */
.goods-container .buy-section {
    position: fixed;
    bottom: 12px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 15px;
    padding-top: 5px;
    box-shadow: 0 -8px 25px rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
}

.goods-container .buy-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 50%, #3B82F6 100%);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.goods-container .buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: buyBtnShine 3s ease-in-out infinite;
}

@keyframes buyBtnShine {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.goods-container .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.goods-container .total-price {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    text-align: center;
}

.goods-container .price-display {
    font-size: 18px;
    font-weight: 700;
    color: #7C3AED;
}

/* 购买页面商品详情 */
.goods-container .content-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.goods-container .content-text {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.goods-container .content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* 购买页面底部留空 */
.goods-container .content-spacer {
    height: 150px;
}

/* 动画效果 */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.category-sidebar.active {
    animation: slideInLeft 0.3s ease;
}

.modal-overlay.active,
.sidebar-overlay.active {
    animation: fadeIn 0.3s ease;
}

/* 暂无商品提示 */
.no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.no-products-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.no-products-text {
    font-size: 16px;
    color: #666;
}