/* Shared English / Chinese home layout, aligned with the services and fees pages. */
#home { padding-top: 78px; color: #3e5066; background: #fff; }
#home .home-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
#home .home-hero { padding: 56px 0; background: #f3f6fa; }
#home .home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
#home .home-eyebrow { margin: 0 0 16px; color: #1e549a; font-size: 14px; line-height: 1.6; letter-spacing: 1.2px; font-weight: 600; }
#home h1 { max-width: 560px; margin: 0 0 24px; color: #173f76; font-size: clamp(34px, 4vw, 50px); line-height: 1.16; font-weight: 600; letter-spacing: -.8px; }
#home .home-lead { max-width: 480px; margin: 0; font-size: 18px; line-height: 1.8; text-wrap: balance; }
#home .home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 30px; }
#home .home-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 13px 20px; background: #1e549a; color: #fff; border-radius: 6px; font-size: 16px; line-height: 1.5; font-weight: 600; }
#home .home-button:hover { background: #173f76; }
#home .home-text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #1e549a; font-size: 16px; line-height: 1.5; font-weight: 600; }
#home .home-photo { margin: 0; overflow: hidden; border-radius: 12px; background: #e7eef5; }
#home .home-photo img { display: block; width: 100%; height: 390px; object-fit: cover; object-position: 50% 45%; }
#home .home-photo figcaption { padding: 14px 20px; background: #fff; color: #526377; font-size: 14px; line-height: 1.5; }
#home .home-shortcuts { padding: 48px 0; }
#home h2 { margin: 0 0 24px; color: #1e549a; font-size: 28px; line-height: 1.35; font-weight: 500; }
#home .home-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#home .home-link-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 14px; align-items: start; padding: 24px 20px; border: 1px solid #dce4ed; border-radius: 10px; background: #fff; text-decoration: none; }
#home .home-link-card img { display: block; width: 32px; height: 32px; margin-top: 2px; }
#home .home-link-card h3 { margin: 0 0 8px; color: #1e549a; font-size: 20px; line-height: 1.4; font-weight: 600; }
#home .home-link-card p { margin: 0; color: #526377; font-size: 16px; line-height: 1.65; }
#home .home-card-arrow { color: #1e549a; font-size: 22px; line-height: 1.3; }
#home .home-link-card:hover { border-color: #8caed7; background: #f8fafc; }
#home .home-about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; padding: 32px 0 64px; border-top: 1px solid #dce4ed; }
#home .home-about-heading .home-eyebrow { margin-bottom: 12px; }
#home .home-about-heading h2 { margin-bottom: 20px; }
#home .home-richtext { min-width: 0; font-size: 16px; line-height: 1.85; }
#home .home-richtext p { margin: 0 0 18px; }
#home .home-richtext p, #home .home-richtext span { font-family: inherit !important; text-align: left !important; letter-spacing: normal !important; }
#home .home-richtext > :last-child { margin-bottom: 0; }
#home a:focus-visible { outline: 3px solid #1e549a; outline-offset: 4px; }
#home .home-hero-copy, #home .home-about-heading, #home .home-link-card > div { min-width: 0; }
#home h1, #home h2, #home h3, #home p { overflow-wrap: anywhere; }
@media (max-width: 1199px) { #home { padding-top: 0; } }
@media (max-width: 1000px) {
  #home .home-hero-grid, #home .home-about { gap: 32px; }
  #home .home-link-grid { gap: 14px; }
  #home .home-link-card { grid-template-columns: minmax(0, 1fr) 16px; gap: 12px; }
  #home .home-link-card img { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  #home .home-shell { width: calc(100% - 40px); }
  #home .home-hero { padding: 32px 0; }
  #home .home-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #home h1 { font-size: 34px; line-height: 1.22; margin-bottom: 20px; }
  #home .home-lead { font-size: 17px; line-height: 1.75; }
  #home .home-actions { margin-top: 24px; gap: 12px 24px; }
  #home .home-photo img { height: 260px; }
  #home .home-photo figcaption { padding: 12px 16px; }
  #home .home-shortcuts { padding: 32px 0; }
  #home h2 { font-size: 25px; margin-bottom: 20px; }
  #home .home-link-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #home .home-link-card { grid-template-columns: 36px minmax(0, 1fr) 16px; padding: 20px 16px; gap: 14px; }
  #home .home-link-card img { grid-column: auto; }
  #home .home-about { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 0 40px; }
}
html[lang="zh-CN"] #home h1 { letter-spacing: 0; line-height: 1.35; }
html[lang="zh-CN"] #home .home-richtext { line-height: 1.9; }
@media (max-width: 767px) {
  html[lang="zh-CN"] #home h1 { font-size: clamp(30px, 8vw, 34px); }
}
