html {
    overflow-y: scroll;
    overflow-x: hidden !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui,
        -apple-system,
        'Segoe UI',
        'PingFang SC',
        'Microsoft YaHei',
        sans-serif;;
    scrollbar-width: thin;
    scrollbar-color: #2d2d2d #1a1a1a;
}
:root {
  --end-bg: #1a1a1a;
  --end-card-bg: #2d2d2d;
  --end-border: #3a3a3a;
  --end-text: #e0e0e0;
  --end-text-secondary: #a0a0a0;
  --end-a-link-card: #3a3a3a;
  --end-a-link-card-border: #3a3a3a;
  --end-a-link-card-hover: #404040;
  --end-meta-bg: rgba(45, 45, 45, 0.85);
  --end-post-p: #b5b5b5;
  --end-shadow: rgba(0, 0, 0, 0.3);

  --end-primary: #0084ff;


  
  --halo-cw-primary-1-color: #0084ff;
  --halo-cw-primary-2-color: #06ae5600;
  --halo-cw-primary-3-color: #059c4d00;
  
  --halo-cw-text-1-color: #ccc;
  --halo-cw-text-2-color: #ccc;
  --halo-cw-text-3-color: #a0a0a0;
  
  --halo-cw-muted-1-color: #333;
  --halo-cw-muted-2-color: #2d2d2d;
  --halo-cw-muted-3-color: #1a1a1a;



    --halo-cw-emoji-picker-rgb-color: 222, 222, 221;
    --halo-cw-emoji-picker-rgb-accent: 58, 130, 247;
    --halo-cw-emoji-picker-rgb-background: 26, 26, 26;
    --halo-cw-emoji-picker-rgb-input: 0, 0, 0;
    --halo-cw-emoji-picker-color-border: rgba(255, 255, 255, 0.1);
    --halo-cw-emoji-picker-color-border-over: rgba(255, 255, 255, 0.2);

    /* 搜索插件基础变量 */
  --halo-search-widget-base-font-size: 14px;
  --halo-search-widget-base-font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --halo-search-widget-base-rounded: 8px;
  --halo-search-widget-base-bg-color: #2b2b2b;
  --halo-search-widget-primary-color: #0084ff;
  --halo-search-widget-muted-color: #a0a0a0;
  --halo-search-widget-content-color: #e0e0e0;
  --halo-search-widget-modal-bg-color: #2b2b2b;
  --halo-search-widget-modal-layer-color: rgba(0, 0, 0, 0.8);
  --halo-search-widget-hit-bg-color: #3a3a3a;
  --halo-search-widget-divider-color: #3a3a3a;
  --halo-search-widget-kbd-border-color: #3a3a3a;

  
}

body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    line-height: 1.7;
    min-height: 100vh;
    padding-top: 40px;
  overflow: visible !important;
}

.pd-content {
    padding: 10px;
border-radius: 12px 12px 0 0;
    margin-top: -10px;
    background-color: #252525;
    position: relative;
    z-index: 3;
}


.container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background-color: #252525;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.container-top-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*height: 8px;*/
    background-color: #252525;
    border-radius: 12px 12px 0 0;
    z-index: 998;
    pointer-events: none;
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    .container {
        max-width: 100%;
        border-radius: 0;
    }
    .container-top-mask {
        display: none;
    }
}
.login-icon {
      text-decoration: none;
}
/* 导航栏核心布局：桌面端标题+导航按钮左对齐，搜索Icon右对齐；移动端标题左对齐，导航+搜索右对齐 */
/*.navbar {
    padding: 15px 15px;
    display: flex;
    align-items: center;
    background-color: #252525;
    position: sticky;
    top: 0;
    z-index: 998;
    border-bottom: 1px solid #333;
    position: -webkit-sticky;
}*/





/* 用户头像样式 */
.uuu-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

/* 移动端用户图标容器 */
.uuu-mobile-user-icon {
    display: flex;
    align-items: center;
}

/* 用户头像链接样式 */
.uuu-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}



/* 确保用户头像图标与其他图标样式一致 */
.uuu-user-avatar .uuu-search-icon {
    font-size: 20px;
    color: #e0e0e0;
}

.uuu-user-avatar:hover .uuu-search-icon {
    color: #fff;
}

/* 用户下拉菜单容器 */
.uuu-user-dropdown-container {
    position: relative;
    display: inline-block;
}

/* 用户下拉菜单 */
.uuu-user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #252525;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.uuu-user-dropdown-menu.uuu-show {
    display: block;
}

/* 用户信息区域 */
.uuu-user-info {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #2c2c2c;
    gap: 10px;
    border-bottom: 1px solid #333;
}

.uuu-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
}

.uuu-dropdown-icon {
    font-size: 40px;
    color: #e0e0e0;
}

.uuu-username {
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

/* 下拉菜单项 */
.uuu-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* 悬停效果 */
.uuu-dropdown-item:hover {
    background-color: #303030;
    color: #fff;
}

.uuu-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 16px;
    color: #999;
    transition: color 0.2s ease;
}

.uuu-dropdown-item:hover i {
    color: #fff;
}

/* 控制台图标特殊颜色 */
.uuu-dropdown-item:nth-child(2) i {
    color: #4dabf7;
}

/* 退出登录项特殊样式 */
.uuu-logout-item {
    color: #ff6b6b;
    border-top: 1px solid #333;
}

.uuu-logout-item:hover {
    color: #ff8787;
    background-color: rgba(255, 107, 107, 0.1);
}

.uuu-logout-item i {
    color: #ff6b6b;
}

.uuu-logout-item:hover i {
    color: #ff8787;
}

