Files
phamnazage-jpg f5b373caf4
Some checks failed
CI / go-test (push) Has been cancelled
CI / scripts-regression (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / docker-build (push) Has been cancelled
feat(report): improve daily intelligence UX and price tracking
2026-05-27 17:23:08 +08:00

804 lines
13 KiB
CSS

/* LLM Intelligence Hub - App Styles */
.app {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
padding-bottom: 16px;
border-bottom: 2px solid #e5e7eb;
}
.navbar h1 {
margin: 0;
font-size: 24px;
color: #1f2937;
}
.tabs {
display: flex;
gap: 12px;
}
.tabs button {
padding: 8px 16px;
border: 1px solid #d1d5db;
border-radius: 6px;
background: white;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
}
.tabs button:hover {
background: #f3f4f6;
}
.tabs button.active {
background: #3b82f6;
color: white;
border-color: #3b82f6;
}
.main {
min-height: 600px;
}
.filters {
display: flex;
gap: 12px;
align-items: center;
margin-bottom: 16px;
flex-wrap: wrap;
}
.filters select {
padding: 8px 10px;
border: 1px solid #d1d5db;
border-radius: 6px;
background: #fff;
}
.count {
color: #4b5563;
font-size: 14px;
}
.model-table {
width: 100%;
border-collapse: collapse;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 8px;
overflow: hidden;
}
.model-table th,
.model-table td {
padding: 12px 14px;
border-bottom: 1px solid #e5e7eb;
text-align: left;
vertical-align: top;
}
.model-table th {
background: #f9fafb;
color: #111827;
font-size: 14px;
}
.model-table tr.free {
background: #f0fdf4;
}
.model-table tr.stale {
background: #fff7ed;
}
.model-name {
font-weight: 600;
color: #111827;
}
.model-id {
margin-top: 4px;
color: #6b7280;
font-size: 12px;
word-break: break-all;
}
.status-badge {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
text-transform: lowercase;
}
.status-fresh {
background: #dcfce7;
color: #166534;
}
.status-stale {
background: #fed7aa;
color: #9a3412;
}
.pagination {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
margin-top: 16px;
}
.pagination button {
padding: 8px 14px;
border: 1px solid #d1d5db;
border-radius: 6px;
background: #fff;
cursor: pointer;
}
.pagination button:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.dashboard h2 {
margin: 0 0 16px;
color: #111827;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.stat-card {
padding: 18px;
border: 1px solid #e5e7eb;
border-radius: 12px;
background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.stat-card.subscription {
border-color: #f59e0b;
background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
}
.stat-value {
font-size: 28px;
font-weight: 700;
line-height: 1.1;
color: #111827;
}
.stat-label {
margin-top: 8px;
color: #4b5563;
font-size: 14px;
}
.chart-container {
margin-bottom: 24px;
padding: 20px;
border: 1px solid #e5e7eb;
border-radius: 12px;
background: #fff;
}
.report-section {
margin-bottom: 24px;
padding: 20px;
border: 1px solid #bfdbfe;
border-radius: 12px;
background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}
.report-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}
.report-header h3 {
margin: 0;
color: #111827;
}
.report-header p {
margin: 6px 0 0;
color: #6b7280;
font-size: 14px;
}
.report-status {
display: inline-flex;
align-items: center;
padding: 8px 12px;
border-radius: 999px;
font-size: 13px;
font-weight: 600;
text-transform: lowercase;
}
.report-status-generated {
background: #dbeafe;
color: #1d4ed8;
}
.report-status-other {
background: #e5e7eb;
color: #374151;
}
.report-card {
padding: 18px;
border: 1px solid #dbeafe;
border-radius: 18px;
background:
radial-gradient(
circle at top left,
rgba(37, 99, 235, 0.1),
transparent 35%
),
rgba(255, 255, 255, 0.94);
box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}
.report-hero {
padding: 18px;
border-radius: 16px;
background: linear-gradient(135deg, #123c63 0%, #24507a 100%);
color: #ffffff;
margin-bottom: 16px;
}
.report-eyebrow {
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
opacity: 0.78;
margin-bottom: 8px;
}
.report-summary {
font-size: 22px;
line-height: 1.35;
font-weight: 800;
}
.report-meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 14px;
color: #4b5563;
font-size: 14px;
}
.report-highlights {
display: grid;
gap: 10px;
margin-bottom: 14px;
}
.report-highlight {
display: grid;
gap: 4px;
padding: 12px 14px;
border-radius: 12px;
background: rgba(239, 246, 255, 0.92);
border: 1px solid #dbeafe;
}
.report-highlight strong {
color: #1e3a8a;
font-size: 13px;
}
.report-highlight span {
color: #475569;
font-size: 14px;
}
.report-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.report-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 14px;
border: 1px solid #93c5fd;
border-radius: 8px;
color: #1d4ed8;
text-decoration: none;
font-weight: 600;
background: #ffffff;
}
.report-link-primary {
background: #2563eb;
border-color: #2563eb;
color: #ffffff;
}
.report-note {
margin-top: 12px;
color: #6b7280;
font-size: 13px;
}
.runtime-warning {
margin-bottom: 16px;
padding: 12px 14px;
border: 1px solid #f59e0b;
border-radius: 10px;
background: #fff7ed;
color: #9a3412;
font-size: 14px;
line-height: 1.5;
}
.runtime-error {
margin-bottom: 16px;
padding: 12px 14px;
border: 1px solid #dc2626;
border-radius: 10px;
background: #fef2f2;
color: #991b1b;
font-size: 14px;
line-height: 1.5;
}
.runtime-error-inline {
color: #991b1b;
}
.data-empty {
padding: 18px;
border: 1px dashed #d1d5db;
border-radius: 10px;
background: #f9fafb;
color: #6b7280;
text-align: center;
}
.runtime-warning-inline {
color: #9a3412;
}
.subscription-section {
padding: 20px;
border: 1px solid #fde68a;
border-radius: 12px;
background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
}
.subscription-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}
.subscription-header h3 {
margin: 0;
color: #111827;
}
.subscription-header p {
margin: 6px 0 0;
color: #6b7280;
font-size: 14px;
}
.subscription-summary {
display: inline-flex;
flex-wrap: wrap;
gap: 10px;
padding: 10px 14px;
border-radius: 999px;
background: #fff7ed;
color: #9a3412;
font-size: 13px;
font-weight: 600;
white-space: nowrap;
}
.subscription-table {
width: 100%;
border-collapse: collapse;
background: #fff;
border: 1px solid #f3f4f6;
border-radius: 10px;
overflow: hidden;
}
.subscription-table th,
.subscription-table td {
padding: 12px 14px;
border-bottom: 1px solid #f3f4f6;
text-align: left;
vertical-align: top;
}
.subscription-table th {
background: #fffbeb;
color: #111827;
font-size: 14px;
}
.subscription-table tbody tr:last-child td {
border-bottom: none;
}
.plan-name {
font-weight: 600;
color: #111827;
}
.plan-meta {
margin-top: 4px;
color: #6b7280;
font-size: 12px;
line-height: 1.4;
}
.subscription-empty {
padding: 18px;
border: 1px dashed #d1d5db;
border-radius: 10px;
background: #f9fafb;
color: #6b7280;
text-align: center;
}
.explorer-editorial,
.report-priority-section {
display: grid;
gap: 18px;
}
.explorer-hero,
.filters-editorial,
.pricing-focus-card,
.pricing-board-card,
.report-priority-card,
.report-news-card,
.report-theme-card {
border: 1px solid rgba(15, 23, 42, 0.08);
border-radius: 20px;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.98) 0%,
rgba(248, 250, 252, 0.96) 100%
);
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}
.explorer-hero,
.pricing-focus-card,
.report-priority-card {
padding: 22px;
}
.explorer-kicker,
.report-news-label {
font-size: 12px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #475569;
}
.explorer-hero {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.explorer-hero h2 {
margin: 6px 0 8px;
font-size: 34px;
line-height: 1.05;
color: #0f172a;
}
.explorer-hero p,
.pricing-focus-header p,
.report-news-summary,
.report-theme-card li,
.report-evidence {
color: #475569;
line-height: 1.6;
}
.explorer-hero-meta {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.explorer-hero-meta span,
.report-news-label {
padding: 8px 12px;
border-radius: 999px;
background: #eff6ff;
color: #1d4ed8;
}
.filters-editorial {
padding: 14px 16px;
background: #fff;
}
.pricing-focus-header,
.report-news-grid,
.report-theme-grid,
.pricing-board-grid {
display: grid;
gap: 14px;
}
.pricing-focus-header {
grid-template-columns: 1fr auto;
align-items: start;
}
.pricing-focus-header h3,
.report-theme-title,
.report-news-title {
margin: 8px 0 6px;
color: #0f172a;
}
.pricing-focus-prices {
margin-top: 18px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.pricing-focus-prices div,
.pricing-board-card,
.report-news-card,
.report-theme-card {
padding: 16px;
}
.pricing-focus-prices span,
.pricing-board-meta {
display: block;
color: #64748b;
font-size: 13px;
}
.pricing-focus-prices strong,
.pricing-board-price {
display: block;
margin-top: 8px;
font-size: 24px;
color: #111827;
}
.pricing-board-grid,
.report-news-grid,
.report-theme-grid {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.report-priority-card {
background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.report-hero-priority {
background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
}
.report-evidence {
margin-top: 12px;
color: rgba(255, 255, 255, 0.82);
}
.report-theme-card ul {
margin: 12px 0 0;
padding-left: 18px;
}
.model-table-editorial {
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}
.theme-news-list {
display: grid;
gap: 12px;
margin-top: 12px;
}
.theme-news-item {
padding: 14px;
border-radius: 14px;
background: rgba(248, 250, 252, 0.92);
border: 1px solid rgba(148, 163, 184, 0.18);
border-left: 6px solid #94a3b8;
}
.theme-news-item.tone-success {
background: linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(220, 252, 231, 0.92) 100%);
border-color: rgba(34, 197, 94, 0.28);
border-left-color: #16a34a;
}
.theme-news-item.tone-success .card-title,
.theme-news-item.tone-success .trust-line {
color: #166534;
}
.theme-news-item.tone-caution {
background: linear-gradient(180deg, rgba(254, 242, 242, 0.98) 0%, rgba(254, 226, 226, 0.92) 100%);
border-color: rgba(239, 68, 68, 0.26);
border-left-color: #dc2626;
}
.theme-news-item.tone-caution .card-title,
.theme-news-item.tone-caution .trust-line {
color: #991b1b;
}
.theme-news-item.tone-promo {
background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(250, 245, 255, 0.94) 100%);
border-color: rgba(168, 85, 247, 0.22);
border-left-color: #f97316;
}
.theme-news-item.tone-promo .card-title,
.theme-news-item.tone-promo .trust-line {
color: #9a3412;
}
.report-theme-card {
background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.94) 100%);
}
.report-theme-card:first-child {
border-color: rgba(34, 197, 94, 0.18);
}
.report-theme-card:first-child .report-theme-title {
color: #166534;
}
.report-theme-card:nth-child(2) {
border-color: rgba(239, 68, 68, 0.18);
}
.report-theme-card:nth-child(2) .report-theme-title {
color: #991b1b;
}
.report-theme-card:nth-child(3) {
border-color: rgba(249, 115, 22, 0.2);
}
.report-theme-card:nth-child(3) .report-theme-title {
color: #9a3412;
}
.report-theme-badge {
display: inline-flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
}
.report-theme-badge-icon {
width: 26px;
height: 26px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
background: rgba(15, 23, 42, 0.08);
font-weight: 700;
}
.report-theme-badge-label {
font-size: 11px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #475569;
}
.report-theme-card.tone-success .report-theme-badge-icon {
background: rgba(34, 197, 94, 0.16);
color: #166534;
}
.report-theme-card.tone-caution .report-theme-badge-icon {
background: rgba(239, 68, 68, 0.16);
color: #991b1b;
}
.report-theme-card.tone-promo .report-theme-badge-icon {
background: rgba(249, 115, 22, 0.16);
color: #9a3412;
}
@media (max-width: 768px) {
.explorer-hero,
.pricing-focus-header {
grid-template-columns: 1fr;
display: grid;
}
.explorer-hero h2 {
font-size: 28px;
}
.pricing-focus-prices {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.app {
padding: 16px;
}
.navbar {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.subscription-header {
flex-direction: column;
}
.report-header {
flex-direction: column;
}
.report-summary {
font-size: 24px;
}
.report-actions {
flex-direction: column;
}
.report-link {
width: 100%;
}
.subscription-summary {
white-space: normal;
}
.subscription-table {
display: block;
overflow-x: auto;
}
}