:root {
    --background-color: #f7f7f7;
    --black:#121212;
    --white:#ffffff;
    --blue:#0c498b;
    --red:#dd1111;
}

* {
    padding: 0;
    text-decoration: none;
    list-style: none;
    outline: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* 禁用iOS点击时的灰色背景 */
}

html {
    background-color:var(--background-color);
    font-size: 16px;
    width: 100%;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.icon {
   width: 1em; height: 1em;
   vertical-align: -0.15em;
   fill: currentColor;
   overflow: hidden;
}

.home {
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

.home .logo {
    background: url('../img/logo.svg');
    display: flex;
    height: 56px;
    width: 300px;
    margin-bottom: 30px;
    margin-top: -20%;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/**全局输入框聚焦禁用默认样式**/
input {
    border: none;
    background: var(--bg-input);
    color: var(--color);
}

input:focus {
    outline: none;
}

input:focus-within {
    border:none;
}

button {
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent; /* 禁用iOS点击时的灰色背景 */
}

a {
    color: #333;
    text-decoration: none;
}

/**搜索结果高亮**/
em {
    color: #d10000;
    font-style: normal;
    font-weight: bold;
}

/**首页搜索框**/
.home .search {
    width: 800px;
}

.search {
    display: flex;
    align-items: center;
    border: 1px solid #717171;
    border-radius: 6px;
    background: #f7f8fa;
    margin-top: 20px;
}
    
.search input {
    flex: 1;
    border: none;
    background: 0 0;
    height: 46px;
    font-size: 18px;
    outline: 0;
    padding: 10px;
    border-radius: 6px;
}
    
.search button{
    border: none;
    background: #535353;
    color: #fff;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.count {
    margin: 20px auto;
    font-size: 14px;
    color: #ababab;
    letter-spacing: 2px;
}

.count span {
    font-weight: bold;
    margin: 0 10px;
    font-style: italic;
    font-size: 20px;
    font-family: serif;
}

/**内页通用导航栏**/
header {
    position: fixed;
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.6s ease;
    z-index: 9999;
    background-color: #ffffff;
    box-shadow: 0 2px 6px #8b8b8b;
}

.nav {
    width: 1000px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.logo img {
    width: 200px;
}

.nav-search .search {
    margin: 0;
    border: none;
    background: #f1f1f1;
}

.nav-search .search input {
    height: 38px;
    font-size: 14px;
}

.nav-search .search button {
    width: 50px;
    height: 38px;
}


/**内页布局**/
.container {
    padding-top: 92px;
    display: flex;
    max-width: 1000px;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: nowrap;
    flex-direction: row;
    margin: 0 auto 20px;
}

.navbar {
    background: var(--white);
    width: 200px;
    text-align: center;
    padding: 30px;
    box-shadow: rgb(203 208 218) 0px 2px, rgb(48 52 63 / 20%) 0px 3px, rgb(48 52 63 / 20%) 0px 7px 7px, rgb(255 255 255) 0px 0px 0px 1px inset;
    margin-right: 10px;
}

.navbar li {
    letter-spacing: 2px;
    margin-bottom: 10px;
    padding: 10px 20px;
    cursor: pointer;
}

.navbar li.active {
    background: var(--black);
    color: var(--white);
    border-radius: 10px;
}

.main {
    flex: 1;
    background:var(--white);
    padding: 30px 50px 0;
    border-top: 1px solid #e7e7e7;
    box-shadow: rgb(203 208 218) 0px 2px, rgb(48 52 63 / 20%) 0px 3px, rgb(48 52 63 / 20%) 0px 7px 7px, rgb(255 255 255) 0px 0px 0px 1px inset;
}

span.total {
    margin: 10px 0;
    display: block;
    color: #8d8d8d;
    font-size: 14px;
    letter-spacing: 2px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ebebeb;
}

/**无数据**/
.nodata {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.nodata img{
    width: 300px;
    opacity: 0.5;
    pointer-events: none;
}

.nodata p {
    margin-top: 10px;
    color: #c7c7c7;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/**搜索结果列表**/
.post {
    padding: 20px 0;
    border-bottom: 1px solid #ededed;
}

.post-title a{
    font-size: 18px;
    color: var(--black);
    line-height: 1.5;
}

.post-meta {
    margin-top: 5px;
}

.post-meta span {
    margin-right: 10px;
    color: #8d8d8d;
    font-size: 13px;
}

/**分页**/
.pagination {
    display: flex;
    margin: 40px 0 10px;
    align-items: center;
    justify-content: center;
}

.pagination button {
    cursor: pointer;
    padding: 5px 8px;
    font-size: 14px;
    margin: 0 10px;
    color: #8d8d8d;
}

.pagination button.active {
    background: var(--black);
    color: var(--white);
    pointer-events: none;
}


#results-container {
    padding-bottom: 30px;
}
/**文章内页**/
.sidebar {
    width: 200px;
    margin-left: 10px;
    flex-shrink: 0;
    position: relative;
    display: block;
}

.main h1 {
    font-size: 1.7em;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: .5rem;
}

.law-info {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.law-info li {
    list-style: none;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    width: 100%;
}

.post-detail {
    padding: 20px 0;
    border-top: 1px solid #ededed;
    margin-top: 10px;
}

.post-detail h2 {
    display: block;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

.post-detail h3 {
    display: block;
    font-size: 1.2em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

.post-detail h4 {
    display: block;
    font-size: 1.1em;
    margin-block-start: 1.33em;
    margin-block-end: 1.33em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}

.post-detail p {
    line-height: 2;
    text-align: justify;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    font-size: 16px;
    margin-bottom: 1rem;
}


/**法条目录**/
.sidebar {
    position: sticky;
    top: 92px;
    box-sizing: border-box;
}

.law-menu {
    background: #fff;
    padding: 1em;
    border-left: #48484817 1px solid;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.menu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 2;
}

.title-text {
    font-size: 12px;
    display: inline;
    color: #111;
}

.title-text span {
    color: #1264f9;
    margin-right: 5px;
}

.menuBox {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #6b6b6b;
}

.menuBox i {
    margin-left: 5px; 
    font-size: 12px;
}

.menu-content {
    display: none; /* 初始隐藏内容 */
    padding-left: 1em;
    padding-bottom: 10px;
    overflow-y: auto; /* 垂直方向滚动条 */
}

/**滚动条样式**/
/*滚动条*/
.menu-content ul::-webkit-scrollbar {
	width: 5px;
	height: 1px;
}

.menu-content ul::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background-color: #cecece;
	background-image: -webkit-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.2) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.2) 75%,
      transparent 75%,
      transparent
  );
}

.menu-content ul::-webkit-scrollbar-track {
	box-shadow: inset 0 0 5px rgb(255 255 255 / 20%);
	background: #f1efef;
	border-radius: 10px;
}

.menu-content ul {
    font-weight: 500;
    max-height: 500px;
    list-style: none;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden auto;
}

.menu-content ul li {
    color: #999;
	letter-spacing: .5px;
	transition: .1s ease-in-out;
	border-color: #e9e9e9;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	cursor: pointer;
	font-weight: 400;
    padding-right: 12px;
}

.menu-content a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 2;
}

.menu-content ul dl li {
    font-weight: 300;
    margin-left: 8px;
}

/**当前页搜索**/
.law-search {
    background: #fff;
    padding: 1em;
    border-left: #48484817 1px solid;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.law-search .title-text {
    padding: 10px;
    margin-bottom: 10px;
    display: block;
}

.law-search input {
    border: #c3c3c3 1px solid;
    border-right: none;
    font-size: 15px;
    line-height: 2;
    padding: 0 8px;
    width: 60%;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
    overflow: hidden;
    margin-bottom: 10px;
}

.search-btn {
    background: #1264f9;
    border-bottom-right-radius: 2px;
    border-top-right-radius: 2px;
    border: none;
    padding: 0 18px 0 15px;
    color: #fff;
    cursor: pointer;
}

.searched {
    height: auto;
    overflow: hidden;
}
 
.searched span {
    font-size: 12px;
    margin: 1em 2em;
    text-align: center;
    color: #111;
    letter-spacing: 1px;
    width: 100%;
    overflow: hidden;
}

.searched span em {
    color: #ff0018;
    background: var(--white);
    letter-spacing: 0;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 14px;
    font-style: inherit;
}

.searched button {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex: 1 0 0%;
}

.right {
    text-align: right;
}

.tool-feedback {
    display: inline-flex;
    padding: 10px;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    cursor: pointer;
    font-size: 14px;
    line-height: 2;
    color: #9d9d9d;
}

.tool-feedback i {
    margin-right: 5px;
}

/**反馈弹框**/
.layui-layer-custom {
    max-width: 320px;
    border-width: 1px;
    border-color: rgba(219, 234, 254, 1);
    border-radius: 10px !important;
    background-color: rgba(255, 255, 255, 1);
    padding: 1rem !important;
    -webkit-background-clip: unset !important;
}

.layui-layer-custom .layui-layer-setwin{
    right: 20px;
    top: 20px;
}


.layui-layer-custom .layui-layer-title {
    font-weight: 600;
    color: rgba(107, 114, 128, 1);
    background-color: #fff;
    border-bottom: none;
    font-size: 16px;
    height: auto;
}

.layui-layer-custom .layui-layer-content{
    height: auto !important;
}

/* 表单容器的基本样式 */
#feedback-form {
    max-width: 400px; /* 控制表单的最大宽度 */
    margin: 0 auto; /* 居中显示 */
    padding: 10px 15px 0; /* 内边距 */
    background-color: #fff; /* 背景颜色为白色 */
    font-family: Arial, sans-serif; /* 字体样式 */
}

/* 单行布局的样式 */
.oneline {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

/* 标签的基本样式 */
.oneline label,.oneline p{
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
        font-size: 12px;
}

.oneline label span,.oneline p span{
    color: #ff3c3c;
    font-size: 12px;
    margin-left: 5px;
}


/*下拉菜单、文本区域的基本样式 */
.oneline select, 
.oneline textarea {
    width: 100%; /* 宽度占满父容器 */
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box; /* 包括内边距和边框 */
    background: none;
    text-align: left;
    text-align-last: left;
}



/* 文本区域（textarea）的特殊样式 */
.oneline textarea#message {
    resize: none;
    height: 100px; /* 初始高度 */
    padding: 15px 20px;
}

/* 链接的样式 */
.oneline a {
    color: #007BFF;
    text-decoration: none;
    font-size: 14px;
}

/* 按钮样式 */
.feedback button[type="submit"] {
    margin: 10px 0;
    background-color: #247dff;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 5px;
    height: 40px;
    width: 100%;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.feedback button[type="submit"]:hover {
    background-color: #1264f9;
    transition: all .2s ease-in-out;
}


/**响应式设计，放在最后**/
.m{
    display: none;
}

.pc {
    display: block;
}

