* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-size: 14px;
}
ul,li{
  list-style: none;
}
a {
  text-decoration: none;
}
input:focus {
  outline: none;
}
.layout {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  background-color: #eee;
  height: 100vh;
  overflow: hidden;
}
.header {
  position: relative;
  height: 48px;
  background: linear-gradient(30deg, #FCCFD9, #eca3f6);
  text-align: center;
  line-height: 48px;
  color: #fff;
}
.header strong {
  font-size: 16px;
}
.header .back {
  color: #fff;
}
.header .iconfont {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}
.main {
  flex: 1;
  overflow: auto;
  padding: 15px;
}
.main .list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.main .list li {
  padding: 10px;
  background-color: #fff;
  border-radius: 5px;
}
.main .list a {
  display: block;
}
.main .list img {
  display: block;
  max-width: 100%;
  background-color: #f7f7f7;
}
.main .list .label {
  margin-top: 10px;
  color: #333;
}
.main .list .time {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #999;
}
.tab {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 48px;
  background-color: #fff;
  text-align: center;
  box-shadow: 0 -2px 6px rgba(0,0,0,.1);
}
.tab a {
  display: block;
  height: 100%;
  line-height: 48px;
  color: #666;
}
.tab .iconfont {
  font-size: 24px;
}
.tab .active a {
  background: linear-gradient(30deg, #FCCFD9, #eca3f6);
  color: #fff;
}
.search-result {
  margin-bottom: 15px;
  color: #666;
}
.search-result strong {
  color: #333;
}
.tag-list  {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.tag-list a {
  display: block;
  padding: 8px 20px;
  background-color: #fff;
  border-radius: 5px;
  color: #333;
  text-align: center;
}
.tag-list .active a {
  color: #fff;
  background-color: #F4BAE6;
}
.pagination {
  display: flex;
  margin-top: 15px;
  text-align: center;
  justify-content: center;
}
.pagination a {
  height: 40px;
  border-radius: 5px;
  padding: 0 15px;
  background-color: #fff;
  margin-right: 15px;
  line-height: 40px;
  color: #666;
}
.pagination input {
  border: none;
  border-radius: 5px;
  height: 40px;
  line-height: 40px;
  width: 50px;
  text-align: center;
  padding: 0 15px;
  margin-right: 15px;
}
.pagination .total {
  border-radius: 5px;
  padding: 0 15px;
  line-height: 40px;
  background-color: #fff;
  color: #666;
}
.search-popup {
  display: none;
  position: absolute;
  z-index: 9;
  padding: 10px 15px;
  background-color: #fff;
  left: 0;
  right: 0;
  bottom: 48px;
}
.search-popup.active {
  display: flex;
}
.search-popup input {
  flex: 1;
  border-radius: 5px;
  border: 1px solid #999;
  height: 40px;
  padding: 0 15px;
}
.search-popup button {
  margin-left: 10px;
  border-radius: 5px;
  border: none;
  background-color: #F4BAE6;
  color: #fff;
  height: 40px;
  padding: 0 20px;
}
/* 详情页 */
.detail .title h1 {
  color: #333;
  text-align: center;
}
.detail .title .time {
  color: #666;
}
.detail .info {
  display: flex;
  align-items: center;
}
.detail .info ul {
  flex: 1;
  display: flex;
}
.detail .info li {
  margin-right: 10px;
}
.detail .info a {
  display: block;
  padding: 4px 8px;
  background-color: #fff;
  color: #333;
  border-radius: 3px;
}
.detail .info time {
  color: #999;
}
.detail .img-link {
  display: block;
  margin: 15px 0;
}
.detail img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}
.detail .statement {
  color: #aaa;
  text-align: center;
}
.detail .statement a {
  color: #aaa;
  text-decoration: underline;
}
.copyright {
  text-align: center;
  color: #ccc;
  margin-top: 15px;
}
.copyright a {
  color: #aaa;
}
.empty-tips {
  padding: 30px 0;
  text-align: center;
  color: #aaa;
}