fix: pre-launch UI hardening + KOL reduce-action type, proxy IP relay, settings redesign

Frontend half of the pre-launch audit campaign:

- types/index.ts + kol/KolPageClient.tsx: add missing 'reduce' KolAction
  (backend emits it; frontend lacked the type + color/label maps → undefined
  styling). Adds ACTION_COLOR/actionLabel/postActionLabel entries.
- proxy/[...path]/route.ts: relay real client IP (x-forwarded-for / x-real-ip)
  so the backend rate limiter buckets per-user instead of per-Next-server (BUG-02).
- Settings/BotConfigPanel redesign, paper-mode clarity, copy cleanup.
- Assorted page/display fixes, loading states, Pagination component.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
k
2026-05-29 11:57:43 +08:00
parent b76de36af0
commit d50c05b120
32 changed files with 1003 additions and 224 deletions
+222 -73
View File
@@ -4,21 +4,21 @@
============================================================ */
.lp-root {
--lp-bg: #0a0907;
--lp-bg-2: #12100c;
--lp-surface: rgba(255, 255, 255, 0.04);
--lp-surface-2: rgba(255, 255, 255, 0.07);
--lp-line: rgba(255, 255, 255, 0.08);
--lp-line-2: rgba(255, 255, 255, 0.14);
--lp-ink: #f5f2ea;
--lp-ink-2: #c9c3b5;
--lp-bg: #060605;
--lp-bg-2: #0e0d0b;
--lp-surface: rgba(255, 255, 255, 0.045);
--lp-surface-2: rgba(255, 255, 255, 0.08);
--lp-line: rgba(255, 255, 255, 0.10);
--lp-line-2: rgba(255, 255, 255, 0.18);
--lp-ink: #ffffff;
--lp-ink-2: #d4cfc5;
--lp-ink-3: #8a8578;
--lp-ink-4: #5c584e;
--lp-amber: #f5a524;
--lp-amber-2: #e68a00;
--lp-amber-glow: rgba(245, 165, 36, 0.35);
--lp-red: #ef4444;
--lp-green: #22c55e;
--lp-amber-glow: rgba(245, 165, 36, 0.40);
--lp-red: #f43f3f;
--lp-green: #1fdb63;
--lp-violet: #a78bfa;
min-height: 100vh;
@@ -104,7 +104,7 @@
.lp-nav-inner {
max-width: 1180px;
margin: 0 auto;
padding: 14px 24px;
padding: 12px 24px;
display: flex;
align-items: center;
justify-content: space-between;
@@ -142,24 +142,46 @@
/* ---------- Hero ---------- */
.lp-hero {
min-height: calc(100vh - 60px);
min-height: calc(100vh - 56px);
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 52px;
align-items: start;
padding: 72px 0 60px;
text-align: left;
}
.lp-hero-left {
display: flex;
flex-direction: column;
justify-content: center;
padding: 80px 0 100px;
text-align: center;
align-items: flex-start;
padding-top: 4px;
}
.lp-hero-right {
position: relative;
padding-top: 2px;
}
@media (max-width: 960px) {
.lp-hero {
grid-template-columns: 1fr;
text-align: center;
padding: 52px 0 56px;
gap: 0;
align-items: center;
}
.lp-hero-left { align-items: center; }
.lp-hero-right { display: none; }
}
.lp-live-badge {
display: inline-flex; align-items: center; gap: 8px;
margin: 0 auto 28px;
padding: 7px 14px 7px 10px;
font-size: 12px; font-weight: 600;
color: var(--lp-ink-2);
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.25);
border-radius: 999px;
letter-spacing: 0.04em;
margin: 0 0 22px;
padding: 5px 12px 5px 9px;
font-size: 11px; font-weight: 700;
color: var(--lp-ink-3);
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.10);
border-radius: 6px;
letter-spacing: 0.08em;
text-transform: uppercase;
animation: lp-fade-up 0.7s ease both;
}
@@ -176,11 +198,11 @@
}
.lp-h1 {
font-size: clamp(40px, 7.2vw, 88px);
font-weight: 800;
line-height: 1.02;
letter-spacing: -0.035em;
margin: 0 0 22px;
font-size: clamp(36px, 5.0vw, 72px);
font-weight: 900;
line-height: 1.05;
letter-spacing: -0.04em;
margin: 0 0 18px;
animation: lp-fade-up 0.9s 0.1s ease both;
}
.lp-h1 .grad {
@@ -210,28 +232,36 @@
}
.lp-sub {
max-width: 640px;
margin: 0 auto 40px;
font-size: clamp(16px, 1.8vw, 20px);
max-width: 480px;
margin: 0 0 32px;
font-size: clamp(14px, 1.5vw, 17px);
line-height: 1.55;
color: var(--lp-ink-2);
color: var(--lp-ink-3);
animation: lp-fade-up 0.9s 0.25s ease both;
}
@media (max-width: 960px) {
.lp-sub { margin: 0 auto 32px; max-width: 520px; }
.lp-engine-chips { justify-content: center; }
}
.lp-ctas {
display: flex; gap: 14px;
justify-content: center;
display: flex; gap: 12px;
justify-content: flex-start;
flex-wrap: wrap;
animation: lp-fade-up 0.9s 0.4s ease both;
}
@media (max-width: 920px) {
.lp-ctas { justify-content: center; }
}
.lp-btn {
display: inline-flex; align-items: center; gap: 10px;
padding: 16px 28px;
font-size: 16px; font-weight: 600;
border-radius: 14px;
display: inline-flex; align-items: center; gap: 8px;
padding: 14px 24px;
font-size: 15px; font-weight: 700;
border-radius: 10px;
text-decoration: none;
transition: all 0.18s ease;
cursor: pointer; border: none;
letter-spacing: -0.01em;
}
/* Primary CTA — kept static on purpose. Previously the button had a magnetic
pull, a shimmer sweep, a hover lift, and a glow expansion stacked together.
@@ -265,8 +295,8 @@
/* ---------- Ticker strip ---------- */
.lp-ticker {
margin-top: 64px;
padding: 18px 0;
margin-top: 0;
padding: 16px 0;
border-top: 1px solid var(--lp-line);
border-bottom: 1px solid var(--lp-line);
overflow: hidden;
@@ -277,7 +307,7 @@
display: flex;
gap: 48px;
width: max-content;
animation: lp-scroll 40s linear infinite;
animation: lp-scroll 28s linear infinite;
white-space: nowrap;
}
@keyframes lp-scroll {
@@ -302,30 +332,30 @@
/* ---------- Section ---------- */
.lp-section {
padding: 80px 0;
padding: 72px 0;
position: relative;
}
.lp-eyebrow {
font-size: 12px;
font-weight: 600;
letter-spacing: 0.16em;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--lp-amber);
margin-bottom: 16px;
margin-bottom: 12px;
}
.lp-h2 {
font-size: clamp(30px, 4.5vw, 52px);
font-weight: 700;
letter-spacing: -0.025em;
line-height: 1.08;
margin: 0 0 20px;
font-size: clamp(26px, 3.8vw, 48px);
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1.1;
margin: 0 0 16px;
}
.lp-lead {
max-width: 600px;
font-size: 17px;
line-height: 1.55;
color: var(--lp-ink-2);
margin: 0 0 40px;
max-width: 580px;
font-size: 16px;
line-height: 1.6;
color: var(--lp-ink-3);
margin: 0 0 36px;
}
/* ---------- Scroll reveal ---------- */
@@ -545,7 +575,7 @@
/* ---------- Final CTA ---------- */
.lp-cta-final {
padding: 120px 0;
padding: 88px 0 96px;
text-align: center;
position: relative;
}
@@ -1469,19 +1499,19 @@
/* ===== Mobile polish (≤720px / ≤480px) ===== */
@media (max-width: 720px) {
.lp-wrap { padding: 0 16px; }
.lp-nav-inner { padding: 12px 16px; }
.lp-nav-inner { padding: 10px 16px; }
.lp-logo { font-size: 14px; }
.lp-nav-cta { padding: 8px 12px; font-size: 12px; }
.lp-nav-cta { padding: 7px 12px; font-size: 12px; }
.lp-hero {
min-height: auto;
padding: 48px 0 56px;
padding: 44px 0 52px;
}
.lp-h1 {
font-size: clamp(30px, 8.4vw, 56px);
margin-bottom: 18px;
font-size: clamp(28px, 8.0vw, 52px);
margin-bottom: 16px;
}
.lp-sub { margin-bottom: 28px; font-size: 15px; }
.lp-sub { margin-bottom: 24px; font-size: 14px; }
.lp-live-badge {
font-size: 10px;
padding: 6px 10px 6px 8px;
@@ -1496,10 +1526,10 @@
.lp-ticker-track { gap: 24px; }
.lp-ticker-item { font-size: 11px; }
.lp-section { padding: 60px 0; }
.lp-h2 { font-size: clamp(24px, 6.4vw, 40px); }
.lp-lead { font-size: 15px; }
.lp-eyebrow { font-size: 11px; }
.lp-section { padding: 52px 0; }
.lp-h2 { font-size: clamp(22px, 6.0vw, 38px); }
.lp-lead { font-size: 14px; }
.lp-eyebrow { font-size: 10px; }
/* Terminal */
.lp-term { border-radius: 14px; }
@@ -1535,7 +1565,7 @@
.lp-stat-val { font-size: 28px; }
/* Final CTA */
.lp-cta-final { padding: 64px 0 72px; }
.lp-cta-final { padding: 56px 0 64px; }
}
@media (max-width: 420px) {
@@ -1649,12 +1679,128 @@
}
*/
/* ── Engine chips — 6-signal breadth strip ─────────────────── */
.lp-engine-chips {
display: flex; flex-wrap: wrap; gap: 6px;
margin-top: 18px;
animation: lp-fade-up 0.9s 0.55s ease both;
}
.lp-engine-chip {
font-size: 11px; font-weight: 600;
padding: 4px 10px; border-radius: 5px;
font-family: 'Geist Mono', monospace;
letter-spacing: 0.04em;
border: 1px solid;
white-space: nowrap;
}
.lp-engine-chip.trump { color: var(--lp-amber); background: rgba(245,165,36,0.10); border-color: rgba(245,165,36,0.28); }
.lp-engine-chip.macro { color: var(--lp-green); background: rgba(31,219,99,0.09); border-color: rgba(31,219,99,0.25); }
.lp-engine-chip.kol { color: var(--lp-violet); background: rgba(167,139,250,0.10); border-color: rgba(167,139,250,0.28); }
.lp-engine-chip.tvt { color: var(--lp-red); background: rgba(244,63,63,0.09); border-color: rgba(244,63,63,0.25); }
.lp-engine-chip.fund { color: #60c8f5; background: rgba(96,200,245,0.09); border-color: rgba(96,200,245,0.25); }
.lp-engine-chip.auto { color: var(--lp-ink-2); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.13); }
/* ── Live feed (X-timeline style, hero right column) ───────── */
.lp-livefeed {
background: rgba(8,8,8,0.85);
border: 1px solid var(--lp-line-2);
border-radius: 14px;
overflow: hidden;
backdrop-filter: blur(24px);
box-shadow:
0 40px 100px rgba(0,0,0,0.7),
0 0 0 1px rgba(255,255,255,0.04),
inset 0 1px 0 rgba(255,255,255,0.04);
animation: lp-fade-up 1s 0.5s ease both;
}
.lp-livefeed-head {
display: flex; align-items: center; gap: 8px;
padding: 11px 16px;
border-bottom: 1px solid rgba(255,255,255,0.07);
font-size: 10px; font-weight: 700;
letter-spacing: 0.12em; text-transform: uppercase;
color: var(--lp-ink-3);
background: rgba(255,255,255,0.015);
}
.lp-livefeed-dot {
width: 7px; height: 7px; border-radius: 50%;
background: var(--lp-green);
box-shadow: 0 0 8px var(--lp-green);
animation: lp-ping 1.4s infinite;
flex-shrink: 0;
}
.lp-livefeed-count {
margin-left: auto;
font-size: 10px;
color: var(--lp-ink-4);
font-family: 'Geist Mono', monospace;
}
.lp-signal-post {
padding: 13px 16px;
border-bottom: 1px solid rgba(255,255,255,0.05);
transition: background 0.15s;
cursor: default;
}
.lp-signal-post:last-child { border-bottom: none; }
.lp-signal-post.is-new {
background: rgba(245,165,36,0.04);
border-left: 2px solid var(--lp-amber);
padding-left: 14px;
}
.lp-signal-post:hover { background: rgba(255,255,255,0.025); }
.lp-signal-post-head {
display: flex; align-items: center; gap: 6px;
margin-bottom: 6px;
}
.lp-signal-handle {
font-size: 13px; font-weight: 700;
color: var(--lp-ink);
}
.lp-signal-at { font-size: 12px; color: var(--lp-ink-4); }
.lp-signal-ts { font-size: 11px; color: var(--lp-ink-4); margin-left: auto; font-family: 'Geist Mono', monospace; }
.lp-signal-new-badge {
margin-left: 4px;
font-size: 9px; font-weight: 700;
padding: 1px 6px; border-radius: 3px;
background: var(--lp-amber);
color: #060605;
letter-spacing: 0.08em;
text-transform: uppercase;
animation: lp-pulse-soft 1.8s ease-in-out infinite;
}
.lp-signal-text {
font-size: 13.5px; line-height: 1.4;
color: var(--lp-ink-2);
margin: 0 0 9px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.lp-signal-chips {
display: flex; gap: 5px; flex-wrap: wrap; align-items: center;
}
.lp-signal-chip {
font-size: 10px; font-weight: 700;
padding: 3px 8px; border-radius: 4px;
font-family: 'Geist Mono', monospace;
letter-spacing: 0.05em;
border: 1px solid transparent;
}
.lp-signal-chip.long { background: rgba(31,219,99,0.15); color: var(--lp-green); border-color: rgba(31,219,99,0.30); }
.lp-signal-chip.short { background: rgba(244,63,63,0.15); color: var(--lp-red); border-color: rgba(244,63,63,0.30); }
.lp-signal-chip.noise { background: rgba(255,255,255,0.05); color: var(--lp-ink-4); border-color: rgba(255,255,255,0.08); }
.lp-signal-chip.asset { background: rgba(245,165,36,0.15); color: var(--lp-amber); border-color: rgba(245,165,36,0.30); }
.lp-signal-chip.conf { background: rgba(167,139,250,0.12); color: var(--lp-violet); border-color: rgba(167,139,250,0.25); }
.lp-signal-chip.action-ok { color: var(--lp-green); background: transparent; border: none; padding-left: 0; font-weight: 500; font-size: 11px; }
.lp-signal-chip.action-skip { color: var(--lp-ink-4); background: transparent; border: none; padding-left: 0; font-weight: 500; font-size: 11px; }
/* ── 6. Hero stats (counter strip) ────────────────────────── */
.lp-herostats {
margin: 56px auto 0;
align-self: center; /* center inside .lp-hero flex column */
display: inline-flex; align-items: stretch; gap: 28px;
padding: 18px 28px;
margin: 32px 0 0;
display: inline-flex; align-items: stretch; gap: 24px;
padding: 14px 20px;
border: 1px solid var(--lp-line);
border-radius: 16px;
background:
@@ -1697,6 +1843,9 @@
background: linear-gradient(180deg, transparent, var(--lp-line), transparent);
align-self: stretch;
}
@media (max-width: 960px) {
.lp-herostats { align-self: center; }
}
@media (max-width: 560px) {
.lp-herostats { gap: 16px; padding: 14px 18px; }
}