/* 全局样式 */
body {
    font-family: Arial, sans-serif; /* 设置字体为Arial及无衬线字体 */
    line-height: 1.6; /* 行高为1.6倍 */
    background-color: #f4f4f4; /* 背景颜色为淡灰色 */
    color: #333; /* 字体颜色为深灰色 */
    margin: 0; /* 去掉默认外边距 */
    padding: 5px; /* 内边距为5px */
}

.m-bold {
            font-weight: bold;
            display: inline; /* 将 div 设置为内联元素 */
			color: #333; /* 深色文本 */
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* 添加阴影 */
        }

.my-bold {
            font-weight: bold;
            display: inline; /* 将 div 设置为内联元素 */
			color: #333; /* 深色文本 */
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* 添加阴影 */
        }


/* 一级标题样式 */
h1 {
    text-align: center; /* 文字居中对齐 */
    margin-bottom: 0px; /* 底部外边距为20px */
}

/* 二级标题样式 */
h2 {
    color: #007bff; /* 字体颜色为蓝色 */
    margin-top: 30px; /* 顶部外边距为30px */
    border-bottom: 2px solid; /* 底部边框为2px实线 */
    padding-bottom: 5px; /* 底部内边距为5px */
}

/* 无序列表样式 */
ul {
    margin: 10px 0; /* 外边距为10px上下 */
    padding-left: 20px; /* 左内边距为20px */
    list-style-type: none; /* 去掉项目符号 */
}

/* 列表项样式 */
li {
    margin-bottom: 0px; /* 列表项之间的底部外边距 */
}

/* 段落样式 */
.explain{
    background-color: #e9f5ff; /* 浅蓝色背景 */
    border-left: 5px solid #007bff; /* 蓝色左边框 */
    padding: 10px 15px; /* 内边距为10px上下、15px左右 */
    margin: 20px 0; /* 段落之间的外边距为20px */
    border-radius: 5px; /* 圆角边框 */
    line-height: 1.6; /* 行高为1.6倍 */
}

.output {
    background-color: #f2f2f2; /* 灰色背景 */
    border-left: 5px solid #707070; /* 灰色左边框 */
    padding: 10px 15px; /* 内边距为10px上下、15px左右 */
    margin: 20px 0; /* 段落之间的外边距为20px */
    border-radius: 5px; /* 圆角边框 */
    line-height: 1.6; /* 行高为1.6倍 */
}


