    :root {
            --bg-color: #f5f5f5;
            --text-color: #333;
            --header-bg: #fff;
            --sidebar-bg: #fff;
            --content-bg: #fff;
            --right-sidebar-bg: #fff;
            --border-color: #ddd;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
            --primary-color: #4a6cf7;
        }

        [data-theme="dark"] {
            --bg-color: #1a1a1a;
            --text-color: #f0f0f0;
            --header-bg: #2d2d2d;
            --sidebar-bg: #2d2d2d;
            --content-bg: #2d2d2d;
            --right-sidebar-bg: #2d2d2d;
            --border-color: #444;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Source Han Serif
        }
        
        a {
    color: var(--text-color);
    text-decoration: none;
    
    display: inline-flex;
    align-items: center;
}

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: var(--transition);
        }


 .logo {
      font-size: 1.4rem;
      font-weight: bold;
    }
    
     .logo img {
      width: 90px;
      
    }




        /* 头部样式 */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--header-bg);
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            padding: 0 15px;
            z-index: 1000;
            transition: var(--transition);
        }

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


          .header-right {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 1px;
        }


        .menu-btn, .search-btn, .music-btn, .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 20px;
            margin-right: 15px;
            color: var(--text-color);
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
        }

        .menu-btn:hover, .search-btn:hover, .music-btn:hover, .theme-toggle:hover {
            color: var(--primary-color);
        }

        /* 搜索栏样式 */
        .search-container {
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--header-bg);
            box-shadow: var(--shadow);

            align-items: center;
            padding: 0 15px;
            transform: translateY(-100%);
            opacity: 0;
            transition: var(--transition);
            z-index: 999;
        }

        .search-container.active {
            transform: translateY(0);
            opacity: 1;
        }

         @media (min-width: 1200px){
.main-container {
    max-width: 1140px;
    margin: 0 auto;
    margin-top: 60px;
}
.header {
     max-width: 1140px;
     margin: 0 auto;
     
}

.search-container {
max-width: 1140px;
    margin: 0 auto;
}
}
        /* 音乐播放器样式 */
        .music-player {
            position: fixed;
            top: 60px;
            right: -320px;
            width: 320px;
            height: calc(100vh - 60px);
            background-color: var(--header-bg);
            box-shadow: var(--shadow);
            padding: 20px;
            transition: var(--transition);
            z-index: 999;
            overflow-y: auto;
        }

        .music-player.active {
            right: 0;
        }

        .music-info {
            text-align: center;
            margin-bottom: 20px;
        }

        .music-cover {
            width: 200px;
            height: 200px;
            border-radius: 10px;
            margin: 0 auto 15px;
            background-color: var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            color: var(--primary-color);
        }

        .music-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .music-artist {
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.7;
        }

        .music-controls {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }

        .music-btn-control {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 24px;
            margin: 0 10px;
            color: var(--text-color);
            transition: var(--transition);
        }

        .music-btn-control:hover {
            color: var(--primary-color);
        }

        .music-progress {
            margin-bottom: 20px;
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background-color: var(--border-color);
            border-radius: 3px;
            margin-bottom: 5px;
        }

        .progress {
            height: 100%;
            background-color: var(--primary-color);
            border-radius: 3px;
            width: 30%;
        }

        .time-info {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-color);
            opacity: 0.7;
        }

        .playlist {
            margin-top: 20px;
        }

        .playlist-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .playlist-item {
            display: flex;
            align-items: center;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 5px;
            cursor: pointer;
            transition: var(--transition);
        }

        .playlist-item:hover {
            background-color: var(--border-color);
        }

        .playlist-item.active {
            background-color: var(--primary-color);
            color: white;
        }

        .playlist-item-info {
            margin-left: 10px;
        }

        .playlist-item-title {
            font-size: 14px;
            font-weight: bold;
        }

        .playlist-item-artist {
            font-size: 12px;
            opacity: 0.7;
        }

        /* 遮罩层样式 */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        
        
         /* 用户下拉菜单 */
    .user-dropdown {
        position: relative;
        display: inline-block;
        margin: 10px 0;
    }
    .user-button {
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 4px 8px;
        border-radius: 4px;
    }
    .user-button img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid #ddd;
    }
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border: 1px solid #eee;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        min-width: 160px;
        z-index: 1000;
        margin-top: 4px;
    }
    .dropdown-menu a {
        display: block;
        padding: 10px 16px;
        color: #333;
        text-decoration: none;
    }
    .dropdown-menu a:hover {
        background-color: #f9f9f9;
    }
    .dropdown-menu a.logout {
        color: #d32f2f;
        border-top: 1px solid #f5f5f5;
    }
    .user-dropdown:hover .dropdown-menu,
    .user-button:focus + .dropdown-menu,
    .dropdown-menu:focus-within {
        display: block;
    }
        
        
        

        /* 侧边栏样式 */
        .sidebar {
            position: fixed;
            top: 60px;
            left: -250px;
            width: 250px;
            height: calc(100vh - 60px);
            background-color: var(--sidebar-bg);
            box-shadow: var(--shadow);
            padding: 20px;
            overflow-y: auto;
            transition: var(--transition);
            z-index: 100;
        }

        .sidebar.active {
            left: 0;
        }

        .sidebar-menu {
            list-style: none;
        }
        
        
         /* 基础列表样式 */
   .sidebar-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 200px; /* 【重要】你需要设定一个固定的宽度，或者由父容器决定宽度 */
        /* 如果是在侧边栏，通常父容器已经有宽度了，这行可以省略 */
    }
        

        .sidebar-menu li {
            margin-bottom: 10px;
            border-bottom: 1px solid rgb(0 0 0 / 15%);
        }
        
        
         /* 核心修改：将链接变为 Flex 容器 */
   .sidebar-menu li a {
        display: flex;             /* 启用 Flex 布局 */
        justify-content: space-between; /* 关键：两端对齐（左文字，右箭头） */
        align-items: center;       /* 垂直居中 */
        
        text-decoration: none;
        color: var(--text-color);
        width: 100%;               /* 占满整行 */
        box-sizing: border-box;    /* 防止 padding 撑大宽度 */
        padding: 5px 0;            /* 上下加点内边距，好看点 */
    }
        

        /* 如果想让 > 号颜色淡一点或间距大一点 */
