/*
 * 自定义正文内容样式
 * 为博客文章内容添加精美样式
 */

/* 基础正文样式 */
.single-content {
  position: relative;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--bs-gray-900);
  padding: 1.5rem;
  background: var(--bs-white);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 100%;
  margin: 0 auto;
}

[data-bs-theme="dark"] .single-content {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.single-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #cbfdb1, #acbff1, #efa7ec, #ffd6a5, #ffadad);
  background-size: 300% 100%;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 内容段落样式 */
.single-content p {
  margin-bottom: 1.2rem;
  text-align: justify;
  position: relative;
  padding-left: 0.2rem;
  transition: all 0.3s ease;
}

.single-content p:hover {
  transform: translateX(3px);
}

/* 标题样式 */
.single-content h1,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content h5,
.single-content h6 {
  position: relative;
  margin: 1.8rem 0 1rem;
  font-weight: 600;
  color: var(--bs-dark);
  padding-bottom: 0.5rem;
  overflow: hidden;
}

.single-content h1::after,
.single-content h2::after,
.single-content h3::after,
.single-content h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--bs-primary) 0%, rgba(216, 124, 255, 0.1) 100%);
  transform: translateX(-100%);
  animation: slide-in 0.6s ease-out forwards;
}

@keyframes slide-in {
  to { transform: translateX(0); }
}

.single-content h2 {
  font-size: 1.6rem;
  padding-left: 1rem;
  border-left: 4px solid var(--bs-primary);
}

.single-content h3 {
  font-size: 1.4rem;
}

.single-content h4 {
  font-size: 1.2rem;
}

/* 列表样式 */
.single-content ul,
.single-content ol {
  margin: 1rem 0 1.5rem 1.2rem;
  padding-left: 1rem;
}

.single-content ul {
  list-style: none;
}

.single-content ul li {
  position: relative;
  padding: 0.3rem 0;
  margin-bottom: 0.5rem;
}

.single-content ul li::before {
  content: "✦";
  position: absolute;
  left: -1.2rem;
  color: var(--bs-primary);
  font-weight: bold;
  transition: all 0.3s ease;
}

.single-content ul li:hover::before {
  transform: scale(1.4) rotate(15deg);
  color: #f59dff;
}

.single-content ol {
  counter-reset: item;
  list-style: none;
}

.single-content ol li {
  position: relative;
  padding: 0.3rem 0;
  margin-bottom: 0.5rem;
  counter-increment: item;
}

.single-content ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: -1.5rem;
  font-weight: 600;
  color: var(--bs-primary);
  transition: all 0.3s ease;
}

.single-content ol li:hover::before {
  transform: translateX(3px);
  color: #f59dff;
}

/* 引用样式 */
.single-content blockquote {
  background: rgba(var(--bs-primary-rgb), 0.05);
  border-left: 4px solid var(--bs-primary);
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  position: relative;
  border-radius: 0 8px 8px 0;
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.single-content blockquote::after {
  content: '"';
  position: absolute;
  right: 10px;
  bottom: -20px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: rgba(var(--bs-primary-rgb), 0.1);
  z-index: 0;
}

.single-content blockquote p {
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.single-content blockquote p:last-child {
  margin-bottom: 0;
}

/* 图片样式 */
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: all 0.5s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 1.5rem auto;
}

.single-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 图片背景装饰 */
.single-content .wp-block-image {
  position: relative;
  margin: 2rem 0;
}

.single-content .wp-block-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--bs-primary);
  border-left: 2px solid var(--bs-primary);
  border-radius: 3px 0 0 0;
  z-index: -1;
}

.single-content .wp-block-image::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-bottom: 2px solid var(--bs-primary);
  border-right: 2px solid var(--bs-primary);
  border-radius: 0 0 3px 0;
  z-index: -1;
}

/* 链接样式 */
.single-content a {
  color: var(--bs-primary);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  padding: 0 2px;
}

.single-content a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--bs-primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.single-content a:hover {
  color: #f59dff;
}

.single-content a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* 代码样式 */
.single-content code {
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  background: rgba(var(--bs-primary-rgb), 0.1);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--bs-dark);
  font-size: 0.9em;
}

