/* ==========================================================================
   K3 · 全站可读性修补层（对比度）
   作用范围：全站所有页面 / 所有语种（/, /en, /vi, /ar）
   原则：只修对比度，不改版式结构
   ========================================================================== */

/* 1. 页头：各语种头部模板底色 #BDBDBD 实色灰 + 导航 #54595F = 3.76:1 ---------- */
.elementor-location-header .elementor-section {
  background-color: #FFFFFF !important;
  box-shadow: inset 0 -1px 0 #E5E5E5;
}
.elementor-location-header .elementor-nav-menu > li > a.elementor-item,
.elementor-location-header .elementor-nav-menu > li > a.elementor-item.elementor-item-active,
.elementor-location-header .elementor-nav-menu--dropdown a.elementor-item,
.elementor-location-header .sub-arrow { color: #111111 !important; }
.elementor-location-header .elementor-nav-menu > li > a.elementor-item:hover,
.elementor-location-header .elementor-nav-menu > li > a.elementor-item.elementor-item-active {
  color: #111111 !important;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* 2. 页脚：同一模板内深浅两区混排（#54595F 深条 + 浅灰 FAQ 卡），
      逐处翻色必然顾此失彼。统一把控件区改白底深字；
      HTML 小工具（.k3h-* / .k3a-* / .k3-final-footer）自带配色，不受影响。 */
.elementor-location-footer .elementor-section { background-color: #FFFFFF !important; }
.elementor-location-footer .elementor-widget-heading .elementor-heading-title,
.elementor-location-footer .elementor-widget-heading a,
.elementor-location-footer .elementor-widget-text-editor,
.elementor-location-footer .elementor-widget-text-editor p,
.elementor-location-footer .elementor-widget-text-editor li,
.elementor-location-footer .elementor-widget-text-editor a,
.elementor-location-footer .elementor-icon-box-title { color: #111111 !important; }
.elementor-location-footer .elementor-icon-box-description,
.elementor-location-footer .elementor-icon-list-text { color: #333333 !important; }
.elementor-location-footer figure figcaption,
.elementor-location-footer .wp-caption-text { color: #5A5A5A !important; }

/* 2b. 中文深色页脚（自带 #1a1a1a 底）保持白字 -------------------------------- */
.k3-f-addr b { color: #FFFFFF !important; }
.k3-f-bottom, .k3-f-bottom div, .k3-f-bottom span, .k3-f-bottom p { color: rgba(255, 255, 255, 0.66) !important; }
.k3-f-nav-col a:hover { color: #FFFFFF !important; }
.k3-f-brand h2, .k3-f-title, .k3-final-footer h2 { color: #FFFFFF !important; }

/* 3. 面包屑 / 白皮书目录：粉色 #E91E63 = 4.35:1，且为多余强调色 → 黑 ------------- */
.breadcrumbs, .breadcrumbs a, .breadcrumbs a span, .breadcrumbs span, .breadcrumbs .home span,
.gl-toc ol li a, .gl-toc ol li a .gl-cnt, .gl-toc ol li a span { color: #111111 !important; }

/* 4. 站点内杂色强调（粉 / 青 / 材质红）统一归黑，符合“只用一种红” ------------- */
a[style*="#E91E63"], a[style*="#e91e63"],
a[style*="#00BCD4"], a[style*="#00bcd4"],
a[style*="#F44336"], a[style*="#f44336"],
h6.category a, .card h6.category a, .category.text-info a, .text-info a {
  color: #111111 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.elementor-button[style*="#E91E63"], .elementor-button[style*="#e91e63"] {
  background-color: #111111 !important; color: #FFFFFF !important;
}

/* 5. 翻转卡正面：红底上压 #111（2.2:1）；移动端红底丢失变白底，一并补回 -------- */
.elementor-flip-box__front,
.elementor-flip-box__front .elementor-flip-box__layer__overlay {
  background-color: #931E20 !important;
}
.elementor-flip-box__front .elementor-flip-box__layer__title,
.elementor-flip-box__front .elementor-flip-box__layer__description,
.elementor-flip-box__front .elementor-flip-box__layer__title h3,
.elementor-flip-box__front .elementor-flip-box__layer__description p { color: #FFFFFF !important; }

/* 6. 翻转卡背面橙色 #BF6812（白字 4.04:1，第三种强调色）→ 深灰 ----------------- */
.ha-flip-box-back { background-color: #1A1A1A !important; }
.ha-flip-box-back .ha-desc, .ha-flip-box-back .ha-title, .ha-flip-box-back .ha-title * { color: #FFFFFF !important; }

/* 7. CTA 卡：白字压半透明图 = 4.29:1，加深压图 --------------------------------- */
.elementor-cta .elementor-cta__bg-overlay { background-color: rgba(0, 0, 0, 0.48) !important; }

/* 8. 缎带标签：白字压浅色底 1.45:1 -------------------------------------------- */
.elementor-ribbon-inner { background-color: #111111 !important; color: #FFFFFF !important; }

/* 9. 白皮书表格表头：白字压 #F5F5F6 = 1:1 ------------------------------------- */
table thead th { color: #111111 !important; background-color: #F2F2F3 !important; }

/* 10. 页头标题按页面类型分向：
       page（白皮书等）页头无背景图 → 深字；single（文章）页头为深色图底 → 白字。
       原先一刀切改深，导致文章页标题与作者压深底（2.07:1）。 */
body.page .page-header .hestia-title, body.page .page-header h1 { color: #1A1A1A !important; }
body.page .page-header .header-small { color: #4A4A4A !important; }
body.single-post .page-header h1, body.single-post .page-header .hestia-title,
body.single-post .page-header .entry-title { color: #FFFFFF !important; }
body.single-post .page-header h4.author, body.single-post .page-header h4.author a,
body.single-post .page-header h4.author time, body.single-post .page-header strong.fn,
body.single-post .page-header time.entry-date { color: rgba(255, 255, 255, 0.92) !important; }

/* 11. 表单与列表里的浅灰小字（2.32–3.45:1）------------------------------------ */
label.control-label, .form-group label, .control-label { color: #5C5C5C !important; }
.phone-card label, .info-box .phone-list .phone-card label, .qr-column p { color: #5C5C5C !important; }
.elementor-post-date, .elementor-post__meta-data, .elementor-post__meta-data span,
.elementor-post__excerpt, .elementor-post__excerpt p { color: #5C5C5C !important; }
p.card-description, .card-blog .card-description { color: #5C5C5C !important; }
span.gl-sub { color: #5C5C5C !important; }
.entry-date, .author, time.entry-date, h4.author time { color: #5C5C5C !important; }
.tb caption, table.tb > caption { color: #5A5A5A !important; }
.ab-meta { color: #5A5A5A !important; }
.wpc-contents-h small { color: #5A5A5A !important; }
.wpc-cover .wpc-imprint { color: #5A5A5A !important; }
p[style*="color:#8A8A8A"], p[style*="color: #8A8A8A"], p[style*="color:#8a8a8a"] { color: #5A5A5A !important; }

/* 12. 产品中心 banner --------------------------------------------------------- */
.k3-banner-info h1 span, .k3-product-banner h1 span { color: rgba(255, 255, 255, 0.62) !important; }
.k3-banner-gallery .gallery-card h4 { color: #1A1A1A !important; background: #FFFFFF !important; }
.k3-banner-gallery .gallery-card p { color: #4A4A4A !important; background: #FFFFFF !important; }
.k3-capability-tags .capability-tag {
  color: #FFFFFF !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* 13. 客服悬浮球提示：11px 深灰压半透明底 = 2.89:1 ----------------------------- */
#fabBtn .fab-hint {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid #E0E0E0 !important;
  font-size: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* 14. 按钮：内层文字继承；白底按钮补深底白字（避免白字压白底 1:1）-------------- */
.elementor-button .elementor-button-text, .elementor-button span:not([class]) { color: inherit !important; }
button.elementor-button, .elementor-field-group .elementor-button {
  background-color: #111111 !important;
  color: #FFFFFF !important;
}

/* 15. 正文内链：粉色链接改黑 + 下划线 ------------------------------------------ */
.ab-in a, .ab a {
  color: #111111 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 16. 装饰性极淡水印：不承担信息 ---------------------------------------------- */
.pro-bg-text { pointer-events: none; }
/* 17. 图片热点标签（e-hotspot）：#EEEEEF 浅字压白底 ------------------------------ */
.e-hotspot__label,
.e-hotspot__label *,
.e-hotspot__tooltip,
.e-hotspot__tooltip * {
  color: #111111 !important;
}
.e-hotspot__label, .e-hotspot__tooltip {
  background-color: #FFFFFF !important;
  border: 1px solid #E0E0E0 !important;
}

/* 18. 地图占位文字 #888（3.11:1）---------------------------------------------- */
#map-loader, .map-loader { color: #5C5C5C !important; }

/* 19. 表单提交按钮（Elementor Form）：白字压白底 1.14:1 ------------------------ */
.elementor-form button.elementor-button,
.elementor-form .elementor-button,
.elementor-form input[type="submit"],
form button[type="submit"],
form input[type="submit"] {
  background-color: #111111 !important;
  color: #FFFFFF !important;
  border: 1px solid #111111 !important;
  border-radius: 0 !important;
}
body .elementor-form button.elementor-button.elementor-size-sm,
body .elementor-form .elementor-button.elementor-size-sm,
body .elementor-form button[type="submit"] {
  background-color: #111111 !important;
  background-image: none !important;
  color: #FFFFFF !important;
}

/* 20. 页脚图注压在图/深色块上（2.96:1）：给底色保证可读 ------------------------ */
.elementor-location-footer figure figcaption,
.elementor-location-footer .wp-caption-text {
  color: #333333 !important;
  background: #FFFFFF !important;
  padding: 2px 4px;
}
/* 21. Elementor 全局主色为粉色 #E91E63（白字仅 4.35:1，且属规范外的第二强调色）。
       该色经 var(--e-global-color-primary) 渗透到全站按钮/图标/边框，改变量一次收口。 */
body { --e-global-color-primary: #111111; }
.elementor-button { border-radius: 0 !important; }
/* 22. 按钮底色：粉色 #E91E63 来自 page-builder-style.css 的 .elementor-widget .elementor-button，
       非变量控制。统一改黑（规范：红/粉不作按钮色）；首屏两枚按钮由 k3-swiss 层另行定义，此处排除。 */
.elementor-widget .elementor-button,
.elementor-button.elementor-button-link,
.elementor-form .elementor-button {
  background-color: #111111 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border: 1px solid #111111 !important;
}
.elementor-widget .elementor-button:hover,
.elementor-button.elementor-button-link:hover {
  background-color: #2B2B2B !important;
  border-color: #2B2B2B !important;
  color: #FFFFFF !important;
}
body.home .k3-hero__btn--ghost,
body.home .k3-hero__btn--ghost:hover {
  background: #FFFFFF !important;
  color: #111111 !important;
  border: 1px solid #111111 !important;
}
body.home .k3-hero__btn--solid {
  background: #111111 !important;
  color: #FFFFFF !important;
  border: 1px solid #111111 !important;
}
/* 23. 按钮兜底：覆盖一切 .elementor-button 实例（含表单内二次渲染的按钮）------- */
.elementor-button {
  background-color: #111111 !important;
  background-image: none !important;
  color: #FFFFFF !important;
}
.elementor-button .elementor-button-text,
.elementor-button span { color: #FFFFFF !important; }
body.home .k3-hero__btn--ghost,
body.home .k3-hero__btn--ghost .elementor-button-text { background:#FFFFFF !important; color:#111111 !important; }
body.home .k3-hero__btn--ghost span { color:#111111 !important; }
/* ==========================================================================
   v1.9 逐组件收口（按实测失败类名，不使用通配选择器）
   ========================================================================== */

/* 24. CTA 卡：白字压半透明图 4.29:1 —— 给内容区加深色压层 ---------------------- */
.elementor-cta .elementor-cta__content {
  background-color: rgba(17, 17, 17, 0.58) !important;
}

/* 25. HD5080 页自建组件：编号与指标说明为浅棕/浅灰，压白底 2.27–3.93:1 -------- */
.by-hd__card-no { color: #5A5A5A !important; }
.by-hd__metric > span,
.by-hd__metrics .by-hd__metric > span { color: #5A5A5A !important; }
.k3-img-caption { color: #5A5A5A !important; }

/* 26. 正文内粉色链接（#E91E63）归黑 + 下划线 ---------------------------------- */
.qa-q p a,
.qa-a p a,
.entry-content a,
.elementor-widget-text-editor p a {
  color: #111111 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wx_poi_link, a.js_poi_entry { color: #111111 !important; }

/* 27. 文章分类标签：白字压粉底 4.35:1 ----------------------------------------- */
.entry-categories .label-primary,
.entry-categories .label {
  background-color: #111111 !important;
  color: #FFFFFF !important;
}
.entry-categories .label-primary a,
.entry-categories .label a { color: #FFFFFF !important; }

/* 28. 文章作者/时间区块（#5C5C5C）；图注 #7A7A7A 压白底 4.29:1 ----------------- */

figure figcaption, .wp-caption-text { color: #5A5A5A !important; }
/* 29. HD5080 卡片编号 <b> 与指标说明（浅棕/浅灰压白底 2.27:1）------------------ */
.by-hd__card-no b, .by-hd__card-no strong { color: #5A5A5A !important; }
/* 30. HD5080 卖点序号 b（浅棕 #B8A9A2 压白底 2.27:1）--------------------------- */
.by-hd__adv-item > b, .by-hd__adv-item > strong { color: #5A5A5A !important; }
/* ==========================================================================
   v2.0 深色卡片与变量作用域修正
   ========================================================================== */

/* 31. 新闻中心等页面的文章卡片是 rgba(255,255,255,.48) 半透明白，叠在深色图上，
       导致卡内日期/摘要/标题全部低对比。改为不透明白底，卡内深字统一生效。 */
.elementor-posts .elementor-post,
.elementor-posts-container .elementor-post {
  background-color: #FFFFFF !important;
}
.elementor-post__read-more,
.elementor-post__read-more a { color: #111111 !important; }
.elementor-post__title a,
.elementor-post__title,
h3.elementor-post__title a { color: #111111 !important; }

/* 32. Elementor 全局色变量定义在 :root，body 上的同名变量无法覆盖，需同级命中 */
:root, html { --e-global-color-primary: #111111; }

/* 33. 表单提交按钮：兜底到字段组层级，防止被 Elementor 表单样式覆盖 */
.elementor-field-type-submit button,
.elementor-field-type-submit .elementor-button,
.elementor-field-group.elementor-field-type-submit button {
  background-color: #111111 !important;
  background-image: none !important;
  color: #FFFFFF !important;
}

/* 34. 白皮书索引版本标记 #9A9A9E（2.8:1）------------------------------------- */
.ik-imprint { color: #5A5A5A !important; }
/* ==========================================================================
   v2.1 收口：折叠面板、英文产品表、英文首页区块标题、文章页元信息
   ========================================================================== */

/* 35. 招聘页折叠面板：收起态白字压白底（1:1），展开态白字压红底（8.2:1）------- */
.elementor-accordion .elementor-tab-title a.elementor-accordion-title { color: #111111 !important; }
.elementor-accordion .elementor-tab-title.elementor-active a.elementor-accordion-title,
.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-title { color: #FFFFFF !important; }
.elementor-accordion .elementor-tab-title { border-top: 1px solid #E5E5E5; }

/* 36. 英文产品中心规格表：单元格 #8C8C8F 压白底 3.19:1（仅该页）--------------- */
body.page-id-8370 table td,
body.page-id-8702 table td,
body.page-id-8370 .elementor-widget-table td { color: #333333 !important; }

/* 37. 英文首页（boyan-index-en, page-id-8336）区块标题白字压白底 ---------------- */
body.page-id-8336 .elementor-widget-heading .elementor-heading-title { color: #111111 !important; }
body.page-id-8336 .elementor-flip-box__front,
body.page-id-8336 .elementor-flip-box__front .elementor-flip-box__layer__overlay {
  background-color: #931E20 !important;
}
body.page-id-8336 .elementor-flip-box__front .elementor-flip-box__layer__title,
body.page-id-8336 .elementor-flip-box__front .elementor-flip-box__layer__description { color: #FFFFFF !important; }

/* 38. 文章页页头元信息：92% 白在灰图上 4.24:1，提到纯白 ------------------------ */
body.single-post .page-header h4.author,
body.single-post .page-header h4.author a,
body.single-post .page-header h4.author time,
body.single-post .page-header strong.fn,
body.single-post .page-header time.entry-date.published { color: #FFFFFF !important; }
/* ==========================================================================
   v2.2 折叠面板统一浅底、文章页头元信息加底部压层
   ========================================================================== */

/* 39. 招聘页折叠面板标题条：原设计红条与白条混排（白条上白字 1:1、红条上深字 2.2:1）。
       统一为浅灰条 + 黑字，两种状态都可读。 */
.elementor-accordion .elementor-tab-title,
.elementor-accordion .elementor-tab-title.elementor-active {
  background-color: #F5F7F9 !important;
  border-top: 1px solid #E5E5E5 !important;
}
.elementor-accordion .elementor-tab-title a.elementor-accordion-title,
.elementor-accordion .elementor-tab-title.elementor-active a.elementor-accordion-title,
.elementor-accordion .elementor-tab-title .elementor-accordion-icon {
  color: #111111 !important;
}

/* 40. 文章页页头元信息：图片底偏浅，白字仍只有 4.24:1 → 加深色薄底 ------------- */
body.single-post .page-header h4.author {
  display: inline-block;
  background: rgba(0, 0, 0, 0.55) !important;
  padding: 3px 10px;
  border-radius: 0;
}
body.single-post .page-header h4.author,
body.single-post .page-header h4.author a,
body.single-post .page-header h4.author time,
body.single-post .page-header strong.fn { color: #FFFFFF !important; }
/* ==========================================================================
   v2.3 收口：剩余 6 类组件
   ========================================================================== */

/* 41. 文章内职位等级标签：白字压橙/红底 2.19–3.82:1 ---------------------------- */
.job-level,
.job-level.level-high,
.job-level.level-medium,
.job-level.level-low {
  background-color: #111111 !important;
  color: #FFFFFF !important;
}

/* 42. 英文产品页翻转卡：正面底色未生效导致白字压白底 --------------------------- */
.elementor-flip-box__layer.elementor-flip-box__front {
  background-color: #931E20 !important;
}
.elementor-flip-box__layer.elementor-flip-box__front .elementor-flip-box__layer__overlay {
  background-color: rgba(147, 30, 32, 0.92) !important;
}
.elementor-flip-box__layer.elementor-flip-box__front .elementor-flip-box__layer__title,
.elementor-flip-box__layer.elementor-flip-box__front .elementor-flip-box__layer__description {
  color: #FFFFFF !important;
}

/* 43. 阿语品牌页（page-id-8875）区块标题白字压白底 ----------------------------- */
body.page-id-8875 .elementor-widget-heading .elementor-heading-title { color: #111111 !important; }

/* 44. 文章正文内的粉色 span（4.35:1）------------------------------------------ */
.entry-content span[style*="#E91E63"],
.entry-content span[style*="#e91e63"],
.entry-content p span[style*="rgb(233, 30, 99)"] { color: #111111 !important; }

/* 45. 文章内时间槽标签：白字压浅底 3.22:1 ------------------------------------- */
.time-slot, .time-slot span, .time-slot strong {
  background-color: #111111 !important;
  color: #FFFFFF !important;
}

/* 46. HD5080 参数说明 #8A8A8A 3.45:1 ------------------------------------------ */
.by-hd__note, p.by-hd__note { color: #5A5A5A !important; }
/* ==========================================================================
   v2.4 最后三类
   ========================================================================== */

/* 47. 正文内粉色链接（无 class 的裸 <a>，颜色来自主题 a 规则）------------------ */
.entry-content a,
.elementor-widget-text-editor a:not(.elementor-button) {
  color: #111111 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 48. HD5080 视频说明文字 #8A8A8E（3.44:1）----------------------------------- */
.k3vid__cap, .k3vid__player + p { color: #5A5A5A !important; }

/* 49. 翻转卡正面兜底：按类名片段命中（部分页面用的类名组合不同）---------------- */
[class*="elementor-flip-box__front"] {
  background-color: #931E20 !important;
}
/* ==========================================================================
   v2.5 收口：页脚底色兜底、越南/阿语落地页标题
   ========================================================================== */

/* 50. 部分页面 .k3-final-footer 自身底色未生效，白字落到白底上 ------------------ */
.k3-final-footer { background-color: #1A1A1A !important; }

/* 51. 越南落地页（page-id-9315）、阿语产品页（page-id-8957）标题白字压白底 ----- */
body.page-id-9315 .elementor-widget-heading .elementor-heading-title,
body.page-id-8957 .elementor-widget-heading .elementor-heading-title,
body.page-id-8957 h1.elementor-heading-title { color: #111111 !important; }
body.page-id-8957 .elementor-widget-text-editor,
body.page-id-8957 .elementor-widget-text-editor p,
body.page-id-8957 .elementor-widget-text-editor strong { color: #333333 !important; }