:root {
  --page-bg: #ffffff;
  --text-main: #2b2b2b;
  --text-sub: #666666;
  --text-faint: #aaaaaa;
  --brand: #30a1ff;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
  min-width: 320px;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.hero {
  height: 220px;
  background:
    linear-gradient(180deg, rgba(10, 108, 237, 0.12), rgba(10, 108, 237, 0.08)),
    url("../images/tbg.png") center top / cover no-repeat;
}

.page-main {
  padding: 42px 0 56px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-title {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: var(--brand);
  font-size: 30px;
  font-weight: 400;
  line-height: 32px;
}

.page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 4px;
  height: 28px;
  background: var(--brand);
}

.page-back {
  color: var(--text-sub);
  font-size: 15px;
}

.page-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.page-tab {
  position: relative;
  isolation: isolate;
  height: 86px;
  border: 0;
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.page-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("../images/abg.png") center / cover no-repeat;
  opacity: 0.68;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.page-tab > * {
  position: relative;
  z-index: 1;
}

.page-tab.is-active {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(48, 161, 255, 0.28);
}

.page-tab.is-active::before {
  opacity: 1;
}

.page-tab__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}

.page-tab__icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.list-panel {
  min-height: 360px;
}

.list-state {
  display: none;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 15px;
  text-align: center;
}

.list-state.is-visible {
  display: flex;
}

.list-state.is-loading {
  min-height: 360px;
  color: transparent;
}

.list-state.is-loading::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 3px solid rgba(48, 161, 255, 0.16);
  border-top-color: rgba(48, 161, 255, 0.88);
  border-radius: 50%;
  animation: stateSpin 0.8s linear infinite;
}

.list-panel ul {
  display: grid;
}

.list-state.is-loading + ul {
  display: none;
}

.list-panel li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding-left: 18px;
  min-height: 46px;
}

.list-panel li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--brand);
  font-size: 30px;
  line-height: 38px;
}

.list-link {
  color: #000000;
  font-size: 17px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-meta {
  color: var(--brand);
  font-size: 15px;
  white-space: nowrap;
}

.list-date {
  color: #000000;
  font-size: 15px;
  white-space: nowrap;
}

.list-panel--simple li {
  padding-top: 8px;
  padding-bottom: 8px;
}

.list-panel--simple .list-link {
  white-space: nowrap;
}

.pagination {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pagination.is-visible {
  display: flex;
}

.pagination__button,
.pagination__page {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 14px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pagination__button:hover,
.pagination__page:hover {
  border-color: #9ecfff;
  box-shadow: 0 8px 20px rgba(48, 161, 255, 0.12);
}

.pagination__button[disabled],
.pagination__page[disabled] {
  cursor: not-allowed;
  color: #b8c2cf;
  background: #f6f8fb;
  border-color: #e7edf5;
  box-shadow: none;
}

.pagination__page.is-active {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(48, 161, 255, 0.22);
}

.pagination__ellipsis,
.pagination__summary {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 24px;
}

@keyframes stateSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.footer {
  padding: 0 0 42px;
}

.footer__inner {
  text-align: center;
  color: #8f8f8f;
  font-size: 12px;
  line-height: 1.9;
}

.footer__inner p {
  margin: 0;
}

.footer__inner a {
  color: inherit;
}

@media (max-width: 900px) {
  .hero {
    height: 160px;
  }

  .page-main {
    padding: 30px 0 42px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero {
    height: 18vw;
    min-height: 96px;
    max-height: 132px;
  }

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

  .page-title {
    font-size: 24px;
    line-height: 26px;
  }

  .page-tabs {
    gap: 8px;
    margin-bottom: 16px;
  }

  .page-tab {
    height: 62px;
    gap: 6px;
    padding: 0 6px;
    font-size: 14px;
    border-radius: 8px;
  }

  .page-tab__icon {
    width: 18px;
    height: 18px;
  }

  .list-panel li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 5px;
    padding-bottom: 8px;
    min-height: 0;
  }

  .list-link {
    font-size: 14px;
    line-height: 22px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .list-meta,
  .list-date {
    font-size: 12px;
    line-height: 18px;
  }

  .list-meta {
    margin-top: 4px;
  }

  .list-date {
    color: #7f7f7f;
  }

  .list-state {
    min-height: 112px;
    font-size: 14px;
  }

  .pagination {
    gap: 6px;
    margin-top: 22px;
  }

  .pagination__button,
  .pagination__page {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 34px;
    border-radius: 7px;
  }

  .pagination__summary {
    width: 100%;
    text-align: center;
    font-size: 13px;
  }
}
