:root {
  color-scheme: light;
  --paper: #fafafd;
  --ink: #17182c;
  --muted: #595b71;
  --line: #e2e3ed;
  --blue: #3743e5;
  --blue-dark: #2934c1;
  --shell: 76rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --header-height: 4.75rem;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 1rem); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
body:lang(zh) { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7.4vw, 7rem); }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { position: fixed; z-index: 3; top: .6rem; left: .6rem; padding: .7rem 1rem; background: #fff; }

.site-header {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.header-inner { min-height: var(--header-height); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.site-brand { display: inline-flex; width: fit-content; align-items: center; gap: .7rem; line-height: 1.15; }
.site-brand img { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-text { display: grid; gap: .28rem; }
.brand-name { font-size: 1.125rem; font-weight: 720; letter-spacing: -.02em; }
.brand-caption { color: var(--muted); font-size: .625rem; letter-spacing: .105em; font-weight: 650; }
.header-actions { display: flex; align-items: center; gap: .55rem; justify-self: end; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.35vw, 2.15rem); }
.site-nav a, .footer-links a { color: var(--muted); font-size: .9rem; font-weight: 550; }
.site-nav a:hover, .site-nav a[aria-current], .footer-links a:hover, .footer-links a[aria-current] { color: var(--blue); }
.language-switch {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  flex-shrink: 0;
  gap: .15rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #f0f0f6;
}
.language-switch button {
  min-width: 2.5rem;
  min-height: 2rem;
  padding: .2rem .45rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 630;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { color: var(--blue); background: #fff; box-shadow: 0 1px 3px #1d215514; }
.language-switch button:hover { color: var(--blue); }
.nav-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  column-gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 5.25vw, 5rem) clamp(3rem, 6.15vw, 5.75rem);
}
.eyebrow { margin: 0; color: var(--blue); font-size: .875rem; font-weight: 700; letter-spacing: .075em; }
.eyebrow:lang(en) { text-transform: uppercase; }
.hero h1 { margin: 1.15rem 0 0; font-size: clamp(3.15rem, 5.4vw, 5.2rem); line-height: 1.09; letter-spacing: -.071em; font-weight: 720; }
.hero h1:lang(zh) { letter-spacing: -.045em; }
.hero h1:lang(en) { font-size: clamp(2.7rem, 4.65vw, 4.6rem); }
.hero-line { display: block; }
.accent { color: var(--blue); }
.hero-description { max-width: 30rem; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1.0625rem, 1.43vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.85rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: .65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { border-color: #d7d9e8; background: #fff; color: var(--ink); }
.button-secondary:hover { border-color: #b6bcef; color: var(--blue); background: #f6f6ff; }
.button-light { background: #fff; color: var(--blue-dark); }
.button-light:hover { background: #e9ebff; }
.hero-art { overflow: hidden; width: 100%; aspect-ratio: 1.12; border-radius: clamp(1.15rem, 2.6vw, 2rem); background: #e3e6ff; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.products-section { border-top: 1px solid var(--line); }
.section-heading { max-width: 52rem; }
.section-heading h2, .contact-panel h2 {
  margin: .65rem 0 0;
  font-size: clamp(2.15rem, 4.6vw, 4.2rem);
  letter-spacing: -.063em;
  line-height: 1.13;
  font-weight: 720;
}
.section-heading h2:lang(zh), .contact-panel h2:lang(zh) { letter-spacing: -.04em; }
.section-heading > p:last-child:not(.eyebrow) { max-width: 42rem; margin: 1rem 0 0; color: var(--muted); font-size: 1.0625rem; }
.product-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.75rem 1.3rem; }
.product-filter {
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 5rem;
  padding: .35rem .9rem;
  background: #fff;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.product-filter:hover { color: var(--blue); border-color: #b6bcef; }
.product-filter[aria-pressed="true"] { background: #e9ebff; border-color: #e9ebff; color: #3038bd; }
.product-grid, .services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 1rem; }
.product-card {
  display: grid;
  align-content: start;
  width: 100%;
  min-height: 13.1rem;
  padding: clamp(1.1rem, 2.2vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #fff;
  text-align: start;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.product-card:hover { border-color: #b6bcef; box-shadow: 0 8px 24px #2830770a; }
.product-card-top { display: flex; align-items: start; justify-content: space-between; gap: .75rem; margin-bottom: .95rem; }
.app-icon { display: grid; width: 3.75rem; height: 3.75rem; place-items: center; border-radius: .9rem; background: #e9ebff; color: var(--blue); }
img.app-icon { object-fit: cover; }
.app-icon svg { width: 1.75rem; height: 1.75rem; }
.app-icon[data-theme="amber"] { background: #fff0cf; color: #865515; }
.app-icon[data-theme="rose"] { background: #ffe8ef; color: #8b3452; }
.app-icon[data-theme="mint"] { background: #dbf4eb; color: #22664e; }
.app-icon[data-theme="violet"] { background: #ede7ff; color: #613bc3; }
.product-open {
  flex: none;
  border-radius: 5rem;
  border: 1px solid var(--line);
  padding: .25rem .65rem;
  background: var(--paper);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}
.product-card:hover .product-open { color: var(--blue); }
.product-category { margin: 0 0 .15rem; color: var(--blue-dark); font-size: .8125rem; font-weight: 650; }
.product-name, .service-card h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.35; letter-spacing: -.025em; }
.product-description, .service-card p { margin: .45rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.product-more { margin-top: 1.5rem; text-align: center; }
.product-empty { grid-column: 1 / -1; margin: .2rem 0; color: var(--muted); }

.about-section { background: #eeeffa; border-block: 1px solid #e9eaf6; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(2rem, 7.5vw, 7rem); align-items: start; }
.about-layout h2 span { display: block; }
.about-copy { padding-top: .55rem; }
.about-copy h3 { margin: 0 0 .9rem; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.4; letter-spacing: -.02em; }
.about-copy p { margin: 0 0 .9rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.8; }
.about-copy p:last-child { margin-bottom: 0; }

.services-grid { margin-top: 1.8rem; }
.service-card { min-height: 12rem; padding: clamp(1.1rem, 2.2vw, 1.6rem); border: 1px solid var(--line); border-radius: 1.15rem; background: #fff; }
.service-card h3 { margin: 0; }
.service-icon { display: grid; width: 3rem; height: 3rem; margin-bottom: 1rem; place-items: center; border-radius: .7rem; background: #edeeff; color: var(--blue); }
.service-icon svg { width: 1.45rem; height: 1.45rem; }

.contact-section { padding-bottom: clamp(3rem, 7vw, 6rem); }
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.5rem, 5.25vw, 4rem);
  border-radius: 1.5rem;
  background: #333ccd;
  color: #fff;
}
.contact-panel .eyebrow { color: #eff0ff; }
.contact-panel :focus-visible { outline-color: #fff; }
.contact-intro { margin: 1rem 0 0; color: #f1f2ff; font-size: 1.0625rem; }
.contact-details { border-left: 1px solid #ffffff50; padding-left: clamp(1.6rem, 4vw, 4rem); }
.contact-location { display: flex; align-items: center; gap: .55rem; font-weight: 650; }
.contact-location svg { width: 1.25rem; height: 1.25rem; flex: none; }
.contact-channels { display: grid; gap: .35rem; margin-top: .45rem; }
.contact-channel { color: #fff; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .16em; }
.contact-details .button { margin-top: 1.15rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; padding-block: 1.7rem; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 1.35rem; row-gap: .45rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: .9rem 1.25rem; color: var(--muted); font-size: .875rem; }
.footer-bottom p { margin: 0; }
.footer-bottom small { font-size: inherit; }

@media (max-width: 60rem) {
  .header-inner { gap: .9rem; }
  .hero { column-gap: 1.75rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 50rem) {
  :root { --header-height: 4.25rem; }
  .header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .header-actions { margin-inline-start: auto; }
  .site-nav { order: 3; width: 100%; flex-wrap: wrap; padding-block: .65rem; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .4rem var(--gutter) .75rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; min-height: 2.75rem; align-items: center; }
  .js .nav-toggle { display: grid; flex: none; width: 2.65rem; height: 2.65rem; place-content: center; gap: .32rem; border: 1px solid var(--line); border-radius: .65rem; background: #fff; cursor: pointer; }
  .nav-toggle span { display: block; width: 1.05rem; height: 1px; background: currentColor; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(.19rem) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-.19rem) rotate(-45deg); }
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 8.4vw, 4.8rem); }
  .hero h1:lang(en) { font-size: clamp(2.65rem, 8.3vw, 4.6rem); }
  .hero-art { aspect-ratio: 1.34; }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-details { border-left: 0; border-top: 1px solid #ffffff50; padding: 1.2rem 0 0; }
}

@media (max-width: 37rem) {
  .site-brand img { width: 2.2rem; height: 2.2rem; }
  .site-brand { gap: .48rem; }
  .brand-name { font-size: 1rem; }
  .brand-caption { font-size: .55rem; }
  .product-grid, .services-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card, .service-card { min-height: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 23rem) {
  :root { --gutter: 1rem; }
  .header-inner { gap: .35rem; }
  .brand-caption { display: none; }
  .brand-name:lang(en) { font-size: .9rem; }
  .header-actions { gap: .35rem; }
  .language-switch button { min-width: 2.2rem; }
  .hero-actions { gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .product-card { transition: none; }
}
