

        * {

            margin: 0;

            padding: 0;

            box-sizing: border-box;

        }



        :root {

            --primary: #2D5A27;

            --primary-light: #3B7233;

            --accent: #8A6D1F;

            --bg: #F8F6F1;

            --card: #FFFFFF;

            --text: #2C2C2C;

            --text-light: #666666;

            --border: #E8E4DC;

            --success: #15803D;

            --danger: #B91C1C;

            --warning: #B45309;

        }



        /* 桌面不裁剪横向溢出：会让根变成滚动容器、破坏吸顶；移动端裁剪见文末 media */

        body {

            font-family: 'Noto Sans SC', sans-serif;

            background: var(--bg);

            color: var(--text);

            line-height: 1.6;

            overflow-anchor: none;

            /* 桌面保持默认，避免破坏吸顶 */

        }



        /* Header */

        .header {

            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);

            color: white;

            padding: 0;

            position: sticky;

            top: 0;

            z-index: 100;

            box-shadow: 0 2px 10px rgba(0,0,0,0.1);

        }



        .header-top {

            display: flex;

            align-items: center;

            justify-content: space-between;

            padding: 15px 20px;

            max-width: 1400px;

            margin: 0 auto;

        }



        .logo {

            display: flex;

            align-items: center;

            gap: 10px;

        }



        .logo-icon {

            width: 65px;

            height: 65px;

            border-radius: 12px;

            display: flex;

            align-items: center;

            justify-content: center;

            overflow: hidden;

        }

        .logo-icon img {

            width: 100%;

            height: 100%;

            object-fit: cover;

        }



        .logo-text {

            text-align: center;

        }

        .logo-text h1 {

            font-size: 24px;

            font-weight: 700;

            letter-spacing: 2px;

            text-align: center;

        }



        .logo-text span {

            font-size: 16px;

            opacity: 0.9;

            text-align: center;

            color: #f59e0b;

        }



        .header-actions {

            display: flex;

            gap: 10px;

            align-items: center;

        }



        .btn {

            padding: 8px 16px;

            border-radius: 8px;

            border: none;

            cursor: pointer;

            font-size: 14px;

            font-weight: 500;

            transition: all 0.2s;

            display: flex;

            align-items: center;

            gap: 5px;

        }



        .btn-outline {

            background: transparent;

            border: 2px solid rgba(255,255,255,0.5);

            color: white;

        }



        .btn-outline:hover {

            background: rgba(255,255,255,0.1);

            border-color: white;

        }



        .btn-primary {

            background: var(--accent);

            color: #fff;

        }



        .btn-primary:hover {

            background: #D4B872;

        }



        /* Search Bar */

        .search-bar {

            background: rgba(255,255,255,0.1);

            padding: 12px 20px;

        }



        .search-container {

            max-width: 800px;

            margin: 0 auto;

            display: flex;

            gap: 10px;

        }

        .hot-search {
            max-width: 800px;
            margin: 8px auto 0;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            padding: 0 4px;
        }

        .hot-search-label {
            font-size: 12px;
            color: #6B7280;
        }

        .hot-search a {
            font-size: 12px;
            color: var(--primary);
            text-decoration: none;
            padding: 3px 10px;
            border-radius: 12px;
            background: rgba(255,255,255,0.15);
            transition: all 0.2s;
        }

        .hot-search a:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-1px);
        }



        .search-input {

            flex: 1;

            padding: 12px 20px;

            border-radius: 25px;

            border: none;

            font-size: 15px;

            background: white;

            outline: none;

        }



        .search-btn {

            padding: 12px 30px;

            background: var(--accent);

            color: #fff;

            border: none;

            border-radius: 25px;

            font-weight: 600;

            cursor: pointer;

        }



        /* Banner */

        .banner {

            background: linear-gradient(135deg, #FFF8E7 0%, #FFF3D6 100%);

            padding: 15px 20px;

            text-align: center;

            border-bottom: 1px solid var(--border);

        }



        .banner-content {

            max-width: 1400px;

            margin: 0 auto;

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 30px;

            flex-wrap: wrap;

        }



        .banner-item {

            display: flex;

            align-items: center;

            gap: 8px;

            font-size: 14px;

            color: var(--text);

        }



        .banner-icon {

            width: 32px;

            height: 32px;

            background: var(--primary);

            color: white;

            border-radius: 50%;

            display: flex;

            align-items: center;

            justify-content: center;

            font-size: 16px;

        }



        /* Navigation */

        .nav-categories {

            background: white;

            padding: 15px 20px;

            overflow-x: auto;

            box-shadow: 0 2px 5px rgba(0,0,0,0.05);

        }



        .nav-container {

            max-width: 1400px;

            margin: 0 auto;

            display: flex;

            gap: 8px;

        }



        .nav-item {

            padding: 8px 20px;

            border-radius: 20px;

            background: var(--bg);

            color: var(--text);

            text-decoration: none;

            font-size: 14px;

            white-space: nowrap;

            cursor: pointer;

            border: 2px solid transparent;

            transition: all 0.2s;

        }



        .nav-item:hover, .nav-item.active {

            background: var(--primary);

            color: white;

        }



        .nav-item.gift {

            background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);

            color: white;

        }



        /* Main Container */

        .main-container {

            max-width: 1400px;

            margin: 0 auto;

            padding: 20px;

            display: grid;

            grid-template-columns: 300px minmax(0, 1fr);

            gap: 20px;

        }



        /* Sidebar */

        .sidebar {

            background: var(--card);

            border-radius: 16px;

            padding: 20px;

            position: sticky;

            top: 140px;

            max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px);

            overflow-y: auto;

            scrollbar-width: thin;

            scrollbar-color: var(--primary-light) #E5E7EB;

        }

        .sidebar::-webkit-scrollbar {

            width: 6px;

        }

        .sidebar::-webkit-scrollbar-track {

            background: #E5E7EB;

            border-radius: 3px;

        }

        .sidebar::-webkit-scrollbar-thumb {

            background: var(--primary-light);

            border-radius: 3px;

        }



        .sidebar-title {

            font-size: 16px;

            font-weight: 600;

            margin-bottom: 20px;

            color: var(--primary);

            display: flex;

            align-items: center;

            gap: 8px;

        }



        .filter-section {

            margin-bottom: 25px;

        }



        .filter-title {

            font-size: 14px;

            font-weight: 600;

            margin-bottom: 12px;

            color: var(--text);

        }



        .filter-options {

            display: flex;

            flex-wrap: wrap;

            gap: 8px;

        }



        .filter-chip {

            padding: 6px 14px;

            border-radius: 15px;

            background: var(--bg);

            border: 1px solid var(--border);

            font-size: 13px;

            cursor: pointer;

            transition: all 0.2s;

        }



        .filter-chip:hover {

            background: #eaf4ea;

            border-color: var(--primary);

            color: var(--primary);

        }

        .filter-chip.selected {

            background: var(--primary);

            color: white;

            border-color: var(--primary);

        }



        .price-range {

            display: flex;

            align-items: center;

            gap: 10px;

        }



        .price-input {

            width: 90px;

            padding: 10px;

            border: 1px solid var(--border);

            border-radius: 8px;

            text-align: center;

            font-size: 14px;

        }



        .price-divider {

            color: var(--text-light);

        }



        .apply-btn {

            width: 100%;

            padding: 12px;

            background: var(--primary);

            color: white;

            border: none;

            border-radius: 10px;

            font-weight: 600;

            cursor: pointer;

            margin-top: 15px;

            transition: background 0.2s;

        }



        .apply-btn:hover {

            background: var(--primary-light);

        }



        /* Products Section */

        .products-section {

            flex: 1;

        }



        .products-header {

            display: flex;

            justify-content: space-between;

            align-items: center;

            margin-bottom: 20px;

            flex-wrap: wrap;

            gap: 10px;

        }



        .results-count {

            font-size: 14px;

            color: var(--text-light);

        }



        .header-controls {

            display: flex;

            gap: 15px;

            align-items: center;

        }



        .sort-select {

            padding: 10px 15px;

            border: 1px solid var(--border);

            border-radius: 8px;

            background: white;

            font-size: 14px;

            cursor: pointer;

        }



        .view-toggle {

            display: flex;

            gap: 5px;

        }



        .view-btn {

            width: 36px;

            height: 36px;

            border: 1px solid var(--border);

            border-radius: 8px;

            background: white;

            cursor: pointer;

            display: flex;

            align-items: center;

            justify-content: center;

            font-size: 16px;

        }



        .view-btn.active {

            background: var(--primary);

            color: white;

            border-color: var(--primary);

        }



        /* Products Grid - List View */

        .products-list {

            display: flex;

            flex-direction: column;

            gap: 15px;

        }



        .product-card {

            background: var(--card);

            border-radius: 16px;

            padding: 20px;

            display: flex;

            gap: 20px;

            transition: all 0.3s;

            box-shadow: 0 2px 10px rgba(0,0,0,0.05);

        }



        .product-card:hover {

            transform: translateY(-2px);

            box-shadow: 0 8px 25px rgba(0,0,0,0.1);

        }



            .product-image {

            width: 180px;

            height: 180px;

            min-width: 180px;

            background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);

            border-radius: 12px;

            display: flex;

            align-items: center;

            justify-content: center;

            position: relative;

        }

            .product-media {

                display: flex;

                flex-direction: column;

                min-width: 180px;

            }

            .img-thumbs { display: none; }

            @media (min-width: 769px) {

                .img-thumbs { display: flex; gap: 6px; margin-top: 8px; width: 180px; }

                .img-thumbs img { flex: 1 1 0; min-width: 0; aspect-ratio: 1 / 1; height: auto; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid #E5E7EB; background: #fff; transition: transform 0.15s ease, border-color 0.15s ease; }

                .img-thumbs img:hover { border-color: #16A34A; transform: scale(1.08); }

                .img-thumbs img.sel { border-color: #16A34A; }

                .product-media .product-image { height: 260px; }

                .product-media .product-image img.main-product-img { height: 260px !important; }

                .product-stores .store-tag { flex: 1 1 0; min-width: 0; justify-content: center; overflow: hidden; }

                .product-content { gap: 7px; }

                .product-actions { margin-top: 6px; }

                .product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); }

            }



        .product-tag {

            position: absolute;

            top: 10px;

            left: 10px;

            padding: 4px 10px;

            border-radius: 12px;

            font-size: 12px;

            font-weight: 600;

        }



        .tag-lowest {

            background: var(--success);

            color: white;

        }



        .tag-gift {

            background: #FF6B6B;

            color: white;

        }



        .tag-hot {

            background: var(--warning);

            color: white;

        }



        .product-img-icon {

            font-size: 70px;

        }



        .product-fav {

            position: absolute;

            top: 10px;

            right: 10px;

            width: 36px;

            height: 36px;

            background: white;

            border-radius: 50%;

            display: flex;

            align-items: center;

            justify-content: center;

            cursor: pointer;

            font-size: 18px;

            box-shadow: 0 2px 8px rgba(0,0,0,0.1);

            transition: all 0.2s;

        }



        .product-fav:hover {

            transform: scale(1.1);

        }



        .product-fav.active {

            background: var(--danger);

            color: white;

        }



        .product-content {

            flex: 1;

            display: flex;

            flex-direction: column;

            gap: 10px;

        }



        .product-name {

            font-size: 18px;

            font-weight: 600;

            line-height: 1.4;

        }



        .product-tags {

            display: flex;

            gap: 8px;

            flex-wrap: wrap;

        }



        .product-tag-small {

            padding: 3px 10px;

            background: var(--bg);

            border-radius: 12px;

            font-size: 12px;

            color: var(--text-light);

        }



        /* Rating Section */

        .product-rating {

            display: flex;

            align-items: center;

            gap: 15px;

        }



        .stars {

            color: var(--warning);

            font-size: 16px;

        }



        .rating-text {

            font-size: 14px;

            color: var(--text-light);

        }



        /* Taste Section */

        .product-taste {

            background: var(--bg);

            padding: 12px 15px;

            border-radius: 10px;

            font-size: 13px;

            color: var(--text-light);

            display: flex;

            gap: 15px;

            flex-wrap: wrap;

        }



        .taste-item {

            display: flex;

            align-items: center;

            gap: 5px;

        }



        .taste-icon {

            font-size: 14px;

        }



        /* Brew Section */

        .product-brew {

            display: flex;

            gap: 20px;

            font-size: 13px;

            color: var(--text-light);

        }



        .brew-item {

            display: flex;

            align-items: center;

            gap: 5px;

        }



        /* Price Section */

        .product-price-section {

            display: flex;

            align-items: flex-end;

            gap: 15px;

            margin-top: auto;

        }



        .price-main {

            display: flex;

            align-items: baseline;

            gap: 5px;

        }



        .price-symbol {

            font-size: 16px;

            color: var(--primary);

        }



        .price-value {

            font-size: 28px;

            font-weight: 700;

            color: var(--primary);

        }



        .price-unit {

            font-size: 14px;

            color: var(--text-light);

        }



        .price-original {

            font-size: 14px;

            color: var(--text-light);

            text-decoration: line-through;

        }



        .price-save {

            font-size: 12px;

            color: var(--danger);

            background: #FEE2E2;

            padding: 2px 8px;

            border-radius: 4px;

        }



        /* Stores Section */

        .product-stores {

            display: flex;

            gap: 8px;

            flex-wrap: wrap;

        }



        .store-tag {

            padding: 6px 12px;

            border-radius: 8px;

            font-size: 13px;

            font-weight: 500;

            display: flex;

            align-items: center;

            gap: 5px;

            cursor: pointer;

            transition: all 0.2s;

        }



        .store-tag:hover {

            transform: translateY(-2px);

            box-shadow: 0 2px 8px rgba(0,0,0,0.15);

        }



        .store-tag.pdd { background: #FF6000; color: white; }

        .store-tag.jd { background: #E2231A; color: white; }

        .store-tag.tmall { background: #FF5000; color: white; }

        .store-tag.taobao { background: #FF6A00; color: white; }

        /* 抖音平台已移除 */

        .price-update-info {
            font-size: 11px;
            color: #6B7280;
            margin-top: 4px;
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .price-update-info::before {
            content: '🕒';
            font-size: 10px;
        }



        .store-price {

            font-weight: 700;

        }



        /* 优惠券与销量（2026-09-14 新增：券/销量此前从未落库，前端也没有展示点） */
        .store-coupon {
            display: inline-block;
            margin-left: 4px;
            padding: 0 5px;
            border-radius: 3px;
            background: rgba(255, 255, 255, 0.92);
            color: #B91C1C;
            font-size: 10px;
            font-weight: 700;
            vertical-align: middle;
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .store-sales {
            display: inline-block;
            margin-left: 4px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 10px;
            vertical-align: middle;
        }

        .coupon-line {
            margin-top: 4px;
            font-size: 11px;
            color: #B91C1C;
            font-weight: 700;
            line-height: 1.4;
        }

        .sales-line {
            margin-top: 2px;
            font-size: 11px;
            color: #6B7280;
            line-height: 1.4;
        }

        /* Actions */

        .product-actions {

            display: flex;

            gap: 10px;

            margin-top: 10px;

        }



        .action-btn {

            padding: 10px 20px;

            border-radius: 10px;

            font-size: 14px;

            font-weight: 600;

            cursor: pointer;

            transition: all 0.2s;

            border: none;

        }



        .action-btn.compare {

            background: var(--primary);

            color: white;

        }



        .action-btn.compare:hover {

            background: var(--primary-light);

        }



        .action-btn.fav {

            background: var(--bg);

            color: var(--text);

            border: 1px solid var(--border);

        }



        .action-btn.fav:hover {

            border-color: var(--danger);

            color: var(--danger);

        }



        /* Grid View */

        .products-grid {

            display: none;

            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

            gap: 20px;

        }



        .products-grid.show {

            display: grid;

        }



        .products-list.hide {

            display: none;

        }



        /* 网格视图：复用真实列表数据，避免展示写死的示例卡片 */

        .products-list.grid-mode {

            display: grid;

            grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));

            gap: 18px;

        }

        .products-list.grid-mode .product-card { margin: 0; }



        .grid-card {

            background: var(--card);

            border-radius: 16px;

            overflow: hidden;

            transition: all 0.3s;

            box-shadow: 0 2px 10px rgba(0,0,0,0.05);

        }



        .grid-card:hover {

            transform: translateY(-5px);

            box-shadow: 0 8px 25px rgba(0,0,0,0.1);

        }



        .grid-image {

            width: 100%;

            height: 200px;

            background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);

            display: flex;

            align-items: center;

            justify-content: center;

            position: relative;

        }



        .grid-img-icon {

            font-size: 60px;

        }



        .grid-info {

            padding: 15px;

        }



        .grid-name {

            font-size: 15px;

            font-weight: 600;

            margin-bottom: 8px;

            display: -webkit-box;

            -webkit-line-clamp: 2;

            -webkit-box-orient: vertical;

            overflow: hidden;

        }



        .grid-stars {

            color: var(--warning);

            font-size: 14px;

            margin-bottom: 8px;

        }



        .grid-price {

            font-size: 20px;

            font-weight: 700;

            color: var(--primary);

        }



        .grid-price span {

            font-size: 14px;

            font-weight: 400;

        }



        .grid-stores {

            display: flex;

            gap: 5px;

            flex-wrap: wrap;

            margin-top: 10px;

        }



        .grid-store {

            padding: 3px 8px;

            border-radius: 4px;

            font-size: 11px;

        }



        /* Compare Modal */

        .modal-overlay {

            position: fixed;

            top: 0;

            left: 0;

            right: 0;

            bottom: 0;

            background: rgba(0,0,0,0.6);

            display: none;

            align-items: center;

            justify-content: center;

            z-index: 1000;

            padding: 20px;

        }



        .modal-overlay.show {

            display: flex;

        }



        .modal {

            background: white;

            border-radius: 20px;

            max-width: 900px;

            width: 100%;

            max-height: 90vh;

            overflow: auto;

        }



        .modal-header {

            padding: 20px;

            border-bottom: 1px solid var(--border);

            display: flex;

            justify-content: space-between;

            align-items: center;

        }



        .modal-header h2 {

            font-size: 18px;

            color: var(--primary);

        }



        .modal-close {

            width: 40px;

            height: 40px;

            border-radius: 50%;

            border: none;

            background: var(--bg);

            font-size: 20px;

            cursor: pointer;

        }



        .modal-body {

            padding: 20px;

        }



        .compare-table {

            width: 100%;

            border-collapse: collapse;

        }



        .compare-table th, .compare-table td {

            padding: 15px 12px;

            text-align: center;

            border-bottom: 1px solid var(--border);

        }



        .compare-table th {

            background: var(--bg);

            font-weight: 600;

            font-size: 14px;

        }



        .compare-table td:first-child {

            text-align: left;

            font-weight: 500;

        }



        .store-thumb {

            width: 60px;

            height: 60px;

            object-fit: cover;

            border-radius: 8px;

            border: 1px solid var(--border);

            display: block;

            margin: 0 auto;

        }



        .store-thumb-placeholder {

            width: 60px;

            height: 60px;

            border-radius: 8px;

            border: 1px solid var(--border);

            display: flex;

            align-items: center;

            justify-content: center;

            font-size: 24px;

            margin: 0 auto;

            background: var(--bg);

        }



        .price-tag {

            font-size: 18px;

            font-weight: 700;

            color: var(--primary);

        }



        .buy-btn {

            display: inline-block;

            padding: 8px 16px;

            background: var(--accent);

            color: #fff;

            text-decoration: none;

            border-radius: 8px;

            font-size: 13px;

            font-weight: 600;

            margin-top: 8px;

            transition: all 0.2s;

        }



        .buy-btn:hover {

            background: #D4B872;

        }



        /* 比价弹窗 - 最低价行高亮 */

        .compare-row-lowest {

            background: linear-gradient(90deg, #F0FFF4 0%, #FFFFFF 100%);

            border-left: 4px solid #22C55E;

        }

        .compare-row-lowest td:first-child {

            padding-left: 8px;

        }

        .lowest-badge {

            display: inline-block;

            padding: 3px 10px;

            background: #22C55E;

            color: white;

            border-radius: 12px;

            font-size: 12px;

            font-weight: 700;

            letter-spacing: 1px;

        }

        .buy-btn-best {

            display: inline-block;

            padding: 10px 24px;

            background: linear-gradient(135deg, #22C55E, #16A34A);

            color: white;

            text-decoration: none;

            border-radius: 8px;

            font-size: 14px;

            font-weight: 700;

            transition: all 0.2s;

            box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);

        }

        .buy-btn-best:hover {

            background: linear-gradient(135deg, #16A34A, #15803D);

            box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);

            transform: translateY(-1px);

        }

        .price-saving {

            font-size: 12px;

            color: #22C55E;

            font-weight: 500;

            margin-top: 4px;

        }



        /* 比价弹窗 - 移动端表格滚动 */

        @media (max-width: 768px) {

            .compare-table-wrapper {

                overflow-x: auto;

                -webkit-overflow-scrolling: touch;

                margin: 0 -20px;

                padding: 0 20px;

            }

            .compare-table {

                min-width: 600px;

            }

            .store-thumb {

                width: 48px;

                height: 48px;

            }

        }



        /* Brew Info Modal */

        .brew-info {

            background: var(--bg);

            border-radius: 12px;

            padding: 20px;

            margin-top: 20px;

        }



        .brew-title {

            font-size: 16px;

            font-weight: 600;

            margin-bottom: 15px;

            display: flex;

            align-items: center;

            gap: 8px;

        }



        .brew-steps {

            display: grid;

            grid-template-columns: repeat(3, 1fr);

            gap: 15px;

        }



        .brew-step {

            background: white;

            padding: 15px;

            border-radius: 10px;

            text-align: center;

        }



        .brew-step-num {

            width: 30px;

            height: 30px;

            background: var(--primary);

            color: white;

            border-radius: 50%;

            display: flex;

            align-items: center;

            justify-content: center;

            margin: 0 auto 10px;

            font-weight: 600;

        }



        .brew-step-title {

            font-size: 14px;

            font-weight: 600;

            margin-bottom: 5px;

        }



        .brew-step-desc {

            font-size: 13px;

            color: var(--text-light);

        }



        /* Favorites Panel */

        .favorites-panel {

            position: fixed;

            top: 0;

            right: -420px;

            width: 420px;

            height: 100vh; height: 100dvh;

            background: white;

            box-shadow: -5px 0 30px rgba(0,0,0,0.2);

            transition: right 0.3s;

            z-index: 1001;

            display: flex;

            flex-direction: column;

        }



        .favorites-panel.show {

            right: 0;

        }



        .fav-header {

            padding: 20px;

            border-bottom: 1px solid var(--border);

            display: flex;

            justify-content: space-between;

            align-items: center;

        }



        .fav-header h3 {

            font-size: 18px;

            display: flex;

            align-items: center;

            gap: 8px;

        }



        .fav-list {

            flex: 1;

            overflow-y: auto;

            padding: 20px;

        }



        .fav-item {

            display: flex;

            gap: 12px;

            padding: 15px;

            background: var(--bg);

            border-radius: 12px;

            margin-bottom: 10px;

        }



        .fav-badge {
            display: inline-block;
            font-size: 11px;
            line-height: 16px;
            padding: 0 6px;
            border-radius: 4px;
            background: #FEF3C7;
            color: #92400E;
            white-space: nowrap;
        }
        .fav-badge-low { background: #DCFCE7; color: #166534; }
        .fav-badge-3p { background: #E0F2FE; color: #075985; }
        .fav-item-img {

            overflow: hidden;
            flex: 0 0 auto;

            width: 70px;

            height: 70px;

            background: #E8F5E9;

            border-radius: 8px;

            display: flex;

            align-items: center;

            justify-content: center;

            font-size: 35px;

        }



        .fav-item-info {

            flex: 1;

        }



        .fav-item-name {

            font-size: 14px;

            font-weight: 500;

            margin-bottom: 4px;

        }



        .fav-item-price {

            font-size: 16px;

            font-weight: 700;

            color: var(--primary);

        }



        .fav-item-remove {

            color: var(--text-light);

            cursor: pointer;

            font-size: 20px;

            padding: 5px;

        }



        .fav-empty {

            text-align: center;

            padding: 60px 20px;

            color: var(--text-light);

        }



        .fav-empty-icon {

            font-size: 60px;

            margin-bottom: 20px;

        }



        /* Footer */

        .footer {

            background: var(--primary);

            color: white;

            padding: 40px 20px;

            margin-top: 40px;

        }



        .footer-content {

            max-width: 1400px;

            margin: 0 auto;

            display: grid;

            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

            gap: 30px;

        }



        .footer-section h4 {

            margin-bottom: 15px;

            font-size: 16px;

        }



        .footer-section p {

            font-size: 14px;

            opacity: 0.8;

            line-height: 1.8;

        }



        .footer a {

            color: #fff;

            text-decoration: underline;

            font-weight: 600;

            transition: color .15s;

        }

        .footer a:hover {

            color: #F5D98A;

        }

        .footer-section h4 {

            color: #F5D98A;

        }

        .footer-bottom {

            text-align: center;

            padding-top: 30px;

            margin-top: 30px;

            border-top: 1px solid rgba(255,255,255,0.2);

            font-size: 13px;

            opacity: 0.7;

        }



        /* Toast */

        .toast {

            position: fixed;

            bottom: 20px;

            left: 50%;

            transform: translateX(-50%) translateY(100px);

            background: var(--primary);

            color: white;

            padding: 12px 24px;

            border-radius: 25px;

            font-size: 14px;

            box-shadow: 0 4px 15px rgba(0,0,0,0.2);

            transition: transform 0.3s;

            z-index: 2000;

        }



        .toast.show {

            transform: translateX(-50%) translateY(0);

        }



        /* ====== 移动端响应式设计 ====== */

        /* Mobile filter toggle button - only visible on mobile */
        .mobile-filter-btn {
            display: none;
        }

        .sidebar-overlay {
            display: none;
        }

        /* Mobile sidebar close button */
        .sidebar-close-btn {
            display: none;
        }

        /* Mobile sidebar apply button */
        .sidebar-apply-btn {
            display: none;
        }

        /* Active filter count badge */
        .filter-badge {
            display: none;
        }

        /* 平板适配 (900px及以下) */
        @media (max-width: 900px) {

            .main-container {
                grid-template-columns: minmax(0, 1fr);
                padding: 10px;
                gap: 10px;
            }

            /* Sidebar becomes slide-in panel */
            .sidebar {
                position: fixed !important;
                top: 0;
                left: -100%;
                width: 85%;
                max-width: 320px;
                height: 100vh; height: 100dvh;
                z-index: 1001;
                overflow-y: auto;
                transition: left 0.3s ease;
                border-radius: 0;
                padding: 56px 16px 80px 16px;
                box-shadow: 2px 0 20px rgba(0,0,0,0.2);
                -webkit-overflow-scrolling: touch;
            }

            .sidebar.mobile-open {
                left: 0;
            }

            /* Close button at top of sidebar */
            .sidebar-close-btn {
                display: none;
                position: fixed;
                top: 12px;
                right: 12px;
                width: 36px;
                height: 36px;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                background: var(--bg);
                border: none;
                font-size: 20px;
                color: var(--text);
                cursor: pointer;
                z-index: 1002;
                box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            }

            .sidebar-close-btn:active {
                transform: scale(0.9);
            }

            /* Apply / view results button at bottom of sidebar */
            .sidebar-apply-btn {
                display: block;
                position: fixed;
                bottom: 0;
                left: -100%;
                width: 85%;
                max-width: 320px;
                padding: 14px;
                text-align: center;
                background: var(--primary);
                color: white;
                border: none;
                font-size: 15px;
                font-weight: 600;
                z-index: 1001;
                transition: left 0.3s ease;
                cursor: pointer;
            }

            .sidebar.mobile-open ~ .sidebar-apply-btn {
                left: 0;
            }

            .sidebar-apply-btn:active {
                opacity: 0.85;
            }

            .sidebar-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0,0,0,0.5);
                z-index: 1000;
            }

            .sidebar-overlay.show {
                display: block;
            }

            /* Mobile filter button */
            .mobile-filter-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 5px;
                position: fixed;
                bottom: 20px;
                left: 20px;
                z-index: 999;
                padding: 12px 20px;
                border-radius: 25px;
                background: var(--primary);
                color: white;
                border: none;
                font-size: 14px;
                font-weight: 600;
                box-shadow: 0 4px 15px rgba(0,0,0,0.2);
                cursor: pointer;
                transition: transform 0.2s;
            }

            .mobile-filter-btn:active {
                transform: scale(0.95);
            }

            /* Active filter count badge */
            .filter-badge {
                display: none;
                position: fixed;
                bottom: 44px;
                left: 56px;
                min-width: 20px;
                height: 20px;
                border-radius: 10px;
                background: #ff4444;
                color: white;
                font-size: 11px;
                font-weight: 700;
                line-height: 20px;
                text-align: center;
                padding: 0 5px;
                z-index: 1000;
                box-shadow: 0 2px 6px rgba(255,0,0,0.3);
            }

            .filter-badge.show {
                display: block;
            }

            /* Product card: horizontal layout */
            .product-card {
                flex-direction: row !important;
                padding: 10px !important;
                gap: 10px !important;
                border-radius: 12px !important;
                margin-bottom: 10px !important;
                align-items: flex-start;
            }

            .product-card:hover {
                transform: none !important;
            }

            /* Product image: small square thumbnail */
            .product-image {
                width: 110px !important;
                min-width: 110px !important;
                height: 110px !important;
                border-radius: 10px !important;
            }

            .product-image img {
                width: 110px !important;
                height: 110px !important;
                border-radius: 10px !important;
                object-fit: cover !important;
            }

            .product-img-icon {
                font-size: 40px !important;
            }

            .product-img-icon[style] {
                width: 110px !important;
                height: 110px !important;
            }

            /* Compact product content */
            .product-content {
                flex: 1;
                padding: 0 !important;
                gap: 5px !important;
                min-width: 0;
            }

            .product-name {
                font-size: 14px !important;
                line-height: 1.3 !important;
                font-weight: 600;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            /* Hide secondary info on mobile */
            .product-tags {
                display: none !important;
            }

            .product-taste {
                display: inline-flex !important;
                font-size: 11px !important;
                padding: 2px 8px !important;
                border-radius: 4px !important;
                background: rgba(139,90,43,0.1);
                color: var(--primary-dark, #8b5a2b);
                white-space: nowrap;
                margin-top: 2px;
            }

            .product-brew {
                display: none !important;
            }

            .product-rating {
                font-size: 12px;
                gap: 5px;
            }

            .product-rating .rating-text {
                font-size: 11px;
            }

            .stars {
                font-size: 12px !important;
            }

            /* Compact price section */
            .product-price-section {
                flex-direction: row !important;
                align-items: center !important;
                gap: 8px !important;
                flex-wrap: wrap;
            }

            .price-symbol {
                font-size: 13px !important;
            }

            .price-value {
                font-size: 20px !important;
            }

            .price-original {
                font-size: 12px !important;
            }

            .price-save {
                font-size: 11px !important;
                padding: 2px 6px !important;
            }

            /* Compact store tags */
            .product-stores {
                flex-wrap: wrap !important;
                gap: 4px !important;
            }

            .store-tag {
                font-size: 11px !important;
                padding: 3px 8px !important;
                border-radius: 6px !important;
            }

            .store-price {
                font-size: 11px !important;
            }

            /* Bigger filter chips for touch */
            .filter-chip {
                padding: 8px 14px !important;
                font-size: 13px !important;
                margin: 0 4px 6px 0 !important;
            }

            .filter-title {
                font-size: 13px !important;
                margin-bottom: 8px !important;
            }

            .filter-section {
                margin-bottom: 16px !important;
            }

            /* Apply button visible on mobile sidebar */
            .apply-btn {
                width: 100% !important;
                padding: 12px !important;
                font-size: 14px !important;
                margin-bottom: 60px !important;
            }

            /* Compact action buttons */
            .product-actions {
                gap: 8px !important;
            }

            .action-btn {
                font-size: 12px !important;
                padding: 7px 14px !important;
                border-radius: 8px !important;
            }

            /* Product tag on image */
            .product-tag {
                font-size: 10px !important;
                padding: 2px 6px !important;
                top: 4px !important;
                left: 4px !important;
            }

            .product-fav {
                width: 28px !important;
                height: 28px !important;
                font-size: 14px !important;
                top: 4px !important;
                right: 4px !important;
            }

            /* Favorites panel full width */
            .favorites-panel {
                width: 100%;
                right: -100%;
            }

            .brew-steps {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 44px;
                height: 44px;
            }

        }

        /* 手机适配 (768px及以下) */
        @media (max-width: 768px) {

            /* Compact header */
            .header-top {
                padding: 8px 12px !important;
            }

            .logo {
                gap: 8px;
            }

            .logo-icon {
                width: 36px !important;
                height: 36px !important;
                border-radius: 8px !important;
            }

            .logo-text h1 {
                font-size: 16px !important;
                letter-spacing: 1px;
            }

            .logo-text span {
                font-size: 11px !important;
            }

            /* Header buttons: icon only */
            .header-actions {
                gap: 6px;
            }

            .header-actions .btn {
                padding: 6px 10px !important;
                font-size: 12px !important;
            }

            /* Compact search bar */
            .search-bar {
                padding: 6px 12px !important;
            }

            .search-container {
                gap: 8px;
            }

            .hot-search {
                overflow-x: auto;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 4px;
            }

            .hot-search a {
                flex-shrink: 0;
            }

            .search-input {
                font-size: 14px !important;
                padding: 8px 10px !important;
            }

            .search-btn {
                padding: 8px 16px !important;
                font-size: 13px !important;
            }

            /* Hide banner on mobile */
            .banner {
                display: none !important;
            }

            /* Nav tabs: horizontal scroll + sticky */
            .nav-categories {
                padding: 0 !important;
                position: sticky !important;
                top: 0;
                z-index: 50;
                background: var(--card, #fff);
                box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            }

            .nav-container {
                padding: 0 10px !important;
                gap: 4px !important;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }

            .nav-container::-webkit-scrollbar {
                display: none;
            }

            .nav-item {
                padding: 8px 12px !important;
                font-size: 13px !important;
                white-space: nowrap !important;
                border-radius: 8px !important;
            }

            /* Products section */
            .main-container {
                padding: 8px !important;
                gap: 8px !important;
            }

            .products-header {
                margin-bottom: 10px !important;
                gap: 8px;
            }

            .results-count {
                font-size: 12px !important;
            }

            .sort-select {
                padding: 6px 10px !important;
                font-size: 12px !important;
                border-radius: 6px !important;
            }

            .view-btn {
                width: 32px !important;
                height: 32px !important;
                font-size: 14px !important;
            }

            /* Grid view cards */
            .products-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }

            .grid-card {
                padding: 8px !important;
                border-radius: 10px !important;
            }

            /* Footer */
            .footer-content {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 20px 15px;
            }

            .footer-section h4 {
                font-size: 14px;
            }

            .footer-section a {
                font-size: 12px;
            }

            /* Favorites panel */
            .favorites-panel {
                width: 100% !important;
                right: -100% !important;
            }

            .favorites-panel.active {
                right: 0 !important;
            }

            .fav-item {
                padding: 10px;
            }

            .fav-item-img {
                width: 60px;
                height: 60px;
                font-size: 30px;
            }

            /* Back to top */
            .back-to-top {
                bottom: 15px;
                right: 15px;
                width: 40px;
                height: 40px;
                font-size: 20px;
            }

        }

        /* 小屏手机适配 (480px及以下) */
        @media (max-width: 480px) {

            .header-top {
                padding: 6px 10px !important;
                padding-top: calc(6px + env(safe-area-inset-top, 0px)) !important;
            }

            .logo-icon {
                width: 32px !important;
                height: 32px !important;
            }

            .logo-text h1 {
                font-size: 15px !important;
            }

            .logo-text span {
                display: none !important;
            }

            .header-actions .btn {
                padding: 5px 8px !important;
                font-size: 11px !important;
            }

            .search-input {
                font-size: 13px !important;
                padding: 6px 8px !important;
            }

            .search-btn {
                padding: 6px 12px !important;
                font-size: 12px !important;
            }

            .nav-item {
                padding: 6px 10px !important;
                font-size: 12px !important;
            }

            /* Even more compact product cards */
            .product-card {
                padding: 8px !important;
                gap: 8px !important;
                border-radius: 10px !important;
            }

            .product-image {
                width: 90px !important;
                min-width: 90px !important;
                height: 90px !important;
            }

            .product-image img {
                width: 90px !important;
                height: 90px !important;
            }

            .product-img-icon[style] {
                width: 90px !important;
                height: 90px !important;
            }

            .product-name {
                font-size: 13px !important;
                -webkit-line-clamp: 2;
            }

            .price-value {
                font-size: 18px !important;
            }

            .store-tag {
                font-size: 10px !important;
                padding: 2px 6px !important;
            }

            .action-btn {
                font-size: 11px !important;
                padding: 6px 12px !important;
            }

            .product-rating .rating-text {
                display: none !important;
            }

            .mobile-filter-btn {
                bottom: 15px;
                left: 15px;
                padding: 10px 16px;
                font-size: 13px;
            }

            .filter-badge {
                bottom: 38px;
                left: 50px;
            }

            .back-to-top {
                bottom: 15px;
                right: 15px;
                width: 38px;
                height: 38px;
                font-size: 18px;
            }

            /* Grid view: 2 columns on small screens (was 1 column) */
            .products-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px !important;
            }

            /* Compact grid cards */
            .grid-card {
                padding: 6px !important;
                border-radius: 8px !important;
            }

            .grid-card .product-image {
                width: 100% !important;
                min-width: 100% !important;
                height: 120px !important;
            }

            .grid-card .product-image img {
                width: 100% !important;
                height: 120px !important;
            }

            /* Safe area bottom padding */
            .main-container {
                padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
            }

        }

        /* 超小屏手机适配 (360px及以下) */
        @media (max-width: 360px) {

            .logo-text h1 {
                font-size: 14px !important;
            }

            .product-image {
                width: 80px !important;
                min-width: 80px !important;
                height: 80px !important;
            }

            .product-image img {
                width: 80px !important;
                height: 80px !important;
            }

            .product-img-icon[style] {
                width: 80px !important;
                height: 80px !important;
            }

            .product-name {
                font-size: 12px !important;
            }

            .price-value {
                font-size: 16px !important;
            }

            .nav-item {
                padding: 5px 8px !important;
                font-size: 11px !important;
            }

            .store-tag {
                font-size: 9px !important;
                padding: 2px 5px !important;
            }

            .action-btn {
                font-size: 10px !important;
                padding: 5px 10px !important;
            }

        }

        /* Empty State */

        /* Empty State */

        .empty-state {

            text-align: center;

            padding: 60px 20px;

            background: var(--card);

            border-radius: 16px;

        }



        .empty-icon {

            font-size: 60px;

            margin-bottom: 20px;

        }



        .empty-text {

            font-size: 16px;

            color: var(--text-light);

        }

        .empty-subtext {
            font-size: 13px;
            color: var(--text-light);
            margin: 8px 0 16px;
        }

        .empty-suggest {
            display: flex;
            gap: 8px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .empty-suggest a {
            font-size: 13px;
            color: var(--primary);
            text-decoration: none;
            padding: 6px 16px;
            border-radius: 20px;
            border: 1px solid var(--primary);
            transition: all 0.2s;
        }

        .empty-suggest a:hover {
            background: var(--primary);
            color: white;
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--primary);
            color: #fff;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.15);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
            z-index: 999;
        }
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        .back-to-top:hover {
            transform: translateY(-4px);
            background: var(--primary-light);
        }

        /* Loading Skeleton */
        .skeleton-card {
            background: var(--card);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border);
        }
        .skeleton-img {
            width: 100%;
            height: 200px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }
        .skeleton-line {
            height: 14px;
            border-radius: 4px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            margin: 10px 16px;
        }
        .skeleton-line.short { width: 60%; }
        .skeleton-line.medium { width: 80%; }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Price Trend Chart */
        .price-trend {
            margin-top: 15px;
            padding: 15px;
            background: #F0F7EE;
            border-radius: 10px;
        }
        .price-trend-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .trend-day-switch {
            display: flex;
            gap: 4px;
        }
        .trend-day-btn {
            padding: 2px 10px;
            border: 1px solid #D4D4D4;
            background: #fff;
            border-radius: 12px;
            font-size: 11px;
            cursor: pointer;
            color: #666;
            transition: all 0.2s;
        }
        .trend-day-btn:hover {
            border-color: var(--primary);
        }
        .trend-day-btn.active {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }
        .price-trend-chart {
            width: 100%;
            height: 120px;
            position: relative;
        }
        .price-trend-info {
            display: flex;
            justify-content: space-between;
            margin-top: 8px;
            font-size: 12px;
            color: var(--text-light);
        }
        .price-trend-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
        }
        .price-trend-badge.low {
            background: #DCFCE7;
            color: #166534;
        }
        .price-trend-badge.high {
            background: #FEE2E2;
            color: #991B1B;
        }

        /* Pagination */
        .pagination-wrap {
            grid-column: 1 / -1;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            padding: 24px 16px;
            flex-wrap: wrap;
            background: #fff;
            border-top: 2px solid var(--primary);
            margin-top: 20px;
            border-radius: 0 0 12px 12px;
        }
        .pagination-btn {
            min-width: 38px;
            height: 38px;
            padding: 0 12px;
            border: 1px solid #e0e0e0;
            background: #fff;
            color: #333;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            user-select: none;
            font-family: inherit;
        }
        .pagination-btn:hover:not(:disabled):not(.active) {
            border-color: #00D4FF;
            color: #00D4FF;
            background: #f0fbff;
        }
        .pagination-btn.active {
            background: #00D4FF;
            color: #fff;
            border-color: #00D4FF;
            box-shadow: 0 0 8px rgba(0,212,255,0.4);
        }
        .pagination-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .pagination-dots {
            color: #6B7280;
            padding: 0 4px;
            font-size: 14px;
        }
        .pagination-info {
            color: var(--primary);
            font-size: 13px;
            margin-left: 16px;
            font-weight: 600;
        }

        .price-ref-tag { display:inline-block; font-size:11px; color:#B45309; background:#FEF3C7; border:1px solid #FDE68A; border-radius:8px; padding:1px 6px; margin-left:6px; white-space:nowrap; vertical-align:middle; }

    
        /* === 首屏价值主张（2026-10-14 新增） === */
        .hero-claim { padding: 8px 20px 4px; text-align: center; }
        .hero-claim h2 { font-size: 20px; font-weight: 700; letter-spacing: .5px; margin: 0 0 5px; color: #fff; }
        .hero-claim p { font-size: 13px; color: rgba(255,255,255,.86); margin: 0 auto; max-width: 660px; line-height: 1.5; }
        .hero-steps { margin: 8px auto 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
        .hero-steps span { font-size: 12.5px; color: #fff; background: rgba(255,255,255,.14); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
        @media (max-width: 640px){ .hero-claim{ padding: 6px 12px 2px; } .hero-claim h2{ font-size: 16px; } .hero-claim p{ font-size: 12px; } }

        /* === 手机端 header 顶部排版修复（2026-10-14）: logo 与按钮各占一行，防 logo 竖排 === */
        @media (max-width: 640px) {
            .header-top { flex-wrap: wrap !important; justify-content: center !important; row-gap: 8px; }
            .logo { flex: 1 1 100% !important; justify-content: center !important; min-width: 0; }
            .logo-text { text-align: center; }
            .logo-text h1 { white-space: nowrap !important; }
            .header-actions { flex: 1 1 100% !important; justify-content: center !important; flex-wrap: wrap !important; row-gap: 6px; }
        }

        /* ===== 2026-10-14 优化新增 ===== */
        .skip-link{position:absolute;left:-9999px;top:0;background:var(--primary);color:#fff;
            padding:10px 20px;border-radius:0 0 10px 0;z-index:99999;font-size:14px;text-decoration:none}
        .skip-link:focus{left:0;top:0;outline:3px solid var(--accent);outline-offset:2px}
        main.main-container:focus{outline:none}

        /* 引流公告条 */
        .promo-bar{background:linear-gradient(90deg,#8A6D1F,#A9822A 55%,#8A6D1F);color:#fff;
            font-size:14px;text-align:center;padding:8px 16px}
        .promo-bar .promo-link{display:inline-flex;align-items:center;gap:10px;color:#fff;
            text-decoration:none;flex-wrap:wrap;justify-content:center}
        .promo-bar .promo-go{background:rgba(255,255,255,.18);padding:2px 12px;border-radius:14px;
            font-size:13px;transition:background .2s}
        .promo-bar .promo-link:hover .promo-go{background:rgba(255,255,255,.32)}

        /* button 版收藏按钮兼容（span 原有的视觉全部保留） */
        button.product-fav{border:none;cursor:pointer;padding:0;font:inherit;line-height:1;
            -webkit-appearance:none;appearance:none}
        button.product-fav:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
        .action-btn:focus-visible,.search-btn:focus-visible,.filter-chip:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

        /* 卡片 hover 上浮（吸引点击） */
        .product-card{transition:transform .18s ease,box-shadow .18s ease}
        .product-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(45,90,39,.13)}

        /* 搜索框聚焦光环 */
        .search-input:focus{outline:none;border-color:var(--accent);
            box-shadow:0 0 0 3px rgba(138,109,31,.22)}

        /* 回到顶部按钮可达性 */
        .back-to-top:focus-visible{outline:3px solid #fff;outline-offset:2px}

    
/* === chabijia bundled css === */

/* MOB_CARD_FIX_0920 : 移动端比价弹窗 -> 卡片式，取消横向滚动，购买按钮全宽 */
@media (max-width: 768px) {
  .compare-table-wrapper { overflow: visible !important; -webkit-overflow-scrolling: auto !important; margin: 0 !important; padding: 0 !important; }
  table.compare-table { min-width: 0 !important; width: 100% !important; display: block !important; }
  table.compare-table thead { display: none !important; }
  table.compare-table tbody { display: block !important; }
  table.compare-table tr { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 6px 12px !important; border: 1px solid var(--border, #E5E7EB) !important; border-radius: 14px !important; padding: 14px !important; margin: 0 0 12px !important; background: #fff !important; }
  table.compare-table tr.compare-row-lowest { border-color: #22C55E !important; background: linear-gradient(135deg, #F0FFF4 0%, #FFFFFF 65%) !important; }
  table.compare-table td { display: block !important; border: none !important; padding: 0 !important; text-align: left !important; }
  table.compare-table td:nth-child(1) { flex: 0 0 100% !important; font-weight: 700 !important; font-size: 15px !important; color: var(--primary, #2D5A27) !important; }
  table.compare-table td:nth-child(2) { flex: 0 0 auto !important; }
  table.compare-table td:nth-child(3) { flex: 1 1 120px !important; }
  table.compare-table td:nth-child(4) { flex: 0 0 auto !important; }
  table.compare-table td:nth-child(5) { flex: 0 0 100% !important; margin-top: 10px !important; }
  table.compare-table .store-thumb { width: 68px !important; height: 68px !important; }
  table.compare-table .price-tag { font-size: 20px !important; }
  table.compare-table .buy-btn,
  table.compare-table .buy-btn-best { display: block !important; width: 100% !important; box-sizing: border-box !important; padding: 13px 16px !important; font-size: 15px !important; text-align: center !important; border-radius: 10px !important; touch-action: manipulation !important; -webkit-tap-highlight-color: rgba(0,0,0,.08) !important; }
  .modal-body { padding: 14px !important; }
}


/* === chabijia bundled css === */

.store-tag.store-missing{background:#F4F4F2;color:#9A9A9A;border:1px dashed #D8D8D4;cursor:default;font-weight:400;display:flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;overflow:hidden;}
.store-tag.store-missing .store-price{color:#B5B5B0;font-weight:400;margin-left:2px;}
.store-tag.store-missing:hover{transform:none;box-shadow:none;}
.grid-store-missing{background:#F4F4F2 !important;color:#9A9A9A !important;border:1px dashed #D8D8D4;opacity:.9;cursor:default;margin:0 4px;}

/* === chabijia bundled css === */

    /* NAV_MERGE_0920 */
    .quick-nav{background:#24501F;border-bottom:1px solid rgba(0,0,0,.18);}
    .quick-nav-in{max-width:1160px;margin:0 auto;padding:9px 16px;display:flex;flex-wrap:wrap;
      gap:6px 22px;align-items:center;justify-content:center;font-size:13.5px;}
    .quick-nav b{color:#C9A962;font-weight:700;letter-spacing:.5px;}
    .quick-nav a{color:#E8F2E4;text-decoration:none;font-weight:600;transition:color .15s;}
    .quick-nav a:hover{color:#FFFFFF;text-decoration:underline;}
    
/* === chabijia bundled css === */
.price-chip{display:inline-block;padding:6px 13px;margin:0 7px 7px 0;border:1px solid #d9e6d4;background:#f3f9f0;border-radius:16px;font-size:12.5px;color:#2D5A27;cursor:pointer;user-select:none;transition:all .12s;}.price-chip:hover{background:#2D5A27;color:#fff;border-color:#2D5A27;}
/* === chabijia bundled css === */

                .today-deals{margin:0 0 18px;}
                .td-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
                .td-title{font-size:19px;font-weight:800;color:#22381C;display:flex;align-items:center;gap:10px;}
                .td-title .td-bar{display:inline-block;width:4px;height:19px;background:linear-gradient(180deg,#FF6A00,#FF3D00);border-radius:2px;}
                .td-sub{font-size:12.5px;color: #6B7280;margin-left:2px;font-weight:400;}
                .td-more{font-size:13px;color:#FF6A00;font-weight:700;text-decoration:none;border:1px solid #FFD4B8;background:#FFF7F0;padding:5px 14px;border-radius:17px;transition:all .12s;}
                .td-more:hover{background:#FF6A00;color:#fff;border-color:#FF6A00;}
        .td-scroll{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;}
        @media (min-width:601px){.td-scroll>*:nth-child(n+6){display:none;}}
                .td-card{background:#fff;border:1px solid #ECECEC;border-radius:12px;overflow:hidden;text-decoration:none;color:inherit;position:relative;display:block;transition:transform .12s,box-shadow .12s,border-color .12s;}
                .td-card:hover{transform:translateY(-3px);box-shadow:0 6px 18px rgba(0,0,0,.10);border-color:#FFD4B8;}
                .td-thumb{width:100%;aspect-ratio:4/3;height:auto;background:#F5F5F3;display:block;object-fit:cover;}
                .td-body{padding:9px 11px 12px;}
                .td-name{font-size:13px;line-height:1.4;height:36px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#333;}
                .td-cat{font-size:11px;color:#A0A0A0;margin:4px 0 3px;}
                .td-price{margin-top:2px;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;}
                .td-now{color:#FF4E00;font-size:18px;font-weight:800;}
                .td-old{color:#C0C0C0;font-size:12px;text-decoration:line-through;}
                .td-save{display:inline-block;font-size:11px;color:#16A34A;font-weight:700;background:#EAF7EC;padding:2px 8px;border-radius:10px;margin-top:6px;}
                .td-badge{position:absolute;top:0;left:0;background:linear-gradient(135deg,#FF6A00,#FF3D00);color:#fff;font-size:12px;font-weight:800;padding:4px 10px 4px 8px;border-radius:12px 0 10px 0;box-shadow:0 1px 3px rgba(255,61,0,.35);z-index:2;}
                .td-new{position:absolute;top:6px;right:6px;background:#16A34A;color:#fff;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:6px;z-index:2;}
                @media (max-width:1100px) and (min-width:601px){.td-scroll{grid-template-columns:repeat(4,1fr);gap:11px;}}
                @media (max-width:600px){
                  .today-deals{margin:0 0 14px;min-width:0;}
                  .td-scroll{padding-left:12px;padding-right:12px;}
                  .td-head{margin-bottom:10px;}
                  .td-title{font-size:17px;gap:8px;}
                  .td-title .td-bar{height:17px;}
                  .td-sub{display:none;}
                  .td-more{font-size:12px;padding:4px 11px;}
                  .td-scroll{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 10px;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;scrollbar-width:none;}
                  .td-scroll::-webkit-scrollbar{display:none;}
                  .td-card{flex:0 0 45%;scroll-snap-align:start;}
                  .td-thumb{aspect-ratio:4/3;}
                  .td-body{padding:8px 9px 10px;}
                  .td-name{font-size:12.5px;height:35px;}
                  .td-now{font-size:16.5px;}
                }
              
/* === chabijia bundled css === */
@keyframes spin{to{transform:rotate(360deg)}}
/* === chabijia bundled css === */


.cbx-contact{max-width:1200px;margin:0 auto;padding:26px 16px 26px;border-top:1px solid #E3E8E3;

  display:flex;flex-wrap:wrap;gap:30px;justify-content:center;align-items:center;}

.cbx-contact .cbx-card{min-width:240px;}

.cbx-contact .cbx-cap{font-size:15px;font-weight:700;color:#1F2937;margin:0 0 10px;}

.cbx-contact p{margin:0 0 8px;font-size:13.5px;color:#374151;line-height:1.6;}

.cbx-contact a.cbx-cp{color:#2D5A27;text-decoration:underline;cursor:pointer;font-weight:600;}

.cbx-contact .cbx-tip{margin-left:8px;font-size:12px;color: #6B7280;}

.cbx-contact .cbx-qr{width:150px;height:150px;display:block;margin:0 auto;border:1px solid #E3E8E3;border-radius:10px;background:#fff;}

.cbx-contact .cbx-hint{font-size:12px;color: #6B7280;margin-top:8px;}

@media (max-width:768px){.cbx-contact{gap:18px;text-align:center;}.cbx-contact .cbx-card{min-width:0;width:100%;}}


/* === chabijia bundled css === */

.lm-mask { position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; align-items:center; justify-content:center; z-index:9999; }
.lm-box { background:#fff; border-radius:14px; padding:22px; width:320px; max-width:90vw; position:relative; box-shadow:0 10px 40px rgba(0,0,0,.2); }
.lm-close { position:absolute; top:8px; right:14px; border:none; background:none; font-size:22px; color: #6B7280; cursor:pointer; line-height:1; }
.lm-tabs { display:flex; gap:8px; margin-bottom:14px; }
.lm-tab { flex:1; border:1px solid #E5E7EB; background:#F9FAFB; color:#4B5563; font-size:13px; padding:6px; border-radius:8px; cursor:pointer; }
.lm-tab.active { background:#2D5A27; color:#fff; border-color:#2D5A27; }
.lm-input { width:100%; box-sizing:border-box; border:1px solid #E5E7EB; border-radius:8px; padding:10px 12px; font-size:14px; margin-bottom:10px; }
.lm-msg { color:#DC2626; font-size:12px; min-height:16px; margin-bottom:6px; }
.lm-submit { width:100%; background:#2D5A27; color:#fff; border:none; padding:10px; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; }
.fav-foot { padding:10px 14px; border-top:1px solid #F0F0F0; font-size:12px; color:#6B7280; line-height:1.7; }
.fav-foot a { color:#2D5A27; font-weight:600; cursor:pointer; }
.fav-item:hover { background:#F6FAF5; }

        /* ===== Mobile card overflow fix (9-16) ===== */
        @media (max-width: 768px) {
            .products-list, .product-grid, .product-card, .product-content { min-width: 0; }
            .product-content { flex: 1 1 0; }
            .product-taste { flex-wrap: wrap; white-space: normal; }
            .taste-item { white-space: normal; }
            .product-stores { flex-wrap: wrap; }
            .product-stores .store-tag { min-width: 0; }
            .product-actions a, .product-actions button { white-space: nowrap; }
            html, body { overflow-x: hidden; }
        }


        /* ===== Mobile card vertical layout + multi-thumb strip (9-16) ===== */
        @media (max-width: 768px) {
            .product-card { flex-direction: column !important; }
            .product-media { width: 100% !important; min-width: 0 !important; flex-direction: column !important; }
            .product-image { width: 100% !important; height: 200px !important; min-width: 0 !important; }
            .product-image img.main-product-img { width: 100% !important; height: 200px !important; }
            .img-thumbs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; margin-top: 8px; padding-bottom: 2px; }
            .img-thumbs img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 8px; border: 2px solid #E5E7EB; }
            .img-thumbs img.sel { border-color: #16A34A; }
            .product-content { width: 100%; }
        }


/* === chabijia bundled css === */

/* 1) 网格视图：列表卡片纵向重排，不再撑爆窄列 */
.products-list.grid-mode{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;}
.products-list.grid-mode .product-card{flex-direction:column;gap:12px;padding:14px;}
.products-list.grid-mode .product-media{width:100%;min-width:0;}
.products-list.grid-mode .product-image,
.products-list.grid-mode .product-media .product-image{width:100%;min-width:0;height:190px !important;}
.products-list.grid-mode .product-image img.main-product-img{height:190px !important;object-fit:cover;}
.products-list.grid-mode .img-thumbs{display:none !important;}
.products-list.grid-mode .product-content{min-width:0;width:100%;}
.products-list.grid-mode .product-stores{display:flex;flex-wrap:wrap;gap:6px;}
.products-list.grid-mode .product-stores>*{flex:1 1 30%;min-width:0;justify-content:center;overflow:hidden;}
/* 商品卡比价区瘦身 2026-11-18：三平台方块固定为单行高度，不让 flex 拉伸撑高整卡（纯CSS，不碰app.js/返佣） */
.products-list.grid-mode .product-stores .store-tag{align-self:flex-start;flex-wrap:nowrap;white-space:nowrap;height:24px;box-sizing:border-box;padding:2px 5px;gap:3px;line-height:15px;}
.products-list.grid-mode .product-stores .store-tag img{width:16px;height:16px;flex:0 0 16px;}
.products-list.grid-mode .product-stores{gap:5px;}
.products-list.grid-mode .product-actions{margin-top:2px;padding-top:0;}
.products-list.grid-mode .product-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px;}
.products-list.grid-mode .product-actions>*{flex:1 1 40%;min-width:0;}
/* 2) 底部站内导航：通栏浅色带 + 三列瀑布排布 */
.cbx-nav{max-width:none;margin:40px 0 0;padding:30px max(20px,calc((100% - 1160px)/2)) 6px;
  background:linear-gradient(180deg,#F5F9F5 0%,#EDF4ED 100%);
  border-top:1px solid #DCE8DC;
  columns:3 300px;column-gap:44px;}
.cbx-nav h2{column-span:all;-webkit-column-span:all;font-size:17px;margin:0 0 20px;font-weight:700;
  color:#1F2937;display:flex;align-items:center;gap:9px;}
.cbx-nav h2::before{content:'';width:4px;height:17px;background:#2D5A27;border-radius:2px;flex:none;}
.cbx-g{break-inside:avoid;-webkit-column-break-inside:avoid;margin:0 0 24px;}
.cbx-nav h3{font-size:13px;color:#4A5D48;margin:0 0 10px;font-weight:700;letter-spacing:.4px;}
.cbx-c{display:flex;flex-wrap:wrap;gap:7px;}
.cbx-l{display:inline-block;padding:5px 12px;background:#FFFFFF;border:1px solid #DFE9DF;
  border-radius:8px;color:#33502F;text-decoration:none;font-size:13px;line-height:1.3;
  box-shadow:0 1px 2px rgba(45,90,39,.05);transition:all .15s ease;}
.cbx-l:hover{background:#2D5A27;border-color:#2D5A27;color:#fff;transform:translateY(-1px);}
.cbx-l em{font-style:normal;color:#93A393;margin-left:5px;font-size:12px;}
.cbx-l:hover em{color:#D8E8D8;}
/* 联系我们与导航带同底色，连成一体（消除中间断层） */
.cbx-contact{background:#EDF4ED;border-top:none !important;margin-top:0 !important;max-width:none !important;padding-bottom:34px !important;} .footer{margin-top:0 !important;} .xx-unused{padding-left:max(20px,calc((100% - 1160px)/2)) !important;padding-right:max(20px,calc((100% - 1160px)/2)) !important;}

/* === chabijia bundled css === */

/* NAV_FOLD_0920 : 底部导航默认折叠 */
.cbx-nav{columns:auto;column-gap:normal;margin:32px 0 0;padding:22px max(20px,calc((100% - 1160px)/2)) 26px;}
.cbx-nav h2{display:none;}
.cbx-fold{max-width:1160px;margin:0 auto;}
.cbx-fold summary{list-style:none;cursor:pointer;text-align:center;font-size:14px;font-weight:700;
  color:#2D5A27;background:#FFFFFF;border:1px solid #DCE8DC;border-radius:10px;
  padding:12px 18px;box-shadow:0 1px 3px rgba(45,90,39,.06);transition:box-shadow .15s;}
.cbx-fold summary::-webkit-details-marker{display:none;}
.cbx-fold summary:hover{box-shadow:0 3px 10px rgba(45,90,39,.12);}
.cbx-fold[open] summary{margin-bottom:18px;border-radius:10px 10px 0 0;}
.cbx-g{break-inside:auto;-webkit-column-break-inside:auto;margin:0 0 16px;}
.cbx-c{display:flex;flex-wrap:wrap;gap:7px;max-height:420px;overflow-y:auto;}


.trust-bar{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 14px;max-width:900px;margin:12px auto 0;padding:9px 16px;font-size:13px;line-height:1.5;color:#eaf2ea;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.16);border-radius:10px;}
.trust-bar b{color:#FFD479;font-weight:700;}
.trust-sep{opacity:.35;}

        /* === 手机端首屏瘦身（2026-10-14 优化 v2）=== */
        @media (max-width: 640px){
            /* 顶部：5 个按钮缩到单行，省一整行（并可横向滑动兜底）*/
            .header-top{ padding: 6px 10px !important; }
            .header-actions{ gap: 4px !important; flex-wrap: nowrap !important; justify-content: flex-start; overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-width: 100%; scrollbar-width: none; padding-bottom: 1px; }
            .header-actions::-webkit-scrollbar{ display: none; }
            .header-actions .btn{ padding: 4px 7px !important; font-size: 11px !important; white-space: nowrap; flex-shrink: 0; }
            .logo-icon{ width: 30px !important; height: 30px !important; }
            .logo-text h1{ font-size: 15px !important; }
            .logo-text span{ font-size: 10.5px !important; }
            /* 价值主张：紧凑 */
            .hero-claim{ padding: 5px 12px 1px !important; }
            .hero-claim h2{ font-size: 15.5px !important; margin: 0 0 3px !important; }
            .hero-claim p{ font-size: 11.5px !important; line-height: 1.35 !important; max-width: 330px !important; }
            /* 3 步引导：压成单行 */
            .hero-steps{ margin: 5px auto 1px !important; gap: 4px !important; flex-wrap: nowrap !important; }
            .hero-steps span{ font-size: 10.5px !important; padding: 2px 7px !important; }
            /* 信任条：手机精简（隐藏第 3 段“每日更新”，信息与副标题重叠）+ 压小 */
            .trust-bar{ margin: 5px auto 0 !important; padding: 4px 10px !important; font-size: 11px !important; line-height: 1.3 !important; gap: 1px 8px !important; }
            .trust-bar span:nth-of-type(4), .trust-bar span:nth-of-type(5){ display: none !important; }
            /* 搜索区：紧凑 + 热门词单行横向滑动 */
            .search-bar{ padding: 5px 10px 4px !important; }
            .hot-search{ margin-top: 5px !important; flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 5px !important; padding-bottom: 2px; }
            .hot-search-label{ flex-shrink: 0; }
            .hot-search a{ flex-shrink: 0; }
        }
        
/* === chabijia bundled css === */

/* ===== 首页首屏升级 v3（2026-10-14）：真实比价实例卡 + 搜索框放大 + 折叠导航 ===== */
/* 1) 真实比价实例卡（深绿 hero 底上的半透明卡） */
.price-demo{max-width:560px;margin:10px auto 2px;padding:10px 14px 9px;background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);border-radius:12px;text-align:left;}
.pd-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:7px;}
.pd-tag{flex:none;font-size:11.5px;font-weight:700;color:#2D5A27;background:#C9A962;border-radius:6px;padding:2px 8px;letter-spacing:.3px;}
.pd-name{font-size:12.5px;color:rgba(255,255,255,.94);font-weight:600;}
.pd-rows{display:flex;flex-direction:column;gap:5px;}
.pd-row{display:flex;align-items:center;gap:10px;padding:5px 11px;border-radius:8px;background:rgba(255,255,255,.07);font-size:13px;color:#fff;}
.pd-row b{flex:none;width:54px;color:#fff;font-weight:700;}
.pd-p{color:#FFD479;font-weight:700;font-size:14px;}
.pd-u{color:rgba(255,255,255,.72);font-size:12px;}
.pd-row em{margin-left:auto;font-style:normal;font-size:11.5px;font-weight:700;color:#12340d;background:#8FE07A;border-radius:999px;padding:1px 9px;}
.pd-best{background:rgba(143,224,122,.15);border:1px solid rgba(143,224,122,.45);}
.pd-foot{margin-top:7px;text-align:center;font-size:11.5px;color:rgba(255,255,255,.82);}
.pd-foot b{color:#FFD479;font-weight:700;}
/* 2) 搜索框：上移后放大，成为首屏最强行动入口 */
.search-bar{padding:14px 20px 12px;}
.search-container{max-width:820px;gap:12px;}
.search-input{padding:15px 24px;font-size:16.5px;border-radius:28px;box-shadow:0 3px 14px rgba(0,0,0,.16);}
.search-btn{padding:15px 40px;font-size:16px;border-radius:28px;font-weight:700;}
.hot-search{margin-top:9px;}
/* 3) 顶部站内导航：折叠为一行，点击展开（链接仍留在 DOM 喂爬虫） */
.qn-fold>summary{list-style:none;cursor:pointer;max-width:1160px;margin:0 auto;padding:9px 16px;
  color:#E8F2E4;font-size:13.5px;font-weight:700;text-align:center;letter-spacing:.3px;transition:color .15s;}
.qn-fold>summary::-webkit-details-marker{display:none;}
.qn-fold>summary::after{content:' ▾';color:#C9A962;font-size:12px;}
.qn-fold[open]>summary::after{content:' ▴';}
.qn-fold>summary:hover{color:#fff;}
.qn-fold .quick-nav-in{padding:2px 16px 10px;}
/* 手机端：实例卡与搜索框同样保持紧凑但醒目 */
@media (max-width:640px){
  .price-demo{max-width:100%;margin:7px auto 1px;padding:8px 10px 7px;border-radius:10px;}
  .pd-head{gap:6px;margin-bottom:6px;}
  .pd-tag{font-size:10.5px;padding:1px 7px;}
  .pd-name{font-size:11px;}
  .pd-rows{gap:4px;}
  .pd-row{gap:7px;padding:4px 8px;font-size:11.5px;border-radius:7px;}
  .pd-row b{width:44px;font-size:11.5px;}
  .pd-p{font-size:13px;}
  .pd-u{font-size:10.5px;}
  .pd-row em{font-size:10px;padding:1px 7px;}
  .pd-foot{margin-top:5px;font-size:10.5px;}
  .search-bar{padding:8px 10px 6px !important;}
  .search-input{padding:12px 16px !important;font-size:15.5px !important;}
  .search-btn{padding:12px 22px !important;font-size:14.5px !important;}
  .hot-search{margin-top:6px !important;}
  .qn-fold>summary{padding:8px 12px;font-size:12.5px;}
  .qn-fold .quick-nav-in{font-size:12.5px;gap:4px 16px;padding:2px 12px 9px;}
}

/* === chabijia bundled css === */

/* ===== 首屏顶部瘦身 v3.2（2026-10-14 晚）：整体压缩顶部占比，让商品更早露出 ===== */
/* 0) 手机专用短副标题（桌面用长版，手机用一行短版） */
.hp-b{display:none;}
/* 1) 实例卡：横向三列，平台名+价格同行、每克价换行（信息不丢，整体更矮） */
.price-demo{max-width:620px;margin:8px auto 2px;padding:8px 14px;}
.pd-head{margin-bottom:6px;}
.pd-rows{display:flex;flex-direction:row;gap:8px;padding-top:6px;}
.pd-row{position:relative;flex:1;min-width:0;display:flex;flex-direction:row;flex-wrap:wrap;
  align-items:baseline;justify-content:center;gap:0 4px;padding:6px 3px;border-radius:8px;text-align:center;}
.pd-row b{width:auto;font-size:12px;}
.pd-p{font-size:14px;}
.pd-u{flex-basis:100%;font-size:10px;}
.pd-row em{position:absolute;top:-7px;left:50%;transform:translateX(-50%);margin:0;font-size:9.5px;padding:0 6px;white-space:nowrap;}
.pd-foot{margin-top:5px;font-size:11px;}
/* 2) 顶部 logo 行收紧 */
.header-top{padding:8px 20px;}
.logo-icon{width:46px;height:46px;border-radius:10px;}
.logo-text h1{font-size:20px;letter-spacing:1.5px;}
.logo-text span{font-size:13.5px;}
/* 3) 价值主张紧凑 */
.hero-claim{padding:6px 20px 3px;}
.hero-claim h2{font-size:19px;margin:0 0 4px;}
.hero-claim p{font-size:12.5px;line-height:1.45;}
/* 4) 搜索区压缩（仍醒目） */
.search-bar{padding:9px 20px 8px;}
.search-container{max-width:800px;gap:10px;}
.search-input{padding:12px 22px;font-size:15.5px;border-radius:24px;box-shadow:0 2px 10px rgba(0,0,0,.12);}
.search-btn{padding:12px 32px;font-size:15px;border-radius:24px;}
.hot-search{margin-top:6px;}
/* 5) 信任条压缩 */
.trust-bar{margin:8px auto 0;padding:6px 14px;font-size:12.5px;line-height:1.4;gap:4px 12px;}
/* 6) 分类导航 / 商品区头部压缩 */
.nav-categories{padding:8px 20px;}
.nav-item{padding:6px 16px;font-size:13.5px;}
.products-header{padding-top:6px;padding-bottom:6px;}
/* 7) 【桌面】价值主张+实例卡 与 搜索框并排 —— 省掉一整块竖向空间 */
@media (min-width:960px){
  .header{display:flex;flex-wrap:wrap;align-items:stretch;}
  .header-top{flex:1 1 100%;}
  .hero-claim{flex:1 1 58%;display:flex;flex-direction:column;justify-content:center;
    padding:11px 18px 11px 26px;text-align:left;}
  .hero-claim h2,.hero-claim p{text-align:left;}
  .price-demo{margin:9px 0 0;max-width:560px;}
  .search-bar{flex:1 1 42%;display:flex;flex-direction:column;justify-content:center;
    background:transparent;padding:11px 26px 11px 18px;max-width:none;}
  .search-container{max-width:100%;margin:0;}
  .hot-search{max-width:100%;margin:9px 0 0;}
  .trust-bar{flex:1 1 100%;}
}
/* 8) 【手机】进一步精简 */
@media (max-width:640px){
  .price-demo{margin:6px auto 1px;padding:6px 9px;}
  .pd-head{margin-bottom:5px;}
  .pd-rows{gap:4px;padding-top:5px;}
  .pd-row{padding:4px 2px;gap:0 3px;}
  .pd-row b{font-size:10.5px;}
  .pd-p{font-size:13px;}
  .pd-u{font-size:9px;}
  .pd-row em{font-size:9px;padding:0 5px;top:-6px;}
  .pd-foot{margin-top:4px;font-size:9.5px;}
  .header-top{padding:3px 8px !important;row-gap:3px;}
  .logo-icon{width:26px !important;height:26px !important;}
  .logo-text h1{font-size:14px !important;}
  .logo-text span{font-size:10px !important;}
  .hero-claim{padding:4px 12px 1px !important;}
  .hero-claim h2{font-size:15px !important;margin:0 0 2px !important;}
  .hero-claim p{font-size:11px !important;line-height:1.3 !important;max-width:340px !important;}
  .search-bar{padding:6px 10px 5px !important;}
  .search-input{padding:10px 15px !important;font-size:15px !important;}
  .search-btn{padding:10px 20px !important;font-size:14px !important;}
  .hot-search{margin-top:5px !important;}
  .trust-bar{margin:3px auto 0 !important;padding:2px 8px !important;font-size:10px !important;line-height:1.2 !important;gap:1px 6px !important;}
  .nav-categories{padding:0 !important;}
  .products-header{padding-top:4px !important;padding-bottom:4px !important;}
  .quick-nav{display:none !important;}   /* 手机隐藏顶部站内导航：底部已有完整版，省首屏空间 */
  .hp-a{display:none !important;}
  .hp-b{display:inline !important;}
}

/* === chabijia bundled css === */

/* ===== 顶部抽屉 v4（2026-10-14）：默认收成一条细栏，鼠标移入/点击展开 ===== */

/* --- 收起态（默认）--- */
.header{ display:block; }                                   /* 停用 v3.2 桌面并排，改回纵向 */
.header-top{ display:flex; align-items:center; justify-content:space-between;
  padding:5px 14px !important; gap:10px; }
.header-top .logo{ flex:0 1 auto; min-width:0; }
.logo-icon{ width:34px !important; height:34px !important; border-radius:8px !important; }
.logo-text h1{ font-size:17px !important; letter-spacing:.5px !important; white-space:nowrap; }
.logo-text span{ display:none !important; }                 /* 收起态藏副标题 */
.header-actions{ display:none !important; }                 /* 5 个功能按钮收起 */
.hero-claim{ display:none !important; }                     /* 价值主张 + 实例卡收起 */
.trust-bar{ display:none !important; }                      /* 信任条收起 */
.hot-search{ display:none !important; }                     /* 热门词收起 */
.search-bar{ display:block !important; background:transparent !important;
  padding:0 !important; }
.search-container{ flex:1 1 auto; max-width:440px; margin:0 0 0 auto !important; gap:8px; }
.search-input{ flex:1 1 auto; min-width:0; padding:9px 16px !important; font-size:14.5px !important;
  border-radius:22px !important; box-shadow:0 2px 8px rgba(0,0,0,.10) !important; }
.search-btn{ padding:9px 20px !important; font-size:14px !important; border-radius:22px !important; }
.hdr-fold-btn{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px;
  border-radius:50%; border:1px solid rgba(255,255,255,.45); background:rgba(255,255,255,.14);
  color:#fff; font-size:14px; line-height:1; cursor:pointer; flex-shrink:0;
  transition:transform .2s, background .2s; }
.hdr-fold-btn:hover{ background:rgba(255,255,255,.26); }

/* --- 展开态（点击 ▾ 展开，所有设备）--- */
.header.hdr-open .header-actions{ display:flex !important; }
.header.hdr-open .hero-claim{ display:block !important; }
.header.hdr-open .trust-bar{ display:flex !important; }
.header.hdr-open .hot-search{ display:flex !important; }
.header.hdr-open .logo-text span{ display:inline !important; }
.header.hdr-open .hdr-fold-btn{ transform:rotate(180deg); }
.header.hdr-open .search-container{ margin:0 !important; }

/* --- 展开态（鼠标悬停，仅桌面精细指针）--- */
@media (hover:hover) and (pointer:fine){
  .header:hover .header-actions{ display:flex !important; }
  .header:hover .hero-claim{ display:block !important; }
  .header:hover .trust-bar{ display:flex !important; }
  .header:hover .hot-search{ display:flex !important; }
  .header:hover .logo-text span{ display:inline !important; }
  .hdr-fold-btn{ display:none !important; }                 /* 桌面靠悬停，不用按钮 */
}

/* --- 手机收起态微调：两行（品牌+箭头一行 / 搜索框整行，输入框更宽敞）--- */
@media (max-width:640px){
  .header-top{ padding:5px 10px !important; flex-wrap:wrap !important;
    justify-content:space-between !important; row-gap:3px !important; }
  .header-top .logo{ order:1; flex:0 1 auto !important; }
  .hdr-fold-btn{ order:2; width:32px; height:32px; }
  .search-container{ order:3; flex:1 1 100% !important; max-width:100% !important; margin:0 !important; gap:6px; }
  .header-actions{ order:4; }
  .logo-icon{ width:30px !important; height:30px !important; }
  .logo-text h1{ font-size:15px !important; }
  .search-input{ padding:8px 13px !important; font-size:14px !important; }
  .search-btn{ padding:8px 16px !important; font-size:13.5px !important; }
}
/* --- 收起态常驻精简 slogan（#366：与展开态 hero-claim 互斥，避免重复）--- */
.hdr-slogan{ display:none; font-size:13px; color:rgba(255,255,255,.92);
  text-align:center; padding:1px 12px 5px; line-height:1.4;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.header:not(.hdr-open):not(:hover) .hdr-slogan{ display:block; }
@media (max-width:640px){
  .hdr-slogan{ font-size:12px; padding:0 10px 4px; }
}

/* 2026-11-10 无障碍：尊重系统「减少动效」偏好，避免闪烁/位移动画引起不适 */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 导航紧凑 2026-11-18：普通项去灰方块、改紧凑文字，选中项保留绿底；纯CSS不碰分类功能 */
#categoryNav .nav-item{background:transparent !important;box-shadow:none !important;border-color:transparent !important;padding:6px 8px !important;min-width:0 !important;height:auto !important;line-height:1.5 !important;border-radius:6px !important;font-size:13px !important;color:#4B5563 !important;}
#categoryNav .nav-item.active{background:#2D5A27 !important;color:#fff !important;padding:6px 10px !important;border-radius:14px !important;}
#categoryNav{gap:2px !important;}
@media(max-width:600px){#categoryNav{padding:0 6px !important;gap:1px !important;}#categoryNav .nav-item{padding:5px 6px !important;font-size:12px !important;}#categoryNav .nav-item.active{padding:5px 8px !important;}}
