@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --c-bg: #eef3fb;
  --c-surface: #ffffff;
  --c-ink: #0b1220;
  --c-muted: #5a6478;
  --c-line: rgba(11, 18, 32, 0.08);
  --c-accent: #1d4ed8;
  --c-accent-dark: #1e3a8a;
  --c-accent-soft: rgba(29, 78, 216, 0.1);
  --c-gold: #f59e0b;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 28px 64px rgba(11, 18, 32, 0.1);
  --max: 1240px;
  --nav-h: 76px;
  --font: "DM Sans", "Noto Sans SC", "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* 统一图片容器：固定比例 + object-fit */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #dbeafe;
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }

.media--hero-bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
  z-index: 0;
  aspect-ratio: unset;
  height: 100%;
}

.media--hero-bg > img {
  object-position: center 30%;
  min-height: 100%;
}

.media--contain > img { object-fit: contain; background: #f8fbff; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(238, 243, 251, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}

.site-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-accent), #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
}

.brand__text strong {
  display: block;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.brand__text span {
  font-size: 0.75rem;
  color: var(--c-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  padding: 9px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-muted);
  border-radius: 999px;
  transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--c-accent);
  background: var(--c-accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-accent), #2563eb);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.28);
}

.btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--primary:active { transform: scale(0.98); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
}

.btn--block { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: #fff;
  margin-left: auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 40px 0 64px;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(238, 243, 251, 0.96) 0%, rgba(238, 243, 251, 0.82) 42%, rgba(238, 243, 251, 0.35) 100%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero__copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.125rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero__copy h1 .hl { color: var(--c-accent); }

.hero__lead {
  margin: 0 0 28px;
  max-width: 36ch;
  color: var(--c-muted);
  font-size: 1.0625rem;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tag {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-accent-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(29, 78, 216, 0.15);
  border-radius: 999px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.hero__visual {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: end;
}

.hero__portrait {
  box-shadow: var(--shadow);
  border: 4px solid rgba(255, 255, 255, 0.9);
}

.lead-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.lead-card h3 {
  margin: 0 0 14px;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.lead-card input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  outline: none;
}

.lead-card input:focus {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.lead-card .agree {
  margin: 0 0 14px;
  font-size: 0.75rem;
  color: var(--c-muted);
}

.lead-card .agree a { color: var(--c-accent); }

/* Metrics */
.metrics {
  margin-top: -28px;
  position: relative;
  z-index: 5;
  padding-bottom: 24px;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding: 28px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.06);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  min-width: 0;
}

.metric-item:not(:last-child) {
  border-right: 1px solid var(--c-line);
}

.metric__num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.metric__label {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.45;
  max-width: 12em;
}

/* Subjects band */
.subjects {
  padding: 56px 0;
}

.subjects__frame {
  box-shadow: var(--shadow);
  border: 1px solid var(--c-line);
}

.subjects__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.72) 0%, rgba(11, 18, 32, 0.2) 70%, transparent 100%);
  color: #fff;
}

.subjects__content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.subjects__content p { margin: 0 0 18px; max-width: 42ch; opacity: 0.92; }

.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-pills span {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Section common */
.section { padding: 88px 0; }
.section--alt { background: var(--c-surface); }

.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  letter-spacing: -0.02em;
}

.section-head p { margin: 0; color: var(--c-muted); font-size: 1.0625rem; }

/* Bento features */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 16px;
  align-items: stretch;
}

.bento-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento-card--lg {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.bento-card:nth-child(2),
.bento-card:nth-child(3) {
  grid-column: 3;
}

.bento-card:nth-child(2) { grid-row: 1; }
.bento-card:nth-child(3) { grid-row: 2; }

.bento-card:nth-child(2) .bento-card__media,
.bento-card:nth-child(3) .bento-card__media {
  flex: 1 1 auto;
  min-height: 120px;
  aspect-ratio: unset;
}

.bento-card:nth-child(2) .bento-card__media > img,
.bento-card:nth-child(3) .bento-card__media > img {
  height: 100%;
  min-height: 120px;
}

.bento-card:nth-child(4) { grid-column: 1; grid-row: 3; }
.bento-card:nth-child(5) { grid-column: 2; grid-row: 3; }
.bento-card:nth-child(6) { grid-column: 3; grid-row: 3; }

.bento-card--lg .bento-card__media {
  flex: 1 1 auto;
  min-height: 240px;
  aspect-ratio: unset;
}

.bento-card--lg .bento-card__media > img {
  height: 100%;
  min-height: 240px;
}

.bento-card__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.06), rgba(29, 78, 216, 0.02));
  border-top: 1px solid var(--c-line);
}

