/* ============================================================
字体定义 - 荆南麥圓體
============================================================ */
@font-face {
    font-family: 'HYYYFont';
    src: url('/static/fonts/HYYYFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 全局字体 */
body {
    font-family: 'HYYYFont', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif !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);
}


/* ============================================================
模块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;
}

/* ============================================================
模块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);
    }
}


/* 标签随机颜色 - 6种配色方案 */
.tag-color-0 { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.tag-color-1 { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.tag-color-2 { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.tag-color-3 { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.tag-color-4 { background: #f3e8ff; color: #6b21a5; border-color: #e9d5ff; }
.tag-color-5 { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }

.tag-item {
    transition: all 0.2s ease;
    border-width: 1px;
    border-style: solid;
}
.tag-item:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

/* 文章缩略图容器 - 带内边距和边框 */
.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;
    }
}


/* ============================================================
首页底部的  收藏导航样式  END
============================================================ */



/* 推荐文章 卡片样式 */
/* 卡片悬停效果增强 */
/* .hover-card {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.hover-card:hover {
    transform: translateY(-4px);
} */



/* ============================================================
横向时间线样式 - 只有渐变边框，透明背景
============================================================ */
/* ============================================================
横向时间线样式 - 增强动态效果
============================================================ */
/* ============================================================
横向时间线样式 - 增强动态效果 + 循环动画
============================================================ */

/* 外层容器 */
/* 外层容器 - 很淡很细的边框 */
.timeline-container {
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.15);  /* 很淡的绿色边框 */
    box-shadow: none;
}
/* 移除之前的渐变边框伪元素（如果不需要的话） */
.timeline-container::before {
    display: none;
}
/* 渐变边框 */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #a7f3d0, #34d399, #10b981);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderPulse 3s ease-in-out infinite;
}

/* 边框脉冲动画 */
@keyframes borderPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.timeline-wrapper {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.timeline-wrapper::-webkit-scrollbar {
    height: 4px;
}
.timeline-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.timeline-wrapper::-webkit-scrollbar-thumb {
    background: #34d399;
    border-radius: 4px;
}

.timeline-track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-width: 900px;
}

/* 时间节点 - 添加悬停效果 */
.timeline-node {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    transition: all 0.3s ease;
}

.timeline-node:hover {
    transform: translateY(-4px);
}

/* 日期标签 - 悬停发光效果 + 循环呼吸 */
.timeline-date {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    margin-bottom: 0.75rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    animation: dateBreath 4s ease-in-out infinite;
}

/* 日期标签呼吸动画 */
@keyframes dateBreath {
    0%, 100% {
        background: rgba(255, 255, 255, 0.5);
        border-color: rgba(52, 211, 153, 0.2);
    }
    50% {
        background: rgba(52, 211, 153, 0.1);
        border-color: rgba(52, 211, 153, 0.5);
    }
}

.timeline-node:hover .timeline-date {
    background: rgba(52, 211, 153, 0.15);
    border-color: #34d399;
    color: #065f46;
    transform: scale(1.05);
    animation: none;
}

/* 圆点 - 脉冲动画（循环） */
.timeline-dot {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #10b981;
    margin-bottom: 0.5rem;
    z-index: 2;
    transition: all 0.3s ease;
    animation: dotPulse 2s ease-in-out infinite;
}

/* 圆点脉冲动画 */
@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px #10b981;
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 4px #34d399, 0 0 0 6px rgba(52, 211, 153, 0.2);
    }
}

.timeline-node:hover .timeline-dot {
    animation: none;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px #34d399, 0 0 0 8px rgba(52, 211, 153, 0.3);
}

/* 连接线 - 流光效果（循环） */
.timeline-line {
    position: absolute;
    top: 38px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #34d399, #10b981);
    background-size: 200% 100%;
    z-index: 1;
    transition: all 0.3s ease;
    animation: lineFlow 3s linear infinite;
}

/* 连接线流光动画 */
@keyframes lineFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.timeline-node:hover .timeline-line {
    animation-duration: 1.5s;
}

/* 卡片容器 */
.timeline-cards {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 95px;
}