/* 分割线 */
.uuu-dropdown-divider {
    height: 0px;
    background: linear-gradient(to right, transparent, #444, transparent);
    /*margin: 4px 16px;*/
}

/* 移动端适配 */
@media (max-width: 768px) {
    .uuu-user-dropdown-menu {
        position: fixed;
        top: 60px;
        right: 20px;
        left: auto;
        min-width: 220px;
        max-width: calc(100vw - 40px);
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
        margin-top: 0px;
    }
    
    .uuu-user-info {
        padding: 10px;
    }
    
    .uuu-username {
        font-size: 16px;
        max-width: 150px;
    }
}

/* 桌面端小屏幕适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .uuu-user-dropdown-menu {
        min-width: 180px;
    }
}

/* 用户头像悬停效果 */
.uuu-user-avatar:hover,
.uuu-user-avatar.uuu-avatar-hover-active {
    background-color: rgba(56, 56, 56, 0.6);
    transform: scale(1.05);
}

.uuu-user-avatar:active {
    transform: scale(0.95);
  
}

/* 头像图片 */
.uuu-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.uuu-user-avatar:hover .uuu-avatar-img,
.uuu-user-avatar.uuu-avatar-hover-active .uuu-avatar-img {
    transform: scale(0.95);
  background-color: rgba(56, 56, 56, 0.6);
}

/* 搜索图标样式 */
.uuu-user-avatar .uuu-search-icon {
    font-size: 28px;
    color: #e0e0e0;
    transition: all 0.2s ease;
}

.uuu-user-avatar:hover .uuu-search-icon,
.uuu-user-avatar.uuu-avatar-hover-active .uuu-search-icon {
    color: #fff;
    transform: scale(1.1);
  background-color: rgba(56, 56, 56, 0.6);
}














.cover {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
    z-index: 1; /* 封面层级低于内容区 */
}

/* 图片样式 */
.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;

  user-select: none; 
  -webkit-user-select: none;
  -moz-user-select: none; 
  -ms-user-select: none; 

  -webkit-user-drag: none; 
  pointer-events: none;   
}

/* 渐变背景样式 */
.cover-gradient {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 遮罩层 */
.cover-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 77%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 1;
}

.cover-info {
    position: absolute;
    bottom: 12px;
    /*left: 12px;*/
    padding: 6px 12px;
    z-index: 2; /* 封面文字层级高于封面图 */
    width: 100%;
}

.cover-info h2 {

}

.cover-info p {

}




.cover-meta-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.cover-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;

}

/* 使用flex布局确保图标垂直居中 */
.cover-meta-info .meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 1rem;
    opacity: 0.9;
    /* 让图标和文字基线对齐 */
    line-height: 1;
}

/* 确保Font Awesome图标正确对齐 */
.cover-meta-info .fas {
    display: inline-flex;
    align-items: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cover {
        height: 260px;
    }
    
    .cover-info h2 {

    }
    
    .cover-info p {

    }
}

/* 当没有昵称或简介时，隐藏整个cover-info */
.cover-info:empty {
    display: none;
}

/* 核心修改：内容区样式（上移10px，不遮挡封面介绍） */
.content {
    padding: 10px 10px 0px 10px;
    border-radius: 12px 12px 0 0;
    margin-top: -10px;
    background-color: #252525;
    position: relative;
    z-index: 3;
    /*box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);*/
}
@media (max-width: 768px) {
    .content {
        padding: 10px;/*10px 12px 0px 12px*/
        margin-top: -10px;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    }
}

.article-item {
    /*margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #333;*/
    /*position: relative;*/
}
.ms-content:hover {
    outline: 1px solid #3a3a3a;
    transform: none;
}
/* 当评论区域展开时，给内容容器添加边框 */
.ms-content.comment-active {
    outline: 1px solid #3a3a3a !important;
}

.moment-comments-section:not([style*="display: none"]) {
    /*border-top: 1px solid #333;*/
}

}
.article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    color: #888;
    padding: 2px 6px;
    background-color: #2d2d2d;
    border-radius: 4px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 500;
    color: #fff;
    font-size: 15px;
}

.post-time {
    font-size: 12px;
    color: #999;
}

.post-content {
    /*font-size: 15px;*/
    color: #ddd;
    line-height: 1.8;
    /*margin-bottom: 16px;*/
}

.interact-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0px;/*12px*/
}

.interact-left {
    display: flex;
    gap: 16px;
}

.interact-btn {
    background-color: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    display: inline-flex; /* 使用inline-flex而不是flex */
    align-items: center; /* 垂直居中对齐 */
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 6px 10px; /* 增加padding */
    gap: 6px; /* 图标和数字之间的间距 */
    min-width: auto;
    height: 26px; /* 固定高度 */
    line-height: 1; /* 重置行高 */
}
.interact-btn > i {
    font-size: 14px;
    line-height: 1; /* 重置图标行高 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 14px; /* 固定图标高度 */
}
.interact-btn > .like-count,
.interact-btn > .comment-count {
    font-size: 13px;
    font-weight: normal;
    color: #ccc;
    line-height: 1; /* 重置数字行高 */
    display: inline-flex;
    height: 14px; /* 和图标高度一致 */
}
.interact-btn:hover {
    color: #fff;
    background-color: #383838;
}

.comment-btn {
    width: auto;
    padding: 4px 12px;
    gap: 4px;
    font-size: 13px;
    /*background-color: #2d2d2d;*/
    background-color: #333333;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.comment-btn:hover {
    background-color: #383838;
    color: #fff;
}



.search-link {
  text-decoration: none;
}

































.post-content a {
    color: #0084ff;
    text-decoration: none;
    margin
}

.post-content a:hover {
    color: #3399ff;
    text-decoration: underline;
}

