Files
mainPage/style.css
T
2025-11-14 13:42:52 +08:00

971 lines
18 KiB
CSS

html {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE 和 Edge */
}
html::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}
:root {
--bg-primary: #0a0e17;
--bg-secondary: rgba(10, 14, 23, 0.7);
--text-gray: #e0e0e0;
--text-cyan: #00ffeb;
--text-orange: #ff6b35;
--glow-cyan: 0 0 10px rgba(0, 255, 235, 0.5), 0 0 20px rgba(0, 255, 235, 0.3);
--glow-orange: 0 0 10px rgba(255, 107, 53, 0.5), 0 0 20px rgba(255, 107, 53, 0.3);
--border-glow: 0 0 5px rgba(0, 255, 235, 0.5), inset 0 0 5px rgba(0, 255, 235, 0.2);
}
/* 极简黑白主题样式*/
[data-theme='minimal'] {
--bg-primary: #000000; /* 黑色背景 */
--bg-secondary: rgba(0, 0, 0, 0.7);
--text-gray: #ffffff; /* 白色文字 */
--text-cyan: #ffffff;
--text-orange: #ffffff;
--glow-cyan: none;
--glow-orange: none;
--border-glow: none;
}
[data-theme='minimal'] .glass-card {
background: rgba(0, 0, 0, 0.8) !important; /* 黑色卡片背景 */
backdrop-filter: none !important;
border: 1px solid #333333 !important; /* 深灰色边框 */
box-shadow: none !important;
}
[data-theme='minimal'] .navbar {
background: rgba(0, 0, 0, 0.9) !important; /* 黑色导航栏 */
backdrop-filter: none !important;
border-bottom: 1px solid #333333 !important; /* 深灰色边框 */
}
[data-theme='gallery'] {
--bg-primary: #f8f0f7;
--bg-secondary: rgba(248, 240, 247, 0.7);
--text-gray: #000000;
--text-cyan: #4dabf7; /* 蓝色 */
--text-orange: #ff758f; /* 粉色 */
--glow-cyan: 0 0 10px rgba(77, 171, 247, 0.5), 0 0 20px rgba(77, 171, 247, 0.3);
--glow-orange: 0 0 10px rgba(255, 117, 143, 0.5), 0 0 20px rgba(255, 117, 143, 0.3);
--border-glow: 0 0 5px rgba(77, 171, 247, 0.5), inset 0 0 5px rgba(77, 171, 247, 0.2);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Rajdhani', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: var(--bg-primary);
color: var(--text-gray);
line-height: 1.6;
overflow-x: hidden;
position: relative;
min-height: 100vh;
}
[data-theme='minimal'] body {
background-image: none !important;
}
#particleCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.text-cyan {
color: var(--text-cyan);
text-shadow: var(--glow-cyan);
}
.text-orange {
color: var(--text-orange);
text-shadow: var(--glow-orange);
}
[data-theme='minimal'] .text-cyan,
[data-theme='minimal'] .text-orange {
text-shadow: none !important;
}
.text-gray {
color: var(--text-gray);
}
.glass-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.glass-card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: all 0.6s ease;
}
[data-theme='minimal'] .glass-card::before {
display: none !important;
}
.glass-card:hover::before {
left: 100%;
}
/* 导航栏样式 */
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 20px 0;
z-index: 1000;
transition: all 0.3s ease;
background: rgba(10, 14, 23, 0.8);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(0, 255, 235, 0.2);
}
[data-theme='gallery'] .navbar {
background: rgba(248, 240, 247, 0.3) !important;
border-bottom: 1px solid rgba(255, 117, 143, 0.3);
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar-brand {
font-size: 1.5rem;
font-weight: 700;
letter-spacing: 1px;
}
.navbar-nav {
display: flex;
gap: 20px;
}
.nav-link {
color: var(--text-gray);
text-decoration: none;
padding: 8px 15px;
border-radius: 5px;
transition: all 0.3s ease;
position: relative;
font-weight: 500;
}
.nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background: var(--text-cyan);
transition: all 0.3s ease;
transform: translateX(-50%);
}
.nav-link:hover {
color: var(--text-cyan);
text-shadow: 0 0 5px rgba(0, 255, 235, 0.7);
}
.nav-link:hover::after {
width: 80%;
box-shadow: var(--glow-cyan);
}
.nav-link.active {
color: var(--text-cyan);
background: rgba(0, 255, 235, 0.1);
box-shadow: 0 0 10px rgba(0, 255, 235, 0.2);
}
[data-theme='gallery'] .nav-link.active {
color: var(--text-cyan);
background: rgba(199, 193, 231, 0.1);
box-shadow: 0 0 10px rgba(199, 193, 231, 0.2);
}
/* 英雄区样式 */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
padding: 100px 0 50px;
position: relative;
}
.hero-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: center;
}
.hero-text h1 {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: 10px;
line-height: 1.2;
letter-spacing: 1px;
}
.hero-text h2 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 20px;
letter-spacing: 1px;
}
.hero-text p {
font-size: 1.1rem;
max-width: 400px;
margin-bottom: 30px;
}
.hero-chart {
height: 300px;
display: flex;
align-items: center;
justify-content: center;
}
#systemChart {
width: 100%;
height: 100%;
}
/* 服务网格样式 */
.services {
padding: 100px 0;
}
.section-title {
font-size: 2rem;
margin-bottom: 50px;
text-align: center;
position: relative;
display: inline-block;
left: 50%;
transform: translateX(-50%);
padding-bottom: 10px;
}
.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 20%;
width: 60%;
height: 2px;
background: linear-gradient(90deg, transparent, var(--text-cyan), transparent);
}
.service-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 30px;
}
.service-card {
padding: 30px;
text-align: center;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), var(--glow-cyan);
border: 1px solid rgba(0, 255, 235, 0.3);
}
.service-icon {
font-size: 2.5rem;
margin-bottom: 20px;
color: var(--text-cyan);
text-shadow: var(--glow-cyan);
}
.service-card h3 {
font-size: 1.5rem;
margin-bottom: 10px;
}
.service-card p {
margin-bottom: 20px;
opacity: 0.8;
}
.status {
display: inline-flex;
align-items: center;
font-size: 0.9rem;
padding: 5px 10px;
border-radius: 20px;
background: rgba(0, 255, 235, 0.1);
margin-bottom: 15px;
}
.status.online i {
color: #00ff00;
margin-right: 5px;
font-size: 0.7rem;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}
.service-link {
color: var(--text-cyan);
text-decoration: none;
font-size: 0.9rem;
display: inline-flex;
align-items: center;
margin-top: 10px;
transition: all 0.3s ease;
}
.service-link:hover {
text-shadow: var(--glow-cyan);
transform: translateX(5px);
}
.service-link i {
margin-left: 5px;
transition: transform 0.3s ease;
}
.service-link:hover i {
transform: translateX(5px);
}
/* 最新思路样式 */
.latest-thoughts {
padding: 100px 0;
min-height: 100vh;
}
.thoughts-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 30px;
}
.thought-card {
overflow: hidden;
height: 100%;
cursor: pointer;
}
.thought-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 235, 0.2);
}
.thought-image {
height: 200px;
background-size: cover;
background-position: center;
transition: transform 0.5s ease;
}
.thought-card:hover .thought-image {
transform: scale(1.05);
}
.thought-content {
padding: 20px;
}
.thought-content h3 {
margin-bottom: 10px;
font-size: 1.3rem;
}
.thought-excerpt {
margin-bottom: 15px;
opacity: 0.8;
display: -webkit-box;
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.thought-date {
font-size: 0.9rem;
opacity: 0.6;
margin-bottom: 15px;
display: block;
}
.read-more {
color: var(--text-cyan);
text-decoration: none;
font-size: 0.9rem;
display: inline-flex;
align-items: center;
transition: all 0.3s ease;
}
.read-more:hover {
text-shadow: var(--glow-cyan);
}
.read-more i {
margin-left: 5px;
transition: transform 0.3s ease;
}
.thought-card:hover .read-more i {
transform: translateX(5px);
}
/* 创意圈样式 */
.creative-circle {
padding: 100px 0;
min-height: 100vh;
}
/* 技术实验室样式 */
.tech-lab {
padding: 100px 0;
min-height: 100vh;
}
.circle-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 30px;
}
.friend-card {
padding: 25px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
.friend-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 107, 53, 0.2);
border: 1px solid rgba(255, 107, 53, 0.3);
}
.friend-avatar {
width: 120px;
height: 120px;
border-radius: 50%;
background-size: cover;
background-position: center;
margin-bottom: 20px;
border: 2px solid var(--text-orange);
box-shadow: var(--glow-orange);
transition: all 0.3s ease;
}
.friend-card:hover .friend-avatar {
transform: scale(1.05);
box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}
.friend-card h3 {
margin-bottom: 5px;
font-size: 1.3rem;
color: var(--text-orange);
text-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}
.friend-card p {
margin-bottom: 15px;
opacity: 0.8;
font-size: 0.9rem;
}
.friend-social {
display: flex;
gap: 15px;
margin-bottom: 20px;
}
.friend-social a {
color: var(--text-gray);
font-size: 1.2rem;
transition: all 0.3s ease;
}
.friend-social a:hover {
color: var(--text-orange);
text-shadow: var(--glow-orange);
transform: translateY(-3px);
}
.glow-button {
padding: 10px 20px;
background: transparent;
border: 1px solid var(--text-cyan);
color: var(--text-cyan);
border-radius: 5px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}
.glow-button:hover {
background: rgba(255, 107, 53, 0.1);
box-shadow: var(--glow-orange);
transform: translateY(-3px);
}
.lab-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 30px;
}
.lab-card {
padding: 30px;
text-align: center;
}
.lab-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 235, 0.2);
}
.lab-icon {
font-size: 3rem;
margin-bottom: 20px;
color: var(--text-cyan);
text-shadow: var(--glow-cyan);
}
.lab-card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
}
.lab-card p {
margin-bottom: 25px;
opacity: 0.8;
}
.lab-link {
color: var(--text-cyan);
text-decoration: none;
font-size: 1rem;
display: inline-flex;
align-items: center;
transition: all 0.3s ease;
padding: 10px 20px;
border: 1px solid var(--text-cyan);
border-radius: 5px;
}
.lab-link:hover {
background: rgba(0, 255, 235, 0.1);
box-shadow: var(--glow-cyan);
transform: translateY(-3px);
}
.lab-link i {
margin-left: 10px;
}
/* 页脚样式 */
.footer {
padding: 30px 0;
background: rgba(10, 14, 23, 0.8);
backdrop-filter: blur(10px);
}
[data-theme='gallery'] .footer {
background: rgba(248, 240, 247, 0.3) !important;
}
.footer .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.social-links {
display: flex;
gap: 15px;
}
.social-links a {
color: var(--text-gray);
font-size: 1.2rem;
transition: all 0.3s ease;
}
.social-links a:hover {
color: var(--text-cyan);
text-shadow: var(--glow-cyan);
transform: translateY(-3px);
}
/* 视觉风格切换器样式 */
.theme-switcher {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 1000;
}
.theme-button {
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border: 1px solid var(--text-cyan);
color: var(--text-cyan);
font-size: 1.2rem;
cursor: pointer;
box-shadow: var(--glow-cyan);
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.theme-button:hover {
transform: translateY(-5px);
box-shadow: 0 0 20px rgba(0, 255, 235, 0.7);
}
.theme-menu {
position: absolute;
bottom: 60px;
right: 0;
width: 200px;
padding: 15px;
display: none;
}
.theme-menu.active {
display: block;
}
.theme-option {
padding: 1px;
cursor: pointer;
border-radius: 5px;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 10px;
}
.theme-option:hover {
background: rgba(255, 255, 255, 0.1);
}
.theme-option.active {
background: rgba(0, 255, 235, 0.1);
color: var(--text-cyan);
}
.theme-dot {
width: 15px;
height: 15px;
border-radius: 50%;
}
.theme-dot.cyber {
background: var(--text-cyan);
box-shadow: var(--glow-cyan);
}
.theme-dot.minimal {
background: #6c757d;
}
.theme-dot.gallery {
background: var(--text-orange);
box-shadow: var(--glow-orange);
}
/* 视差滚动样式 */
[data-parallax] {
transition: transform 0.2s ease-out;
}
/* 响应式设计 */
@media (max-width: 992px) {
.hero-content {
grid-template-columns: 1fr;
}
.hero-text h1 {
font-size: 3rem;
}
.hero-text h2 {
font-size: 2rem;
}
}
@media (max-width: 768px) {
.navbar-nav {
display: none;
}
.section-title {
font-size: 1.8rem;
}
.thoughts-grid, .circle-grid, .lab-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 576px) {
.hero-text h1 {
font-size: 2.5rem;
}
.hero-text h2 {
font-size: 1.8rem;
}
.hero-buttons {
flex-direction: column;
}
.btn-primary, .btn-secondary {
width: 100%;
}
}
/* 开发环境模块样式 */
.dev-environment {
padding: 100px 0;
}
.dev-status {
padding: 30px;
margin-bottom: 40px;
}
.status-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.status-indicator {
display: flex;
align-items: center;
font-size: 0.9rem;
padding: 5px 15px;
border-radius: 20px;
background: rgba(0, 255, 235, 0.1);
}
.status-indicator.online i {
color: #00ff00;
margin-right: 10px;
text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}
.status-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
}
.status-item {
display: flex;
align-items: center;
gap: 15px;
padding: 15px;
background: rgba(255, 255, 255, 0.03);
border-radius: 8px;
}
.status-item i {
font-size: 1.5rem;
color: var(--text-cyan);
}
.status-info {
flex: 1;
}
.status-label {
font-size: 0.9rem;
opacity: 0.7;
}
.status-value {
font-size: 1.1rem;
font-weight: 600;
color: var(--text-cyan);
}
.dev-tools-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 30px;
margin-bottom: 40px;
}
.tool-card {
padding: 30px;
text-align: center;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.tool-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), var(--glow-cyan);
border: 1px solid rgba(0, 255, 235, 0.3);
}
.tool-icon {
font-size: 2.5rem;
margin-bottom: 20px;
color: var(--text-cyan);
text-shadow: var(--glow-cyan);
}
.tool-card h3 {
font-size: 1.5rem;
margin-bottom: 10px;
}
.tool-card p {
margin-bottom: 20px;
opacity: 0.8;
}
.tool-link {
color: var(--text-cyan);
text-decoration: none;
font-size: 0.9rem;
display: inline-flex;
align-items: center;
margin-top: 10px;
transition: all 0.3s ease;
padding: 10px 20px;
border: 1px solid var(--text-cyan);
border-radius: 5px;
}
.tool-link:hover {
background: rgba(0, 255, 235, 0.1);
box-shadow: var(--glow-cyan);
transform: translateY(-3px);
}
.tool-link i {
margin-left: 10px;
}
.language-support {
padding: 30px;
margin-bottom: 40px;
}
.language-tags {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 20px;
}
.language-tag {
padding: 8px 15px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.05);
display: flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
}
.language-tag:hover {
background: rgba(0, 255, 235, 0.1);
transform: translateY(-3px);
}
.language-tag i {
color: var(--text-cyan);
}
.quick-start {
padding: 30px;
}
.project-templates {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 20px;
}
.template-card {
padding: 20px;
background: rgba(255, 255, 255, 0.03);
border-radius: 8px;
transition: all 0.3s ease;
}
.template-card:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.05);
}
.template-card h4 {
margin-bottom: 10px;
color: var(--text-orange);
}
.template-card p {
margin-bottom: 20px;
opacity: 0.7;
font-size: 0.9rem;
}
[data-theme='minimal'] .service-card:hover,
[data-theme='minimal'] .thought-card:hover,
[data-theme='minimal'] .friend-card:hover,
[data-theme='minimal'] .lab-card:hover {
transform: none !important;
box-shadow: none !important;
border: 1px solid #e0e0e0 !important;
}