: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 {
  position: relative;
  overflow: hidden;
  height: 330px;
  background:
    linear-gradient(180deg, rgba(10, 108, 237, 0.1), rgba(10, 108, 237, 0.1)),
    url("../images/tbg.png") center top / cover no-repeat;
}

.main-content {
  padding: 66px 0 0;
}
.module,
.side-panel {
  background: #ffffff;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title span {
  position: relative;
  padding-left: 12px;
  color: var(--brand);
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;
}

.section-title span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 4px;
  height: 22px;
  background: var(--brand);
}

.section-title__more {
  color: var(--text-faint);
  font-size: 16px;
  line-height: 16px;
}

.module-state {
  display: none;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 22px;
}

.module-state.is-visible {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.module-state.is-loading,
.list-state.is-loading {
  margin-bottom: 0;
  color: transparent;
}

.module-state.is-loading::before,
.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;
}

#practicalState.is-visible {
  min-height: 132px;
  justify-content: center;
  padding: 0;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel__item {
  position: relative;
  width: 100%;
  min-width: 100%;
  height: 429px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.2) 100%),
    var(--slide-bg, linear-gradient(135deg, #91c7ff, #fef4e2));
}

.carousel__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.72), transparent 22%),
     linear-gradient(155deg, transparent 40%, rgba(255, 255, 255, 0.2) 52%, transparent 64%);
}

.carousel__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

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

.carousel__caption {
  position: absolute;
  left: 24px;
  bottom: 26px;
  color: #ffffff;
  font-size: 24px;
  line-height: 24px;
}

.carousel__dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 12px;
}

.carousel__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  background: #959595;
  border-radius: 50%;
  cursor: pointer;
}

.carousel__dot.is-active {
  background: #d8d8d8;
}

.news-list {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 132px;
}

.news-list li {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding-left: 18px;
  color: #000000;
  font-size: 16px;
  line-height: 24px;
  padding-top: 7px;
  padding-bottom: 7px;
}

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

.news-list .list-link {
  display: -webkit-box;
  color: #000000;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 24px;
  word-break: break-word;
}

.news-list .list-link::before,
.news-list .list-meta,
.news-list .list-date {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: 760px 1fr;
  gap: 38px;
  align-items: start;
}

.content-main {
  display: grid;
  gap: 34px;
}

.module--banner {
  margin-bottom: 2px;
}

.module--banner.is-empty {
  display: none;
}

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

.ask-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: 24px;
  cursor: pointer;
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.ask-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;
}

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

.ask-tab:not(.is-active) {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

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

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

.ask-tab.is-active span:last-child {
  font-weight: 600;
}

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

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

.list-state {
  display: none;
  margin-bottom: 8px;
  color: var(--text-sub);
  font-size: 14px;
}

.list-state.is-visible {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#practicalState.is-loading + .news-list,
#askState.is-loading + .topic-list,
#replyState.is-loading + .topic-list {
  display: none;
}

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

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

.topic-list {
  display: grid;
  min-height: 132px;
}

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

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

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

.list-meta {
  color: var(--brand);
  font-size: 16px;
  line-height: 38px;
  white-space: nowrap;
}

.list-date {
  color: #000000;
  font-size: 16px;
  line-height: 38px;
  white-space: nowrap;
}

.content-side {
  display: grid;
  gap: 12px;
}

.cta-card {
  position: relative;
  display: block;
  height: 130px;
  overflow: hidden;
}

.cta-card--primary {
  background: url("../images/wenzheng.png") center / cover no-repeat;
}

.cta-card--secondary {
  background: url("../images/zhengwu.png") center / cover no-repeat;
}

.side-panel {
  padding-top: 4px;
}

.side-panel--practical {
  padding-top: 0;
}

.tag-cloud-panel {
  width: 100%;
  height: 290px;
  padding: 12px;
  border: 1px solid #c5ddf7;
}

.tag-cloud {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: translateY(-10px);
}

.tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(95, 130, 190, 0.14);
  transform-origin: center;
  animation: cloudSway var(--sway-duration, 4.8s) ease-in-out var(--sway-delay, 0s) infinite;
  will-change: transform;
}

.tag-cloud__bar {
  position: absolute;
  height: 12px;
  border-radius: 999px;
  background: rgba(228, 228, 228, 0.7);
}

.tag-cloud__bar--2 {
  opacity: 0.7;
}

.tag-cloud__bar--3 {
  opacity: 0.45;
}

.tag--xs {
  min-height: 26px;
  font-size: 12px;
}

.tag--sm {
  min-height: 30px;
  font-size: 13px;
}

.tag--md {
  min-height: 38px;
  font-size: 15px;
}

