/* Homepage: claim → service guide → news → about → consult. Shared shell, site-tinted heroes. */
.home {
  --home-ink: #18334a;
  --home-slate: #526574;
  --home-line: #d8e1e8;
  --home-mist: #f3f6f8;
  --home-navy: #18334a;
  --home-action: #2978ff;
  --home-accent: #2978ff;
  --home-assist: #ea5514;
  --home-hero-shade: linear-gradient(105deg, #0f2436f2 0%, #14324acc 42%, #14324a66 68%, #14324a1a 100%);
  color: var(--home-ink);
  background: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
/* Each homepage has its own scene, color and composition. */
.home-fiscal{--home-navy:#edf2f5;--home-action:#2978ff;--home-accent:#2978ff;--home-assist:#ea5514;--home-hero-shade:linear-gradient(90deg,#edf2f5 0%,#edf2f5f0 29%,#edf2f57a 52%,transparent 80%)}
.home-licensing{--home-navy:#e8eff5;--home-action:#2978ff;--home-accent:#2978ff;--home-assist:#ea5514;--home-hero-shade:linear-gradient(90deg,#e8eff5 0%,#e8eff5f2 30%,#e8eff545 59%,transparent 80%)}
.home-overseas{--home-navy:#081e30;--home-action:#2978ff;--home-accent:#2978ff;--home-assist:#ea5514;--home-hero-shade:linear-gradient(90deg,#081e30 0%,#081e30e8 26%,#081e3066 58%,transparent 85%)}

.home * { box-sizing: border-box; }
.home h1, .home h2, .home h3, .home p { margin: 0; }
.home a { text-decoration: none; color: inherit; }
.home a:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 4px; }

.home-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}
.home-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--home-accent);
}
.home h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--home-ink);
}
.home h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}
.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #d7e2ea;
  max-width: 34em;
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: inherit;
}
.inline-link:hover { color: var(--home-accent); }
.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}
.section-intro .home-kicker { margin-bottom: 10px; }
.section-intro > p:last-child {
  max-width: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--home-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Full-bleed homepage banners, with a shared 1200px reading grid. */
.home .home-hero{position:relative;isolation:isolate;display:flex;align-items:center;width:100%;max-width:none;min-height:520px;margin:0;padding:0;overflow:hidden;border-radius:0;color:var(--home-ink);background:var(--home-navy);text-align:left}
.home .home-hero::before,.home .home-hero::after{content:none;display:none}
.home .home-hero-media{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:center}
.home .home-hero-shade{position:absolute;inset:0;z-index:1;background:var(--home-hero-shade);pointer-events:none}
.home .home-hero-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:min(1200px,calc(100% - 40px));max-width:1200px;min-height:520px;margin-inline:auto;padding:54px 0 42px;text-align:left;box-sizing:border-box}
.home .home-brand{margin:0 0 24px;color:var(--home-ink);font-size:14px;font-weight:600;line-height:1.4;letter-spacing:.1em}
.home .home-hero .home-kicker{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:var(--home-accent);font-size:12px;font-weight:600;letter-spacing:.14em}
.home .home-hero .home-kicker::before{content:'';width:23px;height:2px;background:currentColor}
.home .home-hero h1{max-width:12em;margin:0 0 20px;color:var(--home-ink);font-size:clamp(32px,3.5vw,50px);font-weight:600;line-height:1.3;letter-spacing:-.025em;text-wrap:balance}
.home .home-hero .hero-lead{max-width:510px;margin:0;color:var(--home-slate);font-size:16px;line-height:1.9;white-space:normal;overflow:visible;text-overflow:clip}
.home-hero-actions{display:flex;align-items:center;gap:12px;margin-top:28px}
.home .home-hero-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;border-radius:8px;font-size:14px;font-weight:500;line-height:1.5}
.home .home-hero-primary{background:var(--home-action);color:#fff;border:1px solid var(--home-action)}
.home .home-hero-primary:hover{filter:brightness(.92)}
.home .home-hero-secondary{background:#ffffff85;border:1px solid #b7c5d0;color:var(--home-ink)}
.home .home-hero-secondary:hover{background:#fff}
.home-hero-topics{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:35px;padding-top:18px;border-top:1px solid #29435324}
.home .home-hero-topics a{color:var(--home-slate);font-size:12px;line-height:1.6}
.home .home-hero-topics a:hover{color:var(--home-action);text-decoration:underline;text-underline-offset:4px}
/* Engineering uses the bridge's structural diagonal as its visual signature. */
.home.home-licensing .home-hero-shade{background:#e8eff5;clip-path:polygon(0 0,56% 0,45% 100%,0 100%)}
.home.home-licensing .home-hero h1{max-width:10em;font-size:clamp(32px,3.3vw,48px)}
.home.home-licensing .hero-lead{max-width:470px}
.home.home-licensing .home-hero-media{object-position:65% center}
.home.home-licensing .home-hero-topics{border:0;gap:10px;margin-top:26px;padding:0}
.home.home-licensing .home-hero-topics a{padding:5px 12px;border:1px solid #bdcbd5;border-radius:6px}
/* Overseas opens on a dark global panorama rather than a local office scene. */
.home.home-overseas .home-hero,.home.home-overseas .home-hero-copy{min-height:560px}
.home.home-overseas .home-brand,.home.home-overseas .home-hero h1{color:#fff}
.home.home-overseas .home-hero h1{max-width:10em;font-size:clamp(32px,3.4vw,49px)}
.home.home-overseas .hero-lead{max-width:480px;color:#d7e5ec}
.home.home-overseas .home-hero-secondary{border-color:#ffffff6b;background:#ffffff0d;color:#fff}
.home.home-overseas .home-hero-secondary:hover{background:#ffffff20}
.home.home-overseas .home-hero-topics{border-color:#ffffff30}
.home.home-overseas .home-hero-topics a{color:#d3e1e9}
.home.home-overseas .home-hero-topics a:hover{color:#ffd2ad}

/* —— Services —— */
.home-services,
.home-news,
.home-insights,
.home-catalogs {
  padding: 72px 40px;
  box-sizing: border-box;
}
.home-services {
  background: #f5f8fa;
}
.service-grid {
  display: grid;
  gap: 16px;
}
.service-grid-fiscal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-grid-overseas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-overseas .service-card-body .service-tags {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-overseas .service-card-body .service-tags a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.home-overseas .service-card-body > p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-licensing .home-services {
  --lic-ink: #1a2f45;
  --lic-muted: #5b7290;
  --lic-line: #f1f5f9;
  --lic-rail: #e8f1fa;
  --lic-mark: #1e4d7a;
  --mark-accent: #ea5514;
  background:
    linear-gradient(180deg, #f4f7fa 0%, #eef3f8 100%);
}
.home-licensing .home-services .section-intro {
  margin-bottom: 36px;
}
.home-licensing .home-services .section-intro h2 {
  color: var(--lic-ink);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
}
.home-licensing .home-services .section-intro .section-lead,
.home-licensing .home-services .section-intro > p:last-child {
  color: var(--lic-muted);
  font-size: 15px;
}
.service-grid-licensing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.home-licensing .service-card-rail {
  display: grid;
  grid-template-columns: minmax(168px, 30%) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 0 #ffffffa8 inset,
    0 12px 36px #16324d14,
    0 2px 8px #16324d0a;
}
.home-licensing .service-card-rail:hover {
  box-shadow:
    0 1px 0 #ffffffa8 inset,
    0 16px 40px #16324d18,
    0 4px 12px #16324d0d;
  transform: translateY(-2px);
}
.home-licensing .service-rail {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 36px 28px;
  background:
    radial-gradient(120% 90% at 0% 0%, #f7fbff 0%, transparent 55%),
    linear-gradient(160deg, #edf5fc 0%, #e3eef8 48%, #d9e8f5 100%);
  overflow: hidden;
}
.home-licensing .service-rail::before {
  content: "";
  position: absolute;
  inset: auto -18% -28% auto;
  width: 180px;
  height: 180px;
  background:
    linear-gradient(135deg, transparent 46%, #2978ff12 46% 54%, transparent 54%),
    linear-gradient(45deg, transparent 46%, #2978ff10 46% 54%, transparent 54%);
  background-size: 28px 28px;
  opacity: .9;
  transform: rotate(-8deg);
  pointer-events: none;
}
.home-licensing .service-rail::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 128px;
  height: 128px;
  border: 14px solid #2978ff12;
  border-radius: 22px;
  transform: rotate(16deg);
  pointer-events: none;
}
.home-licensing .service-rail h3 {
  --lic-rail-title-size: clamp(24px, 2.1vw, 30px);
  position: relative;
  z-index: 1;
  margin: 0;
  width: calc(5 * var(--lic-rail-title-size));
  max-width: 100%;
  font-size: var(--lic-rail-title-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--lic-ink);
}
.home-licensing .service-rail h3 a {
  color: inherit;
  text-decoration: none;
}
.home-licensing .service-rail h3 a:hover { color: #2978ff; }
.home-licensing .service-rail-points {
  --lic-rail-title-size: clamp(24px, 2.1vw, 30px);
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  width: calc(5 * var(--lic-rail-title-size));
  max-width: 100%;
  list-style: none;
}
.home-licensing .service-rail-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffffd9;
  box-shadow: 0 1px 0 #ffffffa8 inset, 0 4px 12px #16324d0a;
  color: #3a6794;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .01em;
}
.home-licensing .service-rail-points li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2978ff;
  box-shadow: 0 0 0 3px #2978ff1f;
}
.home-licensing .service-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: stretch;
  margin: 0;
  background: #fff;
  gap: 0;
  border-left: 1px solid var(--lic-line);
}
.home-licensing .service-icon-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  grid-column: span 2;
  min-height: 128px;
  padding: 18px 12px 16px;
  border-right: 1px solid var(--lic-line);
  border-bottom: 1px solid var(--lic-line);
  background: #fff;
  color: var(--lic-ink);
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.home-licensing .service-icon-grid a:nth-child(3n) { border-right: 0; }
/* 第二排仅 2 个时各占一半宽度 */
.home-licensing .service-icon-grid:has(> a:nth-child(5):last-child) > a:nth-child(4),
.home-licensing .service-icon-grid:has(> a:nth-child(5):last-child) > a:nth-child(5) {
  grid-column: span 3;
}
.home-licensing .service-icon-grid:has(> a:nth-child(5):last-child) > a:nth-child(5) {
  border-right: 0;
}
.home-licensing .service-icon-grid a:hover {
  z-index: 1;
  background: #f8fbfe;
  color: #2978ff;
  box-shadow: inset 0 0 0 1px #2978ff33;
}
.home-licensing .licensing-service-mark {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform .2s ease;
}
.home-licensing .service-icon-grid a:hover .licensing-service-mark {
  transform: translateY(-2px);
}
.home-licensing .service-icon-grid span {
  max-width: 9em;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.home-licensing .service-icon-grid .service-tag-more span {
  color: var(--lic-muted);
}
.home-licensing .service-icon-grid .service-tag-more:hover span {
  color: #2978ff;
}
@media (prefers-reduced-motion: reduce) {
  .home-licensing .service-card-rail:hover { transform: none; }
  .home-licensing .service-icon-grid a:hover .licensing-service-mark { transform: none; }
}

.home-fiscal .home-services .section-intro,
.home-fiscal .home-news .news-intro,
.home-fiscal .home-catalogs .catalogs-intro,
.home-licensing .home-services .section-intro,
.home-licensing .home-news .news-intro,
.home-overseas .home-services .section-intro,
.home-overseas .home-news .news-intro,
.home-overseas .home-catalogs .catalogs-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.home-fiscal .home-services .section-intro > p:last-child,
.home-fiscal .home-news .news-intro > p,
.home-fiscal .home-catalogs .catalogs-intro > p,
.home-licensing .home-services .section-intro > p:last-child,
.home-overseas .home-services .section-intro > p:last-child,
.home-overseas .home-news .news-intro > p,
.home-overseas .home-catalogs .catalogs-intro > p {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-fiscal .section-lead {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
}
.home-fiscal .home-catalogs .catalogs-intro {
  align-items: center;
  margin-bottom: 24px;
}
.home-fiscal .service-card,
.home-licensing .service-card,
.home-overseas .service-card {
  background: #fff;
  border: 0;
  box-shadow: none;
}
.home-fiscal .service-card:hover,
.home-licensing .service-card:hover,
.home-overseas .service-card:hover {
  border: 0;
  transform: translateY(-2px);
}
.home-fiscal .service-card-body {
  padding: 20px 18px 18px;
}
.home-fiscal .catalog-grid-item {
  background: #fff;
  border: 0;
  box-shadow: none;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--home-mist);
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
}
.service-card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.service-card-media {
  display: block;
  height: 148px;
  overflow: hidden;
  background: #dfe7ee;
}
.service-grid-overseas .service-card-media { height: 180px; }
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.service-card:hover .service-card-media img { transform: scale(1.04); }
.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px 18px;
}
.service-card-body > svg,
.service-card-body .service-glyph {
  width: 28px;
  height: 28px;
  padding: 10px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--home-accent);
  color: #fff;
  box-sizing: content-box;
}
.home-fiscal .service-card-body > svg,
.home-fiscal .service-card-body .service-glyph {
  background: #2978ff;
  color: #fff;
}
.service-card:hover .service-card-body h3 { color: var(--home-accent); }
.service-card-body > p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--home-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-card-body .service-tags {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.service-card-body .service-tags a {
  display: block;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid color-mix(in srgb, #2978ff 28%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, #2978ff 10%, #fff);
  font-size: 12px;
  line-height: 1.3;
  color: #2978ff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color .2s, color .2s, background .2s;
}
.service-card-body .service-tags a:hover {
  border-color: color-mix(in srgb, #2978ff 45%, transparent);
  color: #1f5fd6;
  background: color-mix(in srgb, #2978ff 16%, #fff);
}
.service-card-body .service-tags .service-tag-more {
  color: #2978ff;
}
.service-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--home-line);
  font-size: 13px;
  font-weight: 700;
  color: var(--home-navy);
}
.service-card-link:hover { color: var(--home-accent); }

/* —— News (list + side recommendations) —— */
.home-news {
  background: #fff;
}
.home-news-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.home-news-layout .news-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}
.home-news-layout .news-intro > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--home-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-news-body {
  position: relative;
  min-width: 0;
}
.home-news-body.has-side {
  padding-right: 324px;
}
.home-news-main { min-width: 0; }
.home-news-side {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}
.home-news-main .article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-news-main .article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  min-height: 0;
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 8px;
  box-shadow: 0 4px 14px #1a2f4410;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.home-news-main .article-row:has(.article-image) {
  grid-template-columns: 160px minmax(0, 1fr);
}
.home-news-main .article-row:hover {
  border-color: #d5dee6;
  box-shadow: 0 8px 20px #1a2f4416;
  transform: translateY(-2px);
}
.home-news-main .article-image {
  position: relative;
  display: block;
  align-self: stretch;
  width: 160px;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--home-mist);
}
.home-news-main .article-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-news-main .article-row-copy {
  display: block;
  min-width: 0;
  padding: 2px 4px 2px 0;
}
.home-news-main .article-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--home-slate);
}
.home-news-main .article-meta span:first-child {
  color: #2978ff;
}
.home-news-main .article-row-copy h2 {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
}
.home-news-main .article-row-copy h2 a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.home-news-main .article-row-copy h2 a:hover { color: #2978ff; }
.home-news-main .article-row-copy p {
  margin: 8px 0 0;
  max-height: calc(1.7em * 2);
  font-size: 14px;
  line-height: 1.7;
  color: var(--home-slate);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-news-main .empty-state {
  padding: 28px 0;
  color: var(--home-slate);
}
.home-news-side {
  padding: 16px 14px;
  background: color-mix(in srgb, #2978ff 6%, #fff);
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}
.home-news-side > h2 {
  flex: 0 0 auto;
  margin: 0 0 10px;
  padding-inline: 2px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--home-ink);
}
.home-recommendations {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  margin: 0;
  padding: 0;
  min-height: 0;
  list-style: none;
  overflow: hidden;
}
.home-recommendations li {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: start;
  gap: 6px 8px;
  min-height: 0;
  padding: 12px;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  box-sizing: border-box;
}
.home-recommendations span {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  max-width: 100%;
  margin: 0;
  padding: 3px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, #2978ff 12%, #fff);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: #2978ff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.home-recommendations time {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: #8a96a3;
  font-variant-numeric: tabular-nums;
}
.home-recommendations a {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--home-ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.home-recommendations a:hover { color: #2978ff; }
.home-recommendations p {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  color: #8a96a3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* —— Insights (Baidu-style tabs + cards, above catalogs) —— */
.home-insights {
  background: #f5f8fa;
}
.insights-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  text-align: center;
}
.insights-head .section-lead {
  margin: 0;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.7;
  color: var(--home-slate);
}
.insights-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  background: #e8eef3;
  border-radius: 999px;
}
.insights-tab {
  appearance: none;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--home-slate);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.insights-tab:hover { color: var(--home-ink); }
.insights-tab.is-active {
  background: #fff;
  color: #2978ff;
  box-shadow: 0 1px 4px #1a2f4414;
}
.insights-tab:focus-visible {
  outline: 3px solid #2978ff66;
  outline-offset: 2px;
}
.insights-panel {
  background: #fff;
  border: 1px solid #e4ebf1;
  border-radius: 16px;
  box-shadow: 0 12px 32px #1a2f4410;
  overflow: hidden;
}
.insights-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.insights-feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 220px;
  padding: 28px 24px 24px;
  border-right: 1px solid #eef2f6;
}
.insights-feature-card:last-child { border-right: 0; }
.insights-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 4px;
  background: color-mix(in srgb, #ea5514 12%, #fff);
  color: #ea5514;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.insights-feature-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--home-ink);
}
.insights-feature-card h3 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.insights-feature-card h3 a:hover { color: #2978ff; }
.insights-feature-card > p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--home-slate);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.home .insights-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  background: #2978ff;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: filter .2s ease;
}
.home .insights-cta:hover { filter: brightness(.94); color: #fff; }
.insights-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #eef2f6;
}
.insights-list-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 112px;
  padding: 22px 24px;
  border-right: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  transition: background-color .2s ease;
}
.insights-list-item:nth-child(3n) { border-right: 0; }
.insights-list-item:hover { background: #f8fbfe; }
.insights-list-item strong {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--home-ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.insights-list-item:hover strong { color: #2978ff; }
.insights-list-item span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--home-slate);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.insights-empty {
  margin: 0;
  padding: 48px 24px;
  text-align: center;
  color: var(--home-slate);
  font-size: 14px;
}
.insights-empty a {
  margin-left: 6px;
  color: #2978ff;
  font-weight: 500;
}
.insights-empty a:hover { text-decoration: underline; }

/* —— Catalogs (flat grid) + contact —— */
.home-catalogs {
  background: #edf2f7;
}
.home-licensing .home-catalogs {
  background: #edf2f7;
}
.catalogs-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}
.home-licensing .catalogs-intro {
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}
.catalogs-intro h2 {
  margin: 0;
}
.catalogs-intro > p {
  margin: 0;
  max-width: 36em;
  font-size: 14px;
  line-height: 1.55;
  color: var(--home-slate);
}
.catalog-groups {
  display: grid;
  gap: 20px;
}
.catalog-group {
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px #1a2f440c;
}
.catalog-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.catalog-group-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--home-ink);
}
.catalog-group-head h3 a:hover { color: #2978ff; }
.catalog-group-more {
  flex: 0 0 auto;
  color: #2978ff;
  font-size: 13px;
  font-weight: 500;
}
.catalog-group-more:hover { text-decoration: underline; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.home-licensing .catalog-group .catalog-grid {
  gap: 10px;
}
.home-fiscal .catalog-grid,
.home-overseas .catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-overseas .home-catalogs-packages {
  background:
    radial-gradient(circle at 18% 6%, rgba(103, 190, 255, 0.46), transparent 24%),
    radial-gradient(circle at 66% 84%, rgba(75, 132, 255, 0.36), transparent 34%),
    linear-gradient(115deg, #2f9cff, #1f67f2 46%, #1636d8);
  color: #fff;
}
.home-overseas .catalogs-package-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 22px;
  margin-bottom: 36px;
}
.home-overseas .catalogs-package-head h2 {
  margin: 0;
  color: #fff;
  white-space: nowrap;
}
.home-overseas .catalogs-package-divider {
  width: 1px;
  height: 1.2em;
  background: #ffffff48;
}
.home-overseas .catalogs-package-head .section-lead {
  margin: 0;
  color: #ffffffd9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-overseas .catalogs-package-trust {
  margin: 0;
  padding: 0 18px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ffffff48;
  border-radius: 999px;
  background: #ffffff1a;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}
.home-overseas .catalog-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.home-overseas .catalog-package-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #ffffff94;
  border-radius: 12px;
  background: #fbf8f3;
  box-shadow: 0 24px 58px #051c5e29;
  overflow: hidden;
}
.home-overseas .catalog-package-card.is-featured {
  border-color: #ff7d4594;
  box-shadow: 0 28px 68px #ea55142e;
}
.home-overseas .catalog-package-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  min-height: 0;
  padding: 28px 24px 24px;
  color: #363c48;
}
.home-overseas .catalog-package-body h3 {
  margin: 0;
  color: #1c2740;
  font-size: 22px;
  line-height: 1.35;
}
.home-overseas .catalog-package-subtitle {
  margin: 6px 0 0;
  min-height: 0;
  color: #7a766f;
  font-size: 14px;
  line-height: 1.55;
}
.home-overseas .catalog-package-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.home-overseas .catalog-package-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #363c48;
  font-size: 14px;
  line-height: 1.4;
}
.home-overseas .catalog-package-list a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-overseas .catalog-package-list a:hover {
  color: #2978ff;
}
.home-overseas .catalog-package-check {
  flex: none;
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.home-overseas .catalog-package-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #2978ff;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 16px 28px #2978ff38;
}
.home-overseas .catalog-package-action:hover {
  background: #1f63d9;
  color: #fff;
}
.catalog-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #e8eef3;
  border-radius: 12px;
  background: #fff;
  color: var(--home-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.home-licensing .catalog-group .catalog-grid-item {
  background: #f8fbfe;
  border-color: #e4ebf2;
}
.catalog-grid-item:hover {
  color: #fff;
  background: #2978ff;
  border-color: #2978ff;
  box-shadow: 0 8px 18px #2978ff33;
}

/* Fiscal industry-news topics — aligned with tenace payment-type-card */
.home-catalogs-topics {
  background: #f3f7ff;
}
.catalog-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.catalog-topic {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 184px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #fff;
  color: #313541;
  text-align: left;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.catalog-topic:hover,
.catalog-topic:focus-visible {
  border-color: #ea5514;
  box-shadow: 0 14px 30px rgba(49, 53, 65, .08);
  transform: translateY(-3px);
}
.catalog-topic-body {
  display: block;
  flex: 1;
  min-height: 132px;
  padding: 20px 20px 14px;
}
.catalog-topic-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.catalog-topic-icon {
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.catalog-topic-title strong {
  color: #313541;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.catalog-topic:hover .catalog-topic-title strong,
.catalog-topic:focus-visible .catalog-topic-title strong {
  color: #2978ff;
}
.catalog-topic-description {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  color: #7b818e;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.catalog-topic-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-top: 1px solid #eceef2;
  background: #fff;
  color: #2978ff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.catalog-topic:hover .catalog-topic-action,
.catalog-topic:focus-visible .catalog-topic-action {
  border-top-color: #2978ff;
  background: #2978ff;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-media,
  .home-hero-copy,
  .service-card,
  .service-card-media img,
  .catalog-topic { animation: none; transition: none; }
}

@media (max-width: 1100px) {
  .service-grid-fiscal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid-overseas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-overseas .catalog-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-overseas .catalogs-package-head {
    grid-template-columns: auto auto minmax(0, 1fr);
  }
  .home-overseas .catalogs-package-trust { grid-column: 1 / -1; justify-self: start; }
  .service-grid-licensing { grid-template-columns: 1fr; }
  .catalog-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-news-body.has-side { padding-right: 0; }
  .home-news-side {
    position: static;
    width: auto;
    height: auto;
    margin-top: 24px;
    overflow: visible;
  }
  .insights-featured,
  .insights-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insights-feature-card:nth-child(2n) { border-right: 0; }
  .insights-feature-card:nth-child(3) { border-top: 1px solid #eef2f6; }
  .insights-list-item:nth-child(3n) { border-right: 1px solid #eef2f6; }
  .insights-list-item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 900px) {
  .home-licensing .service-card-rail {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .home-licensing .service-rail {
    padding: 26px 22px;
    gap: 14px;
  }
  .home-licensing .service-rail h3 { max-width: none; }
  .home-licensing .service-rail-points {
    grid-template-columns: repeat(2, max-content);
    gap: 10px 20px;
  }
  .home-licensing .service-icon-grid {
    border-left: 0;
    border-top: 1px solid var(--lic-line, #e8eef5);
  }
  .home-licensing .service-icon-grid a { min-height: 120px; }
}

@media (max-width: 767px) {
  .section-intro {
    display: block;
    margin-bottom: 24px;
  }
  .section-intro > p:last-child {
    margin-top: 10px;
    white-space: normal;
  }
  .home-services,
  .home-news,
  .home-insights,
  .home-catalogs { padding: 48px 20px; }
  .catalogs-intro { margin-bottom: 18px; }
  .catalog-group { padding: 18px; border-radius: 14px; }
  .catalog-group-head { margin-bottom: 14px; }
  .catalog-group-head h3 { font-size: 18px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-grid-item { min-height: 48px; font-size: 13px; padding: 10px 12px; }
  .catalog-topics { grid-template-columns: 1fr; gap: 12px; }
  .catalog-topic { min-height: 0; }
  .catalog-topic-body { min-height: 0; }
  .catalog-topic-title strong { font-size: 16px; }
  .catalog-topic-action { min-height: 46px; font-size: 15px; }
  .home-news-layout .news-intro > p,
  .insights-head .section-lead,
  .home-fiscal .section-lead,
  .home-fiscal .home-services .section-intro > p:last-child,
  .home-fiscal .home-catalogs .catalogs-intro > p { white-space: normal; }
  .home-news-main .article-row {
    gap: 14px;
    padding: 12px;
  }
  .home-news-main .article-row:has(.article-image) {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .home-news-main .article-image { width: 96px; height: 72px; }
  .home-news-main .article-row-copy h2 { font-size: 16px; }
  .home-news-main .article-row-copy p { display: none; }
  .insights-tabs {
    justify-content: flex-start;
    width: 100%;
    border-radius: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .insights-tab { flex: 0 0 auto; white-space: nowrap; }
  .insights-featured,
  .insights-list { grid-template-columns: 1fr; }
  .insights-feature-card,
  .insights-list-item {
    border-right: 0;
    border-bottom: 1px solid #eef2f6;
  }
  .insights-feature-card:last-child,
  .insights-list-item:last-child { border-bottom: 0; }
  .insights-feature-card { min-height: 0; }
  .service-grid-fiscal,
  .service-grid-licensing,
  .service-grid-overseas { grid-template-columns: 1fr; }
  .home-overseas .catalog-package-grid { grid-template-columns: 1fr; }
  .home-overseas .catalogs-package-head {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    justify-items: center;
  }
  .home-overseas .catalogs-package-divider { display: none; }
  .home-overseas .catalogs-package-head .section-lead { white-space: normal; }
  .service-card-media,
  .service-grid-overseas .service-card-media { height: 150px; }
  .home-licensing .service-icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-licensing .service-icon-grid a,
  .home-licensing .service-icon-grid:has(> a:nth-child(5):last-child) > a:nth-child(4),
  .home-licensing .service-icon-grid:has(> a:nth-child(5):last-child) > a:nth-child(5) {
    grid-column: auto;
  }
  .home-licensing .service-icon-grid a:nth-child(3n) { border-right: 1px solid var(--lic-line); }
  .home-licensing .service-icon-grid a:nth-child(2n) { border-right: 0; }
  .home-licensing .service-rail-points { grid-template-columns: max-content; }
  .service-card-body > p { white-space: normal; }
}

.home-cta {
  padding: 74px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--home-action) 55%, #fff), transparent 55%),
    linear-gradient(120deg, #3f86ff, var(--home-action) 58%, #1f63d9);
}
.home-overseas .home-cta {
  background:
    radial-gradient(circle at 30% 20%, #1a4568, transparent 55%),
    linear-gradient(120deg, #0f2f4a, var(--home-navy) 58%, #061524);
}
.home-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-inline: 24px;
}
.home-cta h2 {
  margin: 0;
  max-width: 18em;
  color: #fff;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.01em;
}
.home-cta p {
  margin: 0;
  max-width: 36em;
  color: #fff;
  font-size: 15px;
  line-height: 1.7;
  opacity: .95;
}
.home .home-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--home-action);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: filter .16s ease, transform .16s ease;
}
.home .home-cta-button:hover {
  filter: brightness(.97);
  transform: translateY(-1px);
  color: var(--home-action);
}
@media (prefers-reduced-motion: reduce) {
  .home .home-cta-button { transition: none; }
  .home .home-cta-button:hover { transform: none; }
}

@media (max-width: 390px) {
  .home-services,
  .home-news,
  .home-insights,
  .home-catalogs { padding: 40px 16px; }
  .home-cta { padding: 48px 0; }
  .home-cta h2 { max-width: none; font-size: 22px; }
  .home-cta p { font-size: 13px; }
  .home-news-main .article-row,
  .home-news-main .article-row:has(.article-image) { grid-template-columns: minmax(0, 1fr); }
  .home-news-main .article-image { display: none; }
}

@media(max-width:1000px){
 .home .home-hero h1,.home.home-licensing .home-hero h1,.home.home-overseas .home-hero h1{max-width:12em;font-size:38px}
 .home .home-hero .hero-lead,.home.home-licensing .hero-lead,.home.home-overseas .hero-lead{max-width:48%;font-size:15px}
 .home.home-licensing .home-hero-shade{clip-path:polygon(0 0,65% 0,53% 100%,0 100%)}
}
@media(max-width:600px){
 .home .home-hero,.home .home-hero-copy,.home.home-overseas .home-hero,.home.home-overseas .home-hero-copy{min-height:500px}
 .home .home-hero-copy{width:calc(100% - 40px);padding-block:42px 34px}
 .home .home-hero-media,.home.home-licensing .home-hero-media{height:100%;object-position:67% center;opacity:.44}
 .home .home-hero-shade,.home.home-licensing .home-hero-shade{clip-path:none;background:linear-gradient(90deg,var(--home-navy) 0%,color-mix(in srgb,var(--home-navy) 92%,transparent) 40%,color-mix(in srgb,var(--home-navy) 48%,transparent))}
 .home .home-brand{font-size:13px;margin-bottom:24px}
 .home .home-hero h1,.home.home-licensing .home-hero h1,.home.home-overseas .home-hero h1{max-width:100%;font-size:32px;line-height:1.35;margin-bottom:17px}
 .home .home-hero .hero-lead,.home.home-licensing .hero-lead,.home.home-overseas .hero-lead{max-width:100%;font-size:14px;line-height:1.85}
 .home .home-hero-actions{margin-top:25px;gap:10px}
 .home .home-hero-actions a{min-height:42px;padding:9px 18px;font-size:13px}
 .home .home-hero-topics,.home.home-licensing .home-hero-topics{max-width:100%;margin-top:26px;gap:8px 14px}
 .home.home-overseas .home-hero-media{opacity:.6}
}