/* 段落样式 */
.code-area {
    background: linear-gradient(to right, #90ee90, #b2ffb2); /* 渐变绿色背景，从浅绿色到更浅绿色 */
    padding: 5px 10px; /* 内边距为10px上下、15px左右 */
    margin: 5px 5px; /* 段落之间的外边距为20px */
    border-radius: 5px; /* 圆角边框 */
    line-height: 1.6; /* 行高为1.6倍 */
}



/* 导航区域样式 */
.nav-area {
    background: #e7f3fe; /* 背景颜色为淡蓝色 */
}

/* 导航按钮样式 */
.nav-button {
    cursor: pointer; /* 鼠标悬停时显示为指针 */
    font-weight: bold; /* 字体加粗 */
    background: #2196F3; /* 背景颜色为蓝色 */
    color: white; /* 字体颜色为白色 */
    padding: 10px; /* 内边距为10px */
    text-align: center; /* 文字居中对齐 */
}

/* 导航内容样式 */
.nav-content {
    display: block; /* 以块级元素显示 */
}

/* 切换区域样式 */
.toggle-area {
    background: #e7f3fe; /* 背景颜色为淡蓝色 */
}

/* 切换头部样式 */
.toggle-header {
    cursor: pointer; /* 鼠标悬停时显示为指针 */
    font-weight: bold; /* 字体加粗 */
    background: #2196F3; /* 背景颜色为蓝色 */
    color: white; /* 字体颜色为白色 */
    padding: 10px; /* 内边距为10px */
    text-align: left; /* 文字右对齐 */
}

/* 切换内容样式 */
.toggle-content {
    display: none; /* 默认隐藏 */
    padding: 10px; /* 内边距为10px */
    background: #f9f9f9; /* 背景颜色为淡灰色 */
    border: 1px solid #ccc; /* 边框为1px浅灰色 */
    border-radius: 5px; /* 圆角边框 */
    margin-top: 5px; /* 顶部外边距为5px */
}

/* 页头样式 */
header {
    background: #2196F3; /* 背景颜色为蓝色 */
    color: white; /* 字体颜色为白色 */
    text-align: center; /* 文字居中对齐 */
    padding: 1px 0; /* 内边距为10px上下 */
}

/* 搜索容器样式 */
.search-container {
    display: inline-block; /* 宽度自适应内容 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    margin-top: 0px; /* 顶部外边距为10px */
}

/* Logo容器样式 */
.logo-container {
    width: 100px; /* 固定宽度为100px */
    display: flex; /* 使用Flexbox布局 */
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* 水平分布 */
    margin-right: 10px; /* 与搜索框的右边距 */
}

/* Logo样式 */
.logo {
    width: 60px; /* Logo宽度为60px */
    height: auto; /* 高度自动调整 */
}

/* 二维码样式 */
.qr-code {
    width: 60px; /* 二维码宽度为60px */
    height: auto; /* 高度自动调整 */
}

/* 搜索图标样式 */
.search-icon {
    position: relative; /* 相对定位 */
}

/* 功能区域样式 */
#buttonArea {
    width: 100%; /* 功能区域宽度为100% */
    display: flex; /* 使用Flexbox布局 */
    justify-content: center; /* 水平居中对齐 */
    background: #2196F3; /* 背景颜色为蓝色 */
    gap: 10px; /* 按钮之间的间距 */
}

/* 搜索输入框样式 */
#search {
    padding: 10px; /* 内边距为10px */
    border: 1px solid #ccc; /* 边框为1px浅灰色 */
    border-radius: 4px; /* 圆角边框 */
    min-width: 150px; /* 最小宽度为150px */
    max-width: 100%; /* 最大宽度为容器宽度 */
    transition: width 0.3s; /* 宽度变化的平滑过渡效果 */
}

/* 聚焦时扩大输入框 */
.search:focus {
    width: 200px; /* 聚焦时的宽度为200px */
    outline: none; /* 移除默认轮廓 */
    border-color: #66afe9; /* 聚焦时的边框颜色 */
}

/* 搜索图标样式 */
.search-icon::before {
    content: "🔍"; /* 搜索图标 */
    font-size: 20px; /* 字体大小为20px */
    position: absolute; /* 绝对定位 */
    right: 10px; /* 图标在搜索框内的位置 */
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 纵向平移 */
    pointer-events: none; /* 使图标不干扰输入 */
}

/* 文本输入框样式 */
input[type="text"] {
    padding: 10px; /* 内边距为10px */
    width: 300px; /* 宽度为300px */
}

/* 导航栏样式 */
nav {
    background: #35424a; /* 背景颜色为深灰色 */
    color: #ffffff; /* 字体颜色为白色 */
    padding: 10px; /* 内边距为10px */
}

/* 导航列表样式 */
nav ul {
    list-style: none; /* 去掉列表样式 */
    padding: 5px; /* 内边距为5px */
}

/* 导航列表项样式 */
nav ul li {
    margin-right: 15px; /* 右外边距为15px */
    color: #ffffff; /* 字体颜色为白色 */
    text-decoration: none; /* 移除下划线 */
}

/* 导航链接样式 */
nav a {
    display: block; /* 将链接设为块级元素，整行可点击 */
    text-decoration: none; /* 移除下划线 */
    padding: 5px; /* 内边距为5px */
    color: #ffffff; /* 链接颜色为白色 */
    transition: all 0.3s; /* 平滑过渡效果 */
}

/* 鼠标悬停时的效果 */
nav a:hover {
    background-color: rgba(240, 240, 240, 0.3); /* 悬停时的背景色，透明度提高 */
    border-radius: 4px; /* 圆角 */
}