/* 媒体网格样式（参考另一个主题） */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    margin: 0px 0px 10px 0px;
    max-width: 100%;
}

/* 单张媒体文件 - 全宽显示 */
.media-grid:has(.media-item:nth-child(1):last-child) {
    grid-template-columns: 1fr;
    max-width: 100%;
}

.media-grid:has(.media-item:nth-child(1):last-child) .media-item {
    aspect-ratio: 4/3;
}

/* 两张媒体文件 - 并排显示 */
.media-grid:has(.media-item:nth-child(1):nth-last-child(2)),
.media-grid:has(.media-item:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
}

.media-grid:has(.media-item:nth-child(1):nth-last-child(2)) .media-item,
.media-grid:has(.media-item:nth-child(2):last-child) .media-item {
    aspect-ratio: 1;
}

/* 三张及以上 - 3列九宫格 */
.media-grid:has(.media-item:nth-child(3)) .media-item {
    aspect-ratio: 1;
}

/* 媒体项通用样式 */
.media-item {
    border-radius: 6px;
    overflow: hidden;
    background: #2d2d2d;
    position: relative;
    cursor: pointer;
}

.moment-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.media-item:hover .moment-media {
    /*transform: scale(1.05);*/
}
.media-item img,
.video-wrapper,
.media-item video {
    cursor: zoom-in;
}


/* 视频样式 */
.media-item .video-wrapper,
.media-grid .video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    aspect-ratio: 16/9; /* 统一宽高比 */
  cursor: zoom-in;
}

.media-item .video-wrapper video,
.media-grid .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 与图片集图片样式一致 */
    border-radius: 6px;
    background: #000;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* 修复Safari的border-radius问题 */
}

/* 隐藏所有播放控件 - 与 article-item 一致 */
.media-item .video-wrapper video::-webkit-media-controls,
.media-grid .video-wrapper video::-webkit-media-controls {
    display: none !important;
}

.media-item .video-wrapper video::-webkit-media-controls-enclosure,
.media-grid .video-wrapper video::-webkit-media-controls-enclosure {
    display: none !important;
}

.media-item .video-wrapper video::-webkit-media-controls-panel,
.media-grid .video-wrapper video::-webkit-media-controls-panel {
    display: none !important;
}

.media-item .video-wrapper video::-webkit-media-controls-play-button,
.media-grid .video-wrapper video::-webkit-media-controls-play-button {
    display: none !important;
}

.media-item .video-wrapper video::-webkit-media-controls-timeline,
.media-grid .video-wrapper video::-webkit-media-controls-timeline {
    display: none !important;
}

.media-item .video-wrapper video::-webkit-media-controls-current-time-display,
.media-grid .video-wrapper video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.media-item .video-wrapper video::-webkit-media-controls-time-remaining-display,
.media-grid .video-wrapper video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.media-item .video-wrapper video::-webkit-media-controls-mute-button,
.media-grid .video-wrapper video::-webkit-media-controls-mute-button {
    display: none !important;
}

.media-item .video-wrapper video::-webkit-media-controls-volume-slider,
.media-grid .video-wrapper video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.media-item .video-wrapper video::-webkit-media-controls-fullscreen-button,
.media-grid .video-wrapper video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/*  */
.media-item .video-play-overlay,
.media-grid .video-play-overlay {
    display: none;
}

/*  */
.media-item .video-wrapper::before,
.media-grid .video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

/* 播放图标 */
.media-item .video-wrapper::after,
.media-grid .video-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 132, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

/* 播放图标三角形 - 与 article-item 完全一致 */
.media-item .video-wrapper::after,
.media-grid .video-wrapper::after {
    background: rgba(0, 0, 0, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 20px 20px;
}

/* 悬停效果 - 与 article-item 完全一致 */
.media-item .video-wrapper:hover::before,
.media-grid .video-wrapper:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

.media-item .video-wrapper:hover::after,
.media-grid .video-wrapper:hover::after {
    background-color: rgba(0, 132, 255, 1);
    /*transform: translate(-50%, -50%) scale(1.1);*/
}

/* 移除原来的 .video-play-icon 样式 */
.media-item .video-play-icon,
.media-grid .video-play-icon {
    display: none;
}

/* 响应式调整 - 与 article-item 一致 */
@media (max-width: 768px) {
    .media-item .video-wrapper,
    .media-grid .video-wrapper {
        aspect-ratio: 4/3; /* 移动端使用更方的比例 */
    }
    
    /* 如果媒体网格中有特殊布局，可能需要额外调整 */
    .media-grid:has(.media-item:nth-child(1):last-child) .video-wrapper,
    .media-grid:has(.media-item:nth-child(1):nth-last-child(2)) .video-wrapper,
    .media-grid:has(.media-item:nth-child(2):last-child) .video-wrapper {
        aspect-ratio: 1; /* 保持原来的网格比例 */
    }
}

/* 保持原来的网格布局，但要确保视频填满容器 */
.media-grid .video-wrapper video {
    width: 100%;
    height: 100%;
}

/* 确保视频在网格中的正确显示 */
.media-grid:has(.media-item:nth-child(1):last-child) .video-wrapper {
    aspect-ratio: 4/3;
}

.media-grid:has(.media-item:nth-child(1):nth-last-child(2)) .video-wrapper,
.media-grid:has(.media-item:nth-child(2):last-child) .video-wrapper {
    aspect-ratio: 1;
}

.media-grid:has(.media-item:nth-child(3)) .video-wrapper {
    aspect-ratio: 1;
}

/* 音频特殊样式 */
.media-item audio {
    background: #2d2d2d;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
}

/* 超过9张显示提示 */
.media-item.more-items {
    position: relative;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* 标签筛选器样式 */
.tags-filter {
    margin-bottom: 20px;
    /*padding-bottom: 20px;*/
    padding: 10px 0px 10px 0px;
    border-bottom: 1px solid #2b2b2b;

  position: relative;
}

.tags-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    
    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
/* Chrome/Safari 隐藏滚动条 */
.tags-container::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}
.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: #404040;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    gap: 4px;
    flex-shrink: 0; /* 禁止标签项收缩 */
    white-space: nowrap; /* 禁止文字换行 */
}
/* 右侧渐变遮罩 */
.tags-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(37, 37, 37, 0) 0%, rgba(37, 37, 37, 0.8) 77%, rgba(37, 37, 37, 1) 100%);
    pointer-events: none;
    opacity: var(--scroll-indicator-opacity, 0);
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* 左侧渐变遮罩（当向右滚动时显示） */
.tags-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(37, 37, 37, 0) 0%, rgba(37, 37, 37, 0.8) 77%, rgba(37, 37, 37, 1) 100%);
    pointer-events: none;
    opacity: var(--scroll-left-indicator-opacity, 0);
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* 当可滚动时显示遮罩 */
.tags-container.scrollable::after {
    opacity: var(--scroll-indicator-opacity, 1);
}


