@font-face {
  font-family: "MiSans";
  src: url("./assets/fonts/MiSans-VF.subset.woff2?v=6") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 900;
}

@font-face {
  font-family: "Source Han Serif SC";
  src: url("./assets/fonts/SourceHanSerifCN-Medium.subset.woff2?v=6") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Source Han Serif SC";
  src: url("./assets/fonts/SourceHanSerifCN-Bold.subset.woff2?v=6") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Source Han Serif SC";
  src: url("./assets/fonts/SourceHanSerifCN-Heavy.subset.woff2?v=6") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}

:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --card-bg: #ffffff;
  --muted: #6b6b6b;
  --soft: #f5f5f3;
  --soft-2: #ececea;
  --line: #deded9;
  --brand: #2458f5;
  --brand-strong: #1747df;
  --button-ink: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.88);
  --card-shadow: 0 16px 54px rgba(0, 0, 0, 0.045);
  --dot-rgb: 0, 0, 0;
  --hero-fade-start: rgba(255, 255, 255, 0);
  --hero-fade-mid: rgba(255, 255, 255, 0.64);
  --hero-fade-end: #ffffff;
  --blue-soft: #f4f8ff;
  --blue-line: #dce8f8;
  --radius: 24px;
  --ui-font: "MiSans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --brand-font: "Source Han Serif SC", "MiSans", "Songti SC", SimSun, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080a0f;
    --ink: #f4f7ff;
    --card-bg: #10141d;
    --muted: #9aa4b7;
    --soft: #121722;
    --soft-2: #171d2a;
    --line: #252d3c;
    --brand: #5d7dff;
    --brand-strong: #7f99ff;
    --button-ink: #ffffff;
    --header-bg: rgba(8, 10, 15, 0.82);
    --card-shadow: 0 18px 56px rgba(0, 0, 0, 0.38);
    --dot-rgb: 255, 255, 255;
    --hero-fade-start: rgba(8, 10, 15, 0);
    --hero-fade-mid: rgba(8, 10, 15, 0.68);
    --hero-fade-end: #080a0f;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui-font);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.section-shell {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
}

.ask-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 70px);
  display: grid;
  place-items: center;
  padding: 72px 24px 124px;
  overflow: hidden;
  touch-action: pan-y;
}

.ask-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: min(30svh, 260px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--hero-fade-start) 0%,
    var(--hero-fade-mid) 54%,
    var(--hero-fade-end) 100%
  );
}

.hero-dot-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-center {
  position: relative;
  width: min(1080px, calc(100% - 56px));
  display: grid;
  justify-items: center;
  text-align: center;
}

.slogan {
  margin: 0;
  color: var(--ink);
  font-family: var(--brand-font);
  font-size: var(--slogan-size, clamp(72px, 8.8vw, 128px));
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.slogan em {
  color: var(--brand);
  font-style: normal;
}

.slogan span {
  display: block;
  width: max-content;
  max-width: none;
  margin: 0 auto;
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-note {
  max-width: none;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--brand-font);
  font-size: var(--hero-note-size, clamp(16px, 1.45vw, 21px));
  line-height: 1.55;
  font-weight: 500;
  white-space: nowrap;
}

.meta {
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.products-section {
  padding: 42px 0 68px;
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 620;
}

.product-panel {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.035);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 20px;
  align-items: stretch;
}

.product-panel:hover {
  border-color: rgba(36, 88, 245, 0.42);
  box-shadow: 0 18px 42px rgba(36, 88, 245, 0.1);
  transform: translateY(-2px);
}

.product-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  max-width: 240px;
}

.product-copy h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: 0;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(36, 88, 245, 0.28);
  border-radius: 999px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 480;
  line-height: 1;
}

.product-lede {
  max-width: 230px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0;
}

.product-arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--button-ink);
  font-size: 15px;
}

.contact-section {
  padding: 44px 0 72px;
}

.section-header {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 48px;
  margin-bottom: 30px;
}

.section-header h2,
.contact-section h2 {
  max-width: 860px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 560;
  line-height: 1.14;
  letter-spacing: 0;
}

.contact-section {
  display: grid;
  gap: 36px;
  align-items: start;
}

.contact-copy {
  max-width: 100%;
}

.contact-section h2 {
  max-width: 100%;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
  white-space: normal;
}

html[lang="en"] .contact-section h2 {
  font-size: clamp(25px, 2.5vw, 34px);
}

html[lang^="zh"] .contact-section h2 {
  white-space: nowrap;
}

.contact-copy p:not(.meta) {
  max-width: 540px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: center;
  width: min(100%, 560px);
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card-bg);
  color: var(--muted);
  box-shadow: var(--card-shadow);
}

.contact-card span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-card strong {
  color: var(--ink);
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.contact-card b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-style: normal;
  font-size: 15px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .ask-hero {
    min-height: calc(100svh - 62px);
    padding-top: 56px;
  }

  .slogan {
    font-size: var(--slogan-size, clamp(42px, 12vw, 104px));
  }

  .section-header,
  .contact-section {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .section-shell {
    width: min(100% - 32px, 1160px);
  }

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

  .ask-hero {
    min-height: calc(100svh - 58px);
    padding: 42px 16px 104px;
  }

  .hero-center {
    width: min(1080px, calc(100% - 32px));
  }

  .hero-note {
    font-size: var(--hero-note-size, 16px);
  }

  .contact-card {
    width: 100%;
    padding: 20px;
    border-radius: 22px;
  }

  .contact-section h2 {
    font-size: clamp(32px, 8.5vw, 44px);
    line-height: 1.12;
    white-space: normal;
  }

  .contact-copy p:not(.meta) {
    font-size: 16px;
  }

  .contact-section {
    padding: 72px 0;
  }

  .products-section {
    padding: 52px 0 72px;
  }

  .product-panel {
    width: min(100%, 320px);
    padding: 20px;
  }

  .product-copy h2 {
    font-size: clamp(28px, 8vw, 34px);
  }
}
