/* 全局样式 */
:root {
    /* 亮色主题变量 */
    --bg-color: #f9f9f9;
    --text-color: #333;
    --primary-color: #6e5cf7;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --light-bg: #ffffff;
    --border-color: #eaeaea;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.95);
    --dark-bg: #f8f5f0;
    --dark-card: #ffffff;
    --dark-card-hover: #fafafa;
    --light-text: #666666;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --hamburger-color: #333; /* 添加汉堡菜单颜色变量 */
    --mobile-menu-bg: rgba(248, 245, 240, 0.95); /* 添加移动端菜单背景颜色变量 */
}

/* 暗色主题变量 */
[data-theme="dark"] {
    --bg-color: #0f0c1d;
    --text-color: #e0e0e0;
    --primary-color: #7b68ee;
    --secondary-color: #9370db;
    --accent-color: #5e48e8;
    --light-bg: #1a1631;
    --border-color: #2c2452;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --header-bg: rgba(15, 12, 29, 0.95);
    --dark-bg: #14112a;
    --dark-card: #1a1631;
    --dark-card-hover: #241c42;
    --light-text: #b8a9ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --hamburger-color: #e0e0e0; /* 添加暗色主题汉堡菜单颜色 */
    --mobile-menu-bg: rgba(26, 22, 49, 0.95); /* 添加暗色主题移动端菜单背景颜色 */
}

/* 加载动画样式 */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container {
    text-align: center;
    width: 80%;
    max-width: 400px;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(123, 104, 238, 0.2);
    border-top: 4px solid #7b68ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.loader-progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(123, 104, 238, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7b68ee, #5e48e8);
    border-radius: 10px;
    transition: width 0.1s ease;
}

.loader-percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: #7b68ee;
    margin-top: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 平滑过渡 */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    z-index: 1;
}

/* 主题切换按钮样式 */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b68ee, #5e48e8);
    color: white;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(94, 72, 232, 0.3);
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.4s ease;
}

.theme-toggle:hover::before {
    transform: scale(1.2);
}

/* 暗色主题图标样式 */
[data-theme="dark"] .theme-toggle i.fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle i.fa-sun {
    display: inline-block;
}

/* 亮色主题图标样式 */
.theme-toggle i.fa-sun {
    display: none;
}

.theme-toggle i.fa-moon {
    display: inline-block;
}

/* 渐变文字效果 - 类似Zyyo图片 */
.gradient-text {
    /* 添加多种浏览器前缀以确保兼容性 */
    background: linear-gradient(90deg, #7b68ee, #9370db, #5e48e8, #4834d4, #3a1f8f);
    background-size: 400% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* 兼容不支持-webkit-text-fill-color的浏览器 */
    display: inline-block;
    text-shadow: none; /* 移除文本阴影，可能会干扰渐变效果 */
    font-weight: bold;
    position: relative;
    -webkit-animation: gradientShift 5s ease infinite;
    animation: gradientShift 5s ease infinite;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 0 2px rgba(123, 104, 238, 0.7));
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.gradient-text:hover {
    -webkit-transform: translateY(-2px) scale(1.05);
    transform: translateY(-2px) scale(1.05);
    -webkit-filter: drop-shadow(0 0 5px rgba(123, 104, 238, 0.9)) brightness(1.1);
    filter: drop-shadow(0 0 5px rgba(123, 104, 238, 0.9)) brightness(1.1);
}

.gradient-text:active {
    -webkit-transform: translateY(1px) scale(0.98);
    transform: translateY(1px) scale(0.98);
}

.gradient-text::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(231, 76, 60, 0), rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0));
    filter: blur(5px);
    z-index: -1;
    opacity: 0;
    -webkit-animation: glowEffect 5s ease infinite;
    animation: glowEffect 5s ease infinite;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #ff9500, #9b59b6, #3498db, #2ecc71);
    background-size: 400% auto;
    opacity: 0.7;
    border-radius: 2px;
    -webkit-animation: gradientLineShift 5s ease infinite;
    animation: gradientLineShift 5s ease infinite;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@-webkit-keyframes gradientLineShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientLineShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@-webkit-keyframes glowEffect {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.3;
    }
}