/* 正方形卡片 - 增强动态效果 + 浮动动画 */
.timeline-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    animation: cardFloat 4s ease-in-out infinite;
}

/* 卡片浮动动画 */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* 不同卡片不同延迟 */
.timeline-node:nth-child(1) .timeline-card { animation-delay: 0s; }
.timeline-node:nth-child(2) .timeline-card { animation-delay: 0.3s; }
.timeline-node:nth-child(3) .timeline-card { animation-delay: 0.6s; }
.timeline-node:nth-child(4) .timeline-card { animation-delay: 0.9s; }
.timeline-node:nth-child(5) .timeline-card { animation-delay: 1.2s; }
.timeline-node:nth-child(6) .timeline-card { animation-delay: 1.5s; }

/* 卡片悬停 - 停止浮动，增强效果 */
.timeline-card:hover {
    animation: none;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 35px -12px rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 0.9);
    border-color: #34d399;
}

/* 卡片图片 */
.timeline-card-img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    transition: transform 0.4s ease;
}

.timeline-card:hover .timeline-card-img {
    transform: scale(1.05);
}

/* 卡片标题 */
.timeline-card-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

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

/* 卡片加载动画 - 依次出现 */
.timeline-node {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.timeline-node:nth-child(1) { animation-delay: 0.05s; }
.timeline-node:nth-child(2) { animation-delay: 0.1s; }
.timeline-node:nth-child(3) { animation-delay: 0.15s; }
.timeline-node:nth-child(4) { animation-delay: 0.2s; }
.timeline-node:nth-child(5) { animation-delay: 0.25s; }
.timeline-node:nth-child(6) { animation-delay: 0.3s; }

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

/* 响应式 */
@media (max-width: 768px) {
    .timeline-container {
        padding: 1rem;
    }
    .timeline-track {
        min-width: 700px;
    }
    .timeline-cards {
        max-width: 80px;
    }
    .timeline-card-title {
        font-size: 0.6rem;
    }
}


/* ============================================================
时间线收起/展开功能
============================================================ */
/* ============================================================
时间线收起/展开功能 - 丝滑过渡
============================================================ */

/* ============================================================
时间线收起/展开功能 - 丝滑过渡
============================================================ */

/* 按钮容器 */
.timeline-control {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    z-index: 10;
}

/* 按钮样式 - 无边框无背景 */
.timeline-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    backdrop-filter: none;
    border: none !important;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
}

/* 箭头图标 */
.timeline-toggle-icon {
    width: 24px;
    height: 24px;
    color: #10b981;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: block;
}

/* 悬浮效果 */
.timeline-toggle-btn:hover {
    transform: translateY(-2px);
    background: transparent !important;
}

.timeline-toggle-btn:hover .timeline-toggle-icon {
    color: #059669;
}

/* 点击效果 */
.timeline-toggle-btn:active {
    transform: translateY(0px);
}

/* ===== 卡片容器 - 丝滑过渡效果 ===== */
.timeline-cards {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 单个卡片 */
.timeline-card {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* 正常状态 */
.timeline-cards {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
}

/* 收起状态 - 隐藏卡片内容 */
.timeline-container.collapsed .timeline-cards {
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    height: 0;
    margin-top: -0.5rem;
    max-width: 0;
    min-width: 0;
}

/* 收起状态 - 卡片消失 */
.timeline-container.collapsed .timeline-card {
    opacity: 0;
    transform: scale(0.8);
}

/* 收起状态 - 箭头旋转 */
.timeline-container.collapsed .timeline-toggle-icon {
    transform: rotate(180deg);
}
/* ============================ 时间线CSS END =============================== */


/* ============================================================
导航卡片样式 - 现代化
============================================================ */

.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.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(159, 160, 160, 0.2);
    border-radius: 12px;
    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(48, 49, 49, 0.4);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.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.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 2px 8px;
}

/* ============================================================
分页样式 - 现代化
============================================================ */

.pagination-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 0.875rem;
    color: #4b5563;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.pagination-active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.pagination-active:hover {
    background: #059669;
    color: white;
}

.pagination-disabled {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.05);
    color: #9ca3af;
    cursor: not-allowed;
}


