/* 自定义字体声明 */
@font-face {
    font-family: 'CustomFont';
    src: url('../Font/ziti1.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 优化字体加载体验 */
}

/* 全局应用自定义字体 */
html, body, 
button, 
input, 
select, 
textarea, 
h1, h2, h3, h4, h5, h6,
.article-title, 
.post-title, 
.widget-title, 
.comment-content,
.nav-item a,
.mobile-nav-item a {
    font-family: 'CustomFont', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 网站主体背景色 */
body {
    background-color: #f7f8fa;
}

/* 全局文字颜色修改 */
:root {
    --text-primary: #34495e;
    --text-secondary: #34495e;
    --text-color: #34495e;
    --text-muted: rgba(52, 73, 94, 0.7);
}

body, 
.article-title a, 
.recent-post-title,
.widget-title, 
.category-item a,
.archive-item a,
.comment-author,
.footer-logo-text {
    color: #34495e;
}

/* 主体内容区域 */
.main-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* 侧边栏最新文章样式 */
.recent-post-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 侧边栏样式增强 - 基本卡片样式 */
.sidebar .widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    margin-bottom: 25px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

/* 添加卡片悬停动画效果 */
.sidebar .widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #6366f1;
}

/* 标题样式简化 */
.sidebar .widget-title {
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0 0 1rem 0;
    padding: 0;
    color: #34495e;
    position: relative;
    border-bottom: none;
    background: transparent;
    text-align: left;
    display: block;
}

/* 移除标题前的蓝色条 */
.sidebar .widget-title::before {
    display: none;
}

.sidebar .widget-content {
    padding: 0;
}

/* 搜索框优化 */
.widget-search .widget-content {
    position: relative;
    padding: 0 !important;
}

.widget-search .search-input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    font-size: 14px;
    border-radius: 4px;
    background-color: #eef1f6;
    border: 1px solid #eaecf0;
    color: #555;
    transition: none;
}

.widget-search .search-input::placeholder {
    color: #8e9aac;
    font-size: 14px;
}

.widget-search .search-input:focus {
    background-color: #fff;
    outline: none;
    box-shadow: none;
    border-color: #eaecf0;
}

.widget-search .widget-content::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid #8e9aac;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.widget-search .widget-content::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    width: 2px;
    height: 7px;
    background-color: #8e9aac;
    transform: translateY(-30%) rotate(45deg);
    z-index: 1;
    pointer-events: none;
}

.widget-search .search-submit {
    display: none;
}

/* 用户头像样式 */
.widget-user {
    border: none;
}

.widget-user-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.widget-user-avatar {
    margin-right: 10px;
}

.widget-user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none !important;
    object-fit: cover;
    box-shadow: none !important;
    outline: none !important;
}

