@charset "utf-8";
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
/* 主内容区 */
.main-content {
    padding: 40px 0;
}

.container {
    max-width: var(--container-width);
}

/* 双卡片容器样式 */
.blogger-card-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* 幻灯图片展示区域样式 */
.image-slider-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-item.active {
    opacity: 1;
    z-index: 1;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.slide-item.active img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    z-index: 2;
}

.slide-caption h3 {
    margin: 0 0 10px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-caption p {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.slide-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.slide-btn:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 幻灯切换按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1rem;
}

.slider-btn:hover {
    background: white;
    color: #333;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-btn.prev-btn {
    left: 15px;
}

.slider-btn.next-btn {
    right: 15px;
}

.slider-btn i {
    font-size: 1.2rem;
}

/* 幻灯片指示器 */
.slider-indicators {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 3;
    padding: 10px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .image-slider-container {
        height: 350px;
        border-radius: 12px;
    }
    
    .slide-caption {
        padding: 20px 15px 15px;
    }
    
    .slide-caption h3 {
        font-size: 1.3rem;
    }
    
    .slide-caption p {
        font-size: 0.85rem;
        max-height: 50px;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .slider-indicators {
        bottom: 70px;
    }
}

@media (max-width: 576px) {
    .image-slider-container {
        height: 300px;
    }
    
    .slide-caption h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .slide-caption p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .slide-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-item {
    animation: fadeIn 0.8s ease;
}

/* 悬停效果 */
.image-slider-container:hover .slider-btn {
    opacity: 1;
}

.image-slider-container:hover img {
    transform: scale(1.1);
}

/* 过渡动画 */
.slide-item.leaving {
    animation: fadeOut 0.8s ease;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 双卡片容器布局调整 */
.blogger-card-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .blogger-card-container {
        flex-direction: row;
    }
    
    .image-slider-container {
        flex: 2;
        margin-bottom: 0;
    }
    
    .image-card-container {
        flex: 1;
        display: grid;
        grid-template-rows: 1fr 1fr;
        gap: 10px;
    }
}

/* 图片卡片容器（上下两行） */
.image-card-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.image-card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6a11cb, #2575fc, #4CAF50, #FF9800);
    z-index: 1;
}

.image-card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* 每个独立的图片卡片 */
.image-card {
    flex: 1;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    min-height: 0; /* 防止内容溢出 */
}

.image-card a {
    display: block;
    width: 100%;
    height: 100%;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .blogger-card-container {
        flex-direction: column;
    }
    
    .status-stats-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        flex: 0 0 calc(33.333% - 10px);
        margin-bottom: 10px;
    }
}

/* 徽章信息滚动CSS */
.badge-scroll-msg-container {
    width: 100%;
	padding: 0;
	margin: 0 0 20px 0;
}

.badge-scroll-msg-header {
    text-align: center;
    margin-bottom: 30px;
}

.badge-scroll-msg-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #5596C1;
}

.badge-scroll-msg-header p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.badge-scroll-msg-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge-scroll-msg-track {
    display: flex;
    width: max-content;
    animation: badge-scroll-msg-animation 20s linear infinite;
    padding: 8px 0;
}

.badge-scroll-msg-track:hover {
    animation-play-state: paused;
}

