/* =============================================================
 * wenku.css — 文库模块（art）所有页面公共样式
 * 覆盖：art/index  art/show  art/detail
 * ============================================================= */

/* ── 容器 ── */
.art-index-wrap  { max-width: 1060px; margin: 0 auto; padding: 12px 16px; }
.art-list-wrap   { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.art-detail-wrap { max-width: 860px;  margin: 0 auto; padding: 16px 20px 40px; }

/* ── 分类 Tab 导航 ── */
.art-tabs-nav {
	display: flex; flex-wrap: wrap; gap: 8px;
	padding: 14px 0;
	border-bottom: 1px solid var(--el-border-color-lighter, #ebeef5);
	margin-bottom: 20px;
}
.art-tabs-nav a {
	padding: 5px 16px; border-radius: 20px;
	font-size: 13px; text-decoration: none;
	color: var(--el-text-regular, #606266);
	border: 1px solid var(--el-border-color, #dcdfe6);
	transition: all .2s;
}
.art-tabs-nav a.active,
.art-tabs-nav a:hover {
	color: #fff;
	background: var(--el-color-warning, #e6a23c);
	border-color: var(--el-color-warning, #e6a23c);
}

/* ── 首页布局：主区 + 侧栏 ── */
.art-layout      { display: flex; gap: 24px; align-items: flex-start; }
.art-layout-main { flex: 1; min-width: 0; }
.art-layout-side { width: 260px; flex-shrink: 0; }

/* ── 区块标题 ── */
.art-section      { margin-bottom: 28px; }
.art-section-head {
	display: flex; align-items: center; justify-content: space-between;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--el-color-warning, #e6a23c);
	margin-bottom: 12px;
}
.art-section-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--el-text-primary, #303133); }
.art-section-head a  { font-size: 13px; color: var(--el-text-secondary, #909399); text-decoration: none; }
.art-section-head a:hover { color: var(--el-color-warning, #e6a23c); }

/* ── 文章列表项（list + index 共用） ── */
.art-item {
	display: flex; gap: 14px; padding: 14px 0;
	border-bottom: 1px solid var(--el-border-color-lighter, #ebeef5);
	text-decoration: none; color: inherit; transition: background .15s;
}
.art-item:hover .art-item-title { color: var(--el-color-warning, #e6a23c); }
.art-item-main      { flex: 1; min-width: 0; }
.art-item-title     { font-size: 15px; font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--el-text-primary, #303133); }
.art-item-summary   { font-size: 13px; color: var(--el-text-secondary, #909399); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-item-meta      { margin-top: 8px; font-size: 12px; color: var(--el-text-placeholder, #c0c4cc); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.art-item-meta .ami-cate { padding: 1px 6px; border-radius: 3px; background: var(--el-fill-color, #f0f2f5); color: var(--el-text-secondary, #909399); }
.art-item.has-cover .art-item-cover img { width: 100px; height: 70px; object-fit: cover; border-radius: 4px; display: block; flex-shrink: 0; }

/* ── 侧栏热榜 ── */
.art-rank-list { list-style: none; margin: 0; padding: 0; }
.art-rank-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--el-border-color-lighter, #ebeef5); }
.art-rank-item:last-child { border-bottom: none; }
.art-rank-num { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--el-fill-color, #f0f2f5); color: var(--el-text-secondary, #909399); flex-shrink: 0; }
.art-rank-item:nth-child(-n+3) .art-rank-num { background: var(--el-color-warning, #e6a23c); color: #fff; }
.art-rank-item a { flex: 1; font-size: 13px; color: var(--el-text-regular, #606266); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-rank-item a:hover { color: var(--el-color-warning, #e6a23c); }

/* ── 文章详情页 ── */
.art-detail-hd { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--el-border-color-lighter, #ebeef5); }
.art-detail-title { font-size: 24px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--el-text-primary, #303133); }
.art-detail-meta { display: flex; gap: 16px; font-size: 13px; color: var(--el-text-placeholder, #c0c4cc); align-items: center; flex-wrap: wrap; }
.art-detail-meta a { color: var(--el-text-secondary, #909399); text-decoration: none; }
.art-detail-meta a:hover { color: var(--el-color-warning, #e6a23c); }
.art-detail-cate { padding: 2px 8px; border-radius: 3px; background: var(--el-fill-color, #f0f2f5); color: var(--el-text-secondary, #909399); }

/* 正文内容 */
.art-detail-body { font-size: 15px; line-height: 1.9; color: var(--el-text-regular, #606266); }
.art-detail-body p   { margin: 0 0 1em; }
.art-detail-body img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 12px auto; }
.art-detail-body h2, .art-detail-body h3 { color: var(--el-text-primary, #303133); }
.art-detail-body a   { color: var(--el-color-warning, #e6a23c); }
.art-detail-body blockquote { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--el-color-warning, #e6a23c); background: var(--el-fill-color-light, #f5f7fa); border-radius: 0 4px 4px 0; }

/* 互动按钮区 */
.art-detail-actions { display: flex; gap: 12px; padding: 20px 0; border-top: 1px solid var(--el-border-color-lighter, #ebeef5); margin-top: 24px; }
.art-detail-actions .el-button { display: inline-flex; align-items: center; gap: 6px; }
.art-detail-actions .el-button.liked i,
.art-detail-actions .el-button.collected i { color: var(--el-color-warning, #e6a23c); }

/* 上/下一篇导航 */
.art-detail-nav { display: flex; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--el-border-color-lighter, #ebeef5); }
.art-detail-nav a {
	flex: 1; padding: 12px 16px; border-radius: 8px;
	background: var(--el-fill-color, #f0f2f5);
	text-decoration: none; color: var(--el-text-regular, #606266);
	font-size: 14px; transition: all .2s; min-width: 0;
}
.art-detail-nav a:hover { background: var(--el-color-warning-light-9, #fdf6ec); color: var(--el-color-warning, #e6a23c); }
.art-detail-nav .adn-label { font-size: 11px; color: var(--el-text-placeholder, #c0c4cc); margin-bottom: 4px; }
.art-detail-nav .adn-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.art-detail-nav .adn-next  { text-align: right; }

/* 免责声明 */
.art-disclaimer { margin-top: 20px; padding: 10px 14px; border-radius: 6px; background: var(--el-fill-color-light, #f5f7fa); font-size: 12px; color: var(--el-text-placeholder, #c0c4cc); }

/* ── 分页（show 页） ── */
.art-list-wrap .pages { margin-top: 20px; }

/* ── 暗黑模式 ── */
html[data-theme="dark"] .art-section-head h3             { color: #e0e0e0; }
html[data-theme="dark"] .art-item-title                  { color: #e0e0e0; }
html[data-theme="dark"] .art-item                        { border-color: #2d2d2d; }
html[data-theme="dark"] .art-item-meta .ami-cate         { background: #2d2d2e; color: #aaa; }
html[data-theme="dark"] .art-rank-num                    { background: #2d2d2e; color: #aaa; }
html[data-theme="dark"] .art-rank-item                   { border-color: #2d2d2d; }
html[data-theme="dark"] .art-rank-item a                 { color: #ccc; }
html[data-theme="dark"] .art-tabs-nav                    { border-color: #3a3b3c; }
html[data-theme="dark"] .art-tabs-nav a                  { color: #ccc; border-color: #4a4a4a; background: #1e1e1e; }
html[data-theme="dark"] .art-detail-hd                   { border-color: #2d2d2d; }
html[data-theme="dark"] .art-detail-title                { color: #e0e0e0; }
html[data-theme="dark"] .art-detail-body                 { color: #ccc; }
html[data-theme="dark"] .art-detail-body h2,
html[data-theme="dark"] .art-detail-body h3              { color: #e0e0e0; }
html[data-theme="dark"] .art-detail-body blockquote      { background: #2d2d2e; }
html[data-theme="dark"] .art-detail-cate                 { background: #2d2d2e; color: #aaa; }
html[data-theme="dark"] .art-detail-actions              { border-color: #2d2d2d; }
html[data-theme="dark"] .art-detail-nav a                { background: #2d2d2e; color: #ccc; }
html[data-theme="dark"] .art-detail-nav                  { border-color: #2d2d2d; }
html[data-theme="dark"] .art-disclaimer                  { background: #1e1e1e; }
html[data-theme="dark"] .art-section-head                { border-color: #e6a23c; }

/* ── 响应式 ── */
@media (max-width: 900px) {
	.art-layout { flex-direction: column; }
	.art-layout-side { width: 100%; }
}
@media (max-width: 600px) {
	.art-detail-nav { flex-direction: column; }
}
