<style>
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
/* 基础样式改进 */
    :root {
        --primary-color: #2d2d39;      /* 主色调 */
        --accent-color: #007bff;       /* 强调色 */
        --text-color: #2d2d39;         /* 文字颜色 */
        --card-bg: #ffffff;            /* 卡片背景 */
        --section-bg: #f8f9fa;         /* 区域背景 */
		--primary: #3B82F6;
		--secondary: #64748B;
		--accent: #F1F5F9;
    }

body {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    background: #f2f4f7;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-x: hidden;
	margin: 0;
}
/* 主导航栏样式 */
.top-nav {
    width: 100%;
   background-color: #fff;
    color: #2d2d39;
    display: flex;
    align-items: center;
    padding: 10px 0;
    position: fixed;
    top: 0;
    z-index: 1000;
	height: 50px;
}

.top-nav .left-section {
    display: flex;
    align-items: center;
}

.top-nav .toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

.top-nav .logo {
    font-size: 20px;
    font-weight: bold;
}

.top-nav .nav-links {
    display: flex;
    list-style: none;
   margin: auto;
   padding: 0;
}

.top-nav .nav-links li {
    margin: 0 35px;
    cursor: pointer;
    padding: 0 15px;
}

.top-nav .nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
}

.top-nav .nav-links li a:hover {
    text-decoration: underline;
}
/* 搜索按钮样式 */
.search-btn {
    font-size: 20px;
    cursor: pointer;
    margin-right: 20px;
	position: fixed;
	right: 0;
}

/* 搜索覆盖层样式 */
.search-overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 50px; /* 主导航高度 */
    left: 0;
    width: 100%;
    height: calc(100vh - 50px); /* 减去主导航高度 */
    background-color: rgba(0, 0, 0, 0.8); /* 深色半透明背景 */
    z-index: 1000; /* 确保覆盖其他内容 */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 从顶部开始 */
    padding-top: 20px; /* 距离顶部间距 */
    transition: opacity 0.3s ease;
    opacity: 0;
}

.search-overlay.active {
    opacity: 1;
}

/* 搜索框样式 */
.search-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 600px; /* 搜索框宽度 */
    max-width: 90%; /* 响应式调整 */
}

/* 搜索表单样式 */
.search-box form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 输入框样式 */
.search-box input[type="text"],
.search-box input[type="date"],
.search-box select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none; /* 去掉聚焦时的边框 */
}

/* 搜索按钮样式 */
.search-box button {
    padding: 10px 20px;
    background-color: #0073e6; /* 按钮背景色 */
    color: #ffffff; /* 按钮文字颜色 */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* 图标和文字间距 */
}

.search-box button:hover {
    background-color: #005bb5; /* 按钮悬停背景色 */
}

/* 搜索图标样式 */
.search-box button i {
    font-size: 18px;
}
/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 50px);
    width: 220px; /* 默认展开 */
    background-color: #ffffff;
    transition: width 0.3s ease; /* 添加过渡动画 */
    overflow-x: hidden;
    z-index: 999;
}

/* 侧边栏折叠状态 */
.sidebar.collapsed {
    width: 60px; /* 只显示图标 */
	display: none;
}

/* 侧边栏的分类标题 */
.sidebar .logo {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    color:#444;
}

/* 侧边栏列表 */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

/* 侧边栏每一项 */
.sidebar li {
    padding: 15px 20px;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar li a {
    color: #686868;
	    cursor: pointer;
	    transition: background-color 0.2s ease;
	    text-align: center;
	    margin: 0 auto;
}

.sidebar li:hover {
    background-color:#e6f0f9;
}

/* 侧边栏图标 */
.sidebar li .icon {
    font-size: 18px;
    margin-right: 15px;
    color:#686868;
}
/* 侧边栏折叠时图标居中 */
.sidebar.collapsed li {
    justify-content: center;
    padding: 15px 10px;
}

/* 折叠状态下隐藏文字 */
.sidebar.collapsed li .icon {
    margin-right: 0;
}
.sidebar.collapsed li span {
    display: none;
}

/* 侧边栏折叠时，主内容区域向左移动 */
.content {
       padding: 1%;
       transition: margin-left 0.3s ease;
       margin-left: calc(10% + 250px);
       width: calc(78% - 250px);
	   max-width: 1980px;
	   margin-top: 70px;
}

.content.collapsed {
        width: calc(68% - 60px);
        margin-left: calc(15% + 60px);
        transition: margin-left 0.3s ease;
}
/* 内容区域 */
/* 工具详情页专用样式 */

/* 面包屑导航增强样式 */
.breadcrumbs {
    padding: 12px 0;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #666666;
    transition: color 0.2s;
    position: relative;
    padding-right: 18px;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
/* 精简主容器 */
.tool-detail {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(30, 64, 175, 0.05);
  padding: 3rem;
}

/* 紧凑头部布局 */
.tool-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.tool-icon img {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  padding: 8px;
  background: #FFF;
}

.tool-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0.25em 0;
  line-height: 1.2;
}

.tool-subtitle {
  color: #64748B;
  font-size: 1.15rem;
  margin: 0.8rem 0;
  max-width: 90%;
}

/* 智能标签系统 */
.tool-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--accent);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid #E2E8F0;
  transition: all 0.2s;
}

.tag:hover {
  background: #E2E8F0;
}

/* 高效操作按钮 */
.tool-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.2s;
}

