/* ==========================
   移动端适配样式
========================== */

/* 保持横向排列，去掉强制竖排 */
header {
    flex-direction: row;       /* 改成横排 */
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
}

/* 左边：头像 + 标题缩小 */
.logo-container {
    flex-direction: row;       /* 横排 */
    align-items: center;
    gap: 6px;
}

.logo-container img {
    height: 28px; /* 缩小头像 */
}

.logo-container .project-name {
    font-size: 23px;
}

/* 右边：导航按钮缩小 */
.nav-right a {
    font-size: 14px;
    padding: 4px 6px;
}

/* 主标题缩小 */
h1 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

/* 副标题缩小 */
.subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* 正文缩小、排版更易读 */
.main-text {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 0.5rem;
}

/* 卡片布局改为一列 */
.cards-container {
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

/* GitHub 按钮缩小 */
.github-button {
    font-size: 14px;
    padding: 5px 10px;
}

/* 页脚文字缩小 */
footer {
    font-size: 12px;
    padding: 10px 0;
}