.bento-card__highlights div {
  text-align: center;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(29, 78, 216, 0.1);
  border-radius: var(--radius-sm);
}

.bento-card__highlights strong {
  display: block;
  font-size: 1rem;
  color: var(--c-accent);
  margin-bottom: 2px;
}

.bento-card__highlights span {
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.35;
}

.bento-card__media { flex-shrink: 0; border-radius: 0; }
.bento-card__body { padding: 20px 22px 24px; flex: 0 0 auto; }

.bento-card__body h3 {
  margin: 0 0 6px;
  font-size: 1.0625rem;
}

.bento-card__body .sub {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-accent);
}

.bento-card__body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.65;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.process-item {
  position: relative;
  padding: 24px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.process-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  padding: 6px 10px;
  border-radius: 8px;
}

.process-item h3 { margin: 0 0 8px; font-size: 1rem; }
.process-item p { margin: 0; font-size: 0.875rem; color: var(--c-muted); }

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split--reverse .split__media { order: 2; }
.split--reverse .split__copy { order: 1; }

.split__copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.split__copy p { margin: 0 0 22px; color: var(--c-muted); max-width: 44ch; }

.split__media {
  box-shadow: var(--shadow);
  border: 1px solid var(--c-line);
}

.checklist {
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9375rem;
  color: var(--c-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  border: 2px solid var(--c-accent);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.t-card {
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}

.t-card p {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.7;
}

.t-card strong { font-size: 0.875rem; }
.t-card span { display: block; font-size: 0.8125rem; color: var(--c-muted); margin-top: 2px; }

.stars { color: var(--c-gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.875rem; }

/* CTA */
.cta-band {
  padding: 72px 0;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 44px;
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(135deg, var(--c-accent-dark), var(--c-accent));
  color: #fff;
  box-shadow: 0 24px 56px rgba(29, 78, 216, 0.28);
}

.cta-box h2 { margin: 0 0 8px; font-size: clamp(1.375rem, 2vw, 1.875rem); }
.cta-box p { margin: 0; opacity: 0.9; }

.cta-box .btn--ghost {
  background: #fff;
  color: var(--c-accent);
  border: none;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 0.9375rem; }
.footer-grid p, .footer-grid li { font-size: 0.875rem; margin: 8px 0; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bento-card:hover { transform: none; }
}

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .metrics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 12px;
  }

  .metric-item {
    border-right: none;
    border-bottom: none;
  }

  .metric-item:nth-child(odd) {
    border-right: 1px solid var(--c-line);
  }

  .metric-item:nth-child(1),
  .metric-item:nth-child(2) {
    padding-bottom: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--c-line);
  }
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .bento-card--lg,
  .bento-card:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }

  .bento-card--lg .bento-card__media {
    min-height: 200px;
  }

  .bento-card__highlights {
    grid-template-columns: 1fr;
  }
  .process { grid-template-columns: repeat(2, 1fr); }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media, .split--reverse .split__copy { order: unset; }
  .testimonials { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .metrics__grid {
    grid-template-columns: 1fr;
    padding: 16px 12px;
  }

  .metric-item {
    border-right: none !important;
    border-bottom: 1px solid var(--c-line);
    padding: 14px 8px;
  }

  .metric-item:last-child { border-bottom: none; }
  .process { grid-template-columns: 1fr; }
  .subjects__content { padding: 24px; }
  .media--21x9 { aspect-ratio: 16 / 9; }
  .home-news__layout { grid-template-columns: 1fr; }
  .nav-city { width: 100%; }
  .nav-city__btn { width: 100%; justify-content: space-between; }
  .nav-city__panel { left: 0; right: 0; width: auto; }
}

/* Brand logo (CMS) */
.brand__logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

/* City selector */
.nav-city { position: relative; }

.nav-city__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.nav-city__btn:hover { border-color: rgba(29, 78, 216, 0.25); color: var(--c-ink); }
.nav-city__btn svg { transition: transform 0.2s; }
.nav-city__btn.is-open svg { transform: rotate(180deg); }

.nav-city__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(92vw, 520px);
  max-height: 360px;
  overflow: auto;
  padding: 16px 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 20;
}

.nav-city__panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-city__panel dl {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 12px;
  margin: 0 0 10px;
  font-size: 0.8125rem;
}

.nav-city__panel dt { color: var(--c-accent); font-weight: 700; }
.nav-city__panel dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.nav-city__panel a { color: var(--c-muted); transition: color 0.15s; }
.nav-city__panel a:hover { color: var(--c-accent); }