.sidebar-menu  li a::after {
    
    content: ""; 
        /* 用 CSS 画一个细箭头 */
        width: 5px;
        height: 5px;
        border-top: 2px solid #ccc;
        border-right: 2px solid #ccc;
        transform: rotate(45deg);
        transition: all 0.2s;
        margin-bottom: 4px; /* 微调垂直位置 */
        color: #999;               /* 箭头颜色 */
        font-size: 0.9em;
        margin-left: 10px;         /* 文字和箭头之间的最小间距（防止贴太紧） */
        flex-shrink: 0;            /* 防止箭头被压缩 */
}

        .sidebar-menu a {
            display: block;
            padding: 10px 15px;
            color: var(--text-color);
            text-decoration: none;
            
            transition: var(--transition);
        }

        .sidebar-menu a:hover {
            background-color: var(--sidebar-bg);
            color: var(--primary-color);
        }
        
        
  
   

        /* 主内容区域 */
        .main-container {
            display: flex;
            margin-top: 42px;
            min-height: calc(100vh - 60px);
        }

        .content {
            flex: 1;
            padding: 20px;
            transition: var(--transition);
            background-color: var(--content-bg);
            margin-top: 18px;
        }

        .right-sidebar {
            width: 20%;
            padding: 5px;
            background-color: var(--right-sidebar-bg);
            box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            margin-top: 18px;
        }
        
         /* 搜索框容器 */
.search-box {
    margin: 10px 0 20px;
}
        /* 搜索表单 - 使用 Flex 布局 */
.search-form {
    display: flex;
    gap: 8px; /* 元素间距 */
    align-items: center;
    flex-wrap: wrap; /* 小屏自动换行 */
}

/* 搜索输入框 - 弹性增长，最小宽度保证可用性 */
.search-form input[type="text"] {
    flex: 1; /* 占据剩余空间 */
    min-width: 120px; /* 防止在极窄屏压缩到看不见 */
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px; /* iOS 避免小于 16px 触发缩放 */
    line-height: 1.4;
}

/* 搜索按钮 - 自动适配内容宽度 */
.search-form button {
    padding: 8px 16px;
    background: #010101;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap; /* 防止文字换行 */
    min-width: 60px; /* 保证最小点击区域 */
}

.search-form button:hover {
    background: #0056b3;
}

/* 取消搜索链接 - 小屏时显示在下一行 */
.cancel-search {
    font-size: 14px;
    margin-top: 8px; /* 换行时与上一行有间距 */
    text-decoration: underline;
    color: #555;
    align-self: flex-start; /* 左对齐 */
}

