feat: isolate BossAI website with Next.js

This commit is contained in:
boos
2026-06-06 05:30:10 +08:00
parent d75daf72d6
commit 03046152fd
21 changed files with 3153 additions and 1085 deletions
+834
View File
@@ -0,0 +1,834 @@
@import "tailwindcss";
:root {
--ink: #07110f;
--ink-soft: #101d19;
--panel: rgba(13, 25, 22, 0.82);
--line: rgba(231, 255, 219, 0.16);
--line-strong: rgba(215, 255, 77, 0.38);
--text: #f8fff4;
--muted: rgba(237, 249, 232, 0.68);
--faint: rgba(237, 249, 232, 0.44);
--acid: #d7ff4d;
--acid-2: #a5ff5f;
--ice: #e9f7ff;
--blue: #8bf6ff;
--radius: 24px;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
min-height: 100vh;
margin: 0;
background: var(--ink);
color: var(--text);
font-family: var(--font-geist), "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
-webkit-font-smoothing: antialiased;
text-rendering: geometricPrecision;
}
a {
color: inherit;
text-decoration: none;
}
button,
a {
-webkit-tap-highlight-color: transparent;
}
::selection {
background: rgba(215, 255, 77, 0.28);
color: var(--text);
}
.site-shell {
position: relative;
min-height: 100dvh;
overflow: hidden;
background:
radial-gradient(circle at 8% 18%, rgba(215, 255, 77, 0.16), transparent 28%),
radial-gradient(circle at 88% 8%, rgba(139, 246, 255, 0.12), transparent 30%),
linear-gradient(145deg, #040807 0%, #08110f 42%, #13221d 100%);
}
.site-shell::before {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
content: "";
background:
linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
background-size: 82px 82px;
mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.site-noise {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
opacity: 0.24;
background-image:
repeating-radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 4px);
mix-blend-mode: overlay;
}
.site-nav,
.hero-section,
.platform-section,
.workflow-section,
.factory-section,
.deploy-section,
.final-section {
position: relative;
z-index: 1;
width: min(1180px, calc(100% - 40px));
margin-inline: auto;
}
.site-nav {
min-height: 88px;
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 28px;
}
.brand-mark,
.nav-links,
.nav-actions,
.hero-actions {
display: flex;
align-items: center;
}
.brand-mark {
gap: 12px;
font-weight: 800;
letter-spacing: -0.02em;
}
.brand-mark img {
border-radius: 12px;
box-shadow: 0 12px 34px rgba(215, 255, 77, 0.14);
}
.nav-links {
justify-content: center;
gap: 30px;
color: var(--faint);
font-size: 13px;
font-weight: 650;
}
.nav-links a {
transition: color 180ms ease;
}
.nav-links a:hover {
color: var(--text);
}
.nav-actions {
gap: 10px;
}
.ghost-link,
.solid-link,
.primary-cta,
.secondary-cta {
min-height: 42px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
padding-inline: 18px;
border: 1px solid transparent;
font-size: 13px;
font-weight: 760;
white-space: nowrap;
transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.ghost-link,
.secondary-cta {
border-color: var(--line);
background: rgba(255, 255, 255, 0.03);
color: var(--muted);
}
.solid-link,
.primary-cta {
background: var(--acid);
color: #07110f;
box-shadow: 0 22px 48px rgba(215, 255, 77, 0.16);
}
.ghost-link:hover,
.solid-link:hover,
.primary-cta:hover,
.secondary-cta:hover {
transform: translateY(-2px);
}
.ghost-link:hover,
.secondary-cta:hover {
border-color: var(--line-strong);
color: var(--text);
}
.hero-section {
min-height: calc(100dvh - 88px);
display: grid;
grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
align-items: start;
gap: 52px;
padding: clamp(72px, 10vh, 112px) 0 88px;
}
.hero-copy {
display: grid;
gap: 24px;
align-content: center;
}
.section-kicker {
width: fit-content;
display: inline-flex;
align-items: center;
gap: 9px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(255, 255, 255, 0.035);
color: var(--muted);
padding: 8px 12px;
font-size: 12px;
font-weight: 760;
}
.pulse-dot {
width: 7px;
height: 7px;
border-radius: 999px;
background: var(--acid);
box-shadow: 0 0 0 0 rgba(215, 255, 77, 0.55);
animation: pulse-dot 2.4s ease-out infinite;
}
.hero-copy h1 {
max-width: 780px;
margin: 0;
font-size: clamp(48px, 7vw, 92px);
line-height: 0.9;
letter-spacing: -0.07em;
text-wrap: balance;
}
.hero-copy h1 span {
display: block;
color: var(--acid);
}
.hero-copy p {
max-width: 60ch;
margin: 0;
color: var(--muted);
font-size: 16px;
line-height: 1.85;
}
.hero-actions {
gap: 12px;
padding-top: 4px;
}
.primary-cta,
.secondary-cta {
min-height: 48px;
padding-inline: 22px;
font-size: 14px;
}
.hero-console {
position: relative;
margin-top: 14px;
min-height: 500px;
border: 1px solid var(--line);
border-radius: 32px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
rgba(10, 20, 18, 0.84);
padding: 18px;
overflow: hidden;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.16),
0 34px 90px rgba(0, 0, 0, 0.36);
}
.console-orbit {
position: absolute;
width: 420px;
height: 420px;
right: -120px;
top: -130px;
border: 1px solid rgba(215, 255, 77, 0.12);
border-radius: 999px;
background: radial-gradient(circle, rgba(215, 255, 77, 0.12), transparent 60%);
animation: slow-spin 24s linear infinite;
}
.console-orbit::after {
position: absolute;
width: 11px;
height: 11px;
top: 64px;
left: 76px;
border-radius: 999px;
content: "";
background: var(--acid);
box-shadow: 0 0 30px rgba(215, 255, 77, 0.58);
}
.console-bar,
.route-row,
.mini-grid > div,
.node-card,
.deploy-stack > div {
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.035);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.console-bar {
position: relative;
z-index: 2;
min-height: 54px;
display: flex;
align-items: center;
justify-content: space-between;
border-radius: 18px;
padding: 0 16px;
}
.console-bar span,
.route-row em,
.mini-grid span,
.node-card span,
.deploy-stack small {
color: var(--faint);
font-size: 12px;
font-style: normal;
}
.route-list {
position: relative;
z-index: 2;
display: grid;
gap: 10px;
margin-top: 12px;
}
.route-row {
min-height: 58px;
display: grid;
grid-template-columns: 78px 1fr auto;
align-items: center;
gap: 14px;
border-radius: 18px;
padding: 0 14px;
}
.route-row span {
color: var(--blue);
font-size: 12px;
font-weight: 800;
}
.route-row[data-tone="hot"] span {
color: #ffec99;
}
.route-row[data-tone="lime"] span {
color: var(--acid);
}
.route-row[data-tone="blue"] span {
color: var(--blue);
}
.route-row strong,
.mini-grid strong,
.node-card strong,
.deploy-stack strong {
font-weight: 780;
letter-spacing: -0.02em;
}
.mini-grid {
position: relative;
z-index: 2;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 12px;
}
.mini-grid > div {
min-height: 88px;
display: grid;
align-content: end;
gap: 8px;
border-radius: 18px;
padding: 14px;
}
.flow-glyph {
position: absolute;
right: -22px;
bottom: -8px;
width: 92%;
max-width: 520px;
opacity: 0.68;
}
.flow-line {
fill: none;
stroke: url("#lineGradient");
stroke-width: 2.5;
stroke-linecap: round;
stroke-dasharray: 12 18;
animation: flow-dash 8s linear infinite;
}
.flow-line-b {
animation-duration: 10s;
opacity: 0.62;
}
.flow-line-c {
animation-duration: 7s;
opacity: 0.48;
}
.flow-dot {
fill: var(--acid);
}
.dot-b {
fill: var(--blue);
}
.node {
fill: rgba(255, 255, 255, 0.04);
stroke: rgba(215, 255, 77, 0.22);
animation: node-float 5s ease-in-out infinite;
}
.node-b {
animation-delay: -1.5s;
}
.node-c {
animation-delay: -2.5s;
}
.platform-section,
.workflow-section,
.factory-section,
.deploy-section,
.final-section {
padding-block: 72px;
}
.section-heading {
display: grid;
gap: 14px;
margin-bottom: 28px;
}
.section-heading span,
.factory-copy span,
.deploy-section > div:first-child > span {
color: var(--acid);
font-family: var(--font-geist-mono), monospace;
font-size: 12px;
font-weight: 760;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.section-heading h2,
.workflow-panel h2,
.factory-copy h2,
.deploy-section h2,
.final-section h2 {
max-width: 800px;
margin: 0;
font-size: clamp(32px, 4.8vw, 62px);
line-height: 1;
letter-spacing: -0.055em;
text-wrap: balance;
}
.capability-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 14px;
}
.capability-card {
min-height: 260px;
display: grid;
align-content: space-between;
gap: 24px;
border: 1px solid var(--line);
border-radius: var(--radius);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
rgba(255, 255, 255, 0.025);
padding: 20px;
animation: card-rise 700ms ease both;
animation-delay: calc(var(--index) * 80ms);
}
.card-top {
display: flex;
align-items: center;
justify-content: space-between;
}
.card-top span {
color: var(--faint);
font-family: var(--font-geist-mono), monospace;
font-size: 11px;
text-transform: uppercase;
}
.card-top strong {
color: var(--acid);
font-family: var(--font-geist-mono), monospace;
font-size: 13px;
}
.capability-card h3 {
margin: 0 0 12px;
font-size: 22px;
letter-spacing: -0.04em;
}
.capability-card p,
.workflow-panel p,
.factory-copy p,
.deploy-section p,
.final-section p {
margin: 0;
color: var(--muted);
line-height: 1.8;
}
.workflow-section {
display: grid;
grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
gap: 18px;
align-items: stretch;
}
.workflow-panel,
.node-board,
.factory-section,
.deploy-section,
.final-section {
border: 1px solid var(--line);
border-radius: 32px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
rgba(255, 255, 255, 0.025);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.workflow-panel {
padding: 34px;
}
.mode-list {
display: grid;
gap: 10px;
margin-top: 26px;
}
.mode-list div {
min-height: 50px;
display: grid;
grid-template-columns: 120px 1fr;
align-items: center;
gap: 14px;
border-top: 1px solid var(--line);
}
.mode-list code {
color: var(--acid);
font-family: var(--font-geist-mono), monospace;
font-size: 13px;
}
.mode-list span {
color: var(--muted);
}
.node-board {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
padding: 18px;
}
.node-card {
min-height: 134px;
display: grid;
align-content: end;
gap: 8px;
border-radius: 22px;
padding: 18px;
}
.node-card.wide {
grid-column: 1 / -1;
min-height: 156px;
background:
radial-gradient(circle at 80% 0%, rgba(215, 255, 77, 0.18), transparent 36%),
rgba(255, 255, 255, 0.04);
}
.factory-section {
display: grid;
grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
gap: 24px;
align-items: center;
padding: 34px;
}
.module-strip {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.module-strip span {
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(255, 255, 255, 0.035);
color: var(--muted);
padding: 11px 14px;
font-size: 13px;
font-weight: 700;
}
.deploy-section {
display: grid;
grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.72fr);
gap: 24px;
align-items: end;
padding: 34px;
}
.deploy-stack {
display: grid;
gap: 12px;
}
.deploy-stack > div {
min-height: 76px;
display: grid;
align-content: center;
gap: 8px;
border-radius: 20px;
padding: 16px;
}
.final-section {
display: grid;
justify-items: center;
gap: 18px;
margin-bottom: 42px;
padding: 54px 24px;
text-align: center;
}
.final-section p {
max-width: 58ch;
}
@media (max-width: 980px) {
.site-nav {
grid-template-columns: auto auto;
justify-content: space-between;
}
.nav-links {
display: none;
}
.hero-section,
.workflow-section,
.factory-section,
.deploy-section {
grid-template-columns: 1fr;
}
.hero-section {
min-height: auto;
padding-top: 36px;
}
.capability-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 640px) {
.site-nav,
.hero-section,
.platform-section,
.workflow-section,
.factory-section,
.deploy-section,
.final-section {
width: min(100% - 28px, 1180px);
}
.site-nav {
min-height: 74px;
}
.brand-mark img {
width: 34px;
height: 34px;
}
.ghost-link {
display: none;
}
.solid-link {
min-height: 38px;
padding-inline: 14px;
}
.hero-copy h1 {
font-size: clamp(42px, 15vw, 64px);
}
.hero-actions {
align-items: stretch;
flex-direction: column;
}
.hero-console {
min-height: 390px;
border-radius: 26px;
padding: 14px;
}
.route-row {
grid-template-columns: 1fr;
align-items: start;
gap: 6px;
min-height: 72px;
padding-block: 12px;
}
.route-row em {
font-size: 11px;
}
.flow-glyph {
width: 118%;
right: -44px;
bottom: -22px;
}
.mini-grid,
.capability-grid,
.node-board {
grid-template-columns: 1fr;
}
.workflow-panel,
.factory-section,
.deploy-section {
padding: 22px;
border-radius: 26px;
}
.mode-list div {
grid-template-columns: 1fr;
gap: 4px;
padding-block: 10px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
transition-duration: 1ms !important;
}
}
@keyframes pulse-dot {
0% {
box-shadow: 0 0 0 0 rgba(215, 255, 77, 0.55);
}
70% {
box-shadow: 0 0 0 10px rgba(215, 255, 77, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(215, 255, 77, 0);
}
}
@keyframes slow-spin {
to {
transform: rotate(360deg);
}
}
@keyframes flow-dash {
to {
stroke-dashoffset: -220;
}
}
@keyframes node-float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-8px);
}
}
@keyframes card-rise {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}