.single-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.2rem;
  border-radius: 8px;
  overflow-x: auto;
  position: relative;
  margin: 1.5rem 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.single-content pre::before {
  content: "代码块";
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(var(--bs-primary-rgb), 0.8);
  color: white;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0 8px 0 8px;
}

.single-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  display: block;
  overflow-x: auto;
}

/* 表格样式 */
.single-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.single-content table th,
.single-content table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.single-content table th {
  background: rgba(var(--bs-primary-rgb), 0.1);
  font-weight: 600;
  color: var(--bs-dark);
  position: relative;
}

.single-content table th:first-child {
  border-top-left-radius: 8px;
}

.single-content table th:last-child {
  border-top-right-radius: 8px;
}

.single-content table tbody tr {
  transition: all 0.3s ease;
}

.single-content table tbody tr:hover {
  background: rgba(var(--bs-primary-rgb), 0.05);
}

.single-content table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.single-content table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

/* 分割线样式 */
.single-content hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(var(--bs-primary-rgb), 0), rgba(var(--bs-primary-rgb), 0.75), rgba(var(--bs-primary-rgb), 0));
  margin: 2rem 0;
  position: relative;
}

.single-content hr::before {
  content: "✧";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bs-white);
  padding: 0 10px;
  color: var(--bs-primary);
  font-size: 1rem;
}

/* 首字下沉效果 */
/* .single-content p:first-of-type::first-letter {
  font-size: 3.5em;
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  color: var(--bs-primary);
  font-weight: bold;
  font-family: Georgia, serif;
} */

/* 暗黑模式适配 */
[data-bs-theme="dark"] .single-content {
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .single-content h1,
[data-bs-theme="dark"] .single-content h2,
[data-bs-theme="dark"] .single-content h3,
[data-bs-theme="dark"] .single-content h4,
[data-bs-theme="dark"] .single-content h5,
[data-bs-theme="dark"] .single-content h6 {
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .single-content pre {
  background: #1a1a1a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .single-content table th {
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .single-content hr::before {
  background: var(--bs-body-bg);
}

[data-bs-theme="dark"] .single-content code {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== DJXS 极致内容特效升华 v2.0 ===== */

/* 魔法光标样式 */
.magic-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--bs-primary), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--bs-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.7;
}

.magic-cursor.hover {
    transform: scale(2);
    background: radial-gradient(circle, var(--bs-accent), transparent);
}

/* 图片放大镜模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 0.3s ease;
    max-width: 90%;
    max-height: 90%;
}

.image-modal.show .image-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: var(--bs-danger);
    color: white;
    transform: scale(1.1);
}

/* 代码复制按钮 */
.code-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(var(--bs-primary-rgb), 0.8);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.code-copy-btn:hover {
    background: var(--bs-primary);
    transform: scale(1.05);
}

/* 卡片光效层 */
.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.post-list:hover .card-glare,
.sidebar-box:hover .card-glare {
    opacity: 1;
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 高级文字特效 */
.gradient-text-animated {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-accent), var(--bs-success), var(--bs-warning));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientTextShift 4s ease-in-out infinite;
}

@keyframes gradientTextShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 悬浮卡片特效 */
.floating-card {
    animation: floatingCard 6s ease-in-out infinite;
}

@keyframes floatingCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

/* 脉冲边框效果 */
.pulse-border {
    position: relative;
    overflow: hidden;
}

.pulse-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--bs-primary);
    border-radius: inherit;
    animation: pulseBorder 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseBorder {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* 文字打字机效果增强 */
.typewriter-enhanced {
    overflow: hidden;
    border-right: 3px solid var(--bs-primary);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.1em;
    animation:
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--bs-primary); }
}

/* 3D翻转卡片 */
.flip-card-3d {
    background-color: transparent;
    perspective: 1000px;
    height: 200px;
}

.flip-card-inner-3d {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-3d:hover .flip-card-inner-3d {
    transform: rotateY(180deg);
}

.flip-card-front-3d, .flip-card-back-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.flip-card-back-3d {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-accent));
    color: white;
    transform: rotateY(180deg);
}