@keyframes glowEffect {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.3;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 动态背景特效 */
.bg-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

/* 浮动粒子 */
.floating-particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(110, 92, 247, 0.3), rgba(138, 112, 255, 0.1));
    opacity: 0.4;
    pointer-events: none;
    animation: particleFloat 20s infinite alternate ease-in-out;
    filter: blur(1px);
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translate(100px, -60px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(200px, 40px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(60px, 160px) rotate(270deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(-100px, 60px) rotate(360deg);
        opacity: 0.2;
    }
}

/* 波动特效 */
.ripple-wave {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(110, 92, 247, 0.2);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: rippleEffect 20s infinite cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 0 30px rgba(110, 92, 247, 0.08);
}

.ripple-wave::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        border-width: 2px;
    }
    50% {
        opacity: 0.4;
        border-width: 1px;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
        border-width: 0.2px;
    }
}

/* 几何线条特效 */
.geometric-line {
    position: absolute;
    background: linear-gradient(90deg, 
        rgba(110, 92, 247, 0.01), 
        rgba(110, 92, 247, 0.15), 
        rgba(110, 92, 247, 0.01));
    pointer-events: none;
    transform-origin: left center;
    opacity: 0.3;
    border-radius: 50px;
    animation: lineFloat 25s infinite ease-in-out;
}

.geometric-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(110, 92, 247, 0.3);
    box-shadow: 0 0 10px rgba(110, 92, 247, 0.2);
    pointer-events: none;
    opacity: 0.7;
    animation: dotFloat 20s infinite alternate ease-in-out;
}

.geometric-square {
    position: absolute;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(162, 155, 254, 0.3);
    pointer-events: none;
    opacity: 0.5;
    animation: squareFloat 30s infinite alternate ease-in-out;
}

@keyframes lineFloat {
    0% {
        transform: rotate(0deg) translateY(0) scaleX(1);
        opacity: 0.1;
    }
    25% {
        transform: rotate(5deg) translateY(30px) scaleX(0.8);
        opacity: 0.3;
    }
    50% {
        transform: rotate(-2deg) translateY(-20px) scaleX(1.2);
        opacity: 0.2;
    }
    75% {
        transform: rotate(3deg) translateY(10px) scaleX(0.9);
        opacity: 0.3;
    }
    100% {
        transform: rotate(0deg) translateY(0) scaleX(1);
        opacity: 0.1;
    }
}

@keyframes dotFloat {
    0% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: translate(20px, -20px);
        opacity: 0.7;
    }
    100% {
        transform: translate(-20px, 20px);
        opacity: 0.3;
    }
}

@keyframes squareFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }
    33% {
        transform: translate(30px, -20px) rotate(45deg);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 30px) rotate(90deg);
        opacity: 0.3;
    }
    100% {
        transform: translate(0, 0) rotate(180deg);
        opacity: 0.2;
    }
}

/* 浮动圆形 */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.2), rgba(94, 72, 232, 0.1));
    box-shadow: 0 0 30px rgba(123, 104, 238, 0.2);
    filter: blur(3px);
    z-index: -1;
}

.circle1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -100px;
    animation: floatAnimation 15s infinite alternate ease-in-out;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.15), rgba(94, 72, 232, 0.05));
}

.circle2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 5%;
    animation: floatAnimation 18s infinite alternate-reverse ease-in-out;
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.1), rgba(123, 104, 238, 0.05));
}

.circle3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 15%;
    animation: floatAnimation 20s infinite alternate ease-in-out;
    background: linear-gradient(135deg, rgba(94, 72, 232, 0.1), rgba(72, 52, 212, 0.05));
}

