:root {
  color-scheme: light dark;
  --home-bg: #f1f2ef;
  --home-surface: #fafbf8;
  --home-surface-strong: #e5e7e1;
  --home-ink: #1d1f1b;
  --home-muted: #62665e;
  --home-line: rgba(29, 31, 27, 0.15);
  --home-accent: #d83f35;
  --home-accent-dark: #b8322a;
  --home-accent-soft: #f1cbc7;
  --home-shadow: rgba(62, 41, 35, 0.16);
  --home-radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--home-bg);
  color: var(--home-ink);
  font-family: var(--font-geist-sans, "PingFang SC"), "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--home-ink);
  color: var(--home-bg);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  width: min(1400px, calc(100% - 56px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 28px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--home-accent);
  color: #fffaf7;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 12px 28px var(--home-shadow);
}

.brand-name {
  display: grid;
  line-height: 1;
}

.brand-name strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand-name small {
  margin-top: 6px;
  color: var(--home-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
}

.site-header nav a {
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 720;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--home-accent);
}

.header-cta {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 999px;
  background: var(--home-ink);
  color: var(--home-bg);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

main {
  overflow: hidden;
}

.hero {
  width: min(1400px, calc(100% - 56px));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 42px 0 84px;
  display: grid;
  grid-template-columns: minmax(410px, 0.78fr) minmax(680px, 1.22fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  padding-bottom: 20px;
}

.hero-kicker {
  margin: 0 0 18px;
  color: var(--home-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 4.35vw, 68px);
  font-weight: 820;
  line-height: 0.98;
  letter-spacing: -0.078em;
}

.hero h1 span,
.hero h1 em {
  display: block;
  white-space: nowrap;
}

.hero h1 em {
  padding-bottom: 0.06em;
  color: var(--home-accent);
  font-style: normal;
}

.hero-intro {
  max-width: 480px;
  margin: 26px 0 0;
  color: var(--home-muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:active,
.header-cta:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--home-accent);
  color: #fffaf7;
  box-shadow: 0 18px 38px var(--home-shadow);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--home-accent-dark);
}

.button-secondary {
  border: 1px solid var(--home-line);
  background: var(--home-surface);
  color: var(--home-ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--home-accent);
}

.hero-carousel {
  min-width: 0;
  min-height: 610px;
  position: relative;
}

.carousel-stage {
  position: absolute;
  inset: 0 0 40px;
  overflow: hidden;
  isolation: isolate;
}

.carousel-card {
  width: 42%;
  height: 570px;
  min-width: 0;
  position: absolute;
  bottom: 16px;
  left: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--home-radius);
  background: #11130f;
  color: #fffaf7;
  box-shadow: 0 24px 56px rgba(35, 26, 22, 0.18);
  isolation: isolate;
  opacity: 0.82;
  transform-origin: center bottom;
  transition:
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 520ms ease,
    box-shadow 260ms ease;
}

.carousel-card:hover,
.carousel-card:focus-visible {
  box-shadow: 0 34px 76px rgba(35, 26, 22, 0.26);
}

.carousel-current {
  z-index: 3;
  opacity: 1;
  transform: translateX(-50%) translateY(-18px) scale(1);
  border-color: rgba(216, 63, 53, 0.72);
  box-shadow: 0 38px 88px var(--home-shadow);
}

.carousel-previous {
  z-index: 1;
  transform: translateX(-116%) scale(0.76);
}

.carousel-next {
  z-index: 2;
  transform: translateX(16%) scale(0.76);
}

.carousel-card figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-wangyibo img {
  object-position: 50% 32%;
  filter: saturate(0.62) contrast(1.08) brightness(0.88);
}

.carousel-xiaozhan img {
  object-position: 58% 30%;
  filter: saturate(0.78) contrast(1.05) brightness(0.92);
}

.carousel-yiyangqianxi img {
  object-position: 50% 28%;
  filter: saturate(0.66) contrast(1.08) brightness(0.82);
}

.carousel-stephen-chow img {
  object-position: 50% 24%;
  filter: saturate(0.72) contrast(1.06) brightness(0.9);
}

.carousel-hidden {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.64);
}

.carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(7, 8, 6, 0.02) 32%, rgba(7, 8, 6, 0.92) 100%);
}

.carousel-card:hover img,
.carousel-card:focus-visible img {
  transform: scale(1.04);
}

.carousel-copy {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
  z-index: 1;
  min-width: 0;
}

