/* ============================================================
字体定义 - 荆南麥圓體
============================================================ */
@font-face {
    font-family: 'HYYYFont';
    src: url('/static/fonts/HYYYFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'XianXiYuan';
    src: url('/static/fonts/FontXianXiYuan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
html, body {
    overflow-x: hidden;
    overflow-y: auto;
}
/* 全局字体 */
body {
    font-family: 'HYYYFont', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    position: relative;
    background-color: #fefefe !important;
}

/* 第一个元素（通常是 banner）不要有上边距 */
body > *:first-child {
    margin-top: 0 !important;
}
/* 所有文字统一字体 */
p, h1, h2, h3, h4, h5, h6, a, span, div, button, input, li {
    font-family: 'HYYYFont', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif !important;
}

:root {
    --mask: rgba(0, 0, 0, 0.3);
    --nt-box-white-start: #949494;
    --nt-box-white-end: #fff;
    --col-bg-start: var(--nt-box-white-start);
    --col-bg-end: var(--nt-box-white-end);
    --col-bg-pre: #191919;
}

/* ============================================================
模块1：自定义滚动条样式
============================================================ */
/* ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
} */

/* ============================================================
   自定义滚动条 - 蓝色调加宽
============================================================ */

/* 整个滚动条轨道 */
::-webkit-scrollbar {
    width: 15px;
    height: 15px;
}

/* 滚动条轨道背景 */
::-webkit-scrollbar-track {
    background: #f0f4f8;
    border-radius: 0;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4C8CD4, #64B5F6);
    border-radius: 0;
    border: 2px solid #f0f4f8;
}

/* 滑块悬浮 */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3B7AC5, #4C8CD4);
}

/* 滚动条角落 */
::-webkit-scrollbar-corner {
    background: #f0f4f8;
}

/* ============================================================
模块2：全局平滑过渡
============================================================ */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
    transition-duration: 150ms;
}

/* 卡片悬停效果 */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.hover-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}


/* 导航链接悬停下划线效果 */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.2s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* 图片悬停缩放效果 */
.hover-scale {
    overflow: hidden;
}
.hover-scale img {
    transition: transform 0.3s ease;
}
.hover-scale:hover img {
    transform: scale(1.05);
}

/* 页面淡入动画 */
.page-fade-in {
    animation: fadeInUp 2s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   标签云 - 动态大小飘动
   ============================================================ */

.tag-bounce-container {
    position: relative;
    overflow: hidden;
}

.tag-bounce-container .tag-item {
    position: absolute;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    will-change: transform, left, top, font-size, font-weight;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    border-radius: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* 悬浮效果 */
.tag-bounce-container .tag-item:hover {
    transform: scale(1.6) !important;
    color: #E8353A !important;
    z-index: 999 !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.tag-bounce-container .tag-item:active {
    transform: scale(0.85) !important;
}

.tag-bounce-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.04), rgba(232, 53, 58, 0.02), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

.tag-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .tag-bounce-container {
        height: 280px !important;
    }
    .tag-bounce-glow {
        width: 120px;
        height: 120px;
    }
    .tag-bounce-container .tag-item:hover {
        transform: scale(1.3) !important;
    }
}



/* 文章缩略图容器 - 带内边距和边框 */
.article-thumb-wrapper {
    padding: 12px;
}
.article-thumb {
    border: 1px solid #eef2f6;
    background: #fafbfc;
}


/* 限制行数 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部信息行 - 不换行 */
.article-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.article-tags {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    flex-shrink: 1;
}
.article-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}




/* ============================================================
首页底部的  收藏导航样式
============================================================ */
.nav-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.nav-header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.nav-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-header h2 span {
    width: 4px;
    height: 18px;
    background: #3b82f6;
    border-radius: 2px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.nav-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.nav-card .nav-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.nav-card .nav-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-card .nav-name a:hover {
    color: #3b82f6;
}

.nav-card .nav-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.nav-card .nav-tag {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.65rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }
}