/* 霓虹灯文字效果 */
.neon-text-effect {
    color: var(--bs-primary);
    text-shadow:
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px currentColor;
    animation: neonFlicker 2s ease-in-out infinite alternate;
}

@keyframes neonFlicker {
    from {
        text-shadow:
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor;
    }
    to {
        text-shadow:
            0 0 2px currentColor,
            0 0 5px currentColor,
            0 0 8px currentColor,
            0 0 12px currentColor;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .single-content {
        padding: 1rem;
        font-size: 0.95rem;
        max-width: 100%;
    }

    .single-content h2 {
        font-size: 1.4rem;
    }

    .single-content h3 {
        font-size: 1.2rem;
    }

    .magic-cursor,
    .cursor-trail {
        display: none;
    }

    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .image-modal-close {
        top: -30px;
        right: -30px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* 动画特效 */
.single-content .animated-text {
  display: inline-block;
  position: relative;
  color: var(--bs-primary);
}

.single-content .animated-text::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 8px;
  bottom: 0;
  left: 0;
  background-color: rgba(var(--bs-primary-rgb), 0.3);
  z-index: -1;
  transform: rotate(-2deg);
}

/* 内容加载动画 */
@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.single-content {
  animation: contentFadeIn 0.8s ease-out forwards;
}

/* 文章内小卡片样式 */
.single-content .info-card {
  background: rgba(var(--bs-primary-rgb), 0.05);
  border-radius: 12px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  position: relative;
  border-left: 4px solid var(--bs-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.single-content .info-card::before {
  content: 'ℹ️';
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--bs-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

[data-bs-theme="dark"] .single-content .info-card::before {
  background: var(--bs-dark);
}

/* 图片滤镜处理 */
.single-content img.filter-dream {
  filter: saturate(1.3) contrast(1.1);
}

.single-content img.filter-warm {
  filter: sepia(0.2) saturate(1.4) brightness(1.05);
}

.single-content img.filter-cool {
  filter: saturate(1.2) hue-rotate(-10deg);
}

/*
 * 自定义正文内容样式
 * 为博客文章内容添加精美样式
 */

/* 超级美化正文 - 2024增强版 */
.beautiful-content {
  position: relative;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--bs-gray-900);
  padding: 2rem 2.5rem;
  background: var(--bs-white);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1;
  max-width: 950px;
  margin: 0 auto;
}

/* 动态渐变背景 */
.beautiful-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fad0c4, #a1c4fd, #c2e9fb, #d4fc79);
  background-size: 400% 100%;
  animation: super-gradient 15s ease infinite;
  z-index: 2;
}

@keyframes super-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 背景装饰元素 */
.beautiful-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 228, 196, 0.1) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(173, 216, 230, 0.1) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* 暗色模式适配 */
[data-bs-theme="dark"] .beautiful-content {
  background: rgba(30, 32, 44, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] .beautiful-content::after {
  background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.05) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(0, 191, 255, 0.05) 0%, transparent 60%);
}

/* 段落增强 */
.beautiful-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
  position: relative;
  padding-left: 0.2rem;
  transition: all 0.4s ease;
  line-height: 1.9;
  letter-spacing: 0.01rem;
}

.beautiful-content p:hover {
  transform: translateX(5px);
}

/* 首字下沉增强 */
/* .beautiful-content p:first-of-type::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.8;
  margin-right: 0.2em;
  color: var(--bs-primary);
  font-weight: 600;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--bs-primary), #9370DB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Georgia", serif;
} */

/* 增强标题样式 */
.beautiful-content h2 {
  font-size: 1.8rem;
  padding-left: 1rem;
  border-left: 5px solid;
  border-image: linear-gradient(to bottom, var(--bs-primary), #9370DB) 1;
  margin: 2.5rem 0 1.5rem;
  transition: all 0.3s ease;
}

.beautiful-content h2:hover {
  padding-left: 1.5rem;
  border-left-width: 8px;
}

.beautiful-content h3 {
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
  overflow: hidden;
}

.beautiful-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--bs-primary) 0%, rgba(216, 124, 255, 0.2) 80%, transparent 100%);
  transform: translateX(-100%);
  animation: slide-in 0.8s ease-out forwards;
}

