
        :root { --primary: #2d8a6e; --primary-light: #e8f5f0; --accent: #f5a623; --accent-light: #fff8e7; --dark: #2c3e50; --text: #5a6c7d; --bg: #f7f9fc; --white: #ffffff; --shadow: 0 4px 20px rgba(45,138,110,0.08); --radius: 16px; }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'PingFang SC','Microsoft YaHei','Helvetica Neue',sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
        a { text-decoration: none; color: inherit; }
        .navbar-custom { background: var(--white); box-shadow: var(--shadow); padding: 0.8rem 0; position: sticky; top: 0; z-index: 1000; }
        .navbar-brand-custom { font-size: 1.5rem; font-weight: 700; color: var(--primary) !important; display: flex; align-items: center; gap: 8px; }
        .brand-icon { width: 36px; height: 36px; background: linear-gradient(135deg,var(--primary),#5bc8a4); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; }
        .nav-link-custom { color: var(--dark) !important; font-weight: 500; padding: 0.5rem 1rem !important; border-radius: 8px; transition: all 0.3s; font-size: 0.95rem; }
        .nav-link-custom:hover, .nav-link-custom.active { background: var(--primary-light); color: var(--primary) !important; }
        .page-header { background: linear-gradient(135deg,#e8f5f0,#d0edd8); padding: 3rem 0 2rem; }
        .page-title { font-size: 2rem; font-weight: 700; color: var(--dark); }
        .page-breadcrumb { font-size: 0.88rem; color: var(--text); margin-top: 0.5rem; }
        .page-breadcrumb a { color: var(--primary); }
        .section { padding: 3rem 0; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

        /* 分类筛选 */
        .category-bar { display: flex; gap: 10px; overflow-x: auto; padding: 1rem 0; margin-bottom: 1.5rem; flex-wrap: wrap; }
        .category-chip { padding: 0.5rem 1.2rem; border-radius: 20px; border: 2px solid #e0ebe7; cursor: pointer; font-size: 0.9rem; transition: all 0.2s; white-space: nowrap; background: var(--white); }
        .category-chip:hover { border-color: var(--primary); color: var(--primary); }
        .category-chip.active { background: var(--primary); border-color: var(--primary); color: white; }

        /* 搜索栏 */
        .search-bar { display: flex; gap: 10px; margin-bottom: 2rem; }
        .search-input { flex: 1; border: 2px solid #e0ebe7; border-radius: 12px; padding: 0.7rem 1rem; font-size: 0.95rem; outline: none; transition: border-color 0.3s; }
        .search-input:focus { border-color: var(--primary); }
        .search-btn { padding: 0.7rem 1.5rem; background: var(--primary); color: white; border: none; border-radius: 12px; cursor: pointer; font-size: 0.95rem; transition: background 0.3s; }
        .search-btn:hover { background: #237a5e; }

        /* 商品网格 */
        .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
        .product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; cursor: pointer; border: 1.5px solid transparent; }
        .product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(45,138,110,0.15); border-color: var(--primary); }
        .product-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: linear-gradient(135deg,var(--primary-light),#d0edd8); position: relative; }
        .product-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: white; padding: 2px 10px; border-radius: 10px; font-size: 0.75rem; font-weight: 600; }
        .product-badge.sold-out-badge { background: #999; top: 40px; }
        .sold-out-tag { font-size: 0.9rem; color: #c0392b; font-weight: 600; padding: 6px 10px; border: 1px dashed #c0392b; border-radius: 10px; }
        .detail-add-btn:disabled { background: #ccc; cursor: not-allowed; }
        .product-body { padding: 1rem; }
        .product-name { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
        .product-desc { font-size: 0.82rem; color: var(--text); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .product-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
        .product-tag { background: var(--primary-light); color: var(--primary); padding: 1px 8px; border-radius: 8px; font-size: 0.72rem; }
        .product-footer { display: flex; align-items: center; justify-content: space-between; }
        .product-price { font-size: 1.1rem; font-weight: 700; color: #e74c3c; }
        .product-price .original { font-size: 0.82rem; color: #aaa; text-decoration: line-through; font-weight: 400; margin-left: 4px; }
        .product-sales { font-size: 0.78rem; color: var(--text); }
        .add-cart-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; border: none; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
        .add-cart-btn:hover { background: #237a5e; }

        /* 购物车抽屉 */
        .cart-drawer { position: fixed; top: 0; right: -400px; width: 380px; height: 100vh; background: var(--white); box-shadow: -4px 0 20px rgba(0,0,0,0.1); z-index: 2000; transition: right 0.3s; display: flex; flex-direction: column; }
        .cart-drawer.open { right: 0; }
        .cart-header { padding: 1.2rem; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; }
        .cart-header h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 0; }
        .cart-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
        .cart-items { flex: 1; overflow-y: auto; padding: 1rem; }
        .cart-item { display: flex; gap: 12px; padding: 0.8rem 0; border-bottom: 1px solid #f0f0f0; }
        .cart-item-emoji { font-size: 2rem; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: 10px; flex-shrink: 0; }
        .cart-item-info { flex: 1; }
        .cart-item-name { font-size: 0.9rem; font-weight: 600; color: var(--dark); }
        .cart-item-price { font-size: 0.88rem; color: #e74c3c; font-weight: 600; }
        .cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
        .qty-btn { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #ddd; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
        .qty-btn:hover { border-color: var(--primary); color: var(--primary); }
        .cart-item-remove { background: none; border: none; color: #ccc; cursor: pointer; font-size: 0.8rem; margin-top: 4px; }
        .cart-item-remove:hover { color: #e74c3c; }
        .cart-footer { padding: 1.2rem; border-top: 1px solid #eee; }
        .cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
        .cart-total-label { font-size: 0.95rem; color: var(--text); }
        .cart-total-price { font-size: 1.3rem; font-weight: 700; color: #e74c3c; }
        .checkout-btn { width: 100%; padding: 0.8rem; background: var(--primary); color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s; }
        .checkout-btn:hover { background: #237a5e; }
        .checkout-btn:disabled { background: #ccc; cursor: not-allowed; }
        .cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text); }
        .cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; }

        /* 商品详情弹窗 */
        .detail-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 3000; display: none; align-items: center; justify-content: center; }
        .detail-overlay.active { display: flex; }
        .detail-modal { background: var(--white); border-radius: var(--radius); width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto; padding: 2rem; position: relative; }
        .detail-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
        .detail-emoji { font-size: 5rem; text-align: center; margin-bottom: 1rem; }
        .detail-name { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
        .detail-price { font-size: 1.3rem; font-weight: 700; color: #e74c3c; margin-bottom: 1rem; }
        .detail-price .original { color: #aaa; text-decoration: line-through; font-size: 0.9rem; margin-left: 8px; }
        .detail-desc { font-size: 0.92rem; color: var(--text); line-height: 1.8; margin-bottom: 1rem; }
        .detail-meta { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--text); }
        .detail-meta span { display: flex; align-items: center; gap: 4px; }
        .detail-add-btn { width: 100%; padding: 0.8rem; background: var(--primary); color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s; }
        .detail-add-btn:hover { background: #237a5e; }
        .detail-add-btn.in-cart { background: var(--accent); }

        /* 结算弹窗 */
        .checkout-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 3000; display: none; align-items: center; justify-content: center; }
        .checkout-overlay.active { display: flex; }
        .checkout-modal { background: var(--white); border-radius: var(--radius); width: 90%; max-width: 500px; max-height: 85vh; overflow-y: auto; padding: 2rem; position: relative; }
        .checkout-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
        .checkout-title { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; }
        .checkout-list { margin-bottom: 1.5rem; }
        .checkout-item { display: flex; align-items: center; gap: 10px; padding: 0.6rem 0; border-bottom: 1px solid #f0f0f0; }
        .checkout-item-emoji { font-size: 1.5rem; }
        .checkout-item-name { flex: 1; font-size: 0.9rem; }
        .checkout-item-qty { font-size: 0.85rem; color: var(--text); }
        .checkout-item-subtotal { font-size: 0.9rem; font-weight: 600; color: #e74c3c; }
        .checkout-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
        .checkout-total-price { color: #e74c3c; }
        .checkout-address { margin-bottom: 1.5rem; }
        .checkout-address label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
        .checkout-address textarea { width: 100%; border: 2px solid #e0ebe7; border-radius: 10px; padding: 0.7rem; font-size: 0.9rem; outline: none; resize: vertical; font-family: inherit; }
        .checkout-address textarea:focus { border-color: var(--primary); }
        .checkout-submit { width: 100%; padding: 0.8rem; background: var(--primary); color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; }
        .checkout-input { width: 100%; box-sizing: border-box; border: 2px solid #e0ebe7; border-radius: 10px; padding: 0.6rem 0.7rem; font-size: 0.9rem; outline: none; margin-bottom: 6px; font-family: inherit; }
        .checkout-input:focus { border-color: var(--primary); }
        .checkout-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.88rem; padding: 4px 0; }
        .addr-option { display: flex; gap: 10px; align-items: flex-start; padding: 0.6rem; border: 1px solid #e0ebe7; border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
        .addr-option input { margin-top: 4px; }
        .addr-option small { color: var(--text); }
        .addr-empty { color: var(--text); font-size: 0.85rem; }

        /* 响应式 */
        @media (max-width: 768px) {
            .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
            .cart-drawer { width: 100%; right: -100%; }
            .page-title { font-size: 1.5rem; }
        }
        @media (max-width: 480px) {
            .product-grid { grid-template-columns: 1fr; }
        }

        .cart-badge { position: relative; }
        .cart-badge .badge-count { position: absolute; top: -8px; right: -8px; background: #e74c3c; color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

        /* 商品评分与评价格 */
        .detail-rating { margin: 0.4rem 0; font-size: 0.95rem; color: #f5a623; }
        .detail-rating .stars { letter-spacing: 2px; }
        .detail-rating .rating-num { color: #f5a623; font-weight: 600; margin: 0 4px; }
        .detail-rating .rating-count { color: #999; font-size: 0.8rem; }
        .detail-review-btn { width: 100%; margin-top: 0.6rem; padding: 0.7rem; background: #fff; color: var(--primary); border: 1px solid var(--primary); border-radius: 12px; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
        .detail-review-btn:disabled { color: #aaa; border-color: #ddd; cursor: not-allowed; }
        .detail-reviews { margin-top: 1rem; max-height: 220px; overflow-y: auto; border-top: 1px solid #f0f0f0; padding-top: 0.6rem; }
        .review-empty { color: #999; font-size: 0.85rem; text-align: center; padding: 0.6rem; }
        .review-item { padding: 0.5rem 0; border-bottom: 1px dashed #eee; }
        .review-item-head { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: #666; }
        .review-user { font-weight: 600; color: #333; }
        .review-stars { color: #f5a623; letter-spacing: 1px; }
        .review-time { margin-left: auto; color: #aaa; }
        .review-content { margin-top: 0.3rem; font-size: 0.9rem; color: #444; }

        /* 写评价弹窗 */
        .review-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 1rem; }
        .review-overlay.active { display: flex; }
        .review-modal { background: white; border-radius: 18px; padding: 1.5rem; width: 100%; max-width: 420px; position: relative; }
        .review-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #999; }
        .review-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
        .review-stars { display: flex; justify-content: center; gap: 6px; font-size: 2rem; color: #ddd; margin-bottom: 1rem; cursor: pointer; }
        .review-stars span.on { color: #f5a623; }
        .review-submit { width: 100%; padding: 0.8rem; background: var(--primary); color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; }

        /* 商品卡片评分 */
        .product-rating { font-size: 0.75rem; color: #f5a623; margin-top: 2px; }
    


.skip-link{position:absolute;left:-9999px;top:0;z-index:9999;padding:.6rem 1rem;background:#2d8a6e;color:#fff;border-radius:0 0 .5rem 0;text-decoration:none;font-size:.9rem}
.skip-link:focus{left:0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #2d8a6e;outline-offset:2px}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
