@import url(https://cdn.cnblogs.com/npm/font-awesome/css/font-awesome.min.css);

/* ==========================================
 * 精致码农风格 - 最终优化版
 * 基于博主"精致码农"的优秀设计进行优化
 * ========================================== */

/* **********************
 * CSS变量定义
 * **********************/
:root {
  --text: #333333;
  --background: #e6ecf0;
  --primary: #21759b;
  --accent: #00b38b;
  --code-bg: #282c34;
  --blockquote-bg: #f3f5f7;
  --card-bg: #ffffff;
  --border-color: #cccccc;
  --shadow-light: rgba(100, 100, 100, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.16);
}

:root[data-theme*='dark'] {
  --text: #e0e0e0;
  --background: #1a1a1a;
  --primary: #4fc3f7;
  --accent: #4ecdc4;
  --code-bg: #282c34;
  --blockquote-bg: #2a2a2a;
  --card-bg: #252525;
  --border-color: #444444;
  --shadow-light: rgba(0, 0, 0, 0.5);
  --shadow-medium: rgba(0, 0, 0, 0.3);
}

/* **********************
 * 全局样式重置
 * **********************/
*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
main,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}

*[hidden] {
  display: none;
}

body {
  line-height: 1;
}

menu,
ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* **********************
 * 整体布局
 * **********************/
body {
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* 图片渲染优化 */
img {
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

/* 主容器 */
#home {
  max-width: 1400px;
  padding: 20px 40px;
  background: transparent;
  box-shadow: none;
  margin: 0 auto;
  width: auto;
}

#main {
  margin-top: 20px;
}

/* 主内容区 - 浮动布局 */
#mainContent {
  float: left;
  width: calc(100% - 320px);
  min-height: 200px;
}

#mainContent .forFlow {
  padding-right: 30px;
}

/* 侧边栏 - 右浮动 */
#sideBar {
  width: 280px;
  margin-top: 0px;
  float: right;
  min-height: 200px;
}

#sideBar a {
  color: inherit;
}

/* 清除浮动 */
#main::after {
  content: "";
  display: table;
  clear: both;
}

/* 非阅读区域去掉背景 */
.newsItem,
.catListEssay,
.catListLink,
.catListNoteBook,
.catListTag,
.catListPostCategory,
.catListPostArchive,
.catListImageCategory,
.catListArticleArchive,
.catListView,
.catListFeedback,
.mySearch,
.catListComment,
.catListBlogRank,
.catList,
.catListArticleCategory {
  background-color: transparent;
}

/* **********************
 * 博客页首
 * **********************/

/* 隐藏系统标题 */
#blogTitle {
  display: none;
}

/* 顶部通告条 - 优化设计 */
.c-notice {
  padding: 10px 0;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  font-size: 14px;
  text-align: center;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.c-notice > div {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-notice a {
  color: #fff;
  text-decoration: none;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-left: 8px;
  display: inline-block;
}

.c-notice a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* 头像和社交信息 */
.c-portrait {
  text-align: center;
  padding: 35px 0 45px;
  background: #39424b;
  color: #ffffff;
  margin-bottom: 0;
  position: relative;
}

.c-portrait > img {
  display: inline-block;
  height: 110px;
  width: 110px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.c-portrait h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 12px 0 6px;
  letter-spacing: 0.5px;
}

.c-portrait h1 a {
  color: #ffffff;
}

.c-portrait h2 {
  font-size: 15px;
  margin: 8px 0 12px;
  color: #b8c5d0;
  font-weight: 400;
}

.c-social {
  margin-top: 8px;
}

.c-social a {
  color: #8899a6;
  display: inline-block;
  vertical-align: middle;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.c-social a:hover {
  color: #ffffff;
}

/* **********************
 * 导航栏 - 横向设计 + 统计信息同行
 * **********************/

#navigator {
  padding: 0;
  border-bottom: none;
  background: var(--card-bg);
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#navList {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 8px 0 8px 12px;
  flex: 1;
  min-width: 400px;
}

#navList li {
  flex: 0 0 auto;
}

#navList a {
  padding: 14px 24px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
  color: var(--text);
  position: relative;
}

#navList a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

#navList a:hover {
  color: var(--primary);
}

#navList a:hover::after {
  width: 70%;
}

/* 博客统计信息 - 与导航栏同行，字体加大 */
.blogStats {
  display: flex;
  gap: 16px;
  font-size: 15px;
  color: #555;
  padding: 0 24px;
  white-space: nowrap;
  font-weight: 500;
}

.blogStats span {
  display: inline-block;
}