/* 引用块增强 */
.beautiful-content blockquote {
  background: linear-gradient(to right, rgba(var(--bs-primary-rgb), 0.07), rgba(var(--bs-primary-rgb), 0.02));
  border-left: 4px solid var(--bs-primary);
  margin: 2rem 0;
  padding: 1.5rem 1.8rem;
  position: relative;
  border-radius: 0 12px 12px 0;
  box-shadow: 3px 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.beautiful-content blockquote::before {
  content: '"';
  position: absolute;
  left: 15px;
  top: -15px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(var(--bs-primary-rgb), 0.1);
  z-index: 0;
}

.beautiful-content blockquote::after {
  content: '"';
  position: absolute;
  right: 15px;
  bottom: -35px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(var(--bs-primary-rgb), 0.1);
  z-index: 0;
}

/* 图片增强 */
.beautiful-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin: 1.5rem auto;
  display: block;
}

.beautiful-content img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 图片容器装饰 */
.beautiful-content .wp-block-image {
  position: relative;
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

[data-bs-theme="dark"] .beautiful-content .wp-block-image {
  background: rgba(255, 255, 255, 0.03);
}

.beautiful-content .wp-block-image::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  background: rgba(var(--bs-primary-rgb), 0.2);
  border-radius: 50%;
  z-index: 1;
}

.beautiful-content .wp-block-image::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: rgba(var(--bs-primary-rgb), 0.2);
  border-radius: 50%;
  z-index: 1;
}

/* 列表增强 */
.beautiful-content ul li::before {
  content: "✦";
  position: absolute;
  left: -1.2rem;
  color: var(--bs-primary);
  font-weight: bold;
  transition: all 0.4s ease;
}

.beautiful-content ul li:hover::before {
  transform: scale(1.5) rotate(30deg);
  color: #f59dff;
  text-shadow: 0 0 5px rgba(245, 157, 255, 0.5);
}

.beautiful-content ol li::before {
  font-size: 1.1em;
  font-weight: 600;
  background: linear-gradient(135deg, var(--bs-primary), #9370DB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.4s ease;
}

.beautiful-content ol li:hover::before {
  transform: translateX(5px) scale(1.1);
}

/* 代码块增强 */
.beautiful-content pre {
  background: #282c34;
  color: #abb2bf;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-top: 25px solid #21252b;
  overflow-x: auto;
}

.beautiful-content pre::before {
  content: "● ● ●";
  position: absolute;
  top: -20px;
  left: 15px;
  font-size: 12px;
  color: #abb2bf;
  letter-spacing: 5px;
}

/* 内容卡片 */
.beautiful-content .info-card {
  background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-info-rgb), 0.05));
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--bs-primary);
  overflow: hidden;
}

.beautiful-content .info-card::before {
  content: "i";
  position: absolute;
  top: -15px;
  right: 15px;
  font-size: 5rem;
  font-family: serif;
  font-style: italic;
  font-weight: bold;
  color: rgba(var(--bs-primary-rgb), 0.1);
  z-index: 0;
}

