Files
home/css/about.css
hehh 56bd98a1b9 refactor: 重构网站样式和功能,优化用户体验
- 删除冗余CSS文件(bj.css, font.css, sey.css, stars-style.css)
- 重构导航栏样式,添加现代化交互效果
- 优化社交图标,使用SVG替代字体图标并添加渐变效果
- 新增关于页面(about.html)及相关资源
- 更新首页(index.html)布局和样式
- 重构星空背景JavaScript(bj.js),添加错误处理
- 新增关于页面JavaScript功能(about.js)
2025-08-05 12:16:35 +08:00

992 lines
19 KiB
CSS

/* 关于页面样式 - 现代动态设计 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background: #0a0a0a;
min-height: 100vh;
overflow-x: hidden;
}
/* 动态背景 */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
z-index: -1;
animation: backgroundShift 20s ease-in-out infinite;
}
@keyframes backgroundShift {
0%, 100% { transform: scale(1) rotate(0deg); }
50% { transform: scale(1.1) rotate(5deg); }
}
/* 导航栏 */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(10, 10, 10, 0.8);
backdrop-filter: blur(20px);
z-index: 1000;
padding: 1rem 0;
transition: all 0.3s ease;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar.scrolled {
background: rgba(10, 10, 10, 0.95);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.nav-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-logo {
font-size: 1.5rem;
font-weight: 700;
color: #fff;
text-decoration: none;
background: linear-gradient(45deg, #667eea, #764ba2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.nav-links {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-links a {
text-decoration: none;
color: rgba(255, 255, 255, 0.8);
font-weight: 500;
transition: all 0.3s ease;
position: relative;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: linear-gradient(45deg, #667eea, #764ba2);
transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
width: 100%;
}
/* 主要内容 */
.main-content {
margin-top: 80px;
max-width: 1400px;
margin-left: auto;
margin-right: auto;
}
/* 英雄区域 */
.hero-section {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.floating-shapes {
position: absolute;
width: 100%;
height: 100%;
}
.shape {
position: absolute;
border-radius: 50%;
background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
animation: float 6s ease-in-out infinite;
}
.shape-1 {
width: 300px;
height: 300px;
top: 10%;
left: 10%;
animation-delay: 0s;
}
.shape-2 {
width: 200px;
height: 200px;
top: 60%;
right: 10%;
animation-delay: 2s;
}
.shape-3 {
width: 150px;
height: 150px;
bottom: 20%;
left: 60%;
animation-delay: 4s;
}
@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }
}
.hero-content {
text-align: center;
z-index: 1;
padding: 2rem;
}
.profile-avatar {
position: relative;
display: inline-block;
margin-bottom: 2rem;
}
.avatar-image {
width: 150px;
height: 150px;
border-radius: 50%;
object-fit: cover;
border: 4px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.avatar-image:hover {
transform: scale(1.05);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}
.avatar-ring {
position: absolute;
top: -15px;
left: -15px;
right: -15px;
bottom: -15px;
border: 2px solid;
border-image: linear-gradient(45deg, #667eea, #764ba2, #667eea) 1;
border-radius: 50%;
animation: rotate 10s linear infinite;
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.hero-title {
font-size: 4rem;
font-weight: 800;
color: #fff;
margin-bottom: 1rem;
background: linear-gradient(45deg, #667eea, #764ba2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
from { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5)); }
to { filter: drop-shadow(0 0 30px rgba(118, 75, 162, 0.8)); }
}
.hero-subtitle {
font-size: 1.5rem;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 2rem;
font-weight: 300;
}
.personality-badge {
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
margin-bottom: 3rem;
}
.mbti-tag {
background: linear-gradient(45deg, #667eea, #764ba2);
color: #fff;
padding: 0.8rem 1.5rem;
border-radius: 30px;
font-size: 1rem;
font-weight: 700;
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
animation: pulse 2s infinite;
}
.badge-desc {
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
font-style: italic;
}
.hero-stats {
display: flex;
justify-content: center;
gap: 3rem;
flex-wrap: wrap;
}
.hero-stats .stat-item {
text-align: center;
}
.hero-stats .stat-number {
font-size: 2.5rem;
font-weight: 800;
color: #fff;
display: block;
margin-bottom: 0.5rem;
}
.hero-stats .stat-label {
color: rgba(255, 255, 255, 0.6);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
}
/* 通用区域样式 */
.section-header {
text-align: center;
margin-bottom: 4rem;
padding: 0 2rem;
}
.section-title {
font-size: 3rem;
font-weight: 800;
color: #fff;
margin-bottom: 1rem;
position: relative;
display: inline-block;
}
.section-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 4px;
background: linear-gradient(45deg, #667eea, #764ba2);
border-radius: 2px;
}
.section-subtitle {
font-size: 1.2rem;
color: rgba(255, 255, 255, 0.6);
font-weight: 300;
}
/* 技术栈云图 */
.tech-cloud-section {
padding: 8rem 2rem;
position: relative;
}
.tech-cloud {
position: relative;
width: 600px;
height: 600px;
margin: 0 auto;
}
.tech-orbit {
position: absolute;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.1);
animation: orbitRotate 30s linear infinite;
}
.orbit-1 {
width: 200px;
height: 200px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation-duration: 20s;
}
.orbit-2 {
width: 350px;
height: 350px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation-duration: 30s;
animation-direction: reverse;
}
.orbit-3 {
width: 500px;
height: 500px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation-duration: 40s;
}
@keyframes orbitRotate {
from { transform: translate(-50%, -50%) rotate(0deg); }
to { transform: translate(-50%, -50%) rotate(360deg); }
}
.tech-item {
position: absolute;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
color: #fff;
padding: 0.8rem 1.5rem;
border-radius: 25px;
font-size: 0.9rem;
font-weight: 600;
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
cursor: pointer;
white-space: nowrap;
}
.tech-item:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.1);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.tech-item.primary {
background: linear-gradient(45deg, #667eea, #764ba2);
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.tech-item.secondary {
background: rgba(102, 126, 234, 0.2);
border-color: rgba(102, 126, 234, 0.4);
}
.tech-item.tertiary {
background: rgba(255, 255, 255, 0.05);
}
/* 技术项目位置 */
.orbit-1 .tech-item:nth-child(1) { top: -15px; left: 50%; transform: translateX(-50%); }
.orbit-1 .tech-item:nth-child(2) { bottom: -15px; left: 50%; transform: translateX(-50%); }
.orbit-1 .tech-item:nth-child(3) { top: 50%; right: -15px; transform: translateY(-50%); }
.orbit-2 .tech-item:nth-child(1) { top: -15px; left: 50%; transform: translateX(-50%); }
.orbit-2 .tech-item:nth-child(2) { top: 50%; right: -15px; transform: translateY(-50%); }
.orbit-2 .tech-item:nth-child(3) { bottom: -15px; left: 50%; transform: translateX(-50%); }
.orbit-2 .tech-item:nth-child(4) { top: 50%; left: -15px; transform: translateY(-50%); }
.orbit-3 .tech-item:nth-child(1) { top: -15px; left: 30%; }
.orbit-3 .tech-item:nth-child(2) { top: -15px; right: 30%; }
.orbit-3 .tech-item:nth-child(3) { top: 30%; right: -15px; }
.orbit-3 .tech-item:nth-child(4) { bottom: 30%; right: -15px; }
.orbit-3 .tech-item:nth-child(5) { bottom: -15px; left: 30%; }
.orbit-3 .tech-item:nth-child(6) { top: 30%; left: -15px; }
/* 个性时间线 */
.personality-timeline-section {
padding: 8rem 2rem;
background: rgba(255, 255, 255, 0.02);
}
.personality-timeline {
max-width: 800px;
margin: 0 auto;
position: relative;
}
.personality-timeline::before {
content: '';
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 2px;
background: linear-gradient(to bottom, #667eea, #764ba2);
transform: translateX(-50%);
}
.timeline-item {
display: flex;
align-items: center;
margin-bottom: 4rem;
position: relative;
}
.timeline-item:nth-child(even) {
flex-direction: row-reverse;
}
.timeline-icon {
width: 80px;
height: 80px;
border-radius: 50%;
background: linear-gradient(45deg, #667eea, #764ba2);
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
z-index: 2;
box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.timeline-content {
flex: 1;
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
padding: 2rem;
border-radius: 20px;
margin: 0 2rem;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}
.timeline-content:hover {
background: rgba(255, 255, 255, 0.08);
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.timeline-content h3 {
color: #fff;
font-size: 1.5rem;
margin-bottom: 1rem;
font-weight: 600;
}
.timeline-content p {
color: rgba(255, 255, 255, 0.8);
line-height: 1.6;
}
/* GitHub项目展示 */
.github-showcase-section {
padding: 8rem 2rem;
}
.projects-masonry {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
align-items: start;
}
.project-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 2rem;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.project-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: left 0.5s ease;
}
.project-card:hover::before {
left: 100%;
}
.project-card:hover {
transform: translateY(-10px);
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
border-color: rgba(102, 126, 234, 0.3);
}
.project-title {
color: #fff;
font-size: 1.3rem;
margin-bottom: 1rem;
font-weight: 600;
}
.project-description {
color: rgba(255, 255, 255, 0.8);
margin-bottom: 1.5rem;
line-height: 1.6;
}
.project-stats {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.project-stat {
display: flex;
align-items: center;
gap: 0.3rem;
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
}
.project-link {
display: inline-block;
background: linear-gradient(45deg, #667eea, #764ba2);
color: #fff;
padding: 0.7rem 1.5rem;
border-radius: 25px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
}
.project-link:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
/* 博客瀑布流 */
.blog-waterfall-section {
padding: 8rem 2rem;
background: rgba(255, 255, 255, 0.02);
}
.view-all-link {
color: #667eea;
text-decoration: none;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.5rem;
transition: all 0.3s ease;
}
.view-all-link:hover {
color: #764ba2;
transform: translateX(5px);
}
.articles-waterfall {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
align-items: start;
}
.article-card {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 1.5rem;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
text-decoration: none;
display: block;
}
.article-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
background: rgba(255, 255, 255, 0.08);
}
.article-title {
color: #fff;
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 1rem;
line-height: 1.4;
}
.article-excerpt {
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
line-height: 1.5;
margin-bottom: 1rem;
}
.article-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.5);
}
.article-category {
background: rgba(102, 126, 234, 0.2);
color: #667eea;
padding: 0.3rem 0.8rem;
border-radius: 12px;
font-size: 0.7rem;
font-weight: 600;
}
/* 联系方式轨道 */
.contact-floating-section {
padding: 8rem 2rem;
position: relative;
}
.contact-container {
max-width: 800px;
margin: 0 auto;
text-align: center;
}
.contact-title h2 {
font-size: 2.5rem;
color: #fff;
margin-bottom: 1rem;
font-weight: 700;
}
.contact-title p {
color: rgba(255, 255, 255, 0.6);
font-size: 1.1rem;
margin-bottom: 4rem;
}
.social-orbit {
position: relative;
width: 400px;
height: 400px;
margin: 0 auto;
}
.social-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80px;
height: 80px;
background: linear-gradient(45deg, #667eea, #764ba2);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
color: #fff;
box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
animation: pulse 2s infinite;
}
.social-planet {
position: absolute;
width: 100px;
height: 100px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-decoration: none;
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
animation: planetOrbit 15s linear infinite;
}
.social-planet:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.1);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.social-planet i {
font-size: 1.5rem;
margin-bottom: 0.3rem;
}
.social-planet span {
font-size: 0.8rem;
font-weight: 600;
}
.planet-1 {
top: 0;
left: 50%;
transform: translateX(-50%);
animation-delay: 0s;
}
.planet-2 {
top: 50%;
right: 0;
transform: translateY(-50%);
animation-delay: 5s;
}
.planet-3 {
bottom: 0;
left: 50%;
transform: translateX(-50%);
animation-delay: 10s;
}
@keyframes planetOrbit {
from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
to { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}
/* 评论系统 */
.comments-section {
padding: 8rem 2rem;
background: rgba(255, 255, 255, 0.02);
}
.comments-container {
max-width: 1000px;
margin: 0 auto;
text-align: center;
}
.comments-container .section-title {
margin-bottom: 0.5rem;
}
.comments-container .section-subtitle {
margin-bottom: 3rem;
}
#artalk-container {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 2rem;
border: 1px solid rgba(255, 255, 255, 0.1);
text-align: left;
}
/* 加载动画 */
.loading-placeholder {
text-align: center;
padding: 4rem 2rem;
color: rgba(255, 255, 255, 0.6);
}
.loading-spinner {
width: 40px;
height: 40px;
border: 3px solid rgba(255, 255, 255, 0.1);
border-top: 3px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 1rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
/* 响应式设计 */
@media (max-width: 1024px) {
.tech-cloud {
width: 500px;
height: 500px;
}
.orbit-3 {
width: 400px;
height: 400px;
}
.social-orbit {
width: 300px;
height: 300px;
}
}
@media (max-width: 768px) {
.nav-container {
padding: 0 1rem;
}
.nav-links {
gap: 1rem;
}
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.2rem;
}
.hero-stats {
gap: 2rem;
}
.section-title {
font-size: 2rem;
}
.tech-cloud {
width: 350px;
height: 350px;
}
.orbit-2 {
width: 250px;
height: 250px;
}
.orbit-3 {
width: 300px;
height: 300px;
}
.personality-timeline::before {
left: 30px;
}
.timeline-item {
flex-direction: row !important;
padding-left: 80px;
}
.timeline-icon {
position: absolute;
left: 0;
width: 60px;
height: 60px;
font-size: 1.5rem;
}
.timeline-content {
margin: 0;
margin-left: 1rem;
}
.social-orbit {
width: 250px;
height: 250px;
}
.social-planet {
width: 80px;
height: 80px;
}
.social-planet i {
font-size: 1.2rem;
}
.social-planet span {
font-size: 0.7rem;
}
.projects-masonry,
.articles-waterfall {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.hero-title {
font-size: 2rem;
}
.hero-stats {
flex-direction: column;
gap: 1rem;
}
.personality-badge {
flex-direction: column;
gap: 0.5rem;
}
.tech-cloud {
width: 280px;
height: 280px;
}
.orbit-1 {
width: 120px;
height: 120px;
}
.orbit-2 {
width: 180px;
height: 180px;
}
.orbit-3 {
width: 240px;
height: 240px;
}
.tech-item {
padding: 0.5rem 1rem;
font-size: 0.8rem;
}
}