.tag-item:hover {
    background: #0084ff;
    color: white;
    border-color: #0084ff;
}

.tag-item.active {
    background: #0084ff;
    color: white;
    border-color: #0084ff;
}

.tag-count {
    font-size: 0.5rem;
    opacity: 0.7;
    position: relative;
    top: -0.5em;
}

/* 点赞计数显示 */
.like-count-display {
    margin-top: 8px;
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.like-count-display .like-count {
    color: #ff4757;
    font-weight: 500;
}

/* 分页样式 */
.pagination-container {
    text-align: center;
    margin-bottom: 20px;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination-updown {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

/* 分页按钮（上一页/下一页） */
.pagination-btn {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background-color: #383838;
    color: #0084ff;
    border-color: #0084ff;
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed !important;
    pointer-events: none;
}

.pagination-btn i {
    font-size: 14px;
}
/* 页码按钮 */
.pagination-page {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.pagination-page:hover {
    background-color: #383838;
    color: #0084ff;
    border-color: #0084ff;
}

.pagination-page.active {
    background-color: #0084ff;
    color: white;
    border-color: #0084ff;
    cursor: default !important;
    pointer-events: none;
}

.pagination-page.active {
    background-color: #0084ff;
    color: white;
    border-color: #0084ff;
    cursor: default;
}

.pagination-page.active:hover {
    background-color: #0084ff;
    color: white;
    border-color: #0084ff;
}

/* 省略号 */
.pagination-ellipsis {
    color: #8c8c8c;
    font-size: 14px;
    padding: 0 4px;
    user-select: none;
}
.pagination-info {
    color: #8c8c8c;
    font-size: 14px;
    min-width: 40px;
}

/* 部分移动端响应式 */
@media (max-width: 768px) {
  .pagination-container {
      margin-bottom: 10px;
  }

}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 10px 70px 10px;
    color: #8c8c8c;
}


.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #e6e6e6;
    margin-bottom: 10px;
}

.empty-desc {
    font-size: 14px;
    color: #8c8c8c;
}

/* 评论区域样式 */
.comments-disabled {
    text-align: center;
    padding: 20px 20px;
    color: var(--end-text-secondary);
    background: #2b2b2b;
    border-radius: 4px;
    border: 0px solid var(--end-border);
    margin-top: 10px;
}


.moment-comments-section {
    /*margin-top: 20px;
    border-top: 1px solid #333; */
    padding-top: 10px;/*20*/
}

/* 点赞按钮选中状态 */
.like-btn.liked {
    color: #ff4757;
}
.like-btn.liked .like-count {
    color: #ff4757;
}
.like-count,
.comment-count {
    font-size: 13px;
    font-weight: normal;
    color: #ccc;
}

.comment-toggle-btn.active {
    background-color: #383838;
    color: #0084ff;
}

.comment-toggle-btn.active .comment-count {
    color: #0084ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination {
        gap: 8px;
    }
    .pagination-btn,
    .pagination-page {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .pagination-btn i {
        font-size: 13px;
    }

  
    .tags-container {
        gap: 8px;
    }
    
    .tag-item {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .media-grid {
        gap: 2px;
    }
    
    .media-grid:has(.media-item:nth-child(3)) {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
    
    .pagination-updown {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 10px;
    }
    .pagination-btn,
    .pagination-page {
        width: 36px;
        height: 36px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    .pagination-btn i {
        font-size: 12px;
    }
    
    .pagination-ellipsis {
        font-size: 12px;
        padding: 0 2px;
    }




  
  
    .tags-container {
        gap: 6px;
    }
    
    .tag-item {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
    
    .pagination-btn {
        width: 36px;
        height: 36px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
}






























/* ------------------- */
/* 导航条Logo和标题布局 */
.logo-with-title {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;

}

.nav-logo {
    width: 42px;
    height: 42px;
    /*margin-right: 10px;*/
    object-fit: cover;
    border-radius: 6px;
}
.nav-img-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.nav-title {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    /*padding: 4px 10px 4px 0px;*/
    font-size: 18px;

  
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

  font-weight: bold;

}
.nav-title:empty {
    display: none;
}


















/* 在瞬间内容中隐藏 class="tag" 的链接 */
.post-content a.tag {
    display: none !important;
    visibility: hidden !important;
}

.ms-content {
    padding: 10px;
border-radius: 12px;
    background: #2b2b2b;
  margin-bottom: 20px;
  border: 1px solid #3a3a3a00;
      position: relative;
}


















.navbar {
    padding: 15px 20px; /*15px 20px 15px 20px*/
    display: flex;
    align-items: center;
    background-color: #252525;
    position: sticky;
    top: 0;
    min-height: 60px;
    z-index: 998;
    border-bottom: 0px solid #333;
    position: -webkit-sticky;
    
    border-radius: 12px 12px 0 0;
    

    animation: navbar-radius linear both;
    animation-timeline: scroll();
    animation-range: 0 50px;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .navbar {
          border-radius: 0px;
      animation-range: 0 0px;
      

          /*半透明*/
          background: linear-gradient(to top, transparent 0%, rgba(37, 37, 37, 0.3) 20%, rgba(37, 37, 37, 0.6) 40%, rgba(37, 37, 37, 0.9) 90%, #252525ed 100%) !important;
          border-bottom: 0px solid #33333300;


      
    }
    .nav-logo {
        width: 38px;
        height: 38px;
        /*margin-right: 8px;*/
    }
    
    .nav-title {
        font-size: 18px;
              font-size: 20px;
        font-weight: bold;
    }
}

@keyframes navbar-radius {
    from {
        border-radius: 12px 12px 0 0;
    }
    to {
        border-radius: 0;
    }
}

.logo {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0; /* 标题不压缩 */
    line-height: 1; /* 重置行高，保证垂直对齐 */
}

/* 桌面端：导航按钮紧贴标题右侧（强制垂直居中） */
.desktop-nav-btn {
    /*margin-left: 16px;  标题和导航按钮间距 */
    display: none;
    align-items: center; /* 强制按钮容器垂直居中 */
    height: 100%; /* 和导航栏同高，保证对齐 */
  white-space: nowrap;
  margin-left: 4px;
}

/* 移动端：导航+搜索容器（固定在最右侧） */
.mobile-nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto; /* 强制推到最右侧 */
  z-index: 998;
}

/* 搜索Icon样式（全端通用）- 新增hover浅背景 */
.search-icon {
    color: #e0e0e0;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease; /* 统一过渡 */
    line-height: 1; /* 重置行高 */
    padding: 4px 8px; /* 增加点击区域，适配背景 */
    border-radius: 4px; /* 圆角背景 */
      justify-content: center;
    align-items: center;
    display: flex;
}
.search-icon:hover {
    color: #fff;
    background-color: #383838; /* 浅灰色背景 */
}

/* 汉堡按钮基础样式（强制垂直居中）- 新增hover浅背景 */
.menu-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    transition: all 0.2s ease; /* 统一过渡 */
    line-height: 1; /* 重置行高，消除基线偏移 */
    padding: 4px 8px; /* 增加点击区域，适配背景 */
    border-radius: 4px; /* 统一圆角背景 */
    margin: 0; /* 重置外边距 */
}
.menu-btn:hover {
    color: #fff;
    background-color: #383838; /* 浅灰色背景 */
}

/* 移动端汉堡按钮（仅图标，固定尺寸） */
@media (max-width: 768px) {
    .menu-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
        padding: 4px 8px; /* 恢复统一padding，保证点击区域 */
        border-radius: 4px; /* 核心修改：统一圆角，不再用圆形 */
    }
    .menu-text {
        display: none; /* 移动端隐藏文字 */
    }
    .desktop-nav-btn {
        display: none; /* 移动端隐藏桌面端导航按钮 */
    }
    /* 核心修复：移动端一级菜单链接宽度自适应内容 */
    .nav-link {
        width: fit-content; /* 宽度仅适配文字+padding，不撑满全屏 */
        box-sizing: border-box; /* 确保padding包含在宽度内 */
    }
}

/* 桌面端汉堡按钮（箭头+文字，紧贴标题，完美垂直居中） */
@media (min-width: 769px) {
    .menu-btn {
        padding: 4px 8px;
        font-size: 15px;
        gap: 6px; /* 箭头和文字间距 */
        align-items: center; /* 强制内部元素垂直居中 */
        height: 28px; /* 固定高度，和标题行高匹配 */
        border-radius: 4px; /* 圆角背景 */
    }
    .menu-icon {
        font-size: 14px;
        line-height: 1; /* 图标行高重置 */
    transition: transform 0.2s ease; /* 添加旋转过渡 */
    display: inline-block; /* 确保transform生效 */
    }
    .menu-text {
        color: inherit;
        line-height: 1; /* 文字行高重置 */
    }
    .desktop-nav-btn {
        display: flex; /* 桌面端显示标题旁的导航按钮 */
    }
    /* 桌面端隐藏移动端的导航按钮（避免重复） */
    .mobile-nav-controls .menu-btn {
        display: none;
    }
}

/* 一级导航菜单基础样式 */
.nav-menu {
    list-style: none;
    background-color: #2c2c2c;
    padding: 12px 24px;
    display: none;
    z-index: 997;
    border-bottom: 1px solid #333;
}

/* 遮罩层 - 移动端专用 */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000CC;
    z-index: 996;
    /*backdrop-filter: blur(10px);*/
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 只在移动端显示遮罩 */
@media (max-width: 768px) {
    .nav-overlay.active {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
    
    /* 调整遮罩位置，从导航条下方开始 */
    .nav-overlay.active {
        /* 导航条高度约为 70px (15px padding-top + 15px padding-bottom + 内容高度) */
        top: 70px;
        height: calc(100% - 70px);
    }
    
    /* 如果导航条高度不同，可以这样精确计算 */
    .nav-overlay.active {
        /* 或者使用CSS变量 */
        top: var(--navbar-height, 70px);
        height: calc(100% - var(--navbar-height, 70px));
    }
}


@media (min-width: 769px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: row;
        flex-wrap: wrap; /* 允许换行 */
        justify-content: flex-start;
        gap: 16px; /* 减少gap值 */
        border-radius: 0 0 12px 12px;
    }
}
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 102%;
        right: 0;
        width: auto;
        display: none;
        flex-direction: column;
        gap: 0;
        max-height: calc(100vh - 60px); /* 70vh */
        overflow-y: auto; /* 允许垂直滚动 */
        z-index: 997;
        background-color: #252525;
        padding: 10px 10px;
        border-bottom: 0px solid #33333300;
        border-radius: 12px 0px 0px 12px;
      transition: transform 0.2s ease;
    }
}

.nav-menu.active {
    display: flex;
}

/* 一级菜单项样式（适配二级菜单） */
.nav-item {
    margin: 0;
    position: relative; /* 为二级菜单定位 */
}
/* 移动端一级菜单项上下间距 */
@media (max-width: 768px) {
    .nav-item {
        padding: 2px 2px; /* 减小内边距，适配背景 */
        border-bottom: none; /* 移除分隔线，用背景区分 */
        border-radius: 12px;
        margin-bottom: 8px;
      background-color: #303030;
    }
}

/* 一级菜单链接样式（统一基准样式）- 新增hover浅背景 */
.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease; /* 统一过渡 */
    display: flex;
    align-items: center;
    gap: 6px; /* 文字和下拉箭头间距 */
    padding: 6px 10px; /* 增加点击区域，适配背景 */
    border-radius: 4px; /* 圆角背景 */
    width: 100%;
}
.nav-link:hover {
    color: #fff;
    background-color: #383838; /* 浅灰色背景，和导航按钮统一 */
}

/* 二级菜单切换箭头样式 */
.submenu-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
    line-height: 1;
}
/* 桌面端hover时箭头旋转，移动端隐藏箭头（因为二级菜单默认显示） */
@media (min-width: 769px) {
    .nav-item:hover .submenu-icon {
        transform: rotate(90deg);
    }
}
@media (max-width: 768px) {
    /* 只在有子菜单时才显示箭头 */
@media (max-width: 768px) {
    /* 只在有子菜单时才显示箭头 */
    .has-submenu .submenu-icon {
        display: inline-block; /* 改为显示箭头 */
        margin-left: auto; /* 让箭头靠右对齐 */
        transition: transform 0.3s ease; /* 添加箭头旋转动画 */
    }
    
    /* 当二级菜单展开时旋转箭头 */
    .has-submenu.active .submenu-icon {
        transform: rotate(90deg);
    }
    
    /* 一级菜单项样式调整 */
    .nav-item.has-submenu {
        display: flex;
        flex-direction: column;
    }
    
    .nav-item.has-submenu > .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between; /* 让文字和箭头分居两侧 */
    }
}
    /* 没有子菜单时隐藏箭头 */
    .nav-item:not(.has-submenu) .submenu-icon {
        display: none;
    }
}

