/* 货源商品卡片 + 进货单 + 登录弹窗样式 */
[v-cloak] { display: none; }

/* 货源商品区域 */
.supply-section {
    width: 100%;
    margin-top: 40px;
    padding-bottom: 30px;
}
.supply-section .section-title {
    width: 200px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 28px;
}
.supply-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.supply-filter .filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}
.supply-filter .filter-tab {
    padding: 5px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
    color: #666;
    background: #fff;
}
.supply-filter .filter-tab:hover,
.supply-filter .filter-tab.active {
    border-color: #18d6a3;
    color: #18d6a3;
    background: #f0fdf7;
}

/* 商品卡片网格 */
.supply-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
@media (max-width: 1200px) {
    .supply-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .supply-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .supply-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 单个商品卡片 */
.supply-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: .25s;
    position: relative;
}
.supply-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.supply-card .card-img-wrap {
    width: 100%;
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;
    background: #f5f7fa;
    position: relative;
}
.supply-card .card-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}
.supply-card:hover .card-img-wrap img {
    transform: scale(1.05);
}
.supply-card .card-img-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C0C4CC;
    font-size: 40px;
}
.supply-card .card-sold-out {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 4px;
}
.supply-card .card-body {
    padding: 10px 12px 12px;
}
.supply-card .card-pricing {
    display: inline-block;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #fdf6ec;
    color: #E6A23C;
    margin-bottom: 4px;
}
.supply-card .card-name {
    font-size: 14px;
    color: #303133;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: pointer;
}
.supply-card .card-name:hover {
    color: #18d6a3;
}
.supply-card .card-sku-row {
    display: flex;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
    color: #909399;
    gap: 4px;
}
.supply-card .card-sku-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.supply-card .card-sku-img-empty {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c4cc;
    font-size: 18px;
    flex-shrink: 0;
}
.supply-card .card-sku-info {
    flex: 1;
    min-width: 0;
}
.supply-card .card-sku-info div:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 分类路径（蓝色） */
.supply-card .card-class {
    font-size: 11px;
    color: #3b82f6;
    margin-left: 4px;
}
/* SKU名称（蓝色） */
.supply-card .card-sku-name {
    font-size: 12px;
    color: #3b82f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 价格+库存同行 */
.supply-card .card-price-stock {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 2px;
}
.supply-card .card-price-val {
    font-size: 14px;
    color: #E15501;
    font-weight: 600;
}
.supply-card .card-stock {
    font-size: 11px;
    color: #909399;
    white-space: nowrap;
}
.supply-card .card-actions {
    padding: 0 12px 10px;
}
.supply-card .card-actions .add-cart-btn {
    width: 100%;
    padding: 6px 0;
    border: 1px solid #18d6a3;
    background: #fff;
    color: #18d6a3;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: .2s;
}
.supply-card .card-actions .add-cart-btn:hover {
    background: #18d6a3;
    color: #fff;
}
.supply-card .card-actions .add-cart-btn:disabled {
    border-color: #ddd;
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
}

/* 进货单浮动按钮 */
.cart-float-btn {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #18d6a3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(24,214,163,.35);
    z-index: 100;
    transition: .2s;
}
.cart-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(24,214,163,.45);
}
.cart-float-btn .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    background: #E15501;
    color: #fff;
    font-size: 11px;
    padding: 0 4px;
}

/* 加载更多按钮 */
.supply-load-more {
    text-align: center;
    margin-top: 20px;
}
.supply-load-more .load-more-btn {
    padding: 8px 40px;
    border: 1px solid #18d6a3;
    background: #fff;
    color: #18d6a3;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}
.supply-load-more .load-more-btn:hover {
    background: #18d6a3;
    color: #fff;
}

/* 详情页样式 */
.supply-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 60px;
}
.supply-detail-breadcrumb {
    font-size: 13px;
    color: #909399;
    margin-bottom: 20px;
}
.supply-detail-breadcrumb a {
    color: #606266;
    text-decoration: none;
}
.supply-detail-breadcrumb a:hover {
    color: #18d6a3;
}
.supply-detail-main {
    display: flex;
    gap: 30px;
}
.supply-detail-left {
    flex-shrink: 0;
    width: 350px;
}
.supply-detail-left .detail-img {
    width: 350px;
    height: 350px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f7fa;
}
.supply-detail-right {
    flex: 1;
}
.supply-detail-right .detail-name {
    font-size: 22px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 15px;
}
.supply-detail-right .detail-info-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}
.supply-detail-right .detail-info-label {
    width: 80px;
    color: #909399;
    flex-shrink: 0;
}
.supply-detail-right .detail-info-value {
    color: #303133;
}
.supply-detail-right .detail-price {
    font-size: 28px;
    color: #E15501;
    font-weight: 600;
    margin: 15px 0;
}
.supply-detail-right .detail-remarks {
    font-size: 13px;
    color: #909399;
    margin-top: 10px;
    padding: 10px;
    background: #fafafa;
    border-radius: 4px;
}
.supply-detail-right .detail-add-cart {
    margin-top: 20px;
    padding: 10px 50px;
    background: #18d6a3;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: .2s;
}
.supply-detail-right .detail-add-cart:hover {
    background: #15c093;
}
.supply-detail-sku-section {
    margin-top: 30px;
}
.supply-detail-sku-section .sku-table-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #18d6a3;
    display: inline-block;
}

