:root {
  --accent: #e62429;
  --text: #1a1a1a;
  --muted: #666;
  --content-max: 1440px;
  --page-pad: clamp(16px, 2vw, 24px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
}

body.is-modal-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  background: #fff;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  /* 避免与下方 sticky/合成层出现 1px 缝 */
  margin-bottom: -1px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 12px var(--page-pad);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand__logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  color: #333;
  font-size: clamp(15px, 1.15vw, 20px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.brand__copy strong {
  font-weight: 900;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
}

.topbar__link {
  padding: 8px 12px;
  color: #444;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.topbar__link:hover,
.topbar__link:focus-visible {
  color: var(--text);
  background: #f6f6f6;
}

.topbar__link--accent {
  color: #fff;
  background: var(--accent);
}

.topbar__link--accent:hover,
.topbar__link--accent:focus-visible {
  color: #fff;
  background: #c91d22;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.icon-button img {
  display: block;
  width: 33px;
  height: 33px;
}

.icon-button:hover,
.icon-button:focus-visible {
  opacity: 0.65;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: clamp(280px, 38vw, 400px);
  overflow: hidden;
  background: #faf7f6;
}

.hero__background {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: translate(-50%, -50%) scale(1.12);
  transform-origin: center center;
  pointer-events: none;
  display: block;
}

.hero__title {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  margin: 0;
  padding: 48px 16px;
  color: var(--text);
  font-size: clamp(28px, 3.2vw, 49px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.hero__title span {
  display: block;
}

.hero__title span + span {
  margin-top: clamp(16px, 2vw, 31px);
}

.hero__title em {
  color: var(--accent);
  font-style: normal;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.btn--primary {
  color: #fff;
  background: var(--accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #c91d22;
}

.btn--ghost {
  color: var(--text);
  background: #fff;
  border-color: rgba(17, 24, 39, 0.12);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: #f7f7f7;
}

.offerings {
  width: 100%;
  padding: clamp(32px, 4vw, 56px) var(--page-pad) clamp(40px, 5vw, 72px);
  background: #fff;
}

.offerings__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 40px);
  width: 100%;
  margin: 0;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 420px;
  padding: 48px 28px 36px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.product-card__icon {
  display: grid;
  width: 80px;
  height: 80px;
  margin-bottom: 22px;
  place-items: center;
  overflow: hidden;
  background: #ffebeb;
  border-radius: 50%;
}

.product-card__icon img {
  display: block;
}

.product-card__icon--sales img {
  width: 60px;
  height: 60px;
}

.product-card__icon--finance img {
  width: 50px;
  height: 50px;
}

.product-card__icon--services img {
  width: 52px;
  height: 52px;
}

.product-card h2 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(22px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.product-card p {
  flex: 1;
  max-width: 260px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
}

.product-card__actions a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.product-card__actions a:hover,
.product-card__actions a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.section-head {
  margin-bottom: clamp(20px, 2.5vw, 28px);
  text-align: center;
}

.section-head--modal {
  margin-bottom: 24px;
}

.section-head__eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head__title {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.about__block {
  margin-bottom: 50px;
  text-align: center;
}

.about__block h3 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 700;
  text-align: center;
}

.about__block > p {
  max-width: 52em;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.about__block--position {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about__lead {
  max-width: 36em;
  margin: 0 auto 14px !important;
  color: var(--text) !important;
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.7 !important;
}

.value-grid,
.advantage-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-card {
  padding: 20px 16px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 14px;
  text-align: center;
}

.value-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 14px;
  text-align: center;
}

.advantage-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.advantage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.vision--modal {
  margin: 0 0 50px;
  padding: 24px 20px;
  text-align: center;
  background: #fff5f5;
  border-radius: 16px;
  border: 1px solid rgba(230, 36, 41, 0.1);
}

.vision--modal h3 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}

.vision__lead {
  max-width: 28em;
  margin: 0 auto 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}

.vision__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.intro-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 6px;
  background: #f5f5f5;
  border-radius: 999px;
}

.intro-tabs__btn {
  padding: 10px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.intro-tabs__btn:hover,
.intro-tabs__btn:focus-visible {
  color: var(--text);
}

.intro-tabs__btn.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(230, 36, 41, 0.28);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: #fafafa;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 16px;
}

.intro-panel[hidden] {
  display: none;
}

.intro-panel.is-active {
  animation: panel-in 280ms ease both;
}

.intro-panel__aside {
  text-align: center;
  align-self: center;
}

.intro-panel__aside h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}

.intro-panel__subtitle {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.intro-panel__summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.intro-panel__body p {
  margin: 0 0 14px;
  color: #444;
  font-size: 14px;
  line-height: 1.8;
}

.intro-panel__body p:last-child {
  margin-bottom: 0;
}

#services-modal .intro-panel + .intro-panel {
  margin-top: 16px;
}

.services-modal__closing {
  margin-top: 28px !important;
  text-align: center;
}

.footer {
  color: #888;
  background: #fff;
  border-top: 1px solid #eee;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px var(--page-pad) 24px;
}

.footer p {
  margin: 0;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.footer__link {
  padding: 0;
  color: #888;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.footer__link:hover,
.footer__link:focus-visible {
  text-decoration: underline;
}

.footer__nav span {
  color: #999;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  font-size: 14px;
  line-height: 1.3;
  text-align: right;
}

.content-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
}

.content-modal[hidden] {
  display: none;
}

.content-modal__dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(80vh, 860px);
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.content-modal__dialog--wide {
  width: min(980px, 100%);
}

.content-modal__dialog--wecom {
  width: min(520px, 100%);
  max-height: none;
  padding: 56px 28px 40px;
  text-align: center;
}

.content-modal__scroll {
  max-height: min(80vh, 860px);
  padding: 48px 28px 32px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  -webkit-overflow-scrolling: touch;
}

.content-modal__scroll:hover,
.content-modal__scroll:focus-within {
  scrollbar-color: rgba(17, 24, 39, 0.28) transparent;
}

.content-modal__scroll::-webkit-scrollbar {
  width: 6px;
}

.content-modal__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.content-modal__scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.content-modal__scroll:hover::-webkit-scrollbar-thumb,
.content-modal__scroll:focus-within::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, 0.28);
}

.content-modal__scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 24, 39, 0.42);
}

.content-modal__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 14px;
  width: 32px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.content-modal__close::before,
.content-modal__close::after {
  position: absolute;
  top: 8px;
  left: 15px;
  width: 2px;
  height: 24px;
  content: "";
  background: #111;
  border-radius: 2px;
}

.content-modal__close::before {
  transform: rotate(45deg);
}

.content-modal__close::after {
  transform: rotate(-45deg);
}

.content-modal__close:hover,
.content-modal__close:focus-visible {
  opacity: 0.6;
}

.wecom-modal__qr {
  display: block;
  width: min(300px, 70vw);
  height: auto;
  margin: 0 auto 24px;
  aspect-ratio: 1;
  object-fit: cover;
}

.content-modal__dialog--wecom h2 {
  max-width: 18em;
  margin: 0 auto;
  color: #000;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.35;
}

.content-modal__dialog--install {
  width: min(440px, 100%);
  max-height: none;
  padding: 48px 28px 28px;
  text-align: center;
}

.content-modal__dialog--install h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
}

.install-modal__text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.install-modal__steps {
  margin: 0 0 22px;
  padding-left: 1.2em;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}

.content-modal__dialog--install .btn {
  width: 100%;
  margin-top: 8px;
}

.content-modal__dialog--install .btn + .btn {
  margin-top: 10px;
}

.icon-button[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .topbar__actions {
    gap: 24px;
  }

  .offerings__inner {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
  }

  .value-grid,
  .advantage-grid,
  .intro-panel {
    grid-template-columns: 1fr;
  }

  .footer__inner,
  .footer__meta {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
  }
}

@media (max-width: 560px) {
  .brand__copy {
    font-size: 14px;
  }

  .hero__title {
    white-space: normal;
  }

  .product-card p br {
    display: none;
  }

  .content-modal {
    padding: 12px;
  }

  .content-modal__scroll {
    padding: 44px 16px 24px;
  }

  .intro-tabs {
    width: 100%;
  }

  .intro-tabs__btn {
    flex: 1;
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .icon-button,
  .topbar__link,
  .btn,
  .text-link,
  .footer__link,
  .content-modal__close {
    transition: opacity 120ms ease, color 120ms ease, background 120ms ease;
  }

  .hero__title {
    animation: hero-in 700ms ease both;
  }

  .product-card {
    animation: card-in 560ms ease both;
  }

  .product-card:nth-child(2) {
    animation-delay: 80ms;
  }

  .product-card:nth-child(3) {
    animation-delay: 160ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-panel.is-active {
    animation: none;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
