
/* 防止滚动条跳动 */
html {
    overflow-y: scroll; /* 始终显示滚动条轨道，避免内容跳动 */
    overflow-x: hidden !important;
}

body {
    scrollbar-gutter: stable;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body::-webkit-scrollbar {
    display: none;
}
/* 可选：自定义滚动条样式使其更美观 */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 针对Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

:root {
  --end-bg: #1a1a1a;
  --end-card-bg: #2d2d2d;
  --end-border: #404040;
  --end-text: #e0e0e0;
  --end-text-secondary: #a0a0a0;
  --end-primary: #07c160;
  --end-a-link-card: #3a3a3a;
  --end-a-link-card-border: #404040;
  --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);

    --halo-cw-primary-1-color: var(--end-primary);
  --halo-cw-primary-2-color: #06ae56;
  --halo-cw-primary-3-color: #059c4d;
  
  --halo-cw-text-1-color: var(--end-text);
  --halo-cw-text-2-color: var(--end-text-secondary);
  --halo-cw-text-3-color: #a0a0a0;
  
  --halo-cw-muted-1-color: var(--end-border);
  --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: var(--end-card-bg);
  --halo-search-widget-primary-color: var(--end-primary);
  --halo-search-widget-muted-color: var(--end-text-secondary);
  --halo-search-widget-content-color: var(--end-text);
  --halo-search-widget-modal-bg-color: var(--end-card-bg);
  --halo-search-widget-modal-layer-color: rgba(0, 0, 0, 0.8);
  --halo-search-widget-hit-bg-color: var(--end-a-link-card);
  --halo-search-widget-divider-color: var(--end-border);
  --halo-search-widget-kbd-border-color: var(--end-border);

  
}

/* 浅色模式 */
[data-theme="light"] {
  --end-bg: #f8fafc;
  --end-card-bg: #ffffff;
  --end-border: #e3e8f0;
  --end-text: #1a202c;
  --end-text-secondary: #666666;
  --end-primary: #07c160;
  --end-a-link-card: #f0f0f0;
  --end-a-link-card-border: #e0e0e0;
  --end-a-link-card-hover: #e8e8e8;
  --end-meta-bg: rgba(248, 249, 250, 0.85);
  --end-post-p: #555555;
  --end-shadow: rgba(0, 0, 0, 0.1);

    /* 明亮模式下的评论组件变量 */
  --halo-cw-primary-1-color: var(--end-primary);
  --halo-cw-primary-2-color: #06ae56;
  --halo-cw-primary-3-color: #059c4d;
  
  --halo-cw-text-1-color: var(--end-text);
  --halo-cw-text-2-color: var(--end-text-secondary);
  --halo-cw-text-3-color: #888888;
  
  --halo-cw-muted-1-color: var(--end-border);
  --halo-cw-muted-2-color: #f0f0f0;
  --halo-cw-muted-3-color: #f8f8f8;

    --halo-cw-emoji-picker-rgb-color: 222, 222, 221;
    --halo-cw-emoji-picker-rgb-accent: 58, 130, 247;
    --halo-cw-emoji-picker-rgb-background: 21, 22, 23;
    --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-cw-base-rounded: 8px;
  --halo-cw-avatar-rounded: 6px;
  --halo-cw-avatar-size: 40px;
  --halo-cw-base-font-size: 14px;
  --halo-cw-base-font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;

    --halo-search-widget-base-bg-color: var(--end-card-bg);
  --halo-search-widget-modal-bg-color: var(--end-card-bg);
  --halo-search-widget-hit-bg-color: var(--end-a-link-card);
  --halo-search-widget-modal-layer-color: rgba(0, 0, 0, 0.6);
}
[data-theme="light"] .top-navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
}
[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.88);
}
[data-theme="light"] .post-tag {
    border: 1px solid var(--end-a-link-card-border);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--end-bg);
    color: var(--end-text);

    min-height: 100vh;
    padding: 40px 0px;
    transition: all 0.3s ease;
}
.pd-content {
  padding: 15px;
  background: var(--end-card-bg);
  border-radius: 10px 10px 0 0; /* 只有上面两个角有圆角 */
  margin-top: -20px; /* 向上移动 */
  position: relative; /* 关键：建立新的堆叠上下文 */
  z-index: 10; /* 确保在封面之上 */
  border-radius: 12px;
}
.main-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--end-card-bg);
    border-radius: 20px;
    overflow: visible; /* 关键：改为visible让sticky生效 */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.cover-section {
    height: 280px;
    position: relative;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.cover-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cover-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* ==================== 新的卡片和分割线设计 ==================== */
.moments-list {
    display: flex;
    flex-direction: column;
}

.moment-card {
    background: var(--end-card-bg);
    border-radius: 0;
    padding: 20px 0;
    margin-bottom: 0;
    border: none;
}

/* 优雅的渐变分割线 */
.moment-divider {
    height: 1px;
    background: var(--end-border);
    margin: 7px 30px;
    opacity: 0.6;
}


/* ==================== 九宫格图片网格系统 ==================== */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    margin: 12px 0;
    max-width: 100%;
}

/* 单张图片或单个视频 - 全宽显示 */
.media-grid:has(.media-item:nth-child(1):last-child) {
    grid-template-columns: 1fr;
    max-width: 100% !important;
}

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

/* 单张图片的特殊比例 */
.media-grid:has(.media-item:nth-child(1):last-child) .media-item img {
    aspect-ratio: 4/3;
}

.media-grid:has(.media-item:nth-child(1):last-child) .media-item video {
    aspect-ratio: 16/9;
}

.media-grid:has(.media-item:nth-child(1):last-child) .media-item audio {
    aspect-ratio: auto;
    min-height: 50px;
}

/* 两张图片 - 全宽并排显示 */
.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% !important;
}

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

/* 超过9张图片时隐藏多余的并显示数量 */
.media-item:nth-child(n+10) {
    display: none;
}

.media-grid:has(.media-item:nth-child(10)) .media-item:nth-child(9)::after {
    content: '+更多';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 媒体项通用样式 */
.media-item {
    border-radius: 6px;
    overflow: hidden;
    background: #2d2d2d00;
    /*border: 1px solid var(--end-a-link-card-border);*/
    position: relative;
}

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

.media-item:hover img {
    transform: scale(1.05);
  cursor: zoom-in;
}

.media-item:hover video {
    transform: scale(1.05);
  cursor: zoom-in;
}
/* ==================== 九宫格结束 ==================== */

.meta-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-actions {
    display: flex;
    gap: 15px;
}

.meta-action {
    color: var(--end-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.meta-action:hover {
    color: var(--end-primary);
    background: rgba(7, 193, 96, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 0;
    border-top: none;
}

.pagination a {
    padding: 10px 20px;
    background: var(--end-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #06ae56;
    transform: translateY(-1px);
}

.pagination span {
    color: var(--end-text-secondary);
    font-size: 0.9rem;
    padding: 8px 16px;
    background: #f8f8f8;
    border-radius: 6px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--end-text-secondary);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.empty-state p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* 用户信息头部 */
.user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.user-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-avatar .default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 18px;
}
.default-avatar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 发布时间样式 */
.post-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--end-text-secondary);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* 调整用户信息布局 */
.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--end-text);
    margin-bottom: 0; /* 去掉原来的底部外边距 */
}

.user-bio {
    font-size: 0.85rem;
    color: var(--end-text-secondary);
    opacity: 0.8;
}

/* 视频和音频样式 */
.media-item video,
.media-item audio {
    width: 100%;
    height: 100%;
    display: block;
}

/* 视频特殊样式 */
.media-item video {
    background: #000;
    object-fit: cover;
    transition: transform 0.3s ease;

    object-fit: cover;
    /* 隐藏原生控件 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 隐藏视频控件 */
.media-item video::-webkit-media-controls {
    display: none !important;
}

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

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

.media-item video::-webkit-media-controls-start-playback-button {
    display: none !important;
}
/* 视频播放图标 */
.video-play-overlay {
    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;
    cursor: zoom-in;
}
.media-item.video-item:hover .video-play-overlay {
    opacity: 1;
}

/* 音频特殊样式 */
.media-item audio {
    background: #2d2d2d00;
    padding: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding: 30px 0px;
    }

    .main-container {
        border-radius: 16px;
        overflow: hidden;
    }
    .top-navbar {
        border-radius: 16px 16px 0 0; /* 导航栏顶部圆角 */
    }

    .moments-feed {
    }

    .cover-section {
        height: 240px;
    }

    .cover-overlay {
        padding: 15px;
    }

    .cover-title {
        font-size: 1.8rem;
    }

    .moment-card {
        padding: 16px 0;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .user-name {
        font-size: 1rem;
    }

    .post-time {
        font-size: 0.75rem;
    }

    .user-header {
        gap: 10px;
    }


    /* 移动端单张和两张图片全宽 */
    .media-grid:has(.media-item:nth-child(1):last-child) {
        max-width: 100%;
    }

    .media-grid:has(.media-item:nth-child(1):nth-last-child(2)),
    .media-grid:has(.media-item:nth-child(2):last-child) {
        max-width: 100%;
    }

    /* 移动端三张及以上保持3列，但缩小间距 */
    .media-grid:has(.media-item:nth-child(3)) {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 2px;
    }

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

    .media-item video,
    .media-item audio {
        border-radius: 4px;
    }
}



    .main-container {
        border-radius: 12px;
    }

    .moments-feed {

    }


    .cover-overlay {
        padding: 15px 15px 35px 15px;
    }

    .cover-title {
        font-size: 1.5rem;
    }

    .cover-subtitle {
        font-size: 1rem;
    }

    .moment-card {
        padding: 12px 0;
    }

    .post-time {
        font-size: 0.8rem;
    }

    .user-avatar {
        width: 46px;
        height: 46px;
    }

    .default-avatar {
        font-size: 1rem;
    }


    /* 超小屏幕保持3列但进一步缩小间距 */
    .media-grid:has(.media-item:nth-child(3)) {
        gap: 4px;
    }

    .media-item {
        border-radius: 6px;
    }

    .media-item video,
    .media-item audio {
    }

    .media-item audio {
        padding: 8px;
    }
}


/* ==================== 加载更多样式 - 修复居中问题 ==================== */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;

    width: 100%;
}

.load-more-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
   margin: 20px 0 20px 0;
}