/* 二级菜单基础样式 */
.submenu {
    list-style: none;
    background-color: #333;
    border-radius: 6px;
    width: fit-content;
    white-space: nowrap;
    margin-top: 0;
}
/* 桌面端二级菜单样式（悬浮展开，绝对定位，宽度自适应） */
@media (min-width: 769px) {
    .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        border: 1px solid #444;
        display: none;
        transition: opacity 0.1s ease, visibility 0.1s ease;
        opacity: 0;
        visibility: hidden;
      background: #2c2c2c;
      z-index: 888;
    }
    /* 桌面端 hover 展开一级菜单下的二级菜单 */
    .nav-item:hover .submenu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}
/* 移动端二级菜单样式（默认显示，内嵌在一级菜单中，宽度自适应） */
@media (max-width: 768px) {
    .submenu {
        /*margin-top: 4px;  移动端保留小间距，视觉更友好 */
        margin-left: 16px; /* 缩进显示，区分层级 */
        background-color: #303030; /* 稍浅的背景，区分层级 */
        display: block !important; /* 移动端强制显示，优先级最高 */
        max-width: 100%; /* 防止超出屏幕 */
        width: 100%;
    }
}
/* 仅桌面端需要active类，移动端无需 */
@media (min-width: 769px) {
    .submenu.active {
        display: block;
        opacity: 1;
        visibility: visible;
      
    }
}

