/* Tfox 内页统一组件 20261124：产品详情 / 联系我们 / 询盘 */
.tfx-page {
  --tfx-accent: #1f5e57;
  --tfx-soft: #f1f6f4;
  --tfx-ink: #24313a;
  --tfx-muted: #73838c;
  --tfx-line: #e3ebee;
  background: #f6f8f9;
  color: var(--tfx-ink);
  padding: 0 0 58px;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
.tfx-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.tfx-crumb { display: flex; align-items: center; gap: 7px; padding: 18px 0; font-size: 12px; color: #7e9098; }
.tfx-crumb a { color: #7e9098; text-decoration: none; }
.tfx-crumb a:hover { color: var(--tfx-accent); }
.tfx-crumb span { color: #b6c2c7; }

/* 产品详情 */
.tfx-product { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 38px; padding: 30px; background: #fff; border: 1px solid var(--tfx-line); border-radius: 20px; box-shadow: 0 16px 40px rgba(23, 44, 55, .055); }
.tfx-gallery { min-width: 0; border-radius: 15px; background: var(--tfx-soft); padding: 24px; display: flex; align-items: center; justify-content: center; min-height: 430px; }
.tfx-gallery figure { margin: 0; width: 100%; text-align: center; }
.tfx-gallery img { display: block; max-width: 100%; max-height: 450px; margin: 0 auto; object-fit: contain; border-radius: 10px; background: #fff; }
.tfx-gallery figcaption { margin-top: 14px; font-size: 12px; color: var(--tfx-muted); }
.tfx-summary { align-self: center; min-width: 0; }
.tfx-kicker { display: block; margin-bottom: 11px; color: var(--tfx-accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.tfx-summary h1 { margin: 0 0 13px; font-size: 30px; line-height: 1.36; color: var(--tfx-ink); font-weight: 700; word-break: break-word; }
.tfx-lead { margin: 0 0 20px; color: #61737d; font-size: 14px; line-height: 1.85; }
.tfx-facts { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; }
.tfx-facts li { padding: 6px 11px; border-radius: 999px; background: var(--tfx-soft); color: #55716d; font-size: 12px; }
.tfx-facts li::before { content: "·"; margin-right: 5px; color: var(--tfx-accent); font-weight: 700; }
.tfx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.tfx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--tfx-accent); border-radius: 9px; background: var(--tfx-accent); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: filter .18s, background .18s; }
.tfx-btn:hover { filter: brightness(.92); color: #fff; }
.tfx-btn.is-ghost { background: #fff; color: var(--tfx-accent); }
.tfx-btn.is-ghost:hover { background: var(--tfx-soft); color: var(--tfx-accent); }
.tfx-facts + .tfx-actions + .tfx-phone { color: var(--tfx-muted); font-size: 13px; }
.tfx-phone a { color: var(--tfx-ink); font-weight: 700; text-decoration: none; }
.tfx-phone a:hover { color: var(--tfx-accent); }

/* 产品下半部：说明 + 询盘 */
.tfx-lower { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 26px; margin-top: 26px; align-items: start; }
.tfx-card { background: #fff; border: 1px solid var(--tfx-line); border-radius: 16px; padding: 26px 28px; }
.tfx-card-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding-bottom: 13px; border-bottom: 1px solid var(--tfx-line); }
.tfx-card-hd h2 { margin: 0; font-size: 19px; line-height: 1.4; color: var(--tfx-ink); }
.tfx-card-hd span { color: #95a5ac; font-size: 12px; }
.tfx-rich { color: #4f626c; font-size: 14px; line-height: 1.95; word-break: break-word; }
.tfx-rich * { max-width: 100%; }
.tfx-rich img { height: auto; border-radius: 8px; }
.tfx-rich p { margin: 0 0 13px; }
.tfx-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--tfx-line); font-size: 12px; }
.tfx-pn a { color: var(--tfx-muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfx-pn a:hover { color: var(--tfx-accent); }
.tfx-pn span { color: #9aabb2; }

/* 询盘表单 */
.tfx-lead-card { background: #fff; border: 1px solid var(--tfx-line); border-radius: 16px; padding: 24px 24px 21px; box-shadow: 0 12px 30px rgba(23, 44, 55, .045); }
.tfx-lead-card h2 { margin: 0 0 7px; font-size: 19px; line-height: 1.45; color: var(--tfx-ink); }
.tfx-lead-card .tfx-lead-note { margin: 0 0 16px; color: var(--tfx-muted); font-size: 12px; line-height: 1.7; }
.tfx-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tfx-lead-form .tfx-full { grid-column: 1 / -1; }
.tfx-lead-form input, .tfx-lead-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #dce7eb; border-radius: 8px; background: #fbfcfd; color: var(--tfx-ink); font: inherit; font-size: 13px; padding: 11px 12px; outline: none; transition: border-color .18s, background .18s, box-shadow .18s; }
.tfx-lead-form textarea { min-height: 84px; resize: vertical; line-height: 1.7; }
.tfx-lead-form input:focus, .tfx-lead-form textarea:focus { border-color: var(--tfx-accent); background: #fff; box-shadow: 0 0 0 3px rgba(31, 94, 87, .10); }
.tfx-lead-form button { grid-column: 1 / -1; min-height: 44px; border: 0; border-radius: 8px; background: var(--tfx-accent); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: filter .18s; }
.tfx-lead-form button:hover { filter: brightness(.92); }
.tfx-lead-form button:disabled { opacity: .62; cursor: default; }
.tfx-lead-form .tfx-hp { display: none !important; }
.tfx-form-msg { grid-column: 1 / -1; min-height: 18px; margin-top: 9px; font-size: 12px; line-height: 1.6; color: var(--tfx-muted); }
.tfx-form-msg.is-ok { color: #237a50; }
.tfx-form-msg.is-err { color: #b63c35; }
.tfx-contact-copy:empty { display: none; }

/* 相关产品 */
.tfx-related { margin-top: 34px; }
.tfx-related-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.tfx-related-hd h2 { margin: 0; font-size: 21px; color: var(--tfx-ink); }
.tfx-related-hd a { color: var(--tfx-accent); font-size: 12px; text-decoration: none; }
.tfx-related-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tfx-related-list li { min-width: 0; background: #fff; border: 1px solid var(--tfx-line); border-radius: 13px; overflow: hidden; transition: border-color .18s, transform .18s; }
.tfx-related-list li:hover { border-color: var(--tfx-accent); transform: translateY(-2px); }
.tfx-related-list a { display: block; color: var(--tfx-ink); text-decoration: none; }
.tfx-related-list img { display: block; width: 100%; height: 150px; object-fit: cover; background: var(--tfx-soft); }
.tfx-related-list p { min-height: 42px; margin: 0; padding: 11px 12px 13px; font-size: 13px; line-height: 1.55; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* 联系我们 */
.tfx-contact-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 34px 38px; background: #fff; border: 1px solid var(--tfx-line); border-radius: 20px; box-shadow: 0 16px 40px rgba(23, 44, 55, .05); }
.tfx-contact-hero h1 { margin: 0 0 9px; color: var(--tfx-ink); font-size: 30px; line-height: 1.35; }
.tfx-contact-hero p { max-width: 650px; margin: 0; color: var(--tfx-muted); font-size: 14px; line-height: 1.85; }
.tfx-contact-hero .tfx-hero-note { flex: 0 0 auto; max-width: 290px; padding-left: 24px; border-left: 1px solid var(--tfx-line); color: #6f828a; font-size: 12px; line-height: 1.8; }
.tfx-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: 24px; margin-top: 24px; align-items: stretch; }
.tfx-contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tfx-info-card { min-width: 0; padding: 18px 19px; background: #fff; border: 1px solid var(--tfx-line); border-radius: 13px; }
.tfx-info-card b { display: block; margin-bottom: 6px; color: #8a9aa1; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.tfx-info-card a, .tfx-info-card div { color: var(--tfx-ink); font-size: 14px; line-height: 1.7; text-decoration: none; word-break: break-word; }
.tfx-info-card a:hover { color: var(--tfx-accent); }
.tfx-contact-copy { grid-column: 1 / -1; padding: 19px; background: var(--tfx-soft); border-radius: 13px; color: #526972; font-size: 13px; line-height: 1.85; }
.tfx-contact-copy img { max-width: 100%; height: auto; }
.tfx-contact-form { padding: 24px; }
.tfx-contact-form h2 { margin: 0 0 6px; color: var(--tfx-ink); font-size: 19px; }
.tfx-contact-form .tfx-lead-note { margin: 0 0 17px; }

/* 地图 */
.tfx-map-card { margin-top: 24px; background: #fff; border: 1px solid var(--tfx-line); border-radius: 16px; overflow: hidden; }
.tfx-map-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 17px 22px 13px; border-bottom: 1px solid var(--tfx-line); }
.tfx-map-hd h2 { margin: 0; color: var(--tfx-ink); font-size: 17px; }
.tfx-map-hd span { color: var(--tfx-muted); font-size: 12px; }
#tfxMapContainer { width: 100%; height: 360px; background: var(--tfx-soft); }

/* 兼容老模板局部样式 */
.tfx-page .bass { display: none; }
.tfx-page .tf-inquiry { display: none !important; }

@media (max-width: 980px) {
  .tfx-product { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .tfx-gallery { min-height: 300px; padding: 18px; }
  .tfx-gallery img { max-height: 360px; }
  .tfx-lower, .tfx-contact-grid { grid-template-columns: 1fr; }
  .tfx-contact-hero { padding: 27px 26px; align-items: flex-start; flex-direction: column; }
  .tfx-contact-hero .tfx-hero-note { max-width: none; padding-left: 0; padding-top: 14px; border-left: 0; border-top: 1px solid var(--tfx-line); }
  .tfx-related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tfx-wrap { width: calc(100% - 28px); }
  .tfx-crumb { padding: 12px 0; }
  .tfx-product { padding: 14px; border-radius: 15px; }
  .tfx-summary h1 { font-size: 23px; }
  .tfx-gallery { min-height: 230px; }
  .tfx-gallery img { max-height: 280px; }
  .tfx-card, .tfx-lead-card, .tfx-contact-form { padding: 18px; }
  .tfx-contact-hero { padding: 22px 18px; border-radius: 15px; }
  .tfx-contact-hero h1 { font-size: 23px; }
  .tfx-contact-info { grid-template-columns: 1fr; }
  .tfx-contact-copy { grid-column: auto; }
  .tfx-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tfx-related-list img { height: 118px; }
  .tfx-lead-form { grid-template-columns: 1fr; }
  .tfx-lead-form .tfx-full, .tfx-lead-form button { grid-column: auto; }
  .tfx-pn { grid-template-columns: 1fr; }
  #tfxMapContainer { height: 260px; }
}