.load-more-btn {
    padding: 6px;
    background: var(--end-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* 移除阴影效果 */
    box-shadow: none;
    position: relative;
}

/* 移除所有悬停的transform和阴影效果 */
.load-more-btn:hover:not(:disabled) {
    background: #06ae56;
    /* 移除transform和阴影 */
    transform: none;
    box-shadow: none;
}

.load-more-btn:active:not(:disabled) {
    background: #059c4d;
    transform: none;
}

.load-more-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover .btn-icon {
    transform: translateY(2px);
}

.loading-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 旋转动画 - 小圆圈 */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-right: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 结束消息样式 */
.end-message {
    padding: 16px 32px;
    color: var(--end-text-secondary);
    font-size: 0.95rem;
    text-align: center;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeInUp 0.6s ease;
    margin: 10px 0 10px 0;
}

.end-icon {
    color: var(--end-primary);
    font-weight: bold;
    font-size: 1.1rem;
    animation: bounceIn 0.6s ease;
}

.end-text {
    font-size: 1rem;
}

/* 新内容加载动画 */
.moment-card.new-content {
    animation: slideInUp 0.6s ease;
}

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .load-more-container {

    }

    .load-more-btn {
        padding: 6px;
        font-size: 0.95rem;
        min-width: 110px;
        border-radius: 6px;
    }

    .end-message {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    .spinner {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .load-more-container {

    }

    .load-more-btn {
        padding: 6px;
        font-size: 0.9rem;
        min-width: 110px;
        border-radius: 6px;
        gap: 6px;
    }

    .end-message {
        padding: 12px 24px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .end-icon {
        font-size: 1rem;
    }

    .spinner {
        width: 12px;
        height: 12px;
    }

    .btn-icon {
        font-size: 0.8rem;
    }
}

/* ==================== 标签筛选器样式 ==================== */
.tags-filter {
    background: var(--end-card-bg);
    border-bottom: 1px solid var(--end-border);
    padding: 0 0 15px 0;
    margin-bottom: 15px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: var(--end-border);
    color: var(--end-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    gap: 4px;
}

/* hover效果与active一样 */
.tag-item:hover {
    /* 移除背景色变化、颜色变化和transform
    background: #f8f8f8;
    color: var(--end-text-secondary);
    transform: none; */
    background: var(--end-primary);
    color: white;
    border-color: var(--end-primary);
}

.tag-item.active {
    background: var(--end-primary);
    color: white;
    border-color: var(--end-primary);
}

.tag-count {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ==================== 瞬间标签样式 ==================== */
.moment-meta {
    display: flex;
    justify-content: space-between; /* 左右分布 */
    align-items: end;
    border-top: none;
    color: var(--end-text-secondary);
    font-size: 0.9rem;
    gap: 15px;
    min-height: 32px; /* 确保有最小高度 */
}

.moment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}
.moment-tags:empty {
    display: none;
}
.moment-tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--end-border);
    color: var(--end-text-secondary);
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid rgb(255 255 255 / 20%);
    line-height: 1.2;
}

.meta-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto; /* 关键：确保始终靠右 */
    background: var(--end-a-link-card);
    border-radius: 6px;
}

.meta-action {
    color: var(--end-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.meta-action:hover {
    color: var(--end-primary);
    background: rgba(7, 193, 96, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tags-filter {
    }

    .tags-container {
        gap: 8px;
    }

    .tag-item {
        padding: 0px 6px;
        /* font-size: 0.85rem; */
    }

    .moment-meta {
        /*flex-direction: column;
        align-items: flex-start;*/
        gap: 10px;
    }

    .moment-tags {
        width: 100%;
    }

    .meta-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .tags-filter {
    }

    .tag-item {
        padding: 4px 6px;
        /* font-size: 0.8rem; */
    }

    .moment-tag {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .meta-actions {
        gap: 12px;
    }

    .meta-action {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--end-text-secondary);
    font-size: 1rem;
}

/* ==================== 链接卡片样式 ==================== */

/* 添加这个样式到你的CSS中 */
.moment-content a[href]:not(.link-card) {
    display: none !important;
}

.moment-content.cleaned a[href]:not(.link-card) {
    display: inline !important;
}

.moment-content {
  margin: 12px 0;
}

/* 原始链接样式 */
.original-link {
    color: var(--end-primary) !important;
    text-decoration: none;
    position: relative;
    padding: 0px 5px 0px 5px;
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.original-link:hover {
    text-decoration: underline;
}

/* 链接角标样式 */
.link-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    left: auto;
    color: var(--end-primary) !important;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
}

/* 链接卡片角标样式 */
.link-card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    left: auto;
    color: var(--end-primary) !important;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 20;
}

/* 链接卡片定位 */
.link-card {
    position: relative;
}
.link-card {
    display: flex;
    align-items: center; /* 改为 center 确保垂直居中 */
    background: var(--end-a-link-card);
    border: 1px solid var(--end-a-link-card-border);
    border-radius: 6px;
    padding: 6px; /* 增加内边距让内容更舒适 */
    margin: 12px 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    gap: 10px;
}

.link-card:hover {
    background: var(--end-a-link-card-hover);
    border-color: #555;
    text-decoration: none;
    color: inherit;
}

/* 图片容器和图标容器保持相同尺寸 */
.link-card-image-container,
.link-card-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

}

/* 优化图片显示 */
.link-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持 cover 但优化显示 */
    object-position: center; /* 确保图片居中显示 */
    border-radius: 6px;
    /* 提升图片清晰度 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

.link-card-icon {
    width: 24px;
    height: 24px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-card-icon svg {
    width: 100%;
    height: 100%;
}

.link-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中内容 */
    gap: 6px;
}

.link-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.link-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--end-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    line-height: 1.4;
    margin: 0; /* 移除默认边距 */
}

.link-card-url {
    font-size: 0.85rem;
    color: var(--end-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    line-height: 1.3;
    margin: 0; /* 移除默认边距 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .link-card {
        padding: 6px;
        gap: 6px;
    }

    .link-card-image-container,
    .link-card-icon-container {
        width: 50px;
        height: 50px;
    }

    .link-card-icon {
        width: 20px;
        height: 20px;
    }

    .link-card-title {
        font-size: 0.95rem;
    }

    .link-card-url {
        font-size: 0.8rem;
    }

    .link-card-content {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .link-card {
        padding: 6px;
        gap: 6px;
    }

    .link-card-image-container,
    .link-card-icon-container {
        width: 45px;
        height: 45px;
    }

    .link-card-icon {
        width: 18px;
        height: 18px;
    }

    .link-card-content {
        width: 100%;
    }

    .link-card-title {
        font-size: 0.9rem;
    }

    .link-card-url {
        font-size: 0.75rem;
    }
}


@media (max-width: 768px) {
    body {
        /* 移动端：完全移除所有padding，让内容占满全屏 */
        padding: 0;
    }

    .main-container {
        /* 移动端：移除圆角，让四角直角 */
        border-radius: 0;
        /* 移除阴影，让整体更扁平 */
        box-shadow: none;
        /* 确保容器占满全宽 */
        max-width: 100%;
        /* 确保高度占满视口 */
        min-height: 100vh;
    }

    /* 移动端调整其他内部元素的padding */
    .moments-feed {

    }

    .cover-section {
        height: 270px;
    }

    .cover-overlay {
        padding: 15px 15px 35px 15px;
    }

    .cover-title {
        font-size: 1.5rem;
    }

    .cover-subtitle {
        font-size: 1rem;
    }

    .moment-card {
        padding: 12px 0;
    }

    .post-time {
        font-size: 0.8rem;
    }

    .user-avatar {
        width: 46px;
        height: 46px;
    }

    .default-avatar {
        font-size: 1rem;
    }

    /* 超小屏幕保持3列但进一步缩小间距 */
    .media-grid:has(.media-item:nth-child(3)) {
        gap: 4px;
    }

    .media-item {
        border-radius: 6px;
    }

    .media-item video,
    .media-item audio {
        border-radius: 6px;
    }

    .media-item audio {
        padding: 8px;
    }
}


@media (max-width: 480px) {
    body {
        /* 移动端：完全移除所有padding，让内容占满全屏 */
        padding: 0;
    }

    .main-container {
        /* 移动端：移除圆角，让四角直角 */
        border-radius: 0;
        /* 移除阴影，让整体更扁平 */
        box-shadow: none;
        /* 确保容器占满全宽 */
        max-width: 100%;
        /* 确保高度占满视口 */
        min-height: 100vh;
        overflow: visible;
    }
    .top-navbar {
        border-radius: 0; /* 移动端直角 */
    }

    /* 移动端调整其他内部元素的padding */
    .moments-feed {
    }

    .cover-section {
        height: 260px;
    }

    .cover-overlay {
        padding: 15px 15px 35px 15px;
    }

    .cover-title {
        font-size: 1.5rem;
    }

    .cover-subtitle {
        font-size: 1rem;
    }

    .moment-card {
        padding: 12px 0;
    }

    .post-time {
        font-size: 0.8rem;
    }

    .user-avatar {
        width: 46px;
        height: 46px;
    }

    .default-avatar {
        font-size: 1rem;
    }

    /* 超小屏幕保持3列但进一步缩小间距 */
    .media-grid:has(.media-item:nth-child(3)) {
        gap: 4px;
    }

    .media-item {
        border-radius: 6px;
    }

    .media-item video,
    .media-item audio {
        border-radius: 3px;
    }

    .media-item audio {
        padding: 8px;
    }
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--end-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #06ae56;
    /* 移除按钮本身的transform和阴影变化 */
    transform: none;
    /*box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);  保持原有阴影不变 */
}

.back-to-top:hover svg {
    /* 只让SVG箭头向上移动 */
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:active {
    transform: scale(0.95); /* 点击时轻微缩小 */
}

.back-to-top:active svg {
    transform: translateY(0); /* 点击时恢复箭头位置 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 16px;
        height: 16px;
    }
}

/* ==================== 顶部导航栏 ==================== */
.top-navbar {
    background: var(--end-card-bg);
    border-bottom: 0px solid var(--end-border);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    align-self: flex-start;
    width: 100%;
    border-radius: 12px 12px 0 0;
    height: 70px;
}

/* 滚动时取消圆角并添加半透明效果和模糊 */
.top-navbar.scrolled {
    border-radius: 0;
    background: rgba(64,64,64,88%);
    backdrop-filter: blur(0.2rem);
    -webkit-backdrop-filter: blur(0.2rem);
    border-bottom-color: rgba(235, 235, 235, 0.7);
}

/* 桌面端导航触发器 */
.nav-trigger {
    display: none;
    background: none;
    border: none;
    color: var(--end-text-secondary);
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
    align-items: center;
    margin-left: 4px;
}

.nav-trigger:hover {
    color: var(--end-primary);
    background: rgba(7, 193, 96, 0.1);
}

.nav-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    width: 12px; /* 与SVG宽度一致 */
    height: 12px; /* 与SVG高度一致 */
}
.nav-trigger-icon svg {
    transition: transform 0.3s ease;
    display: block; /* 确保SVG作为块级元素 */
}

.nav-trigger.active .nav-trigger-icon svg {
    transform: rotate(180deg);
}

/* 导航链接容器 - 桌面端默认显示 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: nowrap;
    transition: all 0.3s ease;
}

/* 品牌标识样式 */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--end-text);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-brand:hover {
    color: var(--end-primary);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.brandimglogo {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
}

/* 站点标题样式 */
.webtitle-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--end-text);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-brand:hover .webtitle-text {
    color: var(--end-primary);
}

.nav-link {
    color: var(--end-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--end-primary);
    background: rgba(7, 193, 96, 0.1);
}

.nav-link.active {
    color: var(--end-primary);
    background: rgba(7, 193, 96, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-action {
    color: var(--end-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-action:hover {
    color: var(--end-primary);
    background: rgba(7, 193, 96, 0.1);
}

.nav-action-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* 移动端汉堡菜单样式 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--end-text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover {
    color: var(--end-primary);
    background: rgba(7, 193, 96, 0.1);
}

/* 桌面端样式（768px以上） */
@media (min-width: 769px) {
    .nav-trigger {
        display: flex;
    }

    .nav-links {
        display: none; /* 桌面端默认隐藏 */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(64, 64, 64, 88%);
        backdrop-filter: blur(0.2rem);
        -webkit-backdrop-filter: blur(0.2rem);
        border-bottom: 1px solid var(--end-border);
        padding: 10px;
        z-index: 999;
        justify-content: center;
       border-radius: 0 0 12px 12px;
    }

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

    .nav-toggle {
        display: none;
    }
}

/* 移动端样式（768px及以下） */
@media (max-width: 768px) {
    .nav-trigger {
        display: none;
    }

    .top-navbar {
        padding: 10px 15px;
        border-radius: 12px 12px 0 0;
    }

    /* 移动端滚动时添加半透明效果和模糊 */
    .top-navbar.scrolled {
        background: rgba(64, 64, 64, 88%);
        backdrop-filter: blur(0.2rem);
        -webkit-backdrop-filter: blur(0.2rem);
    }
    .main-container {
        overflow: visible;
        position: relative;
    }
    .nav-brand {
        font-size: 1rem;
        gap: 10px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .brandimglogo {
        width: 100%;
        height: 100%;
    }

    .webtitle-text {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(64, 64, 64, 88%);
        backdrop-filter: blur(0.2rem);
        -webkit-backdrop-filter: blur(0.2rem);
        border-bottom: 1px solid rgba(64, 64, 64, 88%);
        padding: 10px;
        flex-direction: column;
        gap: 10px;
        border-radius: 0 0 12px 12px;
    }

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

    .nav-link {
        padding: 10px 15px;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
        line-height: 3rem;
    }

    .nav-actions {
        gap: 12px;
    }

    .nav-action {
        font-size: 0.85rem;
        padding: 5px 10px;
        gap: 4px;
    }

    .nav-action-icon {
        font-size: 0.9rem;
    }

    .nav-toggle {
        display: flex;
    }
}

/* 小屏幕移动端（480px及以下） */
@media (max-width: 480px) {
    .nav-link {
        padding: 10px 15px;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
        display: inherit;
      line-height: 1.5rem;
    }
  
    .top-navbar {
        padding: 8px 12px;
        border-radius: 0;
    }

    .nav-brand {
        font-size: 0.95rem;
        gap: 10px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        font-size: 0.8rem;
    }

    .brandimglogo {
        width: 100%;
        height: 100%;
    }

    .webtitle-text {
        font-size: 1.1rem;
    }

    .nav-action {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .nav-action span:not(.nav-action-icon) {
        display: none;
    }

    .nav-action-icon {
        font-size: 0.85rem;
    }

    .nav-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .top-navbar.scrolled {
        border-radius: 0;
    }
}

/* ==================== 底部信息样式 ==================== */
.site-footer {
    background: var(--end-card-bg);
    padding: 25px 0px 25px 0px;
    border-radius: 0px;
    border-top: 1px solid var(--end-border);
    margin-top: 15px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--end-text-secondary);
    font-size: 0.9rem;
    padding: 0 25px;
    text-align: center;
}

.copyright {
    color: var(--end-text-secondary);
    font-weight: 500;
}

.footer-divider,
.theme-divider {
    color: var(--end-text-secondary);
    opacity: 0.5;
}

.halo-link {
    color: var(--end-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.halo-link:hover {
    text-decoration: underline;
}

.author {
    color: var(--end-text-secondary);
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-footer {
        padding: 25px 0px 15px 0px;
        margin-top: 0px;/*30*/
    }

    .footer-info {
        font-size: 0.85rem;
        padding: 0 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 25px 0px 15px 0px;
        margin-top: 0px; /*25*/
    }

    .footer-info {
        font-size: 0.8rem;
        padding: 0 15px;
        gap: 4px;
    }

    .footer-divider,
    .theme-divider {
        margin: 0 2px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .footer-info {
        flex-direction: column;
        gap: 4px;
    }

    .footer-divider,
    .theme-divider {
        display: none;
    }
}

/* ==================== 文章页面样式 ==================== */
/* 文章内容中的图片和视频添加可点击样式 */
.post-content img,
.post-content video {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.post-content img:hover,
.post-content video:hover {
    transform: scale(1.02);
}
.post-content-container {
    max-width: 100%;
    margin: 0 auto;
}

.post-article {
    background: var(--end-card-bg);
    border-radius: 8px;
    /*padding: 15px;
    margin-top: -10px;*/
    position: relative;
    z-index: 1;
}

/* 文章封面元信息样式 */
.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;
}

.cover-meta-info .meta-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cover-meta-info .meta-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.cover-meta-info .meta-link:hover {
    color: white;
    text-decoration: underline;
}

/* 文章内容样式 */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--end-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--end-text);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    position: relative;
    display: inline-block;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h1::before {
    content: '#';
    color: var(--end-primary);
    font-weight: bold;
    margin-right: 8px;
    opacity: 0.7;
}

.post-content h1::after {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 0;
    right: 0;
    height: 0.6rem;
    background: rgba(7, 193, 96, 0.2);
    z-index: -1;
    border-radius: 2px;
}

.post-content h2 {
    font-size: 1.6rem;
}

.post-content h2::before {
    content: '##';
    color: var(--end-primary);
    font-weight: bold;
    margin-right: 6px;
    opacity: 0.6;
    font-size: 0.9em;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 0;
    right: 0;
    height: 1rem;
    background: rgba(7, 193, 96, 0.15);
    z-index: -1;
    transform: skewX(-40deg);
    border-radius: 6px;
}

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

.post-content h3::before {
    content: '###';
    color: var(--end-primary);
    font-weight: bold;
    margin-right: 4px;
    opacity: 0.5;
    font-size: 0.8em;
}

.post-content h3::after {
    content: '';
    position: absolute;
    bottom: 0.1rem;
    left: 0;
    right: 0;
    height: 0.4rem;
    background: rgba(7, 193, 96, 0.1);
    z-index: -1;
    border-radius: 2px;
}

.post-content p {
    text-align: justify;
    color: var(--end-post-p);
    margin-bottom: 12px;
}

.post-content blockquote {
    border-left: 4px solid var(--end-primary);
    background: rgba(7, 193, 96, 0.05);
    padding: 1rem 1rem;
    margin: 1rem 0;
    border-radius: 4px 12px 12px 4px;
    font-style: italic;
    color: #555;
}

.post-content pre {
    background: #1a1a1a;
    color: #e6e6e6;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-content code {
    background: rgba(7, 193, 96, 0.1);
    color: var(--end-primary);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.post-content video {
    border-radius: 6px;
}

.post-content ul, .post-content ol {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.post-content ul li::marker {
    color: var(--end-primary);
}

.post-content ol li::marker {
    color: var(--end-primary);
    font-weight: bold;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-content th, .post-content td {
    border: 1px solid #e9ecef;
    padding: 1rem;
    text-align: left;
}

.post-content th {
    background: var(--end-primary);
    color: white;
    font-weight: 600;
    text-align: center;
}

.post-content td {
    background: white;
}

.post-content tr:nth-child(even) td {
    background: #f8f9fa;
}

.post-content a {
    color: var(--end-primary);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

/* 文章标签 */
.post-tags {
    padding: 1rem 0px 1rem 0;
    border-top: 1px solid #ebebeb;
}

.post-tags h3 {
    margin-bottom: 1.5rem;
    color: var(--end-text);
    font-size: 1.3rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: var(--end-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.post-tag:hover {
    background: #06ae56;
    text-decoration: none;
    color: white;
}

/* 文章信息面板 */
.post-info-panel {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--end-text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.info-value {
    color: var(--end-text);
    font-weight: 500;
}

.info-value a {
    color: var(--end-primary);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .post-content-container {
    }
    
    .post-article {
    }
    
    .cover-meta-info {
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .post-content h1 {
        font-size: 1.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .post-content h2 {
        font-size: 1.4rem;
        padding: 0.3rem 0.6rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
        padding: 0.2rem 0.5rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .post-content-container {
    }
    
    .post-article {

    }
    
    .cover-meta-info {
    }
    
    .cover-meta-info .meta-item {
        font-size: 0.9rem;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-content h1 {
        font-size: 1.5rem;
        padding: 0.3rem 0.6rem;
    }
    
    .tags-list {
        gap: 8px;
    }
    
    .post-tag {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .post-info-panel {
        padding: 1.5rem;
    }
}


/* ==================== 文章列表样式 - 优化布局版 ==================== */
.posts-feed {
    padding: 0;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-card {
    background: var(--end-card-bg);
    border-radius: 6px;
    padding: 24px;
    border: 1px solid var(--end-a-link-card-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

/* 图片靠右显示，但宽度100% */
.post-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%; /* 宽度设为100% */
    height: 100%;
    background-image: var(--post-cover-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    
    /* 从左到右的模糊渐变 - 调整参数让右侧更清晰 */
    mask-image: linear-gradient(90deg, 
            transparent 0%,
            rgba(0,0,0,0.05) 15%,
            rgba(0,0,0,0.2) 30%,
            rgba(0,0,0,0.5) 50%,
            rgba(0,0,0,0.7) 70%,
            rgba(0,0,0,1) 100%
    );
    -webkit-mask-image: linear-gradient(90deg, 
            transparent 0%,
            rgba(0,0,0,0.05) 15%,
            rgba(0,0,0,0.2) 30%,
            rgba(0,0,0,0.5) 50%,
            rgba(0,0,0,0.7) 70%,
            rgba(0,0,0,1) 100%
    );
    
    filter: blur(0.8px);
    
    /* 关键：让伪元素不响应鼠标事件 */
    pointer-events: none;
    z-index: 1;
}

.post-card:hover {
    /* border-color: rgba(7, 193, 96, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px); */
}

.post-card:hover::after {
    transform: scale(1.05);
    /*mask-image: linear-gradient(90deg, 
        transparent 0%,
        rgba(0,0,0,0.05) 35%,
        rgba(0,0,0,0.2) 55%,
        rgba(0,0,0,0.5) 75%,
        rgba(0,0,0,0.7) 85%,
        rgba(0,0,0,1) 100%
    );
    -webkit-mask-image: linear-gradient(90deg, 
        transparent 0%,
        rgba(0,0,0,0.05) 35%,
        rgba(0,0,0,0.2) 55%,
        rgba(0,0,0,0.5) 75%,
        rgba(0,0,0,0.7) 85%,
        rgba(0,0,0,1) 100%
    );*/
    filter: blur(5.5px);
}

.post-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--end-border), transparent);
    margin: 0;
    opacity: 0.6;
}

/* 内容区域 */
.post-content {
    position: relative;
    z-index: 2;
    pointer-events: auto;

}

/* 标题和时间容器 */
.post-header {

}

/* 文章标题 */
.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--end-text);
    margin: 0 0 4px 0;
    line-height: 1.4;
    position: relative;
}

.post-title a {
    color: var(--end-text);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    position: relative;
    z-index: 3;
}

.post-title a:hover {
    color: var(--end-primary);
    text-decoration: none;
}

.post-title::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--end-primary);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.post-card:hover .post-title::before {
    height: 20px;
}

/* 发布时间 */
.post-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--end-text-secondary);
    font-size: 0.85rem;
    padding: 0;
    position: relative;
    z-index: 2;
}

.post-time .meta-icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

/* 元信息容器 - 阅读量、分类、标签在一起 */
.post-meta-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* 统一的元信息项样式 */
.post-meta-container .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--end-text-secondary);
    font-size: 0.8rem;
    padding: 4px 10px;
    background: var(--end-meta-bg);
    border-radius: 6px;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 3;
}

.post-meta-container .meta-item:hover {
    background: rgba(7, 193, 96, 0.2);
    color: var(--end-primary);
    border-color: rgba(7, 193, 96, 0.3);
}

.post-meta-container .meta-icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.post-meta-container .meta-item:hover .meta-icon {
    opacity: 1;
}

.category-link {
    color: var(--end-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
    z-index: 3;
}

.category-link:hover {
    color: var(--end-primary);
    text-decoration: none;
}

/* 文章标签样式 - 与元信息项样式一致 */
.post-tags {
    padding: 0;
    border-top: none;
    margin: 1rem 0rem 1rem 0rem;;
    position: relative;
    z-index: 2;
}

.tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 标签使用与元信息项相同的样式 */
.post-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--end-text-secondary);
    font-size: 0.8rem;
    padding: 4px 10px;
    background: var(--end-meta-bg);
    border-radius: 6px;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 3;
    text-decoration: none;
    white-space: nowrap;
}

.post-tag:hover {
    background: rgba(7, 193, 96, 0.2);
    color: var(--end-primary);
    border-color: rgba(7, 193, 96, 0.3);
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--end-text-secondary);
    background: var(--end-card-bg);
    border-radius: 12px;
    border: 1px solid var(--end-border);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.empty-state p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* 文章摘要 */
.post-excerpt {
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.post-excerpt p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--end-text-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制显示2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    
    /* 备用方案：字符数限制 */
    max-height: 3.2em; /* 2行高度 */
    word-break: break-all;
}

/* 针对中文的字符数限制 */
.post-excerpt p {
    /* 主要使用行数限制 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    /* 备用字符数限制（大约20个中文字符） */
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: normal;
}

/* 响应式调整
@media (max-width: 768px) {
    .post-card {
        padding: 20px;
        padding-right: 20px;
        min-height: auto;
    }
    
    .post-card::after {
        display: none;
    }
    
    .post-content {
        max-width: 100%;
    }
    
    .posts-list {
        gap: 20px;
    }
    
    .post-title {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }
    
    .post-title::before {
        left: -8px;
    }
    
    .post-time {
        font-size: 0.8rem;
    }
    
    .post-meta-container {
        gap: 6px;
    }
    
    .post-meta-container .meta-item {
        font-size: 0.75rem;
        padding: 3px 8px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .post-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 480px) {
    .posts-list {
        gap: 16px;
    }
    
    .post-card {
        padding: 16px;
        border-radius: 8px;
    }
    
    .post-title {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    
    .post-title::before {
        left: -6px;
        width: 3px;
    }
    
    .post-time {
        font-size: 0.75rem;
    }
    
    .post-meta-container {
        gap: 4px;
    }
    
    .post-meta-container .meta-item {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .post-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .empty-state {
        padding: 60px 20px;
    }
} */
/* 响应式调整 */
@media (max-width: 768px) {
    .post-card {
        padding: 20px;
        padding-right: 20px;
        min-height: auto;
    }
    
    /* 修改：在移动端也显示图片，但调整显示方式 */
    .post-card::after {
        display: block;
        /* 在移动端调整图片显示区域 */
        width: 100%; /* 移动端图片宽度减小 */
        right: 0;
        /* 调整渐变参数适应小尺寸 */
        mask-image: linear-gradient(90deg, 
            transparent 0%,
            rgba(0,0,0,0.1) 20%,
            rgba(0,0,0,0.3) 40%,
            rgba(0,0,0,0.6) 60%,
            rgba(0,0,0,0.8) 80%,
            rgba(0,0,0,1) 100%
        );
        -webkit-mask-image: linear-gradient(90deg, 
            transparent 0%,
            rgba(0,0,0,0.1) 20%,
            rgba(0,0,0,0.3) 40%,
            rgba(0,0,0,0.6) 60%,
            rgba(0,0,0,0.8) 80%,
            rgba(0,0,0,1) 100%
        );
        filter: blur(0.5px);
    }
    
    .post-content {

    }
    
    .posts-list {
        gap: 20px;
    }
    
    .post-title {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }
    
    .post-title::before {
        left: -8px;
    }
    
    .post-time {
        font-size: 0.8rem;
    }
    
    .post-meta-container {
        gap: 6px;
    }
    
    .post-meta-container .meta-item {
        font-size: 0.75rem;
        padding: 3px 8px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;

    }
    
    .post-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;

    }

      .post-excerpt p {
        font-size: 0.95rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        max-height: 3em;
    }
}

@media (max-width: 480px) {
    .posts-list {
        gap: 16px;
    }
    
    .post-card {
        padding: 16px;
        border-radius: 8px;
    }
    
    /* 超小屏幕进一步调整图片 */
    .post-card::after {
        width: 100%; /* 进一步减小图片宽度 */
        mask-image: linear-gradient(90deg, 
            transparent 0%,
            rgba(0,0,0,0.05) 15%,
            rgba(0,0,0,0.2) 30%,
            rgba(0,0,0,0.5) 50%,
            rgba(0,0,0,0.7) 70%,
            rgba(0,0,0,1) 100%
        );
        -webkit-mask-image: linear-gradient(90deg, 
            transparent 0%,
            rgba(0,0,0,0.05) 15%,
            rgba(0,0,0,0.2) 30%,
            rgba(0,0,0,0.5) 50%,
            rgba(0,0,0,0.7) 70%,
            rgba(0,0,0,1) 100%
        );
    }
    
    .post-content {

    }
    
    .post-title {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    
    .post-title::before {
        left: -6px;
        width: 3px;
    }
    
    .post-time {
        font-size: 0.75rem;
    }
    
    .post-meta-container {
        gap: 4px;
    }
    
    .post-meta-container .meta-item {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .post-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .empty-state {
        padding: 60px 20px;
    }

      .post-excerpt p {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        max-height: 2.8em;
    }
}


/* 简洁的淡入动画 */
.post-card {
    animation: fadeIn 0.3s ease;
}

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

/* ==================== 文章归档页面样式优化 ==================== */
.archives-feed {
    padding: 0;
}

.archives-list {
    display: flex;
    flex-direction: column;
}

/* 年份标题样式 */
.archive-year {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--end-text);

    padding: 0 30px;
    position: relative;
}

.archive-year::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 24px;
    background: var(--end-primary);
    border-radius: 2px;
    transform: translateY(-50%);
}

/* 月份标题样式 */
.archive-month {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--end-text);
    margin: 10px 0 10px 0;
    padding: 0 30px;
    opacity: 0.9;
}

.archive-month::before {
    content: '•';
    color: var(--end-primary);
    margin-right: 8px;
    font-weight: bold;
}

/* 月份文章列表容器 */
.month-posts {
    display: flex;
    flex-direction: column;
    padding: 0 30px;
}

/* 单篇文章样式 */
.archive-post {
    background: var(--end-card-bg);
    border-radius: 0;
    padding: 12px 0;
    margin-bottom: 0;
    border: none;
    transition: all 0.3s ease;
}

.archive-post:hover {
    background: rgba(7, 193, 96, 0.03);
}

/* 文章头部 - 时间和标题在同一行 */
.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* 时间样式 */
.post-date {
    background: linear-gradient(135deg, var(--end-primary), #06ae56);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}


/* 文章标题 */
.archive-post .post-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--end-text);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.archive-post .post-title a {
    color: var(--end-text);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.archive-post .post-title a:hover {
    color: var(--end-primary);
    text-decoration: none;
}

/* 分割线样式 */
.archive-divider {
    height: 1px;
    background: var(--end-border);
    margin: 0;
    opacity: 0.4;
}

/* 空状态样式 */
.archives-feed .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--end-text-secondary);
}

.archives-feed .empty-state .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.archives-feed .empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.archives-feed .empty-state p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* 加载更多容器 */
.archives-feed .load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.archives-feed .load-more-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 10px 0 20px 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .archive-year {
        font-size: 1.5rem;
        padding: 0 20px;
        margin: 25px 0 12px 0;
    }
    
    .archive-year::before {
        width: 3px;
        height: 20px;
    }
    
    .archive-month {
        font-size: 1.1rem;
        padding: 0 20px;
        margin: 15px 0 10px 0;
    }
    
    .month-posts {
        padding: 0 20px;
    }
    
    .archive-post {
        padding: 10px 0;
    }
    
    .post-header {
        gap: 10px;
    }
    
    .post-date {
        padding: 5px 8px;
        font-size: 0.8rem;
        min-width: 55px;
        border-radius: 6px;
    }
    
    .archive-post .post-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .archive-year {
        font-size: 1.3rem;
        padding: 0 15px;
        margin: 20px 0 10px 0;
    }
    
    .archive-year::before {
        width: 3px;
        height: 18px;
    }
    
    .archive-month {
        font-size: 1rem;
        padding: 0 15px;
        margin: 12px 0 8px 0;
    }
    
    .month-posts {
        padding: 0 15px;
    }
    
    .archive-post {
        padding: 8px 0;
    }
    
    .post-header {
        gap: 8px;

    }
    
    .post-date {
        padding: 0px 4px;
        font-size: 0.75rem;
        min-width: 50px;
        border-radius: 5px;
        margin-top: 1px;
    }
    
    .archive-post .post-title {
        font-size: 0.95rem;
    }
    
    .archive-post .post-title a:hover {
        transform: none;
    }
}



/* 动画效果 */
.archive-post {
    animation: fadeInUp 0.5s ease;
}

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

/* 年份和月份的进入动画 */
.archive-year, .archive-month {
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 时间标签动画 */

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(7, 193, 96, 0.2);
    }
    50% {
        box-shadow: 0 2px 12px rgba(7, 193, 96, 0.4);
    }
}












/* ==================== 灯箱组件样式 ==================== */
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 40px 20px;
    box-sizing: border-box;
}

.media-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 80vh; /* 使用 vh 单位确保高度约束 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media {
    position: relative;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-media.loaded {
    transform: scale(1);
    opacity: 1;
}

/* 关键：移除所有约束，让图片自然显示 */
.lightbox-media img,
.lightbox-media video {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .lightbox-media img,
    .lightbox-media video {
        max-width: 95vw;
        max-height: 85vh;
    }
}
/* 导航按钮 */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10002;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.lightbox-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1);
}

/* SVG 图标样式 */
.lightbox-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.lightbox-nav:hover svg {
    transform: scale(1.1);
}

/* 关闭按钮 */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.lightbox-close:hover svg {
    transform: scale(1.1);
}

/* 计数器 */
.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10001; /* 计数器也需要正确的 z-index */
}



/* 加载动画 */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 视频控制条样式优化 */
.lightbox-media video::-webkit-media-controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.lightbox-media video::-webkit-media-controls-panel {
    background: transparent;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
    }
    
    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .lightbox-close {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-close svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    
    .lightbox-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-close svg {
        width: 16px;
        height: 16px;
    }
}

/* 视频预览样式 */
.media-item.video-item {
    position: relative;
    cursor: pointer;
}

.video-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.media-item.video-item:hover .video-play-icon {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-play-icon svg {
    width: 34px;
    height: 34px;
    fill: white;
    margin-left: 2px; /* 让播放图标稍微向右偏移，看起来更居中 */
}

/* 视频缩略图容器 */
.video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* 灯箱视频控制优化 */
.lightbox-video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    background: #000;
}

/* 视频加载状态 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* 响应式调整视频播放图标 */
@media (max-width: 768px) {
    .video-play-icon {
        width: 50px;
        height: 50px;
    }
    
    .video-play-icon svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .video-play-icon {
        width: 44px;
        height: 44px;
    }
    
    .video-play-icon svg {
        width: 28px;
        height: 28px;
    }
}


/* 底部缩略图导航 */
.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 90%;
    overflow-x: auto;
    z-index: 10001;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.lightbox-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.thumbnail-item.active {
    border-color: var(--end-primary);
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 视频标识 */
.thumbnail-video-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.thumbnail-video-badge svg {
    width: 10px;
    height: 10px;
    fill: white;
}

/* 视频缩略图样式 */
.thumbnail-video {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer; /* 确保容器可点击 */
}

.thumbnail-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    /* 只禁止视频本身的交互 */
    pointer-events: none;
}

/* 视频播放图标覆盖层 */
.thumbnail-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none; /* 覆盖层不可交互 */
}

.thumbnail-item:hover .thumbnail-video-overlay {
    opacity: 1;
}

.thumbnail-video-icon {
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.thumbnail-video-icon svg {
    width: 10px;
    height: 10px;
    fill: white;
    margin-left: 1px;
}

.thumbnail-item:hover .thumbnail-video-icon {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lightbox-thumbnails {
        bottom: 15px;
        padding: 6px;
        gap: 6px;
    }
    
    .thumbnail-item {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .lightbox-thumbnails {
        bottom: 10px;
        padding: 6px;
        gap: 4px;
    }
    
    .thumbnail-item {
        width: 44px;
        height: 44px;
    }
    
    .thumbnail-video-badge {
        width: 14px;
        height: 14px;
        top: 2px;
        right: 2px;
    }
    
    .thumbnail-video-badge svg {
        width: 8px;
        height: 8px;
    }
}



/* ==================== 图库页面样式 - 真正瀑布流布局 ==================== */

/* 图库标题样式 */
.photos-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--end-text);
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.photos-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--end-primary);
    border-radius: 2px;
}

.photos-section-subtitle {
    color: var(--end-text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    padding-left: 16px;
}

/* 真正瀑布流布局 - 使用 columns */
.photos-grid {
    columns: 3;
    column-gap: 6px;
    margin: 20px 0;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 6px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
    width: 100%;
}

.photo-card {
    width: 100%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--end-card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 卡片悬停效果 - 只改变阴影和边框 */
.photo-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: zoom-in;
    /* 移除transform，让卡片保持原位 */
}

/* 图片容器 - 用于控制图片的溢出 */
.photo-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.photo-image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.4s ease;
    transform-origin: center;
}

/* 只在图片上应用缩放效果 */
.photo-card:hover .photo-image {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.85) 100%
    );
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 6px;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-info {
    color: white;
    transform: translateY(10px);
    transition: all 0.3s ease;
    width: 100%;
}

.photo-card:hover .photo-info {
    transform: translateY(0);
}

.photo-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.photo-desc {
    font-size: 0.85rem;
    opacity: 0;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
    transition: all 0.3s ease 0.1s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-card:hover .photo-desc {
    opacity: 1;
}

/* 图片加载动画 */
.photo-item {
    animation: fadeInUp 0.6s ease;
}

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

/* 图库空状态 */
.photos-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--end-text-secondary);
    break-inside: avoid;
    column-span: all;
}

