@charset "utf-8";
        :root {
            --primary: #0058C6;
            --primary-dark: #0046a0;
            --accent: #6CB4EE;
            --light: #f8f9fa;
            --dark: #333;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --border: #e1e5e9;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333
            line-height: 1.6;
        }
        
      /* 1. 主容器 */

/* 1. 主容器 */
/* 1. 父容器：flexbox 布局 */
.container {
    display: flex;  /* 启用 flexbox 布局 */
    width: 100%;
    max-width: 1600px;  /* 最大宽度 1600px */
    margin: 30px auto;  /* 上边距30px，居中 */
    gap: 20px;  /* 子元素之间的间距 */
}

/* 2. 目录：绝对固定在页面上 */
  .directory {
    position: relative;
    top: 0;
    left: 0px;
    width: 300px;
    height: auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 100;
    overflow: hidden; /* 确保内部元素的圆角不会溢出 */
}

/* 标题方框样式 */
.directory h3 {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            padding: 22px 25px;
            font-size: 20px;
            font-weight: 700;
            color: white;
            margin: 0;
            position: relative;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }
        
        .directory h3 i {
            margin-right: 12px;
            font-size: 20px;
            vertical-align: middle;
        }
        
        #toc {
            list-style-type: none;
            padding: 15px 0;
            margin: 0;
            max-height: 70vh;
            overflow-y: auto;
        }
        
        #toc::-webkit-scrollbar {
            width: 8px;
        }
        
        #toc::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        #toc::-webkit-scrollbar-thumb {
            background: linear-gradient(to bottom, #6a11cb, #2575fc);
            border-radius: 4px;
        }
        
        #toc li {
            padding: 0;
            margin: 0;
            transition: all 0.3s ease;
            border-bottom: 1px solid #f0f0f0;
            position: relative;
        }
        
        #toc li:last-child {
            border-bottom: none;
        }
        
        #toc li a {
            display: block;
            padding: 18px 25px 18px 55px;
            text-decoration: none;
            font-weight: bold; /* 加粗 */
            font-size: 18px; /* 25px 字体大小 */
            color: #333333; /* #333333 颜色 */
            transition: all 0.2s ease;
            position: relative;
            background-color: #fff;
        }
        
        #toc li a::before {
            content: '';
            position: absolute;
            left: 25px;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            background: #2575fc;
            border-radius: 50%;
            transition: all 0.3s ease;
        }
        
        #toc li a:hover {
            background-color: #f8f9ff;
            padding-left: 60px;
            color: #1a56db;
        }
        
        #toc li a:hover::before {
            background: #1a56db;
            transform: translateY(-50%) scale(1.3);
        }
        

/* 3. 主内容区域：自适应宽度 */
.main-content {
    flex: 1;  /* 占据剩余空间，自适应宽度 */
    background-color: white;
    padding: 20px;  /* 内边距 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);  /* 阴影 */
    border-radius: 10px;  /* 边角圆滑 */
   
}

/* 4. 侧边栏：固定宽度 */
.sidebar {
    width: 360px;  /* 固定宽度 320px */
  
    padding: 20px;  /* 内边距 */

    border-radius: 10px;  /* 边角圆滑 */
}


@media (max-width: 1200px) {
    .container {
        flex-direction: column;  /* 垂直排列 */
        gap: 10px;  /* 减小间距 */
        padding: 0 10px;  /* 减少容器左右内边距 */
    }

    .directory {
        position: relative;  /* 改为相对定位，允许滚动 */
        width: 100%;  /* 让目录宽度占满屏幕 */
        height: auto;  /* 让目录的高度适应内容 */
        bottom: unset;  /* 清除底部固定 */
    }

    .main-content {
        margin-left: 0;  /* 取消主内容的左边距 */
        margin-top: 20px;  /* 增加上边距 */
    }

    .sidebar {
        width: 100%;  /* 使侧边栏宽度为100% */
        margin-top: 20px;  /* 增加上边距 */
    }
}

