/*
 * WordPress compatibility only.
 * The complete visual system lives in static.css, copied from /static/css/style.css.
 * Keep layout, spacing, typography and component styling in that source of truth.
 */

.tnlt-inner-hero {
  background-image: var(--hero-image) !important;
}

.brand img,
.footer-brand img {
  object-fit: contain;
}

.lang-switch {
  text-decoration: none;
}

.home-hero[tabindex] {
  outline: 0;
}

.certificate-preview {
  width: 100%;
  border: 0;
  color: inherit;
  cursor: zoom-in;
}

.certificate-slider.is-static .certificate-slider-controls,
.partner-carousel.is-static .partner-carousel-arrow {
  visibility: hidden;
}

.catalog-pagination .current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.detail-features {
  margin: 32px 0;
}

.detail-features h2 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 22px;
}

.detail-features ul {
  margin: 0;
  padding-left: 20px;
}

.detail-features li {
  margin: 8px 0;
  color: #606971;
  line-height: 1.8;
}

.product-editor-content {
  color: #606971;
  line-height: 1.85;
}

.form-hp {
  position: absolute !important;
  left: -9999px !important;
}

.static-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
}

.simple-contact-form .local-captcha {
  width: 132px;
  height: 50px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
}

.local-captcha canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.simple-contact-form .form-notice {
  min-height: 24px;
}

.simple-contact-form .form-notice.show {
  display: block;
}

.simple-contact-form .form-notice.invalid,
.simple-contact-form .form-notice.rate {
  color: #b42318;
}

.entry-content {
  color: #606971;
  line-height: 1.9;
}

.entry-content img {
  height: auto;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 90px 24px;
  text-align: center;
}

.not-found strong {
  color: var(--blue);
  font: 800 clamp(80px, 15vw, 180px)/1 Arial, sans-serif;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 520px) {
  .static-captcha-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* News article reading experience. */
.article-reference {
  background: #f5f7fa;
}

.article-reference-grid {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 42px;
}

.article-reference-body {
  position: relative;
  padding: 54px 64px 48px;
  border: 0;
  border-top: 4px solid var(--blue);
  background: #fff;
  box-shadow: 0 16px 45px rgba(20, 49, 88, .08);
  font-size: 16px;
}

.news-article-kicker {
  display: table;
  margin: 0 auto 17px;
  color: var(--red);
  font: 700 13px/1.5 Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: .12em;
}

.article-reference-body>h1 {
  max-width: 720px;
  margin-inline: auto;
  color: #142f57;
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 800;
}

.article-reference-body .article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #8a939f;
  font-size: 13px;
}

.article-reference-body .article-meta span {
  position: relative;
}

.article-reference-body .article-meta span:before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #adb4bd;
}

.article-reference-body>.news-article-cover {
  aspect-ratio: 16 / 8.5;
  max-height: none;
  margin: 0 0 34px;
  object-fit: cover;
}

.news-article-lead {
  margin: 0 0 30px !important;
  padding: 19px 22px;
  border-left: 4px solid var(--red);
  background: #f3f6fb;
  color: #344866;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.9;
}

.article-reference-body .entry-content {
  color: #596474;
  font-size: 16px;
  line-height: 2;
}

.article-reference-body .entry-content h2 {
  position: relative;
  margin: 42px 0 18px;
  padding-left: 18px;
  color: #17498e;
  font-size: 24px;
  line-height: 1.55;
}

.article-reference-body .entry-content h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: .32em;
  width: 5px;
  height: 1.05em;
  background: var(--red);
}

.article-reference-body .entry-content h3 {
  margin: 28px 0 12px;
  color: #243e64;
  font-size: 19px;
}

.article-reference-body .entry-content ul,
.article-reference-body .entry-content ol {
  margin: 18px 0 26px;
  padding: 20px 24px 20px 45px;
  background: #f7f9fb;
  border: 1px solid #e4e9ef;
}

.article-reference-body .entry-content li {
  margin: 7px 0;
}

.article-reference-body .entry-content blockquote {
  margin: 30px 0;
  padding: 24px 28px;
  border: 0;
  background: #17498e;
  color: #fff;
  font-size: 18px;
}

.article-reference-body .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.news-article-contact {
  position: relative;
  margin-top: 50px;
  padding: 32px 210px 32px 34px;
  overflow: hidden;
  background: #122f5a;
  color: #fff;
}

.news-article-contact:after {
  content: "TNLT";
  position: absolute;
  right: 24px;
  bottom: -16px;
  color: rgba(255, 255, 255, .06);
  font: 900 76px/1 Arial, sans-serif;
}

.news-article-contact>span {
  color: #91b6e8;
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: .14em;
}

.news-article-contact>strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 22px;
}

.news-article-contact>p {
  margin: 0 !important;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
  line-height: 1.8;
}

.news-article-contact .btn {
  position: absolute;
  z-index: 1;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}

.article-reference-body .article-nav {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid #e2e7ed;
}

.article-reference-body .article-nav>span {
  display: grid;
  gap: 9px;
  text-align: right;
}

.article-reference-body .article-nav a {
  color: #667180;
  font-size: 13px;
}

.article-reference-body .article-nav a:hover {
  color: var(--red);
}

.news-detail-sidebar {
  position: sticky;
  top: 118px;
}

.news-detail-sidebar nav a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.news-detail-sidebar nav a small {
  color: #a1a8b1;
}