/* 二级菜单项样式 - 适配宽度自适应 */
.submenu-item {
    padding: 0; /* 移除默认内边距，由链接适配 */
    width: 100%; /* 让菜单项填满自适应的二级菜单宽度 */
}
/* 二级菜单链接样式 - 和一级菜单hover样式统一（浅背景） */
.submenu-link {
    color: #e0e0e0; /* 和一级菜单默认文字色一致 */
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease; /* 和一级菜单过渡效果一致 */
    display: block; /* 适配背景填充 */
    padding: 6px 16px; /* 点击区域+背景填充 */
    border-radius: 4px; /* 圆角背景 */
    margin: 2px; /* 菜单项间距 */
}
.submenu-link:hover {
    color: #fff; /* 文字变白 */
    background-color: #383838; /* 和一级菜单相同的浅背景 */
    text-decoration: none; /* 移除下划线 */
}


/* 移动端菜单滑动动画 */
@media (max-width: 768px) {
    #navMenu {
        position: fixed;
        top: var(--navbar-height, 60px);
        left: 100%;
        width: 50%;
        /* 移除固定高度，使用自动高度 */
        height: auto; /* 自动高度 */
        max-height: calc(100vh - var(--navbar-height, 60px)); /* 最大高度限制 */
        max-width: 400px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(0);
        z-index: 990;
        overflow-y: auto; /* 如果内容超出max-height，可以滚动 */
        display: flex;
        flex-direction: column;
    }
    
    #navMenu.active {
        transform: translateX(-100%);
        left: 100%;
    }

