/* 万佑宠wooyoPET 中文站样式补充
   仅用于简体中文排版适配：字体、行高、标题字距、国际站链接。
   不改变原站配色、栅格、图片比例、动画与组件结构。 */

:root {
  --cn-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", "WenQuanYi Micro Hei", Arial, sans-serif;
}

html[lang="zh-CN"] body,
html[lang="zh-CN"] button,
html[lang="zh-CN"] input,
html[lang="zh-CN"] select,
html[lang="zh-CN"] textarea {
  font-family: var(--cn-font);
}

html[lang="zh-CN"] body {
  line-height: 1.75;
}

html[lang="zh-CN"] p,
html[lang="zh-CN"] li,
html[lang="zh-CN"] dd,
html[lang="zh-CN"] dt,
html[lang="zh-CN"] figcaption {
  line-height: 1.85;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4,
html[lang="zh-CN"] h5,
html[lang="zh-CN"] h6 {
  font-family: var(--cn-font);
  line-height: 1.35;
  letter-spacing: 0;
}

/* 首页 Hero：中文字数少、字面宽，按中文习惯收紧字号与行高，保持原有版式占位 */
html[lang="zh-CN"] .page-home .hero h1 {
  font-size: clamp(34px, 3.85vw, 58px);
  line-height: 1.18;
  max-width: 780px;
}

html[lang="zh-CN"] .page-home .hero-subline {
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  html[lang="zh-CN"] .page-home .hero h1 {
    font-size: clamp(27px, 6.4vw, 40px);
    line-height: 1.2;
  }
}

/* 头部“Global Web”：纯文字链接，不做按钮外观 */
.site-header .intl-site-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.85;
}

.site-header .intl-site-link:hover,
.site-header .intl-site-link:focus-visible {
  opacity: 1;
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-languages .intl-site-link-footer {
  font-weight: 600;
}

@media (max-width: 620px) {
  .site-header .intl-site-link {
    height: 30px;
    font-size: 12px;
  }
}

/* 移动端头部空间有限：品牌名保持可见 */
@media (max-width: 900px) {
  .site-header .brand span {
    display: inline;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .site-header .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .site-header .intl-site-link {
    font-size: 11px;
  }
  .site-header .brand span {
    font-size: 13px;
  }
  .site-header .brand-logo {
    width: 44px;
    height: 44px;
  }
  .site-header .header-inner {
    gap: 8px;
  }
}

.icp-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.icp-link:hover,
.icp-link:focus-visible {
  text-decoration: underline;
}

/* 404 页面独立底栏：保证每个页面底部都有可点击的备案号 */
.error-icp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 5;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7c8c;
}

.error-icp .icp-link {
  color: inherit;
}

@media (max-width: 620px) {
  .error-icp {
    bottom: 10px;
    font-size: 11px;
  }
}

.footer-languages .intl-site-link-footer {
  font-weight: 600;
}

/* 长中文标题与型号混排时避免溢出 */
html[lang="zh-CN"] .product-name,
html[lang="zh-CN"] .solution-card-body strong,
html[lang="zh-CN"] .hero h1 {
  overflow-wrap: anywhere;
  word-break: normal;
}

html[lang="zh-CN"] .breadcrumbs,
html[lang="zh-CN"] .article-meta {
  line-height: 1.7;
}

/* 视频客户案例页的可抓取摘要：沿用标题区排版，不改变视频与栅格 */
html[lang="zh-CN"] .case-heading .case-summary {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--steel, #1f374d);
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 620px) {
  html[lang="zh-CN"] .case-heading .case-summary {
    font-size: 14px;
    line-height: 1.8;
  }
}

/* 原站对英文标签使用 uppercase；中文品牌名必须保持 wooyoPET 大小写 */
html[lang="zh-CN"] .solution-author-eyebrow,
html[lang="zh-CN"] .eyebrow,
html[lang="zh-CN"] .footer-title,
html[lang="zh-CN"] .brand span {
  text-transform: none;
}