/* 被点击时的效果 */
nav a:active {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 点击时的阴影效果 */
    transform: scale(0.98); /* 点击时稍微缩小 */
}

/* 主题内容样式 */
.topic {
    background: #fff; /* 白色背景 */
    margin-bottom: 20px; /* 每个话题下方的间距 */
    padding: 15px; /* 内部填充 */
    border-radius: 5px; /* 圆角 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 微弱阴影效果 */
}

/* 标签容器 */
.tabs {
    margin: 10px 0; /* 垂直间距 */
}

/* 标签按钮样式 */
.tablink {
    background: linear-gradient(45deg, #007bff, #0056b3); /* 渐变背景 */
    color: white; /* 字体颜色 */
    border: none; /* 无边框 */
    padding: 10px 15px; /* 内部填充 */
    cursor: pointer; /* 鼠标悬停时为手指光标 */
    margin-right: 5px; /* 按钮间距 */
    border-radius: 5px; /* 圆角 */
    transition: background 0.3s ease, transform 0.2s ease; /* 平滑过渡效果 */
    font-size: 14px; /* 字体大小 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 阴影效果 */
}

/* 标签按钮的悬停效果 */
.tablink:hover {
    background: linear-gradient(45deg, #0056b3, #007bff); /* 悬停时反转渐变 */
    transform: translateY(-2px); /* 悬停时轻微上升 */
}

/* 标签按钮的激活状态 */
.tablink:active {
    transform: translateY(1px); /* 点击时轻微下沉 */
}

/* 标签内容样式 */
.tabcontent {
    background: rgba(211, 236, 217, 0.6); /* 半透明的淡绿色背景 */
    border-radius: 5px; /* 圆角 */
    padding: 10px; /* 内部填充 */
    margin-top: 10px; /* 内容上方间距 */
}

/* 按钮样式 */
button {
    margin-top: 10px; /* 按钮上方间距 */
    padding: 5px 10px; /* 内部填充 */
}

/* 隐藏的元素 */
.hidden {
    display: none; /* 隐藏元素 */
}

/* 内容框样式 */
.content-box {
    background-color: #f0f0f0; /* 浅灰色背景 */
  
    border-radius: 5px; /* 圆角 */
    cursor: pointer; /* 鼠标悬停时为手指光标 */
    transition: background-color 0.3s, color 0.3s; /* 平滑过渡效果 */
    display: inline-block; /* 与其他内联元素对齐 */
}

/* 内容框的激活状态 */
.content-box.active {
    background-color: transparent; /* 移除背景色 */
    color: red; /* 字体颜色改为红色 */
}

/* 隐藏内容样式 */
.hidden-content {
    display: none; /* 默认隐藏内容 */
    color: red; /* 隐藏内容字体颜色 */
}

/* 当父元素激活时显示隐藏内容 */
.content-box.active .hidden-content {
    display: inline-block; /* 激活时显示内容 */
}

/* 可见内容样式 */
.visible-content {
    color: red; /* 可见内容字体颜色 */
}

/* 带下划线的文本 */
.underlined {
    text-decoration: underline; /* 添加下划线 */
}

/* 重要文本样式 */
.level1 {
    color: red; /* 重要项的字体颜色 */
}
.level1::before {
    content: "⭐️ "; /* 文本前添加星星符号 */
    color: red; /* 符号颜色 */
}

/* 警告文本样式 */
.level2 {
    color: orange; /* 警告项的字体颜色 */
}
.level2::before {
    content: "⚠️ "; /* 文本前添加警告符号 */
    color: orange; /* 符号颜色 */
}

/* 信息文本样式 */
.level3 {
    color: blue; /* 信息项的字体颜色 */
}
.level3::before {
    content: "ℹ️ "; /* 文本前添加信息符号 */
    color: blue; /* 符号颜色 */
}

.level4 {
    color: green; /* 可选项的字体颜色 */
}

.level4::before {
    content: "🔍 "; /* 文本前添加放大镜符号 */
    color: green; /* 符号颜色 */
}


/* 复制图标样式 */
.copy-icon {
    position: absolute;
    top: 10px;
    right: 40px;
    cursor: pointer;
    color: #007bff;
}

.copy-icon:hover {
    color: #c82333; /* 悬停时颜色 */
}

.copy-icon:active {
    transform: translateY(2px); /* 点击时向下移动2像素 */
    color: #0056b3; /* 点击时颜色变化（可选） */
}

/* 删除图标样式 */
.delete-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #007bff;
}

.delete-icon:hover {
    color: #c82333; /* 悬停时颜色 */
}

.delete-icon:active {
    transform: translateY(2px); /* 点击时向下移动2像素 */
    color: #0056b3; /* 点击时颜色变化（可选） */
}

.toggle-button {
            cursor: pointer;
            padding: 10px 15px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
        }

		.image-container img{
            cursor: pointer;
			width: 100%; /* 图片宽度自适应容器 */
            height: auto; /* 高度自动，保持纵横比 */
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
        }
        .modal img {

            max-width: 130%;
            max-height: 130%;
        }
		.carousel {
            position: relative;
            width: 100%;
            max-width: 100%; /* 最大宽度可根据需求调整 */
            overflow: hidden;
            margin: 0 auto;
        }

        .cards {
            display: flex;
            transition: transform 0.5s ease; /* 添加过渡效果 */
        }

        .card {
            flex: 0 0 100%; /* 使每张卡片占满整个轮播 */
            background-color: #f0f0f0;
            border: 1px solid #ddd;
            box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }

        .card img {
            max-width: 100%; /* 使图片最大宽度为卡片宽度 */
            max-height: 100%; /* 设置最大高度 */
            object-fit: contain; /* 保持宽高比，完整显示图片 */
        }

        .dots {
            text-align: center;
            margin-top: 10px;
        }

        .dot {
            display: inline-block;
            width: 10px;
            height: 10px;
            margin: 0 5px;
            border-radius: 50%;
            background-color: rgba(0, 0, 0, 0.3);
            cursor: pointer;
        }

        .dot.active {
            background-color: rgba(0, 0, 0, 0.7);
        }
		.overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none; /* 初始为隐藏 */
            justify-content: center;
            align-items: center;
        }
        /* 弹出框样式 */
        .popup {
            background-color: white;
            width: 80%;
            height: 80%;
            padding: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            overflow: hidden;
            position: relative; /* 用于定位关闭按钮 */
        }
        /* iframe 样式 */
        iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        /* 关闭按钮样式 */
        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #f44336;
            color: white;
            border: none;
            padding: 5px 10px;
            font-size: 24px;
            cursor: pointer;
            border-radius: 5px;
        }
        .close-btn:hover {
            background-color: #d32f2f;
        }
		 /* 底部备案区域样式 */
        .footer {
            background-color: #2196F3;
            color: white;
            text-align: center;
            padding: 15px 0;
            position: flex;
            bottom: 0;
            left: 0;
            width: 100%;
            font-size: 12px;
        }

        .footer a {
            color: #fff;
            text-decoration: none;
        }

        .footer a:hover {
            text-decoration: underline;
        }
		.table-blackwhitegray {
            width: 80%;
            margin: 20px auto;
            border-collapse: collapse;
            background-color: #fff;
        }

        .table-blackwhitegray th, .table-blackwhitegray td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        .table-blackwhitegray th {
            background-color: #333;
            color: white;
        }

        .table-blackwhitegray tr:nth-child(even) {
            background-color: #f2f2f2;
        }

        .table-blackwhitegray tr:hover {
            background-color: #ddd;
        }

        .table-blackwhitegray td {
            font-size: 14px;
            color: #555;
        }

        .table-blackwhitegray caption {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }

        /* 简约无边框表格 */
        .table-borderless {
            width: 80%;
            margin: 20px auto;
            border-spacing: 0;
        }

        .table-borderless th, .table-borderless td {
            padding: 12px;
            text-align: left;
        }

        .table-borderless th {
            background-color: #e0e0e0;
            font-weight: bold;
        }

        .table-borderless td {
            background-color: #fff;
        }

        .table-borderless tr:nth-child(even) td {
            background-color: #f9f9f9;
        }

        .table-borderless tr:hover td {
            background-color: #f1f1f1;
        }

        .table-borderless caption {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }

        /* 现代风格表格 */
        .table-modern {
            width: 80%;
            margin: 20px auto;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-collapse: collapse;
            background-color: #fff;
        }

        .table-modern th, .table-modern td {
            padding: 15px;
            text-align: left;
            font-size: 14px;
            color: #333;
        }

        .table-modern th {
            background-color: #4CAF50;
            color: white;
        }

        .table-modern tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        .table-modern tr:hover {
            background-color: #f1f1f1;
        }

        .table-modern caption {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin-bottom: 10px;
        }

        /* 彩色条纹表格 */
        .table-striped {
            width: 80%;
            margin: 20px auto;
            border-collapse: collapse;
        }

        .table-striped th, .table-striped td {
            padding: 12px;
            text-align: left;
        }

        .table-striped th {
            background-color: #2196F3;
            color: white;
        }

        .table-striped tr:nth-child(odd) {
            background-color: #e3f2fd;
        }

        .table-striped tr:nth-child(even) {
            background-color: #bbdefb;
        }

        .table-striped tr:hover {
            background-color: #90caf9;
        }

        .table-striped caption {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }

        /* 粗边框表格 */
        .table-thick-border {
            width: 80%;
            margin: 20px auto;
            border-collapse: collapse;
        }

        .table-thick-border th, .table-thick-border td {
            padding: 15px;
            text-align: left;
            font-size: 14px;
        }

        .table-thick-border th {
            background-color: #FF5722;
            color: white;
        }

        .table-thick-border td {
            border: 3px solid #FF5722;
        }

        .table-thick-border tr:nth-child(even) td {
            background-color: #FFEBEE;
        }

        .table-thick-border tr:hover {
            background-color: #FFCDD2;
        }

        .table-thick-border caption {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }
		
		.custom-underline {
			display: inline-block;
			text-decoration: underline;
            text-decoration-color: red; /* 设置下划线为红色 */
			text-decoration-thickness: 2px; /* 设置下划线的厚度 */
        }
		    /* 带批注的文本样式 */
		.with-note {
		  position: relative;
		  display: inline-block;
		  background-color: #fffbcc; /* 浅黄色背景 */
		  border-left: 5px solid red; /* 左侧红色边框 */
		  padding-left: 5px; /* 给文本一点左侧间距 */
		  cursor: pointer;
		}

		/* 批注文本样式 */
		.with-note .tooltiptext {
		  visibility: hidden;
		  width: 200px;
	 
		  text-align: center;
		  border-radius: 5px;
		  padding: 5px;
		  position: absolute;
		  z-index: 1;
		  bottom: 125%; /* 位于元素上方 */
		  left: 50%;
		  margin-left: -50px; /* 调整居中 */
	 
		  background-color: black;
		  color: #fff;
		}

		/* 鼠标悬停时显示批注 */
		.with-note:hover .tooltiptext {
		  visibility: visible;
		}
		
		 /* 卡片的基本样式 */
        .knowtip {
            display: none;  /* 默认隐藏 */
            position: absolute;
            border-radius: 12px;  /* 圆角 */
            background-color: #ffffff;
            padding: 20px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);  /* 柔和阴影 */
            width: 300px;
            z-index: 10;
        }

        /* 卡片头部样式 */
        .knowtip h3 {
            margin-top: 0;
            font-size: 20px;
            color: #333;
        }

        /* 卡片正文内容 */
        .knowtip p {
            font-size: 16px;
            color: #666;
            line-height: 1.6;
        }

        /* 链接的样式 */
        a.knowtip-link {
            color: #007BFF;
            text-decoration: none;
            cursor: pointer;
            font-weight: bold;
        }

        a.knowtip-link:hover {
            text-decoration: underline;
        }

        /* 让卡片位置根据链接的位置自动调整 */
        .knowtip-container {
            position: relative;
            display: inline-block;
        }