/* CMS 页面专属样式 - lnjypg 主题 */
/* 说明：page-hero/breadcrumbs/section 等官网已有样式由 base.css/site.css 提供，此处不重复定义 */

/* 首页 CMS 卡片网格 */
.cms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.cms-card { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 10px 30px rgba(12,27,51,0.09); border: 1px solid #e6ecf7; }
.cms-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid #eaf1ff; }
.cms-card-head h3 { font-size: 18px; margin: 0; }
.cms-card-head h3 a { color: #0c1b33; transition: color 0.2s; }
.cms-card-head h3 a:hover { color: #165dff; }

.cms-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cms-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.cms-list li a { color: #5b6980; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.2s; }
.cms-list li a:hover { color: #165dff; }
.cms-list li .date { color: #8a94a8; font-size: 13px; flex: none; }

/* 列表页布局 */
.cms-layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
@media (max-width: 768px) { .cms-layout { grid-template-columns: 1fr; } }

.cms-sidebar { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 16px rgba(12,27,51,0.06); border: 1px solid #e6ecf7; }
.cms-sidebar h4 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #eaf1ff; position: relative; }
.cms-sidebar h4::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: linear-gradient(135deg, #165dff, #00c8ff); }
.cms-sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.cms-sidebar ul li a { display: block; padding: 10px 14px; border-radius: 10px; color: #5b6980; font-size: 14px; transition: all 0.2s; }
.cms-sidebar ul li a:hover { background: #eaf1ff; color: #165dff; }
.cms-sidebar ul li.active a { background: linear-gradient(135deg, #165dff, #00a2ff); color: #fff; box-shadow: 0 6px 16px -6px rgba(22,93,255,0.6); }

.cms-main { min-width: 0; }

/* 文章列表项 */
.article-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.article-item { background: #fff; border-radius: 16px; padding: 28px 32px; box-shadow: 0 4px 16px rgba(12,27,51,0.06); border: 1px solid #e6ecf7; transition: transform 0.25s, box-shadow 0.25s; }
.article-item:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(12,27,51,0.12); }
.article-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.article-meta .cat { background: #eaf1ff; color: #165dff; padding: 3px 12px; border-radius: 999px; font-weight: 500; }
.article-meta .date { color: #8a94a8; }
.article-item h3 { font-size: 20px; margin-bottom: 10px; }
.article-item h3 a { color: #0c1b33; transition: color 0.2s; }
.article-item h3 a:hover { color: #165dff; }
.article-item p { color: #5b6980; font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.read-more { font-size: 14px; font-weight: 500; }

/* 分页 */
.pagination { display: flex; justify-content: center; margin-top: 36px; }
.pagination .pagination { display: flex; gap: 8px; }
.pagination li a, .pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid #e6ecf7; background: #fff; color: #5b6980; font-size: 14px; transition: all 0.2s; }
.pagination li a:hover { border-color: #165dff; color: #165dff; }
.pagination li.active span { background: linear-gradient(135deg, #165dff, #00c8ff); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px rgba(22,93,255,0.6); }
.pagination li.disabled span { opacity: 0.4; }
.pagination .controls { border: none; background: none; font-size: 13px; color: #8a94a8; }
.pagination .controls input { width: 48px; height: 30px; text-align: center; border: 1px solid #e6ecf7; border-radius: 6px; margin: 0 4px; }

/* 文章详情页 */
.container--narrow { max-width: 820px; }
.article-meta-bar { display: flex; gap: 24px; font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 8px; }

.article-desc { background: #eaf1ff; border-left: 4px solid #165dff; border-radius: 0 12px 12px 0; padding: 18px 24px; color: #0c1b33; font-size: 15px; line-height: 1.8; margin: 0 0 32px; }

.article-content { font-size: 16px; line-height: 1.9; color: #0c1b33; }
.article-content h2, .article-content h3 { margin: 32px 0 16px; color: #0c1b33; }
.article-content p { margin-bottom: 16px; }
.article-content img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { background: #f6f9ff; border-left: 4px solid #00c8ff; padding: 16px 20px; margin: 16px 0; border-radius: 0 8px 8px 0; color: #5b6980; }
.article-content a { color: #165dff; }
.article-content pre { background: #0c1b33; color: #e6ecf7; padding: 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.article-content code { background: #eaf1ff; color: #165dff; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.article-content pre code { background: none; color: inherit; padding: 0; }

.article-footer-nav { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e6ecf7; display: flex; justify-content: center; }