.primary {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

.secondary {
  background: white;
  border: 1px solid #CBD5E1;
  color: #475569 !important;
}

.secondary:hover {
  background: #F8FAFC;
}
/* 文章目录卡片 */
.article-toc {
    background: #f9fafc;
    border: 1px solid #e9edf4;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.article-toc .toc-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed #d0d9e8;
    padding-bottom: 8px;
}

.article-toc .toc-title i {
    color: #3b82f6;
    font-size: 1rem;
}

/* 目录列表样式继承已有 .toc-list，但微调内边距 */
.article-toc .toc-list {
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.article-toc .toc-list li {
    margin: 6px 0;
}
.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.toc-list li {
    margin: 8px 0;
    position: relative;
    padding-left: 12px;
}
.toc-list a {
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: block;
    padding: 2px 8px;
    border-radius: 4px;
}

.toc-list a:hover {
    background: #f0f2f5;
    color: #1890ff;
}


.toc-list ul {
    padding-left: 15px;
    list-style: none;
    margin: 5px 0;
}

.toc-list {
    counter-reset: h2-counter h3-counter;
}
.toc-list ul a {
    font-size: 13px;
    color: #666;
}
/* 内容区域优化 */
.tool-content {
  margin: 2.5rem 0;
  color: #475569;
  line-height: 1.7;
  font-size: 1.05rem;
}
.tool-content img{width: 638px;max-width: 100%;}
.tool-content h2 {
  font-size: 1.2rem;
  color: #1E293B;
  margin: 2rem 0 1.2rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--primary);
  scroll-margin-top: 90px;
}
h2 a {
    scroll-margin-top: 90px;
}
h3{font-size: 1rem;}
p{font-size: 0.85rem;
    line-height: 1.7;
    word-wrap: break-word;
    padding: 0 5px;
	color: #212529;
	}
/* 相关推荐模块 */
.related-tools {
    margin: 40px 0;
    padding: 25px;
    background: var(--section-bg);
    border-radius: 12px;
}

.related-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-title i {
    color: var(--accent-color);
}
/* 网格系统升级 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}
.tool-card {
    background: #;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	cursor: pointer;
}
.tool-card:hover {
    background: #f0f8ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}
.tool-card .tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.tool-card .tool-icon>img{
    width: 40px;
    height: 40px;
	padding: 0;
    border-radius: 50%;}
.tool-info {
    flex: 1;
}
.tool-name a {
    font-weight: bold;
    font-size: 16px;
    color: #000;
}
.tool-desc {
    font-size: 12px;
        color: #64748b;
        line-height: 1.5;
        margin: 8px 0;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
}
.tags {
    margin-top: 5px;
}
.tag {
    display: inline-block;
    font-size: 12px;
    background: #eee;
    padding: 3px 6px;
    border-radius: 5px;
    margin-right: 5px;
}
.footer {
    width: 100%;
    text-align: center;
    color: #666;
    padding: 10px 0;
    border-top: 1px solid #E5EFD6;
    background-color: #282828;
}
.footer a {
    color: #666;
    font-size: 14px;
    font-family: "微软雅黑";
}
/* 响应式调整 */
/* 百度爬虫隐藏锚点跳转痕迹 */
@media screen {
    .toc-list a[href^="#"] {
        cursor: pointer;
        text-decoration: none;
        color: #333;
    }
    .toc-list a:hover {
        color: #1677ff;
    }
}
@media (hover: hover) and (pointer: fine) {
    .tool-card:hover {
        background: #f0f8ff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transform: translateY(-5px);
    }

    .tool-card:hover .tool-name a {
        color: #ff0000;
    }
}
@media (max-width: 1600px) {
	   .content { margin-left: 250px;
	    width: calc(98% - 250px);
		}
}
@media (max-width: 768px) {
   /* 移动端适配 */
       .article-toc {
           padding: 12px 16px;
           margin: 15px 0 20px;
       }
       .article-toc .toc-list a {
           font-size: 13px;
       }
   .tool-detail{padding: 10px;}
   .tool-card {
           max-width: 100%;
       }
       
       .tool-header {
		   margin-bottom: 10px;
       }
       .tool-title {
                 font-size: 1.6rem;
             }
             
       .tool-meta {
                 flex-direction: column;
                 gap: 10px;
             }
             
        .related-grid {
                 grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
             }
    .tool-detail{padding: 10px;}   
       .tool-title h2 {
           font-size: 1.1rem;
       }
       .tool-actions{margin-bottom: 10px;}
       .tool-subtitle {
           font-size: 0.85rem;
       }
	   .tool-tags{display: block;}
	   .tags{display: none;;}
	   .related-tools{padding: 0;}
 .top-nav .nav-links {
        display: none;
    }
    /* 移动端默认折叠侧边栏 */
    .sidebar {
        width: 250px;
    }
    .sidebar.collapsed {
        width: 60px;
    	display: none;
    }

    /* 移动端默认内容区域适配 */
    .content {
        margin-left: 0;
        width: 100%;
    }
    .content.collapsed {
            margin-left: 0;
            width: 100%;
        }
	.search-box {
	        width: 90%; /* 缩小搜索框宽度 */
	        padding: 15px;
	    }
	
	    .search-box input {
	        font-size: 14px;
	    }
	
	    .search-box button {
	        padding: 8px 15px;
	        font-size: 14px;
	    }
		 
}
    </style>