* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3f5f7;
  color: #333;
  font: 14px/1.7 "Microsoft YaHei", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #2f8be6;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

ul,
li,
h1,
h2,
h3,
p {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  box-shadow: 0 1px 10px rgba(23, 45, 70, .04);
}

.header .container {
  display: flex;
  align-items: center;
  min-height: 66px;
  gap: 34px;
}

.navbar-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-toggle {
  display: none;
}

.logo a {
  display: flex;
  align-items: center;
  width: 170px;
  height: 66px;
}

.logo img {
  width: auto;
  max-width: 170px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.primary-menu {
  flex: 1;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.menu-item a {
  display: block;
  padding: 22px 18px;
  color: #333;
  font-size: 16px;
}

.menu-item.active a,
.menu-item a:hover {
  color: #2f8be6;
}

#wrap {
  padding: 22px 0 32px;
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.main,
.sidebar {
  min-width: 0;
}

.slider-wrap {
  margin-bottom: 18px;
}

.main-slider {
  position: relative;
  float: left;
  width: calc(100% - 260px);
  height: 340px;
  overflow: hidden;
  background: #dce5ee;
}

.swiper-wrapper {
  position: relative;
  height: 100%;
}

.swiper-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s ease;
}

.swiper-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slide-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 42px 22px 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 44px;
  border: 0;
  background: rgba(0, 0, 0, .28);
  cursor: pointer;
  transform: translateY(-50%);
}

.swiper-button-prev {
  left: 0;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev::before,
.swiper-button-next::before {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 44px;
}

.swiper-button-prev::before {
  content: "<";
}

.swiper-button-next::before {
  content: ">";
}

.feature-post {
  float: right;
  width: 250px;
}

.feature-post li {
  position: relative;
  height: 104px;
  margin-bottom: 14px;
  overflow: hidden;
  background: #dce5ee;
}

.feature-post li:last-child {
  margin-bottom: 0;
}

.feature-post span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  padding: 26px 12px 10px;
  color: #fff;
  line-height: 1.45;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}

.sec-panel,
.widget {
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #edf0f4;
}

.sec-panel-head,
.widget-title {
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f4;
}

.sec-panel-head h2,
.sec-panel-head h1,
.widget-title {
  color: #222;
  font-size: 18px;
  font-weight: 600;
  line-height: 48px;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 18px;
}

.topic-wrap {
  position: relative;
  display: block;
  height: 118px;
  overflow: hidden;
  background: #dce5ee;
}

.topic-wrap span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 10px 9px;
  color: #fff;
  line-height: 1.5;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
}

.tabs {
  display: flex;
  flex-wrap: wrap;
}

.tabs .tab a {
  display: block;
  padding: 0 16px;
  line-height: 48px;
}

.tabs .active a {
  color: #2f8be6;
}

.post-loop {
  padding: 0 18px;
}

.post-loop .item {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #edf0f4;
}

.post-loop .item:last-child {
  border-bottom: 0;
}

.item-img {
  position: relative;
  height: 145px;
  overflow: hidden;
  background: #dce5ee;
}

.item-category {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 2px 9px;
  color: #fff;
  background: #2f8be6;
  border-radius: 2px;
  line-height: 1.7;
}

.post-loop .item-title {
  margin: -2px 0 8px;
  color: #252b33;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.item-excerpt {
  color: #687482;
  line-height: 1.8;
}

.item-meta {
  margin-top: 10px;
  color: #9aa4ae;
  font-size: 13px;
}

.archive-description {
  padding: 16px 18px 0;
  color: #687482;
}

.wordpress_pages {
  padding: 18px;
  border-top: 1px solid #edf0f4;
}

.wordpress_pages ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wordpress_pages a,
.wordpress_pages span {
  display: block;
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #e2e8ef;
  background: #fff;
  color: #687482;
  line-height: 32px;
  text-align: center;
}

.wordpress_pages .current,
.wordpress_pages a:hover {
  border-color: #2f8be6;
  background: #2f8be6;
  color: #fff;
}

.entry-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #edf0f4;
  color: #8c98a5;
}

.entry-breadcrumb li {
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 1.6;
}

.entry-breadcrumb .home {
  flex: 0 0 auto;
  color: #9aa4ae;
}

.entry-breadcrumb .fa-map-marker {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #9aa4ae;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.entry-breadcrumb .fa-map-marker::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 4px;
  height: 4px;
  background: #9aa4ae;
  border-radius: 50%;
  content: "";
}

.entry-breadcrumb a {
  color: #687482;
}

.entry {
  background: #fff;
  border: 1px solid #edf0f4;
}

.entry-head {
  padding: 24px 28px 18px;
  border-bottom: 1px solid #edf0f4;
}

.entry-title {
  color: #202832;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.45;
}

.entry-info {
  margin-top: 10px;
  color: #8c98a5;
  font-size: 13px;
}

.entry-info .dot {
  margin: 0 9px;
  color: #c3ccd5;
}

.entry-content {
  padding: 24px 28px 0;
  color: #323840;
  font-size: 16px;
  line-height: 2;
}

.entry-content p {
  margin-bottom: 18px;
}

.entry-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
  object-fit: contain;
}

.entry-copyright {
  margin: 26px 0 0;
  padding: 14px 16px;
  border: 1px solid #edf0f4;
  background: #f8fafc;
  color: #8c98a5;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.entry-copyright p {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.entry-footer {
  padding: 18px 28px 28px;
}

.entry-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.entry-tag a {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #e2e8ef;
  color: #687482;
  line-height: 1.6;
}

.entry-page {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  color: #687482;
}

