@charset "utf-8";
:root {
    --primary-color: #a3bded;
    --secondary-color: #6991c7;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --container-width: 1140px;
    --content-width: 850px;
    --sidebar-width: 350px;
    --bg-primary: white;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #f9f9f9;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #eee;
    --accent-color: #2575fc;
    --accent-hover: #1a68e8;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --input-bg: white;
    --input-border: #ddd;
}

.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #f0f0f0;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #444444;
    --accent-color: #4d8eff;
    --accent-hover: #3a7eff;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --input-bg: #2d2d2d;
    --input-border: #555555;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 3px; /* 垂直滚动条宽度 */
    height: 3px; /* 水平滚动条高度 */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
    background: var(--secondary-color); /* 半透明白色轨道 */
    border-radius: 5px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    background-color: var(--primary-color); /* 半透明白色滑块 */
    border-radius: 5px;
    border: 2px solid var(--primary-color); /* 透明边框，增加视觉效果 */
    background-clip: content-box; /* 确保背景只填充内容区域 */
}

/* 滚动条滑块悬停状态 */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color); /* 悬停时更明显 */
}

/* 夜间模式下的滚动条样式 */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0); /* 深色轨道 */
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--secondary-color); /* 深色模式下滑块 */
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color); /* 深色模式下悬停状态 */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
    padding-top: 80px;
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 基础 Tooltip 样式 */
.tooltip {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
	padding: 15px 15px 15px 68px;
    border-radius: 4px;
    background-color: #333;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 不同状态的 Tooltip 颜色 */
.tooltip.success {
    background-color: rgba(255, 255, 255, 0.9);
	background-image: url("/images/tooltip/success.png");
	background-repeat: no-repeat;
    color: #333;
}
.tooltip.error {
    background-color: rgba(255, 255, 255, 0.9);
	background-image: url("/images/tooltip/error.png");
	background-repeat: no-repeat;
    color: #333;
}
.tooltip.warning {
    background-color: rgba(255, 255, 255, 0.9);
	background-image: url("/images/tooltip/warning.png");
	background-repeat: no-repeat;
    color: #333;
}

/* 显示 Tooltip */
.tooltip.show {
    opacity: 1;
}

/* 活动公告弹窗样式 */
.event-notice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.event-notice-modal.active {
    display: flex;
}

.event-notice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.event-notice-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.event-notice-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-notice-title {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.event-notice-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.event-notice-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.event-notice-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.event-notice-text {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.event-notice-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.event-notice-confirm {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-notice-confirm:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 禁止背景滚动 */
body.no-scroll {
    overflow: hidden;
}

/* 双卡片容器样式 */
        .blogger-card-container {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            width: 100%;
        }
        
        /* 博主状态卡片样式 */
        .blogger-status-card {
            display: flex;
            flex-direction: column;
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            flex: 1.5;
            background: url('/images/daynight/day-theme.jpg');
			background-repeat: no-repeat;
	        background-position: center center;
            background-size: cover;
        }	
		
		.dark-mode .blogger-status-card {
            background: url('/images/daynight/night-theme.jpg');
			
        }	
        
        .blogger-status-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #6a11cb, #2575fc, #4CAF50, #FF9800);
        }
        
        .blogger-status-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transition: left 0.7s;
        }
        
        .blogger-status-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        }
                
        .blogger-status-card:hover::after {
            left: 100%;
        }
        
        .status-card-header {
            display: flex;
            align-items: center;
            margin-bottom: 25px;
        }
        
        .blogger-avatar-container {
            position: relative;
			margin-left: 10px;
            margin-right: 20px;
        }
        
        .blogger-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
        }
        
        .blogger-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
			box-shadow: 0 6px 15px rgba(106, 17, 203, 0.3);
            background: linear-gradient(135deg, #6a11cb, #2575fc);
            border: 3px solid white;
        }
            
        .status-indicator {
            position: absolute;
            bottom: 8px;
            right: 8px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid white;
            animation: pulse 2s infinite;
        }
		
		.online {
		    background: #4CAF50;
		}
		
		.offline {
		    background: #ACACAC;
		}	
        
        .blogger-info {
            flex: 1;
        }
        
        .blogger-info h3 {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 8px;
            color: #333;
            letter-spacing: 0.5px;
        }
        
        .status-text {
            display: flex;
            align-items: center;
            font-size: 15px;
            font-weight: 500;
            color: #666;
            margin: 0;
        }
		
		.dark-mode .blogger-info h3,
		.dark-mode .status-text {
            color: #fff;
        }
		
		#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展示*/
            }

        @keyframes ran {
                from {
                    backgroud-position: 0 0;
                }
                to {
                    background-position: 300px 0;
                }
        }
        
        .status-stats-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px 10px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.8);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border: 1px solid rgba(0, 0, 0, 0.05);
            flex: 1;
            min-width: 0;
        }
		
		.dark-mode .stat-item {
            background: rgba(51, 51, 51, 0.8);
        }
        
        .stat-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
        }
        
        .talking::before {
            background: linear-gradient(90deg, #FF9800, #FFC107);
        }
        
        .blog::before {
            background: linear-gradient(90deg, #9C27B0, #E91E63);
        }
        
        .comment::before {
            background: linear-gradient(90deg, #2196F3, #21CBF3);
        }
        
        .message::before {
            background: linear-gradient(90deg, #4CAF50, #8BC34A);
        }
        
        .like::before {
            background: linear-gradient(90deg, #E91E63, #F44336);
        }
        
        .stat-item:hover {
            transform: translateY(-5px);
            background: white;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }
		
		.dark-mode .stat-item:hover {
            background: rgba(51, 51, 51, 0.8);
		}
			
        .stat-icon {
            font-size: 20px;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
            flex-shrink: 0;
            transition: all 0.3s ease;
            color: white;
        }
        
        .talking .stat-icon {
            background: linear-gradient(135deg, #FF9800, #FFC107);
            box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
        }
        
        .blog .stat-icon {
            background: linear-gradient(135deg, #9C27B0, #E91E63);
            box-shadow: 0 4px 10px rgba(156, 39, 176, 0.3);
        }
        
        .comment .stat-icon {
            background: linear-gradient(135deg, #2196F3, #21CBF3);
            box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
        }
        
        .message .stat-icon {
            background: linear-gradient(135deg, #4CAF50, #8BC34A);
            box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
        }
        
        .like .stat-icon {
            background: linear-gradient(135deg, #E91E63, #F44336);
            box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
        }
        
        .stat-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        .stat-value {
            font-size: 18px;
            font-weight: 700;
            color: #333;
            line-height: 1.2;
            margin-bottom: 3px;
        }
        
        .stat-label {
            font-size: 13px;
            color: #666;
            font-weight: 500;
        }
		
		.dark-mode .stat-value,
		.dark-mode .stat-label {
            color: #fff;
        }
        
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
            }
            70% {
                box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
            }
        }
        
        /* 图片卡片样式 */
        .image-card {
            flex: 1;
            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;
        }
        
        .image-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        }
        
        .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);
        }
        
        .image-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;

            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #6a11cb, #2575fc, #4CAF50, #FF9800);
            z-index: 1;
        }
        
        /* 移动端适配 */
        @media (max-width: 768px) {
            .blogger-card-container {
                flex-direction: column;
            }
			
			.blogger-status-card {
			    display: none;
			}	
            
            .status-stats-container {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .stat-item {
                flex: 0 0 calc(33.333% - 10px);
                margin-bottom: 10px;
            }
            
            .image-card {
                height: 200px;
            }
        }

/* 标题样式 */
.page-title {
    text-align: center;
    margin: 40px 0;
    color: #fff;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-title:after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4ecdc4, #ff6b6b);
    margin: 15px auto;
    border-radius: 2px;
}

.see {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
    font-size: 0.95rem;
}

.see:hover {
    color: var(--primary-color);
}

.more {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
    font-size: 0.95rem;
}

.more:hover {
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 背景层 */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    -webkit-filter: blur(30px);
    z-index: -2;
}
    
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* 懒加载相关样式 */
.lazy-bg {
  background-color: #f5f5f5; /* 占位背景色 */
  transition: background-image 0.5s ease;
  background-size: cover; /* 确保加载后的图片覆盖整个元素 */
  background-position: center center;
}

.lazy-bg.loaded {
   width: 100%;
   height: 100%;
   background-image: var(--lazy-bg-url) !important;
   background-size: cover; /* 确保加载后的图片覆盖整个元素 */
   background-position: center center;
}

.lazy-bg.error {
  background-image: url('/images/default-bg.jpg'); /* 备用图片 */
}

/* 导航栏基础样式 */
.navbar {
    background: var(--gradient);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    height: 90px;
}

/* 强制所有状态下都有背景色 */
.navbar,
.navbar.navbar-expand-lg,
.navbar.navbar-dark,
.navbar.bg-dark,
.navbar.fixed-top {
    background: var(--gradient) !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-nav .active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 更多下拉菜单样式 */
.dropdown-menu {
    background-color: rgba(0,0,0,0.8);
    border: 1px solid #333;
    min-width: 200px;
}
    
.dropdown-item {
    color: #ccc;
    padding: 8px 15px;
    display: flex;
    align-items: center;
}
    
.dropdown-item i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}
    
.dropdown-item:hover, .dropdown-item.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
    
/* 移动端侧边菜单样式 */
.offcanvas {
    background-color: rgba(0,0,0,0.95);
    color: #fff;
}
    
.offcanvas-header {
    border-bottom: 1px solid #333;
    padding: 15px;
}

.offcanvas-title {
    color: #fff;
    font-weight: bold;
}
    
.offcanvas-body {
    padding: 0;
}
    
.offcanvas-body .navbar-nav {
    width: 100%;
}

.offcanvas-body .nav-link {
    padding: 15px;
    border-bottom: 1px solid #333;
    color: #ccc;
    display: flex;
    align-items: center;
}
    
.offcanvas-body .nav-link span {
    margin-right: 10px;
    width: 24px;
    text-align: center;
}
    
.offcanvas-body .nav-link:hover, .offcanvas-body .nav-link.active {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}
    
.btn-close.text-reset {
    filter: invert(1);
    opacity: 0.8;
}
	
/* 修复滚动条消失问题 */
html.offcanvas-open {
    overflow-y: auto !important;
    padding-right: 0 !important;
}
    
/* 确保body在offcanvas打开时也能滚动 */
body.offcanvas-open {
    overflow: auto !important;
}
    
/* 调整offcanvas位置，避免与滚动条重叠 */
.offcanvas {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1045;
}	

/* 遮罩层样式 */
.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.15s linear;
}
    
.offcanvas-backdrop.show {
    opacity: 1;
}
    
/* 确保offcanvas在最上层 */
.offcanvas {
    z-index: 1045;
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 90px;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient);
    z-index: 1029;
    transition: width 0.1s;
}

/* 搜索框 */
.search-box {
    margin-bottom: 20px;
    background: transparent;
    border: none;
    padding: 0;
}

.search-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 45px 0 15px;
    border: 1px solid #e4e4e4;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #4e6ef2;
    box-shadow: 0 0 5px rgba(78, 110, 242, 0.3);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: #4e6ef2;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #4662d9;
}

.search-icon {
    fill: white;
    vertical-align: middle;
}

/* 夜间模式适配 */
body.dark-mode .search-container {
    background: #2e2e2e;
}

body.dark-mode .search-input {
    background: #2e2e2e;
    border-color: #444;
    color: #f1f1f1;
}

body.dark-mode .search-input:focus {
    border-color: #4e6ef2;
    box-shadow: 0 0 5px rgba(78, 110, 242, 0.5);
}

body.dark-mode .search-btn {
    background: #4e6ef2;
}

/* 头部大图区域 */
.public-header-image {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: -80px;
    z-index: 1;
}

.public-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.public-header-image:hover img {
    opacity: 1;
}

.public-header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.public-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    max-width: 90%;
}

.public-meta {
    display: flex;
    gap: 30px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
}

.public-meta-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.public-meta-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.public-meta-item i {
    margin-right: 10px;
}

/* 正文内容区域 */
.public-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.public-content-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 博主标记样式 */
.comment-admin-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--secondary-color);
    color: white;
	text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* 用户等级标记样式 */
