<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;         /* 区域背景 */
        --gradient-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 新增渐变变量 */
	}

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: 100vh;
    width: 220px; /* 默认展开 */
    background-color: #ffffff;
    transition: width 0.3s ease; /* 添加过渡动画 */
    overflow-x: hidden;
    z-index: 999;
}

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

/* 侧边栏的分类标题 */
.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;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar li span {
    color: #686868;
}

.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 {
       transition: margin-left 0.3s ease;
	   max-width: 1980px;
	   margin-top: 70px;
	   margin-left: 220px;
	       flex: 1 0 auto;
	       display: flex;
	       flex-direction: column;
}


/* 教程卡片布局 */
.section {
      border-radius: 8px;
          box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
          background-color: #ffffff;
          padding: 1% 2%;
          margin: 2% auto;
          width: 94%;
          max-width: 1680px;
}
.section-title {
   font-size: 20px;
       font-weight: bold;
       margin-bottom: 10px;
       display: flex;
       justify-content: space-between;
       align-items: center;
       position: relative;
       margin-bottom: 10px;
	   margin-top: 20px;
	     position: relative;
	       padding: 0 15px; /* 增加安全间距 */
}
.section-title::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, #e0e0e0 20%, #e0e0e0 80%, transparent 100%);
        transform: translateY(-50%);
        z-index: 0;}
