/* ===== 页面布局：容器 / 头部 / 网格 / 页脚 ===== */

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* ---- 头部 ---- */
.header {
    padding-bottom: 30px;
    border-bottom: 1px solid #30363d;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
}

.header-left h1 {
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(135deg, #58a6ff, #f0883e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-left .sub {
    color: #8b949e;
    font-size: 16px;
    margin-top: 2px;
}

.header-left .badge-count {
    font-size: 13px;
    font-weight: 500;
    background: #21262d;
    color: #8b949e;
    padding: 2px 12px;
    border-radius: 20px;
    border: 1px solid #30363d;
    margin-left: 4px;
    white-space: nowrap;
}

.header-right {
    text-align: right;
    font-size: 14px;
    color: #8b949e;
}

.header-right a {
    color: #58a6ff;
    text-decoration: none;
}

.header-right a:hover {
    text-decoration: underline;
}

/* ---- 项目网格 ---- */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ---- 页脚 ---- */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #30363d;
    text-align: center;
    font-size: 13px;
    color: #5a5f68;
}

.footer a {
    color: #58a6ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ---- 移动端头部微调 ---- */
@media (max-width: 500px) {
    .header-left {
        gap: 8px;
    }
    .header-left .badge-count {
        font-size: 12px;
        padding: 1px 10px;
    }
}

/* ===== 项目分组 ===== */
.project-group {
    margin-bottom: 44px;
}

.project-group:last-child {
    margin-bottom: 0;
}

.group-title {
    font-size: 13px;
    font-weight: 500;
    color: #8b949e;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #21262d;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.group-title .group-count {
    font-size: 11px;
    color: #5a5f68;
    font-weight: 400;
}

@media (max-width: 500px) {
    .project-group {
        margin-bottom: 32px;
    }
}