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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding-top: 0;
}

/* 移除顶栏相关样式 */
body {
    padding-top: 0; /* 移除为顶栏预留的空间 */
}

/* 调整主要内容区域样式 */
.main-content {
    margin-top: 0; /* 移除顶栏预留的边距 */
    min-height: calc(100vh - 300px); /* 只减去页脚高度 */
}

/* Logo展示区样式 */
.hero-section {
    background: #ffffff;
    color: #333;
    text-align: center;
    padding: 4rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-logo {
    height: 100px;
    border-radius: 10px;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.hero-content h2,
.hero-content p {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.hero-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero-content p {
    color: #666;
}

/* 文章列表样式 */
.articles-section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.article-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05),
                0 6px 6px rgba(0,0,0,0.02),
                0 0 1px rgba(0,0,0,0.1);
    display: flex;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    transform-style: preserve-3d;
    perspective: 1000px;
    height: auto;
    min-height: 200px;
}

.article-card:hover {
    transform: translateY(-5px) rotateX(2deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08),
                0 10px 10px rgba(0,0,0,0.04);
}

.article-image {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    transform: translateZ(20px);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,1) 0%,
        rgba(250,250,250,1) 100%
    );
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateZ(12px);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-meta i {
    color: #6e8efb;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    transform: translateZ(15px);
}

.article-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(110,142,251,0.1) 0%,
        rgba(110,142,251,0.2) 100%
    );
    transition: all 0.3s ease;
    transform: translateZ(15px);
    color: #6e8efb;
    font-weight: 500;
}

.read-more:hover::after {
    transform: translateX(0);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
    color: white;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .current-page {
    background: #6e8efb;
    color: white;
    border-color: #6e8efb;
}

.pagination a:hover {
    background: #6e8efb;
    color: white;
    transform: translateY(-2px);
}

/* 更新页脚样式 */
.footer {
    background: #ffffff;
    color: #333;
    padding: 3rem 0 1rem;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.footer-content {
    max-width: 800px; /* 收窄内容区域 */
    margin: 0 auto;
    padding: 0 1rem;
    display: flex; /* 改用flex布局 */
    flex-direction: column; /* 改为纵向排列 */
    align-items: center;
    gap: 2rem;
}

.footer-section {
    width: 100%;
    max-width: 400px; /* 限制每个区块的最大宽度 */
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #2c3e50;
}

.social-links {
    display: flex;
    justify-content: center; /* 社交图标居中 */
    gap: 1.5rem;
    margin: 1rem 0;
}

.social-links a {
    color: #2c3e50;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: #6e8efb;
}

.footer-section ul {
    list-style: none;
    display: flex; /* 链接横向排列 */
    flex-wrap: wrap; /* 允许换行 */
    justify-content: center;
    gap: 1.5rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.footer-section a:hover {
    color: #6e8efb;
}

/* 移除原有的箭头效果，改用下划线效果 */
.footer-section a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #6e8efb;
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.footer-bottom p {
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
    }

    .article-card {
        flex-direction: column;
    }

    .article-image {
        flex: 0 0 200px;
        transform: translateZ(10px);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 1.2rem;
        transform: translateZ(5px);
    }

    .article-title {
        font-size: 1.2rem;
    }

    .article-excerpt {
        -webkit-line-clamp: 2;
    }

    .category-tag,
    .read-more {
        transform: translateZ(8px);
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section {
        padding: 0 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .footer-section ul {
        gap: 1rem;
    }
}

/* 添加动画关键帧 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* 导航菜单动画 */
.nav-menu ul li {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.nav-menu ul li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu ul li:nth-child(2) { animation-delay: 0.2s; }
.nav-menu ul li:nth-child(3) { animation-delay: 0.3s; }
.nav-menu ul li:nth-child(4) { animation-delay: 0.4s; }

/* 加载动画 */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 滚动显示动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 添加文章分类标签样式 */
.category-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(
        135deg,
        rgba(110,142,251,0.1) 0%,
        rgba(110,142,251,0.2) 100%
    );
    border-radius: 20px;
    color: #6e8efb;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    transform: translateZ(15px);
    position: relative;
    z-index: 1;
}

.category-tag:hover {
    background: linear-gradient(
        135deg,
        #6e8efb 0%,
        #a777e3 100%
    );
    color: white;
    transform: translateZ(20px);
}

/* 优化阅读更多按钮 */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(110,142,251,0.1) 0%,
        rgba(110,142,251,0.2) 100%
    );
    transition: all 0.3s ease;
    transform: translateZ(15px);
    color: #6e8efb;
    font-weight: 500;
}

.read-more:hover {
    background: linear-gradient(
        135deg,
        #6e8efb 0%,
        #a777e3 100%
    );
    color: white;
    transform: translateZ(20px);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
    color: white;
}

/* 优化文章标题 */
.article-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    transform: translateZ(15px);
}

/* 优化文章元数据 */
.article-meta {
    transform: translateZ(12px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }

    .article-image {
        flex: 0 0 200px;
        transform: translateZ(10px);
    }

    .article-content {
        transform: translateZ(5px);
    }

    .category-tag,
    .read-more {
        transform: translateZ(8px);
    }
}

/* 调整移动端文章列表样式 */
@media (max-width: 768px) {
    .articles-section {
        padding: 0 0.8rem;
    }

    .article-card {
        flex-direction: row;
        margin-bottom: 1.5rem;
        min-height: 140px;
        height: auto;
    }

    .article-image {
        flex: 0 0 140px;
        height: auto;
        min-height: 140px;
    }

    .article-content {
        padding: 1rem;
        overflow: hidden;
    }

    .article-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .article-meta {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        gap: 0.5rem;
    }

    .article-excerpt {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .category-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }

    .read-more {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* 更小屏幕的额外调整 */
@media (max-width: 480px) {
    .articles-section {
        padding: 0 0.5rem;
    }

    .article-card {
        min-height: 120px;
    }

    .article-image {
        flex: 0 0 120px;
        min-height: 120px;
    }

    .article-content {
        padding: 0.8rem;
    }

    .article-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }

    .article-meta {
        font-size: 0.7rem;
    }

    .article-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    /* 在特小屏幕上隐藏摘要 */
    @media (max-width: 360px) {
        .article-excerpt {
            display: none;
        }
        
        .article-card {
            height: 100px;
        }
        
        .article-image {
            flex: 0 0 100px;
        }
    }
}

/* 修改文章卡片链接样式 */
.article-card .article-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* 确保链接不影响原有样式 */
.article-card a:hover {
    text-decoration: none;
}

/* 添加点击状态效果 */
.article-card .article-link:active {
    transform: translateY(2px);
}
