/**
 * 供求信息样式
 */
.supply-tabs {
    display: flex;
    background: #fff;
    padding: 0 12px;
    margin: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.supply-tab {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.supply-tab.active {
    color: var(--primary);
    font-weight: 600;
}
.supply-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.supply-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}
.supply-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    background: #fff;
}
.search-icon { position: absolute; left: 24px; color: var(--text-light); }

.supply-list {
    margin: 0 12px;
}
.supply-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.supply-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.supply-avatar {
    width: 48px; height: 48px;
    background: rgba(76,175,80,0.12);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.supply-body { flex: 1; min-width: 0; }
.supply-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.supply-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.badge-pending {
    background: #ff9800;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}
.badge-approved {
    background: #4caf50;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}
.supply-mine-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}
.supply-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.supply-bottom {
    display: flex;
    gap: 12px;
    align-items: center;
}
.price-num {
    color: var(--up-color);
    font-weight: 700;
    font-size: 15px;
}
.price-neg {
    color: #ff9800;
    font-size: 13px;
    font-weight: 500;
}
.weight { font-size: 12px; color: var(--text-secondary); }

.contact-btn {
    flex-shrink: 0;
    align-self: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff6b35, #ff4757);
    color: #fff !important;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(255,71,87,0.3);
    letter-spacing: 1px;
    user-select: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(255,71,87,0.2);
}

/* 媒体缩略图 */
.supply-media-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #f5f5f5;
}
.supply-media-thumb img,
.supply-media-thumb > div {
    width: 100%;
    height: 100%;
    display: block;
}
.supply-media-thumb .media-count {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 4px 0 0 0;
    line-height: 1.2;
}