.circle4 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: 10%;
    animation: floatAnimation 25s infinite alternate-reverse ease-in-out;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.08), rgba(147, 112, 219, 0.04));
}

/* 波浪效果 */
.wave {
    position: absolute;
    width: 150%;
    height: 150px;
    background: linear-gradient(to bottom, 
                               rgba(110, 92, 247, 0.05) 0%,
                               rgba(248, 245, 240, 0) 100%);
    opacity: 0.5;
    bottom: 0;
    animation: waveAnimation 15s infinite linear;
}

.wave2 {
    animation-delay: 5s;
    animation-duration: 17s;
    opacity: 0.3;
    height: 180px;
}

.wave3 {
    animation-delay: 10s;
    animation-duration: 20s;
    opacity: 0.2;
    height: 200px;
}

/* 光斑效果 */
.light-spot {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, 
                               rgba(255, 255, 255, 0.7) 0%, 
                               rgba(248, 245, 240, 0) 70%);
    opacity: 0.3;
    animation: pulseAnimation 8s infinite alternate;
    filter: blur(5px);
}

.spot1 {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
    width: 300px;
    height: 300px;
}

.spot2 {
    bottom: 25%;
    left: 5%;
    animation-delay: 4s;
    width: 280px;
    height: 280px;
}

/* 添加额外的光斑 */
.spot3 {
    top: 60%;
    right: 30%;
    animation-delay: 2s;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, 
                               rgba(162, 155, 254, 0.6) 0%, 
                               rgba(248, 245, 240, 0) 70%);
}

/* 动画关键帧 */
@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(60px, 60px) rotate(5deg);
    }
    100% {
        transform: translate(-60px, 30px) rotate(-5deg);
    }
}

@keyframes waveAnimation {
    0% {
        transform: translateX(0) translateY(0) scaleY(1);
    }
    50% {
        transform: translateX(-35%) translateY(20px) scaleY(0.8);
    }
    100% {
        transform: translateX(0) translateY(0) scaleY(1);
    }
}

@keyframes pulseAnimation {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(110, 92, 247, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 60%, rgba(138, 112, 255, 0.05) 0%, transparent 30%);
    z-index: -1;
    pointer-events: none;
}

