/* css/products.css */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        /* 顶部导航 */
        .top-nav {
            background: linear-gradient(to right, #003366, #0066cc);
            color: white;
            padding: 15px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .logo-icon {
            font-size: 2.2rem;
            color: #00ccff;
        }
        
        .logo-text {
            font-size: 1.6rem;
            font-weight: 700;
        }
        
        .logo-subtext {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-top: 3px;
        }
        
        .nav-links {
            display: flex;
            gap: 25px;
        }
        
        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            padding: 8px 15px;
            border-radius: 20px;
            transition: all 0.3s;
        }
        
        .nav-links a:hover, .nav-links a.active {
            background: rgba(255, 255, 255, 0.2);
        }
        
        /* 面包屑导航 */
        .breadcrumb {
            background: #e9ecef;
            padding: 15px 30px;
            font-size: 0.9rem;
            border-bottom: 1px solid #dee2e6;
        }
        
        .breadcrumb a {
            color: #006699;
            text-decoration: none;
        }
        
        .breadcrumb a:hover {
            text-decoration: underline;
        }
        
        /* 主容器 */
        .container {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 250px 1fr;
            gap: 30px;
        }
        
        /* 侧边栏 */
        .sidebar {
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            padding: 25px;
            height: fit-content;
        }
        
        .sidebar h3 {
            color: #003366;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #00aaff;
            font-size: 1.4rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .category-list {
            list-style: none;
            margin-bottom: 30px;
        }
        
        .category-list li {
            padding: 10px 0;
            border-bottom: 1px dashed #eee;
        }
        
        .category-list li:last-child {
            border-bottom: none;
        }
        
        .category-list a {
            color: #555;
            text-decoration: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }
        
        .category-list a:hover {
            color: #006699;
            font-weight: 500;
        }
        
        .category-list a.active {
            color: #006699;
            font-weight: 600;
        }
        
        .category-list .count {
            background: #e1f0ff;
            color: #006699;
            font-size: 0.8rem;
            padding: 2px 8px;
            border-radius: 10px;
        }
        
        .filter-section {
            margin-top: 30px;
        }
        
        .filter-title {
            font-weight: 600;
            color: #003366;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .price-range {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .price-range input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
        }
        
        .apply-btn {
            background: #006699;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 6px;
            cursor: pointer;
            width: 100%;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .apply-btn:hover {
            background: #004d73;
        }
        
        /* 产品网格 */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
        }
        
        /* 产品卡片样式 - 已缩小尺寸 */
        .product-card {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
            transition: all 0.3s;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .product-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .product-image {
            height: 130px;
            overflow: hidden;
            position: relative;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }
        
        .product-card:hover .product-image img {
            transform: scale(1.05);
        }
        
        .product-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            background: #ff6b6b;
            color: white;
            padding: 4px 8px;
            border-radius: 3px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .product-content {
            padding: 15px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .product-category {
            color: #00aaff;
            font-size: 0.8rem;
            margin-bottom: 6px;
            font-weight: 500;
        }
        
        .product-title {
            font-size: 1rem;
            color: #003366;
            margin-bottom: 8px;
            font-weight: 600;
            line-height: 1.3;
        }
        
        .product-description {
            color: #666;
            font-size: 0.85rem;
            margin-bottom: 12px;
            flex-grow: 1;
        }
        
        .product-price {
            font-size: 1.15rem;
            color: #e74c3c;
            font-weight: 700;
            margin-bottom: 12px;
        }
        
        .product-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #777;
            margin-bottom: 12px;
        }
        
        .product-actions {
            display: flex;
            gap: 8px;
        }
        
        .btn-cart {
            background: #006699;
            color: white;
            border: none;
            padding: 8px;
            border-radius: 5px;
            cursor: pointer;
            flex-grow: 1;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 0.9rem;
        }
        
        .btn-cart:hover {
            background: #004d73;
        }
        
        .btn-wishlist {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            color: #555;
            width: 36px;
            height: 36px;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .btn-wishlist:hover {
            background: #fff0f0;
            color: #e74c3c;
            border-color: #ffcccc;
        }
        
        /* 购物车浮动按钮 */
        .cart-float {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: #006699;
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            z-index: 100;
            transition: all 0.3s;
        }
        
        .cart-float:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }
        
        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #e74c3c;
            color: white;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        /* 购物车面板 */
        .cart-panel {
            position: fixed;
            top: 0;
            right: -400px;
            width: 380px;
            height: 100vh;
            background: white;
            box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transition: right 0.4s ease;
            display: flex;
            flex-direction: column;
        }
        
        .cart-panel.active {
            right: 0;
        }
        
        .cart-header {
            background: #003366;
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .cart-close {
            background: transparent;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .cart-body {
            flex-grow: 1;
            overflow-y: auto;
            padding: 20px;
        }
        
        .cart-item {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid #eee;
        }
        
        .cart-item:last-child {
            border-bottom: none;
        }
        
        .cart-item-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .cart-item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .cart-item-details {
            flex-grow: 1;
        }
        
        .cart-item-title {
            font-weight: 600;
            margin-bottom: 5px;
            color: #003366;
        }
        
        .cart-item-price {
            color: #e74c3c;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        .cart-item-actions {
            display: flex;
            gap: 10px;
        }
        
        .quantity-control {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .quantity-btn {
            width: 30px;
            height: 30px;
            background: #f1f9ff;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        .quantity-input {
            width: 40px;
            text-align: center;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 5px;
        }
        
        .remove-btn {
            background: #fff0f0;
            border: 1px solid #ffcccc;
            color: #e74c3c;
            padding: 5px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
        }
        
        .cart-footer {
            padding: 20px;
            border-top: 1px solid #eee;
        }
        
        .cart-total {
            display: flex;
            justify-content: space-between;
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: #003366;
        }
        
        .cart-total .amount {
            color: #e74c3c;
        }
        
        .checkout-btn {
            background: #006699;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 8px;
            width: 100%;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .checkout-btn:hover {
            background: #004d73;
        }
        
        /* 结算模态框 */
        .checkout-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }
        
        .checkout-modal.active {
            opacity: 1;
            visibility: visible;
        }
        
        .checkout-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 30px;
            position: relative;
            transform: translateY(20px);
            transition: transform 0.4s;
        }
        
        .checkout-modal.active .checkout-content {
            transform: translateY(0);
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            background: transparent;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
        }
        
        .checkout-title {
            color: #003366;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #00aaff;
            font-size: 1.8rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .order-summary {
            margin-bottom: 25px;
        }
        
        .order-summary h3 {
            color: #003366;
            margin-bottom: 15px;
        }
        
        .order-items {
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 15px;
            max-height: 200px;
            overflow-y: auto;
        }
        
        .order-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px dashed #eee;
        }
        
        .order-item:last-child {
            border-bottom: none;
        }
        
        .order-total {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            font-size: 1.2rem;
            font-weight: 600;
            color: #003366;
        }
        
        .order-total .amount {
            color: #e74c3c;
        }
        
        .checkout-form {
            margin-top: 25px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #003366;
        }
        
        .form-group input, .form-group textarea, .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
        }
        
        .form-row {
            display: flex;
            gap: 20px;
        }
        
        .form-row .form-group {
            flex: 1;
        }
        
        .submit-order {
            background: #006699;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 8px;
            width: 100%;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .submit-order:hover {
            background: #004d73;
        }
        
        /* 订单成功页面 */
        .order-success {
            text-align: center;
            padding: 40px 20px;
        }
        
        .success-icon {
            font-size: 5rem;
            color: #2ecc71;
            margin-bottom: 20px;
        }
        
        .success-title {
            font-size: 2rem;
            color: #003366;
            margin-bottom: 15px;
        }
        
        .success-message {
            font-size: 1.1rem;
            color: #555;
            margin-bottom: 30px;
            line-height: 1.6;
        }
        
        .order-details {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 20px;
            text-align: left;
            max-width: 500px;
            margin: 0 auto 30px;
        }
        
        .order-details h3 {
            color: #003366;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #dee2e6;
        }
        
        .detail-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        
        .detail-label {
            font-weight: 600;
            color: #555;
        }
        
        .detail-value {
            color: #003366;
        }
        
        .back-to-shop {
            background: #006699;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .back-to-shop:hover {
            background: #004d73;
        }
        
        /* 页脚 */
        .footer {
            background: #003366;
            color: white;
            padding: 40px 0;
            margin-top: 50px;
        }
        
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }
        
        .footer-section h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #00aaff;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: #ccc;
            text-decoration: none;
            transition: all 0.3s;
        }
        
        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }
        
        .contact-info {
            list-style: none;
        }
        
        .contact-info li {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 30px;
            color: #aaa;
        }
        
        /* 响应式设计 */
        @media (max-width: 900px) {
            .container {
                grid-template-columns: 1fr;
            }
            
            .cart-panel {
                width: 100%;
                right: -100%;
            }
            
            .form-row {
                flex-direction: column;
                gap: 0;
            }
        }
        
        @media (max-width: 600px) {
            .top-nav {
                flex-direction: column;
                gap: 15px;
            }
            
            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .products-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 加载动画 */
        .loader {
            display: flex;
            justify-content: center;
            padding: 20px;
        }
        .loader-circle {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #006699;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* 错误提示 */
        .error-message {
            background: #fff0f0;
            border: 1px solid #ffcccc;
            color: #e74c3c;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            grid-column: 1 / -1;
        }
        
        /* 通知 */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 25px;
            border-radius: 8px;
            color: white;
            font-weight: 500;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 2000;
            transform: translateX(120%);
            transition: transform 0.3s ease;
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        .notification.success {
            background: #2ecc71;
        }
        
        .notification.info {
            background: #3498db;
        }
        
        .notification.error {
            background: #e74c3c;
        }
        
        /* 产品高亮样式 - 用于突出显示特定产品 */
        .product-card.highlight {
            animation: highlightBlink 2.5s ease-in-out 3;
            border: 2px solid #0066cc;
            position: relative;
            z-index: 10;
        }

        @keyframes highlightBlink {
            0% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7); }
            50% { box-shadow: 0 0 20px 10px rgba(0, 102, 204, 0.3); }
            100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
        }
        
        /* 空购物车样式 */
        .empty-cart {
            text-align: center;
            padding: 30px;
            color: #666;
        }
        
        .empty-cart i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #ccc;
        }
                /* 发货跟踪模态框 */
        .shipment-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }
/* 支付方式样式 */
#paymentSection {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.payment-method {
    flex: 1;
    min-width: 120px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #4a90e2;
    background-color: #f0f8ff;
}

.payment-method.selected {
    border-color: #4a90e2;
    background-color: #e6f2ff;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.payment-method i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.method-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.method-fee {
    font-size: 0.85rem;
    color: #666;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
    }
}
/* 支付方式选中状态 */
.payment-method.selected {
  border: 2px solid #4CAF50;
  background-color: rgba(76, 175, 80, 0.1);
  transform: scale(1.02);
}

.payment-method {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}
       .order-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: #fff;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 1000;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s ease;
}

.order-notification.show {
    transform: translateX(0);
    opacity: 1;
}
.payment-modal {
    z-index: 10000; /* 确保弹窗显示在最顶层 */
}