/* 移除其他可能的头像边框 */
img[alt="用户头像"] {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.site-avatar img,
.avatar img {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 评论区头像样式 */
.comment-avatar img {
    border-radius: 50%;
    box-shadow: none !important;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: none !important;
    outline: none !important;
}

.widget-user-info {
    display: flex;
    flex-direction: column;
}

.widget-user-name {
    font-size: 16px;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 5px;
}

.widget-user-level {
    font-size: 14px;
    color: #f59e0b;
}

/* 用户统计信息 */
.widget-user-stats {
    display: flex;
    justify-content: space-between;
    background-color: #eef1f6;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
}

/* 用户操作按钮 */
.widget-user-actions {
    display: flex;
    justify-content: center;
    border: none;
}

.user-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f0f2ff;
    color: #6366f1;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    border: none;
}

.user-action-btn:hover {
    background-color: #6366f1;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
}

.user-stat-item {
    text-align: center;
    flex: 1;
    position: relative;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 500;
    color: #6366f1;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 添加图标 */
.stat-value::before {
    content: "";
    margin-right: 5px;
    font-size: 10px;
    color: #6366f1;
    width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 积分图标 */
.user-stat-item:nth-child(1) .stat-value::before {
    content: "♦";
}

/* 文章图标 */
.user-stat-item:nth-child(2) .stat-value::before {
    content: "✎";
}

/* 评论图标 */
.user-stat-item:nth-child(3) .stat-value::before {
    content: "✉";
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* 评论项目样式 */
.recent-comment-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 0 0 15px 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

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

.recent-comment-item:hover {
    opacity: 0.8;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    overflow: hidden;
}

.comment-author {
    font-weight: 500;
    margin-bottom: 5px;
    color: #34495e;
    font-size: 14px;
}

.comment-text a {
    color: #8e9aac;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.comment-text a:hover {
    color: #34495e;
}

.comment-time {
    position: absolute;
    right: 0;
    top: 0;
    color: #8e9aac;
    font-size: 12px;
}

/* 标签云样式 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: #eef1f6;
    border-radius: 20px;
    color: #8e9aac;
    text-decoration: none;
    font-size: 13px !important;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.tag:hover {
    background: #6366f1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(99, 102, 241, 0.2);
}

/* 归档项目样式 */
.archive-item {
    margin-bottom: 8px;
    list-style: none;
}

.archive-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: transparent;
    color: #8e9aac;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.archive-item a:hover {
    background: transparent;
    color: #34495e;
}

.archive-count {
    background: #eef1f6;
    color: #8e9aac;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.archive-item a:hover .archive-count {
    background: #6366f1;
    color: #fff;
}

/* 分类项目样式 */
.category-item {
    margin-bottom: 8px;
    list-style: none;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: transparent;
    color: #8e9aac;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.category-item a:hover {
    background: transparent;
    color: #34495e;
}

.category-count {
    background: #eef1f6;
    color: #8e9aac;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-item a:hover .category-count {
    background: #6366f1;
    color: #fff;
}

/* 友情链接样式 */
.friend-link-item {
    margin-bottom: 8px;
    list-style: none;
}

.friend-link-item a {
    display: block;
    padding: 10px;
    border-radius: 8px;
    background: transparent;
    color: #8e9aac;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.friend-link-item a:hover {
    background: transparent;
    color: #34495e;
}

/* 简化文章样式 - 移除框框 */
.recent-post-item {
    margin: 0 0 8px 0;
    padding: 0;
    background: transparent;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0;
    position: relative;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-item:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
    background-color: transparent;
    z-index: 1;
}

.recent-post-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    padding: 8px;
    position: relative;
    padding-left: 28px; /* 为数字标签腾出空间 */
}

/* 添加彩色数字标签 */
.recent-post-link::before {
    content: attr(data-index);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 不同颜色的数字标签 */
.recent-post-item:nth-child(1) .recent-post-link::before {
    background: #ff6b6b;
    content: "1";
}

.recent-post-item:nth-child(2) .recent-post-link::before {
    background: #ff9f43;
    content: "2";
}

.recent-post-item:nth-child(3) .recent-post-link::before {
    background: #10ac84;
    content: "3";
}

.recent-post-item:nth-child(4) .recent-post-link::before {
    background: #54a0ff;
    content: "4";
}

.recent-post-item:nth-child(5) .recent-post-link::before {
    background: #5f27cd;
    content: "5";
}

.recent-post-title {
    font-weight: 400;
    color: #8e9aac;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.post-date {
    color: #8e9aac;
    font-size: 12px;
    text-align: right;
    margin-left: 10px;
}

/* 底部信息样式 */
.widget-info {
    display: none;
}

.widget-info p {
    display: none;
}

.widget-info a {
    display: none;
}

.widget-info a:hover {
    display: none;
}

.recent-post-item:hover .recent-post-title {
    color: #34495e;
}

/* 导航栏样式更新 - 参考提供的图片风格 */
.header {
    position: fixed;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
    background-color: transparent;
}

.header-container {
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    height: 65px;
    border-radius: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 20px;
    font-weight: 600;
    margin-right: 10px;
}

.logo img {
    max-height: 35px;
}

.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-item {
    list-style: none;
    margin: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-item a {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-size: 15px;
    padding: 0 10px;
    position: relative;
    text-decoration: none;
    font-weight: 500;
    height: 100%;
    transition: color 0.3s;
    flex-direction: row;
    gap: 4px;
}

.nav-item a i {
    font-size: 12px;
    color: #34495e;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-item a:hover {
    color: rgba(52, 73, 94, 1);
}

.nav-item a:hover i {
    opacity: 1;
}

.nav-item.active a {
    color: rgba(52, 73, 94, 1);
    font-weight: 600;
}

.nav-item.active a i {
    opacity: 1;
}

/* 移除之前的导航项下划线和其他装饰 */
.nav-item a::after,
.nav-item a:hover::after,
.nav-item.active a::after,
.nav-item:first-child a:before {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
}

/* 导航栏按钮样式重设计 - 精致小巧版 */
.header-right .search-btn,
.header-right .search-icon-btn,
.header-right .theme-toggle,
.header-right .settings-btn,
.mobile-menu-toggle {
    background: rgba(52, 73, 94, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    margin-left: 6px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.header-right .search-btn:hover,
.header-right .search-icon-btn:hover,
.header-right .theme-toggle:hover,
.header-right .settings-btn:hover,
.mobile-menu-toggle:hover {
    background-color: rgba(52, 73, 94, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 用户头像更新 */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid rgba(52, 73, 94, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-avatar:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* 修改登录按钮样式 */
.login-btns {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.login-btn, .register-btn {
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s;
    height: 32px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.login-btn {
    background-color: rgba(52, 73, 94, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(52, 73, 94, 0.08);
}

.login-btn:hover {
    background-color: rgba(52, 73, 94, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
    color: #34495e;
    font-weight: 500;
}

.register-btn {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.8), rgba(52, 73, 94, 0.9));
    color: #fff;
    margin-left: 6px;
    border: none;
}

.register-btn:hover {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.95), rgba(52, 73, 94, 1));
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(52, 73, 94, 0.2);
    color: #ffffff;
    font-weight: 500;
}

/* 添加图标到按钮 */
.login-btn i, .register-btn i {
    margin-right: 4px;
    font-size: 12px;
}

/* 签到按钮样式优化 */
.sign-in-btn {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.8), rgba(52, 73, 94, 0.9));
    color: white;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
    transition: all 0.25s;
    height: 32px;
    box-shadow: 0 2px 5px rgba(52, 73, 94, 0.15);
}

.sign-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 73, 94, 0.2);
}

.sign-in-btn i {
    margin-right: 4px;
    font-size: 12px;
}

/* 调整主内容区域，避免被导航栏遮挡 */
.main {
    margin-top: 125px;
    background-color: transparent;
}

/* 用户头像和下拉菜单 */
.user-menu {
    position: relative;
    margin-left: 8px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.user-avatar:hover {
    opacity: 0.9;
    border-color: var(--primary-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute; /* 改为绝对定位，相对于父元素定位 */
    top: 45px; /* 调整距离顶部位置 */
    right: 0; /* 调整距离右侧位置 */
    left: auto;
    margin-left: 0;
    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f8f9fa;
}

.user-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.user-meta {
    display: flex;
    gap: 10px;
}

.user-level, .user-points {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
}

.user-level i, .user-points i {
    margin-right: 3px;
    font-size: 12px;
}

.user-level i {
    color: #f59e0b;
}

.user-points i {
    color: var(--primary-color);
}

.user-menu-list {
    padding: 10px 0;
    margin: 0;
    list-style: none;
}

.user-menu-list li {
    margin: 0;
    padding: 0;
}

.user-menu-list li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.user-menu-list li a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    color: var(--primary-color);
}

.user-menu-list li a:hover {
    background-color: #f0f2ff;
}

.divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
    margin: 5px 0;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.25s ease;
    background-color: rgba(52, 73, 94, 0.05);
}

.mobile-menu-toggle:hover {
    background-color: rgba(52, 73, 94, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 移动端导航项样式优化 */
.mobile-nav-item {
    margin-bottom: 3px;
}

.mobile-nav-item a {
    display: flex !important;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.25s ease;
    gap: 6px;
}

.mobile-nav-item a i {
    width: auto;
    text-align: center;
    font-size: 12px;
    color: #34495e;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.mobile-nav-item a:hover {
    color: rgba(52, 73, 94, 1);
    background-color: rgba(52, 73, 94, 0.05);
}

.mobile-nav-item a:hover i {
    opacity: 1;
}

.mobile-nav-item.active a {
    background: rgba(52, 73, 94, 0.08);
    color: rgba(52, 73, 94, 1);
    font-weight: 600;
}

.mobile-nav-item.active a i {
    opacity: 1;
}

/* 响应式导航栏调整 */
@media (max-width: 992px) {
    .header {
        top: 25px;
    }
    
    .header-container {
        padding: 0 20px;
        height: 55px;
    }
    
    .main {
        margin-top: 100px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        background-color: #fff;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .header {
        top: 15px;
    }
    
    .header-container {
        height: 50px;
        padding: 0 15px;
    }
    
    .nav-item a {
        font-size: 15px;
        padding: 0 10px;
    }
    
    .header-right .search-btn,
    .header-right .theme-toggle,
    .header-right .settings-btn,
    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
        font-size: 16px;
        margin-left: 5px;
    }
    
    .user-avatar {
        width: 34px;
        height: 34px;
    }
    
    .main {
        margin-top: 85px;
    }
}

/* 移除原底部设计 */
.footer {
    display: none;
}

/* 侧边栏底部设计 */
.sidebar-footer {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    margin-top: 25px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    font-size: 13px;
    color: #8e9aac;
}

.sidebar-footer:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #6366f1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
}

.footer-logo-text {
    font-size: 16px;
    font-weight: 500;
    color: #8e9aac;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #8e9aac;
}

.footer-info-item i {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #6366f1;
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
    justify-content: center;
}

.footer-link {
    font-size: 12px;
    color: #8e9aac;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.footer-link:hover {
    color: #34495e;
}

.footer-link:not(:last-child):after {
    content: "•";
    color: #ccc;
    margin-left: 10px;
}

.copyright-text {
    font-size: 12px;
    color: #8e9aac;
    margin-top: 12px;
    text-align: center;
}

/* 删除原底部样式 */
.footer-container,
.copyright,
.footer-widgets,
.footer-widget,
.social-links {
    display: none;
}

.beian-info {
    margin-top: 8px;
    font-size: 12px;
}

.beian-info a {
    color: #8e9aac;
    transition: color 0.2s;
}

.beian-info a:hover {
    color: #34495e;
}

.powered-by {
    margin-top: 6px;
    font-size: 11px;
    color: #8e9aac;
}

.powered-by a {
    color: #8e9aac;
    transition: color 0.2s;
}

.powered-by a:hover {
    color: #34495e;
    text-decoration: none;
}

/* 回到顶部按钮 - 精致小巧版 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    color: #6366f1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

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

.back-to-top:hover {
    background-color: #6366f1;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* 移动端登录按钮样式 */
.mobile-login-btns {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-top: 1px solid rgba(52, 73, 94, 0.1);
    gap: 10px;
}

.mobile-login-btn, .mobile-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.25s ease;
    font-size: 15px;
}

.mobile-login-btn {
    background-color: rgba(52, 73, 94, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(52, 73, 94, 0.08);
}

.mobile-login-btn:hover {
    background-color: rgba(52, 73, 94, 0.15);
    transform: translateY(-2px);
    color: #34495e;
    font-weight: 500;
}

.mobile-register-btn {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.8), rgba(52, 73, 94, 0.9));
    color: white;
    border: none;
}

.mobile-register-btn:hover {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.95), rgba(52, 73, 94, 1));
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(52, 73, 94, 0.2);
    color: #ffffff;
    font-weight: 500;
}

.mobile-login-btn i, .mobile-register-btn i {
    margin-right: 8px;
    font-size: 14px;
}

/* 微信二维码悬停显示样式 */
.wechat-link {
    position: relative;
    cursor: pointer;
}

.wechat-qrcode {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid #eee;
}

.wechat-link:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.wechat-qrcode img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* 添加三角形指示 */
.wechat-qrcode:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

/* 文章页面微信分享按钮悬停样式 */
.share-btn.wechat {
    position: relative;
    cursor: pointer;
}

/* 文章页面的微信二维码 */
#wechat-qrcode {
    position: absolute;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid #eee;
}

