/* 首页（home）单一响应式布局
   桌面：按原 1300px 画布版式复刻；平板/手机逐级折叠。
   品牌色沿用 theme-warm.css 的 CSS 变量。 */

.tf-home {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  color: var(--tf-text, #3d2e28);
  background: var(--tf-bg-card, #fffcf5);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Tahoma, sans-serif;
}
.tf-home *,
.tf-home *::before,
.tf-home *::after { box-sizing: border-box; }
.tf-home img { max-width: 100%; height: auto; display: block; }

/* 内容容器：复刻原 1300px 画布 */
.tf-home .tfh-wrap {
  width: 1300px;
  max-width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
}

/* 字级体系（复刻原尺寸） */
.tf-home .tfh-en {
  margin: 0 0 10px;
  color: var(--tf-primary-dark, #d4a017);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.24em;
}
.tf-home .tfh-en-center { text-align: center; }
.tf-home .tfh-en-light { color: var(--tf-primary-light, #f5d76e); }
.tf-home .tfh-h2 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.tf-home .tfh-h2-center { text-align: center; }
.tf-home .tfh-h2-light { color: var(--tf-bg-cream, #f8e9c8); }
.tf-home .tfh-h3 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.tf-home .tfh-h3-center { text-align: center; }
.tf-home .tfh-h3-light { color: var(--tf-bg-cream, #f8e9c8); }
.tf-home .tfh-sub {
  margin: 0 0 18px;
  color: var(--tf-primary-deep, #b8860b);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tf-home .tfh-p {
  margin: 0 0 28px;
  max-width: 640px;
  color: var(--tf-text-muted, #6b5a4e);
  font-size: 16px;
  line-height: 2;
}
.tf-home .tfh-p-center { margin-left: auto; margin-right: auto; text-align: center; }
/* 解决方案副标题更长：加宽后桌面端仍约两行居中 */
.tf-home .tfh-solutions-lead {
  max-width: 920px;
  text-wrap: balance;
}
.tf-home .tfh-p-light { color: rgba(248, 233, 200, 0.82); }
.tf-home .tfh-rule {
  display: block;
  text-align: center;
  color: var(--tf-primary-dark, #d4a017);
  letter-spacing: 0.3em;
  margin: 2px 0 16px;
}
.tf-home .tfh-sec { padding: 92px 0; }

/* 按钮 */
.tf-home .tfh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 34px;
  border-radius: 3px;
  background: var(--tf-primary, #e8b830);
  color: var(--tf-text-on-primary, #3d2e28);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 6px 18px var(--tf-shadow, rgba(212, 160, 23, 0.18));
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}
.tf-home .tfh-btn span { transition: transform 0.22s ease; }
.tf-home .tfh-btn:hover {
  transform: translateY(-3px);
  background: var(--tf-primary-dark, #d4a017);
  box-shadow: 0 12px 26px var(--tf-shadow-strong, rgba(184, 134, 11, 0.28));
}
.tf-home .tfh-btn:hover span { transform: translateX(5px); }

/* 滚动显现 */
.tf-home [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tf-home [data-reveal].is-in { opacity: 1; transform: none; }

/* ============ 1. HERO ============ */
.tf-home .tfh-hero {
  position: relative;
  height: 800px;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.tf-home .tfh-hero-bg {
  position: absolute;
  inset: 0;
  background: url(/site-assets/brand/gen/hero-banner.jpg) center center / cover no-repeat;
  animation: tfh-kenburns 22s ease-in-out infinite alternate;
}
.tf-home .tfh-hero-mask {
  position: absolute;
  inset: 0;
  /* 浅色遮罩，保证黑色标题在动图背景上可读 */
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.28) 55%, rgba(255, 255, 255, 0) 78%);
}
@keyframes tfh-kenburns {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.07) translateX(-1.5%); }
}
.tf-home .tfh-hero-inner { position: relative; z-index: 1; }
.tf-home .tfh-hero-title {
  margin: 0;
  color: #000;
  font-size: 56px;
  line-height: 1.32;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 16px rgba(255, 255, 255, 0.35);
}
/* 标题双版本：PC 显示原文，移动端通过断点翻转显示新文案 */
.tf-home .tfh-hero-title-pc { display: inline; }
.tf-home .tfh-hero-title-m { display: none; }
.tf-home .tfh-hero-scroll {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
}
.tf-home .tfh-hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--tf-primary-light, #f5d76e);
  animation: tfh-scrollhint 1.8s ease-in-out infinite;
}
@keyframes tfh-scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ============ 2. INTRO ============ */
.tf-home .tfh-intro { background: var(--tf-bg-card, #fffcf5); }
.tf-home .tfh-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: center;
}
.tf-home .tfh-intro-media {
  position: relative;
  margin: 0;
}
.tf-home .tfh-intro-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 22px 54px rgba(61, 46, 40, 0.15);
}
.tf-home .tfh-intro-media::after {
  content: "";
  position: absolute;
  top: 22px;
  left: -22px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--tf-primary, #e8b830);
  border-radius: 4px;
  z-index: -1;
}
.tf-home .tfh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.tf-home .tfh-tags a {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--tf-border-strong, #e5c15a);
  border-radius: 999px;
  background: var(--tf-primary-soft, #fff4d6);
  color: var(--tf-primary-deep, #b8860b);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tf-home .tfh-tags a:hover {
  background: var(--tf-primary, #e8b830);
  color: var(--tf-text-on-primary, #3d2e28);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px var(--tf-shadow, rgba(212, 160, 23, 0.18));
}

/* ============ 3. METRICS ============ */
.tf-home .tfh-metrics {
  background: var(--tf-bg, #fbf6e9);
  border-top: 1px solid var(--tf-border, #f0e0b8);
  border-bottom: 1px solid var(--tf-border, #f0e0b8);
}
.tf-home .tfh-metrics-head { margin-bottom: 52px; }
.tf-home .tfh-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--tf-border, #f0e0b8);
  border: 1px solid var(--tf-border, #f0e0b8);
  border-radius: 6px;
  overflow: hidden;
}
.tf-home .tfh-metric {
  background: var(--tf-bg-card, #fffcf5);
  padding: 38px 12px 34px;
  text-align: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.tf-home .tfh-metric:hover { background: var(--tf-primary-soft, #fff4d6); }
.tf-home .tfh-metric strong {
  display: block;
  color: var(--tf-primary-dark, #d4a017);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tf-home .tfh-metric span {
  display: block;
  margin-top: 12px;
  color: var(--tf-text-muted, #6b5a4e);
  font-size: 14px;
  line-height: 1.5;
}

/* ============ 4. PLATFORM ============ */
.tf-home .tfh-platform {
  background: var(--tf-bg-cream, #f8e9c8) url(/site-assets/brand/gen/smart-store-bg.jpg) center center / cover no-repeat;
  position: relative;
}
.tf-home .tfh-platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(251, 246, 233, 0.86);
}
.tf-home .tfh-platform .tfh-wrap { position: relative; }
.tf-home .tfh-platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.tf-home .tfh-platform-media { margin: 0; }
.tf-home .tfh-platform-media img {
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 20px 40px rgba(61, 46, 40, 0.18));
}

/* ============ 5. SOLUTIONS ============ */
.tf-home .tfh-solutions { background: var(--tf-bg-card, #fffcf5); }
.tf-home .tfh-sec-head { margin-bottom: 44px; }
.tf-home .tfh-sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.tf-home .tfh-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tf-primary-deep, #b8860b);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.tf-home .tfh-more span { transition: transform 0.2s ease; }
.tf-home .tfh-more:hover { color: var(--tf-primary-dark, #d4a017); }
.tf-home .tfh-more:hover span { transform: translateX(5px); }
.tf-home .tfh-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--tf-border, #f0e0b8);
  margin-bottom: 40px;
}
.tf-home .tfh-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 16px 30px 14px;
  margin-bottom: -2px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--tf-text-muted, #6b5a4e);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.tf-home .tfh-tab:hover { color: var(--tf-primary-dark, #d4a017); }
.tf-home .tfh-tab.is-active {
  color: var(--tf-primary-deep, #b8860b);
  border-bottom-color: var(--tf-primary, #e8b830);
  background: var(--tf-primary-soft, #fff4d6);
}
.tf-home .tfh-pane {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.tf-home .tfh-pane.is-active { display: grid; grid-auto-rows: 1fr; }
/* 三大产品 / 四大定制 / 三大运营：统一 3 列，单卡尺寸一致（定制第 4 张换行） */
.tf-home #pane-custom.tfh-pane.is-active,
.tf-home #pane-ops.tfh-pane.is-active { grid-template-columns: repeat(3, 1fr); }
.tf-home .tfh-card {
  background: var(--tf-bg, #fbf6e9);
  border: 1px solid var(--tf-border, #f0e0b8);
  border-top: 4px solid var(--tf-primary, #e8b830);
  border-radius: 4px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tf-home .tfh-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px var(--tf-shadow, rgba(212, 160, 23, 0.18));
}
.tf-home .tfh-card figure { margin: -26px -24px 20px; overflow: hidden; }
.tf-home .tfh-card figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tf-home .tfh-card:hover figure img { transform: scale(1.05); }
.tf-home .tfh-card header { margin-bottom: 14px; }
.tf-home .tfh-card strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
}
.tf-home .tfh-card em {
  display: block;
  font-style: normal;
  margin-top: 6px;
  color: var(--tf-primary-dark, #d4a017);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tf-home .tfh-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tfh-li;
  flex: 1 1 auto;
}
.tf-home .tfh-card ol li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--tf-text-muted, #6b5a4e);
  font-size: 14px;
  line-height: 1.75;
  counter-increment: tfh-li;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tf-home .tfh-card ol li::before {
  content: counter(tfh-li, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--tf-primary-dark, #d4a017);
  font-size: 12px;
  font-weight: 800;
}
/* 三大角色：标题更长、条目更详，完整展示不截断 */
.tf-home #pane-roles .tfh-card-role {
  padding: 28px 26px 26px;
  min-height: 100%;
}
.tf-home #pane-roles .tfh-card-role header { margin-bottom: 18px; }
.tf-home #pane-roles .tfh-card-role strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--tf-text, #3d2e28);
}
.tf-home #pane-roles .tfh-card-role em {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.tf-home #pane-roles .tfh-card-role ol li {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  padding: 9px 0 9px 30px;
  font-size: 14px;
  line-height: 1.7;
}
.tf-home #pane-roles .tfh-card-role ol li::before {
  top: 10px;
  font-size: 12px;
  letter-spacing: -0.02em;
}
/* 三大运营：单条说明完整展示 */
.tf-home #pane-ops .tfh-card ol li {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}
/* 定制 / 运营：每卡多为 1 条 li，统一 ol 最小高度对齐三大产品应用（2 条 li） */
.tf-home #pane-custom .tfh-card ol,
.tf-home #pane-ops .tfh-card ol { min-height: 77px; }

/* ============ 6. NEWS ============ */
.tf-home .tfh-news {
  background: var(--tf-bg, #fbf6e9);
  border-top: 1px solid var(--tf-border, #f0e0b8);
}
.tf-home .tfh-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 30px;
  align-items: stretch;
}
.tf-home .tfh-news-list { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.tf-home .tfh-news-featured {
  background: var(--tf-bg-card, #fffcf5);
  border: 1px solid var(--tf-border, #f0e0b8);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tf-home .tfh-news-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px var(--tf-shadow, rgba(212, 160, 23, 0.18));
}
.tf-home .tfh-news-media { display: block; overflow: hidden; }
.tf-home .tfh-news-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tf-home .tfh-news-featured:hover .tfh-news-media img { transform: scale(1.03); }
.tf-home .tfh-news-body { padding: 26px 28px 28px; }
.tf-home .tfh-news-body time {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  background: var(--tf-primary-soft, #fff4d6);
  color: var(--tf-primary-deep, #b8860b);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
}
.tf-home .tfh-news-body h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 800;
}
.tf-home .tfh-news-body h3 a { color: var(--tf-text, #3d2e28); text-decoration: none; transition: color 0.2s ease; }
.tf-home .tfh-news-body h3 a:hover { color: var(--tf-primary-dark, #d4a017); }
.tf-home .tfh-news-body p {
  margin: 0;
  color: var(--tf-text-muted, #6b5a4e);
  font-size: 15px;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tf-home .tfh-news-item {
  display: flex;
  gap: 18px;
  background: var(--tf-bg-card, #fffcf5);
  border: 1px solid var(--tf-border, #f0e0b8);
  border-radius: 4px;
  padding: 18px;
  flex: 1 1 0;
  min-height: 0;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tf-home .tfh-news-item:hover {
  transform: translateX(6px);
  border-color: var(--tf-border-strong, #e5c15a);
  box-shadow: 0 10px 24px var(--tf-shadow, rgba(212, 160, 23, 0.18));
}
.tf-home .tfh-news-thumb { flex: 0 0 140px; display: block; border-radius: 3px; overflow: hidden; align-self: stretch; }
.tf-home .tfh-news-thumb img { width: 140px; height: 100%; object-fit: cover; }
.tf-home .tfh-news-item .tfh-news-body { padding: 2px 0; display: flex; flex-direction: column; justify-content: center; }
.tf-home .tfh-news-item h3 { font-size: 15px; line-height: 1.5; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 7. CONTACT + PARTNERS ============ */
.tf-home .tfh-contact {
  background: var(--tf-footer, #3d2e28);
  position: relative;
  overflow: hidden;
}
/* 合作品牌隐藏后收紧本区上下留白，不影响其它 section */
.tf-home .tfh-contact.tfh-sec { padding: 64px 0 48px; }
.tf-home .tfh-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 360px at 6% 0%, rgba(232, 184, 48, 0.12), transparent 70%),
    url(/site-assets/brand/gen/cobrand-bg.jpg) center bottom / cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
}
.tf-home .tfh-contact .tfh-wrap { position: relative; }
.tf-home .tfh-contact-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  padding-bottom: 28px;
}
.tf-home .tfh-contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  height: 100%;
  min-height: 100%;
  padding-top: 4px;
  padding-bottom: 4px;
  box-sizing: border-box;
}
.tf-home .tfh-contact-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.tf-home .tfh-contact-logo { height: 46px; width: auto; margin: 0 0 22px; }
.tf-home .tfh-contact-tagline {
  margin: 0 0 24px;
  color: rgba(248, 233, 200, 0.75);
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.tf-home .tfh-contact-line {
  margin: 0 0 18px;
  color: rgba(248, 233, 200, 0.85);
  font-size: 17px;
  line-height: 1.8;
}
.tf-home .tfh-contact-meta .tfh-contact-line:last-child { margin-bottom: 0; }
.tf-home .tfh-contact-line span {
  display: inline-block;
  min-width: 80px;
  color: var(--tf-primary-light, #f5d76e);
  font-weight: 700;
}
.tf-home .tfh-contact-line a { color: var(--tf-bg-cream, #f8e9c8); text-decoration: none; transition: color 0.2s ease; }
.tf-home .tfh-contact-line a:hover { color: var(--tf-primary-light, #f5d76e); }
.tf-home .tfh-contact-line a[href^="mailto:"] {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tf-home .tfh-contact-line a[href^="tel:"] {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--tf-primary-light, #f5d76e);
}
/* 桌面：左栏被 stretch 拉高后，二维码贴底，与右卡底缘对齐 */
.tf-home .tfh-contact-qr {
  margin: auto 0 0;
  display: flex;
  gap: 18px;
  align-items: center;
}
.tf-home .tfh-contact-qr img {
  width: 172px;
  height: 172px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 6px;
}
.tf-home .tfh-contact-qr figcaption {
  color: rgba(248, 233, 200, 0.8);
  font-size: 14px;
  line-height: 1.8;
}
/* 二维码说明双版本：PC 显示 2 行原文，移动端切换 3 行文案 */
.tf-home .tfh-qr-cap-pc { display: inline; }
.tf-home .tfh-qr-cap-m { display: none; }
/* 联系我们留言表单：亮色卡片浮于深色底之上，紧凑四字段，与左侧信息列高度协调 */
.tf-home .tfh-contact-form {
  background: var(--tf-bg-card, #fffcf5);
  border: 1px solid rgba(232, 184, 48, 0.22);
  border-radius: 18px;
  padding: 32px 30px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.tf-home .tfh-contact-form .tfh-en { color: var(--tf-primary-dark, #b8860b); }
.tf-home .tfh-contact-form .tfh-h2-light { color: var(--tf-text, #3d2e28); }
.tf-home .tfh-contact-form .tfh-p-light { color: var(--tf-text-muted, #6b5a4e); }
.tf-home .tfh-guestbook { width: 100%; margin-top: 4px; }
.tf-home .tfh-gb-field { margin-bottom: 14px; }
.tf-home .tfh-gb-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--tf-border, #f0e0b8);
  border-radius: 8px;
  background: #fff;
  color: var(--tf-text, #3d2e28);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tf-home .tfh-gb-input::placeholder { color: #b6a78e; }
.tf-home .tfh-gb-input:focus {
  outline: none;
  border-color: var(--tf-primary, #e8b830);
  box-shadow: 0 0 0 3px rgba(232, 184, 48, 0.2);
}
.tf-home .tfh-gb-textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.tf-home .tfh-gb-code {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.tf-home .tfh-gb-code-input { flex: 1; }
.tf-home .tfh-gb-codeimg {
  height: 44px;
  width: 120px;
  border: 1px solid var(--tf-border, #f0e0b8);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}
.tf-home .tfh-gb-note {
  margin: 12px 0 0;
  min-height: 20px;
  color: var(--tf-primary-deep, #b8860b);
  font-size: 14px;
  line-height: 1.6;
}
.tf-home .tfh-gb-note.is-error { color: #d94838; }
.tf-home .tfh-gb-actions { margin-top: 16px; text-align: center; }
.tf-home .tfh-gb-submit {
  min-width: 220px;
  min-height: 48px;
  padding: 0 40px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tf-primary, #e8b830), var(--tf-primary-dark, #d4a017));
  color: var(--tf-text-on-primary, #3d2e28);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(212, 160, 23, 0.32);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.tf-home .tfh-gb-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(212, 160, 23, 0.4);
  filter: brightness(1.04);
}
.tf-home .tfh-gb-submit:active { transform: translateY(-1px); }
.tf-home .tfh-gb-submit.is-loading { opacity: 0.7; cursor: wait; transform: none; }
/* 合作品牌跑马灯 */
.tf-home .tfh-partners {
  position: relative;
  border-top: 1px solid rgba(248, 233, 200, 0.14);
  padding: 46px 0 54px;
  overflow: hidden;
}
.tf-home .tfh-partners-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  margin-top: 30px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tf-home .tfh-partners-track.is-rolling { animation: tfh-marquee 46s linear infinite; }
.tf-home .tfh-partners-track img {
  height: 56px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(1) brightness(1.7);
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.tf-home .tfh-partners-track img:hover { opacity: 1; filter: none; }
@keyframes tfh-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ 响应式断点 ============ */
@media (max-width: 1024px) {
  .tf-home .tfh-sec { padding: 72px 0; }
  .tf-home .tfh-h2 { font-size: 34px; }
  .tf-home .tfh-hero { height: auto; min-height: 560px; padding: 120px 0 96px; }
  .tf-home .tfh-hero-title { font-size: 40px; }
  .tf-home .tfh-intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .tf-home .tfh-metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .tf-home .tfh-platform-grid { grid-template-columns: 1fr; gap: 44px; }
  .tf-home .tfh-pane.is-active,
  .tf-home #pane-custom.tfh-pane.is-active,
  .tf-home #pane-ops.tfh-pane.is-active { grid-template-columns: repeat(2, 1fr); } /* 平板统一 2 列 */
  .tf-home #pane-roles.tfh-pane.is-active { grid-template-columns: 1fr; } /* 角色文案较长，平板单列更易读 */
  .tf-home .tfh-news-grid { grid-template-columns: 1fr; }
  .tf-home .tfh-contact.tfh-sec { padding: 56px 0 40px; }
  .tf-home .tfh-contact-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 24px; }
  /* 单列取消等高贴底，避免二维码被推得过远；上组间距略收 */
  .tf-home .tfh-contact-info {
    height: auto;
    min-height: 0;
    gap: 24px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .tf-home .tfh-contact-logo { height: 34px; margin-bottom: 18px; }
  .tf-home .tfh-contact-tagline { margin-bottom: 18px; letter-spacing: 0.04em; }
  .tf-home .tfh-contact-line { margin-bottom: 14px; }
  .tf-home .tfh-contact-qr { margin: 0; gap: 14px; align-items: flex-end; } /* 移动端二维码说明底部对齐 */
  .tf-home .tfh-contact-qr img { width: 120px; height: 120px; }
  .tf-home .tfh-contact-qr figcaption { font-size: 13px; line-height: 1.7; }
  /* 移动端切换为 3 行文案 */
  .tf-home .tfh-qr-cap-pc { display: none; }
  .tf-home .tfh-qr-cap-m { display: inline; }
  .tf-home .tfh-sec-head-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 768px) {
  .tf-home .tfh-wrap { max-width: calc(100% - 32px); }
  .tf-home .tfh-sec { padding: 56px 0; }
  .tf-home .tfh-h2 { font-size: 28px; }
  .tf-home .tfh-p { font-size: 15px; }
  .tf-home .tfh-hero { min-height: 480px; padding: 100px 0 80px; }
  .tf-home .tfh-hero-title { font-size: 30px; }
  /* 移动端切换为新文案 */
  .tf-home .tfh-hero-title-pc { display: none; }
  .tf-home .tfh-hero-title-m { display: inline; }
  .tf-home .tfh-sub { font-size: 18px; }
  .tf-home .tfh-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .tf-home .tfh-metric strong { font-size: 34px; }
  .tf-home .tfh-tabs { overflow-x: auto; }
  .tf-home .tfh-tab { padding: 14px 18px; font-size: 16px; white-space: nowrap; }
  .tf-home .tfh-pane.is-active,
  .tf-home #pane-custom.tfh-pane.is-active,
  .tf-home #pane-ops.tfh-pane.is-active { grid-template-columns: 1fr; }
  .tf-home #pane-roles .tfh-card-role { padding: 22px 18px 20px; }
  .tf-home #pane-roles .tfh-card-role strong { font-size: 19px; }
  .tf-home #pane-roles .tfh-card-role em { font-size: 12px; line-height: 1.5; }
  .tf-home #pane-roles .tfh-card-role ol li {
    padding: 8px 0 8px 28px;
    font-size: 13px;
    line-height: 1.65;
  }
  .tf-home .tfh-news-item { flex-direction: row; flex: 0 0 auto; min-height: 0; }
  .tf-home .tfh-news-thumb img { height: 96px; }
  /* 地址行移动端重排：标签与正文 flex 并列，正文自然换行，避免「B0908 室」被单独甩到一行 */
  .tf-home .tfh-contact-meta .tfh-contact-line:last-child {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.7;
  }
  .tf-home .tfh-contact-meta .tfh-contact-line:last-child span {
    min-width: 0;
    flex: 0 0 auto;
    margin-right: 16px;
  }
  .tf-home .tfh-contact-form { padding: 32px 24px 28px; border-radius: 14px; }
  .tf-home .tfh-gb-codeimg { width: 110px; }
  .tf-home .tfh-partners-track img { height: 46px; }
}

@media (max-width: 480px) {
  .tf-home .tfh-hero-title { font-size: 24px; }
  .tf-home .tfh-h2 { font-size: 25px; }
  .tf-home .tfh-metric strong { font-size: 30px; }
  .tf-home .tfh-news-thumb { flex-basis: 104px; }
  .tf-home .tfh-news-thumb img { width: 104px; height: 78px; }
  .tf-home .tfh-news-item { flex: 0 0 auto; min-height: 0; }
  .tf-home .tfh-contact-form { padding: 26px 18px 24px; }
  .tf-home .tfh-gb-input { min-height: 44px; padding: 10px 14px; }
  .tf-home .tfh-gb-textarea { min-height: 96px; }
  .tf-home .tfh-gb-codeimg { width: 96px; height: 44px; }
  .tf-home .tfh-partners-track { gap: 48px; }
  .tf-home .tfh-partners-track img { height: 40px; }
}