.side-news-placeholder {
  display: grid;
  width: 82px;
  height: 55px;
  place-items: center;
  background: #17498e;
  color: #fff;
  font: 800 13px Arial, sans-serif;
}

.news-sidebar-contact {
  padding: 28px;
  background: #17498e;
  color: #fff;
}

.news-sidebar-contact span,
.news-sidebar-contact small {
  display: block;
}

.news-sidebar-contact span {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.news-sidebar-contact a {
  display: block;
  margin: 9px 0;
  color: #fff;
  font: 800 25px Arial, sans-serif;
}

.news-sidebar-contact small {
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
}

/* AMap JS API container and contact form feedback. */
.amap-embed {
  isolation: isolate;
}

.amap-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.amap-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: #eaf0f5;
  color: #17498e;
}

.amap-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(23, 73, 142, .18);
  border-top-color: #17498e;
  border-radius: 50%;
  animation: tnlt-map-spin .8s linear infinite;
}

.amap-loading small {
  color: #7c8796;
}

.amap-embed.is-loaded .amap-loading {
  opacity: 0;
  pointer-events: none;
}

.amap-embed.is-error .amap-loading span {
  display: none;
}

.amap-embed.is-error .amap-loading strong:before {
  content: "地图暂时无法加载 · ";
  color: #b42318;
}

.amap-location-card {
  position: absolute;
  z-index: 3;
  left: max(20px, calc((100vw - 1200px) / 2));
  bottom: 30px;
  width: min(390px, calc(100% - 40px));
  padding: 22px 25px;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 35px rgba(21, 44, 76, .18);
}

.amap-location-card span {
  color: var(--red);
  font: 700 11px Arial, sans-serif;
  letter-spacing: .16em;
}

.amap-location-card strong {
  display: block;
  margin: 7px 0 5px;
  color: #17498e;
  font-size: 17px;
}

.amap-location-card p {
  margin: 0;
  color: #667180;
  font-size: 13px;
  line-height: 1.7;
}

.tnlt-map-info {
  min-width: 230px;
  padding: 12px 15px;
  color: #526175;
  line-height: 1.6;
}

.tnlt-map-info strong,
.tnlt-map-info span {
  display: block;
}

.tnlt-map-info strong {
  margin-bottom: 4px;
  color: #17498e;
  font-size: 15px;
}

.tnlt-map-info span {
  font-size: 12px;
}

.simple-contact-form>button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 156px;
  transition: background .25s, opacity .25s;
}

.simple-contact-form>button[type="submit"] i {
  font-style: normal;
  transition: transform .25s;
}

.simple-contact-form>button[type="submit"]:hover i {
  transform: translateX(5px);
}

.simple-contact-form>button[type="submit"]:disabled {
  cursor: wait;
  opacity: .72;
}

.simple-contact-form .form-notice.show {
  padding: 12px 15px;
  border-left: 3px solid #1d8f51;
  background: #edf8f2;
  color: #176b40;
}

.simple-contact-form .form-notice.invalid,
.simple-contact-form .form-notice.rate {
  border-left-color: #b42318;
  background: #fff1f0;
  color: #9b2118;
}

.contact-result-toast {
  position: fixed;
  z-index: 2000;
  top: 112px;
  right: 30px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 15px;
  align-items: start;
  width: min(430px, calc(100vw - 36px));
  padding: 22px 18px 22px 22px;
  border-left: 5px solid #1d9b5b;
  background: #fff;
  box-shadow: 0 20px 55px rgba(24, 44, 69, .22);
  animation: tnlt-toast-in .55s cubic-bezier(.22, 1, .36, 1) both;
}

.contact-result-toast.invalid,
.contact-result-toast.rate {
  border-left-color: #c6322a;
}

.contact-result-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #e9f8f0;
  color: #16824a;
}

.contact-result-toast.invalid .contact-result-icon,
.contact-result-toast.rate .contact-result-icon {
  background: #fff0ef;
  color: #b42318;
}

.contact-result-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-result-toast strong {
  display: block;
  margin: 1px 0 7px;
  color: #17345e;
  font-size: 17px;
}

.contact-result-toast p {
  margin: 0;
  color: #697586;
  font-size: 14px;
  line-height: 1.65;
}

.contact-result-toast>button {
  padding: 0;
  border: 0;
  background: none;
  color: #8b949f;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.contact-result-toast.is-closing {
  animation: tnlt-toast-out .28s ease both;
}

@keyframes tnlt-map-spin {
  to { transform: rotate(360deg); }
}

@keyframes tnlt-toast-in {
  from { opacity: 0; transform: translate3d(35px, -12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tnlt-toast-out {
  to { opacity: 0; transform: translate3d(25px, 0, 0); }
}

@media (max-width: 960px) {
  .article-reference-grid {
    grid-template-columns: 1fr;
  }

  .news-detail-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .article-reference-body {
    padding: 36px 22px 30px;
  }

  .article-reference-body>.news-article-cover {
    aspect-ratio: 4 / 3;
  }

  .news-article-contact {
    padding: 28px 24px;
  }

  .news-article-contact .btn {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 20px;
    transform: none;
  }

  .article-reference-body .article-nav {
    grid-template-columns: 1fr;
  }

  .article-reference-body .article-nav>span {
    text-align: left;
  }

  .amap-location-card {
    left: 18px;
    bottom: 18px;
  }

  .contact-result-toast {
    top: 84px;
    right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amap-loading span,
  .contact-result-toast,
  .contact-result-toast.is-closing {
    animation: none;
  }
}
