Files
hot_comment_radar/app/static/app.css
T

1323 lines
22 KiB
CSS

:root {
--background: #f8fafc;
--foreground: #0f172a;
--muted: #f1f5f9;
--muted-foreground: #64748b;
--card: #ffffff;
--card-foreground: #0f172a;
--border: #e2e8f0;
--input: #cbd5e1;
--primary: #0f172a;
--primary-foreground: #ffffff;
--secondary: #f1f5f9;
--secondary-foreground: #0f172a;
--accent: #f8fafc;
--accent-foreground: #0f172a;
--destructive: #dc2626;
--success: #16a34a;
--warning: #d97706;
--ring: rgba(15, 23, 42, 0.18);
--radius: 8px;
}
body {
background: var(--background);
color: var(--foreground);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
letter-spacing: 0;
min-height: 100vh;
}
a {
color: inherit;
}
.container {
max-width: 1180px;
}
.app-navbar {
background: rgba(255, 255, 255, 0.92) !important;
border-bottom: 1px solid var(--border);
backdrop-filter: blur(14px);
}
.app-navbar .container {
min-height: 56px;
}
.navbar-brand {
color: var(--foreground);
font-size: 15px;
letter-spacing: 0;
}
.nav-link {
border-radius: 6px;
color: var(--muted-foreground);
font-size: 14px;
padding: 6px 10px;
}
.nav-link:hover {
background: var(--secondary);
color: var(--foreground);
}
.breadcrumb {
color: var(--muted-foreground);
font-size: 13px;
margin-bottom: 20px;
}
.breadcrumb a {
color: var(--muted-foreground);
text-decoration: none;
}
.breadcrumb a:hover {
color: var(--foreground);
}
.tool-card,
.card,
.accordion-item {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
color: var(--card-foreground);
overflow: hidden;
}
.card-body {
padding: 20px;
}
.card-header,
.section-heading {
background: var(--card);
border-bottom: 1px solid var(--border);
padding: 16px 20px;
}
.section-heading {
align-items: center;
display: flex;
gap: 16px;
justify-content: space-between;
}
.section-heading h2,
.page-heading h1,
.page-title {
color: var(--foreground);
font-size: 22px;
font-weight: 650;
letter-spacing: 0;
line-height: 1.25;
margin: 0;
}
.page-heading {
align-items: flex-start;
display: flex;
gap: 16px;
justify-content: space-between;
margin-bottom: 18px;
}
.section-kicker,
.eyebrow {
color: var(--muted-foreground);
font-size: 12px;
font-weight: 650;
letter-spacing: 0;
margin: 0 0 6px;
text-transform: uppercase;
}
.hero-band {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
color: var(--foreground);
padding: 30px;
}
.hero-band-inverse {
background: #111827;
border-color: #111827;
border-radius: 0;
box-shadow: none;
color: #ffffff;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
margin-top: -1.5rem;
padding: 42px max(48px, calc((100vw - 1180px) / 2 + 24px));
}
.hero-shell {
align-items: flex-end;
display: flex;
gap: 28px;
justify-content: space-between;
}
.hero-copy {
max-width: 700px;
}
.hero-copy h1 {
color: var(--foreground);
font-size: 34px;
font-weight: 700;
letter-spacing: 0;
line-height: 1.15;
margin: 0 0 12px;
}
.hero-band-inverse .hero-copy h1 {
color: #ffffff;
font-size: 42px;
max-width: 720px;
}
.hero-copy p:not(.eyebrow) {
color: var(--muted-foreground);
font-size: 15px;
line-height: 1.75;
margin: 0;
}
.hero-band-inverse .eyebrow {
color: #9ca3af;
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hero-band-inverse .hero-copy p:not(.eyebrow) {
color: #d1d5db;
max-width: 680px;
}
.hero-metrics {
display: grid;
gap: 10px;
grid-template-columns: repeat(3, minmax(84px, 1fr));
min-width: 320px;
}
.hero-data-grid {
border: 1px solid #374151;
gap: 0;
grid-template-columns: repeat(3, minmax(120px, 1fr));
min-width: 420px;
}
.hero-metric {
background: var(--muted);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px;
}
.hero-band-inverse .hero-metric {
background: transparent;
border: 0;
border-right: 1px solid #374151;
border-radius: 0;
padding: 18px 20px;
}
.hero-band-inverse .hero-metric:last-child {
border-right: 0;
}
.hero-metric strong {
display: block;
font-size: 18px;
line-height: 1.2;
}
.hero-band-inverse .hero-metric strong {
color: #ffffff;
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 30px;
font-weight: 700;
}
.hero-metric span {
color: var(--muted-foreground);
display: block;
font-size: 12px;
margin-top: 4px;
}
.hero-band-inverse .hero-metric span {
color: #9ca3af;
}
.task-workspace {
display: grid;
gap: 24px;
margin-top: 28px;
}
.hard-panel {
border-radius: 0;
box-shadow: none;
}
.panel-heading {
padding: 18px 24px;
}
.panel-note {
color: var(--muted-foreground);
font-size: 13px;
}
.scale-hint-panel {
border-top: 1px solid var(--border);
color: var(--muted-foreground);
font-size: 13px;
margin: 20px -20px -20px;
padding: 14px 20px;
}
.data-grid-table {
min-width: 1120px;
}
.data-grid-table thead th {
height: 48px;
padding-left: 16px;
padding-right: 16px;
}
.data-grid-table td {
padding-left: 16px;
padding-right: 16px;
}
.btn {
border-radius: 6px;
font-size: 14px;
font-weight: 500;
}
.btn-primary {
background: var(--primary);
border-color: var(--primary);
color: var(--primary-foreground);
}
.btn-primary:hover,
.btn-primary:focus {
background: #1e293b;
border-color: #1e293b;
}
.btn-outline-primary,
.btn-outline-secondary {
background: var(--card);
border-color: var(--border);
color: var(--foreground);
}
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
background: var(--secondary);
border-color: var(--border);
color: var(--foreground);
}
.form-label {
color: var(--foreground);
font-size: 13px;
font-weight: 600;
}
.form-control,
.form-select {
border-color: var(--input);
border-radius: 6px;
color: var(--foreground);
font-size: 14px;
min-height: 40px;
}
.form-control:focus,
.form-select:focus {
border-color: var(--foreground);
box-shadow: 0 0 0 3px var(--ring);
}
.form-text {
color: var(--muted-foreground) !important;
}
.badge {
border-radius: 999px;
font-size: 12px;
font-weight: 600;
letter-spacing: 0;
padding: 5px 9px;
}
.bg-success,
.text-bg-success {
background-color: #dcfce7 !important;
color: #166534 !important;
}
.bg-danger,
.text-bg-danger {
background-color: #fee2e2 !important;
color: #991b1b !important;
}
.bg-warning,
.text-bg-warning {
background-color: #fef3c7 !important;
color: #92400e !important;
}
.bg-secondary,
.text-bg-secondary {
background-color: var(--secondary) !important;
color: var(--secondary-foreground) !important;
}
.text-bg-light {
background: var(--secondary) !important;
color: var(--foreground) !important;
}
.alert {
border-radius: var(--radius);
font-size: 14px;
margin-bottom: 16px;
}
.alert-info {
background: #eff6ff;
border-color: #bfdbfe;
color: #1e3a8a;
}
.alert-warning {
background: #fffbeb;
border-color: #fde68a;
color: #92400e;
}
.alert-danger {
background: #fef2f2;
border-color: #fecaca;
color: #991b1b;
}
.alert-secondary {
background: var(--secondary);
border-color: var(--border);
color: var(--foreground);
}
.metric-box,
.stat-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
height: 100%;
padding: 16px;
}
.metric-box strong,
.stat-card strong {
color: var(--foreground);
display: block;
font-size: 18px;
font-weight: 650;
line-height: 1.35;
margin: 4px 0;
}
.app-table {
color: var(--foreground);
min-width: 760px;
}
.app-table thead th {
background: var(--muted);
border-bottom: 1px solid var(--border);
color: var(--muted-foreground);
font-size: 12px;
font-weight: 650;
height: 42px;
letter-spacing: 0;
text-transform: none;
white-space: nowrap;
}
.app-table td {
border-color: var(--border);
padding-bottom: 14px;
padding-top: 14px;
vertical-align: middle;
}
.app-table tbody tr:hover {
background: var(--accent);
}
.task-number {
align-items: center;
background: var(--secondary);
border: 1px solid var(--border);
border-radius: 999px;
color: var(--foreground);
display: inline-flex;
font-weight: 650;
height: 30px;
justify-content: center;
min-width: 30px;
padding: 0 9px;
}
.task-progress {
background: var(--secondary);
border-radius: 999px;
height: 8px;
}
.progress-bar {
background-color: var(--primary);
}
.report-progress {
background: var(--secondary);
height: 8px;
}
.task-overview {
border-top: 0;
}
.progress-summary {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.hotspot-item {
border-color: var(--border);
margin-bottom: 10px;
}
.accordion-button {
background: var(--card);
color: var(--foreground);
font-size: 15px;
font-weight: 600;
gap: 10px;
padding: 16px 18px;
}
.accordion-button:not(.collapsed) {
background: var(--muted);
box-shadow: none;
color: var(--foreground);
}
.accordion-button:focus {
border-color: var(--border);
box-shadow: 0 0 0 3px var(--ring);
}
.content-item-row {
align-items: center;
display: flex;
gap: 14px;
justify-content: space-between;
}
.content-item-title {
color: var(--foreground);
display: block;
font-weight: 600;
line-height: 1.45;
overflow-wrap: anywhere;
}
.content-item-meta {
color: var(--muted-foreground);
display: block;
font-size: 12px;
margin-top: 3px;
overflow-wrap: anywhere;
}
.report-summary {
background: var(--muted);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
}
.comment-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px;
}
.empty-state,
.status-panel {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 32px;
text-align: center;
}
.status-panel-danger {
border-color: #fecaca;
}
.control-hero,
.task-detail-hero,
.report-reading-hero {
align-items: stretch;
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
display: grid;
gap: 28px;
grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
margin-bottom: 22px;
padding: 28px;
}
.task-detail-hero,
.report-reading-hero {
grid-template-columns: minmax(0, 1fr) 360px;
}
.control-hero-copy,
.task-detail-copy,
.report-title-block {
display: flex;
flex-direction: column;
justify-content: center;
min-width: 0;
}
.control-hero h1,
.task-detail-hero h1,
.report-reading-hero h1 {
color: var(--foreground);
font-size: 34px;
font-weight: 800;
letter-spacing: 0;
line-height: 1.15;
margin: 0 0 12px;
}
.control-hero p:not(.section-kicker),
.task-detail-hero p:not(.section-kicker),
.report-reading-hero p:not(.section-kicker) {
color: #475569;
font-size: 15px;
line-height: 1.55;
margin: 0;
}
.control-subtitle {
color: var(--muted-foreground);
font-size: 13px;
font-weight: 700;
margin: -4px 0 10px;
}
.quick-launch-panel,
.task-history-panel,
.sidepanel-card,
.task-state-card,
.sentiment-summary-card,
.insight-card,
.content-performance-card,
.sentiment-sidepanel,
.keyword-sidepanel,
.report-data-note {
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.quick-launch-panel {
background: var(--background);
padding: 22px;
}
.panel-title-row {
align-items: center;
display: flex;
gap: 16px;
justify-content: space-between;
margin-bottom: 16px;
}
.panel-title-row h2,
.sidepanel-card h2,
.task-state-card strong,
.sentiment-summary-card strong,
.insight-card h2,
.representative-comments h2,
.content-performance-card h2,
.sentiment-sidepanel h2,
.keyword-sidepanel h2,
.report-data-note h2 {
color: var(--foreground);
font-size: 19px;
font-weight: 800;
letter-spacing: 0;
line-height: 1.25;
margin: 0;
}
.soft-badge {
background: var(--secondary);
border: 1px solid var(--border);
border-radius: 999px;
color: var(--foreground);
display: inline-flex;
font-size: 12px;
font-weight: 700;
line-height: 1;
padding: 7px 10px;
white-space: nowrap;
}
.soft-badge-success {
background: #f0fdfa;
border-color: #ccfbf1;
color: #0f766e;
}
.default-scale-grid,
.overview-grid {
display: grid;
gap: 12px;
}
.default-scale-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
margin-bottom: 16px;
}
.scale-tile,
.overview-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 9px;
padding: 14px;
}
.scale-tile strong,
.overview-card strong {
color: var(--foreground);
display: block;
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 24px;
font-weight: 700;
line-height: 1.2;
}
.scale-tile span,
.overview-card span,
.overview-card small {
color: var(--muted-foreground);
display: block;
font-size: 12px;
margin-top: 4px;
}
.quick-form-grid {
align-items: end;
display: grid;
gap: 12px;
grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(100px, 0.8fr)) minmax(150px, 0.9fr);
}
.quick-start-btn {
min-height: 50px;
}
.scale-hint {
color: var(--muted-foreground);
font-size: 13px;
line-height: 1.45;
margin: 12px 0 0;
}
.overview-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
margin-bottom: 22px;
}
.dashboard-workspace,
.detail-workspace,
.report-reading-layout {
display: grid;
gap: 20px;
grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
}
.task-history-panel {
padding: 20px;
}
.task-card-list,
.hotspot-card-list,
.report-main-column,
.report-side-column {
display: flex;
flex-direction: column;
gap: 14px;
}
.task-card,
.hotspot-result-card,
.quote-card {
align-items: center;
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
display: flex;
gap: 18px;
padding: 18px;
}
.task-card-number {
display: flex;
flex: 0 0 90px;
flex-direction: column;
gap: 4px;
}
.task-card-number strong,
.hotspot-rank {
color: var(--foreground);
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 24px;
font-weight: 700;
}
.task-card-number span,
.task-card-title-row p,
.task-card-meta,
.task-card-progress,
.hotspot-chip-row,
.stat-line span,
.sidepanel-card p,
.report-data-note p {
color: var(--muted-foreground);
font-size: 13px;
}
.task-card-body {
flex: 1 1 auto;
min-width: 0;
}
.task-card-title-row,
.progress-label-row,
.stat-line {
align-items: center;
display: flex;
gap: 12px;
justify-content: space-between;
}
.task-card-title-row h3 {
color: var(--foreground);
font-size: 16px;
font-weight: 800;
margin: 0 0 3px;
}
.task-card-meta {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.task-card-error {
color: #991b1b;
font-size: 13px;
margin: 10px 0 0;
}
.task-card-action {
flex: 0 0 auto;
}
.task-status-sidepanel,
.detail-sidepanel {
display: flex;
flex-direction: column;
gap: 16px;
}
.sidepanel-card,
.task-state-card,
.sentiment-summary-card,
.insight-card,
.content-performance-card,
.sentiment-sidepanel,
.keyword-sidepanel,
.report-data-note {
padding: 20px;
}
.sidepanel-card-blue,
.report-data-note {
background: #eff6ff;
border-color: #dbeafe;
}
.sidepanel-card-danger {
background: #fff1f2;
border-color: #ffe4e6;
}
.sidepanel-icon {
align-items: center;
background: #eff6ff;
border-radius: 8px;
color: #2563eb;
display: inline-flex;
font-size: 18px;
font-weight: 800;
height: 34px;
justify-content: center;
margin-bottom: 12px;
width: 34px;
}
.stage-list {
display: grid;
gap: 10px;
margin-top: 14px;
}
.stage-list span {
align-items: center;
color: #475569;
display: flex;
font-size: 13px;
gap: 10px;
}
.stage-dot {
background: var(--border);
border-radius: 999px;
display: inline-block;
height: 10px;
width: 10px;
}
.stage-dot-success {
background: #0f766e;
}
.stage-dot-active {
background: #2563eb;
}
.task-state-card,
.sentiment-summary-card {
background: #f0fdfa;
border-color: #ccfbf1;
}
.task-state-card span,
.sentiment-summary-card span {
color: #0f766e;
display: block;
font-size: 13px;
font-weight: 700;
margin-bottom: 8px;
}
.task-state-card strong,
.sentiment-summary-card strong {
display: block;
font-size: 34px;
margin-bottom: 10px;
}
.execution-timeline {
display: grid;
gap: 12px;
grid-template-columns: repeat(6, minmax(0, 1fr));
margin-bottom: 22px;
}
.execution-step {
background: var(--card);
border: 1px solid var(--border);
border-radius: 10px;
min-width: 0;
padding: 16px;
}
.execution-step-icon {
align-items: center;
background: var(--secondary);
border-radius: 999px;
color: var(--muted-foreground);
display: inline-flex;
font-weight: 800;
height: 28px;
justify-content: center;
margin-bottom: 10px;
width: 28px;
}
.execution-step-done .execution-step-icon {
background: #0f766e;
color: #ffffff;
}
.execution-step-active .execution-step-icon {
background: #2563eb;
color: #ffffff;
}
.execution-step strong,
.execution-step small {
display: block;
}
.execution-step strong {
color: var(--foreground);
font-size: 15px;
font-weight: 800;
margin-bottom: 6px;
}
.execution-step small {
color: var(--muted-foreground);
line-height: 1.35;
}
.hotspot-result-card {
min-height: 116px;
}
.hotspot-rank {
align-items: center;
background: #eff6ff;
border-radius: 10px;
color: #2563eb;
display: flex;
flex: 0 0 56px;
height: 56px;
justify-content: center;
}
.hotspot-result-body {
flex: 1 1 auto;
min-width: 0;
}
.hotspot-result-body h3 {
color: var(--foreground);
font-size: 17px;
font-weight: 800;
line-height: 1.35;
margin: 0 0 10px;
}
.hotspot-chip-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.hotspot-chip-row span,
.keyword-cloud span,
.ghost-actions span {
background: var(--secondary);
border: 1px solid var(--border);
border-radius: 8px;
color: #475569;
display: inline-flex;
font-size: 12px;
padding: 6px 10px;
}
.report-reading-layout {
align-items: start;
}
.insight-list {
display: grid;
gap: 12px;
margin-top: 16px;
}
.insight-list p {
color: #475569;
display: flex;
font-size: 14px;
gap: 10px;
line-height: 1.55;
margin: 0;
}
.insight-list p span {
background: #2563eb;
border-radius: 999px;
flex: 0 0 8px;
height: 8px;
margin-top: 7px;
}
.representative-comments {
display: grid;
gap: 12px;
}
.representative-comments .panel-title-row {
margin-bottom: 0;
}
.quote-card {
align-items: flex-start;
}
.quote-card p {
color: var(--foreground);
flex: 1 1 auto;
font-size: 14px;
line-height: 1.45;
margin: 0;
}
.quote-card small {
color: var(--muted-foreground);
white-space: nowrap;
}
.content-performance-card {
display: grid;
gap: 14px;
}
.performance-row {
align-items: center;
display: flex;
gap: 12px;
justify-content: space-between;
}
.performance-row strong,
.performance-row span {
display: block;
}
.performance-row strong {
color: var(--foreground);
font-size: 15px;
}
.performance-row span {
color: var(--muted-foreground);
font-size: 12px;
margin-top: 4px;
}
.performance-row em {
color: #2563eb;
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
font-style: normal;
font-weight: 700;
white-space: nowrap;
}
.sentiment-sidepanel,
.keyword-sidepanel,
.report-data-note {
display: grid;
gap: 14px;
}
.sentiment-row {
display: grid;
gap: 6px;
}
.sentiment-positive {
background-color: #0f766e !important;
}
.sentiment-neutral {
background-color: #2563eb !important;
}
.sentiment-negative {
background-color: #e11d48 !important;
}
.keyword-cloud,
.ghost-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.keyword-cloud span,
.ghost-actions span {
background: #eff6ff;
border-color: #dbeafe;
color: #2563eb;
font-weight: 700;
}
@media (max-width: 992px) {
.control-hero,
.task-detail-hero,
.report-reading-hero,
.dashboard-workspace,
.detail-workspace,
.report-reading-layout {
grid-template-columns: 1fr;
}
.quick-form-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quick-start-btn {
grid-column: 1 / -1;
}
.overview-grid,
.execution-timeline {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-shell {
align-items: flex-start;
flex-direction: column;
}
.hero-metrics {
min-width: 0;
width: 100%;
}
.hero-data-grid {
min-width: 0;
}
}
@media (max-width: 768px) {
main.container {
padding-left: 14px;
padding-right: 14px;
}
.hero-band {
padding: 22px;
}
.hero-band-inverse {
margin-left: -14px;
margin-right: -14px;
padding: 28px 22px;
}
.hero-copy h1 {
font-size: 28px;
}
.hero-band-inverse .hero-copy h1 {
font-size: 30px;
}
.hero-metrics {
grid-template-columns: 1fr;
}
.hero-band-inverse .hero-metric {
border-bottom: 1px solid #374151;
border-right: 0;
}
.hero-band-inverse .hero-metric:last-child {
border-bottom: 0;
}
.section-heading,
.page-heading,
.content-item-row,
.panel-title-row,
.task-card,
.hotspot-result-card,
.quote-card,
.performance-row {
align-items: flex-start;
flex-direction: column;
}
.control-hero,
.task-detail-hero,
.report-reading-hero {
padding: 22px;
}
.control-hero h1,
.task-detail-hero h1,
.report-reading-hero h1 {
font-size: 28px;
}
.default-scale-grid,
.overview-grid,
.execution-timeline,
.quick-form-grid {
grid-template-columns: 1fr;
}
.task-card-number,
.task-card-action,
.hotspot-rank {
flex: 0 0 auto;
}
.task-card-action,
.hotspot-result-card .btn {
width: 100%;
}
.card-body {
padding: 16px;
}
.content-item-row .btn {
width: 100%;
}
.accordion-button {
align-items: flex-start;
}
}