.more-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
	    position: relative;
	    z-index: 1;
	    background: var(--card-bg); /* 背景色覆盖线条 */
	    padding-left: 10px;
}
.more-link:hover {
    text-decoration: underline;
}
  /* 教程卡片样式 - 已优化 */
    .tutorial-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 调整为更小的最小宽度 */
        gap: 20px; /* 减小间距 */
        padding: 15px 0; /* 减小内边距 */
    }

    .tutorial-card {
        background: var(--card-bg);
        border: 1px solid #eaeaea;
        border-radius: 10px; /* 减小圆角 */
        overflow: hidden;
        transition: transform 0.2s, box-shadow 0.2s;
        height: 100%; /* 确保卡片高度一致 */
        display: flex;
        flex-direction: column;
    }

    .tutorial-card:hover {
        transform: translateY(-2px); /* 减小悬停上移距离 */
        box-shadow: 0 6px 15px rgba(0,0,0,0.08); /* 减小阴影 */
    }

    .tutorial-thumbnail {
        position: relative;
        height: 160px; /* 减小缩略图高度 */
        overflow: hidden;
        flex-shrink: 0; /* 防止缩略图被压缩 */
    }

    .tutorial-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .tutorial-card:hover .tutorial-thumbnail img {
        transform: scale(1.03); /* 添加图片悬停放大效果 */
    }

    .tutorial-duration {
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 3px 6px;
        border-radius: 4px;
        font-size: 11px; /* 减小字体 */
    }

    .tutorial-info {
        padding: 12px; /* 减小内边距 */
        flex: 1; /* 让内容区域填满剩余空间 */
        display: flex;
        flex-direction: column;
    }

    .tutorial-title {
        font-size: 16px; /* 减小标题字体 */
        font-weight: 600;
        margin-bottom: 8px; /* 减小下边距 */
        line-height: 1.3; /* 调整行高 */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 限制标题为两行 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tutorial-title a {
        color: var(--text-color);
        text-decoration: none;
        transition: color 0.2s;
    }

    .tutorial-title a:hover {
        color: var(--accent-color);
    }

    .tutorial-meta {
        display: flex;
        gap: 12px; /* 减小间距 */
        font-size: 13px; /* 减小字体 */
        color: #666;
        margin-bottom: 8px; /* 减小下边距 */
        flex-wrap: wrap;
    }

    .tutorial-meta i {
        margin-right: 4px; /* 减小图标间距 */
        font-size: 12px;
    }

    .tutorial-desc {
        font-size: 13px; /* 减小字体 */
        color: #666;
        line-height: 1.4; /* 调整行高 */
        margin-bottom: 12px; /* 减小下边距 */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 限制描述为两行 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1; /* 让描述填满空间 */
    }

    .tutorial-tags {
        display: flex;
        gap: 8px; /* 减小间距 */
        flex-wrap: wrap;
        margin-top: auto; /* 将标签推到卡片底部 */
    }

    .tutorial-tags .tag {
        background: #f5f7fb;
        padding: 3px 8px; /* 减小内边距 */
        border-radius: 10px; /* 减小圆角 */
        font-size: 11px; /* 减小字体 */
        color: #666;
    }
 /* 终极栏目专属*/
 .tutorial-level {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 11px;
    }
 /* 新增特色模块 */
    .hero-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 80px 20px;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .category-tags {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin: 20px 0;
    }

    .category-tag {
        background: rgba(255,255,255,0.15);
        padding: 8px 16px;
        border-radius: 20px;
        transition: background 0.2s;
    }

    .category-tag:hover {
        background: rgba(255,255,255,0.25);
    }
   /* 新增样式 */
/* 搜索容器样式 */
.modern-search-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

/* 引擎切换标签 */
.search-engine-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.engine-tab {
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.engine-tab:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.engine-tab.active {
    background: rgba(255,255,255,0.2);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 输入组样式 */
.search-input-group {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.icon-wrapper {
    padding: 0 15px;
    color: var(--accent-color);
    font-size: 1.2em;
}

/* 输入框样式 */
.modern-search-input {
    flex: 1;
    border: none;
    padding: 15px 0;
    font-size: 16px;
    background: transparent;
    min-width: 200px;
}

.modern-search-input:focus {
    outline: none;
    box-shadow: none;
}

/* 分类选择器 */
.select-wrapper {
    position: relative;
    min-width: 180px;
}

.category-select {
    width: 100%;
    padding: 15px 40px 15px 20px;
    border: none;
    border-left: 2px solid #eee;
    background: transparent;
    appearance: none;
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
}

.select-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

/* 搜索按钮 */
.search-action-btn {
    padding: 0 30px;
    border: none;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-action-btn i {
    transition: transform 0.2s;
}

.search-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-action-btn:hover i {
    transform: translateX(3px);
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 智能搜索特定样式 */
#smartSearch .icon-wrapper {
    color: #FF6B6B;
}

/* 表单切换动画 */
.search-form {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form.active {
    opacity: 1;
    height: auto;
    overflow: visible;
}
/* AI特性徽章 */
.ai-badge-group {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}

.ai-badge {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

/* 动态输入提示 */
input[data-ai-feature]::placeholder {
    color: #666;
    font-style: italic;
}

input[data-ai-feature]:focus::placeholder {
    opacity: 0.5;
}

/* 品牌色动态适配 */
.engine-tab[data-engine="metaso"].active {
    background: rgba(138, 79, 255, 0.15);
    border-color: #8A4FFF;
}

.engine-tab[data-engine="kimi"].active {
    background: rgba(255, 107, 53, 0.15);
    border-color: #FF6B35;
}

/* 长输入优化 */
#kimiSearch .modern-search-input {
    min-height: 44px;
    padding-right: 180px; /* 为徽章留出空间 */
}
/*页脚*/
.footer {
    width: 100%;
    text-align: center;
    color: #666;
    padding: 10px 0;
    border-top: 1px solid #E5EFD6;
    background-color: #282828;
	z-index: 999;
}
.footer a {
    color: #666;
    font-size: 14px;
    font-family: "微软雅黑";
}
/* 响应式调整 */
@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) {
		.section-title::before {
		        left: 10%;
		        right: 10%;
		        background: #e0e0e0;
		    }
}
@media (max-width: 1300px) {
	.content {
	    margin-left: 60px;
	}
}
@media (max-width: 1024px) {
    .tutorial-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* 平板设备更小的卡片 */
        gap: 16px;
    }
    
    .tutorial-thumbnail {
        height: 140px; /* 平板设备更小的缩略图 */
    }
}
@media (max-width: 768px) {
    .top-nav .nav-links {
        display: none;
    }

    /* 移动端默认折叠侧边栏 */
    .sidebar {
        width: 250px;
    }
    .sidebar.collapsed {
        width: 60px;
    	display: none;
    }
	 /* 移动端特色模块 */
    .search-input-group {
            flex-direction: column;
            padding: 15px;
        }
        
        .search-action-btn {
            width: 100%;
            justify-content: center;
            padding: 15px;
        }
        
        .select-wrapper {
            width: 100%;
            border-left: none;
            border-top: 2px solid #eee;
            padding-top: 15px;
        }
        
        .category-select {
            border-left: none;
            padding-left: 0;
        }
        
        .engine-tab span {
            display: none;
        }
        
        .engine-tab {
            padding: 12px;
        }
    .ai-badge-group {
            display: none;
        }
        
        #kimiSearch .modern-search-input {
            padding-right: 15px;
        }
        
        .engine-tab[data-engine="metaso"] span,
        .engine-tab[data-engine="kimi"] span {
            display: none;
        }
    /* 移动端默认内容区域适配 */
    .content {
        margin-left: 0;
        width: 100%;
    }
    .content.collapsed {
            margin-left: 0px;
            width: 100%;
        }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
	.search-box {
	        width: 90%; /* 缩小搜索框宽度 */
	        padding: 15px;
	    }
	
	    .search-box input {
	        font-size: 14px;
	    }
	
	    .search-box button {
	        padding: 8px 15px;
	        font-size: 14px;
	    }
		 .section-title {
		        padding: 0;
		    }
		    .section-title::before {
		        display: none; /* 移动端完全隐藏装饰线 */
		    }
		    .more-link {
		        margin-top: 8px;
		        padding-left: 0;
		        background: transparent;
		    }
		.tutorial-grid {
		            grid-template-columns: repeat(2, 1fr); /* 移动端显示2列 */
		            gap: 12px;
		        }
		
		.tutorial-thumbnail {
		            height: 120px; /* 移动端更小的缩略图 */
		        }
		
		.tutorial-title {
		            font-size: 14px;
		            -webkit-line-clamp: 2; /* 移动端限制两行 */
		        }
		
		.tutorial-meta {
		            font-size: 12px;
		            gap: 8px;
		        }
		
		.tutorial-desc {
		            font-size: 12px;
		            -webkit-line-clamp: 2;
		        }
		
		.tutorial-tags .tag {
		            font-size: 10px;
		            padding: 2px 6px;
		        }
		
		.tutorial-info {
		            padding: 10px;
		        }
}
@media (max-width: 480px) {
    .tutorial-grid {
        grid-template-columns: 1fr; /* 小屏手机显示1列 */
        gap: 10px;
    }
    
    .tutorial-thumbnail {
        height: 140px; /* 单列时稍大一些 */
    }
}
    </style>