OpenManusDemo / static /style.css
lyh-917's picture
Upload 18 files
9a8061f verified
:root {
--primary-color: #00ffcc;
--secondary-color: #0088ff;
--accent-color-1: #ff00aa;
--accent-color-2: #aa00ff;
--accent-color-3: #ffcc00;
--accent-color-4: #ff3300;
--accent-color-5: #00eeff;
--accent-blue: #3366ff;
--accent-purple: #9933ff;
--accent-pink: #ff66cc;
--accent-teal: #00ccaa;
--accent-green: #33ff99;
--accent-yellow: #ffcc33;
--text-color: #f8fafc;
--background-color: #000000;
--card-color: rgba(10, 30, 30, 0.5);
--border-color: #00aa99;
--highlight-color: #00ffaa;
--success-color: #10b981;
--warning-color: #f59e0b;
--error-color: #ef4444;
--info-color: #3b82f6;
--shadow-color: rgba(0, 0, 0, 0.5);
--glow-color: rgba(0, 255, 204, 0.5);
--transition-speed: 0.3s;
--font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', 'Menlo', monospace;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: var(--font-primary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
body {
background-color: var(--background-color);
color: var(--text-color);
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
font-feature-settings: "ss01", "ss02", "ss03", "cv01", "cv02", "cv03", "cv04";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-synthesis: none;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 100vh;
background: radial-gradient(circle at 50% 50%, rgba(0, 255, 204, 0.05), transparent 70%);
}
/* 首页主容器 */
.home-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
width: 100%;
overflow: hidden;
position: relative;
z-index: 1;
max-height: 100vh;
}
.home-container::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
right: -50%;
bottom: -50%;
background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15), transparent 70%);
z-index: -1;
}
/* 英雄区域 */
.hero-section {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
min-height: 80vh;
width: 100%;
max-width: 1200px;
padding: 3rem 2rem;
position: relative;
z-index: 4;
isolation: isolate;
}
/* 标题样式 */
.title {
font-size: 7rem;
font-weight: 900;
margin-bottom: 2rem;
text-align: center;
letter-spacing: 5px;
position: relative;
z-index: 3;
color: #00ffcc;
text-shadow:
0 0 10px rgba(0, 255, 204, 0.5),
0 0 20px rgba(0, 238, 255, 0.3),
0 0 30px rgba(0, 136, 255, 0.2),
2px 2px 3px rgba(0, 0, 0, 0.6);
animation: neon-cyan-pulse 4s ease-in-out infinite alternate;
}
.title::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: none;
z-index: -1;
}
.title::after {
content: "OPENMANUS";
position: absolute;
top: 1px;
left: 1px;
width: 100%;
height: 100%;
color: rgba(0, 255, 204, 0.15);
z-index: -1;
text-shadow: none;
filter: blur(5px);
}
@keyframes neon-cyan-pulse {
0% {
text-shadow:
0 0 8px rgba(0, 255, 204, 0.5),
0 0 15px rgba(0, 238, 255, 0.3),
0 0 20px rgba(0, 136, 255, 0.2),
2px 2px 3px rgba(0, 0, 0, 0.6);
}
100% {
text-shadow:
0 0 10px rgba(0, 255, 204, 0.6),
0 0 18px rgba(0, 238, 255, 0.4),
0 0 25px rgba(0, 136, 255, 0.3),
2px 2px 3px rgba(0, 0, 0, 0.6);
}
}
/* 副标题 */
.subtitle {
font-size: 2.2rem;
font-weight: 500;
margin-bottom: 2rem;
text-align: center;
position: relative;
background: linear-gradient(90deg, #ff3399, #9933ff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: none;
letter-spacing: 2px;
opacity: 1;
transform: translateZ(0);
-webkit-transform: translateZ(0);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
backface-visibility: hidden;
z-index: 5;
isolation: isolate;
filter: drop-shadow(0 0 8px rgba(255, 51, 153, 0.3));
will-change: transform;
pointer-events: none;
}
/* 描述文本 */
.description {
font-size: 1.5rem;
line-height: 1.8;
margin-bottom: 2rem;
text-align: center;
max-width: 900px;
color: #a8b6c9;
padding: 0 2rem;
text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
font-weight: 400;
letter-spacing: 0.8px;
opacity: 1;
transform: translateZ(0);
-webkit-transform: translateZ(0);
-webkit-font-smoothing: subpixel-antialiased;
backface-visibility: hidden;
position: relative;
z-index: 3;
isolation: isolate;
mix-blend-mode: normal;
}
/* 描述文本中的强调部分 */
.description span:not(.powered-text) {
position: relative;
display: inline-block;
background: linear-gradient(90deg, var(--accent-color-4), var(--accent-color-3));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
padding: 0 5px;
font-weight: 600;
text-shadow: 0 0 6px rgba(255, 153, 0, 0.4);
transform: translateZ(0);
-webkit-transform: translateZ(0);
-webkit-font-smoothing: subpixel-antialiased;
}
/* Powered by 文本专用样式 */
.powered-text {
font-size: 1.5rem;
color: #8c9cb0;
letter-spacing: 0.3px;
font-weight: 400;
background: none;
-webkit-background-clip: unset;
background-clip: unset;
-webkit-text-fill-color: #8c9cb0;
padding: 0;
}
/* 描述文本中的强调部分 */
.description span:nth-of-type(2) {
background: linear-gradient(90deg, var(--accent-color-1), var(--accent-pink));
-webkit-background-clip: text;
background-clip: text;
text-shadow: 0 0 8px rgba(255, 0, 170, 0.4);
}
.description span:nth-of-type(4) {
background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
-webkit-background-clip: text;
background-clip: text;
text-shadow: 0 0 8px rgba(0, 204, 170, 0.4);
}
/* CTA按钮 */
.cta-button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 8px 24px;
font-size: 0.9rem;
font-weight: 600;
color: white;
background: linear-gradient(45deg, var(--accent-teal), var(--accent-color-2));
border: none;
border-radius: 6px;
cursor: pointer;
transition: all 0.4s ease;
box-shadow: 0 0 20px rgba(170, 0, 255, 0.4), 0 0 0 1px rgba(0, 204, 170, 0.1) inset;
position: relative;
overflow: hidden;
margin-top: 0.6rem;
letter-spacing: 1.5px;
text-transform: uppercase;
text-decoration: none;
}
.cta-button::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
to right,
transparent,
rgba(255, 255, 255, 0.4),
transparent
);
transform: rotate(45deg);
z-index: 1;
}
.cta-button::after {
content: '';
position: absolute;
inset: -1px;
border-radius: 12px;
padding: 1px;
background: linear-gradient(135deg, var(--accent-color-5), var(--accent-blue), var(--accent-purple));
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
opacity: 0.6;
transition: opacity 0.4s ease;
}
.cta-button:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(170, 0, 255, 0.5), 0 0 0 1px rgba(0, 204, 170, 0.2) inset;
background: linear-gradient(45deg, var(--accent-color-1), var(--accent-blue));
}
.cta-button:hover::after {
opacity: 1;
}
.arrow-icon {
margin-left: 8px;
font-size: 0.9rem;
}
/* 主题选择器 */
.theme-selector {
width: 100%;
max-width: 680px;
margin: 2rem auto;
}
.theme-label {
font-size: 1.2rem;
font-weight: 500;
margin-bottom: 1rem;
text-align: center;
color: var(--accent-color-5);
text-transform: uppercase;
letter-spacing: 1.2px;
position: relative;
text-shadow: 0 0 3px rgba(0, 238, 255, 0.3);
}
.theme-options {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 1.5rem;
margin-top: 1rem;
margin-bottom: 1rem;
}
.theme-options .theme-option {
width: 80px !important;
height: 80px !important;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: linear-gradient(180deg, rgba(10, 30, 50, 0.9), rgba(5, 15, 35, 0.8));
border-radius: 12px;
border: 1px solid rgba(0, 238, 255, 0.3);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 5px rgba(0, 238, 255, 0.2);
padding: 0.5rem;
position: relative;
cursor: pointer;
transition: all 0.3s ease;
opacity: 1;
overflow: visible;
text-decoration: none !important;
}
.theme-options .theme-option .theme-icon-container {
width: 36px !important;
height: 36px !important;
margin-bottom: 0.5rem;
background: linear-gradient(135deg, rgba(0, 30, 40, 0.95), rgba(0, 15, 30, 0.95));
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
inset 0 0 2px rgba(0, 238, 255, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.theme-options .theme-option .theme-icon {
font-size: 1.2rem !important;
filter: drop-shadow(0 0 2px rgba(51, 255, 153, 0.3));
color: var(--accent-green);
z-index: 2;
}
.theme-options .theme-option .theme-name {
font-size: 0.9rem !important;
font-weight: 500;
color: var(--primary-color);
letter-spacing: 0.5px;
margin-top: 0.3rem;
text-align: center;
white-space: nowrap;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.theme-options .theme-option:hover,
.theme-options .theme-option:active {
transform: translateY(-4px) scale(1.05);
border-color: rgba(0, 255, 204, 0.5);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 255, 204, 0.3);
z-index: 5;
}
/* CTA按钮 */
.hero-section .cta-button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 36px !important;
font-size: 1.2rem !important;
font-weight: 600;
color: white;
background: linear-gradient(45deg, var(--accent-teal), var(--accent-color-2));
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.4s ease;
box-shadow: 0 0 20px rgba(170, 0, 255, 0.4), 0 0 0 1px rgba(0, 204, 170, 0.1) inset;
position: relative;
overflow: hidden;
margin-top: 2rem !important;
letter-spacing: 2px;
text-transform: uppercase;
text-decoration: none;
min-width: 200px;
max-width: 280px;
}
.hero-section .cta-button .arrow-icon {
margin-left: 12px;
font-size: 1.2rem;
}
/* 粒子效果 */
.particle-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -1;
}
.particle {
position: absolute;
width: 2px;
height: 2px;
background-color: var(--accent-green);
border-radius: 50%;
opacity: 0;
animation: particle-animation 8s linear infinite;
box-shadow: 0 0 5px currentColor;
z-index: -1;
}
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; background-color: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 1s; background-color: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 2s; background-color: var(--accent-color-5); box-shadow: 0 0 8px var(--accent-color-5); }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: 3s; background-color: var(--accent-teal); box-shadow: 0 0 8px var(--accent-teal); }
.particle:nth-child(5) { left: 50%; top: 20%; animation-delay: 4s; background-color: var(--accent-color-1); box-shadow: 0 0 8px var(--accent-color-1); }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: 5s; background-color: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.particle:nth-child(7) { left: 70%; top: 30%; animation-delay: 6s; background-color: var(--accent-color-2); box-shadow: 0 0 8px var(--accent-color-2); }
.particle:nth-child(8) { left: 80%; top: 50%; animation-delay: 7s; background-color: var(--accent-yellow); box-shadow: 0 0 8px var(--accent-yellow); }
.particle:nth-child(9) { left: 90%; top: 10%; animation-delay: 8s; background-color: var(--accent-pink); box-shadow: 0 0 8px var(--accent-pink); }
.particle:nth-child(10) { left: 5%; top: 70%; animation-delay: 9s; background-color: var(--accent-color-3); box-shadow: 0 0 8px var(--accent-color-3); }
.particle:nth-child(11) { left: 15%; top: 10%; animation-delay: 10s; background-color: var(--accent-color-4); box-shadow: 0 0 8px var(--accent-color-4); }
.particle:nth-child(12) { left: 25%; top: 90%; animation-delay: 11s; background-color: var(--accent-teal); box-shadow: 0 0 8px var(--accent-teal); }
@keyframes particle-animation {
0% {
transform: translateY(0) scale(0);
opacity: 0;
filter: brightness(0.5);
}
10% {
opacity: 0.8;
filter: brightness(1);
}
80% {
opacity: 0.8;
filter: brightness(1.2);
}
100% {
transform: translateY(-100vh) scale(1.2);
opacity: 0;
filter: brightness(0.5);
}
}
/* 电路效果 */
.tech-circuit {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
opacity: 0.5;
overflow: hidden;
will-change: opacity;
transform: translateZ(0);
}
.circuit-line {
position: absolute;
background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
height: 2px;
width: 100%;
opacity: 0.3;
animation: circuit-pulse 4s infinite ease-in-out;
filter: drop-shadow(0 0 5px var(--accent-green));
transform: translateZ(0);
will-change: opacity, filter;
pointer-events: none;
}
.circuit-line:nth-child(1) { top: 15%; animation-delay: 0s; background: linear-gradient(90deg, transparent, var(--accent-green), transparent); }
.circuit-line:nth-child(2) { top: 35%; animation-delay: 1s; background: linear-gradient(90deg, transparent, var(--accent-color-5), transparent); }
.circuit-line:nth-child(3) { top: 55%; animation-delay: 2s; background: linear-gradient(90deg, transparent, var(--accent-purple), transparent); }
.circuit-line:nth-child(4) { top: 75%; animation-delay: 3s; background: linear-gradient(90deg, transparent, var(--accent-color-1), transparent); }
.circuit-vertical {
position: absolute;
background: linear-gradient(180deg, transparent, var(--accent-teal), transparent);
width: 2px;
height: 100%;
opacity: 0.3;
animation: circuit-pulse 4s infinite ease-in-out;
filter: drop-shadow(0 0 5px var(--accent-teal));
transform: translateZ(0);
will-change: opacity, filter;
pointer-events: none;
}
.circuit-vertical:nth-child(5) { left: 20%; animation-delay: 0.5s; background: linear-gradient(180deg, transparent, var(--accent-color-5), transparent); }
.circuit-vertical:nth-child(6) { left: 40%; animation-delay: 1.5s; background: linear-gradient(180deg, transparent, var(--accent-color-5), transparent); }
.circuit-vertical:nth-child(7) { left: 60%; animation-delay: 2.5s; background: linear-gradient(180deg, transparent, var(--accent-blue), transparent); }
.circuit-vertical:nth-child(8) { left: 80%; animation-delay: 3.5s; background: linear-gradient(180deg, transparent, var(--accent-pink), transparent); }
.circuit-node {
position: absolute;
width: 6px;
height: 6px;
background-color: var(--accent-green);
border-radius: 50%;
opacity: 0.4;
box-shadow: 0 0 12px var(--accent-green);
animation: node-pulse 4s infinite;
transform: translateZ(0);
will-change: transform, opacity;
pointer-events: none;
}
.circuit-node:nth-child(9) { top: 15%; left: 20%; animation-delay: 0s; background-color: var(--accent-green); box-shadow: 0 0 15px var(--accent-green); }
.circuit-node:nth-child(10) { top: 35%; left: 40%; animation-delay: 1s; background-color: var(--accent-color-5); box-shadow: 0 0 15px var(--accent-color-5); }
.circuit-node:nth-child(11) { top: 55%; left: 60%; animation-delay: 2s; background-color: var(--accent-purple); box-shadow: 0 0 15px var(--accent-purple); }
.circuit-node:nth-child(12) { top: 75%; left: 80%; animation-delay: 3s; background-color: var(--accent-color-1); box-shadow: 0 0 15px var(--accent-color-1); }
.circuit-node-small {
width: 4px;
height: 4px;
animation: node-pulse-small 3s infinite alternate;
}
.circuit-node-small:nth-child(13) { top: 25%; left: 30%; animation-delay: 0.7s; background-color: var(--accent-yellow); box-shadow: 0 0 10px var(--accent-yellow); }
.circuit-node-small:nth-child(14) { top: 45%; left: 10%; animation-delay: 1.2s; background-color: var(--accent-color-5); box-shadow: 0 0 10px var(--accent-color-5); }
.circuit-node-small:nth-child(15) { top: 65%; left: 50%; animation-delay: 1.7s; background-color: var(--accent-teal); box-shadow: 0 0 10px var(--accent-teal); }
.circuit-node-small:nth-child(16) { top: 85%; left: 70%; animation-delay: 2.2s; background-color: var(--accent-blue); box-shadow: 0 0 10px var(--accent-blue); }
.circuit-node-small:nth-child(17) { top: 10%; left: 75%; animation-delay: 2.7s; background-color: var(--accent-purple); box-shadow: 0 0 10px var(--accent-purple); }
.circuit-node-small:nth-child(18) { top: 60%; left: 90%; animation-delay: 3.2s; background-color: var(--accent-color-1); box-shadow: 0 0 10px var(--accent-color-1); }
.circuit-diagonal {
position: absolute;
width: 150%;
height: 1px;
top: 50%;
left: -25%;
transform: rotate(15deg);
background: linear-gradient(90deg, transparent, var(--accent-color-3), transparent);
opacity: 0.25;
animation: circuit-pulse 5s infinite ease-in-out;
filter: drop-shadow(0 0 3px #00eeff);
transform: translateZ(0);
will-change: opacity, filter;
pointer-events: none;
}
.circuit-diagonal:nth-child(19) { top: 30%; animation-delay: 0.5s; background: linear-gradient(90deg, transparent, var(--accent-color-3), transparent); }
.circuit-diagonal:nth-child(20) { top: 70%; animation-delay: 2.5s; background: linear-gradient(90deg, transparent, var(--accent-color-4), transparent); }
.circuit-diagonal-reverse {
transform: rotate(-15deg);
}
.circuit-diagonal-reverse:nth-child(21) { top: 40%; animation-delay: 1.5s; background: linear-gradient(90deg, transparent, var(--accent-pink), transparent); }
.circuit-diagonal-reverse:nth-child(22) { top: 80%; animation-delay: 3.5s; background: linear-gradient(90deg, transparent, var(--accent-color-2), transparent); }
/* 优化动画性能 */
@keyframes circuit-pulse {
0%, 100% {
opacity: 0.2;
filter: drop-shadow(0 0 1px currentColor);
}
50% {
opacity: 0.4;
filter: drop-shadow(0 0 4px currentColor);
}
}
@keyframes node-pulse {
0%, 100% {
opacity: 0.3;
transform: scale(1) translateZ(0);
filter: brightness(0.8);
}
50% {
opacity: 0.5;
transform: scale(1.2) translateZ(0);
filter: brightness(1.2);
}
}
@keyframes node-pulse-small {
0%, 100% {
opacity: 0.2;
transform: scale(1) translateZ(0);
}
50% {
opacity: 0.4;
transform: scale(1.2) translateZ(0);
}
}
/* 响应式设计 - 调整缩小后的尺寸 */
@media screen and (max-width: 1200px) {
.title {
font-size: 5rem;
}
.hero-section {
min-height: 100vh;
padding: 2rem 1rem;
}
}
@media screen and (max-width: 768px) {
.title {
font-size: 4rem;
margin-bottom: 1rem;
letter-spacing: 2px;
}
.subtitle {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.description {
font-size: 1rem;
margin-bottom: 1.5rem;
line-height: 1.6;
padding: 0 1rem;
}
.cta-button {
padding: 10px 24px;
font-size: 0.9rem;
}
.theme-selector {
margin: 1.5rem auto;
max-width: 90%;
}
.theme-options {
gap: 1rem;
justify-content: center;
}
.hero-section {
justify-content: center;
align-items: center;
display: flex;
flex-direction: column;
}
.theme-options .theme-option {
width: 70px !important;
height: 70px !important;
margin: 0 5px;
border: 1px solid rgba(0, 238, 255, 0.4);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 6px rgba(0, 238, 255, 0.3);
}
.theme-options .theme-option .theme-icon-container {
width: 30px !important;
height: 30px !important;
}
.theme-options .theme-option .theme-name {
font-size: 0.75rem !important;
}
.hero-section .cta-button {
padding: 10px 24px !important;
font-size: 1rem !important;
margin-top: 1.5rem !important;
}
.github-link {
width: 38px;
height: 38px;
font-size: 1.3rem;
top: 15px;
right: 15px;
}
}
@media screen and (max-width: 480px) {
.title {
font-size: 3.2rem;
margin-bottom: 0.8rem;
letter-spacing: 1.5px;
}
.subtitle {
font-size: 1.2rem;
margin-bottom: 1rem;
}
.description {
font-size: 0.9rem;
margin-bottom: 1.5rem;
padding: 0 0.5rem;
}
.cta-button {
padding: 8px 20px;
font-size: 0.85rem;
}
.hero-section {
min-height: 100vh;
padding: 1.5rem 0.5rem;
justify-content: center;
display: flex;
flex-direction: column;
}
.theme-selector {
margin: 1rem auto;
padding: 0.5rem;
border-radius: 12px;
background: rgba(5, 15, 25, 0.3);
border: 1px solid rgba(0, 238, 255, 0.15);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.theme-options {
gap: 1rem;
padding: 0.5rem;
}
.theme-options .theme-option {
width: 65px !important;
height: 65px !important;
margin: 0 4px 8px;
border: 1px solid rgba(0, 238, 255, 0.5);
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 0 8px rgba(0, 238, 255, 0.3);
background: linear-gradient(180deg, rgba(15, 35, 55, 0.95), rgba(8, 20, 40, 0.9));
}
.theme-options .theme-option .theme-icon-container {
width: 28px !important;
height: 28px !important;
margin-bottom: 0.4rem;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3),
inset 0 0 4px rgba(0, 238, 255, 0.3);
}
.theme-options .theme-option .theme-name {
font-size: 0.7rem !important;
margin-top: 0.3rem;
text-shadow: 0 0 4px rgba(0, 255, 204, 0.4);
}
.theme-label {
margin-bottom: 0.6rem;
font-size: 1.1rem;
text-shadow: 0 0 6px rgba(0, 238, 255, 0.5);
}
.tech-circuit, .particle-container {
opacity: 0.6;
}
.hero-section .cta-button {
padding: 8px 18px !important;
font-size: 0.9rem !important;
min-width: 160px;
margin-top: 1rem !important;
}
.github-link {
width: 34px;
height: 34px;
font-size: 1.2rem;
top: 12px;
right: 12px;
}
}
@media screen and (max-width: 360px) {
.title {
font-size: 2.8rem;
margin-bottom: 0.7rem;
}
.subtitle {
font-size: 1rem;
margin-bottom: 0.7rem;
}
.description {
font-size: 0.8rem;
margin-bottom: 1.2rem;
}
.cta-button {
padding: 7px 16px;
font-size: 0.8rem;
}
.theme-options {
gap: 0.5rem;
}
.theme-options .theme-option {
width: 56px !important;
height: 56px !important;
margin: 0 3px 6px;
}
.theme-options .theme-option .theme-icon-container {
width: 24px !important;
height: 24px !important;
}
.theme-options .theme-option .theme-name {
font-size: 0.65rem !important;
}
.hero-section .cta-button {
padding: 7px 16px !important;
font-size: 0.85rem !important;
min-width: 140px;
}
.github-link {
width: 30px;
height: 30px;
font-size: 1rem;
top: 10px;
right: 10px;
}
}
@media screen and (max-height: 700px) {
.hero-section {
min-height: auto;
padding: 1rem 1rem;
}
.description {
margin-bottom: 1rem;
max-width: 600px;
}
.title {
margin-bottom: 0.5rem;
}
.subtitle {
margin-bottom: 0.5rem;
}
}
@media screen and (max-height: 500px) and (orientation: landscape) {
.hero-section {
padding: 0.5rem;
}
.title {
font-size: 2.5rem;
margin-bottom: 0.3rem;
}
.subtitle {
font-size: 1rem;
margin-bottom: 0.3rem;
}
.description {
font-size: 0.8rem;
margin-bottom: 0.8rem;
}
.cta-button {
padding: 6px 15px;
font-size: 0.8rem;
}
.theme-selector {
margin: 0.5rem 0;
}
.theme-label {
margin-bottom: 0.3rem;
}
.theme-options .theme-option {
width: 45px !important;
height: 45px !important;
margin: 0 2px 5px;
}
.theme-options .theme-option .theme-icon-container {
width: 18px !important;
height: 18px !important;
}
.theme-options .theme-option .theme-name {
font-size: 0.55rem !important;
}
}
/* 字体清晰度优化 */
@supports (font-variation-settings: normal) {
* {
font-variation-settings: "wght" var(--font-weight, 400);
font-synthesis: none;
}
}
/* 防止字体在不同设备上渲染不一致 */
@media screen and (-webkit-min-device-pixel-ratio: 2),
screen and (min-resolution: 192dpi) {
.title, .subtitle, .description, .description span, .powered-text {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
/* 调整 canvas 的层级和混合模式 */
.matrix-rain {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
opacity: 0.4;
pointer-events: none;
mix-blend-mode: screen;
}
/* 隐藏所有滚动条 */
::-webkit-scrollbar {
width: 0;
height: 0;
background: transparent;
}
* {
scrollbar-width: none;
-ms-overflow-style: none;
}
/* 修复某些设备上的overflow问题 */
html, body {
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
/* GitHub 链接按钮 */
.github-link {
position: fixed;
top: 20px;
right: 20px;
width: 42px;
height: 42px;
border-radius: 50%;
background: linear-gradient(145deg, #222, #000);
display: flex;
align-items: center;
justify-content: center;
color: white;
text-decoration: none;
font-size: 1.6rem;
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6), -2px -2px 8px rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
z-index: 100;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.github-link::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
to right,
transparent,
rgba(255, 255, 255, 0.1),
transparent
);
transform: rotate(45deg);
z-index: 1;
}
.github-link:hover {
transform: translateY(-3px);
box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.7), -3px -3px 10px rgba(255, 255, 255, 0.15);
background: linear-gradient(145deg, #444, #111);
}
.github-link i {
position: relative;
z-index: 2;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
/* 加载页面样式 */
.loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--background-color);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 1000;
overflow: hidden;
transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
.loading-screen.hidden {
opacity: 0;
visibility: hidden;
}
.loading-container {
position: relative;
width: 300px;
max-width: 80%;
}
.loading-title {
font-size: 3rem;
font-weight: 800;
text-align: center;
margin-bottom: 2rem;
background: linear-gradient(45deg, var(--primary-color), var(--accent-color-5));
background-size: 200% auto;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: 5px;
position: relative;
filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.3));
font-family: var(--font-mono);
animation: glitch-text 1s infinite, loading-title-animation 1.5s forwards;
}
.loading-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at center, rgba(0, 255, 204, 0.05), transparent 70%);
z-index: -1;
}
.loading-grid {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
linear-gradient(rgba(0, 255, 204, 0.1) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 255, 204, 0.1) 1px, transparent 1px);
background-size: 40px 40px;
opacity: 0.15;
z-index: -1;
animation: grid-animation 20s linear infinite;
}
.progress-container {
width: 100%;
height: 6px;
background: rgba(10, 30, 30, 0.5);
border-radius: 3px;
overflow: hidden;
position: relative;
box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}
.progress-bar {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--accent-color-5), var(--primary-color));
position: relative;
border-radius: 3px;
transition: width 0.05s ease-out;
}
.progress-bar::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
animation: progress-shine 1s linear infinite;
}
.progress-bar::after {
content: '';
position: absolute;
top: 0;
right: 0;
width: 5px;
height: 100%;
background: rgba(255, 255, 255, 0.8);
box-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
animation: pulse 0.5s ease-in-out infinite alternate;
}
.progress-text {
font-family: var(--font-mono);
text-align: right;
margin-top: 0.5rem;
font-size: 1rem;
color: var(--primary-color);
text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
font-weight: 500;
letter-spacing: 1px;
}
.glitch-effect {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
mix-blend-mode: overlay;
pointer-events: none;
z-index: 10;
}
.glitch-line {
position: absolute;
width: 100%;
height: 1px;
background-color: rgba(0, 255, 204, 0.5);
opacity: 0;
}
.glitch-line:nth-child(1) { top: 20%; animation: glitch-line-animation 3s infinite 0.5s; }
.glitch-line:nth-child(2) { top: 40%; animation: glitch-line-animation 4s infinite 1s; }
.glitch-line:nth-child(3) { top: 60%; animation: glitch-line-animation 2.5s infinite 1.5s; }
.glitch-line:nth-child(4) { top: 80%; animation: glitch-line-animation 3.5s infinite 0.2s; }
.loading-message {
font-family: var(--font-mono);
margin-top: 1.5rem;
font-size: 0.9rem;
color: var(--accent-color-5);
letter-spacing: 1px;
text-align: center;
opacity: 0.8;
max-width: 80%;
animation: typing 3s steps(30, end) infinite;
white-space: nowrap;
overflow: hidden;
position: relative;
}
/* 自定义光标样式 */
.loading-message::after {
content: '';
display: inline-block;
width: 8px;
height: 16px;
background-color: var(--accent-color-5);
margin-left: 2px;
animation: cursor-blink 0.8s step-end infinite;
border-radius: 1px;
box-shadow: 0 0 8px var(--accent-color-5);
vertical-align: middle;
position: relative;
top: -1px;
}
@keyframes cursor-blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}
/* 过渡故障特效 */
.transition-glitch {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
z-index: 999;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
}
.transition-glitch.active {
opacity: 1;
animation: transition-flicker 0.5s ease-out forwards;
}
.glitch-stripe {
position: absolute;
width: 100%;
height: 10vh;
background-color: rgba(0, 255, 204, 0.15);
transform: translateX(-100%);
}
.glitch-stripe:nth-child(1) {
top: 15%;
animation: glitch-stripe-move 0.3s cubic-bezier(0.2, 0.6, 0.8, 0.4) 0.1s forwards;
height: 8vh;
}
.glitch-stripe:nth-child(2) {
top: 45%;
animation: glitch-stripe-move 0.25s cubic-bezier(0.3, 0.8, 0.7, 0.2) 0.2s forwards;
height: 12vh;
background-color: rgba(170, 0, 255, 0.12);
}
.glitch-stripe:nth-child(3) {
top: 70%;
animation: glitch-stripe-move 0.35s cubic-bezier(0.1, 0.7, 0.9, 0.3) 0.15s forwards;
height: 6vh;
background-color: rgba(255, 0, 170, 0.1);
}
@keyframes glitch-stripe-move {
0% { transform: translateX(-100%) skewY(2deg); filter: hue-rotate(0deg); }
60% { filter: hue-rotate(45deg); }
100% { transform: translateX(100%) skewY(-2deg); filter: hue-rotate(0deg); }
}
@keyframes transition-flicker {
0% { opacity: 0; filter: brightness(1); }
5% { opacity: 0.8; filter: brightness(1.5) contrast(1.2); }
10% { opacity: 0.2; filter: brightness(0.8) contrast(1.5); }
15% { opacity: 0.9; filter: brightness(1.2) contrast(0.8) hue-rotate(10deg); }
20% { opacity: 0.3; filter: brightness(1.5) contrast(1.3); }
30% { opacity: 0.8; filter: brightness(0.9) contrast(1.8) hue-rotate(-15deg); }
40% { opacity: 0.2; filter: brightness(1.2) contrast(0.7); }
50% { opacity: 0.9; filter: brightness(1.1) contrast(1.2); }
60% { opacity: 0.3; filter: brightness(1.3) contrast(1.1) hue-rotate(5deg); }
80% { opacity: 0.2; filter: brightness(1) contrast(1); }
100% { opacity: 0; filter: brightness(1) contrast(1); }
}
/* 故障线条 */
.glitch-line-horizontal {
position: absolute;
width: 100%;
height: 2px;
background-color: var(--accent-color-5);
opacity: 0;
left: 0;
z-index: 1000;
}
.glitch-line-horizontal:nth-child(4) { top: 30%; animation: glitch-h-line 0.2s linear 0.1s; }
.glitch-line-horizontal:nth-child(5) { top: 60%; animation: glitch-h-line 0.2s linear 0.25s; }
.glitch-line-horizontal:nth-child(6) { top: 80%; animation: glitch-h-line 0.2s linear 0.15s; }
@keyframes glitch-h-line {
0% { transform: translateX(-100%); opacity: 0.7; }
100% { transform: translateX(100%); opacity: 0; }
}
/* 进度条动画效果 */
@keyframes progress-shine {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}
@keyframes pulse {
0% { opacity: 0.5; }
100% { opacity: 1; }
}
@keyframes grid-animation {
0% { transform: translateY(0); }
100% { transform: translateY(40px); }
}
@keyframes typing {
0% { width: 0; }
50% { width: 100%; }
90% { width: 100%; }
100% { width: 0; }
}
@keyframes glitch-line-animation {
0% { opacity: 0; transform: translateX(-100%); }
10% { opacity: 0.8; transform: translateX(0); }
15% { opacity: 0; transform: translateX(100%); }
20% { opacity: 0; }
100% { opacity: 0; }
}
@keyframes glitch-text {
0% { transform: translate(0); }
20% { transform: translate(-2px, 2px); }
40% { transform: translate(-2px, -2px); }
60% { transform: translate(2px, 2px); }
80% { transform: translate(2px, -2px); }
100% { transform: translate(0); }
}
@keyframes loading-title-animation {
0% { clip-path: inset(0 100% 0 0); }
100% { clip-path: inset(0 0 0 0); }
}
/* 数字字符故障效果 */
.digital-glitch {
position: relative;
display: inline-block;
color: var(--primary-color);
font-family: var(--font-mono);
font-weight: bold;
mix-blend-mode: exclusion;
animation: digital-glitch 3s infinite;
}
@keyframes digital-glitch {
0% { opacity: 1; }
7% { opacity: 1; text-shadow: 0 0 5px var(--primary-color); }
8% { opacity: 0; text-shadow: none; }
9% { opacity: 1; }
10% { opacity: 1; text-shadow: 0 0 5px var(--primary-color); }
11% { opacity: 0; text-shadow: none; }
12% { opacity: 1; }
20% { opacity: 1; }
100% { opacity: 1; }
}
@media screen and (max-width: 768px) {
.loading-title {
font-size: 2rem;
margin-bottom: 1.5rem;
}
.loading-container {
width: 250px;
}
.progress-text {
font-size: 0.9rem;
}
.loading-message {
font-size: 0.8rem;
margin-top: 1rem;
}
}