/* **********************
 * 侧边栏
 * **********************/

.newsItem .catListTitle {
  display: none;
}

.sidebar-block {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-block .catListTitle {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(33, 117, 155, 0.2);
}

.sidebar-block li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* **********************
 * 文章列表
 * **********************/

#mainContent .day {
  padding: 24px 32px;
  background: var(--card-bg);
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#mainContent .day:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

#mainContent .day .postTitle {
  font-size: 24px;
  margin: 0 0 16px 0;
  padding-left: 0;
  font-weight: 600;
  line-height: 1.4;
}

#mainContent .day .postTitle a {
  display: inline-block;
  color: var(--text);
  transition: color 0.3s ease;
}

#mainContent .day .postTitle a:hover {
  color: var(--primary);
}

.postCon,
.c_b_p_desc {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin: 16px 0;
}

.postDesc {
  font-size: 13px;
  color: #999;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.topicListFooter {
  margin-right: 0;
  margin-bottom: 20px;
  text-align: center;
}

.pager {
  margin-right: 0;
}

.pager a {
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 6px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.pager a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* **********************
 * 文章详情页
 * **********************/

.post {
  background: var(--card-bg);
  padding: 0 80px 80px;
  box-shadow: 0 2px 12px var(--shadow-light);
  border-radius: 8px;
  max-width: 100%;
}

/* 文章标题 - 去掉竖线 */
.postTitle {
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.3;
  box-sizing: border-box;
  padding: 35px 0 30px 0;
  font-size: 30px;
  border-bottom: 3px solid var(--primary);
}

.postTitle a {
  color: var(--text);
}

.postTitle a:hover {
  color: var(--primary);
}

/* 文章正文 */
.postBody,
.postBody p,
.postCon p {
  font-size: 16px;
  text-indent: 0;
  line-height: 2.0;
  text-align: justify;
  letter-spacing: 0.02em;
  color: var(--text);
}

#cnblogs_post_body {
  padding-bottom: 10px;
}

#cnblogs_post_body img {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin: 20px 0;
}

#cnblogs_post_body p {
  margin-top: 0;
  margin-bottom: 20px;
}

#cnblogs_post_body p strong {
  font-weight: 600;
  color: #e5710a;
}

#cnblogs_post_body p em {
  font-style: normal;
  color: #e5710a;
}

/* 标题样式 - 保留编号但去掉竖线 */
h1 {
  counter-reset: h2counter;
}

h2 {
  counter-reset: h3counter;
}

h3 {
  counter-reset: h4counter;
}

/* H2标题 - 单行编号 + 底部装饰线 */
#cnblogs_post_body h2:before {
  counter-increment: h2counter;
  content: counter(h2counter) ". ";
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

#cnblogs_post_body h2 {
  line-height: 1.5;
  margin-top: 45px;
  margin-bottom: 28px;
  font-size: 24px;
  color: var(--accent);
  text-align: left;
  background-image: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  background-position: left bottom;
  background-size: 100% 3px;
  background-repeat: no-repeat;
  padding-bottom: 12px;
  font-weight: 600;
}

/* H3标题 - 柔和的左边框 */
#cnblogs_post_body h3 {
  margin-top: 36px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #19b6d7;
  text-align: left;
  padding-left: 20px;
  border-left: 4px solid rgba(25, 182, 215, 0.5);
  background: linear-gradient(90deg, rgba(25, 182, 215, 0.08) 0%, transparent 100%);
  padding-top: 8px;
  padding-bottom: 8px;
}

#cnblogs_post_body h4 {
  margin-top: 32px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* 列表样式 */
#cnblogs_post_body ol,
#cnblogs_post_body ul {
  padding-left: 28px;
  margin-left: 0;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.02);
  padding-top: 16px;
  padding-bottom: 16px;
  padding-right: 16px;
  border-radius: 6px;
  border-left: 3px solid rgba(33, 117, 155, 0.3);
}

:root[data-theme*='dark'] #cnblogs_post_body ol,
:root[data-theme*='dark'] #cnblogs_post_body ul {
  background: rgba(255, 255, 255, 0.03);
}

#cnblogs_post_body ol li,
#cnblogs_post_body ul li {
  margin-bottom: 10px;
  line-height: 1.8;
}

#cnblogs_post_body ol li:last-child,
#cnblogs_post_body ul li:last-child {
  margin-bottom: 0;
}

