/* ============================================
   二级文章页面 · 共享样式
   复用主站设计系统
   ============================================ */

/* ——— 文章页通用布局 ——— */
.article-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }

.article-main { flex: 1; padding: var(--s-10) 0 var(--s-16); }

.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 var(--s-6); }

/* ——— 面包屑 ——— */
.breadcrumb { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--text-tertiary); margin-bottom: var(--s-8); flex-wrap: wrap; }
.breadcrumb a { color: var(--hust-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { user-select: none; }

/* ——— 文章头部 ——— */
.article-header { margin-bottom: var(--s-10); }
.article-category { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); margin-bottom: var(--s-4); }
.article-title { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: var(--fw-black); color: var(--text-primary); line-height: var(--lh-tight); margin-bottom: var(--s-4); }
.article-meta { display: flex; gap: var(--s-6); font-size: var(--fs-sm); color: var(--text-tertiary); align-items: center; flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 4px; }

/* ——— 侧边栏 ——— */
.article-layout-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: var(--s-10); align-items: start; }
.sidebar-card { background: var(--white); border-radius: var(--radius-lg); padding: var(--s-6); box-shadow: var(--shadow-card); margin-bottom: var(--s-6); }
.sidebar-card h4 { font-size: var(--fs-h4); font-weight: var(--fw-bold); color: var(--text-primary); margin-bottom: var(--s-4); }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: var(--s-2) 0; border-bottom: 1px solid var(--border-light); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--text-secondary); text-decoration: none; font-size: var(--fs-sm); transition: color 0.2s; }
.sidebar-list a:hover { color: var(--hust-blue); }

/* ——— 通用组件 ——— */
.tag-list { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-6); }
.tag { padding: 3px 10px; background: var(--hust-blue-wash); color: var(--hust-blue-mid); border-radius: 4px; font-size: var(--fs-xs); }

.pagination { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-10); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); font-size: var(--fs-sm); text-decoration: none; color: var(--text-secondary); border: 1px solid var(--border); transition: all 0.2s; }
.pagination .active { background: var(--hust-blue); color: white; border-color: var(--hust-blue); }
.pagination a:hover:not(.active) { background: var(--hust-blue-wash); border-color: var(--hust-blue-ghost); }