/* ============================================================
右侧边栏卡片样式 - 现代化
============================================================ */
/* 
.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;
}


/* 右侧边栏卡片 - 透明磨砂效果 */
.sidebar-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    overflow: hidden;
    /* transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1); */
    /* box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1); */
}

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

/* 分类标签样式 */
/* .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.15); color: #059669; }
.category-tag-1 { background: rgba(6, 182, 212, 0.15); color: #0891b2; }
.category-tag-2 { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
.category-tag-3 { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.category-tag-4 { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.category-tag-5 { background: rgba(236, 72, 153, 0.15); color: #db2777; }

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


/* 文章详情页样式 - 透明磨砂现代化 */
.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-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.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 {
    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 ease;
}

.nav-card-prev-next:hover {
    transform: translateY(-2px);
    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);
}

.related-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.15);
    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);
}

/* 标签样式 - 椭圆形，黑白边框 */
.tag-badge {
    display: inline-block !important;
    padding: 2px 12px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    background: transparent !important;
    border: 1px solid #d1d5db !important;
    border-radius: 20px !important;  /* 椭圆形 */
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.tag-badge:hover {
    color: #10b981 !important;
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05) !important;
}



/* 侧边栏分类样式 */
/* 侧边栏分类标签样式 - 黑白 */
.sidebar-category-tag {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    padding: 4px 12px !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    background: transparent !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.sidebar-category-tag svg {
    width: 10px !important;
    height: 10px !important;
    margin-right: 4px !important;
    flex-shrink: 0 !important;
}

.sidebar-category-tag:hover {
    color: #10b981 !important;
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05) !important;
    transform: translateY(-1px) !important;
}

/* 移除彩色样式，所有分类统一黑白 */
.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;
}



/* 标签样式 - 椭圆，与分类样式一致 */
/* 标签容器 */
#tagContainer {
    position: relative;
    min-height: 350px;
    height: 350px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

/* 移动标签样式 */
.tag-moving {
    position: absolute;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
}