/* 添加科技感网格背景 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.container, header, .quick-nav, section {
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
}

/* 单独设置footer的背景色，避免被上面的规则覆盖 */
footer {
    background-color: var(--dark-card) !important;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    border-radius: 25px 25px 0 0 !important;
    overflow: hidden;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.copyright {
    margin-bottom: 15px;
    opacity: 0.8;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(110, 92, 247, 0.1);
    color: var(--primary-color);
    margin: 0 5px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b68ee, #5e48e8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
    box-shadow: 0 5px 15px rgba(123, 104, 238, 0.3);
    z-index: 999;
    border: 1px solid rgba(147, 112, 219, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(123, 104, 238, 0.5);
    background: linear-gradient(135deg, #9370db, #7b68ee);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3.2rem;
        transform: scale(1.05);
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
        transform: scale(1.05);
        transform-origin: center center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--header-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        justify-content: center;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-text h1 {
        font-size: 2.7rem;
        transform: scale(1.03);
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(110, 92, 247, 0.2);
    }
    
    .portfolio-grid, .life-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* 随笔随记区样式 */
.notes {
    background-color: var(--dark-bg);
    border-radius: 20px;
    padding: 30px 0;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1rem;
    margin-top: 5px;
    font-style: italic;
    padding: 0 20px;
}

.notes-content {
    margin-top: 30px;
    border-radius: 20px;
    overflow: hidden;
}

.notes-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
}

/* 日历样式 */
.calendar-container {
    padding: 20px 25px 30px;
    border-radius: 20px;
    background-color: var(--light-bg);
    max-width: 380px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.calendar-nav:hover {
    background-color: rgba(110, 92, 247, 0.1);
    color: var(--primary-color);
}

.current-month {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-color);
}

.today-btn {
    position: relative;
    color: #6e5cf7;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    font-weight: 500;
}

.calendar-body {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 5px;
    font-weight: 500;
    width: 100%;
}

.calendar-weekdays div {
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 5px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 0;
    width: 100%;
}

.calendar-days div {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    margin: 2px auto;
}

.calendar-days div:hover {
    background-color: rgba(110, 92, 247, 0.1);
    color: var(--primary-color);
}

.calendar-days div.active {
    background-color: #6e5cf7;
    color: white;
}

.calendar-days div.other-month {
    color: var(--border-color);
}

/* 笔记详情样式 */
.note-detail {
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.note-title {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

.note-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.note-date {
    color: var(--light-text);
    font-size: 0.9rem;
}

.note-star {
    color: #ffc107;
    font-size: 1.2rem;
}

.note-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px 0;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.note-content {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

.note-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.note-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.note-signature {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.signature-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* 随笔分类区域 */
.notes-categories {
    margin-top: 50px;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

.category-item {
    margin-bottom: 30px;
}

.category-item h4 {
    font-size: 1.8rem;
    color: #aaa;
    font-weight: 300;
    margin-bottom: 10px;
}

.category-item p {
    font-size: 1.1rem;
    color: var(--light-text);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .notes-layout {
        grid-template-columns: 1fr;
    }
    
    .calendar-container {
        order: 1;
    }
    
    .note-detail {
        order: 0;
    }
}

@media (max-width: 576px) {
    .note-title {
        font-size: 1.5rem;
    }
    
    .category-title {
        font-size: 1.7rem;
    }
    
    .category-item h4 {
        font-size: 1.5rem;
    }
    
    .today-btn {
        font-size: 1rem;
        margin: 0 0 10px 0;
    }
    
    .footer-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .footer-subtitle {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }
    
    .footer-text {
        font-size: 1rem;
    }
}

/* 日历底部样式 */
.calendar-footer {
    margin-top: 30px;
    text-align: left;
    padding: 0 10px;
}

.footer-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-subtitle {
    font-size: 1.8rem;
    color: #aaa;
    font-weight: 300;
    margin-bottom: 8px;
}

.footer-text {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 0;
}

/* 俄罗斯方块游戏按钮 */
.tetris-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b6b, #f53b57);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 25px;
    box-shadow: 0 5px 15px rgba(245, 59, 87, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: pulse-btn 2s infinite;
}

.tetris-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f53b57, #ff6b6b);
    transition: all 0.4s ease;
    z-index: -1;
}

.tetris-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 59, 87, 0.5);
}

.tetris-btn:hover:before {
    left: 0;
}

.tetris-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 10px rgba(245, 59, 87, 0.4);
}

.tetris-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .tetris-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .hero-image {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 5px 15px rgba(245, 59, 87, 0.4);
    }
    50% {
        box-shadow: 0 5px 25px rgba(245, 59, 87, 0.7);
    }
    100% {
        box-shadow: 0 5px 15px rgba(245, 59, 87, 0.4);
    }
}

/* 快速导航按钮 - 左下角固定定位 */
.quick-nav {
    position: fixed !important;
    left: 20px !important;
    bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 99999 !important;
}

.quick-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.9), rgba(94, 72, 232, 0.9));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(123, 104, 238, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-size: 1.2rem;
    position: relative;
    z-index: 99999;
    border: 1px solid rgba(147, 112, 219, 0.3);
}

.quick-nav-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(123, 104, 238, 0.5);
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.9), rgba(123, 104, 238, 0.9));
}

.quick-nav-btn:active {
    transform: translateY(1px) scale(0.95);
    box-shadow: 0 2px 5px rgba(123, 104, 238, 0.4);
}

/* 悬停时显示模块名称 */
.quick-nav-btn::after {
    content: attr(title) !important;
    position: absolute !important;
    right: -110px !important;
    top: 50% !important;
    transform: translateY(-50%) scale(0.8) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    z-index: 99999 !important;
}