.photos-empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.photos-empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.photos-empty-state p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* 响应式调整 */

@media (max-width: 768px) {
    .photos-section-title {
        font-size: 1.5rem;
        padding-left: 12px;
    }
    
    .photos-section-title::before {
        width: 3px;
        height: 20px;
    }
    
    .photos-section-subtitle {
        padding-left: 12px;
        font-size: 0.9rem;
    }
    
    .photos-grid {
        columns: 2;
        column-gap: 6px;
    }
    
    .photo-item {
        margin-bottom: 6px;
    }
    
    .photo-overlay {
        padding: 6px;
        opacity: 1;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            transparent 30%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }
    
    .photo-info {
        transform: translateY(0);
    }
    
    .photo-desc {
        opacity: 1;
    }
    
    .photo-title {
        font-size: 0.95rem;
    }
    
    .photo-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .photos-section-title {
        font-size: 1.3rem;
        padding-left: 10px;
    }
    
    .photos-section-title::before {
        width: 3px;
        height: 18px;
    }
    
    .photos-grid {
        columns: 2;
    }
    
    .photo-item {
        margin-bottom: 6px;
    }
    
    .photo-overlay {
        padding: 6px;
    }
    
    .photo-title {
        font-size: 0.9rem;
    }
    
    .photo-desc {
        font-size: 0.75rem;
    }
}