/* News */
.home-news {
  padding: 88px 0;
  background: var(--c-bg);
}

.home-news__card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: calc(var(--radius-lg) + 4px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(11, 18, 32, 0.04);
}

.home-news__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  overflow-x: auto;
}

.home-news__tabs .news-tab {
  flex-shrink: 0;
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--c-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.home-news__tabs .news-tab:hover { color: var(--c-ink); background: rgba(11, 18, 32, 0.04); }
.home-news__tabs .news-tab.active { color: var(--c-accent); background: var(--c-accent-soft); }

.home-news__more {
  margin-left: auto;
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-accent);
  white-space: nowrap;
}

.home-news__body { padding: 24px; }
.home-news .news-category-panel { display: none; }
.home-news .news-category-panel.active { display: block; }

.home-news__layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}

.home-news .featured-banner {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
}

.home-news .news-list-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}

.home-news .news-list-item:last-child { border-bottom: none; }

.home-news .news-list-title {
  flex: 1;
  font-size: 0.9375rem;
  color: var(--c-ink);
  transition: color 0.15s;
}

.home-news .news-list-title:hover { color: var(--c-accent); text-decoration: none; }

.home-news .news-list-date {
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}

.home-news .news-list-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--c-muted);
}

/* Footer (partial) */
.home-page .site-footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0;
  padding: 56px 0 32px;
}

.home-page .footer-inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.home-page .site-footer a { color: rgba(255, 255, 255, 0.88); }
.home-page .site-footer a:hover { color: #fff; text-decoration: none; }
.home-page .site-footer h4 { color: #fff; font-size: 0.9375rem; margin: 0 0 12px; }
.home-page .footer-col p,
.home-page .footer-col li { margin: 8px 0; font-size: 0.875rem; }
.home-page .footer-col .tel { color: #fff; font-size: 1.25rem; font-weight: 600; }
.home-page .footer-bottom {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}
.home-page .footer-bottom p { margin: 6px 0; }
.home-page .footer-bottom a { color: rgba(255, 255, 255, 0.65); }

/* Modals (main.js compatible) */
.home-page .modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}

.home-page .modal.is-open { visibility: visible; opacity: 1; }

.home-page .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.home-page .modal-box {
  position: relative;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow);
}

.home-page .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--c-bg);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--c-muted);
}

.home-page .modal-close:hover { background: var(--c-accent-soft); color: var(--c-ink); }
.home-page .modal-login-tabs { margin-bottom: 16px; }
.home-page .modal-login-tabs .tab {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--c-muted);
  font-size: 0.9375rem;
}
.home-page .modal-login-tabs .tab.active { color: var(--c-accent); font-weight: 600; }
.home-page .tab-divider { color: var(--c-line); margin: 0 4px; }
.home-page .link-forgot { font-size: 0.8125rem; margin-bottom: 16px; display: inline-block; color: var(--c-accent); }

.home-page .form-login input,
.home-page .form-trial input[type="tel"],
.home-page .modal-box input[type="text"],
.home-page .modal-box input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: var(--c-ink);
}

.home-page .input-row { display: flex; gap: 12px; margin-bottom: 12px; }
.home-page .input-row input { flex: 1; margin-bottom: 0; }
.home-page .btn-captcha {
  padding: 12px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  font-size: 0.875rem;
}

.home-page .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--c-accent);
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.home-page .btn-primary:hover { background: var(--c-accent-dark); text-decoration: none; }
.home-page .btn-block { width: 100%; }
.home-page .btn-secondary {
  padding: 12px 24px;
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  cursor: pointer;
}

.home-page .form-agree { font-size: 0.75rem; color: var(--c-muted); margin: 12px 0; }
.home-page .form-agree a { color: var(--c-accent); }
.home-page .modal-trial h3 { margin: 0 0 20px; font-size: 1.125rem; }
.home-page .form-actions { display: flex; gap: 12px; margin-top: 20px; }
.home-page .form-actions .btn-primary { flex: 1; }
.home-page .modal-success .success-img { width: 80px; margin: 0 auto 16px; display: block; }
.home-page .modal-success h2 { margin: 0 0 16px; font-size: 1.25rem; }
.home-page .modal-success h3 { margin: 24px 0 12px; font-size: 1rem; }
.home-page .modal-success ul { padding-left: 20px; margin: 0 0 16px; }
.home-page .modal-success .success-qrcode { max-width: 160px; margin: 0 auto; display: block; }
