/* 基础样式 */
/* 滚动条样式 */
::-webkit-scrollbar {
  width: 10px;
  /* 定义滚动条的宽度 */
  height: 10px;
  /* 定义滚动条的高度 */
}

/* 滚动条轨道 */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* 定义滚动条轨道的背景颜色 */
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  background: #888;
  /* 定义滚动条滑块的背景颜色 */
}

/* 滚动条箭头 */
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
  background: #555;
  /* 定义滚动条箭头的背景颜色 */
}

/* 滚动条箭头（鼠标悬停时） */
::-webkit-scrollbar-button:start:decrement:hover,
::-webkit-scrollbar-button:end:increment:hover {
  background: #666;
  /* 定义鼠标悬停时滚动条箭头的背景颜色 */
}

html,
body,
span,
div,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
pre,
a,
em,
img,
strong,
b,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tr,
th,
td,
textarea {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ol,
ul {
  list-style: none;
}

[hidden] {
  display: none;
}

a:focus {
  outline: thin dotted;
}

a:active,
a:hover {
  outline: 0;
}

a,
a:link,
a:visited,
a:active {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: rgba(232, 186, 34, 0.908);
}

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  white-space: normal;
  *margin-left: -7px;
}

button,
input,
select,
textarea {
  font-size: 100%;
  vertical-align: baseline;
  *vertical-align: middle;
  outline: none;
}

button,
select {
  text-transform: none;
}

button,
input {
  line-height: normal;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
  *overflow: visible;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  *height: 13px;
  *width: 13px;
}

input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
  resize: vertical;
}