.entry-related-title {
  margin-bottom: 12px;
  color: #202832;
  font-size: 18px;
  font-weight: 600;
}

.entry-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  padding-top: 12px;
  border-top: 1px solid #edf0f4;
}

.entry-related li {
  position: relative;
  padding-left: 14px;
  color: #4a5562;
  line-height: 1.7;
}

.entry-related li::before {
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 4px;
  background: #aeb8c3;
  border-radius: 50%;
  content: "";
}

.widget {
  padding-bottom: 4px;
}

.widget_post_thumb ul {
  padding: 14px;
}

.widget_post_thumb .item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}

.widget_post_thumb .item:first-child {
  padding-top: 0;
}

.widget_post_thumb .item:last-child {
  border-bottom: 0;
}

.widget_post_thumb .item-img {
  height: 66px;
}

.widget_post_thumb .item-title {
  max-height: 44px;
  overflow: hidden;
  color: #323840;
  line-height: 1.55;
}

.item-date {
  margin-top: 5px;
  color: #9aa4ae;
  font-size: 12px;
}

.empty,
.empty-slide {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: #8c98a5;
}

.footer {
  padding: 28px 0;
  color: #8a949f;
  background: #202832;
  text-align: left;
}

.footer-nav {
  display: flex;
  justify-content: flex-start;
  gap: 22px;
  margin-bottom: 12px;
}

.footer a {
  color: #c3ccd5;
}

@media (max-width: 980px) {
  body {
    padding-top: 50px;
    background: #f5f5f5;
  }

  .header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
  }

  .header .container {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 0 10px 0 15px;
  }

  .navbar-header {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-toggle {
    display: block;
    width: 34px;
    height: 34px;
    padding: 7px 6px;
    border: 0;
    background: transparent;
  }

  .navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #333;
  }

  .logo a {
    width: 150px;
    height: 50px;
  }

  .logo img {
    max-width: 150px;
    max-height: 26px;
  }

  .primary-menu {
    display: none;
    margin: 0 -10px 0 -15px;
    background: #1abc9c;
  }

  .primary-menu.is-open {
    display: block;
  }

  .navbar-nav {
    display: block;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, .05);
  }

  .menu-item a {
    display: block;
    padding: 0 20px;
    color: #fff;
    font-size: 15px;
    line-height: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
  }

  .menu-item.active a,
  .menu-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
  }

  #wrap {
    padding: 15px 0 20px;
  }

  .wrap {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-slider,
  .feature-post {
    float: none;
    width: 100%;
  }

  .feature-post {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
  }

  .feature-post li {
    margin-bottom: 0;
  }

  .topic-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 16px);
  }

  #wrap {
    padding-top: 15px;
  }

  .slider-wrap {
    margin: -15px -8px 15px;
  }

  .main-slider {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .slide-title {
    padding: 38px 12px 10px;
    font-size: 16px;
    line-height: 1.4;
  }

  .feature-post {
    display: none;
  }

  .sec-panel,
  .widget,
  .entry,
  .entry-breadcrumb {
    border-left: 0;
    border-right: 0;
  }

  .sec-panel {
    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: 15px;
  }

  .sec-panel-head,
  .widget-title {
    min-height: 44px;
    padding: 0 12px;
  }

  .sec-panel-head h1,
  .sec-panel-head h2,
  .widget-title {
    font-size: 17px;
    line-height: 44px;
  }

  .topic-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .topic-wrap {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .topic-wrap span {
    padding: 18px 8px 6px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }

  .tabs .tab a {
    padding: 0 12px;
    line-height: 44px;
  }

  .post-loop {
    padding: 0 12px;
  }

  .post-loop .item {
    position: relative;
    display: block;
    min-height: 98px;
    padding: 15px 0;
    overflow: hidden;
    border-bottom-color: #e9e9e9;
  }

  .post-loop .item-img {
    float: left;
    width: 33%;
    height: auto;
    aspect-ratio: 8 / 5;
    border-radius: 3px;
  }

  .post-loop .item-content {
    display: block;
    min-height: 82px;
    margin-left: 35%;
  }

  .item-category,
  .item-excerpt {
    display: none;
  }

  .post-loop .item-title {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
  }

  .post-loop .item-title a {
    display: -webkit-box;
    max-height: 50px;
    overflow: hidden;
    color: #000;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .post-loop .item-meta {
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    margin-top: 0;
    padding-left: 35%;
    color: #999;
    font-size: 13px;
    line-height: 20px;
  }

  .entry-breadcrumb {
    margin: -15px -8px 10px;
    padding: 10px 12px;
    font-size: 13px;
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    flex-wrap: nowrap;
  }

  .entry-head {
    padding: 18px 15px 10px;
    border-bottom: 0;
  }

  .entry-title {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
  }

  .entry-info {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    padding-bottom: 10px;
    font-size: 12px;
  }

  .entry-info .dot {
    margin: 0 6px;
  }

  .entry-content {
    padding: 0 15px;
    font-size: 16px;
    line-height: 1.8;
  }

  .entry-content p {
    margin-bottom: 20px;
  }

  .entry-content img {
    margin: 10px auto;
  }

  .entry-copyright {
    margin-top: 20px;
    padding: 12px;
  }

  .entry-head,
  .entry-footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .entry-footer {
    padding-top: 15px;
    padding-bottom: 18px;
  }

  .entry-related-title {
    font-size: 17px;
  }

  .entry-related {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 0;
  }

  .entry-page {
    margin-bottom: 16px;
  }

  .entry-tag {
    margin-bottom: 14px;
  }

  .entry {
    margin-bottom: 15px;
  }

  .footer {
    padding: 22px 0 18px;
    font-size: 13px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}