.tag-moving:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.tag-random-color-0 { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.tag-random-color-1 { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.tag-random-color-2 { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.tag-random-color-3 { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.tag-random-color-4 { background: #f3e8ff; color: #6b21a5; border: 1px solid #e9d5ff; }
.tag-random-color-5 { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.tag-random-color-6 { background: #cffafe; color: #155e75; border: 1px solid #a5f3fc; }
.tag-random-color-7 { background: #fce7f3; color: #9d174d; border: 1px solid #fbcfe8; }


/* =============== 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;
}




/* =================== 搜索 ===================== */
/* ============================================================
搜索样式
============================================================ */
/* ============================================================
炫酷点击向下延伸搜索框
============================================================ */

/* 搜索按钮 */
.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #4b5563;
    transition: all 0.3s ease;
    position: relative;
}

.search-btn:hover {
    color: #10b981;
    transform: scale(1.05);
}

/* 点击延伸搜索框容器 */
.search-extend-box {
    position: absolute;
    top: calc(100% + 16px);
    right: -10px;
    width: 340px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    z-index: 100;
}

.search-extend-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 小三角箭头 */
.search-extend-box::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(16, 185, 129, 0.2);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    transform: rotate(45deg);
    backdrop-filter: blur(16px);
    border-radius: 3px;
}

/* 搜索表单 */
.search-extend-form {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

/* 搜索输入框 */
.search-extend-input {
    flex: 1;
    padding: 10px 0;
    font-size: 0.9rem;
    border: none;
    outline: none;
    background: transparent;
    color: #1f2937;
    font-weight: 500;
}

.search-extend-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-extend-input:focus {
    color: #10b981;
}

/* 搜索提交按钮 */
.search-extend-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    padding: 8px 16px;
    color: white;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.search-extend-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669, #047857);
}

.search-extend-submit:active {
    transform: translateY(0);
}

/* 搜索图标内嵌 */
.search-extend-submit svg {
    width: 14px;
    height: 14px;
}

/* 悬浮光效 */
.search-extend-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-extend-box:hover::after {
    opacity: 1;
}

/* 响应式 */
@media (max-width: 640px) {
    .search-extend-box {
        width: 280px;
        right: -5px;
    }
    .search-extend-submit span {
        display: none;
    }
    .search-extend-submit {
        padding: 8px 12px;
    }
}
/* =================== 搜索 END ===================== */


/* ========== 代码块卡片样式 ========== */
/* ========== 深色主题代码块卡片样式 ========== */
pre {
    position: relative;
    background: #3a3a3a !important;          /* 深色背景 */
    border-radius: 12px !important;
    padding: 2rem 1rem 1rem 1rem !important;
    margin: 1.8rem 0 !important;
    overflow-x: auto !important;
    box-shadow: 2px 10px 20px skyblue;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

pre:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) !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: 1px 1px 3px var(--mask) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid silver;
}

/* 悬浮效果：轻微放大 + 阴影增强 */
.detail-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.25);
}

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

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

/* ========== 顶级评论 ========== */
.comment-item {
    display: flex;
    gap: 0.75rem;
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* 头像区域 */
.comment-avatar {
    flex-shrink: 0;
    position: relative;
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: transform 0.2s ease;
}

.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-bubble {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #fefefe);
    border-radius: 24px 24px 24px 8px;
    padding: 0.875rem 1.125rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(16, 185, 129, 0.08);
}

/* 气泡小尾巴 */
.comment-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 18px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 8px 6px 0;
    border-color: transparent #783131 transparent transparent;
}
/* 移除气泡小尾巴 */
.comment-bubble::before {
    content: none !important;
    display: none !important;
}
/* 悬浮效果 */
.comment-item:hover .comment-bubble {
    background: linear-gradient(135deg, #ffffff, #fafcff);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.15);
    transform: translateX(2px);
}

/* 气泡头部 */
.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 {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 30px;
}

.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.5rem;
    animation: slideDown 0.3s ease-out;
}

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

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

.reply-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.2s;
}

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

/* 回复气泡 */
.reply-bubble {
    flex: 1;
    background: #f8fafc;
    border-radius: 18px 18px 18px 8px;
    padding: 0.6rem 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.reply-item:hover .reply-bubble {
    background: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

/* 回复气泡头部 */
.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 {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6rem;
    color: #9ca3af;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.2rem 0.4rem;
    border-radius: 20px;
}

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

/* ========== 空状态 ========== */
.empty-comments {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.6);
    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 {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    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: 1.5px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    transition: all 0.2s ease;
}

.comment-input:focus,
.comment-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

/* 提交按钮 */
.comment-submit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.6rem 2rem;
    border-radius: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.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;
}

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

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

#commentListContainer::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    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;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
    border-radius: 24px 24px 24px 8px;
    padding: 0.875rem 1.125rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 
                0 2px 4px rgba(0, 0, 0, 0.02),
                inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(255,255,255,0.4);
}

.comment-bubble::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 18px;
    width: 12px;
    height: 12px;
    background: inherit;
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: -2px -2px 4px rgba(0,0,0,0.02);
}

.comment-item:hover .comment-bubble {
    transform: translateY(-3px) translateX(2px);
    box-shadow: 0 16px 30px -12px rgba(16, 185, 129, 0.2),
                0 4px 8px rgba(0, 0, 0, 0.05);
}

/* 新评论动画 */
@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);
    }
}

/* ============================================================
   高级质感卡片 - 带加载动画 + 悬浮动画
============================================================ */
.article-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    overflow: hidden;
    border-radius: 12px;
    /* 加载动画 */
    animation: cardFadeInUp 3s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
    opacity: 0;
    transform: scale(0) translateY(10px);
    
    /* 基础阴影 */
    cursor: pointer;
    box-shadow: 1px 1px 3px var(--mask) !important;
}

/* 悬浮效果 */
.article-card:hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    transform: scale(1.02) !important;
}

/* 延迟加载 - 依次出现 */
.article-card.delay-1 { animation-delay: 0.05s; }
.article-card.delay-2 { animation-delay: 0.1s; }
.article-card.delay-3 { animation-delay: 0.15s; }
.article-card.delay-4 { animation-delay: 0.2s; }
.article-card.delay-5 { animation-delay: 0.25s; }
.article-card.delay-6 { animation-delay: 0.3s; }
.article-card.delay-7 { animation-delay: 0.35s; }
.article-card.delay-8 { animation-delay: 0.4s; }
.article-card.delay-9 { animation-delay: 0.45s; }
.article-card.delay-10 { animation-delay: 0.5s; }
.article-card.delay-11 { animation-delay: 0.55s; }
.article-card.delay-12 { animation-delay: 0.6s; }


