/* 字体定义 */
@font-face {
    font-family: '文鼎圆立体';
    src: url('../assets/fonts/文鼎圆立体简.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: '方正剪纸简体';
    src: url('../assets/fonts/方正剪纸简体.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: '方正黑体';
    src: url('../assets/fonts/方正黑体 简体中文.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 基础重置和全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: '方正黑体', Arial, sans-serif;
    font-weight: bold;
    background: url('../assets/images/hero-bg.png') center/cover fixed;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* 添加动态粒子效果 */
body::after {
    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, 200, 255, 0.3) 0%, transparent 50%);
    z-index: -1;
    animation: particleMove 20s ease-in-out infinite;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo容器样式 */
.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: relative;
}

/* Logo样式 */
.logo {
    text-align: left;
}

.logo a {
    font-family: '文鼎圆立体', serif;
    font-size: 50px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo a::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo a:hover::before {
    opacity: 1;
}

.logo a:hover {
    transform: scale(1.05) translateY(-2px);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6), 0 0 50px rgba(255, 255, 255, 0.4);
    animation: logoPulse 1.5s ease-in-out infinite;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo img:hover {
    transform: rotate(360deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
    animation: logoGlow 2s ease-in-out infinite;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* 导航样式 */
header {
    display: flex;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 30px;
    justify-content: center;
    width: 100%;
}

.main-nav {
    margin-top: -10px;
    margin-left: 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
    float: left;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #ffffff;
    text-shadow: #AEAEAE 1px 1px 1px;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}



/* 活动导航项 */
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.main-nav a.active:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Hero区域样式 */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0;
    text-align: center;
    position: relative;
    min-height: 70vh;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 56px;
    font-family: '文鼎圆立体', serif;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    position: relative;
}

/* 打字机效果样式 */
.hero-title.typewriter {
    display: inline-block;
}

.typewriter-cursor {
    display: inline-block;
    color: #fff;
    font-weight: bold;
    margin-left: 2px;
    animation: none;
}

.typewriter-cursor.blink {
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 1px;
    overflow: hidden;
    position: relative;
}

/* 为hero-subtitle添加渐入动画 */
.hero-subtitle {
    animation: fadeInScale 1.5s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-description {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.hero-description p {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-description p:nth-child(1) {
    animation-delay: 0.5s;
}

.hero-description p:nth-child(2) {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 诗词/名言区域样式 */
.quote-container {
    margin: 30px 0;
    padding: 20px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 8px 8px 0;
    max-width: 80%;
    opacity: 0;
    animation: fadeInQuote 1.5s ease-out 1.5s forwards;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quote-container:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quote-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.quote-container:hover::before {
    transform: translateX(100%);
}

.quote-content {
    position: relative;
}

.quote-content p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin: 0;
    position: relative;
    padding-left: 25px;
    transition: color 0.3s ease;
}

.quote-container:hover .quote-content p {
    color: rgba(255, 255, 255, 1);
}

.quote-content p::before {
    content: "";
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.3);
    font-family: serif;
    transition: color 0.3s ease;
}

.quote-container:hover .quote-content p::before {
    color: rgba(255, 255, 255, 0.6);
}

.quote-content p::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -20px;
    font-size: 36px;
    color: rgba(255, 255, 255, 0.3);
    font-family: serif;
    transition: color 0.3s ease;
}

.quote-container:hover .quote-content p::after {
    color: rgba(255, 255, 255, 0.6);
}

@keyframes fadeInQuote {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 添加刷新按钮样式 */
.quote-refresh {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.quote-container:hover .quote-refresh {
    opacity: 1;
}

.quote-refresh:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

.quote-refresh::before {
    content: "↻";
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* 添加加载动画 */
.quote-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: rgba(255, 255, 255, 0.8);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    min-width: 160px;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    font-family: '文鼎圆立体', serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover .stat-number::before {
    left: 100%;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 最新文章预览样式 */
.featured-articles {
    padding: 80px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 36px;
    font-family: '文鼎圆立体', serif;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.title-icon {
    font-size: 40px;
    animation: iconPulse 2s ease-in-out infinite;
}

/* 修改文章预览布局为不等分的三列布局 */
.articles-preview {
    display: grid;
    gap: 20px;
    margin-bottom: 60px;
    /* 不等分三列布局 - 第一列占比更大 */
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
    width: 100%;
    max-width: 95%;
    margin: 0 auto 60px auto;
}

/* 所有卡片基本样式 */
.article-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.8) 100%);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    /* 默认静态状态 */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 第一个卡片的特殊样式 */
.article-card:first-child {
    min-height: 400px;
}

/* 其他卡片的样式 */
.article-card:not(:first-child) {
    min-height: 350px;
}

.article-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.6s ease;
}

/* 只保留光效滑动效果，移除其他悬停效果 */
.article-card:hover::before {
    left: 100%;
}
/* 修改图片高度以适应不同大小的卡片 */
.article-image {
    position: relative;
    overflow: hidden;
}

/* 第一个卡片图片更高 */
.article-card:first-child .article-image {
    height: 240px;
}

/* 非第一个卡片图片高度 */
.article-card:not(:first-child) .article-image {
    height: 180px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 默认静态状态 */
    transition: none;
    transform: none;
}

/* 只有悬停时才有图片缩放效果 */
.article-card:hover .article-image img {
    transition: transform 0.5s ease;
    transform: scale(1.1);
}

/* 针对第一个卡片的文字大小调整 */
.article-card:first-child .article-info h3 {
    font-size: 24px;
}

.article-card:first-child .article-excerpt {
    font-size: 16px;
    -webkit-line-clamp: 4;
}

/* 针对非第一个卡片的文字大小调整 */
.article-card:not(:first-child) .article-info h3 {
    font-size: 20px;
}

.article-card:not(:first-child) .article-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.article-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.article-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-bottom-content {
    margin-top: auto;
}

.article-info h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.article-card.featured .article-info h3 {
    font-size: 24px;
}

.article-info h3 a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.article-info h3 a:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.article-excerpt {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card.featured .article-excerpt {
    font-size: 16px;
    -webkit-line-clamp: 4;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 关于我预览样式 */
.about-preview {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.highlight {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.about-highlights {
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.highlight-icon {
    font-size: 24px;
}

.about-image {
    position: relative;
    text-align: center;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.image-decoration {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

/* 技能展示样式 */
.skills-preview {
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-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.6s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: iconPulse 2.5s ease-in-out infinite;
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.skill-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.skill-tech {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.skill-tech span {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* 查看更多按钮 */
.view-more {
    text-align: center;
    margin-top: 40px;
}

.view-more .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-more .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.view-more .btn span:last-child {
    transition: transform 0.3s ease;
}

.view-more .btn:hover span:last-child {
    transform: translateX(5px);
}
/* 清理重复的样式 */

.article-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.8) 100%);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    /* 默认静态状态 */
    transition: none;
    transform: none;
}

.article-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.6s ease;
}

/* 只有悬停时才有动态效果 */
.article-card:hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* 发光边框效果 */
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 15px 35px rgba(0, 0, 0, 0.4);
    /* 背景渐变增强 */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(0, 0, 0, 0.7) 100%);
    /* 微弱透明度变化 */
    backdrop-filter: blur(20px);
}

.article-card:hover::before {
    left: 100%;
}

.article-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-info {
    padding: 20px;
}

.article-info h3 {
    margin-bottom: 15px;
}

.article-info h3 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: #000000 1px 1px 1px;
}

.article-info h3 a:hover {
    color: #AEAEAE;
}

.article-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.article-stats {
    display: flex;
    justify-content: space-between;
    color: #ccc;
    font-size: 0.9rem;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-more {
    text-align: center;
}

/* 关于我预览样式 */
.about-preview {
    padding: 60px 0;
    margin-bottom: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 36px;
    font-family: '文鼎圆立体', serif;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: #000000 2px 2px 2px;
}

.about-text p {
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: #000000 1px 1px 1px;
    font-size: 16px;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 页脚样式 */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 40px 0 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* 页脚背景动画效果 */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(255, 255, 255, 0.05) 75%, 
        rgba(255, 255, 255, 0.02) 100%);
    background-size: 400% 400%;
    animation: footerBackgroundShift 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* 快速链接和分类区域特殊样式 */
.footer-section.quick-links,
.footer-section.categories,
.footer-section.links {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 15px;
    padding: 20px;
    margin: -20px;
}

/* 悬停时的背景效果 */
.footer-section.quick-links:hover,
.footer-section.categories:hover,
.footer-section.links:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* 标题动画效果 */
.footer-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 20px;
    text-shadow: #000000 1px 1px 1px;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

/* 标题悬停效果 */
.footer-section.quick-links:hover h3,
.footer-section.categories:hover h3,
.footer-section.links:hover h3 {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
    transform: translateX(5px);
}

/* 标题装饰线动画 */
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5), transparent);
    transition: width 0.4s ease;
    border-radius: 1px;
}

.footer-section.quick-links:hover h3::after,
.footer-section.categories:hover h3::after,
.footer-section.links:hover h3::after {
    width: 100%;
    animation: titleUnderlineGlow 1.5s ease-in-out infinite alternate;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

/* 链接项悬停效果 */
.footer-section ul li {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 5px 10px;
    margin-left: -10px;
    margin-right: -10px;
}

.footer-section ul li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.footer-section a {
    color: #AEAEAE;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: block;
    padding: 5px 0;
}

/* 链接悬停效果 */
.footer-section.quick-links a:hover,
.footer-section.categories a:hover,
.footer-section.links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transform: translateX(5px) scale(1.05);
}

/* 链接箭头动画 */
.footer-section a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #ffffff;
    font-weight: bold;
}

.footer-section.quick-links a:hover::before,
.footer-section.categories a:hover::before,
.footer-section.links a:hover::before {
    left: -15px;
    opacity: 1;
    animation: linkArrowPulse 1s ease-in-out infinite;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    animation: socialLinksFadeIn 0.8s ease-out;
}

.social-link {
    display: flex !important;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center !important;
    line-height: 40px !important;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.social-link:hover {
    background: #ffffff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.social-link:hover::before {
    left: 100%;
}

.social-link img {
    width: 24px !important;
    height: 24px !important;
    transition: all 0.3s ease;
    filter: brightness(1);
    object-fit: contain;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
}

.social-link:hover img {
    filter: brightness(0.8);
    transform: scale(1.1);
}

/* 二维码容器样式 */
.qr-container {
    position: relative;
    cursor: pointer;
    /* 确保二维码容器有足够的空间显示二维码 */
    overflow: visible;
}

/* 二维码样式 */
.qr-code {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 4px 20px rgba(255, 255, 255, 0.3) inset,
        0 0 0 1px rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    display: none;
    z-index: 9999;
    text-align: center;
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* 确保二维码容器有足够空间显示 */
    min-width: 180px;
    min-height: 190px;
    pointer-events: auto;
    /* 美化效果 */
    overflow: hidden;
}

/* 二维码容器发光效果 */
.qr-code::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: qrGlow 3s linear infinite;
    pointer-events: none;
}

/* 二维码箭头指示器 */
.qr-code::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.98);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
    animation: arrowPulse 2s ease-in-out infinite;
}

/* 鼠标悬浮时显示二维码 */
.social-link.qr-container:hover .qr-code {
    display: block !important;
    opacity: 1 !important;
    transform: translateX(-50%) scale(1) !important;
    animation: qrBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    visibility: visible !important;
    /* 悬停时增强效果 */
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.3),
        0 8px 30px rgba(255, 255, 255, 0.4) inset,
        0 0 0 2px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(200%);
}

/* 兼容性选择器，确保旧版本也能正常工作 */
.qr-container:hover .qr-code {
    display: block !important;
    opacity: 1 !important;
    transform: translateX(-50%) scale(1) !important;
    animation: qrBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    visibility: visible !important;
    /* 悬停时增强效果 */
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.3),
        0 8px 30px rgba(255, 255, 255, 0.4) inset,
        0 0 0 2px rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(200%);
}

/* 二维码图片样式 */
.qr-code img {
    width: 140px;
    height: 140px;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    animation: qrImageFloat 3s ease-in-out infinite;
}

.qr-code img:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 1);
}

/* 二维码文字样式 */
.qr-code span {
    color: #2d3748;
    font-size: 14px;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

/* 强制修复GitHub图标居中问题 */
.footer-section .social-links .social-link img {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}

/* 社交链接淡入动画 */
@keyframes socialLinksFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 二维码弹跳动画 */
@keyframes qrBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) rotate(-5deg);
    }
    30% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1) rotate(2deg);
    }
    60% {
        transform: translateX(-50%) scale(0.95) rotate(-1deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1) rotate(0deg);
    }
}

