feat: 完善视频任务与 KOC 资源库

This commit is contained in:
巫凤萍
2026-08-15 03:53:09 +08:00
parent ad3dbdcc86
commit f37d05dd88
66 changed files with 6633 additions and 558 deletions

View File

@@ -235,6 +235,109 @@ button:disabled {
opacity: 0.55;
}
.platform-badge {
display: inline-flex !important;
width: auto !important;
min-width: 0;
height: 24px;
align-items: center;
flex: none;
gap: 5px;
margin: 0 !important;
padding: 2px 7px 2px 3px;
border: 1px solid #e3e8e5;
border-radius: 8px;
color: #52615c !important;
background: #f7f9f7;
font-size: 9px !important;
font-weight: 700;
line-height: 1 !important;
white-space: nowrap;
}
.platform-badge.compact {
height: 19px;
gap: 4px;
padding: 2px 5px 2px 2px;
border-radius: 6px;
font-size: 8px !important;
}
.platform-logo {
display: grid !important;
width: 18px !important;
height: 18px !important;
place-items: center;
flex: none;
overflow: hidden;
margin: 0 !important;
border-radius: 5px;
line-height: 1 !important;
}
.platform-badge.compact .platform-logo {
width: 14px !important;
height: 14px !important;
border-radius: 4px;
}
.platform-logo.xiaohongshu {
color: white !important;
background: #ff2442;
}
.platform-logo.xiaohongshu b {
color: inherit;
font-size: 5px;
font-weight: 900;
letter-spacing: -0.12em;
transform: translateX(-0.2px);
}
.platform-badge.compact .platform-logo.xiaohongshu b {
font-size: 4px;
}
.platform-logo.douyin {
background: #080b12;
}
.platform-logo.douyin svg {
width: 16px;
height: 16px;
}
.platform-badge.compact .platform-logo.douyin svg {
width: 13px;
height: 13px;
}
.platform-logo.douyin .douyin-cyan { fill: #25f4ee; transform: translate(-0.7px, 0.7px); }
.platform-logo.douyin .douyin-red { fill: #fe2c55; transform: translate(0.7px, -0.3px); }
.platform-logo.douyin .douyin-white { fill: #fff; }
.platform-logo.other {
color: white !important;
background: #7b8783;
}
.platform-logo.other b {
color: inherit;
font-size: 8px;
}
.platform-meta-line {
display: inline-flex !important;
min-width: 0;
align-items: center;
flex-wrap: wrap;
gap: 5px;
}
.platform-meta-line > span {
margin: 0 !important;
}
a {
color: inherit;
text-decoration: none;
@@ -1508,13 +1611,270 @@ a {
font-size: 13px;
}
.task-scope-head > div:nth-child(2) > span {
display: block;
margin-top: 4px;
.task-scope-subline {
display: flex;
min-width: 0;
align-items: center;
flex-wrap: wrap;
gap: 5px;
margin-top: 5px;
}
.task-scope-subline > span:first-child {
color: #929c98;
font-size: 9px;
}
.content-format-badge {
display: inline-flex;
height: 19px;
align-items: center;
padding: 0 7px;
border: 1px solid #dce8e3;
border-radius: 6px;
color: #477064;
background: #f0f7f4;
font-size: 8px;
font-weight: 700;
line-height: 1;
}
.content-format-badge.video {
border-color: #ddd6ed;
color: #6a568c;
background: #f5f1fb;
}
.content-format-badge.screenshot {
border-color: #d5e6eb;
color: #47727d;
background: #eef7f9;
}
.distribution-task-toolbar {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 9px;
padding: 13px;
border: 1px solid #e5ebe8;
border-radius: 12px;
background: #f8faf8;
}
.distribution-task-search {
display: flex;
flex-direction: row;
min-width: 240px;
height: 38px;
flex: 1 1 320px;
align-items: center;
gap: 8px;
margin: 0;
padding: 0 12px;
border: 1px solid #dfe6e2;
border-radius: 9px;
background: white;
}
.distribution-task-search:focus-within {
border-color: #74b79f;
box-shadow: 0 0 0 3px rgb(31 143 107 / 0.08);
}
.distribution-task-search > span {
display: grid;
width: 18px;
flex: 0 0 18px;
place-items: center;
color: #83918c;
font-size: 15px;
line-height: 1;
}
.distribution-task-search input {
min-width: 0;
width: 100%;
height: 100%;
padding: 0;
border: 0;
outline: 0;
background: transparent;
font-size: 10px;
}
.distribution-task-filter-group {
display: flex;
flex: 0 1 auto;
align-items: center;
gap: 9px;
}
.distribution-task-filter-combobox {
position: relative;
width: 150px;
flex: 0 1 150px;
}
.distribution-task-filter-combobox.brand {
width: 176px;
flex-basis: 176px;
}
.distribution-task-filter-input {
display: flex;
width: 100%;
height: 38px;
flex: none;
flex-direction: row;
align-items: center;
justify-content: flex-start;
gap: 10px;
padding: 0 11px;
border: 1px solid #dfe6e2;
border-radius: 9px;
outline: 0;
color: #28332f;
background: white;
font-size: 9px;
margin: 0;
}
.distribution-task-filter-input > span {
display: grid;
width: 16px;
flex: 0 0 16px;
place-items: center;
color: #83918c;
font-size: 13px;
line-height: 1;
}
.distribution-task-filter-input input {
display: block;
min-width: 0;
width: 100%;
height: 100%;
flex: 1 1 auto;
margin: 0;
padding: 0;
border: 0;
outline: 0;
color: #28332f;
background: transparent;
font-size: 9px;
}
.distribution-task-filter-input:hover,
.distribution-task-filter-input:focus-within {
border-color: #74b79f;
box-shadow: 0 0 0 3px rgb(31 143 107 / 0.08);
}
.distribution-task-filter-menu {
position: absolute;
z-index: 60;
top: calc(100% + 7px);
left: 0;
display: grid;
width: max(100%, 230px);
padding: 8px;
border: 1px solid #dce8e3;
border-radius: 12px;
background: white;
box-shadow: 0 16px 36px rgb(20 45 37 / 0.16);
}
.distribution-task-filter-menu-options {
display: grid;
max-height: 240px;
gap: 3px;
overflow-y: auto;
}
.distribution-task-filter-menu-options button {
display: flex;
min-height: 34px;
width: 100%;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 0 10px;
border: 0;
border-radius: 8px;
color: #34423d;
background: transparent;
font-size: 9px;
text-align: left;
}
.distribution-task-filter-menu-options button:hover,
.distribution-task-filter-menu-options button:focus-visible {
outline: 0;
background: #f3f9f6;
}
.distribution-task-filter-menu-options button.selected {
color: var(--green-deep);
background: #eaf6f1;
font-weight: 650;
}
.distribution-task-filter-menu-options button small {
color: #6f9d8d;
font-size: 8px;
}
.distribution-task-filter-empty {
padding: 12px 10px;
color: #98a39f;
font-size: 9px;
text-align: center;
}
.distribution-task-clear {
height: 38px;
padding: 0 6px;
border: 0;
color: var(--green-deep);
background: transparent;
font-size: 9px;
font-weight: 650;
}
.distribution-task-count {
margin-left: auto;
color: #8c9894;
font-size: 9px;
white-space: nowrap;
}
.distribution-task-count b {
color: var(--ink);
font-size: 11px;
}
.distribution-task-empty {
display: grid;
min-height: 190px;
place-content: center;
gap: 7px;
border: 1px dashed #dce5e1;
border-radius: 15px;
color: #8d9894;
background: #fbfcfb;
text-align: center;
}
.distribution-task-empty strong {
color: var(--ink);
font-size: 12px;
}
.distribution-task-empty span {
font-size: 9px;
}
.task-source-line {
display: flex;
align-items: center;
@@ -2024,6 +2384,17 @@ a {
text-align: right;
}
.import-preview-warning {
margin: 8px 0 0;
padding: 8px 10px;
border: 1px solid #f0d5cc;
border-radius: 8px;
color: #a95037;
background: #fff7f3;
font-size: 9px;
text-align: left;
}
.form-error {
margin-top: 12px;
padding: 10px 12px;
@@ -2037,136 +2408,299 @@ a {
.resource-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
gap: 14px;
}
.resource-card {
padding: 18px;
position: relative;
display: flex;
min-width: 0;
flex-direction: column;
overflow: hidden;
padding: 16px;
border: 1px solid #e5e9e6;
border-radius: 14px;
border-top-width: 3px;
border-radius: 16px;
background: #fff;
transition: 150ms ease;
box-shadow: 0 8px 24px rgb(23 56 45 / 0.035);
transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.resource-card.platform-xhs {
border-top-color: #ff5470;
}
.resource-card.platform-douyin {
border-top-color: #25383a;
}
.resource-card.platform-other {
border-top-color: #8b9692;
}
.resource-card:hover {
transform: translateY(-1px);
box-shadow: var(--shadow);
transform: translateY(-2px);
border-color: #d6e0dc;
box-shadow: 0 14px 34px rgb(23 56 45 / 0.09);
}
.resource-card-head {
display: flex;
align-items: center;
gap: 11px;
min-width: 0;
align-items: flex-start;
gap: 12px;
}
.resource-card-head > div:nth-child(2) {
.resource-card-head .resource-profile-main {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
}
.resource-profile-avatar.avatar.xlarge {
width: 58px;
height: 58px;
border: 3px solid #fff;
border-radius: 50%;
box-shadow: 0 0 0 1px #e6ebe8;
font-size: 17px;
}
.resource-card-head h3 {
margin: 0;
overflow: hidden;
font-size: 12px;
color: #1f2c28;
font-size: 14px;
font-weight: 720;
line-height: 1.35;
text-overflow: ellipsis;
white-space: nowrap;
}
.resource-card-head span {
margin-top: 4px;
color: #8c9894;
font-size: 9px;
}
.verified-dot {
display: grid;
width: 19px;
height: 19px;
place-items: center;
border-radius: 50%;
color: #fff !important;
background: var(--green);
font-size: 9px !important;
}
.resource-account-id {
.resource-name-line {
display: flex;
min-width: 0;
align-items: center;
gap: 9px;
margin-top: 14px;
padding: 9px 10px;
border-radius: 8px;
color: #77847f;
background: #f5f7f5;
gap: 6px;
}
.resource-account-id span {
.resource-name-line h3 {
min-width: 0;
}
.gender-icon {
display: inline-grid;
width: 17px;
height: 17px;
flex: 0 0 auto;
font-size: 8px;
place-items: center;
margin: 0 !important;
border-radius: 50%;
font-size: 11px !important;
font-weight: 750;
line-height: 1;
}
.resource-account-id strong {
.gender-icon.male {
color: #347a9c !important;
background: #e8f4fa;
}
.gender-icon.female {
color: #b95778 !important;
background: #fbeaf0;
}
.resource-account-number {
display: flex;
min-width: 0;
align-items: center;
gap: 5px;
margin-top: 4px;
}
.resource-account-number span {
flex: 0 0 auto;
color: #9aa4a0;
font-size: 9px;
}
.resource-account-number strong {
min-width: 0;
overflow: hidden;
color: #40534d;
color: #63706c;
font-family: var(--font-geist-mono), monospace;
font-size: 9px;
font-size: 10px;
font-weight: 600;
text-overflow: ellipsis;
user-select: all;
white-space: nowrap;
}
.resource-platform-line {
display: flex;
min-width: 0;
align-items: center;
gap: 7px;
margin-top: 7px;
}
.resource-current-contact {
align-items: center;
color: var(--muted);
display: flex;
flex-wrap: wrap;
font-size: 12px;
gap: 6px;
line-height: 1.4;
margin-top: 5px;
}
.resource-current-contact strong {
color: var(--ink-soft);
font-weight: 700;
}
.resource-location {
min-width: 0;
overflow: hidden;
color: #7e8a86;
font-size: 9px;
text-overflow: ellipsis;
white-space: nowrap;
}
.resource-bio {
display: -webkit-box;
min-height: 43px;
margin: 13px 0 0;
overflow: hidden;
color: #58635f;
font-size: 10px;
line-height: 1.55;
word-break: break-word;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
.resource-bio.empty {
min-height: auto;
color: #adb5b2;
}
.resource-tags {
min-height: 23px;
margin-top: 10px;
margin-bottom: auto;
}
.resource-tags > div {
display: flex;
max-height: 50px;
flex-wrap: wrap;
gap: 5px;
overflow: hidden;
}
.resource-tags b {
padding: 5px 8px;
border: 1px solid #dcebe5;
border-radius: 7px;
color: #32765f;
background: #f4faf7;
font-size: 9px;
font-weight: 650;
line-height: 1;
}
.resource-card.platform-xhs .resource-tags b {
border-color: #f2dce2;
color: #9b4e63;
background: #fff2f5;
}
.resource-tags.empty b {
border-color: #e7ebe9;
color: #a0aaa6;
background: #f7f8f7;
font-weight: 560;
}
.resource-metrics {
display: grid;
grid-template-columns: repeat(2, 1fr);
display: flex;
min-width: 0;
align-items: stretch;
margin-top: 12px;
padding: 13px 0;
border-block: 1px solid #eef1ef;
padding: 9px 10px;
border: 0;
border-radius: 10px;
background: #f6f8f7;
}
.resource-metrics > div {
display: flex;
flex-direction: column;
border-right: 1px solid #eef1ef;
text-align: center;
min-width: 0;
flex: 0 0 auto;
align-items: baseline;
gap: 4px;
padding-inline: 9px;
border-right: 1px solid #e1e7e4;
}
.resource-metrics > div:first-child {
padding-left: 0;
}
.resource-metrics > div:last-child {
flex: 1;
justify-content: flex-end;
padding-right: 0;
border-right: 0;
}
.resource-metrics span,
.resource-source > span {
color: #9ba4a1;
font-size: 8px;
.resource-metrics span {
color: #98a39f;
font-size: 9px;
white-space: nowrap;
}
.resource-metrics strong {
margin-top: 4px;
font-size: 13px;
overflow: hidden;
color: #24332e;
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
.resource-source {
margin-top: 13px;
display: flex;
min-width: 0;
align-items: center;
gap: 8px;
}
.resource-source > span {
flex: 0 0 auto;
color: #9ba4a1;
font-size: 9px;
}
.resource-source > div {
display: flex;
flex-wrap: wrap;
min-width: 0;
flex: 1;
gap: 5px;
margin-top: 8px;
overflow: hidden;
}
.resource-source b {
padding: 5px 7px;
flex: 0 0 auto;
padding: 4px 6px;
border-radius: 6px;
color: #567068;
background: #eef4f1;
font-size: 8px;
font-size: 9px;
font-weight: 580;
}
@@ -2175,17 +2709,31 @@ a {
background: #fff3e8;
}
.resource-source b.empty {
color: #9fa8a5;
background: #f4f6f5;
}
.resource-card-foot {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 14px;
gap: 10px;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid #eef1ef;
color: #9aa39f;
font-size: 8px;
font-size: 9px;
}
.resource-card-foot .resource-source {
flex: 1;
}
.resource-card-foot a {
color: var(--green);
font-weight: 650;
white-space: nowrap;
}
.resource-empty {
@@ -2635,6 +3183,34 @@ a {
font-size: 8px;
}
.recovery-row-actions {
display: flex;
min-width: 82px;
flex-direction: column;
align-items: flex-start;
gap: 6px;
}
.publish-url-edit-button {
padding: 2px 0;
border: 0;
color: #168565;
background: transparent;
font-size: 8px;
font-weight: 700;
cursor: pointer;
}
.publish-url-edit-button:hover {
text-decoration: underline;
}
.publish-url-edit-button:disabled {
color: #aab4b0;
cursor: wait;
text-decoration: none;
}
.upload-button {
display: inline-flex;
height: 28px;
@@ -3829,6 +4405,11 @@ label small {
grid-template-columns: 1fr;
}
.distribution-task-count {
width: 100%;
text-align: right;
}
.workflow-track {
overflow-x: auto;
}
@@ -4014,6 +4595,35 @@ label small {
align-items: stretch;
}
.distribution-task-toolbar {
align-items: stretch;
}
.distribution-task-search,
.distribution-task-filter-group,
.distribution-task-filter-combobox,
.distribution-task-filter-combobox.brand {
width: 100%;
flex-basis: 100%;
}
.distribution-task-filter-group {
grid-template-columns: 1fr;
display: grid;
gap: 8px;
}
.distribution-task-clear {
text-align: left;
}
.distribution-task-count {
display: flex;
width: auto;
align-items: center;
margin-left: auto;
}
.resource-search,
.resource-filter-search {
width: 100%;