[contenteditable]:focus {
  outline: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img {
  vertical-align: middle;
  border: 0;
  -ms-interpolation-mode: bicubic;
}

html,
body {
  font-family: "-apple-system", "BlinkMacSystemFont", "SF UI Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI",
    "Microsoft YaHei", Arial, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  line-height: 1.5em;
  font-weight: 300;
  color: #111;
  background-color: #ffffff;
  height: 100%;
  /* 使body和html占满整个视口 */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  /* white-space: pre-wrap; */
  scroll-behavior: smooth;
}

button,
input,
select,
textarea {
  font-family: Tahoma, Arial, \5b8b\4f53;
}

pre,
code {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.75em;
  color: #000000;
}

code {
  background-color: #f8f8f8;
  border: solid 1px #f5f5f5;
  padding: 10px 15px;
  box-sizing: border-box;
  border-radius: 5px;
  margin: 10px 0;
  /* white-space: pre-wrap;
        word-wrap: break-word;
        word-break: break-all; */
  word-break: normal;
  overflow-x: auto;
  overflow-y: hidden;
  display: block;
}

code table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

header,
footer,
.main {
  width: 80%;
  margin: 0 auto;
}

header {
  height: auto;
  font-size: 16px;
}

header .tops {
  width: 100%;
  text-align: right;
  border-bottom: solid 1px #00000011;
  padding: 10px 10px;
}

header .logo {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  margin: 10px 10px 30px 10px;
}

header .logo .title {
  flex: 4;
  min-height: 50px;
}

header .logo .title img {
  width: 50px;
  cursor: pointer;
}

header .logo .title h3 {
  margin-top: 10px;
}

header .logo .rtbox {
  flex: 1;
  text-align: right;
}

header nav {
  width: 100%;
  margin: 10px 0;
  border: solid 1px #00000004;
}

header nav ul {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

header nav ul li {
  /*
    flex: 1;
    max-width: 25%;
    min-width: 160px;
    */
  flex: 0 0 16.66%;
  max-width: 16.66%;
  text-align: center;
}

header nav ul li a {
  display: block;
  background-attachment: fixed;
  background-color: #00000004;
  margin: 1px 1px;
  line-height: 2.5em;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

header nav ul li a:hover {
  background-color: #00000008;
}

footer {
  height: auto;
  background-color: #00000002;
  color: #0000006f;
  font-size: 14px;
  text-align: center;
  line-height: 2.5em;
  padding: 5px 20px;
  box-sizing: border-box;
}

.main {
  padding: 15px;
  border: solid #f2f2f2 1px;
  background: #fff;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.view {
  font-size: 14px;
}

.tag {
  border: solid 1px #00000010;
  margin: 10px auto;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  position: relative;
  max-width: 100%;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.tag .box img {
  max-width: 98%;
  max-height: 100%;
}

.box {
  line-height: 2.5em;
  font-weight: 300;
}

.tablebox {
  margin: 10px auto;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

table.reference {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 4px;
  margin-top: 4px;
}

table.reference th {
  color: #fff;
  background-color: #555;
  border: 1px solid #555;
  font-size: 13px;
  padding: 3px;
  vertical-align: top;
  text-align: left;
}

table.reference td {
  line-height: 2em;
  min-width: 24px;
  border: 1px solid #d4d4d4;
  padding: 5px;
  padding-top: 7px;
  padding-bottom: 7px;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

table.reference tr:nth-child(odd) {
  background-color: #f6f4f0;
}

table.reference tr:nth-child(even) {
  background-color: #fff;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 0.3rem 0.5rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  user-select: none;
  margin: 2px 1px;
}

.btn:hover {
  /* background: #0056b3; */
  opacity: 0.8;
}

/* 颜色扩展 */
.btn-primary {
  background: #2196f3;
  color: white;
}

.btn-secondary {
  background: #4caf50;
  color: white;
}

.btn-danger {
  background: #f44336;
  color: white;
}

.btn-warning {
  background: #ff9800;
  color: white;
}

.word {
  padding: 0.3rem 0.5rem;
  border: solid 1px #007bff;
  border-radius: 4px;
  font-size: 1rem;
  margin: 2px 1px;
}

.printArea {
  border: 1px dashed #a8d0f8;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -ms-transition: 0.3s;
  -o-transition: 0.3s;
}

.printArea:hover {
  border: 1px dashed #52a4f6;
}

.newslist {
  width: 100%;
  min-height: 300px;
}

.newslist .item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: dotted 1px #00000010;
  padding: 0 5px;
  box-sizing: border-box;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.newslist .item:hover {
  background: #00000010;
}

.newslist .item .title {
  flex: 0 0 26%;
  color: #ef611d;
}

.newslist .item .title span {
  min-width: 30px;
  color: #ef5f1da5;
}

.newslist .item .desc {
  flex: 0 0 70%;
  color: #000000aa;
  /* text-align: right; */
}

.noinfo {
  text-align: center;
  color: #ef5f1da5;
}

#tagmsg {
  white-space: nowrap;
  padding: 3px 5px;
  margin: 5px 5px;
  background: #00000010;
  color: #e27e27;
  box-sizing: border-box;
  display: inline-block;
  border-radius: 4px;
}

.artlist {
  width: 100%;
  min-height: 200px;
  border-collapse: collapse;
  border: 1px solid #00000010;
}

.artlist .header {
  background: #00000010;
}

.artlist .item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: dotted 1px #00000010;
  padding: 0 5px;
  box-sizing: border-box;
  /* gap: 10px; */
  padding: 8px 10px;
}

.artlist .item:hover {
  background: #00000010;
}

.artlist .item div {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-right: 1px solid #00000010;
}

.artlist .item div:last-child {
  border-right: none;
}

/* .artlist .item .title {
    flex: 0 0 26%;
}

.artlist .item .age {
    flex: 0 0 26%;
}

.artlist .item .city {
    flex: 0 0 26%;
} */

/* 通用分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 3px 0;
  margin: 5px 2px;
  border: solid 1px #00000010;
  background: #00000002;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}

.pagination a:hover {
  background: #00000008;
}

.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 3px 5px;
  margin: 5px 2px;
  border: solid 1px #00000010;
  background: #00000002;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}

.pagination span.active {
  border: solid 1px #0000000d;
  background: #00000006;
  color: #0000001f;
}

.pagination span:hover {
  background: #00000008;
}

.navlist {
  position: relative;
  overflow: hidden;
}

.navlist-hidden {
  max-height: 84px;
}

/* 通用背景文字样式 - 使用attr()动态获取data-bg属性 */
.navlist .item {
  position: relative;
}

.navlist .item:before {
  content: attr(data-bg);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: start;
  justify-content: left;
  color: #f00433;
  font-size: 12px;
  font-weight: 300;
  padding: 2px 0 0 4px;
  box-sizing: border-box;
  opacity: 0.5;
  transform: rotate(0deg);
  z-index: 1;
  transition: all 0.3s ease;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  pointer-events: none;
}

.navlist .item:hover:before {
  color: #f60505;
  opacity: 0.8;
}

.navlist .item.function {
  background: #00000004;
}

.navlist .item.baidu {
  background: #efd6d640;
}

.navlist .item.gaode {
  background: #efecd640;
}

.navlist .item.tengxun {
  background: #adf4a940;
}

.navlist .item.tianditu {
  background: #a9e1f440;
}

.navlist .item.OpenLayers {
  background: #f4a9e940;
}

.navlist .item:hover {
  background: #00000010;
}

.navlist a.active {
  color: #e86a03;
}

/* 高德地图版权 */
.amap-logo {
  display: none !important;
}

.amap-copyright {
  display: none !important;
}

/* 响应式 */
@media only screen and (max-width: 1024px) {
  header,
  footer,
  .main {
    width: 90%;
    margin: 0 auto;
  }

  header nav ul li {
    flex: 0 0 25%;
    /* 100% / 3 = 33.33% */
    max-width: 25%;
    text-align: center;
  }
}

@media only screen and (max-width: 768px) {
  header,
  footer,
  .main {
    width: 96%;
    margin: 0 auto;
  }

  header nav ul li {
    flex: 0 0 25%;
    /* 100% / 4 = 25% */
    max-width: 25%;
  }
}

@media only screen and (max-width: 640px) {
  header,
  footer,
  .main {
    width: 98%;
    margin: 0 auto;
  }

  .navlist-hidden {
    max-height: 168px;
  }

  header nav ul li {
    flex: 0 0 50%;
    /* 100% / 3 = 33.33% */
    max-width: 50%;
  }

  .modal .modal-content {
    max-width: 100% !important;
    width: 100% !important;
  }

  .newslist .item .title {
    flex: 0 0 100%;
    cursor: pointer;
  }

  .newslist .item .desc {
    flex: 0 0 100%;
    /* text-align: right; */
  }
}
