:root {
    --bg: #ffffff;
    --bg-light: #fafafa;
    --border: #eee;
    --text: #333;
    --text-muted: #999;
    --accent: #ff6b6b;
}

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

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* 导航 */
.navbar {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 1px;
}
.navbar-menu { display: flex; gap: 2rem; }
.navbar-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.navbar-menu a:hover { color: var(--accent); }

/* 主视觉 */
.jumbotron {
    text-align: center;
    padding: 5rem 1.5rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}
.jumbotron h1 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}
.jumbotron p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.jumbotron .tags { margin-top: 1.5rem; display: flex; gap: 0.75rem; justify-content: center; }
.jumbotron .tag {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 2px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 列表页 */
.listing { padding: 3rem 0; }
.listing-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.listing-item img {
    width: 180px;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.listing-content { flex: 1; }
.listing-content h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.listing-content h2 a { color: var(--text); text-decoration: none; }
.listing-content h2 a:hover { color: var(--accent); }
.listing-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.listing-content .meta { margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-muted); }

/* 文章页 */
.article-wrap { padding: 2rem 0; max-width: 720px; margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.article-header h1 { font-size: 1.6rem; font-weight: 500; margin-bottom: 0.75rem; }
.article-header .meta { font-size: 0.85rem; color: var(--text-muted); }
.article-body p { margin-bottom: 1.2rem; font-size: 0.95rem; }
.article-body img { max-width: 100%; border-radius: 4px; margin: 1rem 0; }

/* 文本区 */
.prose {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    margin: 2rem 0;
}
.prose h2 { font-size: 1.2rem; margin-bottom: 1rem; font-weight: 500; }
.prose p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.8rem; }

/* 标签 */
.tag-list { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.tag-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    font-size: 0.8rem;
    text-decoration: none;
}
.tag-item:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* 页脚 */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}
.footer p { font-size: 0.8rem; color: var(--text-muted); }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }

.btn-back {
    display: inline-block;
    background: var(--text);
    color: white;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 2px;
    margin-top: 2rem;
    font-size: 0.9rem;
}
.btn-back:hover { background: var(--accent); }

@media (max-width: 768px) {
    .navbar-inner { flex-direction: column; gap: 1rem; }
    .listing-item { flex-direction: column; }
    .listing-item img { width: 100%; height: 200px; }
    .jumbotron h1 { font-size: 1.5rem; }
}
