/* Demo 主题：绿色系，仅演示核心布局。新主题请参照 sablog/modern 补全移动端断点 */
:root {
    --d-accent: #059669;
    --d-accent-dark: #047857;
    --d-bg: #f6f8f7;
    --d-text: #1f2937;
    --d-muted: #6b7280;
    --d-border: #e2e8e4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--d-bg);
    color: var(--d-text);
    line-height: 1.7;
}

a { color: var(--d-accent); text-decoration: none; }
a:hover { color: var(--d-accent-dark); }

.d-container, .container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.d-header { background: #fff; border-bottom: 3px solid var(--d-accent); }
.d-header .d-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.d-logo { font-size: 20px; font-weight: 800; color: var(--d-accent); }
.d-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.d-nav a.active { color: var(--d-accent-dark); font-weight: 700; }
.d-search input { border: 1px solid var(--d-border); border-radius: 6px; padding: 6px 10px; font-size: 13px; }
.d-link-btn { background: none; border: none; color: var(--d-accent); cursor: pointer; font-size: 14px; }

/* 主体两栏 */
.main-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; padding: 24px 16px; max-width: 960px; margin: 0 auto; }
.main-layout .content { min-width: 0; }

/* 内容卡片（默认视图自带 .post-card/.post-full/.list-title 等类） */
.post-card, .post-full, .comments-section, .alert, .toc, .paywall {
    background: #fff;
    border: 1px solid var(--d-border);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

/* 侧边栏 */
.widget { background: #fff; border: 1px solid var(--d-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.widget h3 { margin: 0 0 10px; font-size: 14px; color: var(--d-accent-dark); }

/* 页脚 */
.d-footer { background: #fff; border-top: 3px solid var(--d-accent); text-align: center; font-size: 13px; color: var(--d-muted); padding: 18px 0; margin-top: 24px; }
.d-footer p { margin: 4px 0; }

/* 按钮 */
.btn { display: inline-block; background: var(--d-accent); color: #fff; border: none; padding: 8px 18px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.btn:hover { background: var(--d-accent-dark); color: #fff; }

@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; }
    .d-header .d-container { flex-direction: column; align-items: flex-start; }
}

/* 已解锁的付费内容块 */
.paid-content { border: 1px solid var(--d-border); border-left: 4px solid var(--d-accent); background: #fff; border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.paid-content-label { font-size: 12px; color: var(--d-accent); font-weight: 700; margin-bottom: 6px; }

/* 分类页介绍区 */
.category-intro { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--d-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.category-cover { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.category-description { margin: 0 0 6px; font-size: 14px; color: #555; line-height: 1.7; }
.category-meta { margin: 0; font-size: 12px; color: #999; }
