 :root {
            --bg-color: linear-gradient( 90deg, rgba(247, 149, 51, .1), rgba(243, 112, 85, .1) 15%, rgba(239, 78, 123, .1) 30%, rgba(161, 102, 171, .1) 44%, rgba(80, 115, 184, .1) 58%, rgba(16, 152, 173, .1) 72%, rgba(7, 179, 155, .1) 86%, rgba(109, 186, 130, .1));
            --text-color: #333;
            --header-bg: #ffffffdb;
            --sidebar-bg: #fff;
            --content-bg: #fff;
            --content-bg2:#eaf0ff;
            --content-bg3:#ffe4ce;
            --right-sidebar-bg: #fff;
            --border-color: #ddd;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            --shadow2: 0 2px 10px rgb(209 211 255);
            --transition: all 0.3s ease;
            --primary-color: #4a6cf7;
            --routine: #d4d4d4;
            --ss-bg: #fff;
            --article-card-color:#fff0f0;
            
            --sss1-bg:#ffffff;
            --sss2-bg:#e3dfc4;
            --sss3-bg:#ffeeee;
            
            
            --max-title-lines: 1; /* 默认手机端显示1行 */
            --max-title-chars: 20; /* 默认手机端最多20个字符 */
            
        }

        [data-theme="dark"] {
            --bg-color: #1a1a1a;
            --text-color: #f0f0f0;
            --header-bg: #2d2d2d;
            --sidebar-bg: #2d2d2d;
            --content-bg: #2d2d2d;
            --content-bg2:#2d2d2d;
            --content-bg3:#2d2d2d;
            --right-sidebar-bg: #2d2d2d;
            --border-color: #444;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            --routine: #d4d4d4;
            --ss-bg: #2d2d2d;
            --article-card-color:#2d2d2d;
            --sss1-bg:#2d2d2d;
            --sss2-bg:#2d2d2d;
            --sss3-bg:#2d2d2d;
        }

@media (min-width: 769px) {
  :root {
    --max-title-lines: unset; /* PC端不限制行数 */
    --max-title-chars: unset; /* PC端不限制字符数 */
  }
}



.gk-gk-post-title {
  display: -webkit-box;
  -webkit-line-clamp: var(--max-title-lines, 1);
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* 字符数限制 */
  @media (max-width: 768px) {
    max-width: calc(var(--max-title-chars, 20) * 1em); /* 假设每个字符1em宽度 */
    white-space: nowrap;
  }
}

.gk-gk-post-route {
  display: -webkit-box;
  -webkit-line-clamp: var(--max-title-lines, 1);
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  
  /* 字符数限制 */
  @media (max-width: 768px) {
    max-width: calc(var(--max-title-chars, 20) * 1em); /* 假设每个字符1em宽度 */
    white-space: nowrap;
  }
}








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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: var(--transition);
            cursor: url(https://ovogk.com/usr/themes/early/images/NormalSelect.png),default;
            
            
background: linear-gradient(to right,  var(--content-bg), var(--content-bg2)); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

        }

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


.header-left img {
    min-width: 80px;
    max-width: 150px;
    height: 25px;
    object-fit: cover;
    border-radius: 5%;
    background-color: var(--content-bg);
}


        .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(--ss-bg);
            box-shadow: var(--shadow);

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

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

        .search-input {
            width: 100%;
            padding: 8px 15px;
            border: 1px solid var(--border-color);
            border-radius: 0px;
            background-color: var(--content-bg);
            color: var(--text-color);
            font-size: 16px;
            outline: none;
        }

        /* 音乐播放器样式 */
        .music-player {
            position: fixed;
            top: 60px;
            right: -320px;
            width: 320px;
            height: calc(100vh - 60px);
            background-color: var(--header-bg);
            box-shadow: var(--shadow);
            padding: 0px;
            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;
        }

        /* 侧边栏样式 */
        .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 li {
            margin-bottom: 1px;
            border-bottom: 1px solid #0000001f;
        }

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


  .sidebar-menu li ::after {
    content: '';
    font-family: 'FontAwesome';
    font-weight: normal;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}


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

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

        .content {
            flex: 1;
            padding: 20px;
            transition: var(--transition);
        }

        .right-sidebar {
            width: 20%;
            padding: 20px;
            background-color: var(--right-sidebar-bg);
            box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            margin-top: 18px;
        }

        /* 文章卡片样式 */
        .article-card {
            background-color: var(--article-card-color);
            border-radius: 8px;
            padding: 10px;
            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 {
            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: 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;
            }
        }