/* 页面背景 - 防止布局抖动 */
html {
    overflow-y: scroll; /* 始终显示垂直滚动条 */
}

body {
    min-height: 100vh;
    min-height: 100dvh; /* 动态视口高度，确保移动端也需要滚动条 */
}

/* 移动端 */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        /* 确保body高度超过视口，强制显示滚动条 */
        min-height: calc(100vh + 1px);
        min-height: calc(100dvh + 1px);
    }
}

/* 分类标签导航栏 - 与顶部导航栏样式一致 */
.category-nav-wrapper {
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.category-nav {
    display: flex;
    align-items: center;
    gap: 32px; /* 与顶部导航栏 space-x-8 一致 */
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex-shrink: 0;
    font-size: 15px;
    color: #999;
    font-weight: 400;
    padding: 8px 0;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.category-item:hover {
    color: #333;
}

.category-item.active {
    color: #333;
    font-weight: 600;
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 16px;
}

/* 移动端滑动提示箭头 */
.category-nav-arrow {
    display: none;
}

/* 移动端分类导航优化 */
@media (max-width: 768px) {
    .category-nav-wrapper {
        margin: 0 -16px 12px;
        padding: 0 16px;
    }
    
    .category-nav {
        gap: 24px; /* 移动端稍微紧凑一些 */
        padding-right: 24px; /* 给箭头留出空间 */
    }
    
    .category-item {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .category-item.active {
        padding: 4px 12px;
    }
    
    /* 显示滑动提示箭头 - 可点击 */
    .category-nav-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 32px;
        color: #666;
        font-size: 12px;
        cursor: pointer;
        transition: color 0.2s;
    }
    
    .category-nav-arrow:hover {
        color: #333;
    }
    
    .category-nav-arrow:active {
        color: #ff2442;
    }
}

.xhs-notes-container {
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 主内容区域撑满剩余空间 */
.xhs-notes-container > .max-w-7xl {
    flex: 1;
}

/* 瀑布流网格 - 小红书双列布局 */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 6px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .masonry-grid {
        gap: 16px;
        padding: 0 12px;
    }
}

@media (min-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1280px) {
    .masonry-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

/* 笔记卡片 - 简洁风格 */
.note-card {
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

/* 纯文字笔记卡片样式 - 小红书风格 */
.note-card.text-only {
    background: #fff;
    border-radius: 6px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.note-card.text-only .p-3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px !important;
}

.note-card.text-only .note-content {
    color: #333;
    font-size: 15px;
    -webkit-line-clamp: 8;
    flex: 1;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* 图片容器 - 模糊背景填充 */
.note-card .relative.overflow-hidden,
.note-card .relative {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 6px;
    /* 防止图片加载时布局抖动 */
    min-height: 0;
    contain: layout;
}

/* 模糊背景层 */
.note-card .image-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: blur(20px);
    transform: scale(1.1);
    opacity: 0.6;
}

/* 笔记图片 - 保持比例居中 */
.note-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
    z-index: 1;
}

/* 多图标记 */
.note-card .absolute.bottom-3.right-3 {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

/* 私密标记 */
.note-card .absolute.top-3.right-3 {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

/* 卡片内容区 */
.note-card .p-3 {
    padding: 10px 0 12px !important;
}

/* 笔记内容文字 - 小红书风格标题 */
.note-content {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    word-break: break-word;
}

.note-content p {
    margin: 0;
}

.note-content img {
    display: none; /* 卡片中隐藏内容图片 */
}

/* 隐藏markdown格式标签 */
.note-content h1,
.note-content h2,
.note-content h3,
.note-content h4,
.note-content h5,
.note-content h6 {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.note-content ul,
.note-content ol,
.note-content blockquote,
.note-content pre,
.note-content code {
    display: none;
}

/* 纯文字卡片显示所有内容 */
.note-card.text-only .note-content ul,
.note-card.text-only .note-content ol,
.note-card.text-only .note-content blockquote,
.note-card.text-only .note-content pre,
.note-card.text-only .note-content code {
    display: block;
    font-size: 14px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.note-card.text-only .note-content li {
    list-style: none;
}

/* 作者信息 - 小红书底部样式 */
.note-card .flex.items-center.justify-between.mt-2 {
    margin-top: 8px !important;
}

.note-card .flex.items-center.justify-between.mt-2 img {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
    object-fit: cover;
}

.note-card .flex.items-center.justify-between.mt-2 .text-xs {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* 点赞按钮 - 小红书风格 */
.like-action {
    display: flex;
    align-items: center;
    gap: 3px;
}

.like-btn {
    font-size: 14px;
    color: #9b9b9b;
    transition: all 0.2s ease;
}

.like-btn.text-pink-600,
.like-btn.liked {
    color: #ff2442 !important;
}

.like-count {
    font-size: 12px;
    color: #9b9b9b;
}

/* 关注按钮 - 小红书风格 */
.follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.follow-btn.not-followed {
    background: #ff2442;
    color: #fff;
}

.follow-btn.followed {
    background: #f5f5f5;
    color: #666;
}

.follow-btn i {
    margin-right: 4px;
    font-size: 10px;
}

.follow-btn:hover {
    opacity: 0.9;
}

/* ========================================
   头部导航 - 小红书风格
   ======================================== */
.site-header {
    background: #fff;
    position: fixed;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.site-brand {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.site-brand img {
    height: 32px;
    max-width: 120px;
    object-fit: contain;
}

/* 小红书风格文字Logo */
.xhs-text-logo {
    display: inline-block;
    background: #ff2442;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-link {
    font-size: 15px;
    color: #999;
    font-weight: 400;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #333;
}

.nav-link.active {
    color: #333;
    font-weight: 600;
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 16px;
}

.nav-link.active::after {
    display: none;
}

.nav-button {
    background: #ff2442;
    color: #fff;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-button:hover {
    background: #e61e3a;
    color: #fff;
}

/* ========================================
   模态框样式 - 小红书风格
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    max-height: 90vh;
    overflow-y: auto;
}

/* 小红书风格模态框容器 */
.modal .max-w-6xl {
    max-width: 1000px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

/* 隐藏原有头部 */
.modal .border-b.p-5 {
    display: none;
}

/* 关闭按钮 */
.modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    z-index: 100;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.modal .modal-close:hover {
    background: rgba(0,0,0,0.7);
}

/* 模态框内容区 */
.modal .modal-content.p-6 {
    padding: 0 !important;
}

/* 左右分栏布局 */
.modal .grid.grid-cols-1.md\:grid-cols-2 {
    gap: 0 !important;
}

/* 左侧图片区域 */
.modal .carousel {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal .carousel-container {
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100%;
    height: 100%;
    position: relative;
}

/* 模态框图片容器 */
.modal .modal-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5;
}

/* 模态框模糊背景 */
.modal .modal-image-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: blur(30px);
    transform: scale(1.2);
    opacity: 0.6;
}

/* 模态框主图片 */
.modal .modal-image {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* 轮播控制按钮 */
.modal .carousel-prev,
.modal .carousel-next {
    background: rgba(255,255,255,0.9) !important;
    color: #333 !important;
    width: 36px;
    height: 36px;
    padding: 8px !important;
    z-index: 10;
    transition: opacity 0.2s, background 0.2s;
}

.modal .carousel-prev:hover,
.modal .carousel-next:hover {
    background: #fff !important;
}

/* 轮播指示器 */
.modal .carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    background: rgba(0,0,0,0.3);
    padding: 6px 10px;
    border-radius: 12px;
    z-index: 5;
}

.modal .carousel-indicators button,
.modal .carousel-indicators span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 0;
    margin: 0 3px;
    transition: all 0.2s;
}

.modal .carousel-indicators button.active,
.modal .carousel-indicators span.active {
    background: #fff;
    width: 16px;
    border-radius: 3px;
}

/* 右侧内容区域 - 使用Flexbox布局 */
.modal-right-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 80vh;
    background: #fff;
    position: relative;
    padding: 0;
    margin: 0;
}

/* 内容区域 - 可滚动 */
.modal-scroll-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 20px;  /* 添加上下内边距 */
    margin: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    min-height: 0; /* 修复Firefox下的flexbox滚动问题 */
    position: relative;
}

/* 内容区域内部容器 - 移除多余的内边距 */
.modal-content-inner {
    padding: 0;
}

/* 底部操作栏 - 统一样式 */
.modal-bottom-bar {
    display: flex;
    align-items: center;
    padding: 16px 20px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    margin: 0;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    flex-shrink: 0;
}

.modal-bottom-bar * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

/* 确保模态框内容不会超出容器 */
.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 纯文字模式 - 无图片视频时 */
.modal .max-w-6xl.text-only-modal {
    max-width: 450px;
}

.modal-content .grid.text-only-mode {
    display: block !important;
}

.modal-content .grid.text-only-mode .carousel {
    display: none !important;
}

.modal-content .grid.text-only-mode .modal-right-panel {
    max-width: 100%;
}

/* 作者信息头部 */
.modal-author-header {
    padding: 16px 20px;
    flex-shrink: 0;
}

.modal-author-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-author-info .author-left {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.modal-author-info .author-left:hover {
    opacity: 0.8;
}

.modal-author-info .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.modal-author-info .author-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.modal-author-info .follow-btn {
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 20px;
    background: #ff2442;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-author-info .follow-btn i {
    font-size: 12px;
}

.modal-author-info .follow-btn.followed {
    background: #f5f5f5;
    color: #666;
}

/* 笔记内容 */
.modal .modal-note-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    max-height: none !important;
}

.modal .modal-note-content p {
    margin-bottom: 12px;
}

.modal .modal-note-content img {
    max-width: 100%;
    border-radius: 4px;
    margin: 8px 0;
}

/* 发布时间 */
.modal-post-time {
    font-size: 13px;
    color: #999;
    margin-top: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

/* 评论区 */
.modal .comments-section {
    border-top: none !important;
    padding: 0 !important;
    margin: 16px 0 0 0 !important;
    max-height: none !important;
}

.modal .comments-header {
    margin-bottom: 16px;
}

.modal .comments-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.modal .comments-list {
    max-height: none !important;
    padding: 0 !important;
}

.modal .comments-empty {
    padding: 32px 0;
    text-align: center;
}

.modal .comments-empty .empty-comment-icon {
    width: 48px;
    height: 48px;
    color: #ddd;
    margin: 0 auto 12px;
    display: block;
}

.modal .comments-empty p {
    font-size: 14px;
    color: #999;
}

/* 评论项 - 小红书风格 */
.modal .comment-item {
    display: flex;
    padding: 16px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    position: relative;
}

.modal .comment-item .comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: cover;
}

.modal .comment-item .comment-body {
    flex: 1;
    min-width: 0;
}

.modal .comment-item .comment-author {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    text-decoration: none;
    display: block;
}

.modal .comment-item .comment-author:hover {
    color: #ff2442;
}

/* 评论头像链接 */
.modal .comment-item .comment-avatar-link {
    flex-shrink: 0;
}

.modal .comment-item .comment-avatar-link:hover .comment-avatar {
    opacity: 0.85;
}

.modal .comment-item .comment-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
    word-break: break-word;
}

.modal .comment-item .comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.modal .comment-item .comment-time {
    color: #999;
}

.modal .comment-item .comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal .comment-item .comment-reply-btn,
.modal .comment-item .comment-like {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal .comment-item .comment-like:hover,
.modal .comment-item .comment-reply-btn:hover {
    color: #333;
}

.modal .comment-item .comment-like.liked {
    color: #ff2442;
}

.modal .comment-item .comment-like.liked i {
    color: #ff2442;
}

/* 回复列表样式 */
.modal .comment-replies {
    margin-top: 12px;
    margin-left: 0;
    padding-left: 12px;
    border-left: 2px solid #f0f0f0;
}

.modal .comment-reply {
    padding: 12px 0 !important;
    border-bottom: none !important;
    background: transparent !important;
    margin-bottom: 0;
}

.modal .comment-reply:last-child {
    padding-bottom: 0 !important;
}

.modal .comment-reply .comment-avatar {
    width: 28px;
    height: 28px;
}

.modal .comment-reply .comment-author {
    font-size: 13px;
}

.modal .comment-reply .comment-text {
    font-size: 13px;
}

/* 回复前缀样式 */
.reply-to {
    color: #999;
}

.reply-nickname {
    color: #ff2442;
    font-weight: 500;
    text-decoration: none;
}

a.reply-nickname:hover {
    text-decoration: underline;
}

/* 删除按钮样式 */
.modal .comment-item .comment-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0;
    margin-left: 8px;
}

.modal .comment-item:hover .comment-delete-btn {
    opacity: 1;
}

.modal .comment-item .comment-delete-btn:hover {
    color: #ff2442;
}

.modal .comment-item .comment-pending {
    color: #ff2442;
    font-style: italic;
}


.modal-input-wrapper {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-right: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #f5f5f5;
    border-radius: 18px;
    padding-right: 4px;
    min-width: 0;
    height: 36px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    line-height: 1;
}

.modal-comment-input {
    flex: 1;
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 18px;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
    line-height: 1;
}

.modal-comment-input::placeholder {
    color: #999;
}

.modal-login-hint {
    color: #999 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    height: 36px !important;
}

.modal-send-btn {
    padding: 6px 16px;
    background: #ff2442;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.modal-send-btn:hover {
    background: #e61e3a;
}

.modal-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    height: 36px;
    line-height: 1;
}

.modal-action-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    height: 36px;
    line-height: 1;
}

.modal-action-item i {
    font-size: 20px;
    margin-right: 4px;
    line-height: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.modal-action-item span {
    line-height: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 13px;
    color: #666;
}

/* 移动端底部操作栏优化 */
@media (max-width: 640px) {
    .modal-bottom-bar {
        padding: 12px 12px 16px;
        height: auto;
        min-height: 50px;
    }
    
    .modal-input-wrapper {
        margin-right: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .modal-comment-input {
        padding: 0 12px;
        font-size: 13px;
    }
    
    .modal-send-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .modal-actions {
        gap: 10px;
        margin-left: auto;
    }
    
    .modal-action-item i {
        font-size: 18px;
        margin-right: 2px;
    }
    
    .modal-action-item span {
        font-size: 12px;
    }
}

.modal-action-item:hover {
    color: #ff2442;
}

.modal-action-item.liked i {
    color: #ff2442;
}

.modal-action-item.liked i::before {
    content: "\f004";
    font-weight: 900;
}

/* ========================================
   评论区样式
   ======================================== */
.comments-section {
    padding-top: 16px;
    margin-top: 16px;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
}

.comment-item {
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.comment-input {
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    resize: none;
    transition: border-color 0.2s;
}

.comment-input:focus {
    border-color: #ff2442;
    outline: none;
}

.comment-submit {
    background: #ff2442;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-submit:hover {
    background: #e61e3a;
}

/* ========================================
   用户主页样式 - 小红书风格
   ======================================== */
.xhs-profile-header {
    background: #fff;
    padding: 24px 16px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.xhs-profile-main {
    display: inline-flex;
    align-items: flex-start;
    text-align: left;
    box-sizing: border-box;
}

.xhs-profile-avatar {
    flex-shrink: 0;
    margin-right: 16px;
}

.xhs-profile-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.xhs-profile-content {
    flex: 1;
    min-width: 0;
}

.xhs-profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.xhs-profile-id {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.xhs-profile-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.xhs-profile-desc-empty {
    color: #ccc;
}

/* 统计数据 - 横向排列 */
.xhs-profile-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 统计项 - 数字和文字横向排列 */
.xhs-stat-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.xhs-stat-num {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1;
}

.xhs-stat-label {
    font-size: 12px;
    color: #999;
}

/* 关注按钮 */
.xhs-profile-action {
    flex-shrink: 0;
    margin-left: 16px;
    align-self: center;
}

.xhs-follow-btn {
    min-width: 64px;
    height: 32px;
    padding: 0 14px;
    background: #ff2442;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.xhs-follow-btn:hover {
    background: #e61e3a;
}

.xhs-follow-btn.followed {
    background: #f5f5f5;
    color: #666;
}

.xhs-follow-btn.followed:hover {
    background: #eee;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .xhs-profile-header {
        padding: 16px 6px !important;
        text-align: center !important;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
    }
    
    .xhs-profile-header .xhs-profile-main {
        display: inline-flex !important;
        width: auto !important;
        max-width: 100%;
        padding: 0 16px;
        text-align: left;
    }
    
    .xhs-profile-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .xhs-profile-avatar {
        margin-right: 12px;
    }
    
    .xhs-profile-name {
        font-size: 16px;
    }
    
    .xhs-profile-stats {
        gap: 16px;
    }
    
    .xhs-stat-num {
        font-size: 15px;
    }
    
    .xhs-profile-action {
        margin-left: 12px;
    }
    
    .xhs-follow-btn {
        min-width: 56px;
        height: 28px;
        font-size: 12px;
        padding: 0 10px;
    }
    
    .xhs-edit-btn {
        min-width: 56px;
        height: 28px;
        font-size: 12px;
        padding: 0 10px;
    }
}

/* 编辑按钮样式 */
.xhs-edit-btn {
    min-width: 64px;
    height: 32px;
    padding: 0 14px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.xhs-edit-btn:hover {
    background: #eee;
}

.xhs-edit-btn i {
    font-size: 11px;
}

/* 编辑资料弹窗 */
.edit-profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.edit-profile-modal.active {
    display: block;
}

.edit-profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.edit-profile-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.edit-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.edit-profile-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.edit-profile-close {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.edit-profile-close:hover {
    color: #333;
}

.edit-profile-body {
    padding: 20px;
}

.edit-field {
    margin-bottom: 16px;
}

.edit-field:last-child {
    margin-bottom: 0;
}

.edit-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.edit-field input[type="text"] {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.edit-field input[type="text"]:focus {
    outline: none;
    border-color: #ff2442;
}

.edit-field input[type="text"]::placeholder {
    color: #999;
}

.edit-field textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    resize: none;
    box-sizing: border-box;
}

.edit-field textarea:focus {
    outline: none;
    border-color: #ff2442;
}

.edit-field textarea::placeholder {
    color: #999;
}

.edit-field-hint {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.edit-profile-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

.edit-cancel-btn {
    padding: 8px 20px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.edit-cancel-btn:hover {
    background: #eee;
}

.edit-save-btn {
    padding: 8px 20px;
    background: #ff2442;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.edit-save-btn:hover {
    background: #e61e3a;
}

.edit-save-btn:disabled {
    background: #ffb3be;
    cursor: not-allowed;
}

/* 旧版用户主页样式保留兼容 */
.user-profile-header {
    background: linear-gradient(135deg, #ff2442 0%, #ff6b81 100%);
    border-radius: 0 0 24px 24px;
    padding: 24px 16px;
    color: #fff;
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 16px;
}

.user-stat-item {
    text-align: center;
}

.user-stat-number {
    font-size: 18px;
    font-weight: 600;
}

.user-stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* 标签页 - 小红书风格 */
.tab-container {
    background: #fff;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 0;
    width: 100%;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: none;
    background: #fff;
    position: relative;
    padding: 12px 0;
    gap: 8px;
}

.tab-button {
    flex: none;
    padding: 8px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    outline: none;
    white-space: nowrap;
    border-radius: 16px;
}

.tab-button:hover {
    color: #333;
    background: #f5f5f5;
}

.tab-button.active {
    color: #333;
    font-weight: 600;
    background: #f5f5f5;
}

/* 移动端tab栏 - 小红书风格 */
@media (max-width: 640px) {
    .tab-container {
        border-radius: 0;
        margin: 0 -16px;
        width: calc(100% + 32px);
        position: sticky;
        top: 56px;
        z-index: 50;
        overflow: visible;
    }
    
    .tab-content {
        overflow: visible;
    }
    
    .tab-buttons {
        padding: 10px 0;
        gap: 6px;
    }
    
    .tab-button {
        padding: 6px 16px;
        font-size: 13px;
    }
}

.tab-content {
    padding: 16px 0;
    display: none;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.tab-content.active {
    display: block;
}

/* 移动端tab-content内的masonry-grid不需要负边距 */
@media (max-width: 640px) {
    .tab-content .masonry-grid {
        margin: 0;
        width: 100%;
        padding: 0 6px;
    }
}

/* 空状态保持一致的布局 */
.tab-content .empty-state {
    width: 100%;
    box-sizing: border-box;
    padding: 48px 16px;
}

/* 关注/粉丝列表 */
.follow-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding: 0 6px;
}

.follow-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
}

.follow-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 8px;
    object-fit: cover;
}

.follow-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    width: 100%;
    box-sizing: border-box;
}

.empty-state-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 14px;
    color: #999;
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 640px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 0 6px;
        margin: 0 -16px;
        width: calc(100% + 32px);
        box-sizing: border-box;
    }
    
    .note-card .p-3 {
        padding: 8px 0 10px !important;
    }
    
    .note-content {
        font-size: 13px;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
    }
    
    .note-card .flex.items-center.justify-between.mt-2 img {
        width: 16px !important;
        height: 16px !important;
    }
    
    .note-card .flex.items-center.justify-between.mt-2 .text-xs {
        font-size: 11px;
    }
    
    .like-btn {
        font-size: 12px;
    }
    
    .like-count {
        font-size: 11px;
    }
    
    .user-avatar {
        width: 64px;
        height: 64px;
    }
    
    .user-stats {
        gap: 24px;
    }
    
    .user-stat-number {
        font-size: 16px;
    }
}

/* ========================================
   滚动条美化
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* ========================================
   其他通用样式
   ======================================== */
.xhs-load-more {
    text-align: center;
    padding: 24px 0;
}

.xhs-btn-load-more {
    background: #ff2442;
    color: #fff;
    padding: 10px 32px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.xhs-btn-load-more:hover {
    background: #e61e3a;
}

/* ========================================
   视频相关样式
   ======================================== */
.video-play-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    backdrop-filter: blur(4px);
}

.video-play-icon i {
    margin-left: 3px;
}

.video-cover-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #000;
    overflow: hidden;
    border-radius: 6px;
}

.video-cover-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 模态框视频样式 - 小红书风格 */
.modal-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
}

.modal-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    outline: none;
    background: #000;
}

/* 视频控制条样式优化 */
.modal-video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.modal-video::-webkit-media-controls-play-button {
    filter: brightness(1.2);
}

.modal-video::-webkit-media-controls-timeline {
    filter: brightness(1.2);
}

/* 视频轮播项样式 */
.carousel-item[data-type="video"] {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3/4;
}

.carousel-item[data-type="video"] .modal-video-wrapper {
    width: 100%;
    height: 100%;
}

.carousel-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
}

/* 视频加载状态 */
.modal-video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #ff2442;
    border-radius: 50%;
    animation: video-loading-spin 1s linear infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.modal-video-wrapper.loading::before {
    opacity: 1;
}

@keyframes video-loading-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 视频播放按钮覆盖层 - 小红书风格 */
.modal-video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.modal-video-play-overlay:hover {
    background: rgba(0,0,0,0.4);
}

.modal-video-play-overlay .play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.modal-video-play-overlay:hover .play-btn {
    transform: scale(1.1);
}

.modal-video-play-overlay .play-btn i {
    color: #333;
    font-size: 24px;
    margin-left: 4px;
}

.modal-video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}


/* ========================================
   无限滚动加载样式
   ======================================== */
.infinite-scroll-trigger {
    height: 1px;
    width: 100%;
}

.loading-spinner {
    padding: 20px 0;
}

.loading-spinner svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.load-more-container {
    min-height: 60px;
}

.no-more-text {
    color: #999;
    font-size: 14px;
}

/* ========================================
   移动端底部导航 - 小红书风格
   ======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    /* 给页面底部留出导航栏空间 */
    body {
        padding-bottom: 10px;
    }
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
}

.mobile-nav-text {
    font-size: 15px;
    font-weight: 400;
    color: #999;
    transition: color 0.2s ease;
}

.mobile-nav-item.active .mobile-nav-text {
    color: #333;
    font-weight: 600;
}

.mobile-nav-item:hover .mobile-nav-text {
    color: #333;
}

/* 发布按钮 - 小红书红色加号 */
.mobile-nav-publish {
    flex: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-publish-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ff2442;
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-nav-publish:hover .mobile-nav-publish-btn {
    background: #e61e3a;
    transform: scale(1.05);
}

/* 移动端导航图标样式 */
.mobile-nav-icon {
    font-size: 18px;
    color: #666;
}

.mobile-nav-item.active .mobile-nav-icon {
    color: #333;
}

.mobile-nav-publish .mobile-nav-icon {
    color: #ff2442;
}

.mobile-search-btn .mobile-nav-icon {
    color: #666;
}

/* ========================================
   关注页面 - 小红书风格
   ======================================== */

/* 关注页空状态 */
.following-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.following-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    margin-bottom: 20px;
}

.following-empty-icon i {
    font-size: 28px;
    color: #ccc;
}

.following-empty-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.following-empty-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

.following-empty-btn {
    display: inline-block;
    padding: 10px 32px;
    background: #ff2442;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.following-empty-btn:hover {
    background: #e61e3a;
    color: #fff;
}

/* ========================================
   搜索功能样式
   ======================================== */

/* 搜索弹窗 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.search-modal.active {
    display: block;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.search-modal-content {
    position: relative;
    background: #fff;
    padding: 16px;
    animation: searchSlideDown 0.2s ease;
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-modal-input-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 0 16px;
}

.search-modal-input-wrapper i {
    color: #999;
    font-size: 16px;
}

.search-modal-input {
    flex: 1;
    height: 44px;
    padding: 0 12px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
}

.search-modal-input::placeholder {
    color: #999;
}

.search-modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999;
    font-size: 16px;
}

.search-modal-close:hover {
    color: #333;
}

/* 搜索结果页样式 */
.search-results-header {
    margin-bottom: 20px;
}

.search-results-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.search-results-count {
    font-size: 14px;
    color: #999;
}

/* 搜索空状态 */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.search-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    margin-bottom: 20px;
}

.search-empty-icon i {
    font-size: 28px;
    color: #ccc;
}

.search-empty-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.search-empty-desc {
    font-size: 14px;
    color: #999;
}

/* 标签结果页样式 */
.tag-results-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px 0;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff5f5;
    color: #ff2442;
    font-size: 18px;
    font-weight: 600;
    border-radius: 24px;
    margin-bottom: 8px;
}