/* 商品详情（图文描述） */
.supply-detail-desc-section {
    margin-top: 30px;
}
.supply-detail-desc-section .sku-table-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #18d6a3;
    display: inline-block;
}
.supply-detail-desc-content {
    padding: 15px 0;
    line-height: 1.8;
    font-size: 14px;
    color: #303133;
    word-break: break-all;
}
.supply-detail-desc-content img {
    max-width: 100%;
    height: auto;
}

/* 科技感登录/注册弹窗 */
.login-tech-dialog .el-dialog__header { padding: 0; border: none; }
.login-tech-dialog .el-dialog__body { padding: 0; }
.login-tech-dialog .el-dialog__headerbtn { top: 12px; right: 12px; z-index: 10; }
.login-tech-box { padding: 30px 36px 36px; }
.login-tech-header { text-align: center; margin-bottom: 20px; }
.login-tech-title {
    font-size: 26px; font-weight: 700; letter-spacing: 2px;
    color: #fff;
    margin-bottom: 6px;
}
.login-tech-subtitle { font-size: 13px; color: #a0aec4; letter-spacing: 2px; }
.login-tech-tabs {
    display: flex; border-bottom: 2px solid #e4e7ed; margin-bottom: 24px;
}
.login-tech-tabs span {
    flex: 1; text-align: center; padding: 10px 0; font-size: 15px; font-weight: 500;
    color: #909399; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: .3s;
}
.login-tech-tabs span.active {
    color: #409EFF; border-bottom-color: #409EFF;
}
.tech-input-group {
    display: flex; align-items: center; border: 1px solid #e4e6eb; border-radius: 24px;
    overflow: hidden; margin-bottom: 16px; transition: border-color .3s, box-shadow .3s;
    background: #fafbfc;
}
.tech-input-group:focus-within {
    border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,.12); background: #fff;
}
.tech-input-group > i {
    padding-left: 16px; color: #b0b8d1; font-size: 16px; flex-shrink: 0;
}
.tech-input-group > input {
    flex: 1; border: none; outline: none; padding: 12px 14px; font-size: 14px; background: transparent;
    color: #303133;
}
.tech-input-group > input::placeholder { color: #c0c4cc; }
.tech-code-btn {
    flex-shrink: 0; border: none; background: none; color: #667eea; font-size: 13px;
    padding: 0 16px; cursor: pointer; white-space: nowrap;
}
.tech-code-btn:disabled { color: #c0c4cc; cursor: not-allowed; }
.tech-submit-btn {
    width: 100%; padding: 13px 0; border: none; border-radius: 24px; font-size: 16px;
    letter-spacing: 4px; color: #fff; cursor: pointer; margin-top: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: opacity .3s, transform .2s;
}
.tech-submit-btn:hover { opacity: .9; transform: translateY(-1px); }
.tech-agreement {
    display: flex; align-items: flex-start; gap: 4px; margin-bottom: 16px; flex-wrap: wrap;
    font-size: 12px; color: #909399; line-height: 1.6;
}
.tech-agreement-link {
    color: #667eea; cursor: pointer; text-decoration: underline;
}
.tech-agreement-link:hover { color: #409EFF; }

/* 滑块验证 */
.tech-slider-wrap { margin-bottom: 16px; }
.tech-slider-track {
    position: relative; height: 40px; background: #e8e8e8; border-radius: 20px;
    overflow: hidden; user-select: none;
}
.tech-slider-track.verified { background: #d4edda; }
.tech-slider-fill {
    position: absolute; left: 0; top: 0; height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px; transition: width .05s;
}
.tech-slider-track.verified .tech-slider-fill { background: #67c23a; }
.tech-slider-thumb {
    position: absolute; top: 0; left: 0; width: 40px; height: 40px;
    background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.2);
    display: flex; align-items: center; justify-content: center;
    cursor: grab; font-size: 14px; color: #999; z-index: 2;
    transition: background .3s, color .3s;
}
.tech-slider-thumb:active { cursor: grabbing; }
.tech-slider-thumb.verified { background: #67c23a; color: #fff; }
.tech-slider-text {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #999; pointer-events: none;
}
.tech-slider-track.verified .tech-slider-text { color: #67c23a; font-weight: 500; }
