/* ── qsina 站点专属样式 ── */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; color: #333; background: #f5f5f5; line-height: 1.6; }
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #e4393c; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== Header 导航栏 ===== */
.header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.header_main { max-width: 1200px; margin: 0 auto; }
.header_main .wrapper { display: flex; align-items: center; padding: 0; height: 60px; }
.header .logo { flex-shrink: 0; margin-right: 30px; }
.header .logo img { height: 36px; }
.header .header_menu { flex: 1; }
.header .header_menu .menu { display: flex; align-items: center; gap: 0; }
.header .header_menu .menu li a { display: block; padding: 0 16px; height: 60px; line-height: 60px; font-size: 15px; color: #333; white-space: nowrap; }
.header .header_menu .menu li.current-menu-item a,
.header .header_menu .menu li a[aria-current="page"] { color: #e4393c; font-weight: 600; border-bottom: 2px solid #e4393c; }
.header .header_menu .menu li a:hover { color: #e4393c; }

/* 右侧按钮 */
.header_btn { flex-shrink: 0; margin-left: auto; }
.header_btn .menu { display: flex; align-items: center; gap: 8px; }
.header_btn .menu li a { display: block; padding: 6px 14px; font-size: 13px; border-radius: 3px; }
.header_btn .search a { padding: 6px 10px; }
.header_btn .search .icon { width: 20px; height: 20px; fill: #666; }
.header_btn .contribute_btn a { background: #e4393c; color: #fff; }
.header_btn .contribute_btn a:hover { background: #c81623; color: #fff; }
.header_btn .login a, .header_btn .reg a { color: #666; border: 1px solid #ddd; }
.header_btn .login a:hover, .header_btn .reg a:hover { color: #e4393c; border-color: #e4393c; }

/* 移动端菜单按钮 */
.btn.menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.btn.menu .icon { width: 24px; height: 24px; fill: #333; }
.btn.menu .close { width: 24px; height: 24px; fill: #333; display: none; }
.circle.menu { display: none; }
.btn.login { display: none; }

/* ===== Container 主容器 ===== */
.container { max-width: 1200px; margin: 0 auto; }
.wrapper { max-width: 1200px; margin: 0 auto; }

/* ===== Banner 分类横幅 ===== */
.crumbs_img { position: relative; background: linear-gradient(135deg, #f0f0f0 25%, transparent 25%) -10px 0, linear-gradient(225deg, #f0f0f0 25%, transparent 25%) -10px 0, linear-gradient(315deg, #f0f0f0 25%, transparent 25%), linear-gradient(45deg, #f0f0f0 25%, transparent 25%); background-size: 20px 20px; background-color: #e8e8e8; padding: 20px; overflow: hidden; }
.crumbs_img .bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.15); pointer-events: none; }
.crumbs_con { position: relative; z-index: 1; }
.crumbs_con h1 { font-size: 32px; font-weight: 700; color: #333; margin-bottom: 10px; }
.crumbs_con p { font-size: 15px; color: #888; }

/* ===== 面包屑 ===== */
.crumbs { background: #fff; border-bottom: 1px solid #eee; padding: 8px; }
.crumbs .wrapper { display: flex; align-items: center; font-size: 13px; color: #999; }
.crumbs .icon { width: 14px; height: 14px; fill: #999; vertical-align: middle; margin-right: 4px; }
.crumbs a { color: #666; }
.crumbs a:hover { color: #e4393c; }
.crumbs .current { color: #333; font-weight: 500; }
.crumbs .count { margin-left: auto; color: #999; }
.crumbs .count b { color: #e4393c; }

/* ===== 内容区 ===== */
.content { padding: 10px 0; }
.content_left { background: #fff; border-radius: 4px; }

/* ===== 文章列表 ===== */
.ajaxposts { padding: 0; }
.ajaxpost { border-bottom: 1px solid #f0f0f0; }
.ajaxpost:last-child { border-bottom: none; }
.post_main { display: flex; padding: 20px; gap: 20px; align-items: flex-start; }
.post_main.simple { flex-direction: row; }
.imgeffect { flex-shrink: 0; width: 200px; height: 140px; overflow: hidden; border-radius: 4px; display: block; }
.imgeffect .thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.imgeffect:hover .thumb { transform: scale(1.05); }
.post_content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post_content h2 { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.post_content h2 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post_content h2 a:hover { color: #e4393c; }
.post_content .is_category { display: inline-block; margin-bottom: 8px; }
.post_content .is_category a { font-size: 12px; color: #e4393c; background: #fef0f0; padding: 2px 8px; border-radius: 3px; }
.post_content .is_category a:hover { background: #e4393c; color: #fff; }
.post_content .excerpt { font-size: 14px; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }

/* 文章信息栏 */
.postinfo { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #999; }
.postinfo .left { display: flex; align-items: center; gap: 12px; }
.postinfo .right { display: flex; align-items: center; gap: 12px; }
.author { display: flex; align-items: center; gap: 6px; }
.author .avatar { width: 20px; height: 20px; border-radius: 50%; }
.date { display: flex; align-items: center; gap: 4px; }
.date .icon { width: 14px; height: 14px; fill: #bbb; }
.view .icon, .comment .icon, .like .icon { width: 14px; height: 14px; fill: #bbb; }

/* ===== 分页 ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 30px 20px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 6px 14px; font-size: 13px; border-radius: 3px; border: 1px solid #e0e0e0; color: #666; background: #fff; transition: all .2s; }
.pagination a:hover { color: #e4393c; border-color: #e4393c; }
.pagination .page_nowindex { background: #e4393c; color: #fff; border-color: #e4393c; cursor: default; }
.pagination .page_prev, .pagination .page_next { font-weight: 500; }
.pagination .page_index, .pagination .page_last { font-size: 12px; }
.pagination .page_ellipsis { border: none; background: none; color: #999; cursor: default; }

/* ===== 详情页 ===== */
.entry { padding: 0; }

/* 详情页面包屑 */
.entry .crumbs { background: none; border-bottom: none; padding: 15px 20px; }

/* 文章头部 */
.post_header { padding: 20px 30px 10px; }
.post_header h1 { font-size: 26px; font-weight: 700; line-height: 1.4; color: #222; margin-bottom: 15px; }
.post_header .postinfo { padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }

/* 正文区 */
#scroll_post { padding: 20px 30px; }
.content_post { font-size: 16px; line-height: 1.9; color: #333; }
.content_post p { margin-bottom: 16px; }
.content_post img { max-width: 100%; height: auto; border-radius: 4px; margin: 10px 0; }
.content_post blockquote { border-left: 4px solid #e4393c; background: #fafafa; padding: 16px 20px; margin: 20px 0; font-size: 15px; color: #666; border-radius: 0 4px 4px 0; }
.content_post .ad { min-height: 60px; background: #f9f9f9; border: 1px dashed #e0e0e0; border-radius: 4px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 13px; }
.pic_center { text-align: center; }
.pic_center img { display: inline-block; max-width: 100%; }

/* 标签 */
.salong_tags { padding: 20px 30px; border-top: 1px solid #f0f0f0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.salong_tags a { display: inline-block; padding: 4px 12px; font-size: 13px; color: #666; background: #f5f5f5; border-radius: 20px; transition: all .2s; }
.salong_tags a:hover { color: #fff; background: #e4393c; }

/* 版权声明 */
.post_copyright { padding: 20px 30px; border-top: 1px solid #f0f0f0; background: #fafafa; }
.post_copyright p { font-size: 13px; color: #888; line-height: 1.8; margin-bottom: 6px; }
.post_copyright a { color: #e4393c; }

/* 作者信息 */
.post_author { display: flex; align-items: center; gap: 15px; padding: 20px 30px; border-top: 1px solid #f0f0f0; }
.author_avatar img { width: 50px; height: 50px; border-radius: 50%; }
.author_info { display: flex; flex-direction: column; gap: 4px; }
.author_name { font-size: 16px; font-weight: 600; color: #333; }
.author_name:hover { color: #e4393c; }
.author_stats { font-size: 13px; color: #999; }

/* 分享按钮 */
.move_share { display: flex; align-items: center; gap: 10px; padding: 15px 30px; border-top: 1px solid #f0f0f0; }
.move_share span { font-size: 14px; color: #666; }
.move_share .share_qr { font-size: 14px; color: #e4393c; }
.move_share .share_qr:hover { text-decoration: underline; }

/* 点赞 */
.post_like { padding: 15px 30px; border-top: 1px solid #f0f0f0; text-align: center; }
.like_btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 24px; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 14px; color: #666; transition: all .2s; }
.like_btn .icon { width: 18px; height: 18px; fill: #999; }
.like_btn:hover { border-color: #e4393c; color: #e4393c; }
.like_btn:hover .icon { fill: #e4393c; }

/* 上一篇/下一篇 */
.prevnext { padding: 20px 30px; margin-top: 10px; }
.prevnext .prev, .prevnext .next { font-size: 14px; color: #666; line-height: 2; }
.prevnext .prev span, .prevnext .next span { color: #999; }
.prevnext a { color: #333; }
.prevnext a:hover { color: #e4393c; }

/* 相关推荐/推荐阅读 左右两栏 */
.related_wrap { display: flex; gap: 30px; padding: 20px 30px; border-top: 1px solid #f0f0f0; }
.related_col { flex: 1; min-width: 0; }
.section_title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #e4393c; display: inline-block; }
.related_list { list-style: none; }
.related_list li { padding: 8px 0; border-bottom: 1px dashed #f0f0f0; }
.related_list li:last-child { border-bottom: none; }
.related_list li a { display: block; font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.6; }
.related_list li a:hover { color: #e4393c; }
.no_data { font-size: 14px; color: #999; padding: 10px 0; }

/* 评论区 */
#comments { padding: 20px 30px; border-top: 1px solid #f0f0f0; }
.comments_title { font-size: 18px; font-weight: 600; margin-bottom: 15px; color: #333; }

/* ===== Footer 页脚 ===== */
.footer { background: #2c2c2c; color: #999; margin-top: 40px; }
.footer .wrapper { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.footer .footer_menu { margin-bottom: 12px; }
.footer .footer_menu .menu { display: flex; gap: 20px; }
.footer .footer_menu .menu li a { color: #ccc; font-size: 14px; }
.footer .footer_menu .menu li a:hover { color: #fff; }
.footer .footer_contact { font-size: 13px; margin-bottom: 10px; }
.footer .copyright { font-size: 12px; color: #777; }
.footer .copyright a { color: #777; }
.footer .copyright a:hover { color: #ccc; }

/* ===== 广告位 ===== */
.ad { min-height: 80px; background: #f9f9f9; border: 1px dashed #e0e0e0; border-radius: 4px; margin: 15px 20px; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 13px; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .header_main .wrapper { padding: 0; }
  .header .header_menu { display: none; }
  .header_btn { display: none; }
  .btn.menu { display: block; }
  .btn.login { display: block; }
  .btn.login .icon { width: 24px; height: 24px; fill: #333; }

  .post_main { flex-direction: column; padding: 15px; }
  .imgeffect { width: 100%; height: 180px; }
  .post_header h1 { font-size: 20px; }
  #scroll_post, .post_copyright, .post_author, .move_share, .post_like, .prevnext, .related_wrap, #comments { padding-left: 15px; padding-right: 15px; }
  .related_wrap { flex-direction: column; gap: 20px; }
  .salong_tags { padding-left: 15px; padding-right: 15px; }
  .crumbs_con h1 { font-size: 24px; }
}
