/* English-length patch: prevent long strings from breaking layouts */
.promise-item,
.stat-card,
.info-card,
.dim-card,
.type-card,
.feature-card,
.step-card,
.authority-item,
.notice-item {
  min-width: 0;
}
.promise-item strong,
.promise-item small,
.stat-card .stat-label,
.stat-card .stat-value,
.info-card .card-label,
.dim-card h3,
.dim-card p,
.type-card h3,
.type-card p,
.feature-card h3,
.feature-card p,
.authority-text,
.notice-item p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* keep hero titles from overflowing */
.hero-title, .title-info h1, .cover-hero h1 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* desireprofile: English headline is longer than the Chinese original */
.welcome-head h1,
.hero-card h1,
h1 {
  font-size: clamp(26px, 6.6vw, 36px) !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.welcome-head h1 em,
h1 em {
  font-size: inherit !important;
  display: inline;
}
/* let the headline span full width above the visual on narrow screens */
.hero-layout {
  display: block !important;
}
.hero-visual {
  margin-top: 12px !important;
  max-width: 180px;
}


/* h1 overflow fix */
#welcome-title{font-size:clamp(24px,7vw,34px)!important;line-height:1.15!important;overflow-wrap:anywhere;max-width:100%}
#welcome-title em{display:inline;font-size:inherit}

/* stronger h1 clamp for 390px */
#welcome-title,
h1#welcome-title {
  font-size: clamp(21px, 6.2vw, 31px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.01em !important;
  word-break: break-word !important;
  max-width: 100% !important;
}
#welcome-title span,
#welcome-title em,
#welcome-title br + span {
  font-size: inherit !important;
  display: inline !important;
}

/* S4 根因：h1 内 span 被 nowrap，导致 390px 下溢出 34px */
#welcome-title span,
#welcome-title em,
h1 span {
  white-space: normal !important;
  display: inline !important;
}
#welcome-title {
  white-space: normal !important;
}