.nav-link {
    border-radius: 12px;
  
}
    
    /* 遮罩层动画 */
    .nav-overlay {
        position: fixed;
        top: var(--navbar-height, 60px);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* 移动端导航容器样式 */
    .nav-menu-container {
        flex: 1;
        overflow-y: auto;
    }
    
    /* 移动端菜单项样式调整 */
    .mobile-nav-controls .menu-icon {
        transition: transform 0.3s ease;
    }
    
    .mobile-nav-controls .menu-icon.open {
        transform: rotate(180deg);
    }
    
    /* 子菜单滑动效果 */
    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0.1s; /* 添加延迟让高度变化先开始 */
        opacity: 0;
        margin: 0; /* 确保没有外边距影响动画 */
        padding: 0; /* 确保没有内边距影响动画 */
    }
    
    .submenu.active {
        max-height: 1000px; /* 足够大的值确保能容纳所有内容 */
        opacity: 1;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.2s ease; /* 展开时opacity立即开始 */
    }
    
    /* 确保二级菜单内容在收起时也过渡消失 */
    .submenu-link {
        transition: opacity 0.2s ease; /* 添加链接的过渡效果 */

      white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    }
    
    /* 非激活状态的二级菜单链接立即隐藏 */
    .submenu:not(.active) .submenu-link {
        opacity: 0;
    }
    
    /* 激活状态的二级菜单链接正常显示 */
    .submenu.active .submenu-link {
        opacity: 1;
        transition-delay: 0.1s; /* 稍微延迟显示，让高度先变化 */
    }
}












/* 底部 */
.copyright {
    padding: 20px;
    border-top: 1px solid #2b2b2b;
    color: #aaa;
    background-color: #282828;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

}

.copyright-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* 社交链接容器 */
.copyright-social-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

/* 社交链接 */
.copyright-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.copyright-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #bbb;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0; 
}

.copyright-social-link:hover {
    background-color: #444;
    color: #fff;
}

/* 版权信息区域 */
.copyright-info {
    font-size: 14px;

}

/* 版权年份 - 修复图标对齐 */
.copyright-year-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    padding: 0 4px;

}

/* 统一图标样式 */
.copyright-icon-sm {
    font-size: 13px;
    color: #777;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

.copyright-name-text {
  margin: 0 0.3em;
}

/* 技术栈行 */
.copyright-tech-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #bbb;

}

.copyright-tech-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 2px 4px;
}

/* 修复所有图标和文字的垂直对齐 */
.copyright-year-line,
.copyright-tech-item {
    align-items: center;
    vertical-align: middle;
}

.copyright-year-line i,
.copyright-tech-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1em;
    vertical-align: -0.125em; /* 关键：微调图标位置使其与文字对齐 */
}

.copyright-year-line span,
.copyright-tech-item span {
    display: inline-flex;
    align-items: center;
    height: 1em;
}

/* 链接样式 */
.copyright-link {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    height: 1em;
}

.copyright-link:hover {
    color: #fff;
    border-bottom-color: #666;
}

/* 主题名称（无链接时） */
.copyright-theme-name {
    color: #aaa;
    font-weight: 500;
    padding: 0 3px;
    font-style: italic;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 1em;
}

/* 备案信息行 */
.copyright-icp-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #888;
    padding: 20px 0 0;
    margin-top: 20px;
    border-top: 1px solid #2b2b2b;

}

.copyright-icp-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    padding: 0 3px 1px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    height: 1em;
}

.copyright-icp-link:hover {
    color: #fff;
    border-bottom-color: #666;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .copyright {
        padding: 15px;
    }
    
    .copyright-social {
        margin-bottom: 20px;
    }
    
    .copyright-social-link {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .copyright-info {
        font-size: 13px;
    }
    
    .copyright-year-line {
        margin-bottom: 4px;
        padding: 0;
    }
    
    .copyright-tech-line {
        gap: 10px;
        padding: 0;
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 4px;
    }
    
    .copyright-tech-line::-webkit-scrollbar {
        display: none;
    }
    
    .copyright-tech-item {
        gap: 5px;
        padding: 2px;
        flex-shrink: 0;
    }
    
    .copyright-tech-item i {
        font-size: 12px;
    }
    
    .copyright-icp-line {
        gap: 10px;
        font-size: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 15px 0 0;
        margin-top: 15px;
    }
    
    .copyright-icp-line::-webkit-scrollbar {
        display: none;
    }
    
    .copyright-link,
    .copyright-icp-link {
        padding: 0 2px 1px;
    }
    
    /* 移动端图标微调 */
    .copyright-year-line i,
    .copyright-tech-item i {
        vertical-align: -0.1em; /* 移动端微调 */
    }
    
    .copyright-icon-sm {
        font-size: 12px;
        width: 13px;
        height: 13px;
    }
}








/* 技术栈徽章容器 */
.copyright-tech-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0px 0px 0px;
    font-size: 13px;
}

/* 单个徽章 */
.tech-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, #2d2d2d 0%, #252525 100%);
    border: 1px solid #3a3a3a;
    overflow: hidden;
    cursor: default;
    transition: border-color 0.2s ease;
}

/* 徽章标签部分（左侧） */
.badge-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 14px;
    background-color: rgba(0, 0, 0, 0.1);
    border-right: 1px solid #3a3a3a;
    white-space: nowrap;
}

.badge-text {
    color: #888;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

/* 徽章内容部分（右侧） */
.badge-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 12px;
    text-decoration: none;
    min-width: 36px;
}

/* 图标样式 */
.badge-icon {
    font-size: 11px;
    color: #777;
    width: 12px;
    text-align: center;
    transition: color 0.2s ease;
}

