/* ====== 商品列表页 - hgcart 重构样式 ====== */ /* 参考 VMRack 行式布局设计 */ /* ====== 页面容器 ====== */ .goods-page { padding: 0 8px; } .page-header { margin-bottom: 20px; } .page-title { font-size: 22px; font-weight: 600; color: #1a1a2e; margin: 0; } .cart-des { padding: 12px 16px; border-radius: 8px; border: 1px solid #e6e7eb; box-sizing: border-box; overflow-y: auto; margin-bottom: 20px; background: #fff; } .cart-des * { all: revert; } /* ====== 筛选栏 ====== */ .filter-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; } .filter-tabs { display: flex; gap: 0; background: #f0f2f5; border-radius: 8px; padding: 3px; } .tab-item { padding: 8px 20px; font-size: 14px; color: #5a6070; cursor: pointer; border-radius: 6px; transition: all 0.25s ease; white-space: nowrap; font-weight: 500; } .tab-item:hover { color: var(--color-primary); } .tab-item.tab-active { background: #fff; color: var(--color-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.08); font-weight: 600; } .filter-right { display: flex; align-items: center; gap: 8px; } .filter-right .second-select { width: 180px; margin: 0; } .filter-right .search-input { width: 240px; } .filter-right .search-input .el-input-group__append { background: var(--color-primary); border-color: var(--color-primary); color: #fff; padding: 0 12px; } .filter-right .search-input .el-input-group__append .el-icon-search { color: #fff; } /* ====== 二级描述 ====== */ .second-desc { height: 36px; font-size: 13px; color: var(--color-danger); background: rgba(220, 45, 45, 0.06); margin-bottom: 16px; border-radius: 6px; display: flex; align-items: center; padding: 0 12px; } /* ====== 商品容器 ====== */ .goods-container { min-height: 300px; } .empty-state { padding: 60px 0; } /* ====== 商品行列表 ====== */ .goods-table { display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: 12px; border: 1px solid #ebeef5; overflow: hidden; } .goods-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #f2f3f5; transition: background-color 0.2s ease; gap: 24px; } .goods-row:last-child { border-bottom: none; } .goods-row:hover { background-color: #f8f9fc; } .goods-row-disabled { opacity: 0.55; } /* 行左侧 */ .row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } .row-name-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .goods-name-text { font-size: 15px; font-weight: 600; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; } /* 标签 badge */ .badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; font-weight: 500; } .badge-warning { background: #fff7ed; color: #d97706; border: 1px solid #fed7aa; } .badge-danger { background: #fef2f2; color: #dc2626; } .badge-primary { background: rgba(37, 99, 235, 0.08); color: var(--color-primary); } .sold-icon { width: 14px; height: 14px; vertical-align: middle; } /* 活动标签 */ .row-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .tag { font-size: 11px; padding: 2px 8px; border-radius: 3px; white-space: nowrap; cursor: default; } .tag-trial { background: rgba(16, 185, 129, 0.1); color: #059669; } .tag-firewall { background: rgba(245, 158, 11, 0.1); color: #d97706; } .tag-coin { background: rgba(139, 92, 246, 0.1); color: #7c3aed; } .tag-promo { background: rgba(37, 99, 235, 0.08); color: var(--color-primary); cursor: pointer; } /* 描述 */ .row-desc { font-size: 13px; color: #6b7280; line-height: 1.5; max-height: 60px; overflow: hidden; } .row-desc * { all: revert; font-size: 13px !important; color: #6b7280 !important; margin: 0 !important; padding: 0 !important; } .row-desc ul { padding-left: 16px !important; } .row-desc img { display: none !important; } /* 行右侧 */ .row-action { display: flex; align-items: center; gap: 20px; flex-shrink: 0; } .price-group { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 100px; } .current-price { font-size: 22px; font-weight: 700; color: var(--color-primary); white-space: nowrap; line-height: 1.2; } .price-prefix { font-size: 13px; font-weight: 500; } .price-cycle { font-size: 13px; font-weight: 400; color: #8692b0; } .original-price { font-size: 12px; color: #b0b5c0; text-decoration: line-through; white-space: nowrap; } .buy-btn { padding: 10px 28px !important; font-size: 14px !important; border-radius: 8px !important; font-weight: 500; letter-spacing: 0.5px; white-space: nowrap; background: var(--color-primary) !important; border-color: var(--color-primary) !important; } .buy-btn:hover { opacity: 0.88; } .buy-btn.is-disabled { background: #d1d5db !important; border-color: #d1d5db !important; color: #fff !important; } /* ====== 加载更多 ====== */ .tips { color: #8692b0; font-size: 13px; text-align: center; padding: 16px 0; } /* ====== 域名搜索区域(保持不变) ====== */ .domain-box .register-type { display: flex; align-items: center; } .domain-box .register-type .el-divider { background-color: #D8D8D8; margin: 0 24px; } .domain-box .register-type .reg-ridio { font-size: 14px; color: #646464; cursor: pointer; } .domain-box .register-type .isActice { color: var(--color-primary); } .domain-box .domain-search { margin-top: 24px; position: relative; display: flex; align-items: center; } .domain-box .domain-search .el-input { height: 46px; } .domain-box .domain-search .el-input .el-input__inner { height: 46px; line-height: 46px; } .domain-box .domain-search .el-input-group__append { padding: 0; background: #ffffff; border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; } .domain-box .domain-search .suffix-box { width: 160px; display: flex; justify-content: center; align-items: center; color: #2B2B2B; font-size: 15px; cursor: pointer; } .domain-box .domain-search .suffix-box .el-icon-arrow-down { font-size: 13px; color: #8692b0; margin-left: 8px; } .domain-box .domain-search .search-button { height: 46px; padding-left: 50px; padding-right: 50px; border: none; border-top-left-radius: 0; border-bottom-left-radius: 0; background: var(--color-primary); color: #ffffff; font-size: 15px; } .domain-box .domain-search .suffix-list { z-index: 2; position: absolute; top: 46px; left: 0; display: flex; flex-wrap: wrap; width: calc(100% - 250px); padding: 24px; background: #feffff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); border-radius: 6px; } .domain-box .domain-search .suffix-list .suffix-item { margin-right: 12px; margin-bottom: 12px; width: 100px; height: 36px; border: 1px solid #e6eaed; display: flex; justify-content: center; align-items: center; font-size: 14px; color: #2B2B2B; cursor: pointer; border-radius: 4px; } .domain-box .domain-search .suffix-list .suffix-item:hover { background: rgba(0, 88, 255, 0.08); } .domain-box .domain-search .suffix-list .suffix-active { background: rgba(0, 88, 255, 0.08); border: 1px solid var(--color-primary); color: var(--color-primary); } .domain-box .batch-search-box { margin-top: 24px; } .domain-box .batch-search-box .batch-tips { box-sizing: border-box; color: #8692b0; font-size: 13px; padding: 12px; border-radius: 6px; border: 1px solid #EAEAEA; } .domain-box .batch-search-box .batch-tips .input-batch .el-textarea__inner { height: 120px; border: none; padding: 0; } .domain-box .batch-search-box .batch-btn { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; } .domain-box .batch-search-box .batch-btn .upload-btn { display: flex; align-items: center; column-gap: 6px; font-size: 12px; color: var(--color-primary); cursor: pointer; } .domain-box .batch-search-box .batch-btn .el-button { height: 34px; } .domain-box .domain-content { margin-top: 20px; display: flex; column-gap: 32px; } .domain-box .domain-content .domain-left { flex: 1; } .domain-box .domain-content .domain-left .domain-one { height: 100%; } .domain-box .domain-content .domain-left .domain-one .domain-one-list { height: 100%; display: flex; flex-direction: column; } .domain-box .domain-content .domain-left .domain-one .search-title { display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: #2B2B2B; } .domain-box .domain-content .domain-left .domain-one .search-title .search-fillter { display: flex; align-items: center; column-gap: 6px; cursor: pointer; } .domain-box .domain-content .domain-left .domain-one .search-title .search-fillter.is_select { color: var(--color-primary); } .domain-box .domain-content .domain-left .domain-one .fillter-list { margin-top: 16px; border-radius: 8px; box-sizing: border-box; border: 1px solid #EAEAEA; padding: 16px; display: flex; flex-wrap: wrap; gap: 12px; } .domain-box .domain-content .domain-left .domain-one .fillter-list .fillter-item { width: 90px; height: 36px; border: 1px solid #e6eaed; display: flex; justify-content: center; align-items: center; font-size: 13px; color: #2B2B2B; cursor: pointer; border-radius: 4px; } .domain-box .domain-content .domain-left .domain-one .fillter-list .fillter-item:hover { background: rgba(0, 88, 255, 0.08); } .domain-box .domain-content .domain-left .domain-one .fillter-list .fillter-item.is_select { background: rgba(0, 88, 255, 0.08); border-color: var(--color-primary); color: var(--color-primary); } .domain-box .domain-content .domain-left .domain-one .start-search { margin-top: 20px; display: flex; justify-content: center; align-items: center; flex-direction: column; height: 93%; border-radius: 8px; border: 1px solid #EAEAEA; } .domain-box .domain-content .domain-left .domain-one .start-search img { width: 48px; height: 48px; } .domain-box .domain-content .domain-left .domain-one .start-search p { text-align: center; margin-top: 12px; font-size: 15px; color: #2B2B2B; } .domain-box .domain-content .domain-left .domain-one .domain-list { margin-top: 16px; background: #ffffff; border: 1px solid #EAEAEA; border-radius: 8px; flex: 1; overflow-y: auto; } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item { height: 52px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f2f3f5; padding: 0 24px; transition: background-color 0.2s ease; } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item:hover { background-color: #f8f9fc; } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item .item-left .domain-name { font-size: 14px; color: #2B2B2B; } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item .item-left .domain-status { margin-left: 24px; font-size: 12px; color: rgba(0, 0, 0, 0.5); } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item .item-right { display: flex; align-items: center; } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item .item-right .premium-type { padding: 4px 10px; margin-right: 16px; font-size: 12px; color: #8692b0; border-radius: 12px; background: #f3f3f5; } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item .item-right .whois-box { font-size: 13px; color: #2B2B2B; } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item .item-right .whois-box:hover { color: var(--color-primary); cursor: pointer; } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item .item-right .pirce-box { cursor: pointer; } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item .item-right .pirce-box .now-price { font-size: 12px; color: var(--color-price-text); } .domain-box .domain-content .domain-left .domain-one .domain-list .domain-item .item-right .add-btn { margin-left: 24px; height: 34px; } /* 批量搜索 */ .domain-box .domain-content .domain-left .batch-box { height: 100%; } .domain-box .domain-content .domain-left .batch-box .batch-main { height: 100%; display: flex; flex-direction: column; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-search { margin-top: 20px; display: flex; justify-content: center; align-items: center; flex-direction: column; height: 100%; background: #ffffff; border: 1px solid #EAEAEA; border-radius: 8px; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-search img { width: 48px; height: 48px; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-search p { text-align: center; margin-top: 12px; font-size: 15px; color: #2B2B2B; } .domain-box .domain-content .domain-left .batch-box .batch-main .search-title { font-size: 15px; color: #2B2B2B; } .domain-box .domain-content .domain-left .batch-box .batch-main .avail-list { margin-top: 16px; background: #ffffff; border: 1px solid #EAEAEA; border-radius: 8px 8px 0 0; border-bottom: none; max-height: 400px; overflow-y: auto; } .domain-box .domain-content .domain-left .batch-box .batch-main .el-collapse { border: none; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item { height: 52px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f2f3f5; padding: 0 20px; transition: background-color 0.2s ease; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item:hover { background-color: #f8f9fc; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item:nth-last-of-type(1) { border-bottom: none; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item .item-left .domain-name { font-size: 13px; color: #2B2B2B; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item .item-left .domain-status { margin-left: 24px; font-size: 12px; color: rgba(0, 0, 0, 0.5); } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item .item-right { display: flex; align-items: center; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item .item-right .premium-type { padding: 4px 10px; margin-right: 16px; font-size: 12px; color: #8692b0; border-radius: 12px; background: #f3f3f5; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item .item-right .pirce-box { cursor: pointer; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item .item-right .pirce-box .now-price { font-size: 12px; color: var(--color-price-text); } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item .item-right .pirce-box .el-icon-arrow-down { font-size: 12px; color: #8692b0; } .domain-box .domain-content .domain-left .batch-box .batch-main .batch-item .item-right .add-btn { margin-left: 24px; border-radius: 4px; } .domain-box .domain-content .domain-left .batch-box .batch-main .all-check { display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; padding: 0 20px; height: 52px; background: #f9fafb; color: #2B2B2B; font-size: 13px; border: 1px solid #EAEAEA; border-top: none; border-radius: 0 0 8px 8px; } .domain-box .domain-content .domain-left .batch-box .batch-main .all-check .el-button { color: #ffffff; font-size: 13px; background: var(--color-primary); } .domain-box .domain-content .domain-left .batch-box .unavail-title { width: 100%; font-size: 15px; color: #2B2B2B; display: flex; align-items: center; justify-content: space-between; } .domain-box .domain-content .domain-left .batch-box .unavail-title .open-text { cursor: pointer; font-size: 13px; color: var(--color-primary); } .domain-box .domain-content .domain-left .batch-box .unavail-list { margin-top: 16px; display: flex; flex-wrap: wrap; border-radius: 8px; border: 1px solid #e6e7eb; } .domain-box .domain-content .domain-left .batch-box .unavail-list .unavail-item { width: 50%; height: 48px; box-sizing: border-box; padding: 12px 20px; border-bottom: 1px solid #f2f3f5; } .domain-box .domain-content .domain-left .batch-box .unavail-list .unavail-item:nth-child(odd) { position: relative; } .domain-box .domain-content .domain-left .batch-box .unavail-list .unavail-item:nth-child(odd)::after { content: ""; position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 1px; height: 24px; background: #f2f3f5; } .domain-box .domain-content .domain-left .batch-box .unavail-list .unavail-item .unavail-name { font-size: 13px; color: #2B2B2B; } .domain-box .domain-content .domain-left .batch-box .unavail-list .unavail-item .unavail-reason { margin-left: 24px; color: rgba(0, 0, 0, 0.5); font-size: 13px; } /* 域名购物车右侧 */ .domain-box .domain-content .domain-right { box-sizing: border-box; width: 400px; flex-shrink: 0; } .domain-box .domain-content .domain-right .car-top { display: flex; justify-content: space-between; color: #2B2B2B; font-size: 15px; } .domain-box .domain-content .domain-right .car-top .clear-car { cursor: pointer; color: #A2A2A2; font-size: 13px; } .domain-box .domain-content .domain-right .car-top .clear-car .icon { fill: #A2A2A2; margin-right: 4px; } .domain-box .domain-content .domain-right .car-top .clear-car:hover { color: var(--color-danger); } .domain-box .domain-content .domain-right .car-top .clear-car:hover .icon { fill: var(--color-danger); } .domain-box .domain-content .domain-right .car-box { box-sizing: border-box; margin-top: 16px; height: 400px; border-radius: 8px; border: 1px solid #EAEAEA; background: #ffffff; overflow-y: auto; } .domain-box .domain-content .domain-right .car-no { height: 100%; display: flex; justify-content: center; align-items: center; font-size: 13px; color: #8692b0; } .domain-box .domain-content .domain-right .car-list .car-item { padding: 12px 20px; border-bottom: 1px solid #f2f3f5; } .domain-box .domain-content .domain-right .car-list .car-item:hover { background: #f8f9fc; } .domain-box .domain-content .domain-right .car-list .car-item:hover .car-del { display: block; } .domain-box .domain-content .domain-right .car-list .car-item:nth-last-of-type(1) { border-bottom: none; } .domain-box .domain-content .domain-right .car-list .car-item .caritem-top, .domain-box .domain-content .domain-right .car-list .car-item .car-bottom { display: flex; justify-content: space-between; align-items: center; } .domain-box .domain-content .domain-right .car-list .car-item .car-bottom { color: #2B2B2B; margin-top: 10px; } .domain-box .domain-content .domain-right .car-list .car-item .car-name { display: flex; align-items: center; column-gap: 12px; } .domain-box .domain-content .domain-right .car-list .car-item .car-name .shop-name { font-size: 13px; color: #2B2B2B; } .domain-box .domain-content .domain-right .car-list .car-item .car-del { display: none; cursor: pointer; color: #9E9E9E; font-size: 13px; } .domain-box .domain-content .domain-right .car-list .car-item .car-del .icon { fill: #9E9E9E; margin-right: 4px; } .domain-box .domain-content .domain-right .car-list .car-item .car-del:hover { color: var(--color-danger); } .domain-box .domain-content .domain-right .car-list .car-item .car-del:hover .icon { fill: var(--color-danger); } .domain-box .domain-content .domain-right .car-list .car-item .car-year .el-select { width: 120px; } .domain-box .domain-content .domain-right .car-list .car-item .car-price { color: var(--color-price-text); } .domain-box .domain-content .domain-right .car-money { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; padding: 0 4px; } .domain-box .domain-content .domain-right .car-money .mon-right { text-align: right; } .domain-box .domain-content .domain-right .car-money .now-price { font-size: 14px; color: #2B2B2B; margin: 0; } .domain-box .domain-content .domain-right .car-money .money-text { color: var(--color-price-text); font-weight: 600; } .domain-box .domain-content .domain-right .car-money .original-price { font-size: 12px; color: #b0b5c0; text-decoration: line-through; margin: 4px 0 0; } .domain-box .domain-content .domain-right .car-money .hide { visibility: hidden; } .domain-box .domain-content .domain-right .car-settle { margin-top: 12px; } .domain-box .domain-content .domain-right .car-settle .settle-btn { width: 100%; height: 42px; font-size: 15px; border-radius: 8px; background: var(--color-primary); border-color: var(--color-primary); } /* 价格下拉列表 */ .price-list .price-item { display: flex; align-items: center; padding: 8px 0; font-size: 13px; color: #2B2B2B; gap: 20px; } .price-list .price-item:first-child { font-weight: 600; color: #6b7280; border-bottom: 1px solid #f2f3f5; } .price-list .price-item .price-year { width: 60px; } .price-list .price-item .price-new { width: 100px; color: var(--color-price-text); } .price-list .price-item .price-renew { width: 100px; } /* 上传对话框 */ .up-dialog .dia-title { font-size: 16px; font-weight: 600; color: #1a1a2e; padding-bottom: 12px; border-bottom: 1px solid #f2f3f5; } .up-dialog .dia-concent { padding: 16px 0; } .up-dialog .up-tips { font-size: 13px; color: #6b7280; margin-bottom: 12px; } .up-dialog .file-box { display: flex; gap: 8px; } .up-dialog .file-box .file-name { flex: 1; height: 36px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; } .up-dialog .file-box .file-btn { padding: 0 16px; height: 36px; line-height: 36px; background: var(--color-primary); color: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; } .up-dialog .dia-foter { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid #f2f3f5; }