/* 教育培训风 —— 知识卡片、层级分明（SEO：面包屑/大纲目录/语义化区块） */
:root { --main: #D97706; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #292524; background: #FFFBF5; line-height: 1.75; }
a { color: var(--main); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.site-header { background: #fff; border-bottom: 3px solid var(--main); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; }
.logo-h1 { margin: 0; font-size: inherit; font-weight: inherit; }
.logo { font-size: 24px; font-weight: 800; color: #1C1917; }
.logo b { color: var(--main); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: #57534E; padding: 8px 14px; border-radius: 6px; font-size: 15px; }
.main-nav a:hover { background: #FEF3E2; color: var(--main); text-decoration: none; }

.page-body { padding: 24px 20px; }
.breadcrumb { font-size: 13px; color: #A8A29E; margin-bottom: 16px; }

.article-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article-list li { background: #fff; border: 1px solid #F0E8DC; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .2s; }
.article-list li:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217,119,6,.10); }
.article-list h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.article-list h3 a { color: #1C1917; }
.article-list h3 a:hover { color: var(--main); text-decoration: none; }
.article-list .exc { color: #78716C; font-size: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-list .meta { margin-top: 12px; font-size: 13px; color: #A8A29E; }
.article-list .thumb-row { margin-bottom: 12px; }
.thumb { border-radius: 8px; object-fit: cover; width: 100%; height: 150px; }

.list-head { text-align: center; margin-bottom: 26px; }
.list-head h1 { font-size: 28px; }
.list-head h1::after { content: ''; display: block; width: 48px; height: 3px; background: var(--main); margin: 10px auto 0; border-radius: 2px; }
.list-head p { color: #78716C; font-size: 14px; margin-top: 10px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0; }
.pagination a, .pagination span { padding: 7px 14px; border: 1px solid #F0E8DC; border-radius: 6px; background: #fff; font-size: 14px; }
.pagination .cur { background: var(--main); color: #fff; border-color: var(--main); }

article { background: #fff; border: 1px solid #F0E8DC; border-radius: 12px; padding: 36px 40px; max-width: 860px; margin: 0 auto; }
.article-header h1 { font-size: 27px; line-height: 1.4; margin-bottom: 14px; }
.article-header .meta { color: #A8A29E; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid #FAF3E8; }

.toc { background: #FFFBF2; border: 1px dashed #E9D9BE; border-radius: 8px; padding: 16px 20px; margin: 20px 0; }
.toc-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.toc-title::before { content: '📑 '; }
.toc a { display: block; padding: 3px 0; font-size: 14px; color: #57534E; }
.toc a:hover { color: var(--main); }

.article-content { font-size: 16px; }
.article-content h2 { font-size: 21px; margin: 1.6em 0 .7em; }
.article-content h2::before { content: '§ '; color: var(--main); }
.article-content h3 { font-size: 17px; margin: 1.3em 0 .5em; color: #44403C; }
.article-content p { margin: 1em 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid #F0E8DC; padding: 9px 12px; text-align: left; }
.article-content th { background: #FEF3E2; }
.article-content blockquote { border-left: 3px solid var(--main); background: #FFFBF2; padding: 12px 18px; margin: 1.2em 0; color: #57534E; border-radius: 0 8px 8px 0; }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }

.tags-row { margin: 24px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tags-row a { font-size: 13px; background: #FEF3E2; color: var(--main); padding: 4px 12px; border-radius: 20px; }
.prev-next { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #FAF3E8; font-size: 14px; }
.related { margin-top: 28px; }
.related h2 { font-size: 19px; margin-bottom: 10px; }
.related h2::before { content: '§ '; color: var(--main); }
.related ul { list-style: none; }
.related li { padding: 8px 0; border-bottom: 1px dashed #FAF3E8; font-size: 15px; }

.site-footer { background: #292524; color: #A8A29E; margin-top: 40px; padding: 28px 0; font-size: 13px; }
.site-footer a { color: #A8A29E; }

/* 广告位（营销设置） */
.ad-slot { margin: 14px auto; max-width: 1080px; padding: 0 16px; box-sizing: border-box; }
.ad-item { position: relative; margin: 10px 0; text-align: center; }
.ad-item img { max-width: 100%; height: auto; border-radius: 6px; }
.ad-flag { display: inline-block; font-size: 11px; color: #9ca3af; border: 1px solid #e5e7eb; border-radius: 3px; padding: 0 5px; line-height: 16px; margin-bottom: 4px; letter-spacing: 1px; }
@media (min-width: 1400px) {
  .ad-left { position: fixed; left: 8px; top: 180px; width: 160px; z-index: 50; }
  .ad-right { position: fixed; right: 8px; top: 180px; width: 160px; z-index: 50; }
}
@media (max-width: 1399px) { .ad-left, .ad-right { display: none; } }

@media (max-width: 720px) {
  .article-list { grid-template-columns: 1fr; }
  article { padding: 22px 18px; }
}