/* 在更小的屏幕尺寸上，调整为单列布局 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;  /* 垂直排列 */
    }

    .directory {
        position: relative;  /* 改为相对定位，允许滚动 */
        width: 100%;  /* 让目录宽度占满屏幕 */
        height: auto;  /* 让目录的高度适应内容 */
        bottom: unset;  /* 清除底部固定 */
    }

    .main-content {
        margin-left: 0;  /* 取消主内容的左边距 */
        margin-top: 10px;  /* 增加上边距 */
    }

    .sidebar {
        width: 100%;  /* 使侧边栏宽度为100% */
        margin-top: 20px;  /* 增加上边距 */
    }
}










      
     
        
        /* 面包屑导航 */
        .breadcrumb {
            background-color: white;
            padding: 15px 0;
            border-bottom: 1px solid #e1e5e9;
            margin-bottom: 30px;
        }
        
        .breadcrumb-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .breadcrumb a {
            color: var(--primary);
            text-decoration: none;
        }
        
        .breadcrumb span {
            color: var(--gray);
            margin: 0 8px;
        }
        
        /* 主内容区 */
        
       
        
        .article-header {
            padding: 40px 40px 20px;
            border-bottom: 1px solid var(--border);
        }
        
        .article-title {
            font-size: 25px;
            color: var(--dark);
            margin-bottom: 15px;
            line-height: 1.3;
        }
        
        .article-meta {
            display: flex;
            align-items: center;
            color: var(--gray);
            margin-bottom: 20px;
            font-size: 14px;
        }
        
        .article-meta div {
            display: flex;
            align-items: center;
            margin-right: 25px;
        }
        
        .article-meta i {
            margin-right: 8px;
            color: var(--primary);
        }
        
       
        
        .ut-article-image {
    display: inline-block; /* 使元素成为行内块级元素 */
    width: 100%; /* 宽度设为100% */
    height: 350px; /* 高度设为350px */
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
    margin: 40px auto 0;
    overflow: hidden;
     position: relative;
}

         img {
    border: 0;
    display: block;  /* 使图片成为块级元素 */
    margin:auto;  /* 上边距为20px，左右自动居中，下边距为0 */
    padding: 0;
     align-items: center;
  max-height: 350px;
    
}
        
        .article-content {
            padding: 0 40px 40px;
            font-size: 15px;
        }
        
        .article-content h2 {
            color: #333;
            margin: 30px 0 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--accent);
            font-size: 25px;
        }
        
        .article-content h3 {
            color: #333;
            margin: 25px 0 15px;
             font-size: 17px;
        }
         .article-content h4 {
             font-size: 15px
         }
         
        .article-content p {
            margin-bottom: 20px;
            line-height: 1.8;
             font-size: 15px;
        }
        
        .article-content img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 25px auto;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }
        
        .article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.article-content th,
.article-content td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}


         .article-content ul {
  list-style: disc;
  padding-left: 20px;
}

.article-content ol {
  list-style: decimal;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 8px;
}

        .article-content blockquote {
            background: var(--light);
            border-left: 4px solid var(--primary);
            padding: 20px;
            margin: 25px 0;
            font-style: italic;
        }
        
        .article-tags {
            display: flex;
            flex-wrap: wrap;
            padding: 20px 40px;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            margin: 30px 0;
        }
        
        .tag {
            background: var(--light);
            color: #333333;
            padding: 6px 15px;
            border-radius: 30px;
            margin-right: 10px;
            margin-bottom: 10px;
            font-size: 15px;
            transition: var(--transition);
            text-decoration: none;
            display: inline-block;
        }
        
        .tag:hover {
            background: var(--primary);
            color: white;
        }
        
        /* 右侧边栏 */
        
        
        .sidebar-widget {
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            padding: 25px;
            margin-bottom: 30px;
        }
        
        .widget-title {
            font-size: 20px;
            color: #333333;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--accent);
            display: flex;
            align-items: center;
        }
        
        .widget-title i {
            margin-right: 10px;
            color: var(--primary);
        }
        
        .author-card {
            text-align: center;
        }
        
        .author-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin: 0 auto 20px;
            border: 4px solid var(--accent);
            overflow: hidden;
        }
        
        .author-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            margin: auto
        }
        
        .author-name {
            font-size: 1.4rem;
            color: var(--dark);
            margin-bottom: 5px;
        }
        
        .author-title {
            color: var(--primary);
            font-weight: 500;
            margin-bottom: 15px;
        }
        
        .author-bio {
            color: var(--gray);
            margin-bottom: 20px;
            font-size: 0.95rem;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
        }
        
        .social-links a {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            text-decoration: none;
        }
        
        .social-links a:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px);
        }
        
        .tags-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .popular-posts li {
            display: flex;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .popular-posts li:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .post-thumb {
            width: 80px;
            height: 80px;
            border-radius: 6px;
            overflow: hidden;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .post-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .post-info h4 {
            margin-bottom: 8px;
        }
        
        .post-info h4 a {
            color: var(--dark);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .post-info h4 a:hover {
            color: var(--primary);
        }
        
        .post-date {
            color: var(--gray);
            font-size: 0.85rem;
        }
        
        .subscribe-form input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid var(--border);
            border-radius: 4px;
            margin-bottom: 15px;
            font-size: 1rem;
        }
        
        .subscribe-form button {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
            font-weight: 500;
            transition: var(--transition);
        }
        
        .subscribe-form button:hover {
            background: var(--primary-dark);
        }
        
        
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 320px;
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 30px;
            }
            
            .ut-article-image {
                height: 350px;
                
            }
        }
        
        @media (max-width: 768px) {
            .article-header {
                padding: 30px 20px 15px;
            }
            
            .article-title {
                font-size: 2rem;
            }
            
            .article-content {
                padding: 0 20px 30px;
            }
            
           
            
            .article-meta {
                flex-wrap: wrap;
            }
            
            .article-meta div {
                margin-bottom: 10px;
            }
            
            nav ul {
                display: none;
            }
        }
