
/* 主要内容区 */
main {
    margin-top: 80px;
    padding: 30px 0;
}

/* 页面标题 */
.page-title {
    margin-bottom: 25px;
    position: relative;
    color: #333;
}

.page-title h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.page-title .breadcrumbs {
    display: flex;
    list-style: none;
    color: #666;
    font-size: 0.9rem;
}

.page-title .breadcrumbs li:not(:last-child)::after {
    content: '>';
    margin: 0 8px;
    color: #ccc;
}

.page-title .breadcrumbs a {
    color: #6b5ce7;
    text-decoration: none;
}

.page-title .breadcrumbs a:hover {
    text-decoration: underline;
}

/* 筛选工具栏 */
.filter-toolbar {
    background: white;
    border-radius: 10px;
    padding: 15px 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.filter-left {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-label {
    font-weight: 500;
    color: #555;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    min-width: 140px;
}

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

.tag {
    background: #f0f3f8;
    color: #6b5ce7;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #e0e7f7;
}

.tag.active {
    background: #6b5ce7;
    color: white;
    border-color: #5a4bc7;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 140px;
}

.view-toggle {
    display: flex;
    background: #f0f3f8;
    border-radius: 4px;
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: #6b5ce7;
    color: white;
}

/* 项目列表 - 网格布局 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.project-content {
    padding: 15px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.project-author {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.project-tag {
    background: rgba(107, 92, 231, 0.1);
    color: #6b5ce7;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.project-description {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
}

.project-stats {
    display: flex;
    gap: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-date {
    color: #999;
}

/* 项目列表 - 列表布局 */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.project-list-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.list-item-thumbnail {
    width: 200px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.list-item-content {
    flex-grow: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.list-item-title-wrapper {
    flex-grow: 1;
}

.list-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.list-item-author {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-item-description {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.list-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
}

/* 分页控件 */


.page-item {
    min-width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-item:hover {
    border-color: #6b5ce7;
    color: #6b5ce7;
}

.page-item.active {
    background: #6b5ce7;
    border-color: #6b5ce7;
    color: white;
}

.page-item.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 页脚 */
footer {
    background: #333;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #ffde59;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ffde59;
    color: #333;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 20px;
    color: #999;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .list-item-thumbnail {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .nav-left .nav-links {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .filter-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-right {
        width: 100%;
        justify-content: space-between;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .project-list-item {
        flex-direction: column;
    }

    .list-item-thumbnail {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .page-title h1 {
        font-size: 1.8rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}






.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pagination li.active span {
    background: linear-gradient(135deg, rgb(107, 92, 231), rgb(255, 127, 80));
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 10px;


    color: #fff;
    cursor: default;
}

.pagination li.disabled span {
    color: #aaa;
    cursor: not-allowed;
    background-color: #f8f8f8;
}