.comment-user-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
    /*background: #ff9900;*/
    color: #333;
	font-weight: bold;
	/*text-shadow: 0 0 5px rgba(0,0,0,0.5);*/
}

/* 新朋驾到标记样式 */
.new-friend-tag {
    background: linear-gradient(45deg, #FF00AA 0%, #FF007F 30%, #DD00FF 100%);
    /* 玫红到紫红的霓虹渐变 */
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
	text-decoration: none;
    animation: pulse 2s infinite;
}

/* 好友回归标记样式 */
.returning-tag {
    background: linear-gradient(45deg, #1ED2FF 0%, #00CCFF 30%, #4D87FF 100%);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
	text-decoration: none;
    animation: pulse 2s infinite;
}

/* 今年互动榜前三标记样式 */
.this-top-engager-tag {
    background: linear-gradient(135deg, #FF3366 0%, #FF93AE 50%, #FF0080 100%);
    color: #CCFF00;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
	text-decoration: none;
    animation: pulse 2s infinite;
}
		
/* 去年互动榜前三标记样式 */
.last-top-engager-tag {
    background: linear-gradient(135deg, #FFB347 0%, #FFCC33 50%, #FFDD00 100%);
    color: #8B4513;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
	text-decoration: none;
    animation: pulse 2s infinite;
}

/* 铁杆博友标记样式 */
.loyal-blogger-tag {
    background: linear-gradient(135deg, #00CC00 0%, #33CC00 50%, #33CC00 100%);
    color: #333;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
	text-decoration: none;
    animation: pulse 2s infinite;
}

/* 出勤大王标记样式 */
.attendance-king-tag {
    background: linear-gradient(135deg, #FF3300 0%, #FF3333 50%, #CC0000 100%);
    color: #FFFF00;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
	text-decoration: none;
    animation: pulse 2s infinite;
}

/* 暗夜行者标记样式 */
.night-walker-tag {
    background: linear-gradient(135deg, #8409FF 0%, #9A35FF 50%, #330066 100%);
    color: #CCFFCC;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
	text-decoration: none;
    animation: pulse 2s infinite;
}

/* 鼠标悬停时渐变方向动态变化 */
.new-friend-tag:hover {
  	background: linear-gradient(225deg, #FF00AA 0%, #DD00FF 100%); 
    transition: all 0.5s ease;
}

.returning-tag:hover {
  	background: linear-gradient(225deg, #1ED2FF 0%, #4D87FF 100%); 
    transition: all 0.5s ease;
}

.this-top-engager-tag:hover {
    background: linear-gradient(45deg, #FF0080 0%, #FF3366 100%);
    transition: all 0.5s ease;
}

.last-top-engager-tag:hover {
    background: linear-gradient(45deg, #FFDD00 0%, #FFB347 100%);
    transition: all 0.5s ease;
}

.loyal-blogger-tag:hover {
    background: linear-gradient(45deg, #33CC00 0%, #00CC00 100%);
    transition: all 0.5s ease;
}

.attendance-king-tag:hover {
    background: linear-gradient(45deg, #CC0000 0%, #FF3300 100%);
    transition: all 0.5s ease;
}

.night-walker-tag:hover {
    background: linear-gradient(45deg, #330066 0%, #8409FF 100%);
    transition: all 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* 页脚 */
.footer {
    background: var(--gradient);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin: 40px 0 0 0;
}

.footer-slogan {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-link:hover {
    color: #f0f0f0;
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-copyright a {
    color: #fff;
	text-decoration: none;
}

.custom-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
  }
  
.custom-tooltip .tooltip-text {
    visibility: hidden;
    white-space: pre-wrap;       /* 更好的换行处理 */
    max-width: 200px;           /* 防止过宽 */
    width: max-content;
    text-align: center;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
  
/* 箭头样式 */
.custom-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
  
.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.custom-tooltip:hover .tooltip-text .small {
    font-size: 12px;
}
  
/* 基础样式 */
.float-controls {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.float-controls.visible {
  opacity: 1;
}

/* 主圆形 */
/* 浮动控制按钮容器 */
.float-controls {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.float-controls.visible {
  opacity: 1;
}

/* 主圆形容器 */
.control-circle {
  width: 60px;
  height: 60px;
  position: relative;
  cursor: pointer;
}

/* 进度容器 */
.progress_container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* 垂直填充部分 */
.progress-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, var(--secondary-color), var(--primary-color));
  /*transition: height 0.3s ease;*/
  animation: wave 5s infinite linear;
}

@keyframes wave {
    0% { background-position: 0 40px; }
	50% { background-position: 0 20px; }
    100% { background-position: 0 0; }
}

/* 颜色切换类 */
.progress-fill.color-blue {
  background: linear-gradient(to top, #55C9C0, #F86F6E);
}
.progress-fill.color-purple {
  background: linear-gradient(to top, #F86F6E, #F43333);
}
.progress-fill.color-orange {
  background: linear-gradient(to top, #FF9800, #FF5722);
}

/* 百分比文本 */
.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
  pointer-events: none;
}

/* 控制按钮样式 */
.control-btn {
  position: absolute;
  width: 25px;
  height: 25px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3;
}

.control-btn i {
  font-size: 16px;
}

/* 按钮悬停效果 */
.control-circle:hover .control-btn {
  opacity: 1;
  transform: scale(1);
}

/* 按钮位置 */
#toTop {
  top: -35px;
  left: -10px;
}

#toBottom {
  top: -5px;
  left: -35px;
}

#toggleDark {
  top: -35px;
  left: 30px;
}

/* 颜色切换按钮 */
.color-toggle {
  top: 35px;
  left: -35px;
}




/* 图片查看器样式 */
.gallery-img {
   max-width: 100%;
   height: auto;
   border-radius: 4px;
   cursor: zoom-in;
   transition: transform 0.3s ease;
}

.gallery-img:hover {
   transform: scale(1.01);
}
		
.image-viewer {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.9);
   display: none;
   justify-content: center;
   align-items: center;
   z-index: 9999;
   opacity: 0;
   transition: opacity 0.3s ease;
}

.image-viewer.active {
   display: flex;
   opacity: 1;
}

.viewer-container {
   position: relative;
   max-width: 90%;
   max-height: 90%;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.viewer-image-container {
   position: relative;
   padding: 10px; /* 内边距 */
   background-color: rgba(255, 255, 255, 0.1);
   border-radius: 12px; /* 圆弧边框 */
   display: flex;
   justify-content: center;
   align-items: center;
   margin-bottom: 15px;
}

.viewer-image {
   max-width: 100%;
   max-height: 70vh;
   object-fit: contain;
   transition: transform 0.3s ease;
   border-radius: 8px; /* 图片本身也添加圆角 */
}

.viewer-caption {
   color: white;
   text-align: center;
   margin-bottom: 15px;
   font-size: 18px;
   max-width: 80%;
   padding: 12px 20px;
   border-radius: 10px;
   /* 毛玻璃效果 */
   background: rgba(255, 255, 255, 0.15);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   z-index: 10;
   position: relative;
}

.viewer-controls {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 15px;
   margin-top: 10px;
   padding: 15px 25px;
   border-radius: 15px;
   /* 毛玻璃效果 */
   background: rgba(255, 255, 255, 0.15);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   z-index: 10;
   position: relative;
}

.viewer-control-btn {
   background: rgba(255, 255, 255, 0.2);
   border: none;
   color: white;
   width: 50px;
   height: 50px;
   border-radius: 50%;
   cursor: pointer;
   display: flex;
   justify-content: center;
   align-items: center;
   transition: all 0.3s ease;
   font-size: 18px;
}

.viewer-control-btn:hover {
   background: rgba(255, 255, 255, 0.4);
   transform: scale(1.1);
}

.viewer-control-btn:active {
   transform: scale(0.95);
}

.viewer-control-btn:disabled {
   opacity: 0.5;
   cursor: not-allowed;
   transform: none;
}

.btn-close-viewer {
   background: rgba(255, 255, 255, 0.2);
   border: none;
   color: white;
   font-size: 20px;
   width: 50px;
   height: 50px;
   border-radius: 50%;
   cursor: pointer;
   display: flex;
   justify-content: center;
   align-items: center;
   transition: all 0.3s ease;
}

.btn-close-viewer:hover {
   background: rgba(255, 255, 255, 0.4);
   transform: scale(1.1);
}

.gallery-counter {
   color: white;
   font-size: 16px;
   padding: 8px 16px;
   border-radius: 20px;
   background: rgba(255, 255, 255, 0.2);
   backdrop-filter: blur(5px);
   -webkit-backdrop-filter: blur(5px);
   min-width: 80px;
   text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
   .viewer-control-btn {
       width: 45px;
       height: 45px;
       font-size: 16px;
   }
   
   .viewer-caption {
       font-size: 16px;
       padding: 10px 15px;
   }
   
   .viewer-image {
       max-height: 60vh;
   }
   
   .viewer-controls {
       padding: 12px 20px;
       gap: 12px;
   }
   
   .gallery-counter {
       font-size: 14px;
       padding: 6px 12px;
       min-width: 70px;
   }
}

@media (max-width: 480px) {
   .blog-content {
       padding: 15px;
   }
   
   .viewer-control-btn {
       width: 40px;
       height: 40px;
       font-size: 14px;
   }
   
   .viewer-caption {
       font-size: 14px;
       padding: 8px 12px;
   }
   
   .viewer-controls {
       gap: 10px;
       padding: 10px 15px;
   }
   
   .viewer-image {
       max-height: 50vh;
   }
   
   .gallery-counter {
       font-size: 12px;
       padding: 5px 10px;
       min-width: 60px;
   }
}

/* 夜间模式 */
body.dark-mode {
    background-color: #222;
    color: #f0f0f0;
}

body.dark-mode .post,
body.dark-mode .sidebar-card,
body.dark-mode .comment-dialog,
body.dark-mode .userinfo-dialog {
    background-color: #333;
    color: #f0f0f0;
}

body.dark-mode .comment-text,
body.dark-mode .post-comments {
	background-color: #262626;
    color: #f0f0f0;
}

body.dark-mode .comment-item {
    border-bottom: 1px solid #333;	
}
body.dark-mode .tag {
    background-color: #444;
    color: #f0f0f0;
}

body.dark-mode .post-actions {
    border-top-color: #555;
}

body.dark-mode .comment-input {
    background-color: #444;
    color: #f0f0f0;
    border-color: #555;
}

body.dark-mode .progress-circle {
    background-color: #333;
}

body.dark-mode .post-title {
    color: #f0f0f0;
}

body.dark-mode .post-title:hover {
    color: var(--primary-color);
}

body.dark-mode .comment-text {
    color: #f0f0f0;
}

body.dark-mode .page-link {
    background-color: #444;
    color: #f0f0f0;
}

body.dark-mode .page-link.active {
    background: var(--gradient);
    color: white;
}

/* 手机端特定样式 */
@media (max-width: 991.98px) {
    .mobile-nav-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
	
    .navbar-collapse {
        position: fixed;
        top: 70px; /* 与导航栏高度一致 */
        left: 0;
        right: 0;
        width: 100%;
        padding: 15px;
        background: var(--gradient);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1029;
        margin: 0;
        border-radius: 0;
    }
    
    .navbar-nav {
	    width: 100%;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        padding: 12px 0 !important;
        margin: 5px 0 !important;
        display: block;
    }
    
    /* 修复滚动条问题 */
    body.navbar-expanded {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* 滚动进度条位置调整 */
    .scroll-progress {
        top: 70px;
    }
}


/* 确保品牌文字颜色 */
.navbar-brand {
    color: white !important;
    font-weight: bold;
    font-size: 1.5rem;
}

/* 导航链接悬停效果 */
.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-center {
   display: flex;
   flex-direction: column;
   align-items: center;
   text-align: center;
}

.mobile-nav-center .nav-item {
   width: 100%;
}

.mobile-nav-center .nav-link {
   justify-content: center;
   padding: 15px 0;
}

.mobile-nav-center .nav-link span {
   margin-right: 10px;
}


/* 响应式调整 */
@media (max-width: 992px) {
    .navbar img {
	    width: 200px;
	}
		
    .sidebar {
        margin-top: 40px;
    }
    
    .control-circle {
        width: 50px;
        height: 50px;
    }
    
    .progress-circle {
        width: 50px;
        height: 50px;
    }
    
    .control-btn {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
	
    .footer-copyright {
        font-size: 0.7rem;
    }

    /* 按钮位置 */
#toTop {
  top: -35px;
  left: -10px;
}

#toBottom {
  top: -5px;
  left: -35px;
}

#toggleDark {
  top: -35px;
  left: 30px;
}

/* 颜色切换按钮 */
.color-toggle {
  top: 35px;
  left: -35px;
}

}

@media (max-width: 768px) {
    .three-images, .multi-images, .nine-images {
        grid-template-columns: 1fr 1fr;
    }
    
    .scroll-progress {
        top: 70px;
    }
    
    body {
        padding-top: 66px;
    }
    
    .daily-quote {
        height: 280px;
    }
    
    .float-controls {
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 576px) {
    .two-images, .three-images, .multi-images, .nine-images {
        grid-template-columns: 1fr;
    }
    
	.two-images img, .three-images img, .multi-images img, .nine-images img {
        width: 100%;
	    height: 200px;
    }
	
    .progress-text {
        font-size: 0.7rem;
    }
    
    .daily-quote {
        height: 250px;
    }
    
    .quote-day {
        font-size: 2.5rem;
    }
    
    .quote-month-year {
        font-size: 1rem;
    }
    
    .quote-english {
        font-size: 1rem;
    }
    
    .quote-chinese {
        font-size: 0.9rem;
    }
}