.quick-nav-btn:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) scale(1) !important;
    right: -120px !important;
}

/* 视差效果容器 */
.parallax-container {
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
}

/* 视差元素基础样式 */
.parallax {
    will-change: transform;
    transition: transform 0.1s linear;
    pointer-events: none;
}

/* 粒子画布样式 */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -5;
    opacity: 0.7;
}

/* 确保内容在视差元素和粒子上方 */
body {
    position: relative;
    z-index: 1;
    background-color: var(--bg-color);
}

.container, header, .quick-nav, section {
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .parallax-container {
        opacity: 0.5;
    }
    
    #particle-canvas {
        opacity: 0.5;
    }
}

/* 个人头像样式 */
.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(110, 92, 247, 0.2);
    position: relative;
    background-color: #ffffff;
    margin: 0 auto;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1rem;
    margin-top: 5px;
    font-style: italic;
    padding: 0 20px;
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--hamburger-color); /* 使用变量替代固定颜色 */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
}

/* 为部分区域添加科技感光效 */
section::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 92, 247, 0.1) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.7;
}

#about::before {
    top: 10%;
    left: -100px;
}

#portfolio::before {
    bottom: 20%;
    right: -100px;
}

/* 通用卡片样式 */
.card {
    background-color: var(--dark-card);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(123, 104, 238, 0.1);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.05), rgba(94, 72, 232, 0.05));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    transform: scale(0.9);
    border-radius: 15px;
}

.card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(123, 104, 238, 0.2);
    border-color: rgba(123, 104, 238, 0.3);
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.underline {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 5px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background: linear-gradient(135deg, #7b68ee, #5e48e8);
    color: white;
    border: 1px solid transparent;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.4);
}

.secondary-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(123, 104, 238, 0.5);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.1);
}

.secondary-btn:hover {
    background: rgba(123, 104, 238, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 104, 238, 0.2);
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* 导航链接样式 */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.logo {
    margin-right: auto;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(110, 92, 247, 0.1);
}

/* 首屏区域调整，为导航栏留出空间 */
.hero {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    padding-right: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 关于我区域样式 */
.about-content {
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    margin: 5px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.1), rgba(94, 72, 232, 0.2));
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 104, 238, 0.3);
    box-shadow: 0 3px 10px rgba(123, 104, 238, 0.1);
}

.tag:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(123, 104, 238, 0.2), rgba(94, 72, 232, 0.3));
    box-shadow: 0 5px 15px rgba(123, 104, 238, 0.2);
}

/* 动态展示区样式 */
.slideshow-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--border-color);
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: var(--transition);
    border-radius: 50%;
    user-select: none;
    background: rgba(110, 92, 247, 0.6);
    text-decoration: none;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background: rgba(110, 92, 247, 0.8);
}

.dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.active, .dot:hover {
    background-color: var(--primary-color);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* 个人档案区样式 */
.profile-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.profile-text, .profile-skills {
    flex: 1;
    min-width: 300px;
}

.profile-text h3, .profile-skills h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 生活记录区样式 */
.life-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.life-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.life-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.life-info {
    padding: 20px;
    background: var(--dark-card);
    transition: var(--transition);
}

.life-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.life-info p {
    color: var(--light-text);
    font-size: 0.9rem;
}

.life-info p:last-child {
    margin-top: 10px;
    font-size: 0.95rem;
}

.life-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.life-item:hover img {
    transform: scale(1.05);
}

/* 作品展示区样式 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 25px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
    border-top: 2px solid rgba(110, 92, 247, 0.3);
}

.portfolio-item:hover .portfolio-info {
    bottom: 0;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.portfolio-info p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 18px;
    color: var(--text-color);
    line-height: 1.6;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.portfolio-link {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(110, 92, 247, 0.15);
    color: var(--primary-color);
    border-radius: 50%;
    line-height: 45px;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(110, 92, 247, 0.2);
}

.portfolio-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 92, 247, 0.4);
}

/* 暗色主题下的作品集信息样式 */
[data-theme="dark"] .portfolio-info {
    background: rgba(26, 22, 49, 0.98);
    border-top: 2px solid rgba(123, 104, 238, 0.4);
}

[data-theme="dark"] .portfolio-info h3 {
    color: #e0e0e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .portfolio-info p {
    color: #b8a9ff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* 联系方式区域样式 */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(110, 92, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
}

/* 自定义哔哩哔哩图标 */
.fab.fa-bilibili:before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath fill='%2300a1d6' d='M450,350c0,27.6-22.4,50-50,50H100c-27.6,0-50-22.4-50-50V175c0-27.6,22.4-50,50-50h300c27.6,0,50,22.4,50,50V350z'/%3E%3Crect fill='%23FFFFFF' x='100' y='175' width='300' height='175'/%3E%3Cpath fill='%2300a1d6' d='M100,125l-50-50l50-25V125z'/%3E%3Cpath fill='%2300a1d6' d='M400,125l50-50l-50-25V125z'/%3E%3Crect fill='%2300a1d6' x='150' y='225' width='50' height='25'/%3E%3Crect fill='%2300a1d6' x='300' y='225' width='50' height='25'/%3E%3Cpath fill='%2300a1d6' d='M225,300c0,0,25,25,50,0v-15c0,0-25,15-50,0V300z'/%3E%3Crect fill='%2300a1d6' x='125' y='400' width='50' height='20'/%3E%3Crect fill='%2300a1d6' x='325' y='400' width='50' height='20'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 为哔哩哔哩图标添加特殊样式 */
.social-links a.bilibili-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a.bilibili-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.social-links a.bilibili-link i:before {
    width: 24px;
    height: 24px;
}

/* 当鼠标悬停在哔哩哔哩链接上时改变图标颜色 */
.social-links a.bilibili-link:hover i:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath fill='%23FFFFFF' d='M450,350c0,27.6-22.4,50-50,50H100c-27.6,0-50-22.4-50-50V175c0-27.6,22.4-50,50-50h300c27.6,0,50,22.4,50,50V350z'/%3E%3Crect fill='%236e5cf7' x='100' y='175' width='300' height='175'/%3E%3Cpath fill='%23FFFFFF' d='M100,125l-50-50l50-25V125z'/%3E%3Cpath fill='%23FFFFFF' d='M400,125l50-50l-50-25V125z'/%3E%3Crect fill='%23FFFFFF' x='150' y='225' width='50' height='25'/%3E%3Crect fill='%23FFFFFF' x='300' y='225' width='50' height='25'/%3E%3Cpath fill='%23FFFFFF' d='M225,300c0,0,25,25,50,0v-15c0,0-25,15-50,0V300z'/%3E%3Crect fill='%23FFFFFF' x='125' y='400' width='50' height='20'/%3E%3Crect fill='%23FFFFFF' x='325' y='400' width='50' height='20'/%3E%3C/svg%3E");
}

/* 调整联系我部分的哔哩哔哩图标 */
.contact-item .fab.fa-bilibili {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.contact-item .fab.fa-bilibili:before {
    width: 24px;
    height: 24px;
    margin-right: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚样式 */
footer {
    background-color: var(--dark-card) !important;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    border-radius: 25px 25px 0 0 !important;
    overflow: hidden;
    position: relative;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-color);
    letter-spacing: 1px;
    transform: scale(1.1);
    transform-origin: left center;
}

@-webkit-keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(231, 76, 60, 0), rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0));
    filter: blur(5px);
    z-index: -1;
    opacity: 0;
    -webkit-animation: glowEffect 5s ease infinite;
    animation: glowEffect 5s ease infinite;
}

 / *   �m݄+}r��;N��OS�[b  * / 
 
 