.tag-badge i {
    font-size: 16px;
}

.tag-results-count {
    font-size: 14px;
    color: #999;
}

/* 笔记内容中的标签样式 - 小红书蓝色风格 */
.modal-note-content a.note-tag,
.detail-note-content a.note-tag,
a.note-tag {
    display: inline;
    background: none;
    color: #3b5998 !important;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.modal-note-content a.note-tag:hover,
.detail-note-content a.note-tag:hover,
a.note-tag:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* 移动端搜索框 */
@media (max-width: 767px) {
    .mobile-search-bar {
        display: block;
        padding: 12px 16px;
        background: #fff;
    }
    
    .mobile-search-bar .search-input-wrapper {
        width: 100%;
    }
    
    .mobile-search-bar .search-input {
        width: 100%;
    }
    
    .mobile-search-bar .search-input:focus {
        width: 100%;
    }
}




/* ========================================
   页面底部版权信息 - 小红书风格
   ======================================== */
.site-footer {
    background: #fff;
    padding: 12px 16px;
    text-align: center;
    margin-top: auto;
}

@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 60px;
    }
}

.footer-content {
    font-size: 12px;
    color: #b8b8b8;
    line-height: 1.6;
}

.footer-content .copyright-text,
.footer-content .icp-number {
    margin: 0;
}