.tag--lg {
  min-height: 44px;
  font-size: 17px;
}

.tag--xl {
  min-height: 52px;
  font-size: 18px;
}

.tag--blue,
.tag--sky {
  background: linear-gradient(180deg, #85b8ff 0%, #6ea4ef 100%);
}

.tag--yellow,
.tag--gold {
  background: linear-gradient(180deg, #ffd361 0%, #f1bc44 100%);
}

.tag--purple,
.tag--lavender {
  background: linear-gradient(180deg, #b595ff 0%, #9d7eee 100%);
}

.tag--indigo,
.tag--deepblue {
  background: linear-gradient(180deg, #6c82f0 0%, #5670e0 100%);
}

.tag--red,
.tag--rose,
.tag--coral {
  background: linear-gradient(180deg, #ef8a92 0%, #e26d77 100%);
}

.tag--orange {
  background: linear-gradient(180deg, #ffbc68 0%, #f49d3d 100%);
}

@keyframes cloudSway {
  0%,
  100% {
    transform: translateX(calc(var(--sway-distance, 6px) * -1)) rotate(calc(var(--sway-rotate, 1deg) * -1));
  }

  50% {
    transform: translateX(var(--sway-distance, 6px)) rotate(var(--sway-rotate, 1deg));
  }
}

.qrcode-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 6px;
}

.qrcode-box {
  text-align: center;
}

.qrcode-frame {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #c5ddf7;
}

.qrcode-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qrcode-image--wechat {
  transform: scale(1.12);
  transform-origin: center;
}

.qrcode-box p {
  margin: 12px 0 0;
  color: #2b2b2b;
  font-size: 16px;
  line-height: 20px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-list__item {
  position: relative;
  margin: 0;
  padding-left: 26px;
  color: #2b2b2b;
  font-size: 16px;
  line-height: 20px;
}

.contact-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.contact-list__item--phone::before {
  background-image: url("../images/phone.png");
}

.contact-list__item--mail::before {
  background-image: url("../images/mail.png");
}

.footer {
  padding: 64px 0 46px;
}

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

.footer__inner p {
  margin: 0;
}

.footer__inner a {
  color: inherit;
}

.footer__links {
  margin-bottom: 2px;
  color: #4a4a4a;
}

@media (max-width: 1220px) {
  .content-grid {
    grid-template-columns: 1fr 360px;
  }
}

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

  .main-content {
    padding-top: 34px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .content-main {
    gap: 26px;
  }

  .carousel__item {
    height: 52vw;
    min-height: 250px;
  }
  .content-side {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding-top: 28px;
  }

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

  .hero {
    height: 18vw;
    min-height: 96px;
    max-height: 132px;
    background-position: center top;
    background-size: cover;
  }

  .section-title span {
    font-size: 20px;
    line-height: 22px;
  }

  .section-title__more {
    font-size: 13px;
  }

  .ask-tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }

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

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

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

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

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

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

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

  .list-link,
  .list-meta,
  .list-date,
  .news-list li {
    font-size: 14px;
  }

  .news-list li,
  .news-list .list-link {
    line-height: 21px;
  }

  .carousel__item {
    height: 56vw;
    min-height: 210px;
  }

  .carousel__caption {
    left: 16px;
    right: 16px;
    bottom: 18px;
    font-size: 17px;
    line-height: 24px;
  }

  .carousel__dots {
    right: 14px;
    bottom: 12px;
    gap: 8px;
  }

  .carousel__dot {
    width: 8px;
    height: 8px;
  }

  .module-state.is-visible,
  .list-state.is-visible,
  #practicalState.is-visible {
    min-height: 96px;
  }

  .cta-card {
    height: 92px;
  }

  .side-panel,
  .module {
    padding-top: 0;
  }

  .qrcode-wrap {
    gap: 12px;
  }

  .qrcode-box p {
    margin-top: 8px;
    font-size: 14px;
  }

  .tag-cloud-panel {
    height: 220px;
    padding: 8px;
  }

  .contact-list {
    margin-top: 14px;
    gap: 8px;
  }

  .contact-list__item {
    font-size: 14px;
    line-height: 18px;
  }

  .footer {
    padding: 42px 0 30px;
  }

  .footer__licenses {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .footer__licenses span,
  .footer__licenses a {
    display: block;
  }
}

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

  .ask-tab {
    height: 58px;
    font-size: 13px;
  }

  .ask-tab span:last-child {
    letter-spacing: -0.2px;
  }

  .carousel__item {
    min-height: 186px;
  }

  .carousel__caption {
    font-size: 15px;
    line-height: 21px;
  }

  .qrcode-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
