/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.2.2
Description: 站点功能与样式扩展。
Text Domain: hello-elementor-child
*/

/* ============================================================
   需求改动（2026-09-28）
   ============================================================ */

/* 产品卡片：隐藏价格与 MOQ（需求「上面的价格和 MOQ 都不要」） */
.fhwy-b2b-product-card-price-moq { display: none !important; }

/* 产品 / 博客归档页的窄 banner：宽高比 2:1，文字与面包屑压在图上 */
.cxb-archive-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 240px;
  max-height: 720px;
  overflow: hidden;
  background: #1c1c1c;
}

.cxb-archive-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cxb-archive-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cxb-archive-banner-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.cxb-archive-banner-title {
  font-size: 54px;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}

.cxb-archive-banner-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 18px;
}

/* 面包屑：2026-10-08 需求 —— 移到 banner 下方左上角（全站统一） */
.cxb-archive-crumb-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 20px 0;
  text-align: left;
}

.cxb-archive-crumb {
  display: inline-block;
  font-size: 14px;
  color: #8A8A8A;
}

.cxb-archive-crumb a { color: #8A8A8A; text-decoration: none; }
.cxb-archive-crumb a:hover { color: #891D22; text-decoration: none; }
.cxb-archive-crumb .sep { margin: 0 7px; color: #C4C4C4; }
.cxb-archive-crumb .here { color: #1A1B1C; font-weight: 600; }

@media (max-width: 767px) {
  .cxb-archive-banner { aspect-ratio: 3 / 2; }
  .cxb-archive-banner-title { font-size: 32px; }
  .cxb-archive-banner-desc { font-size: 15px; }
}

/* 产品页顶部板块（首页移过来的 Top Products by Scenario）
   2026-10-08 需求：与 banner 之间的空隙稍微大一点 */
.cxb-archive-top-section { background: #fff; padding-top: 34px; }
.cxb-archive-top-section .elementor-element:first-child .elementor-widget-container > *:first-child { margin-top: 0; }

/* 产品页底部圆形分类轮播 */
.cxb-catcircle {
  background: #F6F4F0;
  padding: 56px 0 64px;
  position: relative;
}

.cxb-catcircle-head { text-align: center; margin-bottom: 30px; }
.cxb-catcircle-head h2 {
  font-size: 34px;
  color: #1A1B1C;
  margin: 0 0 8px;
  font-weight: 700;
}
.cxb-catcircle-head p { color: #777; font-size: 15px; margin: 0; }

/* 2026-10-08 需求：分类数量补齐为 8 个（有子分类的顶级分类）并整体居中
   原来是 6 条硬编码 + flex 左对齐，右侧留大片空白 */
.cxb-catcircle-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 24px 12px;
  box-sizing: border-box;
}

.cxb-catcircle-item {
  display: block;
  text-align: center;
  text-decoration: none;
  min-width: 0;
}

.cxb-catcircle-item .cc-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 152px;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid #e8e8e8;
  transition: transform 0.25s, border-color 0.25s;
}

.cxb-catcircle-item:hover .cc-img { transform: translateY(-4px); border-color: #891D22; }
.cxb-catcircle-item .cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cxb-catcircle-item .cc-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1A1B1C;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .cxb-catcircle-track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 767px) {
  .cxb-catcircle { padding: 36px 0 44px; }
  .cxb-catcircle-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 6px 16px 12px; }
  .cxb-catcircle-item .cc-img { max-width: 110px; }
  .cxb-catcircle-item .cc-name { font-size: 13px; }
  .cxb-catcircle-head h2 { font-size: 24px; }
}

/* ============================================================
   页脚：字体统一、新增产品分类栏、邮箱与社媒
   ============================================================ */

footer.elementor-location-footer,
footer.elementor-location-footer .elementor-widget-container,
footer.elementor-location-footer h1,
footer.elementor-location-footer h2,
footer.elementor-location-footer h3,
footer.elementor-location-footer h4,
footer.elementor-location-footer h5,
footer.elementor-location-footer h6,
footer.elementor-location-footer p,
footer.elementor-location-footer a,
footer.elementor-location-footer li {
  font-family: 'Montserrat', 'Open Sans', system-ui, sans-serif;
}

.cxb-footer-col-title {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0 0 16px;
  line-height: 1.3;
}

.cxb-footer-links { list-style: none; margin: 0; padding: 0; }
.cxb-footer-links li { margin: 0 0 9px; }
.cxb-footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s;
}
.cxb-footer-links a:hover { color: #FFFFFF; text-decoration: underline; }

.cxb-footer-more { margin: 14px 0 0; }
.cxb-footer-more a { color: #FFFFFF; font-size: 14px; font-weight: 600; text-decoration: none; }
.cxb-footer-more a:hover { text-decoration: underline; }

/* 运行期补出来的产品分类栏（页脚被覆盖时的兜底） */
.cxb-footer-products-col {
  flex: 1 1 0;
  min-width: 200px;
  box-sizing: border-box;
  padding-right: 24px;
  text-align: left;
}

.elementor-social-icon-whatsapp {
  background-color: rgba(255, 255, 255, 0.16) !important;
}
.elementor-social-icon-whatsapp svg { width: 1em; height: 1em; fill: #FFFFFF; }

.cxb-footer-mail {
  color: #FFFFFF !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  line-height: 1.3;
}
.cxb-footer-mail:hover { text-decoration: underline !important; }

@media (max-width: 767px) {
  .cxb-footer-mail { font-size: 19px !important; }
}

/* ============================================================
   博客页：News 横板模块 + 视频滑动模块 + 内页右侧栏
   ============================================================ */

.cxb-news-block { background: #FFFFFF; padding: 56px 0 40px; }
.cxb-news-head { text-align: center; margin-bottom: 30px; }
.cxb-news-head h2 { font-size: 34px; font-weight: 700; color: #1A1B1C; margin: 0 0 8px; }
.cxb-news-head p { font-size: 15px; color: #777; margin: 0; }

.cxb-news-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: start;
}

.cxb-news-feature { text-decoration: none; color: inherit; display: block; }
.cxb-news-feature .cn-img { display: block; overflow: hidden; border-radius: 8px; }
.cxb-news-feature .cn-img img { width: 100%; height: auto; display: block; transition: transform 0.4s; }
.cxb-news-feature:hover .cn-img img { transform: scale(1.03); }
.cxb-news-feature .cn-body { display: block; padding-top: 16px; }

.cxb-news-block .cn-tag {
  display: inline-block;
  background: #891D22;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.cxb-news-block .cn-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1A1B1C;
  line-height: 1.35;
  margin-bottom: 8px;
}
.cxb-news-feature:hover .cn-title { color: #891D22; }
.cxb-news-block .cn-excerpt { display: block; color: #666; font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.cxb-news-block .cn-more { display: inline-block; color: #891D22; font-size: 14px; font-weight: 600; }

.cxb-news-list { display: flex; flex-direction: column; gap: 18px; }
.cxb-news-item {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding-bottom: 16px;
  border-bottom: 1px solid #ECECEC;
}
.cxb-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.cxb-news-item .cn-thumb { flex: 0 0 116px; border-radius: 6px; overflow: hidden; }
.cxb-news-item .cn-thumb img { width: 116px; height: 88px; object-fit: cover; display: block; }
.cxb-news-item .cn-body { flex: 1; }
.cxb-news-item .cn-title { font-size: 16px; margin-bottom: 4px; }
.cxb-news-item .cn-date { display: block; color: #999; font-size: 13px; margin-bottom: 6px; }
.cxb-news-item .cn-more { font-size: 13px; }

/* 视频滑动板块 */
.cxb-video-block { background: #F6F4F0; padding: 48px 0 52px; }
.cxb-video-head {
  max-width: 1200px;
  margin: 0 auto 22px;
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.cxb-video-head h2 { font-size: 30px; font-weight: 700; color: #1A1B1C; margin: 0 0 6px; }
.cxb-video-head p { font-size: 14px; color: #777; margin: 0; }
.cxb-video-more { color: #891D22; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cxb-video-more:hover { text-decoration: underline; }

.cxb-video-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 14px;
  -webkit-overflow-scrolling: touch;
}
.cxb-video-track::-webkit-scrollbar { height: 6px; }
.cxb-video-track::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 3px; }

.cxb-video-card {
  flex: 0 0 300px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cxb-video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12); }
.cxb-video-card .cv-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.cxb-video-card .cv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cxb-video-card .cv-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}
.cxb-video-card .cv-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -6px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #891D22;
}
.cxb-video-card .cv-title {
  display: block;
  padding: 14px 16px 4px;
  font-size: 16px;
  font-weight: 600;
  color: #1A1B1C;
  line-height: 1.4;
}
.cxb-video-card .cv-meta { display: block; padding: 0 16px 16px; font-size: 13px; color: #8a8a8a; }

/* 单篇博客右侧栏 */
.cxb-blog-sidebar { display: flex; flex-direction: column; gap: 22px; }
.cxb-side-card { background: #fff; border: 1px solid #ECECEC; border-radius: 10px; padding: 20px; }
.cxb-side-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1A1B1C;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #891D22;
  display: inline-block;
}
.cxb-side-cats { list-style: none; margin: 0; padding: 0; }
.cxb-side-cats li { border-bottom: 1px dashed #E6E6E6; }
.cxb-side-cats li:last-child { border-bottom: none; }
.cxb-side-cats a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: #444;
  font-size: 15px;
  text-decoration: none;
}
.cxb-side-cats a:hover { color: #891D22; }
.cxb-side-cats span { color: #999; }

.cxb-side-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cxb-side-posts a { display: flex; gap: 12px; text-decoration: none; color: inherit; }
.cxb-side-posts .sp-thumb { flex: 0 0 76px; border-radius: 6px; overflow: hidden; }
.cxb-side-posts .sp-thumb img { width: 76px; height: 60px; object-fit: cover; display: block; }
.cxb-side-posts .sp-title { display: block; font-size: 14px; font-weight: 600; color: #1A1B1C; line-height: 1.4; }
.cxb-side-posts .sp-title:hover { color: #891D22; }
.cxb-side-posts .sp-date { display: block; font-size: 12px; color: #999; margin-top: 4px; }

@media (max-width: 1024px) {
  .cxb-news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .cxb-news-block { padding: 36px 0 28px; }
  .cxb-news-head h2 { font-size: 24px; }
  .cxb-video-head { flex-direction: column; align-items: flex-start; }
  .cxb-video-card { flex: 0 0 250px; }
}

/* 社媒图标颜色兜底（Elementor 的主/次色在不同版本里含义会反） */
footer.elementor-location-footer .elementor-social-icon {
  background-color: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
footer.elementor-location-footer .elementor-social-icon i,
footer.elementor-location-footer .elementor-social-icon svg {
  color: #FFFFFF !important;
  fill: #FFFFFF !important;
}
footer.elementor-location-footer .elementor-social-icon:hover {
  background-color: #891D22 !important;
  border-color: #891D22 !important;
}

/* 页脚社媒图标排成一行（5 个） */
footer.elementor-location-footer .elementor-social-icons-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

footer.elementor-location-footer .elementor-social-icon {
  width: 38px;
  height: 38px;
  font-size: 15px;
  margin: 0 !important;
}

footer.elementor-location-footer .elementor-social-icon svg {
  width: 15px;
  height: 15px;
}

.elementor-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 联系我们：图标文字整体放大一点 */
.elementor-widget-social-icons .elementor-social-icon {
  font-size: 20px;
}

/* 博客 / 归档页 banner 统一按 2:1（与产品页窄 banner 一致）
   模板里的 min-height 用 vw 不生效，这里用 CSS 兜底 */
.elementor-location-archive .elementor-element-32c12a26 {
  min-height: 50vw;
  display: flex;
  align-items: center;
}

.elementor-location-archive .elementor-element-32c12a26 > .elementor-container {
  width: 100%;
}

@media (max-width: 767px) {
  .elementor-location-archive .elementor-element-32c12a26 { min-height: 62vw; }
}

/* ===== R74 2026-10-29 客户反馈批量修复（本次由 DSH 添加） ===== */
/* 1) 联系页第一行邮箱（E.U Region）白字白底看不见 → 恢复正常颜色/字号 */
body.page-id-30 .icon-box-description a.cxb-footer-mail,
body.page-id-30 a.cxb-footer-mail { color: #333030 !important; font-size: 15px !important; font-weight: 400 !important; letter-spacing: 0 !important; }
/* 2) 导航栏 Shop 按钮隐藏 */
body .elementor-element-hshopbtn { display: none !important; }
/* 3) 博客文章右侧栏：原来垂直居中整体偏下 → 顶部对齐页面 */
body.single-post .elementor-element-hfpostside .elementor-widget-wrap { align-items: flex-start !important; align-content: flex-start !important; }
/* 4) 博客文章 H2 字体 → 与 Community 页 H2 相同的 Michroma（BannerMichroma） */
body.single-post .elementor-widget-theme-post-content h2 { font-family: BannerMichroma, Michroma, "Helvetica Neue", Arial, sans-serif !important; font-weight: 700 !important; }
/* ===== /R74 ===== */

/* ===== R75 2026-10-29 一期反馈第二批（DSH 添加） ===== */
/* 1) news / blog 顶部 banner 背景图更换：45.jpg → 客户提供的新图 */
body .elementor-element-32c12a26 { background-image: url("https://veloraebike.com/wp-content/uploads/2026/10/community-banner-2026-10-scaled.jpg") !important; background-size: cover !important; background-position: center center !important; background-repeat: no-repeat !important; }
/* 2) 页面 banner 上面的蒙版去掉（news/blog 顶部 banner、about 页顶部大图） */
body .elementor-element-32c12a26 > .elementor-background-overlay,
body .elementor-element-8372a4e > .elementor-background-overlay,
body .elementor-element-22c95d3e > .elementor-background-overlay { display: none !important; }
/* 3) 博客分类（archive/category）页面标题字体 → Archivo Black */
body.archive .page-header .entry-title,
body.archive .page-header h1,
body.archive h1.entry-title { font-family: 'Archivo Black', 'Archivo', 'Helvetica Neue', Arial, sans-serif !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; }
/* ===== /R75 ===== */

/* ===== R77 2026-10-29 博客分类（archive/category）页面排版美化 ===== */
body.archive .page-header { background: #f6efe9; padding: 56px 24px 40px; margin: 0 0 36px; text-align: center; }
body.archive .page-header .entry-title { color: #5a1a1d; font-size: 40px; line-height: 1.2; margin: 0; }
body.archive .site-main { max-width: 1180px; margin: 0 auto; padding: 0 24px 72px; }
body.archive .site-main article.post { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid #e8e2da; }
body.archive .site-main article.post h2,
body.archive .site-main article.post .entry-title { font-size: 26px; line-height: 1.3; margin: 14px 0 10px; }
body.archive .site-main article.post img { border-radius: 10px; }
body.archive .site-main article.post .entry-meta,
body.archive .site-main article.post .posted-on { color: #8a7f76; font-size: 14px; }
/* ===== /R77 ===== */