.footer-content .icp-number a {
    color: #b8b8b8;
    text-decoration: none;
}


/* ========================================
   移动端/PC端模态框区分
   ======================================== */

/* 移动端隐藏模态框（使用单页代替） */
@media (max-width: 768px) {
    #noteDetailModal {
        display: none !important;
    }
}

/* PC端模态框样式保持不变 */
@media (min-width: 769px) {
    #noteDetailModal.modal {
        display: none;
    }
    
    #noteDetailModal.modal[style*="display: block"] {
        display: block !important;
    }
}


/* ========================================
   详情页评论样式（移动端单页）
   ======================================== */
.detail-comments .comment-item {
    display: flex;
    padding: 16px 0;
    background: transparent;
    margin: 0;
}

.detail-comments .comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: cover;
}

.detail-comments .comment-body {
    flex: 1;
    min-width: 0;
}

.detail-comments .comment-author {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    text-decoration: none;
    display: block;
}

.detail-comments .comment-author:hover {
    color: #ff2442;
}

/* 详情页评论头像链接 */
.detail-comments .comment-avatar-link {
    flex-shrink: 0;
}

.detail-comments .comment-avatar-link:hover .comment-avatar {
    opacity: 0.85;
}

.detail-comments .comment-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 8px;
    word-break: break-word;
}