/* 分页页码样式 */
.pre-or-next-page {
    background: none !important;
    border: 1px solid #fffdfd;
    border-radius: 8px !important;
}
.pre-or-next-page:hover {
    box-shadow: 6px 8px 16px var(--col-bg-start), -2px -3px 8px var(--col-bg-end) !important;
    border: 1px solid #fffdfd;
}
.current-page {
    border-radius: 8px !important;
    background: #2196F3 !important;
    color: #ffffff !important;
    font-weight: bolder !important;
}
.other-pages {
    border-radius: 8px !important;
    background: none !important;
    border: 1px solid #fffdfd;
}
.other-pages:hover {
    box-shadow: 6px 8px 16px var(--col-bg-start), -2px -3px 8px var(--col-bg-end) !important;
    border: 1px solid #fffdfd;
}

/* ============================================================
右侧边栏卡片样式 - 现代化
============================================================ */
/* 
.sidebar-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

/* 分类标签 - 绿色主题 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.2s;
}

.category-tag-0 { background: rgba(16, 185, 129, 0.1); color: #059669; }
.category-tag-1 { background: rgba(6, 182, 212, 0.1); color: #0891b2; }
.category-tag-2 { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }
.category-tag-3 { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.category-tag-4 { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.category-tag-5 { background: rgba(236, 72, 153, 0.1); color: #db2777; }

.category-tag:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

/* 热门文章列表项 */
.hot-article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hot-article-item:last-child {
    border-bottom: none;
} */



/* ============================================================
导航卡片样式 - 透明磨砂效果
============================================================ */

.nav-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.nav-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.nav-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.55);
}

.nav-card .nav-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.nav-card .nav-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-card .nav-name a:hover {
    color: #10b981;
}

.nav-card .nav-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.nav-card .nav-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    color: #059669;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 2px 10px;
}


/* 文章详情页样式 - 透明磨砂现代化 */
.detail-breadcrumb {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 1rem;
}

.detail-header {
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .detail-title {
        font-size: 2rem;
    }
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.detail-content {
    padding: 1.5rem;
}

.detail-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
}

.detail-share {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.nav-card-prev-next {
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.nav-card-prev-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.related-card {
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.1);
}

.related-title {
    font-weight: 500;
    color: #1f2937;
    transition: color 0.2s;
}

.related-card:hover .related-title {
    color: #10b981;
}


/* 分类标签样式 - 黑白边框，矩形，小圆角 */
/* .category-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #4b5563;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.category-badge:hover {
    color: #10b981;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
} */



/* 侧边栏分类样式 */
/* 侧边栏分类标签样式 - 黑白 */
.sidebar-card-category-outer-line svg {
    color: #d69d0a;
}

/* 移除彩色样式，所有分类统一黑白 */
.sidebar-category-color-0,
.sidebar-category-color-1,
.sidebar-category-color-2,
.sidebar-category-color-3,
.sidebar-category-color-4,
.sidebar-category-color-5,
.sidebar-category-color-6,
.sidebar-category-color-7 {
    background: transparent !important;
    color: #4b5563 !important;
    border: 1px solid #d1d5db !important;
}


/* =============== Logo 图片样式 - 固定尺寸，智能裁剪 */
.logo-img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    opacity: 0.85;
}


/* ========== 代码块卡片样式 ========== */
/* ========== 深色主题代码块卡片样式 ========== */
/* ============================================================
   深色背景 - 鲜艳版代码高亮
   ============================================================ */

.hljs {
    background: transparent !important;
    color: #f0f0f0 !important;
}

/* 关键字 - 亮蓝 */
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-title,
.hljs-section,
.hljs-doctag {
    color: #66aaff !important;
    font-weight: 700 !important;
}

/* 字符串 - 亮橙红 */
.hljs-string,
.hljs-attr,
.hljs-regexp,
.hljs-meta .hljs-string {
    color: #ff8c4a !important;
}

/* 注释 - 亮绿 */
.hljs-comment,
.hljs-quote {
    color: #7ec87e !important;
    font-style: italic !important;
}

/* 函数名 - 亮金 */
.hljs-name,
.hljs-built_in,
.hljs-builtin-name,
.hljs-function {
    color: #f5e56b !important;
}

/* 数字 - 亮粉青 */
.hljs-number,
.hljs-constant {
    color: #7ee0b0 !important;
}

/* 运算符 - 亮白 */
.hljs-operator,
.hljs-punctuation {
    color: #cccccc !important;
}