.badge-content .badge-icon {
    font-size: 10px;
    color: #888;
}

/* Halo徽章样式 */
.tech-badge:nth-child(1) .badge-content {
    color: #8bc7f0;
}

.tech-badge:nth-child(1):hover .badge-text,
.tech-badge:nth-child(1):hover .badge-label .badge-icon {
    color: #8bc7f0;
}

.tech-badge:nth-child(1):hover .badge-content,
.tech-badge:nth-child(1):hover .badge-content .badge-icon {
    color: #a8d9f5;
}

/* 主题徽章样式 */
.tech-badge:nth-child(2) .badge-content {
    color: #c9aee9;
}

.tech-badge:nth-child(2):hover .badge-text,
.tech-badge:nth-child(2):hover .badge-label .badge-icon {
    color: #c9aee9;
}

.tech-badge:nth-child(2):hover .badge-content,
.tech-badge:nth-child(2):hover .badge-content .badge-icon {
    color: #dbc7f1;
}

/* 通用悬停效果 */
.tech-badge:hover .badge-content .badge-icon {
    color: #fff;
}

/* 无链接的内容 */
.badge-no-link {
    cursor: default;
    pointer-events: none;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .copyright-tech-badges {
        gap: 8px;
        font-size: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /*padding-bottom: 5px;*/
        width: 100%;
    }
    
    .copyright-tech-badges::-webkit-scrollbar {
        display: none;
    }
    
    .tech-badge {
        height: 26px;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .badge-label {
        padding: 0 12px;
        gap: 6px;
    }
    
    .badge-text {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .badge-content {
        padding: 0 10px;
        min-width: 32px;
    }
    
    .badge-icon {
        font-size: 10px;
    }
}











/* 自定义文章列表 */
/* 文章列表容器 */
.new-article-list-content {
    padding: 10px 10px 0px 10px;
    border-radius: 12px 12px 0 0;
    margin-top: -10px;
    background-color: #252525;
    position: relative;
    z-index: 3;
}
@media (max-width: 768px) {
    .new-article-list-content {
        padding: 10px;
        margin-top: -10px;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    }
}
.new-article-list-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.new-article-list-item {
    background: #2b2b2b;
    border-radius: 10px;
    border: 1px solid #3a3a3a00;
    overflow: hidden;
    transition: all 0.2s ease;
}

.new-article-list-item:hover {
    border-color: #3a3a3a;
}

/* 主体 */
.new-article-list-card {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.new-article-list-card.has-bg-image {
    position: relative;
}

.new-article-list-card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  border-radius: 12px 0px 0px 12px;
}

.new-article-list-card.has-bg-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(90deg, 
                                #2b2b2b 0%,
                                #2b2b2b 40%,
                                rgba(43, 43, 43, 0.8) 60%,
                                rgba(43, 43, 43, 0.3) 80%,
                                rgba(43, 43, 43, 0) 95%,
                                rgba(43, 43, 43, 0) 100%
                            );*/
   background: linear-gradient(90deg, #2b2b2b 0%, #2b2b2bdb 40%, rgb(43 43 43 / 67%) 60%, rgba(43, 43, 43, 0.3) 80%, rgba(43, 43, 43, 0) 95%, rgba(43, 43, 43, 0) 100%);
    z-index: 1;
}

.new-article-list-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.new-article-list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.new-article-list-publish-time {
    font-size: 12px;
    color: #9aa0a6;
    cursor: pointer;
    transition: opacity 0.2s;
}


.new-article-list-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.new-article-list-category {
    display: inline-block;
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 3px;
    text-decoration: none;
}

.new-article-list-category:hover {
    opacity: 0.9;
}

.new-article-list-tag {
    font-size: 11px;
    color: #888888;
    background-color: rgba(47, 48, 49, 0.8);
    padding: 2px 7px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.new-article-list-tag:hover {
    background-color: rgba(47, 48, 49, 1);
}

.new-article-list-title {
    font-size: 20px;
    font-weight: 600;
    color: #e0e0e0;
    text-decoration: none;
    line-height: 1.4;
    margin: 4px 0;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-article-list-title:hover {
    color: #0084ff;
}

.new-article-list-excerpt {
    color: #888888;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    align-self: flex-start;
}

.new-article-list-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #888888;
    font-size: 12px;
    padding: 8px 20px; 
    background-color: #2f2f2f;
    border-top: 1px solid #3a3a3a00;
    position: relative;
    z-index: 2;
    transition: background-color 0.2s ease;
}

.new-article-list-item:hover .new-article-list-actions {
    background-color: #363636;
}

/* 用户信息区域 - 确保垂直居中 */
.new-article-list-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 28px;
}


.new-article-list-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.new-article-list-user-name {
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    height: 100%;
    line-height: 1;
}

.new-article-list-user-name:hover {
    color: #0084ff;
}


.new-article-list-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}


.new-article-list-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;

    align-items: center;
    text-decoration: none; 
}


.new-article-list-action-btn:hover {
    color: #0084ff;
    background-color: rgba(0, 132, 255, 0.1);
}

.new-article-list-item:hover .new-article-list-action-btn:hover {
    background-color: rgba(0, 132, 255, 0.15);
}



/* 置顶文章标题样式 */
.new-article-list-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #e0e0e0;
    text-decoration: none;
    line-height: 1.4;
    margin: 4px 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 如果不想改变现有的flex布局，可以这样调整 */
.new-article-list-title span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 置顶icon样式 */
.new-article-list-pin-icon {
    color: #0084ff;
    font-size: 14px;
    flex-shrink: 0;
}































































/* 返回顶部样式 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0073e6 0%, #0084ff 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #0084ff 0%, #0095ff 100%);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0066cc 0%, #0073e6 100%);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}