/* 超小屏优化（如 iPhone SE 320px 宽度） */
@media (max-width: 375px) {
    .search-form {
        gap: 6px;
    }
    
    .search-form input[type="text"] {
        font-size: 14px; /* 避免 iOS Safari 自动放大 */
        padding: 7px 10px;
    }
    
    .search-form button {
        padding: 7px 12px;
        font-size: 13px;
    }
}
         /* 搜索提示 */
    .search-hint {
        margin-bottom: 12px;
        color: #555;
        font-size: 0.9rem;
        padding: 6px 0;
        text-align: center;
    }
    .search-hint a {
        font-size: 0.9em;
        margin-left: 8px;
    }
        
        
        
        
          /* 分页 */
    .pagination { 
      text-align: center; 
      margin: 20px 0; 
    }
    .pagination a, .pagination span { 
      display: inline-block;  
      margin: 0 2px; 
      text-decoration: none; 
      border: 1px solid #020202;
      padding: 2px 10px;
      color: #000;
      border-radius: 3px;
      min-height: 2px;
    margin: 2px;
    }
    .pagination .current { 
      background: #0073aa; 
      color: white; 
    }

    /* 帖子区 */
    .posts h1 {
      font-size: 1.1rem;
      color: #666;
      margin-bottom: 0.4rem;
      font-weight: normal;
    }

    .post {
      padding-bottom: 0.4rem;
      margin-bottom: 0.4rem;
      border-bottom: 1px solid #eee;
    }

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

    .post-title {
      font-size: 14px;
      margin-bottom: 6px;
      line-height: 1.4;
      font-weight: 600;
    }
    
    .post-title a {
      min-height: 20px;
    }

    .post-meta {
      font-size: 0.75rem;
      color: #777;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    
    .post-meta img {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      object-fit: cover;
      border: 1px solid #ddd;
    }

    .post-stats {
      margin-left: auto;
      white-space: nowrap;
      font-size: 10px;
    }
        
        
        /* 底部样式 */
         footer {
      margin-top: 0.5rem;
      padding-top: 0.5rem;
      border-top: 1px solid #eee;
      color: #888;
      font-size: 0.9rem;
      text-align: center;
    }
        
        
        
        
        
          /* 论坛右边卡片容器 */
        .forum-card {
            background-color: var(--content-bg);
            width: 100%;
            max-width: 400px;
            border-radius: 2px;
            overflow: hidden;
            position: relative; /* 关键：让内部的 absolute 元素相对于这个卡片定位 */
        }

        /* 1. 顶部横幅 */
        .card-banner {
            height: 60px; /* 稍微调高一点，给头像留空间 */
            background: linear-gradient(to bottom, #4a5568, #2d3748);
            width: 100%;
        }

       

        /* 3. 内容区域 */
        .card-content {
            /* 核心算法：头像位置 (70px) + 头像高度 (80px) + 额外间距 (15px) */
            /* 确保文字绝对不会被头像挡住 */
            padding: 5px 10px 10px 10px;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .card-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-color);
        }

        .dropdown-icon {
            color: #a0aec0;
            font-size: 12px;
            cursor: pointer;
        }

        .card-desc {
            font-size: 14px;
            color: #718096;
            line-height: 1.6;
            margin-bottom: 1px;
            /* 限制显示行数，多了省略... (可选) */
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

       

        /* 4. 底部统计 */
        .card-stats {
            display: flex;
            justify-content: space-around; /* 均匀分布 */
            border-top: 1px solid #edf2f7;
            padding: 15px 0;
            background-color: var(--content-bg);
        }

        .stat-item {
            text-align: center;
        }

        .stat-num {
            display: block;
            font-size: 18px;
            font-weight: 700;
            color: var(--text-color);
        }

        .stat-label {
            display: block;
            font-size: 12px;
            color: #a0aec0;
            margin-top: 4px;
        }
        
        
        /* 右边日志卡片容器 */
        .changelog-card {
            background-color: var(--content-bg);
            width: 100%;
            max-width: 500px;
            border-radius: 2px;
            overflow: hidden;
            /* 可选：限制整个卡片的最大高度，防止页面过长 */
            /* max-height: 400px;  如果希望整个卡片都不超过这个高度，取消注释这行 */
            display: flex;
            flex-direction: column;
        }

        /* 标题栏 (固定不动) */
        .changelog-header {
            background-color: var(--content-bg);
            padding: 12px 20px;
            border-bottom: 1px solid #e0e0e0;
            flex-shrink: 0; /* 防止标题被压缩 */
        }

        .changelog-title {
            font-size: 10px;
            font-weight: 600;
            color: #8c7b6c;
            white-space: nowrap; /* 防止标题换行 */
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* 日志列表容器 (可滚动区域) */
        .changelog-list-container {
            /* 核心代码：设置最大高度，超出部分滚动 */
            max-height: 300px; 
            overflow-y: auto;  /* 垂直方向自动显示滚动条 */
            
            /* 美化滚动条 (针对 Chrome/Safari/Edge) */
            scrollbar-width: thin; /* Firefox: 细滚动条 */
            scrollbar-color: #ccc #f9f9f9; /* Firefox: 滑块颜色 轨道颜色 */
        }

        /* 自定义滚动条样式 (Webkit 内核浏览器) */
        .changelog-list-container::-webkit-scrollbar {
            width: 6px; /* 滚动条宽度 */
        }
        .changelog-list-container::-webkit-scrollbar-track {
            background: #f9f9f9; /* 轨道背景 */
        }
        .changelog-list-container::-webkit-scrollbar-thumb {
            background-color: #ccc; /* 滑块颜色 */
            border-radius: 3px; /* 圆角 */
        }
        .changelog-list-container::-webkit-scrollbar-thumb:hover {
            background-color: #aaa; /* 悬停时的滑块颜色 */
        }

        /* 日志列表 */
        .changelog-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .changelog-item {
            padding: 5px;
            border-bottom: 1px solid #f0f0f0;
            font-size: 10px;
            color: #666;
            line-height: 1.5;
            transition: background-color 0.2s ease;
        }

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

        .changelog-item:hover {
            background-color: #fafafa;
        }

        .log-date {
            color: #999;
            font-weight: 500;
            margin-right: 2px;
            display: inline-block;
            width: 60px; /* 固定日期宽度，让内容对齐更整齐 */
        }
        
        
        
        
        
        

        /* 文章卡片样式 */
        .article-card {
            background-color: var(--content-bg);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .article-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .article-title {
            font-size: 22px;
            margin-bottom: 10px;
            color: var(--text-color);
        }

        .article-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-size: 14px;
            color: var(--text-color);
            opacity: 0.7;
        }

        .article-excerpt {
            margin-bottom: 15px;
            line-height: 1.6;
        }

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

        .tag {
            background-color: var(--border-color);
            color: var(--text-color);
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 12px;
            transition: var(--transition);
        }

        .tag:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* 右侧边栏组件 */
        .sidebar{
            z-index: 1001;
        }
        
        
        
        .sidebar-section {
            margin-bottom: 30px;
        }

        .sidebar-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .about-me {
            text-align: center;
            margin-bottom: 20px;
        }

        .avatar img{
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto 15px;
            background-color: var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            color: var(--primary-color);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 15px;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--border-color);
            color: var(--text-color);
            text-decoration: none;
            transition: var(--transition);
        }

        .social-link:hover {
            background-color: var(--primary-color);
            color: white;
        }

        .archive-list, .tag-cloud {
            list-style: none;
        }

        .archive-list li, .tag-cloud li {
            margin-bottom: 8px;
        }

        .archive-list a, .tag-cloud a {
            color: var(--text-color);
            text-decoration: none;
            transition: var(--transition);
        }

        .archive-list a:hover, .tag-cloud a:hover {
            color: var(--primary-color);
        }

        /* 响应式布局 */
        @media (max-width: 768px) {
            .right-sidebar {
                display: none;
            }

            .main-container {
                flex-direction: column;
            }

            .content {
                width: 100%;
            }

            .music-player {
                width: 100%;
                right: -100%;
            }

            .sidebar {
                width: 70%;
                left: -70%;
            }
        }
        
        
        @media (min-width: 1200px){
.main-container {
    max-width: 1140px;
    margin: 0 auto;
    margin-top: 42px;
}
.header {
     max-width: 1140px;
     margin: 0 auto;
}
}
        @media (min-width: 769px) {
            .header-left {
                margin-right: auto;
                align-items: center;
            }

            .menu-btn {
                display: none;
            }


            .main-container {
                flex-direction: row;
            }

            .content {
                width: 60%;
            }

            .right-sidebar {
                width: 20%;
            }

            .sidebar {
                position: static;
                width: 20%;
                height: auto;
                box-shadow: none;
                padding: 20px;
                margin-top: 18px;
                z-index: 100;
            }

            .overlay {
                display: none;
            }
        }