/* pages/compare_price/index.wxss */ /* 全局样式 */ .page-container { width: 100%; min-height: 100vh; background-color: #F9FAFB; font-family: 'Noto Sans SC'; position: relative; } /* 导航栏 */ .navbar { height: 64px; background-color: #FFFFFF; box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; position: sticky; top: 0; z-index: 100; } .nav-left, .nav-right { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; } .nav-icon { font-size: 20px; color: #374151; font-family: 'remixicon' !important; font-style: normal; font-weight: normal; line-height: 1; } .nav-center { flex: 1; text-align: center; } .nav-title { font-size: 18px; font-weight: 500; color: #1A1A1A; font-family: 'SourceHanSans-Medium'; } /* 滚动视图 */ .scroll-view { flex: 1; width: 100%; height: calc(100vh - 64px - 75px); } /* 步骤完成提示区 */ .tips-section { padding: 12px 16px; } .tips-container { background-color: #EFF6FF; border: 1px solid #DBEAFE; border-radius: 8px; padding: 12px; display: flex; align-items: center; gap: 12px; } .tips-icon { width: 32px; height: 32px; background-color: #DBEAFE; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .check-icon { font-size: 16px; color: #3B82F6; font-family: 'remixicon' !important; font-style: normal; font-weight: normal; line-height: 1; } .tips-text { flex: 1; font-size: 14px; color: #165DFF; font-family: 'SourceHanSans-Medium'; line-height: 1.4; } /* 内容容器 */ .content-container { padding: 0 16px; } /* 加载状态 */ .loading { padding: 40px 0; text-align: center; color: #666666; } /* 无数据状态 */ .no-data { padding: 40px 0; text-align: center; color: #666666; } /* 类别选择区域 */ .select-section { padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 24px; } .select-card { background-color: rgba(255, 255, 255, 0.8); border-radius: 10px; padding: 20px; width: 100%; max-width: 400px; text-align: center; } .select-title { font-size: 32rpx; font-weight: bold; color: #333333; } .select-tips { display: flex; flex-direction: column; gap: 24rpx; width: 100%; max-width: 400px; align-items: center; } .tips-line { font-size: 28rpx; color: #666666; text-align: center; line-height: 40rpx; } /* 区域标题 */ .section-title { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px; } .title-icon { font-size: 16px; color: #FACC15; font-family: 'remixicon' !important; font-style: normal; font-weight: normal; line-height: 1; margin-right: 8px; } .compare-section .title-icon { color: #3B82F6; } .trend-section .title-icon { color: #3B82F6; } .title-text { font-size: 16px; color: #1A1A1A; font-weight: 500; flex: 1; } .filter-btn { display: flex; align-items: center; gap: 4px; } .filter-text { font-size: 14px; color: #3B82F6; } .filter-icon { font-size: 14px; color: #3B82F6; font-family: 'remixicon' !important; font-style: normal; font-weight: normal; line-height: 1; } /* 当前商品卡片 */ .current-goods-section { margin-bottom: 20px; } .current-goods-card { background-color: #EFF6FF; border: 1px solid #DBEAFE; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; } .goods-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .brand-tag { background-color: #DBEAFE; border-radius: 9999px; padding: 2px 8px; font-size: 12px; color: #165DFF; flex-shrink: 0; } .goods-name { font-size: 16px; color: #1A1A1A; font-weight: 500; flex: 1; min-width: 0; } .price-container { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; } .currency-symbol { font-size: 14px; } .price-amount { font-size: 24px; font-weight: bold; } .spec-info { font-size: 14px; color: #666666; margin-top: 4px; } .merchant-info { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; } .merchant-left { display: flex; align-items: center; gap: 6px; } .merchant-right { display: flex; align-items: center; gap: 6px; } .merchant-icon { font-size: 14px; color: #9CA3AF; } .merchant-text { font-size: 14px; color: #666666; } /* 对比商品列表 */ .compare-section { margin-bottom: 20px; } .compare-list { display: flex; flex-direction: column; gap: 12px; } .compare-item { border: 1px solid #E5E7EB; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background-color: #FFFFFF; transition: all 0.3s ease; } .compare-item:active { transform: scale(0.98); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1); } .compare-item-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .compare-item-name { font-size: 15px; color: #1A1A1A; font-weight: 500; flex: 1; white-space: normal; word-break: break-word; line-height: 1.4; } .compare-item-price { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; } .compare-price-amount { font-size: 18px; font-weight: bold; } .compare-item-spec { font-size: 12px; color: #999999; white-space: normal; word-break: break-word; margin-top: 4px; } .compare-item-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; } .merchant-region { display: flex; align-items: center; gap: 4px; } .compare-item-merchant { font-size: 12px; color: #999999; } .compare-item-region { font-size: 12px; color: #999999; } .price-comparison { display: flex; align-items: center; gap: 4px; flex-shrink: 0; } .price-trend-icon { font-size: 12px; color: #EF4444; font-family: 'remixicon' !important; font-style: normal; font-weight: normal; line-height: 1; } .price-trend-text { font-size: 12px; color: #FF4D4F; } /* 价格趋势图 */ .trend-section { margin-bottom: 20px; } .trend-chart { display: flex; flex-direction: column; gap: 12px; } .chart-container { width: 100%; height: 180px; background-color: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 12px; padding: 20px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; } .chart-placeholder { text-align: center; color: #999999; } .chart-legend { display: flex; justify-content: center; gap: 24px; } .legend-item { display: flex; align-items: center; gap: 8px; } .legend-dot { width: 12px; height: 12px; border-radius: 50%; } .legend-dot.blue { background-color: #165DFF; } .legend-dot.orange { background-color: #F97316; } .legend-text { font-size: 12px; color: #666666; } /* 加载更多按钮 */ .load-more { margin-top: 20px; margin-bottom: 10px; text-align: center; } .load-more-btn { width: 80%; height: 40px; background-color: #FFFFFF; border: 1px solid #D1D5DB; border-radius: 20px; font-size: 14px; color: #374151; display: flex; align-items: center; justify-content: center; } .load-more-btn:active { background-color: #F3F4F6; } /* 加载完成提示 */ .load-complete { margin-top: 15px; text-align: center; color: #333333; font-size: 14px; } /* 底部操作栏 */ .bottom-bar { height: 75px; background-color: #FFFFFF; padding: 12px 16px; box-sizing: border-box; display: flex; gap: 12px; position: sticky; bottom: 0; z-index: 100; box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05); } .bottom-btn { flex: 1; height: 50px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 500; transition: all 0.3s ease; } .bottom-btn:active { transform: scale(0.98); } .reset-btn { border: 1px solid #D1D5DB; background-color: #FFFFFF; } .full-width { width: 100%; } .btn-icon { font-size: 16px; color: #374151; font-family: 'remixicon' !important; font-style: normal; font-weight: normal; line-height: 1; } .btn-icon.white { color: #FFFFFF; } .btn-text { color: #374151; } .btn-text.white { color: #FFFFFF; }