/* Thermotron 中文站补充样式（在主题样式之后加载） */

/* ---------- 中文字体 ---------- */
html.zh-cn body,
html.zh-cn p,
html.zh-cn li,
html.zh-cn td,
html.zh-cn th,
html.zh-cn h1,
html.zh-cn h2,
html.zh-cn h3,
html.zh-cn h4,
html.zh-cn h5,
html.zh-cn h6,
html.zh-cn a,
html.zh-cn span,
html.zh-cn div,
html.zh-cn label,
html.zh-cn input,
html.zh-cn textarea,
html.zh-cn select,
html.zh-cn button {
  font-family: Lato, Oxygen, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif !important;
}

html.zh-cn body {
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

html.zh-cn h1,
html.zh-cn h2,
html.zh-cn h3,
html.zh-cn h4 {
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* 中文正文比英文稍大一点，保持可读性 */
html.zh-cn .entry-content p,
html.zh-cn .pg-content p,
html.zh-cn #content p {
  font-size: 1.0625rem;
}

/* ---------- 顶部搜索 ---------- */
form.site-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 260px;
  margin-left: auto;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
}

form.site-search input[type="search"] {
  flex: 1 1 auto;
  height: 34px;
  border: 0;
  outline: none;
  padding: 0 10px;
  font-size: 13px;
  color: #333;
  background: #fff;
  -webkit-appearance: none;
}

form.site-search input[type="search"]::placeholder {
  color: #7a8b99;
}

form.site-search button {
  flex: 0 0 auto;
  width: 38px;
  height: 34px;
  border: 0;
  background: #fff;
  color: #0070ba;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

form.site-search button:hover {
  background: #eaf4fb;
}

.topbar .cell.search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ---------- 首页/页面横幅（静态轮播） ---------- */
.home-slider {
  position: relative;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  background: #eef2f5;
  overflow: hidden;
}

.home-slider .zh-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1170 / 450;
  max-height: 450px;
  overflow: hidden;
}

.home-slider .zh-hero-viewport {
  position: absolute;
  inset: 0;
}

.home-slider .zh-hero-slide {
  position: absolute !important;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.home-slider .zh-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.home-slider .zh-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.zh-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 78px;
  border: 0;
  cursor: pointer;
  background: rgba(0, 112, 186, 0.92);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.zh-hero-nav:hover {
  background: rgba(0, 90, 150, 1);
}

.zh-prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.zh-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.zh-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.zh-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.zh-hero-dot.is-active {
  background: #f89321;
}

/* ---------- Cookie 提示 ---------- */
.zh-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #00395f;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.zh-cookie p {
  margin: 0;
  flex: 1 1 520px;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.6;
}

.zh-cookie a {
  color: #ffd18c !important;
  text-decoration: underline;
}

.zh-cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zh-cookie-accept {
  background: #f89321;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 8px 22px;
  cursor: pointer;
  font-size: 14px;
}

.zh-cookie-more {
  color: #fff !important;
  text-decoration: underline;
  font-size: 14px;
}

body.zh-cookie-hidden .zh-cookie {
  display: none;
}

/* ---------- 视频占位 ---------- */
.yt-facade {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 24px;
  background: #000;
}

.yt-facade a {
  display: block;
  position: relative;
}

.yt-facade img {
  display: block;
  width: 100%;
  height: auto;
}

.yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 50px;
  margin: -25px 0 0 -36px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 8px;
}

.yt-play::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 13px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

/* ---------- 表单与验证码占位 ---------- */
.grecaptcha-badge,
#g-recaptcha-response,
.g-recaptcha {
  display: none !important;
}

/* ---------- 页脚中文排版 ---------- */
.site-footer a {
  line-height: 1.9;
}

/* ---------- 新闻/资源列表 ---------- */
.zh-cn .entry-title a,
.zh-cn h2 a {
  text-underline-offset: 3px;
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 640px) {
  .zh-hero-nav {
    width: 36px;
    height: 56px;
  }

  .zh-cookie {
    padding: 10px 14px;
  }

  form.site-search {
    max-width: 100%;
  }
}

/* ---------- 搜索结果页 ---------- */
.zh-search-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.zh-search-wrap h1 {
  font-size: 32px;
  color: #0070ba;
  margin-bottom: 18px;
}

.zh-search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.zh-search-form input {
  flex: 1 1 auto;
  height: 44px;
  border: 1px solid #cfd8e3;
  border-radius: 3px;
  padding: 0 12px;
  font-size: 16px;
}

.zh-search-form button {
  flex: 0 0 auto;
  padding: 0 24px;
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: #0070ba;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.zh-result {
  border-bottom: 1px solid #e6ebf0;
  padding: 18px 0;
}

.zh-result a {
  color: #0070ba;
  font-size: 19px;
  font-weight: 700;
}

.zh-result p {
  margin: 6px 0 0;
  color: #4a5a68;
  font-size: 15px;
  line-height: 1.7;
}

.zh-result small {
  color: #8a97a3;
  display: block;
  margin-top: 6px;
}

/* ---------- 404 ---------- */
.zh-404 {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 20px 120px;
  text-align: center;
}

.zh-404 h1 {
  font-size: 56px;
  color: #0070ba;
  margin-bottom: 10px;
}

.zh-404 p {
  font-size: 18px;
  color: #4a5a68;
}

.zh-404 .button {
  margin-top: 18px;
}

/* ---------- 页脚链接排版修正 ---------- */
@media screen and (min-width: 900px) {
  .site-footer .cell.large-1 a,
  .site-footer .cell.large-2 a {
    font-size: 14px;
    line-height: 2;
  }
  .site-footer .cell.large-1 a { font-size: 13px; }
  .site-footer .terms a { font-size: 14px; }
}

html.zh-cn, html.zh-cn body {
  max-width: 100%;
  overflow-x: hidden;
}

html.zh-cn img {
  max-width: 100%;
  height: auto;
}

/* ---------- 联系信息卡片（联系我们 / 索取信息） ---------- */
.zh-contact-card {
  background: #f4f8fb;
  border-left: 4px solid #0070ba;
  padding: 22px 26px;
  margin: 10px 0 24px;
  border-radius: 3px;
}
.zh-contact-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #0070ba;
  line-height: 1.3;
}
.zh-contact-card dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  row-gap: 10px;
  column-gap: 14px;
  margin: 0;
}
.zh-contact-card dt {
  font-weight: 700;
  color: #4a5a68;
  font-size: 15px;
}
.zh-contact-card dd {
  margin: 0;
  color: #1f2f3d;
  font-size: 15px;
  line-height: 1.7;
}
.zh-contact-card a { color: #0070ba; text-decoration: none; }
.zh-contact-card a:hover { text-decoration: underline; }

.site-footer .zh-footer-company { font-weight: 700; color: #fff; margin: 12px 0 4px; font-size: 13px; line-height: 1.55; }
.site-footer .zh-footer-address { color: #c9d6e2; margin: 0 0 6px; font-size: 12.5px; line-height: 1.55; }
.site-footer .zh-footer-contact { color: #c9d6e2; margin: 0; font-size: 12.5px; line-height: 1.6; }
.site-footer .zh-footer-contact a { color: #fff; }

@media screen and (max-width: 640px) {
  .zh-contact-card { padding: 18px; }
  .zh-contact-card dl { grid-template-columns: 1fr; row-gap: 4px; }
  .zh-contact-card dt { margin-top: 8px; }
}
.zh-contact-card .zh-contact-lead {
  margin: 0 0 16px;
  color: #4a5a68;
  font-size: 15px;
  line-height: 1.7;
}