/* 表格增强 */
.beautiful-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.beautiful-content table th {
  background: linear-gradient(135deg, var(--bs-primary), rgba(var(--bs-primary-rgb), 0.7));
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.beautiful-content table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.beautiful-content table tr:hover td {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* 响应式优化 */
@media (max-width: 768px) {
  .beautiful-content {
    padding: 1.5rem;
    font-size: 1rem;
    max-width: 100%;
  }

  .single-content {
    padding: 1rem;
    font-size: 0.95rem;
    max-width: 100%;
  }

  .beautiful-content h2 {
    font-size: 1.5rem;
  }

  .beautiful-content h3 {
    font-size: 1.3rem;
  }

  .beautiful-content blockquote {
    padding: 1rem;
  }
}

/* 全局动画效果 */
.beautiful-content .animated-element {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 文字选择效果 */
.beautiful-content ::selection {
  background: rgba(var(--bs-primary-rgb), 0.3);
  color: inherit;
}

/* 特殊装饰元素 */
.beautiful-content::before,
.beautiful-content::after {
  transition: all 0.5s ease;
}

.beautiful-content:hover::before {
  background-size: 300% 100%;
  height: 8px;
}

/* 自定义内容装饰 */
.beautiful-content .highlight-box {
  position: relative;
  padding: 1.5rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05),
              0 1px 1px rgba(0, 0, 0, 0.05),
              0 2px 2px rgba(0, 0, 0, 0.05),
              0 4px 4px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  overflow: hidden;
  z-index: 1;
}

[data-bs-theme="dark"] .beautiful-content .highlight-box {
  background: linear-gradient(135deg, rgba(50, 50, 80, 0.3), rgba(30, 30, 50, 0.3));
}

.beautiful-content .highlight-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  transform: rotate(45deg);
  animation: shimmer 8s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 提示框 */
.beautiful-content .note-box,
.beautiful-content .tip-box,
.beautiful-content .warning-box {
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  margin: 2rem 0;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.beautiful-content .note-box {
  background: rgba(var(--bs-info-rgb), 0.05);
  border-left: 4px solid var(--bs-info);
}

.beautiful-content .tip-box {
  background: rgba(var(--bs-success-rgb), 0.05);
  border-left: 4px solid var(--bs-success);
}

.beautiful-content .warning-box {
  background: rgba(var(--bs-danger-rgb), 0.05);
  border-left: 4px solid var(--bs-danger);
}

.beautiful-content .note-box::before,
.beautiful-content .tip-box::before,
.beautiful-content .warning-box::before {
  font-family: 'FontAwesome';
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  font-size: 1.5rem;
}

.beautiful-content .note-box::before {
  content: '\f05a';
  color: var(--bs-info);
}

.beautiful-content .tip-box::before {
  content: '\f0eb';
  color: var(--bs-success);
}

.beautiful-content .warning-box::before {
  content: '\f071';
  color: var(--bs-danger);
}

/* 文字渐变效果 */
.beautiful-content .gradient-text {
  background: linear-gradient(135deg, var(--bs-primary), #9370DB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 600;
}

/* 图片鼠标悬停特效 */
.beautiful-content .img-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
}

.beautiful-content .img-container img {
  margin: 0;
  border-radius: 0;
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.beautiful-content .img-container:hover img {
  transform: scale(1.05);
}

.beautiful-content .img-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.beautiful-content .img-container:hover::after {
  opacity: 1;
}

.beautiful-content .img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  z-index: 2;
}

.beautiful-content .img-container:hover .img-caption {
  transform: translateY(0);
}

/* 流畅滚动锚点 */
.beautiful-content {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

/* 专业术语定义 */
.beautiful-content .term {
  border-bottom: 1px dashed var(--bs-primary);
  cursor: help;
  position: relative;
}

.beautiful-content .term:hover::after {
  content: attr(data-definition);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bs-dark);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  min-width: 200px;
  max-width: 300px;
  z-index: 100;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* 表格功能增强 */
.beautiful-content .table-container {
  position: relative;
  overflow-x: auto;
  margin: 2rem 0;
  max-width: 100%;
}

/* 文章进度条 */
.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bs-primary), #9370DB);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* 字体可读性增强 */
.beautiful-content {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

/* 强调文本特效 */
.beautiful-content .emphasis {
  font-style: normal;
  position: relative;
  display: inline-block;
}

.beautiful-content .emphasis::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(var(--bs-primary-rgb), 0.3);
  border-radius: 3px;
  z-index: -1;
}

/* 文章末尾装饰 */
/* .beautiful-content::after {
  content: '✧✧✧';
  display: block;
  text-align: center;
  margin-top: 3rem;
  color: var(--bs-primary);
  font-size: 1.5rem;
  letter-spacing: 10px;
} */

/* 限制图片宽度，保持响应式 */
.beautiful-content img,
.single-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

/* 文章内容容器布局优化 */
.blog-single {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* 表格响应式处理 */
.beautiful-content table,
.single-content table {
  width: 100%;
  overflow-x: auto;
  display: block;
  max-width: 100%;
}