.carousel-copy strong {
  display: block;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.carousel-current .carousel-copy strong {
  font-size: clamp(35px, 3.2vw, 50px);
}

.carousel-copy p {
  margin: 9px 0 0;
  overflow: hidden;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-copy small {
  display: block;
  margin-top: 9px;
  color: rgba(255, 250, 247, 0.68);
  font-size: 10px;
  font-weight: 700;
}

.carousel-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.carousel-controls button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--home-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible,
.carousel-controls button[aria-pressed="true"] {
  border-color: var(--home-accent);
  color: var(--home-ink);
}

.carousel-navigation {
  position: absolute;
  top: 45%;
  right: 7px;
  left: 7px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.carousel-navigation button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(18, 19, 17, 0.78);
  color: #fffaf7;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, background 160ms ease;
}

.carousel-navigation button:hover,
.carousel-navigation button:focus-visible {
  background: var(--home-accent);
  transform: scale(1.06);
}

.featured-copy span {
  color: var(--home-accent);
  font-size: 12px;
  font-weight: 850;
}

.promise {
  width: min(1184px, calc(100% - 56px));
  margin: 0 auto 126px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.promise p {
  margin: 0;
  padding: 25px 26px;
  display: grid;
  gap: 7px;
  border-right: 1px solid var(--home-line);
}

.promise p:last-child {
  border-right: 0;
}

.promise strong {
  font-size: 16px;
}

.promise span {
  color: var(--home-muted);
  font-size: 13px;
}

.featured,
.all-tests {
  width: min(1184px, calc(100% - 56px));
  margin: 0 auto;
}

.featured,
.all-tests {
  padding-bottom: 128px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading h2,
.method-intro h2,
.standards h2,
.closing-cta h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.058em;
}

.section-heading p,
.method-intro p,
.closing-cta p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.7;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: 315px 315px;
  gap: 18px;
}

.featured-card {
  overflow: hidden;
  display: grid;
  border-radius: var(--home-radius);
  background: var(--home-surface);
  box-shadow: 0 22px 62px rgba(62, 41, 35, 0.09);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.featured-card:hover,
.featured-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 28px 72px var(--home-shadow);
}

.featured-main {
  grid-row: 1 / span 2;
  grid-template-columns: 0.94fr 1.06fr;
}

.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.featured-copy {
  padding: 30px;
  align-content: end;
  display: grid;
  gap: 12px;
}

.featured-main .featured-copy {
  padding: 44px;
}

.featured-copy h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.featured-main .featured-copy h3 {
  font-size: clamp(27px, 2.35vw, 37px);
  white-space: nowrap;
}

.featured-copy p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.62;
}

.featured-copy > strong {
  margin-top: 16px;
  color: var(--home-accent);
  font-size: 14px;
}

.featured-side {
  grid-template-columns: 0.72fr 1.28fr;
}

.featured-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}

.featured-side .featured-copy {
  padding: 24px;
}

.featured-side .featured-copy h3 {
  font-size: 25px;
}

.all-tests {
  padding-top: 4px;
}

.test-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.test-list a {
  min-height: 126px;
  padding: 12px 18px 12px 12px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--home-surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.test-list a:hover,
.test-list a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--home-accent);
}

.test-list img {
  width: 78px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
}

.test-list span {
  display: grid;
  gap: 7px;
}

.test-list strong {
  font-size: 20px;
}

.test-list small {
  color: var(--home-muted);
  font-size: 13px;
}

.method {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 86px;
}

.method-intro {
  position: sticky;
  top: 34px;
}

.method-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.method-list li {
  min-height: 138px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--home-line);
}

.method-list li:first-child {
  border-top: 1px solid var(--home-line);
}

.method-list span {
  color: var(--home-accent);
  font-size: 14px;
  font-weight: 850;
}

.method-list strong {
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.standards {
  padding: 70px;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 78px;
  border-radius: var(--home-radius);
  background: var(--home-surface-strong);
}

.standards-copy > p {
  margin: 0 0 18px;
  color: var(--home-accent);
  font-size: 13px;
  font-weight: 850;
}

.standards-principles {
  display: grid;
  gap: 0;
}

.standards-principles article {
  padding: 24px 0;
  border-bottom: 1px solid var(--home-line);
}

.standards-principles article:first-child {
  padding-top: 0;
}

.standards-principles article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.standards-principles strong {
  font-size: 21px;
}

.standards-principles p {
  margin: 8px 0 0;
  color: var(--home-muted);
  line-height: 1.65;
}

.closing-cta {
  margin-top: 112px;
  margin-bottom: 94px;
  padding: 48px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: var(--home-surface);
}

.closing-cta h2 {
  max-width: none;
  font-size: clamp(34px, 4vw, 54px);
  white-space: nowrap;
}

.site-footer {
  width: min(1184px, calc(100% - 56px));
  margin: 0 auto;
  padding: 38px 0 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 38px;
  border-top: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.65;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
}

.footer-brand .brand-name strong {
  color: var(--home-ink);
  font-size: 17px;
}

.site-footer p {
  max-width: 600px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  :root {
    --home-bg: #121311;
    --home-surface: #1c1e1a;
    --home-surface-strong: #252821;
    --home-ink: #f2f3ef;
    --home-muted: #a6aaa1;
    --home-line: rgba(242, 243, 239, 0.14);
    --home-accent: #e25b51;
    --home-accent-dark: #c8473e;
    --home-accent-soft: #4b2a27;
    --home-shadow: rgba(0, 0, 0, 0.34);
  }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(350px, 0.78fr) minmax(570px, 1.22fr);
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(44px, 4.4vw, 56px);
  }

  .carousel-card {
    width: 41%;
  }
}

