/* ============================================================
   Golfmylo 2026 · 全站样式（原生 Avada 版）
   ------------------------------------------------------------
   设计原则：
   1. 页面元素不带自定义 class —— 背景/内边距/圆角/文字颜色都在 Avada 元素的
      「设计」参数里设置，在 Builder 里可以直接改。
   2. 本文件只做四件事：
      a) 全站字体与字号（Avada 默认字体要联网加载，这里统一用系统字体）
      b) 几个 Avada 没提供参数、但全站需要一致的地方（按钮字重、卡片标题、
         产品图去白底、通栏背景）
      c) 页头/页脚细节
      d) 子主题自带组件：询盘表单、新闻卡片、分类归档页、浮动联系条
   3. 改颜色请优先改 Avada 元素参数或 Avada → Options；改这里只影响全站统一效果。
   ============================================================ */

/* ---------- 1. 全站字体与文字 ---------- */
body,
.fusion-body,
.fusion-body .post-content,
.fusion-body .fusion-title-heading,
h1, h2, h3, h4, h5, h6,
.entry-title,
.fusion-post-title,
.wp-block-heading,
.fusion-button,
.fusion-counter-box .display-counter,
.content-box-heading {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

body,
.fusion-body {
  color: #111111;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.fusion-body h1, .fusion-body h2, .fusion-body h3,
.fusion-body h4, .fusion-body h5, .fusion-body h6,
.fusion-body .fusion-title-heading {
  font-weight: 800;
  letter-spacing: -.2px;
  color: #111111;
}

.fusion-body p { line-height: 1.75; }
.fusion-body a { color: #111111; }
.fusion-body a:hover { color: #000000; }

/* 文本块限宽后自动居中 */
.fusion-text[style*="--awb-max-width"] { margin-left: auto; margin-right: auto; }

/* ---------- 2. 通栏背景 ----------
   Avada 把内容包在 1200px 的 .fusion-row 里，100% 宽容器实际只有 1200px。
   这里用伪元素把容器背景横向拉满整屏，内容宽度不受影响。 */
.fusion-fullwidth.hundred-percent-fullwidth { position: relative; }
.fusion-fullwidth.hundred-percent-fullwidth::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background: inherit;
  z-index: 0;
  pointer-events: none;
}
.fusion-fullwidth.hundred-percent-fullwidth > .fusion-builder-row { position: relative; z-index: 1; }


.w-video-btn:before{
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%3E%3Ccircle%20cx='40'%20cy='40'%20r='38'%20fill='rgba%280%2C0%2C0%2C0.5%29'%20stroke='%23ffffff'%20stroke-width='2'/%3E%3Cpolygon%20points='32,26%2032,54%2056,40'%20fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80px 80px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    transition: all 600ms;
    border-radius: 50px;
}
/* 列内容改为常规流式布局：Avada 默认 flex-column 会把两个按钮竖排 */
/* ---------- 3. 按钮 ---------- */
.fusion-body .fusion-button {
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0;
  box-shadow: none !important;
  transition: all .25s ease;
}
.fusion-body .fusion-button .fusion-button-text,
.fusion-body .fusion-button .awb-button__text { font-weight: 700; }
.fusion-body .fusion-button.button-default-size .awb-button__text { font-size: 14px; }
.fusion-body .fusion-button.button-small .awb-button__text { font-size: 13px; }
.fusion-body .fusion-column-wrapper .fusion-button { margin: 0 8px 8px 0 !important; }
/* Avada 把按钮包在无 class 的 div 里，这里让它行内排列，两个按钮才会并排 */
.fusion-body .fusion-column-wrapper > div:has(> a.fusion-button) {
  display: inline-block;
  vertical-align: top;
}

/* ---------- 4. 图片 ---------- */
.fusion-imageframe { display: block; width: 100%; }
.fusion-imageframe img { display: block; max-width: 100%; width: 100%; height: auto; }
/* 白底棚拍图：只在白底卡片里做去白处理（暗底区块保持原样，避免整块变黑） */
.fusion-layout-column[style*="--awb-background-color"] .fusion-imageframe img {
  mix-blend-mode: multiply;
}

/* ---------- 5. 内容框（优势 / 认证 / 客户 logo / 流程） ---------- */
.fusion-content-boxes .content-box-heading {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  margin-bottom: 6px !important;
}
.fusion-content-boxes .content-container { font-size: 13.5px; line-height: 1.7; }
.fusion-content-boxes .fusion-column { margin-bottom: 16px; }
.fusion-content-boxes .icon .fontawesome-icon {
  height: 52px !important; width: 52px !important;
  line-height: 52px !important; font-size: 22px !important;
  border-radius: 12px !important; border: 0 !important;
}
.fusion-content-boxes .icon span {
  height: 52px !important; width: 52px !important;
  line-height: 52px !important; border-radius: 12px !important;
}

/* ---------- 5b. 清单（产品规格 / 工厂工序） ---------- */
.fusion-checklist .fusion-li-icon { color: #111111 !important; font-size: 12px !important; }
.fusion-checklist li { margin-bottom: 5px !important; }
.fusion-checklist .fusion-li-item-content { font-size: 14px; color: #333333; line-height: 1.7; }

/* 单独使用图标元素时，按它自己的对齐参数居中 */
.fusion-column-wrapper > i.fontawesome-icon[style*="--awb-align-self:center"] {
  display: block; width: fit-content;
  margin-left: auto !important; margin-right: auto !important;
}

/* ---------- 6. 数字计数器 ---------- */
.fusion-counter-box .display-counter { font-weight: 800; line-height: 1.15; }

/* ---------- 7. 页头 ---------- */
.fusion-header-wrapper .fusion-header,
.fusion-header-wrapper .fusion-header-v1,
.fusion-header-wrapper .fusion-header-v3 {
  -box-shadow: 2px 2px #000a;
}
.fusion-header .fusion-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.fusion-logo { margin: 0 !important; flex: 0 0 auto; }
.fusion-logo .fusion-logo-link { display: flex; align-items: center; }
.fusion-logo .fusion-logo-link img { max-height: 64px !important; width: auto !important; }
.fusion-main-menu { margin-left: auto; }
.fusion-main-menu > ul.fusion-menu {
  display: flex; align-items: center; flex-wrap: nowrap !important;
  margin: 0 !important; padding: 0 !important;
}
.fusion-main-menu > ul > li { margin: 0 !important; padding: 0 !important; }
.fusion-main-menu > ul > li > a { font-weight: 600 !important; color: #333 !important;
  padding: 6px 0 !important; margin: 0 11px !important; line-height: 1.4 !important;
  border: 0 !important; background: none !important;
}
.fusion-main-menu > ul > li > a:hover,
.fusion-main-menu > ul > li.current-menu-item > a { color: #000 !important; }
.fusion-main-menu .fusion-bar-highlight:after { background-color: #000 !important; height: 2px !important; bottom: -4px !important; }
.fusion-main-menu .sub-menu {
  background: #fff; border: 1px solid #e6e6e6 !important; border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .10); padding: 8px; min-width: 220px;
}
.fusion-main-menu .sub-menu li a {
  font-size: 13.5px !important; font-weight: 600; color: #444 !important;
  padding: 9px 14px !important; border-radius: 6px; display: block;
}
.fusion-main-menu .sub-menu li a:hover { background: #f5f5f5; color: #000 !important; }
.fusion-custom-menu-item.fusion-main-menu-search { display: none !important; }

/* 菜单里的报价按钮（菜单项 class 在“外观 → 菜单”里设置） */
.fusion-main-menu > ul > li.gm-cta { margin-left: 8px !important; }
.fusion-main-menu > ul > li.gm-cta > a {
  background: #111111 !important; color: #fff !important; border-radius: 8px;
  padding: 9px 18px !important; margin: 0 !important; font-weight: 700 !important; line-height: 1.3 !important;
}
.fusion-main-menu > ul > li.gm-cta > a:hover { background: #000 !important; }
.fusion-main-menu > ul > li.gm-cta .fusion-bar-highlight:after { display: none !important; }

/* ---------- 8. 页脚 ---------- */
.fusion-footer .fusion-footer-widget-area {
  background: #000 !important;
  border-top: 0;
  padding: 56px 0 40px;
  color: #b8b8b8;
}
.fusion-footer .fusion-footer-widget-area .widget { margin-bottom: 0; }
.fusion-footer .fusion-footer-widget-area h2,
.fusion-footer .fusion-footer-widget-area h3,
.fusion-footer .fusion-footer-widget-area .wp-block-heading {
  color: #fff !important; font-size: 15px !important; font-weight: 700;
  margin: 0 0 14px !important; letter-spacing: 0;
}
.fusion-footer .fusion-footer-widget-area p { color: #a8a8a8; font-size: 13px; margin: 0 0 12px; }
.fusion-footer .fusion-footer-widget-area a { color: #a8a8a8; }
.fusion-footer .fusion-footer-widget-area a:hover { color: #fff; }
.fusion-footer .fusion-footer-widget-area ul { list-style: none; margin: 0; padding: 0; }
.fusion-footer .fusion-footer-widget-area li { margin-bottom: 9px; font-size: 13.5px; }
.fusion-footer .fusion-footer-widget-area .fusion-column { margin-bottom: 0; }
.fusion-footer .fusion-copyright-notice { padding: 0; font-size: 12.5px; color: #8a8a8a; }
.fusion-footer .fusion-footer-copyright-area {
  background: #000 !important; border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0;
}
.fusion-footer .fusion-copyright-notice a { color: #8a8a8a; }
.fusion-footer .fusion-social-links-footer { display: none; }

/* ---------- 9. 文章 / 产品详情 ---------- */
.single-navigation { display: none !important; }
.single-post .fusion-post-slideshow { display: none !important; }
/* 文章页隐藏主题自带的分享 / 作者 / 相关文章 / 评论 / 元信息（设计稿没有这些模块） */
.single-post .fusion-meta-info,
.single-post .fusion-sharing-box,
.single-post .about-author,
.single-post .related-posts,
.single-post #respond,
.single-post #comments,
.single-post .fusion-post-pagination,
.single-post .fusion-meta-info-wrapper { display: none !important; }
.single-post .post-content > .fusion-fullwidth p { color: inherit; }

/* ---------- 10. 询盘表单（[gm_inquiry_form] 短代码输出） ---------- */
.gm-form-card {
  background: #fff; color: #111; border-radius: 16px; padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.gm-form-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; color: #000; }
.gm-form-card .note { font-size: 13px; color: #6b6b6b; margin: 0 0 18px; }
.gm-form-card .gm-field { margin-bottom: 14px; }
.gm-form-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #333; }
.gm-form-card input[type="text"], .gm-form-card input[type="email"],
.gm-form-card textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e6e6e6; border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: #111; box-sizing: border-box;
}
.gm-form-card input:focus, .gm-form-card textarea:focus {
  outline: none; border-color: #111; box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}
.gm-form-card .gm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gm-form-card button {
  width: 100%; font-size: 15px; padding: 13px; border: 0; cursor: pointer;
  background: #111; color: #fff; border-radius: 8px; font-weight: 700; font-family: inherit; transition: .25s;
}
.gm-form-card button:hover { background: #000; }
.gm-form-card .gm-hp { position: absolute; left: -9999px; }
.gm-alert { background: #eafaf0; border: 1px solid #b7e6c9; color: #17603a; border-radius: 8px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.gm-alert-err { background: #fdecec; border-color: #f5c2c2; color: #8a1f1f; }

/* ---------- 11. 新闻卡片（[gm_news_grid] 短代码输出） ---------- */
.gm-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 28px; }
.gm-news-card {
  display: block; background: #fff; border: 1px solid #e6e6e6; border-radius: 14px;
  overflow: hidden; transition: .2s; color: #111;
}
.gm-news-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .12); transform: translateY(-4px); }
.gm-news-thumb img { width: 100%; height: 210px; object-fit: cover; display: block; }
.gm-news-ph { display: block; height: 210px; background: linear-gradient(150deg, #eee, #e2e2e2); }
.gm-news-body { padding: 18px 20px 20px; }
.gm-news-date { font-size: 12px; color: #6b6b6b; margin-bottom: 8px; }
.gm-news-card h4 { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 0 0 10px; color: #111 !important; }
.gm-news-more { font-size: 13px; font-weight: 700; color: #111; }

/* ---------- 12. 右侧浮动联系条（Avada → Options → 高级 → </body> 前代码） ---------- */
.gm-contact-bar {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 99990; display: flex; flex-direction: column; gap: 10px;
}
.gm-contact-bar a {
  width: 54px; height: 54px; background: #111; color: #fff !important;
  border-radius: 12px 0 0 12px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; position: relative;
  transition: .25s; box-shadow: -3px 0 14px rgba(0, 0, 0, .22); text-decoration: none;
}
.gm-contact-bar a:hover { background: #000; color: #fff !important; width: 60px; }
.gm-contact-bar a .gm-tip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: #000; color: #fff; padding: 8px 14px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: .22s; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.gm-contact-bar a:hover .gm-tip { opacity: 1; right: 66px; }

/* ---------- 13. 分类归档（子主题 category.php） ---------- */
.gm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gm-archive-hero { background: #0b0b0b; color: #fff; padding: 56px 0; }
.gm-archive-hero h1 { color: #fff !important; font-size: 34px !important; font-weight: 800; margin: 0 0 8px; }
.gm-archive-hero p { color: #c9c9c9; margin: 0; font-size: 15.5px; }
.gm-archive-body { padding: 56px 0 70px; }
.gm-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gm-archive-card {
  display: block; background: #fff; border: 1px solid #e6e6e6; border-radius: 14px;
  overflow: hidden; transition: .2s; color: #111;
}
.gm-archive-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .12); transform: translateY(-4px); }
.gm-archive-thumb img { width: 100%; height: 210px; object-fit: cover; display: block; }
.gm-archive-ph { display: block; height: 210px; background: linear-gradient(150deg, #eee, #e2e2e2); }
.gm-archive-info { padding: 18px 20px 20px; }
.gm-archive-date { font-size: 12px; color: #6b6b6b; margin-bottom: 8px; }
.gm-archive-card h2 { font-size: 16px !important; font-weight: 700; line-height: 1.5; margin: 0 0 8px; color: #111 !important; }
.gm-archive-card p { font-size: 13.5px; color: #6b6b6b; margin: 0 0 12px; }
.gm-archive-more { font-size: 13px; font-weight: 700; color: #111; }
.gm-archive-pager { margin-top: 34px; text-align: center; }
.gm-archive-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 12px; margin: 0 4px; border: 1px solid #e6e6e6; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: #111; text-decoration: none;
}
.gm-archive-pager .page-numbers.current { background: #111; color: #fff; border-color: #111; }
.gm-archive-empty { color: #6b6b6b; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 920px) {
  .gm-news-grid, .gm-archive-grid { grid-template-columns: 1fr; }
  .gm-archive-hero h1 { font-size: 26px !important; }
  .gm-form-card .gm-row2 { grid-template-columns: 1fr; }
  .gm-contact-bar { top: auto; bottom: 14px; right: 12px; transform: none; gap: 8px; }
  .gm-contact-bar a {
    width: 44px; height: 44px; border-radius: 22px; font-size: 11px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  }
  .gm-contact-bar a:hover { width: 44px; }
  .gm-contact-bar a .gm-tip { display: none; }
  .fusion-body .fusion-title-heading { word-break: break-word; }
}

/* ---------- 15. Avada Post Card（首页热销产品 / 新闻中心） ---------- */
/* 图片统一高度：产品图白底棚拍，用 contain 保证球具不裁切 */
.fusion-post-cards .fusion-post-card-image img {
  width: 100% !important;
  height: 190px !important;
  object-fit: contain;
  background: #ffffff;
  display: block;
}
/* 卡片等高，摘要长短不影响对齐 */
.fusion-post-cards .post-card > .fusion-column-wrapper { height: 100%; }
/* 卡片描边（白卡在浅色区块上需要边界） */
.fusion-post-cards .post-card .fusion-title-heading { line-height: 1.45; }
/* 卡片内按钮间距（两个按钮并排时） */
.fusion-post-cards .post-card .fusion-button { margin-right: 8px; margin-top: 10px; }

/* ---------- 16. Avada 表单（Main Former） ---------- */
.fusion-form .fusion-form-field { margin-bottom: 10px; }
.fusion-form input[type="text"],
.fusion-form input[type="email"],
.fusion-form textarea {
  background: #ffffff !important;
  border: 1px solid #e2e2e2 !important;
  border-radius: 8px !important;
  color: #111111 !important;
  font-size: 14px !important;
  padding: 12px 14px !important;
}
.fusion-form textarea { min-height: 110px; }
.fusion-form label,
.fusion-form .fusion-form-label {
  color: #d5d5d5 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}
.fusion-form .fusion-form-submit {
  background: #ffffff !important;
  color: #111111 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 14px 26px !important;
}
.fusion-form .fusion-form-submit:hover { background: #e9e9e9 !important; color: #000 !important; }

/* 表单提交按钮（Avada 表单按钮的类名是 form-form-submit） */
.fusion-form .form-form-submit {
  background: #111111 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 14px 26px !important;
  width: 100% !important;
  margin-top: 6px !important;
}
.fusion-form .form-form-submit:hover { background: #000000 !important; color: #ffffff !important; }

/* 卡片等高：让网格 flex 拉伸到行高 */
.fusion-post-cards ul.fusion-grid { align-items: stretch !important; }

/* 表单提交按钮文字（Avada 把文字包在 span 里，颜色由内部变量控制） */
.fusion-form .form-form-submit,
.fusion-form .form-form-submit .fusion-button-text,
.fusion-form .form-form-submit span { color: #ffffff !important; }
.fusion-form .form-form-submit { --button_accent_color: #ffffff; --button_accent_hover_color: #ffffff; }

/* 提交成功 / 失败提示 */
.form-submission-notices { margin-bottom: 16px; }
.form-submission-notices .fusion-form-response {
  border-radius: 8px !important;
  font-size: 13.5px !important;
  padding: 12px 16px !important;
}

/* 表单字段间距略松 */
.fusion-form .fusion-form-field { margin-bottom: 14px !important; }
