/* 全局样式 */
:root {
    /* 紫蓝色主题变量 */
    --primary-color: #f8f9fa; /* 主要背景色：浅灰白色 */
    --accent-color: #4a6fa5; /* 强调色：蓝色 */
    --text-color: #333333; /* 文字颜色：深灰色 */
    --secondary-color: #e9ecef; /* 次要颜色：淡灰色 */
    --highlight-color: #6a11cb; /* 高亮颜色：紫色 */
    --card-bg: rgba(233, 236, 239, 0.7); /* 卡片背景色：半透明淡灰色 */
    --gradient-start: #6a11cb; /* 渐变起始色：紫色 */
    --gradient-end: #2575fc; /* 渐变结束色：蓝色 */
}

/* 自定义光标 */
html {
    cursor: none;
}

.cursor-dot,
.cursor-dot-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gradient-start);
}

.cursor-dot-outline {
    width: 60px; /* 增大尺寸，使其离鼠标更远 */
    height: 60px; /* 增大尺寸，使其离鼠标更远 */
    background-color: transparent;
    border: 2px solid var(--gradient-start);
    transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease; /* 加快响应速度，增加灵活性 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 加载屏幕 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-container {
    text-align: center;
    width: 300px;
}

.loading-text {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.loading-percentage {
    color: var(--text-color);
    font-size: 1rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

/* 头像入场动画 */
.avatar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    z-index: 1000;
    transition: opacity 1s ease-out;
}

.avatar-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px var(--accent-color);
    animation: pulse 2s infinite, entrance 1.5s ease-out;
}

#avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0);
    animation: avatarReveal 1.5s ease-out forwards;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 30px var(--accent-color);
    }
    50% {
        box-shadow: 0 0 50px var(--accent-color);
    }
    100% {
        box-shadow: 0 0 30px var(--accent-color);
    }
}

