/* 资料大全：页面结构、尺寸与配色对齐 49217.com/#/corpus。 */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: #333;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

.corpus-wrap {
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
}

.corpus-head {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 46px;
  display: grid;
  grid-template-columns: 52px 1fr 96px;
  align-items: center;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.corpus-head > a {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corpus-head > a svg,
.year-trigger svg,
.search-box svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.corpus-head > a svg {
  width: 18px;
  height: 18px;
  color: #333;
}

.corpus-head h1 {
  margin: 0;
  overflow: hidden;
  color: #323233;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size:0.32rem;
  font-weight: 500;
}

.corpus-head-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.corpus-head-right[hidden] {
  display: none;
}

.curyear {
  width: 50px;
  height: 35px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #03bf03;
  text-align: center;
  line-height: 35px;
  font-size:0.28rem;
}

.year-trigger {
  width: 32px;
  height: 40px;
  padding: 0;
  border: 0;
  background: #fff;
  color: #07c160;
}

.year-trigger svg {
  width: 17px;
  height: 17px;
}

.corpus-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  padding: 6px 11px;
  background: #f8f8f8;
}

.corpus-search[hidden] {
  display: none;
}

.search-box {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 18px;
  background: #fff;
}

.search-box svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  color: #c5c5c5;
}

.search-box input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #333;
  font-size:0.3rem;
}

.search-box input::placeholder {
  color: #b8b8b8;
}

.corpus-search > button {
  height: 36px;
  padding: 0;
  border: 0;
  background: #f8f8f8;
  color: #0bbd63;
  font-size:0.3rem;
}

.search-list {
  margin-top: 6px;
  padding: 10px 10px 0;
  background: #fff;
}

.search-item {
  float: left;
  width: 33.333%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #979797;
}

.search-item > div {
  width: min(96px, 100%);
  height: 28px;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid #979797;
  border-radius: 3px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 26px;
  font-size:0.28rem;
}

.corpus-back {
  display: block;
  width: 100%;
  height: 40px;
  margin-bottom: 8px;
  border: 0;
  background: #fff;
  color: #07c160;
  text-align: left;
  font-size:0.28rem;
}

.corpus-article-list article {
  margin-bottom: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.corpus-article-list article > button {
  display: block;
  width: 100%;
  padding: 13px;
  border: 0;
  background: #fff;
  text-align: left;
}

.corpus-article-list b,
.corpus-article-list p,
.corpus-article-list footer {
  display: block;
}

.corpus-article-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: #999;
  font-size:0.24rem;
}

.corpus-article-head>span {
  color: #666;
}

.corpus-tag {
  padding: 1px 5px;
  border-radius: 3px;
  background: #07c160;
  color: #fff;
  font-style: normal;
  line-height: 16px;
}

.corpus-tag.quality {
  background: #f0a020;
}

.corpus-article-list b {
  color: #333;
  font-size:0.3rem;
  line-height: 1.5;
}

.corpus-article-list p {
  margin-top: 6px;
  color: #999;
  font-size:0.24rem;
  line-height: 1.5;
}

.corpus-article-list footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  color: #aaa;
  font-size:0.22rem;
}

.corpus-article-list footer em {
  font-style: normal;
}

.corpus-article-empty {
  padding: 50px 10px;
  color: #999;
  text-align: center;
  font-size:0.26rem;
}

.corpus-load-more {
  padding: 14px 10px 24px;
  color: #999;
  text-align: center;
  font-size:0.24rem;
}

.corpus-article-detail {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 14px;
}

.corpus-article-detail h2 {
  margin: 0 0 14px;
  font-size:0.36rem;
}

.corpus-article-detail div {
  width: 100%;
  max-width: 100%;
  color: #444;
  font-size:0.28rem;
  line-height: 1.8;
}

.corpus-article-detail * {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: wrap !important;
}

.corpus-article-detail img,
.corpus-article-detail video,
.corpus-article-detail iframe {
  width: auto !important;
  height: auto !important;
}

.corpus-article-detail table {
  display: block;
  width: 100% !important;
  overflow-x: auto;
}

.corpus-empty {
  padding: 48px 10px;
  color: #969799;
  text-align: center;
  font-size:0.28rem;
}

.year-picker[hidden] {
  display: none;
}

.year-picker {
  position: fixed;
  z-index: 80;
  inset: 0;
}

.year-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
}

.year-picker > section {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: 480px;
  margin: auto;
  border-radius: 12px 12px 0 0;
  background: #fff;
}

.year-picker header {
  height: 44px;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.year-picker header button {
  height: 44px;
  border: 0;
  background: #fff;
  color: #333;
}

.year-picker header button:last-child {
  color: #07c160;
}

.year-picker h3 {
  margin: 0;
  text-align: center;
  font-size:0.3rem;
  font-weight: 500;
}

.year-options {
  max-height: 310px;
  padding: 8px 10px 14px;
  overflow-y: auto;
}

.year-options button {
  width: 100%;
  height: 42px;
  border: 0;
  border-bottom: 1px solid #f2f2f2;
  background: #fff;
  color: #666;
}

.year-options button.active {
  color: #07c160;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 80px;
  transform: translate(-50%, 8px);
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(34, 34, 34, 0.86);
  color: #fff;
  white-space: nowrap;
  font-size:0.24rem;
  opacity: 0;
  transition: 0.2s;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