/* 类名 - 亮青 */
.hljs-class,
.hljs-type,
.hljs-tag .hljs-attr {
    color: #4dd0e1 !important;
}

/* 变量 - 亮蓝白 */
.hljs-variable,
.hljs-template-variable {
    color: #89c4ff !important;
}

/* 标签 - 亮红 */
.hljs-tag,
.hljs-selector-id,
.hljs-selector-class {
    color: #ff7b7b !important;
}

/* 属性 - 亮紫 */
.hljs-attribute {
    color: #d48bff !important;
}

pre {
    position: relative;
    border-radius: 4px !important;
    padding: 2rem 1rem 1rem 1rem !important;
    margin: 1rem 0 !important;
    overflow-x: auto !important;
    background-color: rgb(70, 69, 66) !important;
}

/* Mac 三个点 */
pre::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 12px;
    height: 12px;
    background-color: #ff5f56;
    border-radius: 50%;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #27c93f;
    z-index: 2;
}

/* 语言标签（深色适配） */
pre::after {
    content: attr(data-language);
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 11px;
    color: #aaa;
    font-family: 'Monaco', 'Menlo', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* 代码文字样式 */
pre code {
    font-family: 'Consolas', 'Monaco', 'Menlo', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #d4d4d4 !important;
    background: transparent !important;
    display: block;
}

/* 滚动条（深色风格） */
pre::-webkit-scrollbar {
    height: 6px;
}
pre::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 10px;
}
pre::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}
pre::-webkit-scrollbar-thumb:hover {
    background: #777;
}


/* 代码块英文字体优先使用编程连字字体，回退到常见等宽字体 */
pre code,
pre,
code {
    font-family: 'Consolas', 'Monaco', 'Menlo', monospace !important;
}
pre code {
    font-size: 14px !important;
}

/* 文章内图片样式 */
/* 文章内图片样式：圆角 + 阴影 + 悬浮过渡 */
.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    /* box-shadow: 4px 4px 6px var(--col-bg-start), -1px -2px 6px var(--col-bg-end); */
}

/* ============================================================
   聊天气泡评论样式 - 完整版
   ============================================================ */

/* 评论列表容器 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


/* 头像区域 */
.comment-avatar {
    flex-shrink: 0;
    position: relative;
}
.comment-item:hover .avatar-circle {
    transform: scale(1.05);
}

.avatar-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border: 2px solid white;
    border-radius: 50%;
}

/* 悬浮效果 */
.comment-item:hover .comment-bubble {
    box-shadow: 4px 4px 6px var(--col-bg-start), -1px -2px 6px var(--col-bg-end) !important;
}

/* 气泡头部 */
.bubble-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.bubble-author {
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bubble-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 0.15rem 0.5rem;
    border-radius: 30px;
}

.time-icon {
    width: 10px;
    height: 10px;
}

.bubble-website {
    font-size: 0.65rem;
    color: #10b981;
    background: #e8f5e9;
    padding: 0.15rem 0.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s;
}

.bubble-website:hover {
    background: #10b981;
    color: white;
}

/* 气泡内容 */
.bubble-content {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.55;
    word-break: break-word;
    margin-bottom: 0.75rem;
}

.bubble-content p {
    margin: 0;
}

/* 气泡底部 */
.bubble-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f2f5;
}
.reply-btn:hover {
    color: #10b981;
    background: #e8f5e9;
}

.reply-icon {
    width: 14px;
    height: 14px;
}

/* ========== 回复区域 ========== */
.replies-container {
    margin-left: 3rem;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
    animation: slideDown 0.3s ease-out;
}

/* 单条回复 */
.reply-item {
    display: flex;
    gap: 0.6rem;
}

/* 回复头像 */
.reply-avatar {
    flex-shrink: 0;
}

.reply-item:hover .reply-avatar-circle {
    transform: scale(1.05);
}

.reply-item:hover .reply-bubble {
    box-shadow: 4px 4px 6px var(--col-bg-start), -1px -2px 6px var(--col-bg-end);
}

/* 回复气泡头部 */
.reply-bubble-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.reply-author {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1f2937;
}

.reply-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6rem;
    color: #9ca3af;
}

/* 回复内容 */
.reply-bubble-content {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.45;
}

.reply-mention {
    display: inline-block;
    background: #e8f5e9;
    color: #10b981;
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    margin-right: 0.5rem;
}

