* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 动态背景粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    50% { transform: translateY(-40px) translateX(40px) rotate(180deg); opacity: 0.5; }
}

/* 导航栏 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(12, 12, 12, 0.95);
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00ffff, #ff0080);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

@keyframes logoGlow {
    0% { box-shadow: 0 0 15px rgba(0, 255, 255, 0.5); }
    100% { box-shadow: 0 0 25px rgba(255, 0, 128, 0.6); }
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff0080);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00ffff, #ff0080, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { text-shadow: 0 0 20px rgba(0, 255, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 40px rgba(255, 0, 128, 0.3); }
}

.hero-content h2 {
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 30px;
    opacity: 0;
    animation: slideUp 1s ease 0.5s forwards;
}

.hero-content p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideUp 1s ease 0.8s forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #00ffff, #ff0080);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
    opacity: 0;
    animation: slideUp 1s ease 1s forwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: #2d3748;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #00ffff;
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00ffff, #ff0080); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(15deg);
}

.skill-icon i {
    font-size: 2rem;
    color: #fff;
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.skill-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #4299e1, #63b3ed);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 18px;
    top: 0;
    width: 24px;
    height: 24px;
    background: #4299e1;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.2);
}

.timeline-content {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.company-date {
    color: #4299e1;
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #718096;
}

.timeline-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #4299e1;
    font-size: 0.8rem;
}

.timeline-content strong {
    color: #4299e1;
    font-weight: 600;
}


/* 通用章节样式 */
.section {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #00ffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 关于我 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.avatar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ffff, #ff0080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-text h3 {
    font-size: 2rem;
    color: #00ffff;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 20px;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.skill-item {
    background: rgba(0, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-item h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.skill-item:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

/* 经验时间轴 */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #00ffff, #ff0080);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #00ffff;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}
.experience-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.company-logo {
    width: 100px;
    height: 100px;
}

.green-text{
    color: #00ffff;
    font-weight: bold;
}

.timeline-date {
    color: #ff0080;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeline-company {
    color: #00ffff;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
}

.timeline-role {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.timeline-desc {
    color: #cccccc;
    line-height: 1.6;
}

/* 项目网格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, #00ffff, #ff0080);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.project-content {
    padding: 25px;
}

.project-title {
    color: #00ffff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-desc {
    color: #cccccc;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* 联系方式 */
.contact {
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00ffff, #ff0080);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.contact-text {
    color: #cccccc;
    text-decoration: none;
}

.contact-text:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .nav-links { display: none; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-info { flex-direction: column; gap: 20px; }
    .section { padding: 60px 20px; }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ffff, #ff0080);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff0080, #00ffff);
}

/* Footer样式 */
.footer {
    background-color: transparent; /* 或者使用页面的背景颜色代码 */
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.copyright {
    color: #cccccc;
    font-size: 0.9rem;
    text-align: left; /* 确保文本左对齐 */
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00ffff, #ff0080);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.arrow-up {
    font-size: 1.2rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }
}

/* 技能矩阵表格样式 */
#skill-matrix table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #1e2a3a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#skill-matrix th {
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #3a506b;
}

#skill-matrix td {
    padding: 15px;
    border-bottom: 1px solid #2c3e50;
    color: #ffffff;
}

#skill-matrix tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

#skill-matrix tr:hover {
    background-color: rgba(0, 255, 255, 0.05);
}

/* 能力评分进度条 */
.ability-bar {
    height: 10px;
    background-color: #2c3e50;
    border-radius: 5px;
    overflow: hidden;
    width: 200px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.ability-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #00a0a0);
    border-radius: 5px;
}

.ability-text {
    display: inline-block;
    vertical-align: middle;
    color: #cccccc;
}