/* ===== 项目展示页面样式 ===== */

/* 页面容器 */
.projects-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 头部区域 */
.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 1rem auto 2rem;
}

/* 统计数据卡片 */
.projects-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-color);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

/* 分类筛选按钮 */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: var(--bg-color);
    color: var(--primary-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 项目网格布局 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 项目卡片 */
.project-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(74, 108, 247, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 24px rgba(74, 108, 247, 0.12),
        0 6px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(74, 108, 247, 0.5);
}

.project-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.project-card.featured::after {
    content: "⭐ 精选";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
}

/* 项目内容区域 */
.project-content {
    padding: 1.5rem 1.5rem 1rem;
    flex: 1;
}

/* 项目图标 */
.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-icon {
    transform: scale(1.15) rotate(8deg);
}

/* 项目标题 */
.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.project-title a {
    color: var(--text-color);
}

.project-title a:hover {
    color: var(--primary-color);
}

/* 项目描述 */
.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 项目标签 */
.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-color);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 108, 247, 0.25);
}

/* 项目底部操作区 */
.project-footer {
    padding: 1.25rem 0 0.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    margin-top: auto;
    background-color: var(--bg-secondary);
}

/* 项目状态标识 */
.project-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-developing {
    background: #dbeafe;
    color: #1e40af;
}

.status-experimental {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-archived {
    background: #e5e7eb;
    color: #374151;
}

/* 项目链接按钮 */
.project-links {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 无项目状态 */
.no-projects {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-projects i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .projects-page-container {
        padding: 1rem;
    }
    
    .projects-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 友情链接 ===== */

.friends-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.friend-card {
    display: block;
    background-color: var(--bg-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.friend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.2);
    border-color: var(--primary-color);
}

.friend-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Emoji 图标样式 */
.friend-emoji {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Font Awesome 图标样式 */
.friend-icon i {
    transition: transform 0.3s ease;
}

.friend-card:hover .friend-icon i {
    transform: scale(1.1) rotate(5deg);
}

.friend-info {
    text-align: center;
}

.friend-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.friend-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.friend-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.no-friends {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .friend-card {
        padding: 1.25rem;
    }
    
    .friend-icon {
        font-size: 2rem;
    }
    
    .friend-title {
        font-size: 1.1rem;
    }
    
    .friend-description {
        font-size: 0.85rem;
    }
}
