/* FOOTX_V1 前台底部 Footer 布局与样式(只作用于 footer.ftx; 配色在 footx_css 里按设置输出)
   A 经典 / B 居中 / C 品牌大列 / D 顶部询盘条 / E 双层联系卡 / F 极简单行 */
html body footer.ftx.ftx { font-size: 15px; }
html body footer.ftx.ftx .footer-grid { max-width: 1480px; margin: 0 auto; display: grid; gap: 40px; padding: 0 20px 60px; box-sizing: border-box; }
html body footer.ftx.ftx[data-width="full"] .footer-grid { max-width: none; }
html body footer.ftx.ftx[data-pad="tight"] { padding-top: 44px; }
html body footer.ftx.ftx[data-pad="tight"] .footer-grid.ftx-main { padding-bottom: 32px; gap: 28px; }
html body footer.ftx.ftx[data-pad="loose"] { padding-top: 110px; }
html body footer.ftx.ftx[data-pad="loose"] .footer-grid.ftx-main { padding-bottom: 84px; gap: 56px; }

/* 顶部分隔 */
html body footer.ftx.ftx[data-sep="line"] { border-top: 3px solid var(--brand-blue, #2d7ff9); }
html body footer.ftx.ftx[data-sep="grad"] { border-top: 3px solid transparent; border-image: linear-gradient(90deg, #2d7ff9, #8b5cf6, #ec4899) 1; }

/* 列标题样式: short = 现状(短下划线) */
html body footer.ftx.ftx .footer-column h3 { margin: 0 0 26px; }
html body footer.ftx.ftx[data-h="bar"] .footer-column h3 { border-left: 3px solid var(--brand-blue, #2d7ff9); padding-left: 10px; }
html body footer.ftx.ftx[data-h="bar"] .footer-column h3::after { display: none; }
html body footer.ftx.ftx[data-h="line"] .footer-column h3 { padding-bottom: 10px; border-bottom: 1px solid rgba(127, 127, 127, .28); }
html body footer.ftx.ftx[data-h="line"] .footer-column h3::after { display: none; }
html body footer.ftx.ftx[data-h="plain"] .footer-column h3::after { display: none; }
html body footer.ftx.ftx[data-h="plain"] .footer-column h3::before { display: none; }

/* 链接悬停: shift = 现状(右移) */
html body footer.ftx.ftx[data-hover="color"] .footer-links a:hover { transform: none; }
html body footer.ftx.ftx[data-hover="underline"] .footer-links a:hover { transform: none; text-decoration: underline; }

/* 社交图标形状 */
html body footer.ftx.ftx .ftx-so { margin-top: 18px; }
html body footer.ftx.ftx[data-so="square"] .social-item,
html body footer.ftx.ftx[data-so="round"] .social-item,
html body footer.ftx.ftx[data-so="outline"] .social-item { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; background: rgba(127, 127, 127, .16); }
html body footer.ftx.ftx[data-so="square"] .social-item { border-radius: 6px; }
html body footer.ftx.ftx[data-so="round"] .social-item { border-radius: 50%; }
html body footer.ftx.ftx[data-so="outline"] .social-item { border-radius: 50%; background: transparent; border: 1.5px solid currentColor; }
html body footer.ftx.ftx .social-item { display: inline-flex; align-items: center; justify-content: center; }

/* 联系方式: 新写法里电话 / 邮箱是链接, 沿用旧样式 */
html body footer.ftx.ftx .contact-list { list-style: none; padding: 0; margin: 0; }
html body footer.ftx.ftx .contact-list li { display: flex; align-items: flex-start; margin-bottom: 18px; }
html body footer.ftx.ftx .contact-list a { color: inherit; text-decoration: none; }
html body footer.ftx.ftx .contact-list a:hover { text-decoration: underline; }
html body footer.ftx.ftx .contact-list i { margin-right: 14px; font-size: 17px; width: 20px; flex: 0 0 20px; }

/* 版权栏 */
html body footer.ftx.ftx .copyright-bar { padding: 22px 20px; text-align: center; font-size: 13px; }
html body footer.ftx.ftx .copyright-bar .footer-grid { padding-bottom: 0; gap: 6px; }
html body footer.ftx.ftx .ftx-cp, html body footer.ftx.ftx .ftx-extra { margin: 0; grid-column: 1 / -1; }
html body footer.ftx.ftx .ftx-extra { opacity: .85; font-size: 12.5px; line-height: 1.7; }
html body footer.ftx.ftx .ftx-cp-split { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-align: left; }
html body footer.ftx.ftx .copyright-bar a { text-decoration: none; color: inherit; }
html body footer.ftx.ftx .copyright-bar a:hover { text-decoration: underline; }

/* B 居中 */
html body footer.ftx.ftx .ftx-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding-bottom: 36px; }
html body footer.ftx.ftx .ftx-center .footer-logo img { margin: 0 auto 18px; }
html body footer.ftx.ftx .ftx-center .company-bio { max-width: 720px; margin: 0 auto 18px; }
html body footer.ftx.ftx .ftx-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 6px 0 6px; }
html body footer.ftx.ftx .ftx-row a { color: inherit; text-decoration: none; transition: opacity .2s; }
html body footer.ftx.ftx .ftx-row a:hover { opacity: .75; text-decoration: underline; }
html body footer.ftx.ftx .ftx-center .ftx-so { justify-content: center; }
html body footer.ftx.ftx .ftx-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 16px 0 0; }
html body footer.ftx.ftx .ftx-line li { margin: 0; }

/* F 极简单行 */
html body footer.ftx.ftx .ftx-one { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding-bottom: 26px; }
html body footer.ftx.ftx .ftx-one .footer-logo img { max-width: 150px; margin: 0; display: block; }
html body footer.ftx.ftx .ftx-one .ftx-row { margin: 0; }
html body footer.ftx.ftx .ftx-one .ftx-so { margin: 0; }
html body footer.ftx.ftx .ftx-one .ftx-line { grid-column: 1 / -1; margin: 0; }
html body footer.ftx.ftx[data-ftx="f"] { padding-top: 40px; }

/* D 顶部询盘条 */
html body footer.ftx.ftx .ftx-cta { background: linear-gradient(90deg, var(--primary-blue, #0056b3), var(--hover-blue, #1d5fd0)); color: #fff; margin: -80px 0 70px; }
html body footer.ftx.ftx[data-pad="tight"] .ftx-cta { margin: -44px 0 40px; }
html body footer.ftx.ftx[data-pad="loose"] .ftx-cta { margin: -110px 0 90px; }
html body footer.ftx.ftx .ftx-cta-in { max-width: 1480px; margin: 0 auto; padding: 26px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-sizing: border-box; }
html body footer.ftx.ftx[data-width="full"] .ftx-cta-in { max-width: none; }
html body footer.ftx.ftx .ftx-cta-in b { font-size: 20px; line-height: 1.4; font-weight: 700; }
html body footer.ftx.ftx .ftx-cta-btn { background: #fff; color: var(--primary-blue, #0056b3); padding: 12px 28px; border-radius: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
html body footer.ftx.ftx .ftx-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }

/* E 双层: 联系卡片 */
html body footer.ftx.ftx .ftx-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 46px; }
html body footer.ftx.ftx .ftx-card { display: flex; align-items: center; gap: 14px; border-radius: 12px; padding: 18px 20px; background: rgba(255, 255, 255, .07); min-width: 0; word-break: break-word; }
html body footer.ftx.ftx .ftx-card i { font-size: 20px; color: var(--brand-blue, #2d7ff9); width: 24px; text-align: center; flex: 0 0 24px; }
html body footer.ftx.ftx .ftx-card small { display: block; opacity: .7; font-size: 12px; margin-bottom: 2px; }
html body footer.ftx.ftx .ftx-card a { color: inherit; text-decoration: none; }

/* 回到顶部 */
.ftx-top { position: fixed; bottom: 96px; z-index: 9990; width: 42px; height: 42px; border-radius: 50%; background: var(--primary-blue, #0056b3); color: #fff; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.ftx-top-left { left: 20px; }
.ftx-top-right { right: 20px; }
.ftx-top:hover { opacity: .88; }

/* 平板 */
@media (max-width: 992px) {
  html body footer.ftx.ftx .footer-grid.ftx-main { grid-template-columns: 1fr 1fr !important; }
  html body footer.ftx.ftx .ftx-cards { grid-template-columns: 1fr; }
  html body footer.ftx.ftx .ftx-one { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  html body footer.ftx.ftx .ftx-cta { margin-top: -50px; }
}
/* 手机: 1 列 / 2 列; 折叠手风琴; 联系方式放最前 */
@media (max-width: 576px) {
  html body footer.ftx.ftx { padding-top: 46px; }
  html body footer.ftx.ftx .footer-grid.ftx-main { gap: 26px; padding-bottom: 36px; grid-template-columns: 1fr !important; }
  html body footer.ftx.ftx[data-mcols="2"] .footer-grid.ftx-main { grid-template-columns: 1fr 1fr !important; gap: 22px 16px; }
  html body footer.ftx.ftx[data-mcols="2"] .ftx-brand, html body footer.ftx.ftx[data-mcols="2"] .ftx-contact { grid-column: 1 / -1; }
  html body footer.ftx.ftx[data-mcf="1"] .ftx-contact { order: -1; }
  html body footer.ftx.ftx[data-macc="1"] .footer-grid.ftx-main { gap: 0; grid-template-columns: 1fr !important; }
  html body footer.ftx.ftx[data-macc="1"] .footer-column:not(.ftx-brand) { border-bottom: 1px solid rgba(127, 127, 127, .22); padding: 14px 0; }
  html body footer.ftx.ftx[data-macc="1"] .footer-column:not(.ftx-brand) h3 { margin: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding-bottom: 0; border-bottom: 0; }
  html body footer.ftx.ftx[data-macc="1"] .footer-column:not(.ftx-brand) h3::after { content: "+"; position: static; background: none; width: auto; height: auto; font-size: 20px; font-weight: 400; }
  html body footer.ftx.ftx[data-macc="1"] .footer-column.ftx-open h3::after { content: "−"; }
  html body footer.ftx.ftx[data-macc="1"] .footer-column:not(.ftx-brand) > ul, html body footer.ftx.ftx[data-macc="1"] .footer-column:not(.ftx-brand) > .social-container { display: none; margin-top: 16px; }
  html body footer.ftx.ftx[data-macc="1"] .footer-column.ftx-open > ul { display: block; }
  html body footer.ftx.ftx[data-macc="1"] .footer-column.ftx-open > .social-container { display: flex; }
  html body footer.ftx.ftx .ftx-cta-in { padding: 20px 16px; }
  html body footer.ftx.ftx .ftx-cta-in b { font-size: 17px; }
  html body footer.ftx.ftx .ftx-cp-split { justify-content: center; text-align: center; }
}