.share-btn.wechat:hover #wechat-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

#wechat-qrcode:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

#wechat-qrcode .qrcode-content {
    text-align: center;
}

#wechat-qrcode #qrcode {
    margin: 0 auto;
}

#wechat-qrcode p {
    margin: 8px 0 0;
    color: #666;
    font-size: 12px;
}

/* 二维码固定显示区域样式 - 隐藏固定显示 */
.qrcode-section {
    display: none;
}

/* 删除下方的覆盖规则，恢复悬停显示功能 */

/* 移动登录按钮样式结束 */
.mobile-login-btn i, .mobile-register-btn i {
    margin-right: 8px;
    font-size: 14px;
}

/* 搜索面板样式 - 全新设计 */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-panel.show {
    opacity: 1;
    visibility: visible;
}

.search-panel-container {
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
    position: relative;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(52, 73, 94, 0.05);
    z-index: 10;
}

.search-close:hover {
    background-color: rgba(52, 73, 94, 0.1);
    transform: rotate(90deg);
}

.search-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-form {
    margin-bottom: 40px;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-form-inner {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 60px;
    padding: 8px 70px 8px 25px;
    border: 1px solid rgba(52, 73, 94, 0.1);
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    background-color: rgba(52, 73, 94, 0.03);
    color: var(--text-primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.search-input:focus {
    border-color: rgba(52, 73, 94, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    background-color: #fff;
}

.search-submit {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    background-color: rgba(52, 73, 94, 0.05);
    cursor: pointer;
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background-color: rgba(52, 73, 94, 0.1);
    transform: translateY(-50%) scale(1.05);
}

.search-tags {
    margin-top: 30px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.search-tags h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-tags h3 i {
    margin-right: 8px;
    color: var(--text-primary);
    opacity: 0.8;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.search-tags .tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(52, 73, 94, 0.03);
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 73, 94, 0.08);
    margin-bottom: 6px;
    line-height: 1.4;
}

.search-tags .tag::after {
    content: attr(data-count);
    margin-left: 5px;
    font-size: 12px;
    background: rgba(52, 73, 94, 0.08);
    border-radius: 10px;
    padding: 2px 8px;
    opacity: 0.8;
}

.search-tags .tag:hover {
    background: rgba(52, 73, 94, 0.08);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.search-tags .tag i {
    margin-right: 6px;
    font-size: 12px;
}

/* 添加搜索结果计数样式 */
.search-result-count {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 移动菜单样式优化 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%; /* 完全隐藏在屏幕外 */
    width: 100%; /* 全屏宽度 */
    height: 100vh;
    background-color: #ffffff;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: none; /* 移除阴影 */
    display: flex;
    flex-direction: column;
    opacity: 0; /* 完全透明 */
    visibility: hidden; /* 隐藏元素 */
}

.mobile-menu.show {
    left: 0;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 移动菜单头部 */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    border-bottom: 1px solid rgba(52, 73, 94, 0.08);
    background-color: #fff;
}

.mobile-menu .logo {
    display: flex;
    align-items: center;
}

.mobile-menu .logo img {
    max-height: 30px;
}

.mobile-menu .logo a {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.close-menu {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.25s ease;
    background-color: rgba(52, 73, 94, 0.05);
}

.close-menu:hover {
    background-color: rgba(52, 73, 94, 0.1);
    transform: rotate(90deg);
}

/* 移动导航列表 */
.mobile-nav {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.mobile-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-item {
    margin-bottom: 8px;
}

/* 手机导航项样式 */
.mobile-nav-item a {
    display: flex !important;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.25s ease;
    gap: 6px;
    background-color: #f8f9fa;
    text-decoration: none;
}

.mobile-nav-item a i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #34495e;
    opacity: 0.8;
}

.mobile-nav-item a:hover {
    color: rgba(52, 73, 94, 1);
    background-color: rgba(52, 73, 94, 0.05);
}

.mobile-nav-item.active a {
    background-color: rgba(52, 73, 94, 0.08);
    color: rgba(52, 73, 94, 1);
    font-weight: 600;
}

/* 优化移动端用户信息区域 */
.mobile-user-info {
    padding: 30px 20px;
    border-top: 1px solid rgba(52, 73, 94, 0.08);
    background-color: #fff;
    margin-top: auto;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.mobile-user-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    text-align: center;
}

.mobile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.mobile-user-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mobile-user-level, .mobile-user-points {
    font-size: 13px;
    color: #8e9aac;
    display: flex;
    align-items: center;
}

.mobile-user-level i, .mobile-user-points i {
    margin-right: 5px;
    font-size: 12px;
    color: #f59e0b;
}

.mobile-user-points i {
    color: #10b981;
}

/* 移动端用户链接区域 */
.mobile-user-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-user-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: rgba(52, 73, 94, 0.03);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-size: 13px;
    text-decoration: none;
}

.mobile-user-links a:hover {
    background-color: rgba(52, 73, 94, 0.08);
    transform: translateY(-1px);
}

.mobile-user-links a i {
    margin-right: 6px;
    font-size: 14px;
    color: #34495e;
    opacity: 0.7;
}

/* 退出登录按钮突出显示 */
.mobile-logout {
    grid-column: 1 / -1;
    margin-top: 8px;
    background-color: #f8d7da !important;
    color: #842029 !important;
    font-weight: 500;
}

.mobile-logout:hover {
    background-color: #f5c2c7 !important;
}

.mobile-logout i {
    color: #842029 !important;
}

/* 手机端登录按钮优化 */
.mobile-login-btns {
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    border-top: 1px solid rgba(52, 73, 94, 0.08);
    gap: 10px;
    margin-top: auto;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* 移除其他不需要的装饰 */
.header-right:after,
.header-right:before,
.header-right:hover:before {
    display: none;
}

/* 整个页面容器背景和边距 */
.lb-container {
    background-color: #f7f8fa;
    min-height: 100vh;
    padding-top: 0;
}

.lb-header-wrapper {
    padding: 0;
    margin-bottom: 0;
}

/* 移除用户等级指示器，使用户下拉菜单更加突出 */
.user-level-indicator {
    display: none;
}

/* 移动菜单覆盖层 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 生日倒计时卡片样式 */
.widget-birthday-countdown {
    position: relative;
    padding: 18px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.widget-birthday-countdown:before {
    display: none;
}

/* 生日项目整体样式 */
.birthday-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.birthday-item:first-child {
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
    margin-bottom: 2px;
}

.birthday-item:first-child .birthday-title {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 12px;
}

.birthday-item:first-child .days-number {
    font-size: 36px;
}

.birthday-item.second-birthday {
    display: none;
    padding-top: 15px;
    margin-top: 0;
}

.birthday-item.second-birthday.show {
    display: flex;
}

.birthday-item.second-birthday .birthday-title {
    font-size: 12px;
    font-weight: normal;
    margin-bottom: 0;
}

.birthday-item.second-birthday .days-number {
    font-size: 14px;
}

/* 生日标题和倒数日区域 */
.birthday-main {
    display: flex;
    flex-direction: column;
}

.birthday-title {
    color: #34495e;
    margin-bottom: 8px;
}

.birthday-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.countdown-text {
    font-size: 12px;
    color: #8e9aac;
    line-height: 1;
}

.toggle-birthday {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b6b;
    color: white;
    font-size: 4px;
    line-height: 1;
    margin-top: 1px;
    transition: all 0.3s ease;
}

.toggle-birthday i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.toggle-birthday.active i {
    transform: rotate(180deg);
}

/* 天数显示区域 */
.birthday-days {
    display: flex;
    align-items: baseline;
}

.days-number {
    font-weight: 500;
    color: #34495e;
}

.birthday-item:first-child .days-number {
    font-size: 36px;
}

.birthday-item.second-birthday .days-number {
    font-size: 14px;
}

.days-label {
    font-size: 14px;
    color: #8e9aac;
    margin-left: 2px;
    align-self: flex-end;
    margin-bottom: 6px;
}

.birthday-item:first-child .days-label {
    margin-bottom: 7px;
}

.birthday-item.second-birthday .days-label {
    margin-bottom: 5px;
} 