.badge-scroll-msg-item {
    display: flex;
    white-space: nowrap;
    padding: 10px 20px;
    margin: 0 10px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-scroll-msg-time {
    background: var(--gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
    margin-right: 10px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.badge-scroll-msg-badge {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 700;
    margin: 0 5px;
    font-size: 0.9rem;
}

.badge-scroll-msg-text {
    color: var(--text-primary);
}

@keyframes badge-scroll-msg-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
        
/* 响应式设计 */
@media (max-width: 768px) {
    .badge-scroll-msg-container {
        margin: 0 0 20px 0;
		paadding: 0;
    }
            
    .badge-scroll-msg-header h1 {
        font-size: 1.7rem;
    }
            
    .badge-scroll-msg-item {
        padding: 8px 15px;
        font-size: 0.9rem;
        margin: 0 8px;
    }
            
    .badge-scroll-msg-time,
    .badge-scroll-msg-badge {
        padding: 3px 8px;
        font-size: 0.85rem;
    }
}
        
@media (max-width: 480px) {
    .badge-scroll-msg-header h1 {
        font-size: 1.5rem;
    }
            
    .badge-scroll-msg-item {
        flex-direction: column;
        white-space: normal;
        align-items: flex-start;
        gap: 8px;
    }
            
    .badge-scroll-msg-time {
        margin-right: 0;
    }
}

/* 左侧内容区 - 朋友圈样式 */
.post {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 30px;
    transition: transform 0.3s;
	position: relative;  /* 确保伪元素相对于此容器定位 */
    z-index: 1;         /* 确保内容在伪元素之上 */
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-url); /* 使用 CSS 变量 */
  background-size: cover;  /* 确保图片覆盖整个背景 */
  background-position: center;
  opacity: 0.1;            /* 调整透明度（0-1） */
  z-index: -1;             /* 确保背景在内容下方 */
}

.talking-corner-badge {
  position: absolute; /* 绝对定位 */
  bottom: 0;         /* 贴底部 */
  right: 0;          /* 贴右侧 */
  background: var(--primary-color); /* 背景色（绿色） */
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 0 0 10px 0;
}

.blog-corner-badge {
  position: absolute; /* 绝对定位 */
  bottom: 0;         /* 贴底部 */
  right: 0;          /* 贴右侧 */
  background: var(--secondary-color); /* 背景色（绿色） */
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 0 0 10px 0;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.post-user-info {
    display: flex;
    align-items: center;
}

.post-avatar {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.post-user {
    font-weight: bold;
    margin: 15px 0 5px;
}

.post-time {
    font-size: 0.8rem;
    color: #6c757d;
}

.post-slogan {
    font-size: 0.9rem;
    color: #ccc;
}

.post-text-content {
    margin-bottom: 15px;
    line-height: 1.6;
}

/*说说内容展开/收起功能CSS*/
/* 基础样式 */
.post-content {
    margin-bottom: 15px;
    line-height: 1.6;
    --collapsed-height: 150px; /* 收起时的高度 */
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height;
}

.post-content > div {
    display: block;
    margin: 0;  /* 模拟p标签的默认外边距 */
}

/* 需要展开/收起功能的内容 */
.post-content.need-expand {
    max-height: var(--collapsed-height);
}

.post-content.need-expand.collapsed {
    max-height: var(--collapsed-height);
}

.post-content.need-expand.expanded {
    max-height: none;
}

/* 不需要展开/收起功能的内容（内容较少时） */
.post-content.no-need-expand {
    max-height: none;
    overflow: visible;
}

.post-content.no-need-expand .expand-toggle {
    display: none;
}

/* 展开/收起按钮 - 核心样式 */
.expand-toggle {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 0 8px;
    margin-top: -20px;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.9) 30%,
        rgba(255,255,255,1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1;
}

.dark-mode .expand-toggle {
    background: linear-gradient(to bottom, 
        rgba(51,51,51,0) 0%, 
        rgba(51,51,51,0.9) 30%,
        rgba(51,51,51,1) 100%);
}

/* 展开状态下的按钮样式 */
.post-content.expanded .expand-toggle {
    background: #fff;
    padding: 15px 0 5px;
}

.dark-mode .post-content.expanded .expand-toggle {
    background: #333;
}

/* 按钮文本样式 */
.expand-toggle .expand-text {
    color: #666;
    font-size: 14px;
    transition: color 0.2s ease;
}

/* 按钮图标样式 */
.expand-toggle .expand-icon {
    color: #666;
    font-size: 12px;
    transition: all 0.3s ease;
}

.dark-mode .expand-toggle .expand-text,
.dark-mode .expand-toggle .expand-icon {
    color: #ccc;
}

/* 展开状态的图标旋转 */
.post-content.expanded .expand-icon {
    transform: rotate(180deg);
}

/* 悬停效果 */
.expand-toggle:hover .expand-text,
.expand-toggle:hover .expand-icon {
    color: #333;
}

.dark-mode .expand-toggle:hover .expand-text,
.dark-mode .expand-toggle:hover .expand-icon {
    color: #eee;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .post-content {
        --collapsed-height: 120px; /* 移动端收起高度稍大 */
    }
    
    .expand-toggle {
        padding: 15px 0 10px; /* 增大点击区域 */
    }
}

/* 辅助类 - 确保加载时不会闪烁 */
.post-content.init-collapsed {
    max-height: var(--collapsed-height);
}

.post-content.init-expanded {
    max-height: none;
}

/* 图片布局 */
.post-images {
    margin-top: 15px;
}

.single-image-container {
    text-align: center;
}

.single-image {
	display: grid;
    grid-template-columns: 1fr 1fr;
}

.single-image img {
    width: 100%;
	height: 100%;
	border-radius: 10px;
	object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.single-image img:hover {
    transform: scale(1.02);
}

.two-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.two-images img {
    width: 100%;
	height: 200px;
	border-radius: 10px;
	object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.two-images img:hover {
    transform: scale(1.02);
}

.three-images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.three-images img {
    width: 100%;
	height: 200px;
	border-radius: 10px;
	object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.three-images img:hover {
    transform: scale(1.02);
}

.multi-images {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.multi-images img {
    width: 100%;
	height: 200px;
	border-radius: 10px;
	object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.multi-images img:hover {
    transform: scale(1.02);
}


.nine-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.nine-images img {
    width: 100%;
	height: 200px;
	border-radius: 10px;
	object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.nine-images img:hover {
    transform: scale(1.02);
}


/* 分页控件 */
.post-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 4px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--gradient);
    color: white;
    font-weight: bold;
}

.page-link i {
    margin-left: 5px;
}

/* 地址及标签 */
.post-annotation {
    display: flex;
    justify-content: flex-start; /* 所有子元素靠左排列 */
    margin: 15px 0;
    padding: 10px;
}

.post-location {
    font-size: 12px;
	color: #848484;
	margin-right: 20px;
}

.post-tags {	
    font-size: 12px;
	color: var(--secondary-color);
	font-weight: bold;
}	

.post-tags a {
    color: var(--secondary-color);
}

.post-tags a:hover {
    color: var(--primary-color);
}	

/* 互动按钮 */
.post-actions {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.action-btn {
    display: flex;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.action-btn:hover {
    color: var(--secondary-color);
    background-color: rgba(248, 111, 110, 0.1);
	cursor: pointer;
}

.action-btn i {
    margin-right: 5px;
}

.liked {
    color: var(--secondary-color);
}

/* 点赞头像 */
.likes-avatars {
    display: flex;
	margin-top: 10px;
    margin-bottom: 15px;
    padding-left: 5px;
	flex-direction: row-reverse;
    justify-content: flex-end;
}

.likes-avatars .likebox {
	position: relative;
}

.likes-avatars .likenum {
    width: 15px;
	height: 15px;
	font-size: 10px;
	text-align: center;
	line-height: 15px;
	position: absolute;
	top: -4px;
	left: -14px;
	color: #fff;
	font-weight: bold;
	border-radius: 100px;
	background: var(--primary-color);
	z-index: 101;
}

.likes-avatars .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    margin-right: -3px;
    transition: all 0.3s;
}

.likes-avatars .avatar:nth-child(1) {
  z-index: 15;
}
.likes-avatars .avatar:nth-child(2) {
  z-index: 14;
}
.likes-avatars .avatar:nth-child(3) {
  z-index: 13;
}
.likes-avatars .avatar:nth-child(4) {
  z-index: 12;
}
.likes-avatars .avatar:nth-child(5) {
  z-index: 11;
}
.likes-avatars .avatar:nth-child(6) {
  z-index: 10;
}
.likes-avatars .avatar:nth-child(7) {
  z-index: 9;
}
.likes-avatars .avatar:nth-child(8) {
  z-index: 8;
}
.likes-avatars .avatar:nth-child(9) {
  z-index: 7;
}
.likes-avatars .avatar:nth-child(10) {
  z-index: 6;
}
.likes-avatars .avatar:nth-child(11) {
  z-index: 5;
}
.likes-avatars .avatar:nth-child(12) {
  z-index: 4;
}
.likes-avatars .avatar:nth-child(13) {
  z-index: 3;
}
.likes-avatars .avatar:nth-child(14) {
  z-index: 2;
}
.likes-avatars .avatar:nth-child(15) {
  z-index: 1;
}
.likes-avatars .avatar:nth-child(16) {
  z-index: 0;
}

.likes-avatars .avatar:hover {
    transform: translateY(-3px);
    z-index: 1;
}

/* 评论列表 */
.post-comments {
    margin-top: 10px;
    padding: 15px 15px 0px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.read-more {
    cursor: pointer;
}	

.comment-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
    cursor: pointer;
}

.comment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-item:hover {
    transform: translateX(5px);
}

.comment-index-content {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 3px;
}

.comment-index-content img {
    width: 20px; 
	height: auto; 
	vertical-align: bottom;
	margin: 0 2px;
}

.comment-user {
    font-weight: bold;
    color: var(--primary-color);
}

/* 用户评论精选标记样式 */
.comment-selected {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
    background: #003399;
    color: #fff;
	font-weight: bold;
	/*text-shadow: 0 0 5px rgba(0,0,0,0.5);*/
}
	
.comment-time {
    font-size: 0.7rem;
    color: #6c757d;
}

/*等级背景渐变*/
.level0 {
    color: #fff;
	text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.level1 {
    background: linear-gradient(90deg, #E7E7E7, #D9D9D9);
}

.level2 {
    background: linear-gradient(90deg, #E3F2FD, #BBDEFB);
}

.level3 {
    background: linear-gradient(90deg, #C8E6C9, #A5D6A7);
}

.level4 {
    background: linear-gradient(90deg, #FFF495, #F9E000);
}

.level5 {
    background: linear-gradient(90deg, #B3E5FC, #81D4FA);
}

.level6 {
    background: linear-gradient(90deg, #DCE775, #CDDC39);
}

.level7 {
    background: linear-gradient(90deg, #FFCC80, #FFB74D);
}

.level8 {
    background: linear-gradient(90deg, #F48FB1, #F06292);
}

.level9 {
    background: linear-gradient(90deg, #BCAAA4, #A1887F);
}

.level10 {
    background: linear-gradient(90deg, #81C784, #66BB6A);
}

.level11 {
    background: linear-gradient(90deg, #4DB6AC, #26A69A);
}

.level12 {
    background: linear-gradient(90deg, #7986CB, #5C6BC0);
}

.level13 {
    background: linear-gradient(90deg, #9575CD, #7E57C2);
}

.level14 {
    background: linear-gradient(90deg, #FF8A65, #FF7043);
}

.level15 {
    background: linear-gradient(90deg, #4DD0E1, #26C6DA);
}

.level16 {
    background: linear-gradient(90deg, #A5D6A7, #81C784);
}

.level17 {
    background: linear-gradient(90deg, #FFD54F, #FFCA28);
}

.level18 {
    background: linear-gradient(90deg, #4FC3F7, #29B6F6);
}

.level19 {
    background: linear-gradient(90deg, #BA68C8, #AB47BC);
}

.level20 {
    background: linear-gradient(90deg, #FF5252, #FF1744);
}


/* 右侧边栏 */
.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 8px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    height: 2px;
    background: var(--gradient);
}

/* 每日壹言 */
.daily-quote {
    padding: 0;
    color: white;
    position: relative;
    height: 520px;
    display: flex;
    flex-direction: column;
}

.quote-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
    z-index: 0;
}

.quote-content {
    position: relative;
    z-index: 1;
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.quote-date {
	text-align: right;
    margin-bottom: 20px;
}

.quote-day {
    font-size: 3.5rem;
    line-height: 1;
    display: block;
	font-weight: bold;
}

.quote-month-year {
    font-size: 1rem;
    opacity: 0.9;
}

.quote-text {
    margin-top: auto;
}

.quote-english {
    font-size: 1.5rem;
    font-weight: bold;
	line-height: 1.4;
    margin-bottom: 10px;
}

.quote-chinese {
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.quote-tag {
    font-size: 0.7rem;
    opacity: 0.8;
}

.post-title {
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
    font-size: 0.95rem;
}

.post-title:hover {
    color: var(--primary-color);
}

/* 右侧随机日志样式 */
.popular-posts-list {
    margin-top: 15px;
}

.popular-post-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .popular-post-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
        
.popular-post-thumb {
    width: 80px;
    height: 50px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-post-item:hover .popular-post-thumb img {
    transform: scale(1.1);
}

.popular-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-post-title {
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
    font-size: 0.95rem;
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px; /* 或指定具体宽度 */
    display: inline-block;
}

.popular-post-title:hover {
    color: var(--primary-color);
}

.popular-post-meta {
    display: flex;
    font-size: 0.8rem;
    color: #6c757d;
}

.popular-post-meta span {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.popular-post-meta i {
    margin-right: 3px;
    font-size: 0.7rem;
}

.popular-post-date {
    margin-left: auto;  
    font-size: 0.7rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

/* 热门日志排名样式 */
.top-posts-list {
    counter-reset: top-counter;
}

.top-post-item {
    position: relative;
    padding-left: 35px;
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .top-post-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.top-post-item::before {
    counter-increment: top-counter;
    content: counter(top-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 排名颜色 */
.top-post-item:nth-child(1)::before {
    background: linear-gradient(135deg, #ff7676, #f54ea2);
}
.top-post-item:nth-child(2)::before {
    background: linear-gradient(135deg, #ff9068, #fd746c);
}
.top-post-item:nth-child(3)::before {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}
.top-post-item:nth-child(4)::before {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
}
.top-post-item:nth-child(5)::before {
    background: linear-gradient(135deg, #58bdff, #36cdff);
}
.top-post-item:nth-child(6)::before {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* 确保缩略图和内容布局 */
.popular-post-item.top-post-item .popular-post-thumb {
    margin-left: 10px; /* 为排名数字留出空间 */
}

.popular-post-item.top-post-item .popular-post-content {
    flex: 1;
}


/* 夜间模式 */
body.dark-mode .popular-post-title {
    color: #f0f0f0;
}

body.dark-mode .popular-post-title:hover {
    color: var(--primary-color);
}

/* 热门标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
	overflow: hidden;
}

.tag:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
}

/* 博客组织 */
.orgs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.org {
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
	overflow: hidden;
}

.org:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
}

/* 最新评论 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comments-list .comment-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
}

.comments-list .comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar-container {
    margin-right: 10px;
}

.comment-avatar-sidebar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content-sidebar {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-meta .comment-user {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.9rem;
}

.comment-meta .comment-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.comment-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
    margin: 0;
}

.comment-text img {
    width: 20px;
    height: auto; 
	vertical-align: bottom;
	margin: 0 2px;
}

/* 欢迎提示框样式 */
/* 用户信息卡片样式 */
.uc-user-card {
    background-color: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--shadow-color);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.uc-user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

/* 游客状态卡片 */
.uc-user-card.visitor {
    border: 2px dashed var(--border-color);
}

.uc-user-card.visitor .uc-stats-container,
.uc-user-card.visitor .uc-badges-section {
    display: none; /* 隐藏数据统计和徽章 */
}

.uc-user-card.visitor .uc-user-level {
    background: linear-gradient(90deg, #999, #777);
    box-shadow: 0 4px 10px rgba(153, 153, 153, 0.3);
}

.uc-user-card.visitor .uc-user-greeting {
    color: var(--text-muted);
}

/* 弧形顶部背景图片 */
.uc-card-header {
    height: 160px;
    background-size: cover;
    background-position: center 85%;
    position: relative;
    border-radius: 0 0 40% 40% / 0 0 25% 25%;
    overflow: hidden;
}

/* 游客卡片头部背景 */
.uc-user-card.visitor .uc-card-header {
    filter: grayscale(30%);
    opacity: 0.9;
}

/* 弧形遮罩效果 */
.uc-card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 40% 40% / 0 0 25% 25%;
}

/* 滚动信息条 */
.uc-scroll-info {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    overflow: hidden;
    padding: 0 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 9;
}

/* 游客滚动信息条 */
.uc-user-card.visitor .uc-scroll-info {
    background-color: rgba(255, 255, 255, 0.88);
}

.uc-scroll-info-container {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.uc-scroll-content {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: uc-scroll-up 18s linear infinite;
}

/* 悬停时暂停滚动 */
.uc-scroll-info-container:hover .uc-scroll-content {
    animation-play-state: paused;
}

.uc-scroll-item {
    height: 36px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uc-scroll-item i {
    margin-right: 6px;
    color: var(--primary-color);
    font-size: 0.8rem;
    min-width: 14px;
}

.uc-user-card.visitor .uc-scroll-item i {
    color: #777;
}

.uc-scroll-item span {
    font-weight: bold;
	color: var(--primary-color);
	margin-right: 2px;
}	

@keyframes uc-scroll-up {
    0%, 12% {
        transform: translateY(0);
    }
    24%, 36% {
        transform: translateY(-36px);
    }
    48%, 60% {
        transform: translateY(-72px);
    }
    72%, 84% {
        transform: translateY(-108px);
    }
    96%, 100% {
        transform: translateY(-144px);
    }
}

#shiny {
    font-size:15px;color: #8c888b;
    background: -webkit-linear-gradient(45deg, #f015d4, #f7a37b, #146ab9, #aa91f4, #fc4862);
        -moz-linear-gradient(45deg, #f015d4, #f7a37b, #146ab9, #aa91f4, #fc4862);
        -ms-linear-gradient(45deg, #f015d4, #f7a37b, #146ab9, #aa91f4, #fc4862);
    color: transparent; /*设置字体颜色透明*/
    -webkit-background-clip: text;/*背景裁剪为文本形式*/
    animation: ran 15s linear infinite;/*动态15s展示*/
}

/* 用户头像 */
.uc-user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid var(--bg-primary);
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    box-shadow: 0 6px 18px var(--shadow-color);
    z-index: 5;
    transition: all 0.3s ease;
}

.uc-user-avatar:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 9px 24px rgba(0,0,0,0.2);
}

/* 游客头像 */
.uc-user-card.visitor .uc-user-avatar {
    border-color: #f8f8f8;
    filter: brightness(0.95);
}

/* 用户信息区域 */
.uc-user-info {
    padding: 60px 20px 60px;
    text-align: center;
    background-color: var(--bg-primary);
}

/* 昵称链接样式 */
.uc-user-name-link {
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
    transition: color 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-user-name-link:hover {
    color: var(--primary-color);
}

/* 游客昵称样式 */
.uc-user-card.visitor .uc-user-name-link {
    color: var(--text-muted);
}

.uc-user-card.visitor .uc-user-name-link:hover {
    color: #777;
}

/* 昵称提示框 */
.uc-name-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    width: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    white-space: nowrap;
}

.uc-name-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(43, 88, 118, 0.95) transparent transparent transparent;
}

.uc-user-name-link:hover .uc-name-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* 等级在昵称下方 */
.uc-user-level {
    display: block;
    color: #333;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(85, 150, 193, 0.25);
    width: fit-content;
    margin: 15px auto;
}

.uc-user-greeting {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.4;
}

/* 数据统计 - 始终在一行不换行 */
.uc-stats-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 15px;
    background-color: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    flex-wrap: nowrap;
}

.uc-stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.uc-stat-item {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    transition: transform 0.3s ease;
}

.uc-stat-item:hover {
    transform: translateY(-3px);
}

.uc-stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    white-space: nowrap;
}

.uc-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* 徽章区域 - 5个徽章始终在一行 */
.uc-badges-section {
    padding: 0 20px 20px;
}

.uc-section-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    position: relative;
}

.uc-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient);
}

.uc-badges-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

.uc-badge-item {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    min-width: 0;
}

.uc-badge-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

/* 徽章提示信息 */
.uc-badge-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    text-align: left;
    pointer-events: none;
    line-height: 1.4;
}

.uc-badge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(43, 88, 118, 0.95) transparent transparent transparent;
}

.uc-badge-item:hover .uc-badge-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.uc-badge-item:hover .uc-badge-img {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(85, 150, 193, 0.25);
}

.uc-badge-name {
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
    font-size: 0.9rem;
}

.uc-badge-detail {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* 角标 */
.uc-corner-label {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 游客角标 */
.uc-user-card.visitor .uc-corner-label {
    background-color: #888;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .uc-card-header {
        height: 140px;
    }
    
    .uc-user-avatar {
        top: 95px;
        width: 85px;
        height: 85px;
    }
    
    .uc-user-info {
        padding: 60px 15px 20px;
    }
    
    .uc-scroll-info {
        left: 12px;
        right: 12px;
        height: 34px;
        padding: 0 10px;
    }
    
    .uc-scroll-item {
        height: 34px;
        font-size: 0.82rem;
    }
    
    @keyframes uc-scroll-up {
        0%, 12% { transform: translateY(0); }
        24%, 36% { transform: translateY(-34px); }
        48%, 60% { transform: translateY(-68px); }
        72%, 84% { transform: translateY(-102px); }
        96%, 100% { transform: translateY(-136px); }
    }
    
    .uc-user-name-link {
        font-size: 1.4rem;
    }
    
    .uc-user-level {
        font-size: 0.85rem;
        padding: 3px 12px;
    }
    
    .uc-user-greeting {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .uc-stats-container {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .uc-stat-number {
        font-size: 1.2rem;
    }
    
    .uc-stat-label {
        font-size: 0.75rem;
    }
    
    .uc-section-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .uc-badge-img {
        width: 45px;
        height: 45px;
    }
    
    .uc-badge-tooltip {
        width: 150px;
        font-size: 0.78rem;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .uc-card-header {
        height: 130px;
        border-radius: 0 0 35% 35% / 0 0 20% 20%;
    }
    
    .uc-user-avatar {
        top: 85px;
        width: 75px;
        height: 75px;
        border-width: 4px;
    }
    
    .uc-user-info {
        padding: 55px 12px 15px;
    }
    
    .uc-scroll-info {
        height: 32px;
        padding: 0 8px;
        border-radius: 18px;
    }
    
    .uc-scroll-item {
        height: 32px;
        font-size: 0.78rem;
    }
    
    @keyframes uc-scroll-up {
        0%, 12% { transform: translateY(0); }
        24%, 36% { transform: translateY(-32px); }
        48%, 60% { transform: translateY(-64px); }
        72%, 84% { transform: translateY(-96px); }
        96%, 100% { transform: translateY(-128px); }
    }
    
    .uc-user-name-link {
        font-size: 1.2rem;
    }
    
    .uc-user-level {
        font-size: 0.8rem;
        padding: 2px 10px;
    }
    
    .uc-user-greeting {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .uc-stats-container {
        padding: 12px 8px;
        margin-bottom: 15px;
    }
    
    .uc-stat-number {
        font-size: 1.1rem;
    }
    
    .uc-stat-label {
        font-size: 0.7rem;
    }
    
    .uc-badges-section {
        padding: 0 12px 15px;
    }
    
    .uc-badge-img {
        width: 40px;
        height: 40px;
    }
    
    .uc-badge-tooltip {
        width: 140px;
        font-size: 0.75rem;
    }
    
    .uc-name-tooltip {
        width: 110px;
        font-size: 0.75rem;
    }
}