/* 回复底部 */
.reply-bubble-footer {
    margin-top: 0.35rem;
}

.sub-reply-btn:hover {
    color: #10b981;
    background: #e8f5e9;
}

/* ========== 空状态 ========== */
.empty-comments {
    text-align: center;
    padding: 3rem;
    backdrop-filter: blur(8px);
    border-radius: 24px;
    border: 1px dashed #d1d5db;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.empty-icon svg {
    width: 32px;
    height: 32px;
    color: #9ca3af;
}

.empty-comments h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.empty-comments p {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* ========== 发表评论表单 ========== */
.comment-form-box {
    backdrop-filter: blur(8px);
    border-radius:8px !important;
    padding: 1.25rem;
}

.comment-form-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form-box h4::before {
    /* content: '💬'; */
    font-size: 1.1rem;
}

.comment-input,
.comment-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    /* box-shadow: inset 8px 5px 6px var(--col-bg-start), inset -5px -5px 6px var(--col-bg-end); */
    background-color: #dedee0;
}

.comment-input:focus,
.comment-textarea:focus {
    outline: none;
    background-color: #fff !important;
}

.comment-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 提交按钮 */
.comment-submit-btn {
    /* background: linear-gradient(135deg, #10b981, #059669); */
    color: green;
    padding: 0.6rem 2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    box-shadow: 4px 4px 6px var(--col-bg-start), -1px -2px 6px var(--col-bg-end);
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 6px 8px 16px var(--col-bg-start), -2px -3px 8px var(--col-bg-end);
    transition: all 0.3s ease;
}

.comment-submit-btn:active {
    transform: translateY(0px);
}

.comment-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item:nth-child(1) { animation-delay: 0.05s; }
.comment-item:nth-child(2) { animation-delay: 0.1s; }
.comment-item:nth-child(3) { animation-delay: 0.15s; }
.comment-item:nth-child(4) { animation-delay: 0.2s; }
.comment-item:nth-child(5) { animation-delay: 0.25s; }

/* 滚动条 */
#commentListContainer {
    scrollbar-width: thin;
    border-left: 1px dashed whitesmoke;
}

#commentListContainer::-webkit-scrollbar {
    width: 4px;
}

#commentListContainer::-webkit-scrollbar-track {
    border-radius: 4px;
}

#commentListContainer::-webkit-scrollbar-thumb {
    border-radius: 4px;
}

/* ========== 响应式 ========== */
@media (max-width: 640px) {
    .replies-container {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .comment-bubble::before {
        display: none;
    }
    
    .avatar-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .reply-avatar-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .bubble-author {
        font-size: 0.85rem;
    }
    
    .bubble-content {
        font-size: 0.85rem;
    }
}

/* ========== 增强版气泡样式 ========== */

/* 随机头像颜色 - 每个用户不同颜色 */
.comment-item .avatar-circle {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

/* 气泡悬浮立体效果 */
/* .comment-bubble {
    position: relative;
    border-radius: 24px 24px 24px 8px;
    padding: 0.875rem 1.125rem;
    box-shadow: 4px 4px 6px var(--col-bg-start), -1px -2px 6px var(--col-bg-end);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
} */



/* 新评论动画 */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 高亮脉冲动画（无边框） */
@keyframes glowPulse {
    0% {
        opacity: 0.8;
        transform: scale(0.95);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* 新评论徽章 */
.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
    border-radius: 30px;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 回复弹窗 - 只有关闭按钮可关闭 */
.reply-modal-overlay {
    cursor: default;
}
/* ============================================================
   文章卡片动画
============================================================ */
@keyframes cardFadeInUp {
    0% {
        opacity: 0;
        transform: scale(0) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 友情链接 */
.link-for-friends {
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
}

.link-for-friends:hover {
    transform: translateX(3px) !important;
}

/* 所有圆角取消（配合整体风格） */
.sidebar-card {
    border-radius: 8px !important;
}

/* 卡片顶部彩色边框 */
.sidebar-card {
    position: relative !important;
}

/* 卡片头部 */
.card-header-bg {
    padding: 0 !important;
    margin: 0 !important;
}

.right-avator-img {
    border-radius: 50% !important;
}
