/* === LZU Math Resources 项目页面专用样式 === */

/* 基础全局 - 与网站整体风格一致 */
html, body {
    width: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}
body { padding: 0 20px 80px 20px; box-sizing: border-box; }
::-webkit-scrollbar { display: none; }

#layout-content {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
}

/* 页面标题 */
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* 分区标题（我组织的 / 我参与的） */
.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 34px 0 16px;
    padding-left: 12px;
    border-left: 3px solid #0066cc;
}

/* === 项目网格：n 行 × 2 列 === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* === 单个项目卡片 === */
.project-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.project-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border-color: #e0e7ff;
    transform: translateY(-3px);
}

/* 卡片头部：图标 + 标题 */
.project-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.project-icon {
    width: 52px;
    height: 52px;
    background: #f0f7ff;
    border: 1px solid rgba(0, 102, 204, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #0066cc;
    flex-shrink: 0;
}

.project-head-text h3 {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
}

.project-head-text p {
    font-size: 13px;
    color: #0066cc;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.3px;
}

.project-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin: 0 0 16px 0;
    opacity: 0.92;
}

/* 贡献说明 */
.project-contribution {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    background: #f8fafc;
    border: 1px solid #eef1f4;
    border-radius: 8px;
    padding: 9px 12px;
    margin: 0 0 14px 0;
}

.project-contribution i {
    color: #0066cc;
    margin-top: 2px;
    flex-shrink: 0;
}

/* 目标列表 */
.project-aims {
    list-style: none;
    margin: 0 0 14px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.project-aims li {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* 链接按钮 */
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-btn.github {
    background: #1a1a1a;
    color: #fff;
}

.link-btn.github:hover {
    background: #000;
    transform: translateY(-2px);
    text-decoration: none;
}

.link-btn.web {
    background: #0066cc;
    color: #fff;
}

.link-btn.web:hover {
    background: #005bb8;
    transform: translateY(-2px);
    text-decoration: none;
}

/* 统计数据 */
.project-stats {
    display: flex;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-top: auto;
}

.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
}

.stat + .stat {
    border-left: 1px solid #f0f0f0;
}

.stat-value {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.4px;
}

.stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 页脚 */
#footer {
    margin-top: 50px;
    font-size: 13px;
    color: #aaa;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
