/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
    background-color: #f7faf7;
    color: #2d3436;
    line-height: 1.55;
}
h1 {
    margin-bottom: 16px;
    font-size: 16px;
    color: #6BB458;
    font-weight: 600;
}
.update-info {
    font-size:12px;
    color:#888;
    margin:-6px 0 14px 0;
}
/* 卡片容器 */
.feed-container {
    display: grid;
    gap:12px;
}
/* RSS单条卡片 紧凑化 */
.item-card {
    background: #ffffff;
    padding:14px 18px;
    border-radius:10px;
    border-left: none;
    box-shadow: 0 2px 8px rgba(107, 180, 88, 0.12);
    transition: all 0.28s ease-out;
}
/* 鼠标悬浮动画 */
.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(107, 180, 88, 0.18);
}
/* 头部一行布局：标签+标题居左，时间居右 */
.item-head {
    display:flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap:8px 12px;
}
.item-head-left {
    display:flex;
    align-items: baseline;
    gap:10px;
    flex-wrap: wrap;
}
/* 博客来源标签 绿底白字 */
.source-tag {
    background-color:#6BB458;
    color:#ffffff;
    font-size:12px;
    padding:2px 8px;
    border-radius:6px;
    white-space: nowrap;
}
.item-title a {
    font-size:17px;
    color:#6BB458;
    text-decoration:none;
    font-weight:500;
}
.item-title a:hover {
    color:#86c977;
    text-decoration: none;
}
.item-time-right {
    font-size:12.5px;
    color:#747d8c;
    white-space: nowrap;
}
.item-summary {
    font-size:14px;
    color:#57606f;
    margin-top:6px;
}
.empty-tip {
    text-align:center;
    padding:40px 20px;
    color:#747d8c;
    font-size:14px;
}
.site-header {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 20px auto;
    padding: 16px 24px;
    border-radius: 14px;
    background-color: #6BB458;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(107, 180, 88, 0.2);
    position: relative;
    min-height: 80px;
    box-sizing: border-box;
}
.site-header::before {
    display: none;
}
.header-inner {
    position: relative;
    z-index: 2;
}
.site-title {
    font-size: 24px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 0;
}
.site-subtitle {
    font-size: 13px;
    color: #ffffff;
    margin:0;
}
.site-nav {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.site-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    margin-left: 14px;
    transition: opacity 0.2s;
}
.site-nav a:hover {
    opacity: 0.7;
}

/* 页脚 footer */
.site-footer {
    max-width: 960px;
    margin: 36px auto 24px auto;
    padding-top: 16px;
    border-top: 1px solid #dde6dd;
    text-align: center;
    font-size: 12px;
    color: #747d8c;
}

/* ========== 手机端优化 max‑width 640px ========== */
@media (max-width: 640px) {
    body {
        margin: 16px auto;
        padding: 0 12px;
    }

    /* Header手机端 */
    .site-header {
        padding: 16px 16px;
        min-height: auto;
    }
    .site-nav {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 10px;
    }
    .site-nav a {
        margin-left: 0;
        margin-right: 12px;
        display: inline-block;
    }
    .site-title {
        font-size: 20px;
    }

    /* 卡片手机适配 */
    .item-card {
        padding: 12px 14px;
    }
    .item-title a {
        font-size: 16px;
    }

    /* 手机端：不强制纵向排列，依靠wrap自动换行，时间跟随自动换行，取消缩进 */
    .item-head {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex‑start;
        align-items: baseline;
        gap:4px 8px;
    }
    .item-time-right {
        padding-left: 0;
    }

    .item-summary {
        font-size:13.5px;
    }

    /* footer移动端修复 */
    .site-footer {
        margin:28px auto 18px auto;
        padding-top:12px;
        font-size:11.5px;
    }
}