/* ======================== banner波浪 ======================= */
/* 波浪容器 - 大幅加宽 + 隐藏溢出 */
/* 修改 banner 容器 */
.banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 280px;
    margin-bottom: -6px;  /* 负边距消除缝隙 */
}
.wave-container {
    position: absolute;
    bottom: -6px;  /* 负数让波浪往下延伸 */
    left: -5%;
    width: 110%;
    height: 210px;
    pointer-events: none;
    z-index: 10;
}

/* 波浪动画 - 只做上下起伏，不做左右位移 */
.wave-fast {
    animation: waveUpDown 5s ease-in-out infinite;
}

.wave-faster {
    animation: waveUpDown 3.5s ease-in-out infinite;
    animation-direction: alternate;
}

.wave-fastest {
    animation: waveUpDown 2.5s ease-in-out infinite;
    animation-direction: reverse;
}

@keyframes waveUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .wave-container {
        height: 130px;
        width: 115%;
        left: -7.5%;
    }
    @keyframes waveUpDown {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-4px); }
    }
}


/* 小火箭回到顶部按钮 */
.rocket-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
}

.rocket-btn.show {
    opacity: 1;
    visibility: visible;
}

.rocket-btn:hover {
    transform: translateY(-4px);
    background: white;
    border-color: #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.rocket-btn:active {
    transform: translateY(-4px) scale(0.98);
}

.rocket-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.rocket-btn:hover .rocket-icon {
    animation: rocketLaunch 0.5s ease-in-out infinite;
}

/* 火箭发射动画 */
@keyframes rocketLaunch {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* 火焰效果 */
.rocket-flame {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #f59e0b, #ef4444);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.rocket-btn:hover .rocket-flame {
    opacity: 1;
    animation: flameFlicker 0.3s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% {
        width: 8px;
        height: 8px;
        opacity: 0.8;
    }
    50% {
        width: 12px;
        height: 12px;
        opacity: 1;
    }
}

/* 烟雾效果 */
.rocket-smoke {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0px;
    height: 0px;
    border-radius: 50%;
    background: rgba(200, 200, 200, 0.3);
    pointer-events: none;
}

.rocket-btn:hover .rocket-smoke {
    animation: smokePuff 0.5s ease-out infinite;
}

@keyframes smokePuff {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.5;
    }
    100% {
        width: 20px;
        height: 20px;
        opacity: 0;
    }
}

/* 滚动百分比按钮 */
.scroll-percent {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
}

.scroll-percent.show {
    opacity: 1;
    visibility: visible;
}

.scroll-percent:hover {
    transform: translateY(-2px);
    background: white;
    border-color: #10b981;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
}

.percent-number {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
    transition: all 0.3s ease;
}

.scroll-percent:hover .percent-number {
    transform: scale(1.05);
}

/* 雪花容器 */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

/* 雪花样式 */
.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    user-select: none;
    cursor: default;
    pointer-events: none;
    animation: fall linear infinite;
}

/* 雪花飘落动画 */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.1;
    }
}

/* 雪花开关按钮 */
.snow-toggle {
    position: fixed;
    bottom: 160px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.snow-toggle:hover {
    transform: translateY(-2px);
    background: white;
    border-color: #10b981;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
}

.snow-toggle.active {
    background: #10b981;
    border-color: #10b981;
}

.snow-toggle.active .snow-icon {
    color: white;
}

.snow-icon {
    font-size: 22px;
    line-height: 1;
    color: #10b981;
    transition: all 0.3s ease;
}

/* 响应式 */
@media (max-width: 768px) {
    .rocket-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
    .rocket-icon {
        width: 20px;
        height: 20px;
    }
    
    .scroll-percent {
        bottom: 80px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
    .percent-number {
        font-size: 12px;
    }
    
    .snow-toggle {
        bottom: 140px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
    .snow-icon {
        font-size: 18px;
    }
}



