diff --git a/apps/admin-web/src/components/PublishArticleModal.vue b/apps/admin-web/src/components/PublishArticleModal.vue index 4473856..5f180d1 100644 --- a/apps/admin-web/src/components/PublishArticleModal.vue +++ b/apps/admin-web/src/components/PublishArticleModal.vue @@ -608,73 +608,79 @@ function normalizePlatformUid(value?: string | null): string { .publish-modal { display: flex; flex-direction: column; - gap: 20px; + gap: 24px; } .publish-modal__hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; - gap: 16px; - padding: 18px 20px; - border: 1px solid #dce6f4; - border-radius: 16px; - background: - radial-gradient(circle at top right, rgba(30, 64, 175, 0.08), transparent 32%), - linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); + gap: 24px; + padding: 24px; + border: 1px solid #e5e7eb; + border-radius: 12px; + background: #ffffff; + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 4px 8px -2px rgba(0, 0, 0, 0.02); } .publish-modal__eyebrow { display: inline-block; - margin-bottom: 8px; + margin-bottom: 12px; + padding: 4px 10px; font-size: 12px; - font-weight: 700; - color: #1d4ed8; - letter-spacing: 0.08em; + font-weight: 600; + color: #4f46e5; + background: #e0e7ff; + border-radius: 6px; + letter-spacing: 0.05em; text-transform: uppercase; } .publish-modal__hero h3 { margin: 0; - color: #0f172a; + color: #111827; font-size: 18px; - font-weight: 700; - line-height: 1.45; + font-weight: 600; + line-height: 1.5; } .publish-modal__hero p { - margin: 10px 0 0; - color: #526072; - font-size: 13px; - line-height: 1.7; + margin: 8px 0 0; + color: #6b7280; + font-size: 14px; + line-height: 1.6; } .publish-modal__hero-metrics { display: grid; - grid-template-columns: repeat(3, minmax(88px, 1fr)); + grid-template-columns: repeat(3, minmax(96px, 1fr)); gap: 12px; - min-width: 300px; } .publish-modal__metric { - padding: 14px 16px; - border-radius: 14px; - background: rgba(255, 255, 255, 0.92); - border: 1px solid #e5edf8; + padding: 16px; + border-radius: 8px; + background: #f9fafb; + border: 1px solid #f3f4f6; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; } .publish-modal__metric strong { display: block; - color: #0f172a; + color: #111827; font-size: 24px; - font-weight: 700; + font-weight: 600; line-height: 1; } .publish-modal__metric span { display: block; - margin-top: 8px; - color: #64748b; - font-size: 12px; + margin-top: 6px; + color: #6b7280; + font-size: 13px; + font-weight: 500; } .publish-modal__section { @@ -694,9 +700,9 @@ function normalizePlatformUid(value?: string | null): string { .publish-modal__section-header h3 { margin: 0 0 6px; - color: #0f172a; - font-size: 15px; - font-weight: 700; + color: #1f2937; + font-size: 16px; + font-weight: 600; } .publish-modal__section-header--inline h3 { @@ -704,25 +710,25 @@ function normalizePlatformUid(value?: string | null): string { } .required-star { - color: #ff4d4f; + color: #ef4444; margin-right: 4px; } .muted { margin: 0; - color: #64748b; - font-size: 13px; - line-height: 1.7; + color: #6b7280; + font-size: 14px; + line-height: 1.6; } .publish-modal__loading { - padding: 8px 0; + padding: 12px 0; } .publish-modal__list { display: flex; flex-direction: column; - gap: 8px; + gap: 10px; max-height: 380px; overflow-y: auto; padding-right: 6px; @@ -733,7 +739,7 @@ function normalizePlatformUid(value?: string | null): string { width: 6px; } .publish-modal__list::-webkit-scrollbar-thumb { - background: #cbd5e1; + background: #d1d5db; border-radius: 999px; } @@ -742,8 +748,8 @@ function normalizePlatformUid(value?: string | null): string { align-items: center; justify-content: space-between; width: 100%; - padding: 12px 16px; - border: 1px solid #e2e8f0; + padding: 14px 16px; + border: 1px solid #e5e7eb; border-radius: 8px; background: #ffffff; text-align: left; @@ -752,25 +758,26 @@ function normalizePlatformUid(value?: string | null): string { } .publish-modal__list-item:hover:not(.publish-modal__list-item--disabled) { - border-color: #94a3b8; - background: #f8fafc; + border-color: #d1d5db; + background: #f9fafb; } .publish-modal__list-item--active { - border-color: #355dff; - background: #f0f4ff; + border-color: #3b82f6; + background: #eff6ff; + box-shadow: 0 0 0 1px #3b82f6; } .publish-modal__list-item--disabled { cursor: not-allowed; - opacity: 0.65; - background: #f8fafc; + opacity: 0.6; + background: #f9fafb; } .publish-modal__identity { display: flex; align-items: center; - gap: 12px; + gap: 14px; min-width: 0; flex: 1; } @@ -785,40 +792,48 @@ function normalizePlatformUid(value?: string | null): string { .publish-modal__check { width: 18px; height: 18px; - border: 1px solid #c7d4e5; + border: 1px solid #d1d5db; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; background: #fff; flex-shrink: 0; + transition: all 0.2s; } .publish-modal__list-item--active .publish-modal__check { - background: #355dff; - border-color: #355dff; + background: #3b82f6; + border-color: #3b82f6; } .publish-modal__check-inner { - width: 7px; - height: 7px; + width: 6px; + height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; - transform: rotate(45deg) translate(-1px, -1px); + transform: rotate(45deg) translate(-1px, -2px); + opacity: 0; + transition: opacity 0.2s; +} + +.publish-modal__list-item--active .publish-modal__check-inner { + opacity: 1; } .publish-modal__avatar { - width: 36px; - height: 36px; + width: 38px; + height: 38px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; - font-size: 14px; - font-weight: 700; + font-size: 15px; + font-weight: 600; overflow: hidden; flex-shrink: 0; + box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); } .publish-modal__avatar img { @@ -834,16 +849,16 @@ function normalizePlatformUid(value?: string | null): string { } .publish-modal__identity-copy strong { - color: #0f172a; - font-size: 14px; + color: #111827; + font-size: 15px; font-weight: 600; - line-height: 1.3; + line-height: 1.4; } .publish-modal__identity-copy span { margin-top: 2px; - color: #64748b; - font-size: 12px; + color: #6b7280; + font-size: 13px; line-height: 1.5; word-break: break-all; } @@ -862,27 +877,32 @@ function normalizePlatformUid(value?: string | null): string { } .publish-modal__state-pill--immediate { - background: #edfdf2; - color: #15803d; - border: 1px solid #bbf7d0; + background: #ecfdf5; + color: #059669; + border: 1px solid #a7f3d0; } .publish-modal__state-pill--queued { - background: #fff7e6; - color: #b45309; - border: 1px solid #fef08a; + background: #fffbeb; + color: #d97706; + border: 1px solid #fde68a; } .publish-modal__state-pill--unavailable { - background: #fff1f2; - color: #be123c; - border: 1px solid #fecdd3; + background: #fef2f2; + color: #dc2626; + border: 1px solid #fecaca; } .publish-modal__tags { display: flex; flex-wrap: wrap; - gap: 8px; + gap: 6px; +} + +.publish-modal__tags .ant-tag { + margin: 0; + border-radius: 4px; } .publish-modal__cover-body { @@ -903,23 +923,21 @@ function normalizePlatformUid(value?: string | null): string { width: 100%; min-height: 124px; padding: 0; - border: 1px dashed #d3dceb; - border-radius: 20px; - background: - radial-gradient(circle at top, rgba(70, 102, 255, 0.08), transparent 45%), - #fbfcff; - color: #687588; + border: 1px dashed #d1d5db; + border-radius: 8px; + background: #f9fafb; + color: #6b7280; font-size: 13px; gap: 8px; cursor: pointer; overflow: hidden; - transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; + transition: all 0.2s ease; } .publish-modal__cover-preview:hover { - border-color: #90a7ff; - box-shadow: 0 14px 34px rgba(67, 87, 255, 0.12); - transform: translateY(-1px); + border-color: #6366f1; + color: #6366f1; + background: #f5f3ff; } .publish-modal__cover-preview img { @@ -930,7 +948,7 @@ function normalizePlatformUid(value?: string | null): string { } .publish-modal__cover-plus { - font-size: 24px; + font-size: 20px; line-height: 1; } @@ -942,16 +960,17 @@ function normalizePlatformUid(value?: string | null): string { height: 28px; border: none; border-radius: 999px; - background: rgba(20, 30, 50, 0.68); + background: rgba(17, 24, 39, 0.7); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; + transition: background 0.2s; } .publish-modal__cover-remove:hover { - background: rgba(20, 30, 50, 0.82); + background: rgba(17, 24, 39, 0.9); } @media (max-width: 900px) {