
        :root {
            --bg-primary: #f5f7fa;
            --bg-secondary: rgba(255, 255, 255, 0.95);
            --bg-card: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
            --bg-price-card: linear-gradient(135deg, #FFF5F5 0%, #FFEDED 100%);
            --bg-tip: #FFF7ED;
            --bg-spec-detail: #ffffff;
            --text-primary: #333;
            --text-secondary: #666;
            --text-muted: #999;
            --border-color: #e2e8f0;
            --shadow: rgba(0, 82, 217, 0.1);
            --accent: #0052D9;
            --accent-light: rgba(0, 82, 217, 0.1);
            --price: #dc2626;
            --stock-green: #22c55e;
            --stock-orange: #ff9800;
            --stock-red: #f44336;
            --discount-bg: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
            --countdown-bg: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --bg-primary: #0f172a;
                --bg-secondary: rgba(15, 23, 42, 0.95);
                --bg-card: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
                --bg-price-card: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
                --bg-tip: rgba(30, 41, 59, 0.8);
                --bg-spec-detail: #1e293b;
                --text-primary: #e2e8f0;
                --text-secondary: #cbd5e1;
                --text-muted: #94a3b8;
                --border-color: #334155;
                --shadow: rgba(0, 0, 0, 0.3);
                --accent: #3b82f6;
                --accent-light: rgba(59, 130, 246, 0.2);
                --price: #ef4444;
                --discount-bg: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
                --countdown-bg: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
            }
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
            background: var(--bg-primary);
            min-height: 100vh;
            padding: 20px;
            font-size: 14px;
            color: var(--text-primary);
            transition: background-color 0.3s, color 0.3s;
        }
        .container { max-width: 1400px; margin: 0 auto; }
        
        a { color: inherit; text-decoration: none; }
        a:hover { color: inherit; text-decoration: none; }
        
        .header {
            background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 82, 217, 0.05) 100%);
            padding: 50px 40px;
            border-radius: 24px;
            margin-bottom: 25px;
            box-shadow: 0 20px 60px var(--shadow);
            text-align: center;
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }
        .header h1 {
            font-size: 48px;
            margin-bottom: 12px;
            color: var(--text-primary);
            font-weight: 900;
            letter-spacing: -1px;
            position: relative;
            text-shadow: 0 2px 10px rgba(0, 82, 217, 0.1);
        }
        .header h4 {
            font-size: 18px;
            margin-bottom: 20px;
            color: var(--text-secondary);
            font-weight: 500;
            letter-spacing: 2px;
        }
        .header .meta {
            color: var(--text-secondary);
            font-size: 15px;
            position: relative;
            background: var(--accent-light);
            display: inline-block;
            padding: 10px 28px;
            border-radius: 25px;
            font-weight: 600;
            border: 1px solid rgba(0, 82, 217, 0.2);
        }
        .header::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(0, 82, 217, 0.08) 0%, transparent 60%);
            animation: rotate 30s linear infinite;
        }
        .header::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            opacity: 0.5;
        }
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .header-tips {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        .header-tip {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: var(--text-muted);
            background: rgba(255, 255, 255, 0.5);
            padding: 6px 14px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
        }
        .header-tip .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
        }
        
        .section { margin-bottom: 30px; }
        .section-bar {
            background: var(--bg-secondary);
            padding: 20px 30px;
            border-radius: 16px;
            margin-bottom: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 8px 25px var(--shadow);
            border: 1px solid var(--border-color);
        }
        .section-title {
            font-weight: 900;
            font-size: 20px;
            color: var(--text-primary);
            display: inline-block;
        }
        .section-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }
     
        .section-time {
            color: var(--text-secondary);
            background: var(--accent-light);
            padding: 8px 20px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 500;
        }

        .copy-all-btn {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: #fff;
            text-decoration: none;
            padding: 10px 24px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 14px;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: none;
            cursor: pointer;
        }
        .copy-all-btn:hover {
            background: linear-gradient(135deg, #059669 0%, #10B981 100%);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
            transform: translateY(-2px);
        }
        .copy-all-btn:active {
            transform: translateY(0);
        }
        .copy-all-btn.copied {
            background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
            box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
        }

        .history-section {
            background: var(--bg-secondary);
            backdrop-filter: blur(10px);
            padding: 25px 30px;
            border-radius: 16px;
            margin-top: 40px;
            margin-bottom: 25px;
            box-shadow: 0 5px 20px var(--shadow);
            border: 1px solid var(--border-color);
        }
        .history-title {
            font-weight: 900;
            font-size: 18px;
            color: var(--text-secondary);
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border-color);
        }
        .search-box {
            margin-bottom: 20px;
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .search-input {
            flex: 1;
            padding: 12px 18px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            font-size: 14px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            background: var(--bg-secondary);
            color: var(--text-primary);
        }
        .search-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-light);
        }
        .search-select {
            padding: 12px 18px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            font-size: 14px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            background: var(--bg-secondary);
            color: var(--text-primary);
            cursor: pointer;
        }
        .search-select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-light);
        }
        .search-select:hover {
            border-color: #a0aec0;
        }
        .search-btn {
            background: linear-gradient(135deg, var(--accent) 0%, #0066FF 100%);
            color: white;
            padding: 12px 28px;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(0, 82, 217, 0.2);
        }
        .search-btn:hover {
            background: linear-gradient(135deg, #0066FF 0%, var(--accent) 100%);
            box-shadow: 0 4px 15px rgba(0, 82, 217, 0.35);
            transform: translateY(-2px);
        }
        .search-btn:active {
            transform: translateY(0);
        }
        .clear-filter-btn {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 14px;
            padding: 10px 20px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            white-space: nowrap;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: var(--bg-secondary);
            font-weight: 500;
        }
        .clear-filter-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-light);
            transform: translateY(-1px);
        }
        .clear-filter-btn:active {
            transform: translateY(0);
        }
        
        /* 导出工具栏样式 */
        .export-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
            padding: 15px 20px;
            background: linear-gradient(135deg, rgba(0, 82, 217, 0.05) 0%, rgba(0, 102, 255, 0.05) 100%);
            border-radius: 12px;
            border: 1px solid var(--border-color);
        }
        .export-btn-group, .api-links {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .export-label {
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 600;
        }
        .export-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        .export-btn i {
            font-size: 14px;
        }
        .export-csv {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: white;
        }
        .export-csv:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }
        .export-excel {
            background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
            color: white;
        }
        .export-excel:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
        }
        .export-json {
            background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
            color: white;
        }
        .export-json:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
        }
        .api-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            background: var(--bg-secondary);
            color: var(--accent);
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }
        .api-link:hover {
            border-color: var(--accent);
            background: var(--accent-light);
            transform: translateY(-2px);
        }
        
        /* 价格对比高亮样式 */
        .lowest-price-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-left: 6px;
            padding: 2px 8px;
            background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
            color: white;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
        }
        .new-low-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-left: 6px;
            padding: 2px 8px;
            background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
            color: white;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
            animation: pulse-badge 1.5s infinite;
        }
        @keyframes pulse-badge {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        .high-price-badge {
            display: inline-flex;
            align-items: center;
            margin-left: 6px;
            padding: 2px 6px;
            background: #FEE2E2;
            color: #DC2626;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
        }
        .trend-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            margin-left: 4px;
            padding: 0;
            border: none;
            background: var(--accent-light);
            color: var(--accent);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            vertical-align: middle;
        }
        .trend-btn:hover {
            background: var(--accent);
            color: white;
            transform: scale(1.1);
        }
        
        /* 价格趋势图弹窗 */
        .trend-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            z-index: 3000;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .trend-modal-overlay.active {
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
        }
        .trend-modal {
            background: var(--bg-secondary);
            border-radius: 20px;
            width: 95%;
            max-width: 900px;
            max-height: 85vh;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
            border: 1px solid var(--border-color);
            transform: scale(0.9);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .trend-modal-overlay.active .trend-modal {
            transform: scale(1);
        }
        .trend-modal-header {
            padding: 20px 25px;
            background: linear-gradient(135deg, var(--accent) 0%, #0066FF 100%);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .trend-modal-header h2 {
            color: white;
            font-size: 18px;
            font-weight: 700;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .trend-modal-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        .trend-modal-close:hover {
            background: rgba(255, 255, 255, 0.3);
        }
        .trend-modal-body {
            padding: 25px;
            max-height: calc(85vh - 80px);
            overflow-y: auto;
        }
        .trend-chart-container {
            width: 100%;
            height: 350px;
            position: relative;
        }
        .trend-chart-canvas {
            width: 100%;
            height: 100%;
        }
        .trend-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        .trend-stat-card {
            background: var(--bg-card);
            padding: 15px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            text-align: center;
        }
        .trend-stat-label {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 5px;
        }
        .trend-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
        }
        .trend-stat-value.lowest {
            color: #22C55E;
        }
        .trend-stat-value.highest {
            color: #EF4444;
        }
        .trend-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 300px;
            color: var(--text-muted);
        }
        .trend-loading i {
            font-size: 48px;
            margin-bottom: 15px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .history-items {
            display: block;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        .history-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            background: var(--bg-secondary);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px var(--shadow);
            border: 2px solid var(--border-color);
        }
        .history-table thead {
            background: linear-gradient(135deg, var(--accent) 0%, #0066FF 100%);
        }
        .history-table th {
            color: white;
            padding: 16px 14px;
            text-align: left;
            font-weight: 700;
            font-size: 13px;
            white-space: nowrap;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            position: relative;
        }
        .history-table th:not(:last-child) {
            border-right: 1px solid rgba(255,255,255,0.15);
        }
        .history-table tbody tr {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .history-table tbody tr:nth-child(even) {
            background: rgba(0, 82, 217, 0.03);
        }
        .history-table td {
            padding: 14px;
            border-bottom: 1px solid var(--border-color);
            font-size: 13px;
            color: var(--text-primary);
            font-weight: 500;
        }
        .history-table tbody tr:hover {
            background: var(--accent-light);
            transform: scale(1.005);
            box-shadow: 0 4px 12px rgba(0, 82, 217, 0.1);
        }
        .history-table tbody tr:hover td {
            color: var(--accent);
            font-weight: 600;
        }
        .history-table tr:last-child td {
            border-bottom: none;
        }
        .history-table .price-cell {
            color: var(--price);
            font-weight: 700;
            font-size: 16px;
        }
        .history-table .discount-badge {
            background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
            color: white;
            padding: 5px 10px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 11px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
            letter-spacing: 0.3px;
        }
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid #e5e7eb;
        }
        .pagination a,
        .pagination span {
            padding: 10px 18px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            text-decoration: none;
            color: #666;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 14px;
        }
        .pagination a:hover {
            border-color: #0052D9;
            color: #0052D9;
            background: rgba(0, 82, 217, 0.05);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 82, 217, 0.15);
        }
        .pagination a:active {
            transform: translateY(0);
        }
        .pagination .current {
            background: linear-gradient(135deg, #0052D9 0%, #0066FF 100%);
            color: white;
            border-color: #0052D9;
            box-shadow: 0 2px 8px rgba(0, 82, 217, 0.25);
        }
        .pagination .page-num {
            min-width: 44px;
            text-align: center;
            padding: 10px 14px;
        }
        .pagination .page-ellipsis {
            border: none;
            padding: 10px 6px;
            color: #999;
            cursor: default;
            font-weight: 700;
            background: none;
        }
        .pagination .disabled {
            color: #ccc;
            cursor: not-allowed;
            border-color: #e2e8f0;
        }
        .history-item {
            opacity: 0.85;
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            padding: 20px 25px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 25px;
            transition: all 0.3s;
        }
        .history-item:hover {
            opacity: 1;
            background: #f3f4f6;
            border-color: #0052D9;
            transform: translateX(5px);
        }
        .history-item .item-title {
            flex: 1;
            font-size: 15px;
            font-weight: 600;
            color: #333;
            line-height: 1.4;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .history-item .item-info {
            display: flex;
            gap: 20px;
            align-items: center;
        }
        .history-item .info-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #666;
        }
        .history-item .info-label {
            color: #9ca3af;
            font-weight: 500;
        }
        .history-item .info-value {
            color: #333;
            font-weight: 600;
        }
        .history-item .item-price {
            font-size: 20px;
            color: #dc2626;
            font-weight: 700;
        }
        .history-item .discount-badge {
            background: #9ca3af;
            color: #fff;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }
        .history-item .record-date {
            font-size: 13px;
            color: #999;
            white-space: nowrap;
        }
        @media (max-width: 768px) {
            .history-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            .history-item .item-info {
                flex-wrap: wrap;
                gap: 15px;
            }
        }
        
        .buy-btn {
            background: linear-gradient(135deg, #0052D9 0%, #0066FF 100%);
            color: #fff;
            text-decoration: none;
            padding: 14px 40px;
            border-radius: 16px;
            font-weight: 700;
            display: inline-block;
            box-shadow: 0 4px 15px rgba(0, 82, 217, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 16px;
            position: relative;
            overflow: hidden;
            border: none;
        }
        .buy-btn::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s ease;
        }
        .buy-btn:hover {
            background: linear-gradient(135deg, #0066FF 0%, #0052D9 100%);
            box-shadow: 0 6px 20px rgba(0, 82, 217, 0.4);
            transform: translateY(-2px);
        }
        .buy-btn:hover::before {
            left: 100%;
        }
        .buy-btn:active {
            transform: translateY(0);
        }
        
        .items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
            gap: 25px;
        }
        
        .item {
            background: var(--bg-card);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 8px 25px var(--shadow);
            border: 2px solid var(--border-color);
            transition: all 0.3s ease;
            position: relative;
        }
        .item:hover {
            box-shadow: 0 12px 35px rgba(0, 82, 217, 0.15);
            transform: translateY(-4px);
            border-color: #0052D9;
        }

        .item-buy-btn {
            background: linear-gradient(135deg, #0052D9 0%, #0066FF 100%);
            color: #fff;
            text-decoration: none;
            padding: 12px 32px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 15px;
            box-shadow: 0 4px 15px rgba(0, 82, 217, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: none;
            cursor: pointer;
        }
        .item-buy-btn:hover {
            background: linear-gradient(135deg, #0066FF 0%, #0052D9 100%);
            box-shadow: 0 6px 20px rgba(0, 82, 217, 0.4);
            transform: translateY(-2px);
        }
        .item-buy-btn:active {
            transform: translateY(0);
        }
    .item-buy-btn:disabled,
    .item-buy-btn.disabled {
        opacity: 0.6;
        cursor: not-allowed;
        pointer-events: none;
        transform: none !important;
    }

        .copy-btn {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: #fff;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 15px;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: none;
            cursor: pointer;
        }
        .copy-btn:hover {
            background: linear-gradient(135deg, #059669 0%, #10B981 100%);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
            transform: translateY(-2px);
        }
        .copy-btn:active {
            transform: translateY(0);
        }
        .copy-btn.copied {
            background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
            box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
        }

        .price-info {
            background: var(--bg-price-card);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
            border: 2px solid var(--border-color);
        }
        .price-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        .price-row:last-child {
            margin-bottom: 0;
        }
        .price-row.divider {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px dashed var(--border-color);
        }
        .price-label {
            color: #666;
            font-size: 13px;
        }
        .price-value {
            font-weight: 600;
            color: #333;
        }
        .discount-badge {
            background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
            color: #fff;
            padding: 4px 12px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 14px;
            display: inline-block;
            white-space: nowrap;
        }
        .original-price {
            text-decoration: line-through;
            color: #999;
            font-size: 13px;
        }
        .monthly-price {
            color: #0052D9;
            font-weight: 600;
        }
        .limit-badge {
            background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
            color: #fff;
            padding: 3px 10px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 12px;
            display: inline-block;
        }
        .price-highlight {
            color: #DC2626;
            font-weight: 700;
            font-size: 20px;
        }
        .price-small {
            font-size: 12px;
            color: #DC2626;
        }

        .countdown-badge {
            background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
            color: #fff;
            padding: 4px 12px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 14px;
            display: inline-block;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        .status-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 12px;
        }
        .status-badge.in-progress {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: #fff;
        }
        .status-badge.in-stock {
            background: linear-gradient(135deg, #10B981 0%, #059669 100%);
            color: #fff;
        }
        .status-badge.out-of-stock {
            background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
            color: #fff;
        }
        .status-badge.ended {
            background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
            color: #fff;
        }
        .status-badge.not-started {
            background: #E0F2FE;
            color: #0369A1;
            border: 1px solid #BAE6FD;
        }
        .product-tip {
            background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
            border-left: 4px solid #F97316;
            padding: 14px 18px;
            margin-bottom: 16px;
            font-size: 13px;
            color: #9A3412;
            line-height: 1.7;
            border-radius: 10px;
            border: 1px solid #FED7AA;
            box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
        }
        .product-tip strong {
            font-weight: 700;
            color: #C2410C;
            font-size: 14px;
        }

        .item-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
        }
        .item-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.4;
            flex: 1;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .countdown-wrapper {
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            flex-shrink: 0;
            min-width: max-content;
        }
        .countdown-text {
            font-size: 11px;
            color: #666;
            flex-shrink: 0;
        }
        .countdown-timer {
            font-size: 12px;
            font-weight: 700;
            color: #dc2626;
            background: #fff5f5;
            padding: 2px 5px;
            border-radius: 4px;
            border: 1px solid #fecaca;
            font-family: "Consolas", "Monaco", monospace;
            flex-shrink: 0;
        }
        .item-price-line {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
        }
        .item-price {
            font-size: 28px;
            color: #dc2626;
            font-weight: 700;
            text-align: right;
        }
        .item-price small {
            font-size: 14px;
            color: #991b1b;
        }


        .item-specs { margin-bottom: 16px; }
        .spec {
            display: inline-block;
            background: var(--bg-spec-detail);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            color: var(--text-secondary);
            margin-right: 8px;
            margin-bottom: 8px;
            border: 1px solid var(--border-color);
            white-space: nowrap;
        }
        .spec span {
            color: var(--text-primary);
            font-weight: 600;
        }

        .item-detail {
            background: var(--bg-spec-detail);
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 16px;
            font-size: 13px;
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }
        .detail-line {
            margin-bottom: 8px;
            display: flex;
            flex-wrap: nowrap;
            align-items: baseline;
            white-space: nowrap;
            overflow: hidden;
        }
        .detail-line:last-child { margin-bottom: 0; }
        .detail-line label {
            color: var(--text-muted);
            width: 55px;
            flex-shrink: 0;
        }

        .stock-bar {
            height: 12px;
            background: var(--border-color);
            border-radius: 6px;
            overflow: hidden;
            margin-top: 12px;
            margin-bottom: 8px;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        .stock-fill {
            height: 100%;
            background: #22c55e;
            border-radius: 6px;
            transition: width 0.3s ease;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        .stock-fill.low { background: #ff9800; }
        .stock-fill.critical { background: #f44336; }

        .stock-text {
            font-size: 12px;
            color: #6b7280;
            display: flex;
            justify-content: space-between;
        }
        .stock-text .sold { color: #f44336; }
        .stock-text .remain { color: #10b981; }
        
        .empty {
            background: var(--bg-secondary);
            backdrop-filter: blur(10px);
            padding: 60px;
            text-align: center;
            border-radius: 20px;
            color: var(--text-muted);
            font-size: 16px;
            box-shadow: 0 10px 30px var(--shadow);
            border: 1px solid var(--border-color);
        }
        
        .footer {
            text-align: center;
            color: var(--text-muted);
            font-size: 14px;
            margin-top: 50px;
            padding: 30px;
            background: var(--bg-secondary);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 10px 30px var(--shadow);
            border: 1px solid var(--border-color);
        }
        .footer p {
            margin-bottom: 10px;
        }
        .footer p:last-child {
            margin-bottom: 0;
        }
        .footer .highlight {
            font-weight: 800;
        }
        .footer .highlight:hover {
        }
        
        /* 活动规则浮动按钮 */
        .rule-float-btn {
            position: fixed;
            right: 20px;
            bottom: 100px;
            width: auto;
            height: auto;
            padding: 12px 20px;
            border-radius: 25px;
            background: linear-gradient(135deg, #0052D9 0%, #0066FF 100%);
            color: white;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0, 82, 217, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
            z-index: 1000;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .rule-float-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 25px rgba(0, 82, 217, 0.5);
        }
        .rule-float-btn:active {
            transform: scale(0.95);
        }
        
        /* 活动规则弹窗 */
        .rule-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.35s ease, visibility 0.35s ease;
        }
        .rule-modal-overlay.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        .rule-modal {
            background: var(--bg-secondary);
            border-radius: 20px;
            width: 90%;
            max-width: 820px;
            max-height: 85vh;
            overflow: hidden;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
            border: 1px solid var(--border-color);
            transform: translateY(30px) scale(0.95);
            opacity: 0;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
        }
        .rule-modal-overlay.active .rule-modal {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
        .rule-modal-header {
            padding: 22px 28px;
            background: linear-gradient(135deg, #0052D9 0%, #0066FF 100%);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .rule-modal-header h2 {
            color: white;
            font-size: 20px;
            font-weight: 700;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .rule-modal-header h2 i {
            font-size: 22px;
        }
        .rule-modal-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }
        .rule-modal-close:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: rotate(90deg);
        }
        .rule-modal-body {
            padding: 24px 28px 28px;
            max-height: calc(85vh - 82px);
            overflow-y: auto;
            scroll-behavior: smooth;
        }
        .rule-modal-body::-webkit-scrollbar {
            width: 5px;
        }
        .rule-modal-body::-webkit-scrollbar-thumb {
            background: #d1d5db;
            border-radius: 10px;
        }
        .rule-modal-body::-webkit-scrollbar-track {
            background: transparent;
        }
        
        /* 活动规则内容样式 */
        .uno-section-inner {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
        }
        .uno-section-header {
            display: none;
        }
        .uno-rule-panel {
            background: var(--bg-card);
            border-radius: 12px;
            margin-bottom: 16px;
            border: 1px solid var(--border-color);
            overflow: hidden;
            transition: box-shadow 0.3s ease, border-color 0.3s ease;
        }
        .uno-rule-panel:last-child {
            margin-bottom: 0;
        }
        .uno-rule-panel:hover {
            box-shadow: 0 2px 12px rgba(0, 82, 217, 0.06);
            border-color: #c7d2fe;
        }
        .uno-rule-panel-tit {
            background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%);
            padding: 14px 18px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .uno-rule-panel-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: linear-gradient(135deg, #0052D9 0%, #0066FF 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            flex-shrink: 0;
        }
        .uno-rule-panel-tit-text {
            font-weight: 700;
            font-size: 15px;
            color: #1e293b;
        }
        .uno-rule-panel-con {
            padding: 16px 18px;
        }
        .uno-rule-box {
            margin-bottom: 18px;
        }
        .uno-rule-box:last-child {
            margin-bottom: 0;
        }
        .uno-rule-box-tit {
            font-weight: 700;
            font-size: 14px;
            color: var(--accent);
            margin-bottom: 10px;
            padding: 6px 0 6px 12px;
            border-left: 3px solid var(--accent);
            background: linear-gradient(90deg, rgba(0,82,217,0.04) 0%, transparent 100%);
            border-radius: 0 6px 6px 0;
        }
        .uno-rule-box-con {
            padding-left: 15px;
        }
        .uno-rule-text {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.9;
            margin-bottom: 10px;
        }
        .uno-rule-text:last-child {
            margin-bottom: 0;
        }
        .uno-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .uno-item {
            position: relative;
            padding-left: 18px;
            margin-bottom: 10px;
        }
        .uno-item:last-child {
            margin-bottom: 0;
        }
        .uno-icon-list {
            position: absolute;
            left: 0;
            top: 9px;
            width: 7px;
            height: 7px;
            background: var(--accent);
            border-radius: 50%;
            opacity: 0.7;
        }
        .uno-link {
            font-weight: 600;
            border-bottom: 1px dashed #d1d5db;
        }
        .uno-link:hover {
            border-bottom-color: #9ca3af;
        }
        
        /* 免责声明提示 */
        .disclaimer-banner {
            background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
            border: 2px solid #F59E0B;
            border-radius: 16px;
            padding: 18px 24px;
            margin-bottom: 25px;
            display: flex;
            align-items: flex-start;
            gap: 14px;
            box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
            position: relative;
            overflow: hidden;
        }
        .disclaimer-banner::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #F59E0B, #D97706);
        }
        .disclaimer-banner .content {
            flex: 1;
        }
        .disclaimer-banner .title {
            font-weight: 700;
            color: #92400E;
            font-size: 16px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .disclaimer-banner .title::after {
            content: "IMPORTANT";
            font-size: 10px;
            padding: 2px 8px;
            background: #F59E0B;
            color: white;
            border-radius: 10px;
            letter-spacing: 0.5px;
        }
        .disclaimer-banner .text {
            color: #78350F;
            font-size: 13px;
            line-height: 1.8;
        }
        .disclaimer-banner .text strong {
            font-weight: 700;
            color: #92400E;
            background: rgba(255, 255, 255, 0.5);
            padding: 1px 4px;
            border-radius: 3px;
        }
        
        @media (max-width: 768px) {
            body { padding: 15px; }
            .items { grid-template-columns: 1fr; }
            .header h1 { font-size: 32px; }
            .item-price { font-size: 24px; }
            .item-price {
                text-align: left;
                margin-top: 8px;
            }
            
            /* 移动端卡片式历史记录 */
            .history-table {
                display: none; /* 隐藏表格 */
            }
            
            /* 移动端卡片列表 */
            .history-mobile-cards {
                display: block;
            }
            .history-card {
                background: var(--bg-card);
                border-radius: 16px;
                padding: 20px;
                margin-bottom: 15px;
                border: 2px solid var(--border-color);
                box-shadow: 0 4px 15px var(--shadow);
                transition: all 0.3s ease;
            }
            .history-card:hover {
                border-color: var(--accent);
                transform: translateY(-2px);
            }
            .history-card-header {
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                margin-bottom: 15px;
                padding-bottom: 12px;
                border-bottom: 1px solid var(--border-color);
            }
            .history-card-title {
                font-size: 15px;
                font-weight: 700;
                color: var(--text-primary);
                flex: 1;
                line-height: 1.4;
                min-width: 0;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .history-card-price {
                text-align: right;
                flex-shrink: 0;
                margin-left: 15px;
            }
            .history-card-price .price {
                font-size: 22px;
                font-weight: 700;
                color: #dc2626;
            }
            .history-card-price .discount {
                font-size: 12px;
                color: #999;
                text-decoration: line-through;
            }
            .history-card-body {
                display: none; /* 默认折叠 */
            }
            .history-card-body.expanded {
                display: block;
            }
            .history-card-specs {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
                margin-bottom: 15px;
            }
            .history-card-spec {
                background: var(--accent-light);
                padding: 8px 12px;
                border-radius: 8px;
                font-size: 12px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .history-card-spec-label {
                color: var(--text-muted);
                font-weight: 500;
            }
            .history-card-spec-value {
                color: var(--text-primary);
                font-weight: 600;
            }
            .history-card-footer {
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 12px;
                color: var(--text-muted);
                padding-top: 12px;
                border-top: 1px solid var(--border-color);
            }
            .history-card-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 5px;
                padding: 8px 16px;
                background: var(--accent-light);
                border: none;
                border-radius: 8px;
                color: var(--accent);
                font-size: 12px;
                font-weight: 600;
                cursor: pointer;
                width: 100%;
                margin-top: 12px;
                transition: all 0.3s ease;
            }
            .history-card-toggle:hover {
                background: var(--accent);
                color: white;
            }
            .history-card-toggle i {
                transition: transform 0.3s ease;
            }
            .history-card-toggle.expanded i {
                transform: rotate(180deg);
            }
            
            /* 价格徽章在移动端的样式 */
            .history-card .lowest-price-badge,
            .history-card .new-low-badge {
                margin-left: 0;
                margin-top: 5px;
                display: inline-flex;
            }
            /* 移动端趋势按钮样式 - 简洁版 */
            .history-card .trend-btn {
                display: inline-flex !important; /* 移动端显示趋势按钮 */
                align-items: center;
                justify-content: center;
                width: 24px;
                height: 24px;
                margin-left: 4px;
                margin-top: 0;
                padding: 0;
                border: none;
                background: var(--accent-light);
                color: var(--accent);
                border-radius: 4px;
                cursor: pointer;
                transition: all 0.3s ease;
                vertical-align: middle;
                font-size: 12px;
            }
            
            .history-card .trend-btn:hover {
                background: var(--accent);
                color: white;
                transform: scale(1.05);
            }
            
            /* 导出工具栏移动端适配 */
            .export-toolbar {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }
            .export-btn-group, .api-links {
                justify-content: center;
            }
            .export-btn {
                padding: 10px 14px;
                font-size: 12px;
            }
            .api-link {
                padding: 8px 12px;
                font-size: 12px;
            }
            
            .pls-floatbar { display: none !important; }
        }
        
        /* 移动端卡片列表（桌面端隐藏） */
        .history-mobile-cards {
            display: none;
        }
        
        @media (max-width: 768px) {
            .history-mobile-cards {
                display: block;
            }
            .history-items .history-table {
                display: none;
            }
        }

        /* 浮动工具栏样式 */
        .pls-floatbar {
            position: fixed;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .pls-floatbar-item {
            position: relative;
        }
        .pls-floatbar-button {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 72px;
            height: 72px;
            background: var(--bg-secondary);
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow);
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
            color: var(--text-primary);
        }
        .pls-floatbar-button:hover {
            transform: translateX(-4px);
            box-shadow: 0 8px 30px var(--shadow);
            border-color: var(--accent);
        }
        .pls-floatbar-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            margin-bottom: 4px;
            object-fit: cover;
        }
        .pls-floatbar-icon-qrcode2 {
            display: inline-block;
            border-radius: 50%;
            margin-bottom: 4px;
        }
        .pls-floatbar .bi {
            font-size: 24px;
            margin-bottom: 4px;
            color: var(--accent);
        }
        .pls-floatbar-button-desc {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        /* 入群有礼弹窗 */
        .uno-floatbar-modal {
            position: absolute;
            right: 85px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--bg-secondary);
            border-radius: 16px;
            box-shadow: 0 10px 40px var(--shadow);
            border: 1px solid var(--border-color);
            padding: 20px;
            width: 300px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .uno-floatbar-modal.show {
            opacity: 1;
            visibility: visible;
        }
        .uno-floatbar-modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 24px;
            height: 24px;
            background: var(--accent-light);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .uno-floatbar-modal-close::before,
        .uno-floatbar-modal-close::after {
            content: "";
            position: absolute;
            width: 12px;
            height: 2px;
            background: var(--accent);
            border-radius: 1px;
        }
        .uno-floatbar-modal-close::before { transform: rotate(45deg); }
        .uno-floatbar-modal-close::after { transform: rotate(-45deg); }
        .uno-floatbar-modal-item {
            display: flex;
            gap: 16px;
            align-items: center;
        }
        .uno-floatbar-modal-qrcode {
            width: 120px;
            height: 120px;
            border-radius: 12px;
            overflow: hidden;
            border: 2px solid var(--border-color);
            flex-shrink: 0;
        }
        .uno-floatbar-modal-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .uno-floatbar-modal-content-tit {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }
        .uno-floatbar-modal-content-tit .uno-text-normal {
            color: var(--accent);
        }
        .uno-floatbar-modal-content-desc {
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.6;
        }
        .uno-floatbar-modal-content-desc .uno-text-normal {
            color: #F59E0B;
            font-weight: 600;
        }

        /* 气泡弹窗 */
        .pls-floatbar-bubble {
            position: absolute;
            right: 85px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--bg-secondary);
            border-radius: 16px;
            box-shadow: 0 10px 40px var(--shadow);
            border: 1px solid var(--border-color);
            padding: 16px;
            width: 280px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .pls-floatbar-bubble.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(-50%) translateX(0);
        }
        .pls-floatbar-bubble-item {
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 8px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }
        .pls-floatbar-bubble-item:last-child {
            margin-bottom: 0;
        }
        .pls-floatbar-bubble-item:hover {
            border-color: var(--accent);
            transform: translateX(-4px);
        }
        .pls-floatbar-bubble-item a {
            text-decoration: none;
            color: inherit;
        }
        .pls-floatbar-bubble-head {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }
        .pls-floatbar-bubble-icon {
            width: 28px;
            height: 28px;
        }
        .pls-floatbar-bubble-title {
            font-weight: 700;
            font-size: 14px;
            color: var(--text-primary);
        }
        .pls-floatbar-bubble-desc {
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.5;
        }
        .pls-floatbar-bubble-more {
            text-align: center;
            padding-top: 8px;
        }
        .pls-floatbar-bubble-more a {
            font-size: 12px;
            font-weight: 500;
        }
        .pls-floatbar-bubble-more a:hover {
            text-decoration: none;
        }

        /* 二维码弹窗 */
        .pls-floatbar-qrcode-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 72px;
            height: 72px;
            background: linear-gradient(135deg, #0052D9 0%, #0066FF 100%);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            border: none;
            outline: none;
        }
        .pls-floatbar-qrcode-wrap:hover {
            transform: translateX(-4px);
            box-shadow: 0 8px 30px rgba(0, 82, 217, 0.4);
        }
        .pls-floatbar-qrcode-wrap:focus,
        .pls-floatbar-qrcode-wrap:active {
            outline: none;
            border: none;
        }
        .uno-floatbar-icon-qrcode2 {
            width: 28px;
            height: 28px;
            background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27white%27%3E%3Cpath d=%27M3 3h6v6H3V3zm2 2v2h2V5H5zm8-2h6v6h-6V3zm2 2v2h2V5h-2zM3 13h6v6H3v-6zm2 2v2h2v-2H5zm13-2h1v1h-1v-1zm-3 0h1v1h-1v-1zm1 1h1v1h-1v-1zm2 0h1v1h-1v-1zm1 1h1v1h-1v-1zm-3 0h1v1h-1v-1zm0 2h1v1h-1v-1zm2 0h1v1h-1v-1zm2 0h1v1h-1v-1zm-5 1h1v1h-1v-1zm3 0h1v1h-1v-1zm-2 1h1v1h-1v-1z%27/%3E%3C/svg%3E") center/contain no-repeat;
        }
        .pls-floatbar-text {
            font-size: 10px;
            color: white;
            font-weight: 600;
            margin-top: 2px;
        }
        .uno-floatbar-modal {
            position: absolute;
            right: 85px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--bg-secondary);
            border-radius: 16px;
            box-shadow: 0 10px 40px var(--shadow);
            border: 1px solid var(--border-color);
            padding: 20px;
            width: 300px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .uno-floatbar-modal.show {
            opacity: 1;
            visibility: visible;
        }
        .uno-floatbar-modal-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 24px;
            height: 24px;
            background: var(--accent-light);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        .uno-floatbar-modal-close::before,
        .uno-floatbar-modal-close::after {
            content: "";
            position: absolute;
            width: 12px;
            height: 2px;
            background: var(--accent);
            border-radius: 1px;
        }
        .uno-floatbar-modal-close::before { transform: rotate(45deg); }
        .uno-floatbar-modal-close::after { transform: rotate(-45deg); }
        .uno-floatbar-modal-close:hover {
            background: var(--accent);
        }
        .uno-floatbar-modal-close:hover::before,
        .uno-floatbar-modal-close:hover::after {
            background: white;
        }
        .uno-floatbar-modal-item {
            display: flex;
            gap: 16px;
            align-items: center;
        }
        .uno-floatbar-modal-qrcode {
            width: 120px;
            height: 120px;
            border-radius: 12px;
            overflow: hidden;
            border: 2px solid var(--border-color);
            flex-shrink: 0;
        }
        .uno-floatbar-modal-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .uno-floatbar-modal-content {
            flex: 1;
        }
        .uno-floatbar-modal-content-tit {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }
        .uno-floatbar-modal-content-tit .uno-text-normal {
            color: var(--accent);
        }
        .uno-floatbar-modal-content-desc {
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.6;
        }
        .uno-floatbar-modal-content-desc .uno-text-normal {
            color: #F59E0B;
            font-weight: 600;
        }

        /* 咨询图标 */
        .pls-floatbar-consult-icon {
            width: 32px;
            height: 32px;
            background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%230052D9%27%3E%3Cpath d=%27M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z%27/%3E%3C/svg%3E") center/contain no-repeat;
            cursor: pointer;
        }
        .pls-floatbar-consult-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 72px;
            height: 72px;
            background: var(--bg-secondary);
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow);
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .pls-floatbar-consult-wrap:hover {
            transform: translateX(-4px);
            box-shadow: 0 8px 30px var(--shadow);
            border-color: var(--accent);
        }

        /* 回到顶部按钮 */
        .pls-floatbar-backtop {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 72px;
            height: 72px;
            background: var(--bg-secondary);
            border-radius: 12px;
            box-shadow: 0 4px 20px var(--shadow);
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            visibility: hidden;
        }
        .pls-floatbar-backtop.show {
            opacity: 1;
            visibility: visible;
        }
        .pls-floatbar-backtop:hover {
            transform: translateX(-4px);
            box-shadow: 0 8px 30px var(--shadow);
            border-color: var(--accent);
        }
        .pls-floatbar-backtop-icon {
            width: 28px;
            height: 28px;
            background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%230052D9%27%3E%3Cpath d=%27M12 4l-8 8h5v8h6v-8h5z%27/%3E%3C/svg%3E") center/contain no-repeat;
        }
        .pls-floatbar-backtop-text {
            font-size: 10px;
            color: var(--text-secondary);
            font-weight: 600;
            margin-top: 2px;
        }

.toast-container {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 9999;
        pointer-events: none;
    }
    .toast {
        background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
        color: #991B1B;
        padding: 16px 24px;
        border-radius: 16px;
        margin-bottom: 12px;
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 10px 40px rgba(153, 27, 27, 0.15);
        display: flex;
        align-items: center;
        gap: 12px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(239, 68, 68, 0.3);
        animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), fadeOut 0.4s ease 2.6s;
        min-width: 220px;
    }
    .toast::before {
        content: "⚠️";
        font-size: 20px;
    }
    @keyframes slideIn {
        from {
            transform: translateX(120%) scale(0.8);
            opacity: 0;
        }
        to {
            transform: translateX(0) scale(1);
            opacity: 1;
        }
    }
    @keyframes fadeOut {
        from {
            transform: translateX(0) scale(1);
            opacity: 1;
        }
        to {
            transform: translateX(20px) scale(0.95);
            opacity: 0;
        }
    }

    .buy-btn-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 12px;
        pointer-events: auto;
        cursor: not-allowed;
        transition: background 0.3s ease;
        z-index: 10;
    }

    /* 当按钮的父容器有overlay时，禁用a标签的点击 */
    .price-row:has(.buy-btn-overlay) .item-buy-btn {
        pointer-events: none;
    }
/* =====================================================================
   Design Refresh v2 · 视觉升级层（叠加于原样式之后）
   - 统一设计语言：令牌 / 层次 / 间距 / 圆角 / 阴影
   - 修复暗色模式下硬编码颜色导致的对比度问题
   - 增强交互反馈与移动端适配
   ===================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
    --brand: #0052D9;
    --brand-2: #2B7FFF;
    --accent: #0052D9;
    --accent-light: rgba(0, 82, 217, 0.08);
    --accent-gradient: linear-gradient(135deg, #0052D9 0%, #2B7FFF 100%);

    --bg-primary: #f4f6fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-price-card: linear-gradient(135deg, #fbfcff 0%, #f3f7ff 100%);
    --bg-tip: #fff8ed;
    --bg-spec-detail: #f8fafc;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-color: #e6ebf4;
    --border-strong: #d7dfec;
    --price: #e01f26;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.16);
    --shadow-lg: 0 20px 44px -14px rgba(15, 23, 42, 0.22);

    --ring: 0 0 0 3px rgba(0, 82, 217, 0.18);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #070b16;
        --bg-secondary: #0f172a;
        --bg-card: #101a2e;
        --bg-price-card: linear-gradient(135deg, #131d33 0%, #0e1729 100%);
        --bg-tip: rgba(245, 158, 11, 0.1);
        --bg-spec-detail: #131d33;
        --text-primary: #e8eefc;
        --text-secondary: #a8b6d1;
        --text-muted: #6f81a3;
        --border-color: #1e2a44;
        --border-strong: #2a3a5c;
        --accent: #4d8dff;
        --accent-light: rgba(77, 141, 255, 0.14);
        --accent-gradient: linear-gradient(135deg, #3b7cff 0%, #6aa6ff 100%);
        --price: #ff6b6b;
        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
        --shadow: 0 10px 28px -10px rgba(0, 0, 0, 0.55);
        --shadow-lg: 0 20px 44px -14px rgba(0, 0, 0, 0.65);
        --ring: 0 0 0 3px rgba(77, 141, 255, 0.28);
    }
}

/* ---------- 2. 基础层 ---------- */
body {
    font-family: var(--font-sans);
    background:
        radial-gradient(1100px 560px at 12% -12%, rgba(0, 82, 217, 0.10), transparent 62%),
        radial-gradient(900px 480px at 100% 2%, rgba(43, 127, 255, 0.08), transparent 58%),
        var(--bg-primary);
    background-attachment: fixed;
    padding: 28px 20px 88px;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.container { max-width: 1280px; }

::selection { background: var(--accent-light); color: var(--text-primary); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); background-clip: padding-box; }

:where(button, a, input, select, textarea):focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 10px;
}

/* ---------- 3. 头部 Hero ---------- */
.header {
    background: var(--bg-secondary);
    padding: 46px 40px 38px;
    border-radius: var(--radius-xl);
    margin-bottom: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(640px 240px at 50% -70%, rgba(0, 82, 217, 0.16), transparent 70%),
        repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.028) 0 1px, transparent 1px 46px);
    animation: none;
    pointer-events: none;
}
.header::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 1;
}
.header h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 10px;
    text-shadow: none;
    background: linear-gradient(135deg, var(--text-primary) 34%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}
.header h4 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.header .meta {
    background: var(--accent-light);
    border: 1px solid rgba(0, 82, 217, 0.18);
    color: var(--accent);
    padding: 9px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}
.header-tips { gap: 10px; margin-top: 18px; }
.header-tip {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    transition: border-color 0.2s, color 0.2s;
}
.header-tip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.header-tip .dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px var(--accent-light); }

/* ---------- 4. 区块 / 工具条 ---------- */
.section { margin-bottom: 26px; }
.section-bar {
    background: var(--bg-secondary);
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.section-title { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
.section-time {
    background: var(--accent-light);
    color: var(--accent);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.section-actions { gap: 8px; }

/* ---------- 5. 卡片网格 ---------- */
.items {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}
.item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
    overflow: hidden;
}
.item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0.85;
}
.item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-2);
}
.item-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.item-price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.item-price {
    color: var(--price);
    font-weight: 800;
    font-size: 30px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.item-price small { font-size: 15px; font-weight: 700; margin-right: 3px; }

/* ---------- 6. 价格行 / 规格 ---------- */
.price-row { margin-bottom: 9px; }
.price-label { color: var(--text-secondary); font-size: 13px; }
.price-value { color: var(--text-primary); font-weight: 600; }
.price-row.divider { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-color); }
.monthly-price { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-highlight { color: var(--price); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.original-price { color: var(--text-muted); }
.spec, .detail-line {
    background: var(--bg-spec-detail);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
}
.spec span, .detail-line span { color: var(--text-primary); font-weight: 600; }
.detail-line label { color: var(--text-muted); }

/* ---------- 7. 徽标 ---------- */
.discount-badge, .limit-badge, .lowest-price-badge, .new-low-badge,
.high-price-badge, .status-badge, .countdown-badge {
    border-radius: 999px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.discount-badge {
    background: linear-gradient(135deg, #ff5c5c 0%, #e01f26 100%);
    color: #fff;
    padding: 3px 12px;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(224, 31, 38, 0.22);
}
.limit-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    padding: 3px 11px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.22);
}
.lowest-price-badge, .new-low-badge {
    background: linear-gradient(135deg, #12b76a 0%, #059669 100%);
    color: #fff;
    padding: 3px 12px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.24);
}
.high-price-badge {
    background: linear-gradient(135deg, #ff8a4c 0%, #ea580c 100%);
    color: #fff;
    padding: 3px 12px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.22);
}
.countdown-badge {
    background: var(--accent-gradient);
    color: #fff;
    padding: 3px 12px;
    font-size: 12px;
}
.status-badge { padding: 4px 12px; font-size: 12px; }
.status-badge.in-progress, .status-badge.in-stock {
    background: linear-gradient(135deg, #12b76a 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.24);
}
.status-badge.out-of-stock {
    background: linear-gradient(135deg, #ff6b6b 0%, #dc2626 100%);
    color: #fff;
}
.status-badge.ended {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #fff;
}
.status-badge.not-started {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(0, 82, 217, 0.2);
}

/* ---------- 8. 库存进度 ---------- */
.stock-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.07);
    overflow: hidden;
    margin: 15px 0 8px;
}
.stock-fill {
    border-radius: 999px;
    background: linear-gradient(90deg, #2bd07f 0%, #12b76a 100%);
    box-shadow: none;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.stock-fill.low { background: linear-gradient(90deg, #fcd34d 0%, #f59e0b 100%); }
.stock-fill.critical { background: linear-gradient(90deg, #ff7a7a 0%, #dc2626 100%); }
.stock-text { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

/* ---------- 9. 按钮 ---------- */
.copy-all-btn, .item-buy-btn, .buy-btn, .copy-btn, .search-btn,
.export-btn, .clear-filter-btn, .trend-btn, .api-link {
    font-family: inherit;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.copy-all-btn, .item-buy-btn, .buy-btn, .copy-btn, .search-btn {
    background: var(--accent-gradient);
    box-shadow: 0 4px 14px -4px rgba(0, 82, 217, 0.45);
    border: none;
}
.copy-all-btn:hover, .item-buy-btn:hover, .buy-btn:hover, .copy-btn:hover, .search-btn:hover {
    box-shadow: 0 8px 22px -6px rgba(0, 82, 217, 0.5);
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.item-buy-btn:active, .buy-btn:active, .copy-all-btn:active, .search-btn:active { transform: translateY(0); }
.copy-all-btn { border-radius: 10px; padding: 10px 20px; font-size: 14px; }
.item-buy-btn { padding: 11px 28px; font-size: 15px; }
.buy-btn { padding: 13px 34px; font-size: 16px; border-radius: 12px; }
.trend-btn {
    background: var(--bg-secondary);
    color: var(--accent);
    border: 1px solid rgba(0, 82, 217, 0.25);
    padding: 5px 12px;
    font-size: 12.5px;
    border-radius: 999px;
}
.trend-btn:hover { background: var(--accent-light); border-color: var(--accent); transform: none; }
.export-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 999px;
}
.export-btn:hover { color: var(--text-primary); border-color: var(--text-muted); transform: none; }
.api-link {
    color: var(--text-muted);
    border: 1px dashed var(--border-strong);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
}
.api-link:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

/* ---------- 10. 搜索与筛选 ---------- */
.history-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
    margin-top: 32px;
}
.history-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.search-box { gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search-input, .search-select {
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 11px 16px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus, .search-select:focus {
    border-color: var(--accent);
    box-shadow: var(--ring);
}
.search-input::placeholder { color: var(--text-muted); }
.export-toolbar { gap: 8px; flex-wrap: wrap; }
.export-btn-group { gap: 6px; }
.export-label { color: var(--text-muted); font-size: 13px; }

/* ---------- 11. 历史表格 ---------- */
.history-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 14px;
}
.history-table thead { background: transparent; }
.history-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.history-table th:not(:last-child) { border-right: none; }
.history-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.history-table tbody tr { transition: background 0.15s; }
.history-table tbody tr:nth-child(even) { background: transparent; }
.history-table tbody tr:hover { background: var(--accent-light); }
.history-table tbody tr:hover td { background: transparent; }
.history-table tr:last-child td { border-bottom: none; }
.history-table .price-cell { color: var(--price); font-weight: 700; }

/* ---------- 12. 分页 ---------- */
.pagination { gap: 6px; padding: 18px 0 4px; }
.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.18s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.pagination .current {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(0, 82, 217, 0.5);
}
.pagination .disabled { opacity: 0.45; pointer-events: none; }
.pagination .page-ellipsis { border: none; background: transparent; }

/* ---------- 13. 移动端历史卡片 ---------- */
.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.history-card:hover { border-color: var(--brand-2); box-shadow: var(--shadow); }
.history-card-title { font-weight: 700; font-size: 15px; color: var(--text-primary); }
.history-card-price .price { color: var(--price); font-weight: 800; font-variant-numeric: tabular-nums; }
.history-card-spec {
    background: var(--bg-spec-detail);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}
.history-card-spec-label { color: var(--text-muted); font-size: 12px; }
.history-card-spec-value { color: var(--text-primary); font-weight: 600; font-size: 13px; }
.history-card-toggle {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: 12.5px;
}
.history-card-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 14. 弹层 / 提示 ---------- */
.trend-modal-overlay, .rule-modal-overlay {
    background: rgba(8, 13, 26, 0.5);
    backdrop-filter: blur(6px);
}
.trend-modal, .rule-modal {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background: var(--bg-secondary);
}
.trend-modal-header, .rule-modal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.trend-modal-header h2 { font-weight: 750; letter-spacing: -0.01em; }
.trend-modal-close, .rule-modal-close {
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-muted);
    transition: all 0.18s;
}
.trend-modal-close:hover, .rule-modal-close:hover {
    color: var(--price);
    border-color: var(--price);
    background: rgba(224, 31, 38, 0.06);
}
.trend-stat-card {
    background: var(--bg-price-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.trend-stat-label { color: var(--text-muted); font-size: 12.5px; }
.trend-stat-value { color: var(--text-primary); font-weight: 750; font-variant-numeric: tabular-nums; }
.toast {
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
    border-radius: var(--radius);
    padding: 12px 18px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- 15. 浮动工具栏 ---------- */
.pls-floatbar-button, .pls-floatbar-backtop {
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pls-floatbar-button:hover, .pls-floatbar-backtop:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ---------- 16. 暗色模式硬编码色修正 ---------- */
@media (prefers-color-scheme: dark) {
    .price-label, .detail-line label, .history-item .info-label,
    .price-value, .history-item .info-value, .history-item .item-title {
        color: var(--text-secondary);
    }
    .price-value, .history-item .info-value, .history-item .item-title { color: var(--text-primary); }
    .stock-bar { background: rgba(255, 255, 255, 0.08); }
    .toast { background: rgba(30, 41, 59, 0.96); }
    .item:hover { border-color: rgba(77, 141, 255, 0.6); }
    .history-table tbody tr:hover { background: rgba(77, 141, 255, 0.1); }
    .header::before {
        background:
            radial-gradient(640px 240px at 50% -70%, rgba(77, 141, 255, 0.18), transparent 70%),
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 46px);
    }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 900px) {
    .items { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (max-width: 820px) {
    body { padding: 16px 12px 72px; font-size: 14.5px; }
    .header { padding: 32px 20px 28px; border-radius: 18px; }
    .header h4 { font-size: 14px; letter-spacing: 0.04em; }
    .section-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }
    .section-actions { width: 100%; flex-wrap: wrap; }
    .items { grid-template-columns: 1fr; gap: 14px; }
    .item { padding: 18px; }
    .item-price { font-size: 26px; }
    .history-section { padding: 18px 14px; border-radius: 14px; }
    .search-input, .search-select { width: 100%; }
    .search-box { gap: 8px; }
    .trend-modal, .rule-modal { border-radius: 18px; }
    .pagination a, .pagination span { min-width: 32px; height: 32px; padding: 0 9px; }
}

/* ---------- 18. 无障碍 / 动效 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

