.single-wrapper {
  display: flex;
  flex-direction: row;
}

.single-article-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.single-article {
  width: 100%;
  height: 100%;
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background: white;
  margin-bottom: 20px;
}

.article-widget-title {
  position: relative;
  padding-left: 28px;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.4;
  color: #111;
}

.article-widget-title::before,
.article-widget-title::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  transform: rotate(20deg);
  filter: drop-shadow(0 0 3px rgba(0, 153, 255, 0.5));
}

.article-widget-title::before {
  top: 0;
  left: 4px;
  background: linear-gradient(to bottom, #3f86ff, #00d0ff);
}

.article-widget-title::after {
  top: 8px;
  left: 12px;
  background: linear-gradient(to bottom, #6f3fff, #c700ff);
}

/*------------------------------------------------------------------------------------文章顶部 */

.single-article .article-header {
  position: relative;
}

.article-header .article-thumb {
  height: 300px;
  width: 100%;
  border-radius: 12px 12px 0px 0px;
}

.article-header .article-position-block {
  position: absolute;
  bottom: 0;
  padding: 15px;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.article-header .article-classify-meta {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.article-header .article-classify-meta .article-classify-meta-item a {
  margin-right: 5px;
  color: white;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 5px;
  /* var(--radius) */
}

.article-header .article-title {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}

/*-------------------------------------------------------文章用户信息 */

.single-article .article-user-meta {
  display: flex;
  justify-content: space-between;
  padding: 15px;
}

.article-user-meta .article-user-meta-left {
  display: flex;
  align-items: center;
}

.article-user-meta .article-user-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.article-user-meta .article-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.article-user-meta .article-user-info {
  margin-left: 10px;
}

.article-user-meta .article-user-name {
  font-size: 16px;
  font-weight: 600;
}

.article-user-meta .article-user-des {
  font-size: 12px;
}

.article-user-meta .article-user-stats {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.article-user-meta .article-user-stats span {
  margin-right: 10px;
  font-size: 14px;
  display: flex;
  align-items: baseline;
  font-weight: 500;
}

.article-user-meta .article-user-stats span i {
  margin-right: 2px;
}

.article-user-meta .article-user-actions button {
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 12px;
  margin-right: 5px;
}

.article-user-meta .article-user-actions button:nth-child(1) {
  background: var(--theme-back);
  color: #fff;
}

.article-user-meta .article-user-actions button:nth-child(2) {
  background: var(--theme-back);
  color: #fff;
}

/*------------------------------------------------------------------------------------文章内容 */

.single-article .article-content {
  padding: 15px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  font-size: 18px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  position: relative;
  padding-left: 1em;
  font-weight: bold;
  padding-bottom: 0.3em;
  line-height: 1.4;
}


.article-content h1::before,
.article-content h1::after,
.article-content h2::before,
.article-content h2::after,
.article-content h3::before,
.article-content h3::after,
.article-content h4::before,
.article-content h4::after,
.article-content h5::before,
.article-content h5::after,
.article-content h6::before,
.article-content h6::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 18px;
  border-radius: 3px;
  transform: translateY(-50%) rotate(20deg);
  top: 40%;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.1));
}


/* H1 标记 */
.article-content h1::before {
  left: 0;
  background: linear-gradient(to bottom, #3f86ff, #00d0ff);
}

.article-content h1::after {
  left: 8px;
  background: linear-gradient(to bottom, #6f3fff, #c700ff);
}

/* H2 标记 */
.article-content h2::before {
  left: 0;
  background: linear-gradient(to bottom, #ffb347, #ffcc33);
}

.article-content h2::after {
  left: 8px;
  background: linear-gradient(to bottom, #ff7e5f, #feb47b);
}

/* H3 标记 */
.article-content h3::before {
  left: 0;
  background: linear-gradient(to bottom, #00b09b, #96c93d);
}

.article-content h3::after {
  left: 8px;
  background: linear-gradient(to bottom, #43cea2, #185a9d);
}

/* H4 - H6 标记 */
.article-content h4::before {
  left: 0;
  background: linear-gradient(to bottom, #fc466b, #3f5efb);
}

.article-content h5::before {
  left: 0;
  background: linear-gradient(to bottom, #ff9f43, #ffd06e);
}

.article-content h6::before {
  left: 0;
  background: linear-gradient(to bottom, #ff5733, #ff8c69);
}

.article-content h4::after {
  content: "H4";
  color: #ff5f6d;
  font-size: 9px;
  left: 5px;
  width: 20px;
  top: 22px;
  transform: translateY(-60%);
  font-weight: 600;
}

.article-content h5::after {
  content: "H5";
  color: #ffc75f;
  font-size: 9px;
  left: 5px;
  width: 20px;
  top: 22px;
  transform: translateY(-60%);
  font-weight: 600;
}

.article-content h6::after {
  content: "H6";
  color: #ff7347;
  font-size: 9px;
  left: 5px;
  width: 20px;
  top: 22px;
  transform: translateY(-60%);
  font-weight: 600;
}

.article-content p {
  margin-bottom: 12px;
  line-height: 2;
}

.article-content ul,
.article-content ol {
  padding-left: 2em;
  margin-bottom: 12px;
}

.article-content ul {
  list-style: none;
  /* 去除原有符号 */
  padding-left: 0;
}

.article-content ul li {
  position: relative;
  padding-left: 20px;
  margin: 0.75em 0;
  font-weight: 500;
}

/* 自定义圆环标记 */
.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.4em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3f86ff, #9f80ff);
  /* 可替换颜色 */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

/* 内部小白圆，让它看起来是“圆环” */
.article-content ul li::after {
  content: "";
  position: absolute;
  left: 0.45em;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: white;
}

.article-content ol {
  list-style: none;
  counter-reset: diamond;
  padding-left: 0;
}

.article-content ol li {
  counter-increment: diamond;
  position: relative;
  padding-left: 25px;
  margin: 0.8em 0;
}

.article-content ol li::before {
  content: counter(diamond);
  position: absolute;
  top: 6px;
  left: 3px;
  width: 1.2em;
  height: 1.2em;
  line-height: 1.2em;
  font-size: 0.7em;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  transform: rotate(45deg);
  /* 变菱形 */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 数字内部要旋转回正 */
.article-content ol li::before>* {
  transform: rotate(-45deg);
}



.article-content ul li::marker {
  color: #409EFF;
}

.article-content ol li::marker {
  color: #e67e22;
}

.article-content li {
  margin: 0.5em 0;
}

.article-content a {
  color: #007acc;
  text-decoration: underline;
  transition: color 0.2s;
}

.article-content a:hover {
  color: #005fa3;
}

.article-content del {
  color: #999;
  text-decoration: line-through;
}

.article-content hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2em 0;
}

.article-content [style*="text-align: right"] {
  text-align: right !important;
}

.article-content [style*="text-align: left"] {
  text-align: left !important;
}

.article-content [style*="text-align: center"] {
  text-align: center !important;
}


/*------------------------------------------------------------------------------------文章底部 */

.single-article .article-footer {
  padding: 15px;
  position: relative;
}

.article-footer .article-footer-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.article-footer .article-footer-tags a {
  margin-right: 5px;
  margin-bottom: 5px;
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: #fff;
}

.article-footer .article-footer-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.article-footer .article-footer-actions-right,
.article-footer .article-footer-actions-left {
  display: flex;
}

.article-footer .article-footer-actions-left span {
  margin-right: 10px;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  /* 浅灰 */
  transition: all 0.3s ease;
  cursor: pointer;
}

.article-footer .article-footer-actions-left span i {
  font-size: 16px;
  color: #6b7280;
  /* 深灰一点 */
  transition: color 0.3s ease;
}

.article-footer .article-footer-actions-left span:hover {
  background: #dbeafe;
  /* 淡蓝色 */
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  /* 柔和蓝色阴影 */
}

.article-footer .article-footer-actions-left span:hover i {
  color: #3b82f6;
  /* 蓝色主色调图标 */
}


.article-footer .article-footer-actions-left .liked-active i {
  color: #ff5733;
}

.article-footer .article-footer-actions-right span {
  margin-right: 10px;
  display: flex;
  align-items: baseline;
  font-size: 14px;
}

.article-footer .article-footer-actions-right span i {
  font-size: 14px;
  color: #6b7280;
  margin-right: 2px;
}

.article-footer .article-footer-other {
  position: absolute;
  top: 15px;
  right: 15px;
}

.article-footer .article-footer-other span i {
  padding: 5px;
  border-radius: 50%;
  font-size: 12px;
  background: rgb(243 244 246 / 1);
  color: #4b5563;
}

.article-footer .article-footer-other span i:hover {
  background: #4b5563;
  color: #fff;
  transition: all .3s;
}

.article-footer .article-footer-other:hover .article-footer-other-content {
  opacity: 1;
  display: block;
  transition: all .3s;
}

.article-footer .article-footer-other-content {
  position: absolute;
  bottom: 100%;
  right: 0;
  width: 100px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  padding: 10px;
  opacity: 0;
  display: none;
  transition: all .3s;
}

.article-footer .article-footer-other-content span {
  display: block;
  padding: 5px 0;
  font-size: 14px;
}

.article-footer .article-footer-other-content span:hover {
  background: rgba(0, 0, 0, .05);
  border-radius: 5px;
}

.article-footer .article-footer-other-content span i {
  margin-right: 5px;
  background: none;
}



/*------------------------------------------------------------------------------------文章版权 */

.single-article .article-copyright {
  padding: 15px;
  border-top: 1px solid rgba(0, 0, 0, .05);
  font-size: 14px;
}

/*------------------------------------------------------------------------------------上下一篇文章 */

.single-article-wrapper .article-prev-next {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  color: #444;

}

.article-prev-next .article-prev,
.article-prev-next .article-next {
  flex: 1;
  transition: all 0.3s ease;
  width: 50%;
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: 6px;
  /* var(--radius) */
}

.article-prev-next .article-prev-thumb,
.article-prev-next .article-next-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  /* var(--radius) */
  z-index: -1;
}

.article-prev-next .glass-overlay,
.article-next-next .glass-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(32, 30, 30, 0.475);
  backdrop-filter: blur(8px);
  z-index: 1;
  border-radius: 6px;
  /* var(--radius) */
}

.article-prev-next .article-prev-content,
.article-prev-next .article-next-content {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  z-index: 2;
}

.article-prev-next .article-prev-classify a,
.article-prev-next .article-next-classify a {
  font-size: 12px;
  color: #fff;
  margin-right: 10px;
}

.article-prev-next .article-prev-title,
.article-prev-next .article-next-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  margin-top: 5px;
  color: #fff;
}

.article-prev-next .article-prev-meta,
.article-prev-next .article-next-meta {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  color: #fff;
  width: 100%;
}

.article-prev-next .article-prev-meta a,
.article-prev-next .article-next-meta a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.article-prev-next .article-prev-meta a i,
.article-prev-next .article-next-meta a i {
  font-size: 12px;
  background: rgb(243 244 246 / 1);
  padding: 5px;
  border-radius: 50%;
}

.article-prev-next .article-prev-classify {
  display: flex;
}

.article-prev-next .article-next-classify {
  display: flex;
}

.article-prev-next .article-prev-title {
  text-align: left;
}

.article-prev-next .article-next-title {
  text-align: right;
}

.article-prev-next .article-prev-content {
  align-items: flex-start;
}

.article-prev-next .article-next-content {
  align-items: flex-end;
}

.article-prev-next .article-prev-meta a i {
  margin-right: 5px;
}

.article-prev-next .article-next-meta a i {
  margin-left: 5px;
}

/*------------------------------------------------------------------------------------相关推荐 */
.single-article-wrapper .article-recommend {
  margin: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, .05);
  width: 100%;
}

.single-article-wrapper .article-recommend-content {
  width: 100%;
  padding: 15px;
  background: #fff;
  margin: 10px 0px;
}

.single-article-wrapper .swiper-wrapper {
  width: calc(var(--wrapper-width) 30px);
}

.single-article-wrapper .recommend-swiper {
  width: 100%;
}

.single-article-wrapper .swiper-slide {
  width: 215px !important;
  height: 120px !important;
}

.article-recommend .item-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.article-recommend .item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  border-radius: 6px;
  /* var(--radius) */
}

.article-recommend .item-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(32, 30, 30, 0.475);
  backdrop-filter: blur(8px);
  z-index: 1;
  opacity: 0;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.article-recommend .item-content {
  padding: 10px;
  background: rgba(0, 0, 0, .05);
  position: relative;
  height: 100%;
  z-index: 2;
  display: flex;
  opacity: 0;
  transition: all 0.3s ease;
  flex-direction: column;
  justify-content: space-between;
}

.article-recommend .item-wrapper:hover .item-overlay {
  opacity: 1;
  transition: all 0.3s ease;
}

.article-recommend .item-wrapper:hover .item-content {
  opacity: 1;
  transition: all 1.2s ease;
}

.article-recommend .item-content .item-user {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.article-recommend .item-content .item-user .item-user-avatar {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
}

.article-recommend .item-content .item-user .item-user-name {
  font-size: 14px;
  margin-left: 5px;
  color: #fff;
}

.article-recommend .item-content .item-text {
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  /* 最多两行，超出省略 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 5px;
  color: #fff;
}

.article-recommend .item-content .item-meta {
  display: flex;
  justify-content: space-between;
  color: #fff;
}

.article-recommend .item-content .item-meta span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}

.article-recommend .item-content .item-meta span i {
  margin-right: 5px;
  font-size: 12px;
  color: #fff;
}

.article-recommend .item-title {
  position: absolute;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  width: 100%;
  bottom: 0px;
  left: 0px;
  padding: 10px;
  font-size: 16px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/*-------------------------------------------------评论 */
.single-article-wrapper .article-comment {
  margin: 10px 0px;
  width: 100%;
}

.article-comment .article-comment-content {
  width: 100%;
  margin: 10px 0px;
}