/* ==========================================================================
   hy-cn.css — 国内中文站 www.dyeast.com.cn 专用排版增强
   --------------------------------------------------------------------------
   加载顺序：hy-site.css → hy-cn.css（本文件在后，只覆盖中文排版相关项）
   约束：不改动 hy- 设计系统的色彩、栅格、组件尺寸与断点；
         本文件只负责中文字体栈、字重、行高、标点与少量中文语境细节。
   构建：2026-11-15 · 与根目录英文站 css/ 物理隔离，互不引用。
   ========================================================================== */

/* 1. 中文字体栈：优先系统中文黑体，避免 Linux 落到衬线宋体 */
html,
body,
button,
input,
select,
textarea {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* 2. 中文正文行高略高于英文，标题字距略收 */
body { line-height: 1.75; }
h1, h2, h3, h4, h5, h6,
.hy-kicker,
.hy-btn,
.hy-nav a,
.hy-brand-txt strong {
  letter-spacing: .01em;
  line-height: 1.45;
}
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }

/* 3. 中文标点：正文不用两端对齐，避免出现稀疏字距 */
p, li, td, th, dd, dt, figcaption { text-align: start; }
.hy-section-head p,
.hy-card p,
.hy-form-note,
.hy-hint { text-align: start; }

/* 4. 中文站的表格与长段落：允许在汉字间折行，防止窄屏溢出 */
.hy-legacy td,
.hy-legacy th,
.hy-card,
.hy-form-note,
.hy-footer p,
.hy-topbar-contacts a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 4.1 修复橙色主按钮的文字对比度
   hy-site.css 的 `.hy-block a { color: var(--hy-blue) }` 特异性为 0,1,1，
   高于 `.hy-btn-primary { color:#fff }` 的 0,1,0，导致橙底主按钮出现蓝字。
   这里在中文站专用样式中提高特异性恢复白字；根目录英文站保持不动。 */
.hy-shell a.hy-btn-primary,
.hy-block a.hy-btn-primary,
.hy-form a.hy-btn-primary,
.hy-shell a.hy-btn-primary:hover,
.hy-block a.hy-btn-primary:hover,
.hy-form a.hy-btn-primary:hover { color: #fff; }

/* 5. 备案号链接：保持页脚次要文字色，hover 才提亮 */
.hy-footer-bottom a[href*="beian.miit.gov.cn"] {
  text-decoration: none;
  opacity: .88;
}
.hy-footer-bottom a[href*="beian.miit.gov.cn"]:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 6. Cookie 提示中文文案比英文短，按钮组保持单行 */
.hy-cookie p { line-height: 1.7; }
.hy-cookie-btns { white-space: nowrap; }

/* 7. 语言菜单：中文站只有「简体中文 / English」两项 */
.hy-lang-menu { min-width: 132px; }

/* 8. 中文站无 WhatsApp 浮动按钮，右下角不留空白 */
.hy-wa { display: none !important; }

/* 9. 窄屏：中文标题不放大到溢出 */
@media (max-width: 600px) {
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.38rem; }
  .hy-cookie-btns { white-space: normal; }
}