@keyframes entrance {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

@keyframes avatarReveal {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 主内容区 */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 1s ease-out 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.glowing-text {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(106, 17, 203, 0.4);
    margin-bottom: 10px;
    letter-spacing: 2px;
    animation: purpleBlueGlow 3s infinite alternate;
}

@keyframes purpleBlueGlow {
    from {
        text-shadow: 0 0 10px rgba(106, 17, 203, 0.4);
    }
    to {
        text-shadow: 0 0 20px rgba(37, 117, 252, 0.7), 0 0 30px rgba(106, 17, 203, 0.5);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gradient-start); /* 使用紫色，更加醒目 */
    opacity: 1; /* 增加不透明度 */
    font-weight: 600; /* 加粗 */
    text-shadow: 0 0 8px rgba(106, 17, 203, 0.5); /* 添加文字阴影 */
}

/* 打字效果 */
.typing-cursor {
    display: inline-block;
    color: var(--gradient-start);
    font-weight: bold;
    animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* 导航栏 */
nav {
    background-color: rgba(233, 236, 239, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px 25px; /* 减少水平内边距 */
    margin: 0 auto 50px; /* 居中导航栏 */
    box-shadow: 0 5px 20px rgba(106, 17, 203, 0.1);
    position: sticky;
    top: 20px;
    z-index: 100;
    max-width: 700px; /* 减小最大宽度 */
    width: 95%; /* 增加宽度占比 */
}

nav ul {
    display: flex;
    justify-content: space-between; /* 改为分散对齐 */
    list-style: none;
    flex-wrap: wrap;
    width: 100%; /* 确保占满整个导航栏宽度 */
    padding: 0; /* 移除默认内边距 */
}

nav li {
    margin: 0; /* 移除左右外边距，由space-between控制间距 */
    padding: 0 5px; /* 添加少量内边距 */
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--gradient-start);
}

.nav-link:hover:before {
    width: 80%;
    left: 10%;
}

/* 章节样式 */
.section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(74, 111, 165, 0.3);
    backdrop-filter: blur(5px);
}

.section-title {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

/* 关于我部分 */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-tag {
    background-color: rgba(74, 111, 165, 0.1);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(106, 17, 203, 0.2);
}

/* 博客文章卡片 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.blog-card {
    background: linear-gradient(145deg, rgba(233, 236, 239, 0.8), rgba(248, 249, 250, 0.8));
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(74, 111, 165, 0.3);
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.2);
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.blog-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.3;
}

.blog-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-meta {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.blog-excerpt {
    margin-bottom: 15px;
    color: var(--text-color);
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.read-more:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gradient-start);
    transition: width 0.3s ease;
}

.read-more:hover {
    color: var(--gradient-start);
}

.read-more:hover:after {
    width: 100%;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(to right, var(--gradient-end), var(--gradient-start));
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
    transform: translateY(-3px);
}

.btn i {
    margin-left: 8px;
}

/* 项目展示 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(10, 10, 20, 0.8));
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(74, 111, 165, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-card p {
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.9;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--accent-color);
}

/* 联系方式 */
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
    padding: 10px;
    width: 110px;
    margin-bottom: 15px;
}

.social-link:hover {
    transform: translateY(-8px);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(74, 111, 165, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.social-link:hover .social-icon {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    box-shadow: 0 0 15px rgba(106, 17, 203, 0.3);
}

/* 特定社交图标样式 */
.social-icon.csdn {
    font-size: 0.9rem;
    font-weight: bold;
}

.social-icon.cto {
    font-size: 0.9rem;
    font-weight: bold;
}

.social-icon.tencent-cloud {
    font-size: 0.8rem;
    font-weight: bold;
}

.social-icon.aliyun {
    font-size: 0.8rem;
    font-weight: bold;
}

.social-icon.huawei-cloud {
    font-size: 0.8rem;
    font-weight: bold;
}

/* 友情链接样式 */
.friend-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.friend-link {
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 111, 165, 0.2);
}

.friend-link a {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: var(--text-color);
}

.friend-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--accent-color);
}

.friend-info {
    flex: 1;
}

.friend-info h3 {
    margin: 0 0 5px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.friend-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.friend-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

/* 浅色模式下的友情链接样式 */
body.light-mode .friend-link {
    background-color: rgba(233, 236, 239, 0.7);
    border: 1px solid rgba(74, 111, 165, 0.3);
}

body.light-mode .friend-info h3 {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-mode .friend-info p {
    color: var(--light-text-color);
}

body.light-mode .friend-link:hover {
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.2);
    border-color: var(--gradient-start);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    color: #666666;
    opacity: 0.7;
    font-size: 0.9rem;
    background-color: rgba(233, 236, 239, 0.5);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(106, 17, 203, 0.2);
}

footer a {
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
}

body.light-mode footer {
    background-color: rgba(233, 236, 239, 0.5);
    border-top: 1px solid rgba(106, 17, 203, 0.2);
}

/* 网站声明链接样式 */
.statement-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.statement-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.statement-link:hover {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.statement-link:hover:after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .glowing-text {
        font-size: 2.5rem;
    }
    
    nav {
        padding: 10px 20px;
    }
    
    nav ul {
        justify-content: space-around;
    }
    
    nav li {
        margin: 5px;
    }
    
    .blog-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .avatar-wrapper {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .glowing-text {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 100px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ===== 浅色模式样式 - 紫蓝色主题 ===== */
body.light-mode {
    background-color: var(--light-primary-color);
    color: var(--light-text-color);
}

/* 粒子背景 - 浅色模式 */
body.light-mode #particles-js {
    background: linear-gradient(to bottom, var(--light-primary-color), var(--light-secondary-color)) !important;
}

/* 加载屏幕 - 浅色模式 */
body.light-mode .loading-screen {
    background-color: var(--light-primary-color);
}

/* 头像入场动画背景 - 浅色模式 */
body.light-mode .avatar-container {
    background-color: var(--light-primary-color);
}

/* 导航栏 - 浅色模式 */
body.light-mode nav {
    background-color: rgba(233, 236, 239, 0.8);
    box-shadow: 0 5px 20px rgba(106, 17, 203, 0.1);
    /* 保持与深色模式相同的宽度和边距设置 */
}

body.light-mode .nav-link {
    color: var(--light-text-color);
}

body.light-mode .nav-link:before {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

body.light-mode .nav-link:hover {
    color: var(--gradient-start);
}

/* 章节内容 - 浅色模式 */
body.light-mode .section-content {
    background-color: var(--light-card-bg);
    border: 1px solid rgba(74, 111, 165, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 博客卡片 - 浅色模式 */
body.light-mode .blog-card {
    background: linear-gradient(145deg, rgba(233, 236, 239, 0.8), rgba(248, 249, 250, 0.8));
    border: 1px solid rgba(74, 111, 165, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .blog-card:hover {
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.2);
    border: 1px solid rgba(106, 17, 203, 0.2);
}

body.light-mode .blog-card h3 {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-mode .blog-meta {
    color: #666666;
}

body.light-mode .blog-excerpt {
    color: var(--light-text-color);
}

/* 项目卡片 - 浅色模式 */
body.light-mode .project-card {
    background: linear-gradient(145deg, rgba(233, 236, 239, 0.8), rgba(248, 249, 250, 0.8));
    border: 1px solid rgba(74, 111, 165, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .project-card:hover {
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.2);
    border: 1px solid rgba(106, 17, 203, 0.2);
}

body.light-mode .project-card h3 {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-mode .project-card p {
    color: var(--light-text-color);
}

body.light-mode .project-link {
    color: #666666;
}

body.light-mode .project-link:hover {
    color: var(--gradient-start);
}

/* 社交图标背景 - 浅色模式 */
body.light-mode .social-icon {
    background-color: rgba(74, 111, 165, 0.1);
    border: 1px solid rgba(106, 17, 203, 0.2);
    color: var(--light-accent-color);
}

body.light-mode .social-link:hover .social-icon {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: var(--light-primary-color);
    box-shadow: 0 0 15px rgba(106, 17, 203, 0.3);
}

body.light-mode .social-link span {
    color: var(--light-text-color);
}

/* 技能标签 - 浅色模式 */
body.light-mode .skill-tag {
    background-color: rgba(74, 111, 165, 0.1);
    border: 1px solid var(--light-accent-color);
    color: var(--light-text-color);
}

body.light-mode .skill-tag:hover {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(106, 17, 203, 0.2);
}

/* 按钮样式 - 浅色模式 */
body.light-mode .btn {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: var(--light-primary-color);
}

body.light-mode .btn:hover {
    background: linear-gradient(to right, var(--gradient-end), var(--gradient-start));
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

/* 页脚 - 浅色模式 */
body.light-mode footer {
    color: #666666;
}

/* 区块标题 - 浅色模式 */
body.light-mode .section-title {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-mode .section-title:after {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

/* 标题文字 - 浅色模式 */
body.light-mode .glowing-text {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(106, 17, 203, 0.4);
    animation: purpleBlueGlow 3s infinite alternate;
}

/* 副标题 - 浅色模式 */
body.light-mode .subtitle {
    color: var(--gradient-start); /* 使用紫色，更加醒目 */
    font-weight: 600;
    text-shadow: 0 0 8px rgba(106, 17, 203, 0.5);
}

@keyframes purpleBlueGlow {
    from {
        text-shadow: 0 0 10px rgba(106, 17, 203, 0.4);
    }
    to {
        text-shadow: 0 0 20px rgba(37, 117, 252, 0.7), 0 0 30px rgba(106, 17, 203, 0.5);
    }
}

/* 加载进度条 - 浅色模式 */
body.light-mode .loading-text {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-mode .loading-bar {
    background-color: rgba(74, 111, 165, 0.1);
}

body.light-mode .loading-progress {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

body.light-mode .loading-percentage {
    color: var(--light-text-color);
}

/* 阅读更多链接 - 浅色模式 */
body.light-mode .read-more {
    color: var(--light-accent-color);
}

body.light-mode .read-more:hover {
    color: var(--gradient-start);
}

body.light-mode .read-more:after {
    background-color: var(--gradient-start);
}

/* 博客专栏卡片样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    background: linear-gradient(145deg, rgba(233, 236, 239, 0.8), rgba(248, 249, 250, 0.8));
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    height: 100%;
    display: block;
    border: 1px solid rgba(74, 111, 165, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 闪光动画效果 */
.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 6s infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    20%, 100% {
        transform: translateX(100%) rotate(30deg);
    }
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.2);
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.category-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.category-card h3 {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.category-card p {
    color: var(--text-color);
    opacity: 0.9;
    margin: 0;
}

/* 博客专栏卡片 - 浅色模式 */
body.light-mode .category-card {
    background: linear-gradient(145deg, rgba(233, 236, 239, 0.8), rgba(248, 249, 250, 0.8));
    border: 1px solid rgba(74, 111, 165, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .category-card:hover {
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.2);
    border: 1px solid rgba(106, 17, 203, 0.2);
}

body.light-mode .category-card h3 {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.light-mode .category-card p {
    color: var(--light-text-color);
}

/* 修改鼠标跟随效果 - 浅色模式 */
body.light-mode .cursor-dot {
    background-color: var(--gradient-start);
}

body.light-mode .cursor-dot-outline {
    border: 2px solid var(--gradient-start);
}