@media (max-width: 980px) {
  .site-header {
    width: min(100% - 40px, 900px);
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    width: min(100% - 40px, 900px);
    min-height: auto;
    padding: 44px 0 92px;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero h1 {
    max-width: 820px;
    font-size: clamp(52px, 8.2vw, 72px);
  }

  .hero-carousel {
    min-height: 550px;
  }

  .carousel-card {
    width: 40%;
    height: 500px;
  }

  .featured,
  .all-tests,
  .site-footer {
    width: min(100% - 40px, 900px);
  }

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

  .promise p:nth-child(2) {
    border-right: 0;
  }

  .promise p:nth-child(-n + 2) {
    border-bottom: 1px solid var(--home-line);
  }

  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 560px 280px 280px;
  }

  .featured-main {
    grid-row: auto;
  }

  .method {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .method-intro {
    position: static;
  }

  .standards {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 52px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-links {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 32px);
    min-height: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name strong {
    font-size: 18px;
  }

  .brand-name small {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
  }

  .hero {
    width: calc(100% - 32px);
    padding: 24px 0 76px;
    gap: 36px;
  }

  .hero-kicker {
    margin-bottom: 13px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(29px, 8.2vw, 34px);
    line-height: 1;
  }

  .hero-intro {
    margin-top: 21px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-carousel {
    min-height: 500px;
  }

  .carousel-stage {
    inset: 0 0 38px;
  }

  .carousel-card {
    width: 100%;
    height: 460px;
  }

  .carousel-current {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
  }

  .carousel-previous {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-145%) scale(0.92);
  }

  .carousel-next {
    opacity: 0;
    pointer-events: none;
    transform: translateX(45%) scale(0.92);
  }

  .carousel-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.86);
  }

  .carousel-copy {
    right: 13px;
    bottom: 14px;
    left: 13px;
  }

  .carousel-copy strong,
  .carousel-current .carousel-copy strong {
    font-size: 28px;
  }

  .carousel-copy p {
    font-size: 12px;
  }

  .carousel-copy small {
    display: none;
  }

  .featured,
  .all-tests,
  .site-footer {
    width: calc(100% - 32px);
  }

  .promise {
    margin-bottom: 94px;
    grid-template-columns: 1fr;
  }

  .promise p {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .promise p:last-child {
    border-bottom: 0;
  }

  .featured,
  .all-tests {
    padding-bottom: 96px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .featured-grid {
    grid-template-rows: auto auto auto;
  }

  .featured-main,
  .featured-side {
    grid-template-columns: 1fr;
  }

  .featured-main img {
    height: 430px;
  }

  .featured-side img {
    height: 240px;
  }

  .featured-main .featured-copy,
  .featured-side .featured-copy {
    padding: 26px;
  }

  .featured-main .featured-copy h3 {
    font-size: clamp(23px, 6.1vw, 30px);
    white-space: nowrap;
  }

  .test-list {
    grid-template-columns: 1fr;
  }

  .test-list a {
    min-height: 112px;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 13px;
  }

  .test-list img {
    width: 68px;
    height: 88px;
  }

  .carousel-navigation {
    right: 10px;
    left: 10px;
  }

  .carousel-navigation button {
    width: 44px;
    height: 44px;
  }

  .method-list li {
    min-height: 118px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .method-list strong {
    font-size: 21px;
  }

  .standards {
    padding: 34px 25px;
    gap: 38px;
  }

  .closing-cta {
    margin-top: 80px;
    margin-bottom: 70px;
    padding: 34px 25px;
    align-items: stretch;
    flex-direction: column;
  }

  .closing-cta .button {
    width: 100%;
  }

  .closing-cta h2 {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: home-reveal 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-carousel {
    animation: home-reveal 760ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes home-reveal {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
