/* ============================================
   极简风格 v3 - 单栏居中、大留白、阅读优先
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ink: #111;
    --ink2: #555;
    --ink3: #999;
    --bg: #fff;
    --bg2: #fafafa;
    --line: #e8e8e8;
    --accent: #e74c3c;
    --max: 680px;
    --max-wide: 960px;
}

body {
    font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ====== 极简头部 ====== */
.site-header {
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
}
.site-header .inner {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--ink);
}
.site-nav { display: flex; gap: 0; list-style: none; }
.site-nav a {
    display: block;
    padding: 18px 16px;
    font-size: 14px;
    color: var(--ink2);
    transition: color 0.15s;
}
.site-nav a:hover, .site-nav a.on { color: var(--ink); }
.site-nav a.on { font-weight: 600; }
.site-search {
    display: flex;
    align-items: center;
    gap: 0;
}
.site-search input {
    border: none;
    background: var(--bg2);
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 150px;
}
.site-search button {
    border: none;
    background: var(--ink);
    color: #fff;
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}
.site-search button:hover { background: #333; }
.menu-btn { display: none; background: none; border: none; font-size: 18px; cursor: pointer; }

/* ====== Hero - 全宽大图 ====== */
.hero-feed {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 40px 24px 0;
}
.hero-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 420px;
    cursor: pointer;
    margin-bottom: 20px;
}
.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-main .cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 36px 32px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.hero-main .cap .pill {
    display: inline-block;
    background: var(--accent);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.hero-main .cap h2 { font-size: 26px; line-height: 1.4; font-weight: 700; }
.hero-main .cap .sub { font-size: 13px; opacity: 0.6; margin-top: 8px; }

.hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hero-sm {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}
.hero-sm img { width: 100%; height: 100%; object-fit: cover; }
.hero-sm .cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 24px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.hero-sm .cap .pill {
    display: inline-block;
    background: var(--accent);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.hero-sm .cap h3 { font-size: 15px; line-height: 1.45; font-weight: 600; }

/* ====== 分割线 ====== */
.divider {
    max-width: var(--max);
    margin: 48px auto;
    border: none;
    border-top: 1px solid var(--line);
}

/* ====== 单栏Feed ====== */
.feed {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}
.feed-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}
.feed-head h2 {
    font-size: 20px;
    font-weight: 700;
}
.feed-head a {
    font-size: 13px;
    color: var(--ink3);
}

/* Feed Item - 纯文字列表 */
.feed-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: none; }
.feed-item .tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.feed-item h3 {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 8px;
}
.feed-item h3 a:hover { color: var(--accent); }
.feed-item p {
    font-size: 14px;
    color: var(--ink2);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-item .meta {
    font-size: 12px;
    color: var(--ink3);
    margin-top: 10px;
}

/* Feed Item with Image */
.feed-row {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}
.feed-row:last-child { border-bottom: none; }
.feed-row .txt { flex: 1; }
.feed-row .pic {
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.feed-row .pic img { width: 100%; height: 100%; object-fit: cover; }

/* ====== 侧栏（极简） ====== */
.with-side {
    max-width: var(--max-wide);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
}
.side-box {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.side-box:first-child { padding-top: 0; }
.side-box h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink3);
    margin-bottom: 16px;
}
.side-list { list-style: none; }
.side-list li {
    padding: 8px 0;
}
.side-list .num {
    display: inline-block;
    width: 22px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink3);
}
.side-list .num.hot { color: var(--accent); }
.side-list a {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
}
.side-list a:hover { color: var(--accent); }

/* ====== 文章页 ====== */
.article-page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.article-page .tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}
.article-page h1 {
    font-size: 32px;
    line-height: 1.4;
    font-weight: 750;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}
.article-page .byline {
    font-size: 14px;
    color: var(--ink3);
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
}
.article-page .byline .sep { margin: 0 10px; }
.article-body {
    font-size: 17px;
    line-height: 2;
    color: var(--ink);
}
.article-body p { margin-bottom: 1.6em; }
.article-body img { margin: 32px 0; border-radius: 8px; }

/* 文章页侧栏 */
.article-with-side {
    max-width: var(--max-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 56px;
    padding: 48px 24px 80px;
}
.article-side { position: sticky; top: 80px; align-self: start; }

/* ====== 分类页头部 ====== */
.cat-header {
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px 24px 40px;
    border-bottom: 1px solid var(--line);
}
.cat-header h1 {
    font-size: 36px;
    font-weight: 750;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.cat-header p { font-size: 15px; color: var(--ink3); }

/* ====== 分页 ====== */
.pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 48px 0;
}
.pager a, .pager span {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.15s;
}
.pager a { color: var(--ink2); }
.pager a:hover { background: var(--bg2); color: var(--ink); }
.pager a.on { background: var(--ink); color: #fff; font-weight: 600; }
.pager span { color: var(--ink3); }

/* ====== Footer ====== */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 40px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--ink3);
}
.site-footer a { color: var(--ink2); }

/* ====== Loading ====== */
.loading { text-align: center; padding: 80px 24px; color: var(--ink3); font-size: 14px; }
.empty-state { text-align: center; padding: 80px 24px; color: var(--ink3); }

/* ====== Responsive ====== */
@media(max-width:768px){
    .site-nav { display: none; }
    .site-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
    .site-nav.open a { padding: 14px 24px; }
    .menu-btn { display: block; }
    .site-search { display: none; }
    .hero-main { height: 260px; }
    .hero-main .cap h2 { font-size: 20px; }
    .hero-row { grid-template-columns: 1fr; }
    .hero-sm { height: 180px; }
    .with-side { grid-template-columns: 1fr; gap: 0; }
    .article-with-side { grid-template-columns: 1fr; }
    .article-side { position: static; }
    .article-page h1 { font-size: 24px; }
    .feed-row .pic { width: 120px; height: 85px; }
    .cat-header h1 { font-size: 28px; }
}