.detail-comments .comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.detail-comments .comment-time {
    color: #999;
}

.detail-comments .comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-comments .comment-reply-btn,
.detail-comments .comment-delete-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.detail-comments .comment-reply-btn:hover,
.detail-comments .comment-delete-btn:hover {
    color: #333;
}

.detail-comments .comment-delete-btn:hover {
    color: #ff2442;
}

.detail-comments .comments-empty {
    padding: 32px 0;
    text-align: center;
}

.detail-comments .empty-comment-icon {
    width: 48px;
    height: 48px;
    color: #ddd;
    margin: 0 auto 12px;
    display: block;
}

.detail-comments .comments-empty p {
    font-size: 14px;
    color: #999;
}

.detail-comments .comments-loading {
    padding: 20px 0;
    text-align: center;
}

/* 详情页评论回复样式 */
.detail-comments .comment-replies {
    margin-top: 12px;
    margin-left: 0;
    padding-left: 12px;
    border-left: 2px solid #f0f0f0;
}

.detail-comments .comment-reply {
    padding: 12px 0 !important;
}

.detail-comments .comment-reply:last-child {
    padding-bottom: 0 !important;
}

.detail-comments .comment-reply .comment-avatar {
    width: 28px;
    height: 28px;
}

.detail-comments .comment-reply .comment-author {
    font-size: 13px;
}

.detail-comments .comment-reply .comment-text {
    font-size: 13px;
}

/* 回复前缀样式 */
.detail-comments .reply-to {
    color: #999;
}

.detail-comments .reply-nickname {
    color: #ff2442;
    font-weight: 500;
    text-decoration: none;
}

.detail-comments a.reply-nickname:hover {
    text-decoration: underline;
}

/* CSS Version: 20260121180516 - Fixed modal bottom bar spacing */