/* 引用块 - 修复多余边框 */
.postBody blockquote,
#cnblogs_post_body blockquote {
  background-image: none !important;
  background: var(--blockquote-bg) !important;
  border-radius: 6px !important;
  border: none !important;
  border-left: 4px solid var(--primary) !important;
  line-height: 1.8 !important;
  color: #666 !important;
  padding: 20px 24px !important;
  margin: 24px 0 !important;
  box-shadow: none !important;
}

.postBody blockquote p,
#cnblogs_post_body blockquote p {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.postBody blockquote a,
#cnblogs_post_body blockquote a {
  color: #666 !important;
}

:root[data-theme*='dark'] .postBody blockquote,
:root[data-theme*='dark'] #cnblogs_post_body blockquote {
  background: var(--blockquote-bg) !important;
  color: #999 !important;
}

/* 行内代码 */
#cnblogs_post_body p > code,
#cnblogs_post_body li > code {
  font-size: 14px !important;
  letter-spacing: 0 !important;
  word-wrap: break-word !important;
  word-break: break-all !important;
  padding: 3px 6px !important;
  border: none !important;
  border-radius: 4px !important;
  color: #19b6d7 !important;
  background-color: rgba(27, 31, 35, 0.08) !important;
  font-family: "SFMono-Regular", "Consolas", "Monaco", "Menlo", monospace !important;
}

:root[data-theme*='dark'] #cnblogs_post_body p > code,
:root[data-theme*='dark'] #cnblogs_post_body li > code {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #4fc3f7 !important;
}

/* 代码块 - 修复样式 */
pre {
  margin-bottom: 24px;
}

pre code {
  padding: 16px 20px !important;
  display: block !important;
}

/* 修复代码块样式 - 添加语言标签支持 */
.cnblogs-markdown .hljs,
code.hljs,
pre code {
  display: block !important;
  border-radius: 6px !important;
  overflow-x: auto !important;
  border: none !important;
  font-family: "Consolas", "Monaco", "Courier New", monospace !important;
  padding: 16px 20px !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
  color: #abb2bf !important;
  background: #282c34 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

/* 代码块语言标签 */
.cnblogs-markdown pre {
  position: relative;
}

.cnblogs-markdown pre::before {
  content: attr(data-language);
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  color: #61aeee;
  padding: 4px 12px;
  border-radius: 0 6px 0 6px;
  font-size: 12px;
  font-family: "Consolas", monospace;
}

/* 代码高亮主题 - Atom One Dark */
.hljs-comment,
.hljs-quote {
  color: #5c6370 !important;
  font-style: italic !important;
}

.hljs-doctag,
.hljs-keyword,
.hljs-formula {
  color: #c678dd !important;
}

.hljs-section,
.hljs-name,
.hljs-selector-tag,
.hljs-deletion,
.hljs-subst {
  color: #e06c75 !important;
}

.hljs-literal {
  color: #56b6c2 !important;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta-string {
  color: #98c379 !important;
}

.hljs-built_in,
.hljs-class .hljs-title {
  color: #e6c07b !important;
}

.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-number {
  color: #d19a66 !important;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-title {
  color: #61aeee !important;
}

.hljs-emphasis {
  font-style: italic !important;
}

.hljs-strong {
  font-weight: bold !important;
}

.hljs-link {
  text-decoration: underline !important;
}

/* 链接样式 */
.postBody a:link,
.postBody a:visited,
.postBody a:active {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.postBody a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 文章底部信息 */
.postDesc {
  margin-top: 0;
}

#BlogPostCategory,
#EntryTag {
  margin-top: 16px;
  font-size: 14px;
}

#BlogPostCategory a,
#EntryTag a {
  display: inline-block;
  padding: 4px 12px;
  margin: 4px 8px 4px 0;
  background: rgba(33, 117, 155, 0.1);
  border-radius: 16px;
  color: var(--primary);
  transition: all 0.3s ease;
}

#BlogPostCategory a:hover,
#EntryTag a:hover {
  background: var(--primary);
  color: white;
}

/* 操作按钮 */
#green_channel {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 24px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  height: 56px;
  background: var(--card-bg);
  transition: all 0.3s ease;
}

#green_channel:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#green_channel > a {
  color: var(--primary);
  font-weight: 600;
  line-height: 1;
  transition: all 0.3s ease;
}

#green_channel > a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

#green_channel img {
  height: 28px;
  width: 28px;
}

/* **********************
 * 评论区
 * **********************/