/* ==================== 瞬间内容加载动画 ==================== */

/* 瞬间卡片进入动画 */
.moment-card {
    animation: fadeInUp 0.6s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 延迟动画，让卡片依次出现 */
.moment-card:nth-child(1) { animation-delay: 0.1s; }
.moment-card:nth-child(2) { animation-delay: 0.2s; }
.moment-card:nth-child(3) { animation-delay: 0.3s; }
.moment-card:nth-child(4) { animation-delay: 0.4s; }
.moment-card:nth-child(5) { animation-delay: 0.5s; }
.moment-card:nth-child(6) { animation-delay: 0.6s; }
.moment-card:nth-child(7) { animation-delay: 0.7s; }
.moment-card:nth-child(8) { animation-delay: 0.8s; }
.moment-card:nth-child(9) { animation-delay: 0.9s; }
.moment-card:nth-child(10) { animation-delay: 1.0s; }

/* 分割线动画 */
.moment-divider {
    animation: fadeIn 0.6s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

.moment-divider:nth-child(1) { animation-delay: 0.15s; }
.moment-divider:nth-child(2) { animation-delay: 0.25s; }
.moment-divider:nth-child(3) { animation-delay: 0.35s; }
.moment-divider:nth-child(4) { animation-delay: 0.45s; }
.moment-divider:nth-child(5) { animation-delay: 0.55s; }
.moment-divider:nth-child(6) { animation-delay: 0.65s; }
.moment-divider:nth-child(7) { animation-delay: 0.75s; }
.moment-divider:nth-child(8) { animation-delay: 0.85s; }
.moment-divider:nth-child(9) { animation-delay: 0.95s; }

/* 加载更多区域动画 */
.load-more-container {
    animation: fadeIn 0.8s ease 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 空状态动画 */
.empty-state {
    animation: fadeInUp 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}




/* ==================== 装备页面样式 ==================== */

/* 分组块样式 */
.group-block {
    margin-bottom: 40px;
}

.group-block:last-child {
    margin-bottom: 0;
}

/* 装备网格布局 */
.equipments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.equipment-item {
    break-inside: avoid;
}

.equipment-card {
    background: var(--end-card-bg);
    border: 1px solid var(--end-a-link-card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 卡片悬停效果 - 只改变阴影和边框，容器不动 */
.equipment-card:hover {

    transform: none;
}

.equipment-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--end-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    transform-origin: center;
}

/* 只在图片上应用缩放效果 */
.equipment-card:hover .equipment-image {
    transform: scale(1.08);
}

.equipment-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--end-text-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* 占位符的悬停效果 */
.equipment-card:hover .equipment-placeholder {
    transform: scale(1.05);
    opacity: 0.7;
}

.equipment-info {
    padding: 15px 15px 15px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.equipment-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--end-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.equipment-spec {
    font-size: 0.85rem;
    color: var(--end-text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
    background: var(--end-border);
    border: 1px solid var(--end-a-link-card-border);
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
    width: fit-content;
    white-space: nowrap;

}


.equipment-desc {
    font-size: 0.9rem;
    color: var(--end-text-secondary);
    line-height: 1.5;
    flex: 1;
}

.equipment-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--end-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.equipment-link:hover {
    background: #06ae56;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .equipments-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .equipment-image-container {
        height: 180px;
    }
    
    .equipment-info {
        padding: 16px;
    }
    
    .equipment-title {
        font-size: 1.1rem;
    }
    
    /* 移动端减小缩放效果 */
    .equipment-card:hover .equipment-image {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .equipments-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .equipment-image-container {
        height: 160px;
    }
    
    .equipment-info {
        padding: 12px;
    }
    
    .group-block {
        margin-bottom: 30px;
    }
    
    /* 移动端进一步减小缩放效果 */
    .equipment-card:hover .equipment-image {
        transform: scale(1.03);
    }
}

/* ==================== 装备加载动画 ==================== */
.equipment-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipment-loading.show {
    opacity: 1;
}

.loading-content {
    text-align: center;
    color: white;
    transform: translateY(-20px);
    animation: fadeInUp 0.6s ease;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.loading-spinner-large .spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--end-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-content p {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 装备项目进入动画 */
.equipment-item {
    animation: fadeInUp 0.6s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 延迟动画，让装备项目依次出现 */
.equipment-item:nth-child(1) { animation-delay: 0.1s; }
.equipment-item:nth-child(2) { animation-delay: 0.2s; }
.equipment-item:nth-child(3) { animation-delay: 0.3s; }
.equipment-item:nth-child(4) { animation-delay: 0.4s; }
.equipment-item:nth-child(5) { animation-delay: 0.5s; }
.equipment-item:nth-child(6) { animation-delay: 0.6s; }
.equipment-item:nth-child(7) { animation-delay: 0.7s; }
.equipment-item:nth-child(8) { animation-delay: 0.8s; }
.equipment-item:nth-child(9) { animation-delay: 0.9s; }
.equipment-item:nth-child(10) { animation-delay: 1.0s; }

/* 加载更多区域动画 */
.equipments-container .load-more-container {
    animation: fadeIn 0.8s ease 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 空状态动画 */
.equipments-container .photos-empty-state {
    animation: fadeInUp 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .loading-spinner-large {
        width: 50px;
        height: 50px;
    }
    
    .loading-content p {
        font-size: 1rem;
    }
    
    .equipment-item:nth-child(1) { animation-delay: 0.05s; }
    .equipment-item:nth-child(2) { animation-delay: 0.1s; }
    .equipment-item:nth-child(3) { animation-delay: 0.15s; }
    .equipment-item:nth-child(4) { animation-delay: 0.2s; }
    .equipment-item:nth-child(5) { animation-delay: 0.25s; }
    .equipment-item:nth-child(6) { animation-delay: 0.3s; }
    .equipment-item:nth-child(7) { animation-delay: 0.35s; }
    .equipment-item:nth-child(8) { animation-delay: 0.4s; }
}

@media (max-width: 480px) {
    .loading-spinner-large {
        width: 44px;
        height: 44px;
    }
    
    .loading-content p {
        font-size: 0.95rem;
    }
}

/* ==================== 装备外部链接样式 ==================== */
.equipment-external-link {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    z-index: 2;
}

.equipment-card:hover .equipment-external-link {
    opacity: 1;
    transform: translateY(0);
}

.equipment-external-link:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(0) scale(1.05);
    color: white;
    text-decoration: none;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.link-icon svg {
    width: 100%;
    height: 100%;
}

.link-text {
    white-space: nowrap;
    font-size: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .equipment-external-link {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        gap: 4px;
    }
    
    .link-text {
        font-size: 0.7rem;
    }
    
    .link-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .equipment-external-link {
        top: 8px;
        right: 8px;
        padding: 8px 11px;
    }
    
    /* 在小屏幕上默认显示链接，而不是悬停显示 */
    .equipment-external-link {
        opacity: 0.8;
        transform: translateY(0);
    }
    
    .equipment-card:hover .equipment-external-link {
        opacity: 1;
    }
}

/* ==================== 装备标题链接样式 ==================== */
.equipment-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.equipment-title-link:hover .equipment-title {
    color: var(--end-primary);
    text-decoration: none;
}

/* 确保标题保持原有样式 */
.equipment-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--end-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* ==================== 文章列表载入动画 ==================== */
.posts-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.posts-loading.show {
    opacity: 1;
}

.posts-loading-content {
    text-align: center;
    color: white;
    transform: translateY(-20px);
    animation: fadeInUp 0.6s ease;
}

.posts-loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.posts-loading-spinner .spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--end-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.posts-loading-content p {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 文章卡片进入动画 */
.post-card {
    animation: fadeInUp 0.6s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 延迟动画，让文章卡片依次出现 */
.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }
.post-card:nth-child(7) { animation-delay: 0.7s; }
.post-card:nth-child(8) { animation-delay: 0.8s; }
.post-card:nth-child(9) { animation-delay: 0.9s; }
.post-card:nth-child(10) { animation-delay: 1.0s; }

/* 加载更多区域动画 */
.posts-feed .load-more-container {
    animation: fadeIn 0.8s ease 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 空状态动画 */
.posts-feed .empty-state {
    animation: fadeInUp 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .posts-loading-spinner {
        width: 50px;
        height: 50px;
    }
    
    .posts-loading-content p {
        font-size: 1rem;
    }
    
    .post-card:nth-child(1) { animation-delay: 0.05s; }
    .post-card:nth-child(2) { animation-delay: 0.1s; }
    .post-card:nth-child(3) { animation-delay: 0.15s; }
    .post-card:nth-child(4) { animation-delay: 0.2s; }
    .post-card:nth-child(5) { animation-delay: 0.25s; }
    .post-card:nth-child(6) { animation-delay: 0.3s; }
    .post-card:nth-child(7) { animation-delay: 0.35s; }
    .post-card:nth-child(8) { animation-delay: 0.4s; }
}

@media (max-width: 480px) {
    .posts-loading-spinner {
        width: 44px;
        height: 44px;
    }
    
    .posts-loading-content p {
        font-size: 0.95rem;
    }
}

/* ==================== 评论区域样式 ==================== */
.comments-section {
    /*margin-top: 40px;*/
    padding-top: 30px;
    /*border-top: 1px solid var(--end-border);*/
}

.comments-header {
    margin-bottom: 30px;
    text-align: center;
}

.comments-header h3 {
    font-size: 1.5rem;
    color: var(--end-text);
    margin-bottom: 8px;
    font-weight: 600;
}

.comments-header p {
    color: var(--end-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.comments-disabled {
    text-align: center;
    padding: 40px 20px;
    color: var(--end-text-secondary);
    background: var(--end-card-bg);
    border-radius: 12px;
    border: 1px solid var(--end-border);
    margin-top: 20px;
}

.comments-disabled p {
    margin: 0;
    font-size: 0.95rem;
}

/* 评论组件容器样式优化 */
.comments-section halo-comment {
    display: block;
    background: var(--end-card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--end-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 深色模式下的评论容器 */
[data-theme="dark"] .comments-section halo-comment {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .comments-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .comments-header {
        margin-bottom: 20px;
    }
    
    .comments-header h3 {
        font-size: 1.3rem;
    }
    
    .comments-section halo-comment {
        padding: 15px;
        border-radius: 8px;
    }
    
    .comments-disabled {
        padding: 30px 15px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .comments-section {
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .comments-header h3 {
        font-size: 1.2rem;
    }
    
    .comments-header p {
        font-size: 0.9rem;
    }
    
    .comments-section halo-comment {
        padding: 12px;
        border-radius: 6px;
    }
    
    .comments-disabled {
        padding: 25px 12px;
        font-size: 0.9rem;
    }
}

/* 评论组件加载动画 */
.comments-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--end-text-secondary);
}

.comments-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(7, 193, 96, 0.2);
    border-top: 3px solid var(--end-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* 确保评论组件内部元素样式协调 */
.comments-section * {
    box-sizing: border-box;
}

/* 为评论组件添加平滑过渡 */
.comments-section {
    transition: all 0.3s ease;
}

/* 评论组件悬停效果 */
.comments-section halo-comment:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .comments-section halo-comment:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== 瞬间操作按钮样式 ==================== */
.meta-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.meta-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--end-text-secondary);
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.meta-action:hover {
    color: var(--end-primary);
    background: rgba(7, 193, 96, 0.1);
}

.action-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.action-count {
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 16px;
    text-align: center;
}

/* 点赞按钮激活状态 */
.upvote-btn.upvoted {
    color: #ff4757;
}

.upvote-btn.upvoted .action-icon {
    fill: #ff4757;
    stroke: #ff4757;
}

.upvote-btn:hover .action-icon {
    transform: scale(1.1);
}

.upvote-btn.upvoted:hover .action-icon {
    animation: heartBeat 0.6s ease;
}
/* 评论按钮激活状态 */
.comment-toggle.active {
    color: var(--end-primary);
    background: rgba(7, 193, 96, 0.1);
}

/* 点赞动画 */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .meta-action {
        padding: 5px 10px;
        font-size: 0.8rem;
        gap: 4px;
    }
    
    .action-icon {
        width: 14px;
        height: 14px;
    }
    
    .action-count {
        font-size: 0.75rem;
    }
}


/* ==================== 底部简洁三行布局样式 ==================== */
.site-footer .footer-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
}

.footer-line {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.copyright-line {
    order: 1;
    color: var(--end-text);
    font-size: 0.95rem;
}

.beian-line {
    order: 2;
}

.theme-line {
    order: 3;
    color: var(--end-text-secondary);
    font-size: 0.9rem;
}

/* 响应式调整 - 保持三行布局不变 */
@media (max-width: 768px) {
    .site-footer .footer-info {
        gap: 10px !important;
    }
    
    .copyright-line {
        font-size: 0.9rem;
    }
    
    .theme-line {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .site-footer .footer-info {
        gap: 8px !important;
    }
    
    .copyright-line {
        font-size: 0.85rem;
    }
    
    .theme-line {
        font-size: 0.8rem;
    }
}


/* ==================== 标签页面全新样式 ==================== */
.page-tags-feed {
    padding: 0;
}

/* 标签网格布局 */
.page-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 标签卡片样式 */
.page-tag-card {
    position: relative;
    background: var(--end-card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--end-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-tag-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* 标签颜色背景 */
.page-tag-color-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.page-tag-card:hover .page-tag-color-bg {
    opacity: 0.35;
    height: 100%;
}

/* 标签内容 */
.page-tag-content {
    padding: 20px;
    position: relative;
    z-index: 3;
}

/* 标签头部 */
.page-tag-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.page-tag-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--end-text);
    margin: 0;
    line-height: 1.3;
    flex: 1;
    padding-right: 10px;
}

.page-tag-count {
    background: var(--end-primary);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

/* 标签元信息 */
.page-tag-meta {
    margin-bottom: 15px;
}

.page-tag-articles {
    font-size: 0.85rem;
    color: var(--end-text-secondary);
    opacity: 0.7;
}

/* 标签颜色指示器 */
.page-tag-color-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-tag-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.page-tag-color-value {
    font-size: 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: var(--end-text-secondary);
    opacity: 0.8;
}

/* 悬停效果层 */
.page-tag-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.05), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.page-tag-card:hover .page-tag-hover-effect {
    opacity: 1;
}

/* 没有颜色的标签样式 */
.page-tag-card.page-tag-no-color {
    background: linear-gradient(135deg, var(--end-card-bg), var(--end-a-link-card));
}

.page-tag-card.page-tag-no-color .page-tag-count {
    background: linear-gradient(135deg, var(--end-primary), #06ae56);
}

/* 空状态样式 */
.page-tags-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--end-text-secondary);
    background: var(--end-card-bg);
    border-radius: 12px;
    border: 1px solid var(--end-border);
    grid-column: 1 / -1;
}

.page-tags-empty-state .page-tags-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.page-tags-empty-state .page-tags-empty-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.page-tags-empty-state .page-tags-empty-desc {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-tags-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .page-tag-content {
        padding: 16px;
    }
    
    .page-tag-name {
        font-size: 1.2rem;
    }
    
    .page-tag-count {
        padding: 5px 8px;
        font-size: 0.85rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .page-tags-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .page-tag-content {
        padding: 14px;
    }
    
    .page-tag-name {
        font-size: 1.1rem;
    }
    
    .page-tag-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .page-tag-count {
        align-self: flex-start;
    }
    
    .page-tag-color-indicator {
        padding: 6px 10px;
    }
}

/* 动画效果 */
@keyframes page-tag-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-tag-card {
    animation: page-tag-fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

/* 延迟动画，让卡片依次出现 */
.page-tag-card:nth-child(1) { animation-delay: 0.1s; }
.page-tag-card:nth-child(2) { animation-delay: 0.2s; }
.page-tag-card:nth-child(3) { animation-delay: 0.3s; }
.page-tag-card:nth-child(4) { animation-delay: 0.4s; }
.page-tag-card:nth-child(5) { animation-delay: 0.5s; }
.page-tag-card:nth-child(6) { animation-delay: 0.6s; }
.page-tag-card:nth-child(7) { animation-delay: 0.7s; }
.page-tag-card:nth-child(8) { animation-delay: 0.8s; }
.page-tag-card:nth-child(9) { animation-delay: 0.9s; }
.page-tag-card:nth-child(10) { animation-delay: 1.0s; }




/* ==================== 标签详情页面样式 ==================== */
.page-tag-posts-feed {
    padding: 0;
}

.page-tag-posts-list {
    display: flex;
    flex-direction: column;
}

/* 标签文章卡片样式 */
.page-tag-post-card {
    background: var(--end-card-bg);
    border-radius: 0;
    padding: 20px 0;
    margin-bottom: 0;
    border: none;
    transition: all 0.3s ease;
}

.page-tag-post-card:hover {
    background: rgba(7, 193, 96, 0.03);
}

/* 文章头部 */
.page-tag-post-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.page-tag-post-date {
    background: var(--end-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.page-tag-post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--end-text);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.page-tag-post-title a {
    color: var(--end-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-tag-post-title a:hover {
    color: var(--end-primary);
    text-decoration: none;
}

/* 文章摘要 */
.page-tag-post-excerpt {
    margin-bottom: 12px;
    padding-left: 60px;
}

.page-tag-post-excerpt p {
    font-size: 0.95rem;
    color: var(--end-text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章元信息 */
.page-tag-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 60px;
    font-size: 0.85rem;
    color: var(--end-text-secondary);
}

.page-tag-post-categories a {
    color: var(--end-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-tag-post-categories a:hover {
    color: var(--end-primary);
    text-decoration: underline;
}

.page-tag-post-stats {
    display: flex;
    gap: 15px;
}

.page-tag-post-views,
.page-tag-post-comments {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
}

/* 文章分割线 */
.page-tag-post-divider {
    height: 1px;
    background: var(--end-border);
    margin: 0 30px;
    opacity: 0.4;
}

/* 空状态样式 */
.page-tag-posts-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--end-text-secondary);
    background: var(--end-card-bg);
    border-radius: 12px;
    border: 1px solid var(--end-border);
}

.page-tag-posts-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.page-tag-posts-empty-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.page-tag-posts-empty-desc {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* 颜色预览 */
.color-preview {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-tag-post-card {
        padding: 16px 0;
    }
    
    .page-tag-post-header {
        gap: 12px;
    }
    
    .page-tag-post-date {
        min-width: 40px;
        font-size: 0.75rem;
    }
    
    .page-tag-post-title {
        font-size: 1.1rem;
    }
    
    .page-tag-post-excerpt {
        padding-left: 52px;
    }
    
    .page-tag-post-meta {
        padding-left: 52px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .page-tag-post-divider {
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .page-tag-post-card {
        padding: 12px 0;
    }
    
    .page-tag-post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .page-tag-post-date {
        align-self: flex-start;
    }
    
    .page-tag-post-excerpt {
        padding-left: 0;
    }
    
    .page-tag-post-meta {
        padding-left: 0;
    }
    
    .page-tag-post-divider {
        margin: 0 15px;
    }
}


/* ==================== 简约分页样式（匹配点赞/评论按钮风格） ==================== */
.pagination-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-updown {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    background: transparent;
}

/* 分页按钮基础样式（匹配meta-action） */
.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--end-a-link-card);
    border: 1px solid var(--end-a-link-card-border);
    color: var(--end-text-secondary);
    font-size: 0.9rem;
    padding: 8px;
    width: 50px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

.pagination-btn:hover:not(.disabled) {
    color: var(--end-primary);
    background: rgba(7, 193, 96, 0.1);
    border-color: rgba(7, 193, 96, 0.2);
}

/* 禁用状态 */
.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--end-a-link-card);
    color: var(--end-text-secondary);
    border-color: var(--end-a-link-card-border);
    pointer-events: none; /* 关键：阻止所有鼠标事件 */
}

.pagination-btn.disabled:hover {
    background: var(--end-a-link-card);
    color: var(--end-text-secondary);
    border-color: var(--end-a-link-card-border);
}

/* SVG图标样式 */
.pagination-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) svg {
    stroke-width: 2.2;
}

/* 页码信息样式 */
.pagination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--end-text-secondary);
    font-size: 0.9rem;
    padding: 0 8px;
}

.pagination-info span {
    display: inline-block;
    line-height: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-container {
        margin: 30px 0;
    }
    
    .pagination-updown {
        gap: 12px;
    }
    
    .pagination-btn {
        padding: 6px;
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
        min-width: 50px;
    }
    
    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        margin: 25px 0;
    }
    
    .pagination-updown {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 5px;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        min-width: 40px;
    }
    
    .pagination-btn svg {
        width: 12px;
        height: 12px;
    }
}



/* ==================== 极简分类页面样式 ==================== */

/* 分类容器 */
.categories-simple {
    padding: 20px 0;
}

/* 一级分类容器 */
.category-level-1 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 分类项目 */
.category-item {
    width: 100%;
}

/* 分类卡片 */
.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--end-card-bg);
    border: 1px solid var(--end-a-link-card-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.category-card:hover {
    /*border-color: var(--end-primary);*/
    background: var(--end-a-link-card-hover);
    /*transform: translateY(-1px);*/
}

/* 分类图标 */
.category-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--end-a-link-card);
    border-radius: 8px;
    border: 1px solid var(--end-a-link-card-border);
}

.icon-image {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
}

.icon-image.small {
    width: 20px;
    height: 20px;
}

.default-icon {
    color: var(--end-text-secondary);
    opacity: 0.8;
}

/* 分类信息 */
.category-info {
    flex: 1;
    min-width: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.category-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--end-text);
    line-height: 1.3;
}

.category-count {
    color: var(--end-text-secondary);
    font-size: 0.9rem;
}

.category-desc {
    margin: 0;
    color: var(--end-text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章数量标记 */
.article-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--end-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 子分类区域 */
.category-children {
    margin-top: 8px;
    margin-left: 64px; /* 图标宽度48px + 间隙16px */
    padding-left: 16px;
    border-left: 2px solid var(--end-border);
}

.subcategory-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--end-a-link-card);
    border: 1px solid var(--end-a-link-card-border);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.subcategory-card:hover {
    /*border-color: var(--end-primary);*/
    background: var(--end-a-link-card-hover);
}

.subcategory-card:last-child {
    margin-bottom: 0;
}

/* 子分类图标 */
.subcategory-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--end-card-bg);
    border-radius: 6px;
    border: 1px solid var(--end-a-link-card-border);
}

/* 子分类信息 */
.subcategory-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.subcategory-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--end-text);
}

.subcategory-count {
    color: var(--end-text-secondary);
    font-size: 0.85rem;
    background: var(--end-card-bg);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--end-a-link-card-border);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    margin-bottom: 20px;
}

.empty-state .empty-icon svg {
    color: var(--end-text-secondary);
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--end-text);
    margin: 0 0 10px 0;
}

.empty-state p {
    color: var(--end-text-secondary);
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-card {
        padding: 14px;
        gap: 12px;
    }
    
    .category-icon {
        width: 42px;
        height: 42px;
    }
    
    .icon-image {
        width: 24px;
        height: 24px;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .category-count {
        font-size: 0.85rem;
    }
    
    .category-desc {
        font-size: 0.85rem;
    }
    
    .category-children {
        margin-left: 54px; /* 调整缩进 */
    }
    
    .subcategory-card {
        padding: 10px;
        gap: 10px;
    }
    
    .subcategory-icon {
        width: 32px;
        height: 32px;
    }
    
    .subcategory-title {
        font-size: 0.95rem;
    }
    
    .article-badge {
        top: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .category-card {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .category-icon {
        width: 36px;
        height: 36px;
    }
    
    .category-info {
        width: 100%;
    }
    
    .category-children {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
    
    .article-badge {
        position: static;
        align-self: flex-start;
        margin-top: 8px;
    }
}


/* 置顶标志样式 */
.pinned-badge {
    color: #f56c6c;
    font-weight: bold;
    margin-right: 5px;
}

.post-card[data-pinned="true"] {
    border-left: 3px solid #f56c6c;
    background-color: rgba(245, 108, 108, 0.02);
}
/* ==================== 置顶图标样式 ==================== */
.pinned-icon-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--end-meta-bg);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}



.pinned-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}




/* 响应式调整 */
@media (max-width: 768px) {
    .pinned-icon-container {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    
    .pinned-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .pinned-icon-container {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
    }
    
    .pinned-icon {
        width: 16px;
        height: 16px;
    }
}



/* ==================== 友链页面样式 ==================== */

.pllinks-feed {
    padding: 0;
}

/* 顶部申请友链信息 - 无动画 */
.pllinks-apply-info-top {
    margin: 0 0 30px 0;
    padding: 20px;
    background: rgba(var(--end-primary-rgb, 7, 193, 96), 0.05);
    border: 1px solid rgba(var(--end-primary-rgb, 7, 193, 96), 0.2);
    border-radius: 12px;
    border-left: 4px solid var(--end-primary);
}

.pllinks-info-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.pllinks-info-icon {
    flex-shrink: 0;
    color: var(--end-primary);
    margin-top: 2px;
}

.pllinks-apply-info-top p {
    margin: 0;
    color: var(--end-text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.pllinks-apply-info-top a {
    color: var(--end-primary);
    text-decoration: none;
    font-weight: 500;
}

.pllinks-apply-info-top a:hover {
    text-decoration: underline;
}

.pllinks-list {
    margin-bottom: 30px;
}

/* 分组标题样式 - 保留动画 */
.pllinks-group {
    margin-bottom: 40px;
    animation: pllinks-fadeInUp 0.6s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

.pllinks-group:last-child {
    margin-bottom: 0;
}

/* 延迟动画，让分组依次出现 */
.pllinks-group:nth-child(1) { animation-delay: 0.2s; }
.pllinks-group:nth-child(2) { animation-delay: 0.3s; }
.pllinks-group:nth-child(3) { animation-delay: 0.4s; }
.pllinks-group:nth-child(4) { animation-delay: 0.5s; }
.pllinks-group:nth-child(5) { animation-delay: 0.6s; }
.pllinks-group:nth-child(6) { animation-delay: 0.7s; }

.pllinks-group-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--end-text);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--end-border);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pllinks-group-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--end-primary);
}

.pllinks-group-count {
    font-size: 1rem;
    color: var(--end-text-secondary);
    font-weight: normal;
    background: var(--end-border);
    padding: 2px 8px;
    border-radius: 12px;
}

/* 友链网格布局 */
.pllinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
    /* 使网格平均分布 */
    justify-content: space-between;
    align-content: start;
    width: 100%;
}

/* 友链卡片样式 - 保留动画 */
.pllinks-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--end-card-bg);
    border: 1px solid var(--end-a-link-card-border);
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: pllinks-fadeIn 0.5s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 友链卡片依次出现 */
.pllinks-grid .pllinks-card:nth-child(1) { animation-delay: 0.25s; }
.pllinks-grid .pllinks-card:nth-child(2) { animation-delay: 0.3s; }
.pllinks-grid .pllinks-card:nth-child(3) { animation-delay: 0.35s; }
.pllinks-grid .pllinks-card:nth-child(4) { animation-delay: 0.4s; }
.pllinks-grid .pllinks-card:nth-child(5) { animation-delay: 0.45s; }
.pllinks-grid .pllinks-card:nth-child(6) { animation-delay: 0.5s; }
.pllinks-grid .pllinks-card:nth-child(7) { animation-delay: 0.55s; }
.pllinks-grid .pllinks-card:nth-child(8) { animation-delay: 0.6s; }

.pllinks-card:hover {
    background: var(--end-a-link-card-hover);
}

/* Logo容器 */
.pllinks-logo-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pllinks-logo {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.pllinks-card:hover .pllinks-logo {
    /* 根据需要添加悬停效果 */
}

/* Logo备用方案 */
.pllinks-logo-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none; /* 默认隐藏，JavaScript控制显示 */
    align-items: center;
    justify-content: center;
    background: var(--end-primary);
    color: white;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid var(--end-primary);
    transition: all 0.3s ease;
    z-index: 1;
}

.pllinks-card:hover .pllinks-logo-fallback {
    background: #06ae56;
}

/* 友链信息 */
.pllinks-info {
    flex: 1;
    min-width: 0;
}

.pllinks-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--end-text);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.pllinks-desc {
    font-size: 0.9rem;
    color: var(--end-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 外部链接图标 */
.pllinks-external-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--end-text-secondary);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.pllinks-card:hover .pllinks-external-icon {
    opacity: 1;
    transform: translateX(0);
    color: var(--end-primary);
}

/* 空状态样式 */
.pllinks-feed .pllinks-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--end-text-secondary);
    background: var(--end-card-bg);
    border-radius: 12px;
    border: 1px solid var(--end-border);
    margin: 30px 0;
    animation: pllinks-fadeInUp 0.6s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

.pllinks-feed .pllinks-empty-state .pllinks-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.pllinks-feed .pllinks-empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.pllinks-feed .pllinks-empty-state p {
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pllinks-apply-info-top {
        padding: 16px;
        margin-bottom: 25px;
    }
    
    .pllinks-group-title {
        font-size: 1.4rem;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .pllinks-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .pllinks-card {
        padding: 16px;
        gap: 12px;
    }
    
    .pllinks-logo-container {
        width: 50px;
        height: 50px;
    }
    
    .pllinks-logo-fallback {
        font-size: 1.3rem;
    }
    
    .pllinks-name {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .pllinks-desc {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .pllinks-info-icon {
        width: 20px;
        height: 20px;
    }
    
    .pllinks-apply-info-top p {
        font-size: 0.9rem;
    }
    
    .pllinks-empty-state {
        padding: 60px 20px;
    }
    
    .pllinks-empty-state .pllinks-empty-icon {
        font-size: 3rem;
    }
    
    .pllinks-empty-state h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .pllinks-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pllinks-group-title {
        font-size: 1.3rem;
        margin-bottom: 14px;
    }
    
    .pllinks-card {
        padding: 14px;
    }
    
    .pllinks-logo-container {
        width: 45px;
        height: 45px;
    }
    
    .pllinks-logo-fallback {
        font-size: 1.2rem;
    }
    
    .pllinks-external-icon {
        top: 12px;
        right: 12px;
        width: 20px;
        height: 20px;
    }
}

/* 保留的动画关键帧（带命名空间） */
@keyframes pllinks-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pllinks-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}






/* ==================== 全新导航样式 - endnavmmm ==================== */

/* 桌面端导航容器 */
.endnavmmm-desktop {
    display: flex;
    align-items: center;
    gap: 10px; /* 减少间距，给更多空间 */
    height: 100%;
    flex-wrap: wrap; /* 添加换行 */
    justify-content: center; /* 居中对齐 */
    max-width: 100%; /* 限制最大宽度 */
}

/* 桌面端导航项 */
.endnavmmm-desktop-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: fit-content; /* 根据内容自适应宽度 */
}

/* 桌面端一级菜单链接 */
.endnavmmm-desktop-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--endnavmmm-desktop-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 12px; /* 增加内边距，让点击区域更大 */
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    border-radius: 10px; /* 添加默认圆角，hover时直接变色 */
}

/* 桌面端链接悬停效果 */
.endnavmmm-desktop-link:hover {
    color: var(--endnavmmm-desktop-primary);
}

/* 桌面端链接下划线动画 */
.endnavmmm-desktop-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.endnavmmm-desktop-link:hover::after,
.endnavmmm-desktop-link.endnavmmm-active::after {
    transform: scaleX(1);
}

/* 桌面端链接激活状态 */
.endnavmmm-desktop-link.endnavmmm-active {
    color: var(--endnavmmm-desktop-primary);
    font-weight: 600;
}

/* 桌面端子菜单指示点 */
.endnavmmm-submenu-dot {
    display: inline-block;
    margin-left: 4px;
    font-size: 16px;
    color: var(--end-text);
    vertical-align: middle;
    opacity: 0.7;
  
}

/* 悬停时样式 */
.endnavmmm-desktop-item:hover .endnavmmm-submenu-dot {

    color: var(--end-text);
    opacity: 1;
}

/* 活动菜单项的点样式 */
.endnavmmm-desktop-link.endnavmmm-active .endnavmmm-submenu-dot {

    color: var(--end-text);
    opacity: 1;
}

/* 确保链接正确显示点 */
.endnavmmm-desktop-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* 桌面端下拉菜单 */
.endnavmmm-desktop-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px; /* 稍微减小最小宽度 */
    background: rgba(64, 64, 64, 88%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--endnavmmm-desktop-dropdown-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 8px; /* 减少间距 */
}

/* 桌面端下拉菜单箭头 */
.endnavmmm-desktop-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: inherit;
    border-top: 1px solid var(--endnavmmm-desktop-dropdown-border);
    border-left: 1px solid var(--endnavmmm-desktop-dropdown-border);
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

/* 悬停显示桌面端下拉菜单 */
.endnavmmm-desktop-item:hover .endnavmmm-desktop-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 桌面端下拉菜单链接 */
.endnavmmm-dropdown-link {
    display: block;
    padding: 8px 20px; /* 减少内边距 */
    color: var(--endnavmmm-desktop-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    border-radius: 10px;
    margin: 0 8px;
}

/* 下拉链接悬停效果 */
.endnavmmm-dropdown-link:hover,
.endnavmmm-dropdown-link.endnavmmm-active {
    color: var(--endnavmmm-desktop-primary);
    background: var(--endnavmmm-desktop-hover-bg);
}

/* 下拉链接激活状态指示器 */
.endnavmmm-dropdown-link.endnavmmm-active::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--endnavmmm-desktop-primary);
    border-radius: 50%;
}

/* ==================== 移动端导航样式 ==================== */

.endnavmmm-mobile {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0;
}

/* 移动端导航项 */
.endnavmmm-mobile-item {
    width: 100%;
}

/* 移动端一级菜单链接 - 修改为居中 */
.endnavmmm-mobile-link {
    display: block;
    color: var(--endnavmmm-mobile-text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 16px 24px;
    border-bottom: 1px solid var(--endnavmmm-mobile-border);
    transition: all 0.3s ease;
    position: relative;
    text-align: center; /* 添加文本居中 */
}

/* 移动端链接悬停和激活状态 */
.endnavmmm-mobile-link:hover,
.endnavmmm-mobile-link.endnavmmm-active {
    color: var(--endnavmmm-mobile-primary);
    background: var(--endnavmmm-mobile-hover-bg);
}

/* 移动端激活状态指示器 - 修改位置 */
.endnavmmm-mobile-link.endnavmmm-active::before {
    content: '';
    position: absolute;
    left: 50%; /* 改为居中 */
    top: 50%;
    transform: translate(-50%, -50%); /* 居中定位 */
    width: 6px;
    height: 6px;
    background: var(--endnavmmm-mobile-primary);
    border-radius: 50%;
}

/* 移动端二级菜单容器 */
.endnavmmm-mobile-submenu {
    background: var(--endnavmmm-mobile-submenu-bg);
    border-bottom: 1px solid var(--endnavmmm-mobile-border);
    text-align: center; /* 二级菜单也居中 */
}

/* 移动端二级菜单链接 - 修改对齐方式 */
.endnavmmm-submenu-link {
    display: flex;
    align-items: center;
    justify-content: center; /* 居中对齐 */
    color: var(--endnavmmm-mobile-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 14px 24px; /* 移除左边的padding */
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; /* 添加相对定位 */
}

.endnavmmm-submenu-link:last-child {
    border-bottom: none;
}

/* 移动端二级链接悬停和激活状态 */
.endnavmmm-submenu-link:hover,
.endnavmmm-submenu-link.endnavmmm-active {
    color: var(--endnavmmm-mobile-primary);
    background: var(--endnavmmm-mobile-hover-bg);
}

/* 移动端二级菜单指示器 - 修改位置 */
.endnavmmm-submenu-indicator {
    color: var(--endnavmmm-mobile-submenu-indicator);
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 8px; /* 减少右边距 */
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
    left: -2px; /* 微调位置 */
}

.endnavmmm-submenu-link:hover .endnavmmm-submenu-indicator,
.endnavmmm-submenu-link.endnavmmm-active .endnavmmm-submenu-indicator {
    color: var(--endnavmmm-mobile-primary);
    opacity: 1;
}

/* 移动端二级激活状态指示器 - 修改位置 */
.endnavmmm-submenu-link.endnavmmm-active::before {
    content: '';
    position: absolute;
    left: 16px; /* 改为固定值，不要使用百分比 */
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--endnavmmm-mobile-primary);
    border-radius: 50%;
}

/* 如果有多个二级菜单项，居中后的视觉优化 */
.endnavmmm-submenu-link {
    justify-content: right; /* 恢复左对齐 */
    padding-left: 44px; /* 保持左边距用于指示器 */
    padding-right: 24px; /* 右边距 */
}

/* 添加一个容器让内容在视觉上居中 */
.endnavmmm-submenu-link-content {
    display: flex;
    align-items: center;
    justify-content: center; /* 内容居中 */
    width: 100%;
    position: relative;
}

/* ==================== 响应式控制 ==================== */

/* 桌面端显示 */
@media (min-width: 769px) {
    .endnavmmm-desktop {
        display: flex;
    }
    .endnavmmm-mobile {
        display: none;
    }
}

/* 移动端显示 */
@media (max-width: 768px) {
    .endnavmmm-desktop {
        display: none;
    }
    .endnavmmm-mobile {
        display: flex;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .endnavmmm-mobile-link {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .endnavmmm-submenu-link {
        padding: 12px 16px 12px 36px;
        font-size: 0.9rem;
    }
    
    .endnavmmm-mobile-link.endnavmmm-active::before {
        left: 50%; /* 保持居中 */
        transform: translate(-50%, -50%);
    }
    
    .endnavmmm-submenu-link.endnavmmm-active::before {
        left: 12px; /* 小屏幕调整位置 */
    }
    
    .endnavmmm-submenu-indicator {
        margin-right: 8px;
        left: -2px;
    }
}

/* 移动端菜单激活时的整体背景 */
.nav-links.active .endnavmmm-mobile {
    background: var(--endnavmmm-mobile-bg);
    border-radius: 0 0 12px 12px;
}

/* 滚动时桌面端导航背景 */
.top-navbar.scrolled .endnavmmm-desktop-dropdown {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}



/* ==================== 简单圆角hover样式 ==================== */

/* 桌面端hover圆角+底色 */
.endnavmmm-desktop-link:hover,
.endnavmmm-dropdown-link:hover {
    border-radius: 10px;
    background: var(--end-primary);
    color: white; /* 文字颜色改为白色，提高对比度 */
}

/* 桌面端hover时下划线隐藏 */
.endnavmmm-desktop-link:hover::after {
    opacity: 0;
}

/* 桌面端子菜单指示点在hover时的颜色 */
.endnavmmm-desktop-link:hover .endnavmmm-submenu-dot {

    opacity: 0.9;
}

/* 移动端hover圆角+底色 */
.endnavmmm-mobile-link:hover,
.endnavmmm-submenu-link:hover {
    border-radius: 10px;
    background: var(--end-primary);
    color: white;
}

/* 移动端hover时指示器颜色 */
.endnavmmm-submenu-link:hover .endnavmmm-submenu-indicator {
    color: white;
    opacity: 0.9;
}

/* 激活状态圆角+底色 */
.endnavmmm-desktop-link.endnavmmm-active,
.endnavmmm-dropdown-link.endnavmmm-active,
.endnavmmm-mobile-link.endnavmmm-active,
.endnavmmm-submenu-link.endnavmmm-active {
    border-radius: 10px;
    background: var(--end-primary);
    color: white;
}

/* 激活状态下的指示器颜色 */
.endnavmmm-desktop-link.endnavmmm-active .endnavmmm-submenu-dot,
.endnavmmm-dropdown-link.endnavmmm-active::before,
.endnavmmm-mobile-link.endnavmmm-active::before,
.endnavmmm-submenu-link.endnavmmm-active::before {

}

.endnavmmm-submenu-link.endnavmmm-active .endnavmmm-submenu-indicator {
    color: white;
    opacity: 1;
}

/* 桌面端激活状态下划线隐藏 */
.endnavmmm-desktop-link.endnavmmm-active::after {
    opacity: 0;
}

.endingmeta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}