/* 二维码发光动画 */
@keyframes qrGlow {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

/* 箭头脉冲动画 */
@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.8;
    }
}

/* 二维码图片浮动动画 */
@keyframes qrImageFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* 文字闪烁动画 */
@keyframes textShimmer {
    0%, 100% {
        background-position: -200% center;
    }
    50% {
        background-position: 200% center;
    }
}

/* 页脚背景渐变动画 */
@keyframes footerBackgroundShift {
    0%, 100% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

/* 标题下划线发光动画 */
@keyframes titleUnderlineGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.4);
    }
}

/* 链接箭头脉冲动画 */
@keyframes linkArrowPulse {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(3px) scale(1.1);
        opacity: 0.8;
    }
}

/* 淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #AEAEAE;
    font-size: 14px;
}

/* 动画效果 */
/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes particleMove {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 0.6;
    }
}

@keyframes spin {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

@keyframes morphBackground {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* 触摸设备支持 */
.touch-device .article-card:hover,
.touch-device .skill-card:hover,
.touch-device .blog-article-card:hover {
    transform: none;
}

.touch-device .article-card:active,
.touch-device .skill-card:active,
.touch-device .blog-article-card:active {
    transform: scale(0.98);
}

/* 性能优化样式 */
.performance-warning {
    animation: fadeInOut 0.5s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(100%); }
    100% { opacity: 1; transform: translateX(0); }
}

/* 图片加载优化 */
img {
    transition: filter 0.3s ease;
}

img[src*="blob:"] {
    filter: blur(1px);
}

/* 无障碍访问支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .article-card,
    .skill-card,
    .blog-article-card {
        border: 2px solid #fff;
    }
    
    .tag {
        border: 1px solid #fff;
    }
}

/* 暗色模式优化 */
@media (prefers-color-scheme: dark) {
    body::before {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .articles-preview {
        grid-template-columns: 1fr 1fr;
    }
    
    .article-card:first-child {
        grid-column: span 2;
    }
    
    .article-card {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        min-width: 200px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .articles-preview,
    .articles-preview.one-article,
    .articles-preview.two-articles,
    .articles-preview.three-articles {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 95% !important;
        margin: 0 auto 60px auto !important;
        gap: 15px !important;
    }
    
    .articles-preview.three-articles .article-card:first-child {
        grid-row: span 1 !important;
        grid-column: span 1 !important;
    }
    
    .articles-preview.three-articles .article-card:nth-child(3) {
        grid-column: span 1 !important;
    }
    
    .article-card {
        min-height: 300px !important;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-image img {
        width: 250px;
        height: 250px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-card {
        padding: 30px 20px;
    }
    
    .main-nav {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .main-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        text-align: center;
        width: 100%;
        justify-content: center;
        display: flex;
    }
    
    .main-nav > ul > li {
        float: none;
        width: auto;
        position: relative;
    }
    
    .main-nav a {
        padding: 15px 20px;
        display: block;
        width: auto;
        font-size: 16px;
        min-width: 100px;
        text-align: center;
    }
    
    .sub-nav {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: none !important;
        transform: none;
        background-color: rgba(0, 0, 0, 0.95);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        border-radius: 5px;
        margin-top: 5px;
        min-width: 100px;
        /* 确保子菜单可点击区域完整 */
        overflow: visible;
        padding: 5px 0;
        /* 优化触摸设备上的点击体验 */
        -webkit-tap-highlight-color: transparent;
    }
    
    .main-nav > ul > li.expanded .sub-nav {
        display: block !important;
        /* 添加淡入动画 */
        animation: fadeIn 0.2s ease-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .sub-nav a {
        padding: 12px 20px;
        font-size: 14px;
        text-align: center;
        display: block;
        width: 100%;
        box-sizing: border-box;
        /* 增加可点击区域 */
        line-height: 1.5;
        /* 优化触摸设备上的点击体验 */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        /* 确保链接是可点击的 */
        pointer-events: auto;
        /* 确保文本不会被选中 */
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* 优化子菜单链接的悬停和激活状态 */
    .sub-nav a:hover,
    .sub-nav a:active {
        background-color: rgba(255, 255, 255, 0.1);
        outline: none;
    }
    
    /* 确保父导航项在移动设备上有足够的点击区域 */
    .main-nav > ul > li > a {
        /* 优化触摸设备上的点击体验 */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        /* 确保文本不会被选中 */
        user-select: none;
        -webkit-user-select: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        text-align: center;
        gap: 30px;
    }
    
    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* 移动端优化快速链接和分类区域 */
    .footer-section.quick-links,
    .footer-section.categories,
    .footer-section.links {
        padding: 15px;
        margin: -15px;
    }
    
    .footer-section.quick-links:hover,
    .footer-section.categories:hover,
    .footer-section.links:hover {
        transform: translateY(-3px) scale(1.01);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-section ul li {
        margin: 0;
        padding: 8px 12px;
    }
    
    /* 移动端链接优化 */
    .footer-section.quick-links a,
    .footer-section.categories a,
    .footer-section.links a {
        padding: 8px 0;
        font-size: 14px;
    }
    
    .footer-section.quick-links a::before,
    .footer-section.categories a::before,
    .footer-section.links a::before {
        left: -15px;
        font-size: 12px;
    }
    
    .footer-section.quick-links a:hover::before,
    .footer-section.categories a:hover::before,
    .footer-section.links a:hover::before {
        left: -10px;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 20px;
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }
    
    .title-icon {
        font-size: 32px;
    }
    
    .about-image img {
        width: 200px;
        height: 200px;
    }
    
    .skill-card {
        padding: 25px 15px;
    }
    
    .container {
        padding: 0 15px;
    }
} 

/* 文章卡片布局稳定性优化 */
.articles-preview .article-card:empty {
    /* 隐藏空的文章卡片 */
    display: none;
}

.articles-preview .article-card {
    /* 确保所有卡片的一致性 */
    width: 100%;
    box-sizing: border-box;
}

/* 确保文章卡片在所有状态下都保持一致的布局 */
.article-card .article-image {
    flex-shrink: 0;
}

.article-card .article-info {
    flex: 1;
    min-height: 0;
}

/* 优化文章标题的显示 */
.article-info h3 {
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 确保文章卡片在网格中正确对齐 */
.articles-preview {
    align-items: stretch;
    justify-content: center;
}

/* 移除所有可能的默认动画 */
.article-card,
.article-card *,
.article-card::before,
.article-card::after {
    animation: none !important;
}

.article-card:not(:hover) {
    transform: none !important;
    transition: none !important;
}

/* 确保图片在非悬停状态下也保持静态 */
.article-card:not(:hover) .article-image img {
    transform: none !important;
    transition: none !important;
}



/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
}

/* Firefox滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.2);
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.back-to-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: fadeInUp 0.5s ease-out;
}

.back-to-top:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.back-to-top:hover::before {
    animation: shine 0.6s ease-in-out;
}

.back-to-top:hover::after {
    opacity: 1;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    transition: all 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* 长页面优化 */
.back-to-top.long-page {
    right: 30px;
    top: 70%;
}

/* 移动设备适配 */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        right: 20px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* 添加动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-40%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Logo动画效果 */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1.05) translateY(-2px);
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6), 0 0 50px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.08) translateY(-4px);
        text-shadow: 0 0 40px rgba(255, 255, 255, 1), 0 0 60px rgba(255, 255, 255, 0.8), 0 0 70px rgba(255, 255, 255, 0.6);
    }
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.6), 0 0 80px rgba(255, 255, 255, 0.4);
    }
}