.feedbackItem {
  margin: 24px 0;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.feedbackCon {
  font-size: 15px;
  border-bottom: 0;
  padding: 16px 8px 0 8px;
  text-align: justify;
  line-height: 1.8;
}

.blog_comment_body a {
  color: #0066cc;
}

.blog_comment_body strong {
  font-weight: 600;
}

.blog_comment_body img {
  max-width: 100%;
  max-height: 2000px;
  border-radius: 6px;
}

.comment_vote {
  padding-right: 2px;
  font-size: 14px;
  margin-top: 12px;
}

.comment_vote a.comment_digg {
  color: #ff8800;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.comment_vote a.comment_digg:hover {
  color: #ff6600;
}

/* 评论输入框 */
#tbCommentBody {
  padding: 0;
}

div.commentform textarea {
  height: 180px;
  font-size: 15px;
  line-height: 1.8;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.comment_textarea {
  width: 100%;
}

/* **********************
 * 文章评分 - 优化样式
 * **********************/

#div_digg {
  position: fixed;
  right: 5%;
  bottom: 30px;
  width: auto;
  cursor: pointer;
  z-index: 100;
}

#digg_tips {
  background: transparent;
}

#digg_tips a {
  display: none !important;
}

#div_digg .diggit {
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 80px;
  height: 80px;
  padding: 0;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  font-size: 14px;
}

#div_digg .diggit:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

#div_digg .diggit .diggnum {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

#div_digg .buryit {
  display: none;
}

/* 签名 */
#MySignature {
  margin-top: 60px;
  padding: 20px;
  background: var(--blockquote-bg);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

/* **********************
 * 移动端适配
 * **********************/

@media (max-width: 1600px) {
  .post {
    padding: 0 60px 60px;
  }
}

@media (max-width: 1366px) {
  #home {
    max-width: 1200px;
    padding: 20px 30px;
  }

  .c-notice > div {
    max-width: 1200px;
    padding: 0 30px;
  }

  #mainContent {
    width: calc(100% - 310px);
  }
}

@media (max-width: 1024px) {
  .post {
    padding: 0 40px 50px;
  }

  #div_digg {
    right: 20px;
    bottom: 20px;
  }

  #div_digg .diggit {
    width: 70px;
    height: 70px;
  }

  #home {
    max-width: 100%;
    padding: 20px;
  }
}

@media (max-width: 767px) {
  #home {
    padding-left: 10px;
    padding-right: 10px;
  }

  .post {
    padding: 0 20px 40px;
  }
  #div_digg {
    right: 10px;
    bottom: 10px;
  }

  #div_digg .diggit {
    width: 60px;
    height: 60px;
    font-size: 12px;
  }

  #div_digg .diggit .diggnum {
    font-size: 20px;
  }

  #mainContent .forFlow {
    padding-right: 0;
  }

  #sideBar,
  #blog-comments-placeholder {
    padding: 0 15px;
  }

  #cnblogs_post_body h2:before {
    font-size: 28px;
  }

  #cnblogs_post_body h2 {
    font-size: 20px;
  }

  #cnblogs_post_body h3 {
    font-size: 18px;
  }

  .c-portrait {
    padding: 30px 0 40px;
  }

  .c-portrait > img {
    height: 100px;
    width: 100px;
  }

  .blogStats {
    font-size: 12px;
    padding: 0 12px;
  }
}

/* **********************
 * 其他优化
 * **********************/

/* 作者信息 */
#author_profile_detail {
  display: inline-block;
}

.author_avatar {
  height: 60px;
  width: 60px;
  margin-right: 12px;
  border-radius: 50%;
}

#author_profile_info {
  margin: 20px 0;
}

/* 评论框标题 */
.commentbox_title_left {
  display: inline-block;
}

.commentbox_title_right {
  float: right;
  display: none;
}

.comment_icon {
  display: inline-block;
}

/* 点赞提示 */
#please_like {
  background: var(--card-bg);
  color: #e74c3c;
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #e74c3c;
}

/* Markdown表格 */
.cnblogs-markdown table {
  margin-bottom: 28px;
  border-collapse: collapse;
  width: 100%;
}

.cnblogs-markdown table th,
.cnblogs-markdown table td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
}

.cnblogs-markdown table th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

/* 图片优化 */
.cnblogs-markdown p > img {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  margin: 20px 0;
}

/* 选中文本样式 */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 链接悬停效果 */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 标题字体权重优化 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

/* **********************
 * 侧边栏对齐修复
 * **********************/

#sidebar_news {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}

.newsItem {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  padding-top: 0 !important;
}

.newsItem .catListTitle {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding-top: 0 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
}

/* 确保主内容区和侧边栏顶部对齐 */
#mainContent .day:first-child,
#mainContent .post {
  margin-top: 0 !important;
}

