@charset "UTF-8";

:root {
  --brand: #238ee8;
  --brand-dark: #126fca;
  --brand-soft: #eaf5ff;
  --ink: #10243f;
  --muted: #687a91;
  --line: #cfe2f5;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --deep: #0d1d32;
  --shadow: 0 18px 44px rgba(32, 87, 139, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-padding-top: 96px;
  color-scheme: light;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: 76px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid #edf2f7;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px rgba(16, 36, 63, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  gap: 32px;
}

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

.brand__logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  border-radius: 5px;
}

.brand__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.brand__copy strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.brand__copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav ul {
  gap: 28px;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #53657c;
  font-size: 14px;
  font-weight: 600;
}

.site-nav__link::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 5px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active {
  color: var(--brand-dark);
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--brand);
  border-radius: 5px;
  color: var(--brand-dark);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  color: #ffffff;
  background: var(--brand);
}

.button:focus-visible,
.menu-toggle:focus-visible,
.faq-item summary:focus-visible,
.back-to-top:focus-visible {
  outline: 3px solid rgba(35, 142, 232, 0.28);
  outline-offset: 3px;
}

.button--header {
  min-height: 40px;
  padding: 9px 17px;
}

.button__mobile-label {
  display: none;
}

.button--primary {
  color: #ffffff;
  background: var(--brand);
}

.button--primary:hover,
.button--primary:focus-visible {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.icon--menu {
  width: 21px;
  height: 21px;
  background-image: url("../icons/menu.svg");
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e5edf6;
  background:
    radial-gradient(circle at 74% 42%, rgba(255, 255, 255, 0.98) 0, rgba(238, 247, 255, 0.82) 30%, rgba(190, 203, 218, 0.55) 70%, rgba(157, 167, 179, 0.72) 100%),
    #e8eef5;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 84px;
  gap: clamp(48px, 7vw, 108px);
}

.hero__copy {
  flex: 1 1 0;
  min-width: 0;
  max-width: 620px;
  text-align: left;
}

.hero__tags {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero__tags span {
  padding: 5px 12px;
  border: 1px solid rgba(35, 142, 232, 0.24);
  border-radius: 5px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  color: #0b213d;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero__intro {
  max-width: 600px;
  margin: 20px 0 0;
  color: #536a84;
  font-size: 17px;
}

.hero__actions {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 26px;
}

.age-label {
  color: #60748b;
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 360px);
  height: clamp(498px, 53.333vw, 640px);
  border: 4px solid #0e2947;
  border-radius: 5px;
  background: #f7fbff;
  box-shadow: 0 0 0 3px rgba(35, 142, 232, 0.28), var(--shadow);
}

.product-carousel,
.product-carousel .swiper-wrapper,
.product-carousel .swiper-slide {
  width: 100%;
  height: 100%;
}

.product-carousel {
  overflow: hidden;
  border-radius: 2px;
}

.product-carousel .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fbff;
}

.product-carousel .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f7fbff;
}

.product-carousel .swiper-pagination {
  right: 0;
  bottom: 12px;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.product-carousel .swiper-pagination-bullet {
  width: 22px;
  height: 4px;
  margin: 0 !important;
  border-radius: 5px;
  background: #8ca7c3;
  opacity: 0.65;
}

.product-carousel .swiper-pagination-bullet-active {
  background: var(--brand);
  opacity: 1;
}

.section {
  padding: 96px 0;
  background: var(--surface);
}

.section[id],
.download[id] {
  scroll-margin-top: 96px;
}

.section--soft,
.section--faq {
  background: var(--surface-soft);
}

.section__inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

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

.section-heading__mark {
  display: block;
  width: 44px;
  height: 5px;
  margin-bottom: 16px;
  background-image: radial-gradient(circle, var(--brand) 2px, transparent 2.5px);
  background-size: 10px 5px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

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

.feature-card {
  display: flex;
  align-items: flex-start;
  min-height: 180px;
  padding: 34px;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.feature-card--wide {
  grid-column: 1 / -1;
  min-height: 160px;
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid #b9d9f7;
  border-radius: 5px;
  background-color: var(--brand-soft);
  background-size: 27px;
}

.icon--discover {
  background-image: url("../icons/discover.svg");
}

.icon--category {
  background-image: url("../icons/category.svg");
}

.icon--detail {
  background-image: url("../icons/detail.svg");
}

.feature-card h3 {
  margin: 2px 0 8px;
  color: #18324f;
  font-size: 19px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.review-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(21, 61, 99, 0.06);
}

.review-card__header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--brand-soft);
  background-image: url("../icons/avatar.svg");
  background-size: 25px;
}

.review-card__user {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review-card__user strong {
  overflow-wrap: anywhere;
  color: #193452;
  font-size: 15px;
}

.review-card__user time {
  color: #8a98a9;
  font-size: 12px;
}

.review-card__rating {
  color: var(--brand);
  font-size: 13px;
  white-space: nowrap;
}

.review-card__rating .fa {
  margin-left: 2px;
}

.review-card > p {
  margin: 20px 0 0;
  color: #52677f;
  font-size: 14px;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 4px dotted #9ac9f4;
}

.faq-item {
  border-bottom: 1px solid #dce7f1;
  background: var(--surface);
  transition: box-shadow 180ms ease;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 17px 22px;
  gap: 24px;
  color: #18324f;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.faq-item summary i::before,
.faq-item summary i::after {
  position: absolute;
  top: 8px;
  left: 3px;
  width: 12px;
  height: 2px;
  border-radius: 5px;
  background: var(--brand);
  content: "";
}

.faq-item summary i::after {
  transform: rotate(90deg);
  transition: transform 220ms ease;
}

.faq-item.is-expanded {
  box-shadow: inset 4px 0 0 var(--brand);
}

.faq-item.is-expanded summary i::after {
  transform: rotate(0);
}

.faq-item__answer {
  overflow: hidden;
}

.faq-item.is-animating .faq-item__answer {
  will-change: height, opacity;
}

.faq-item__answer-inner {
  padding: 0 22px 22px;
}

.faq-item__answer p {
  margin: 0;
  color: #60758c;
  font-size: 14px;
}

.faq-item__answer a {
  color: var(--brand-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.download {
  border-top: 5px dotted rgba(55, 145, 231, 0.74);
  border-bottom: 5px dotted rgba(55, 145, 231, 0.74);
  background: linear-gradient(110deg, #0d1b2e, #172b46 58%, #203d5c);
}

.download__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1080px, calc(100% - 40px));
  min-height: 220px;
  margin: 0 auto;
  gap: 40px;
}

.download h2 {
  margin: 0;
  color: #58aafa;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
}

.download p {
  margin: 10px 0 0;
  color: #aebed0;
  font-size: 14px;
}

.button--download {
  min-width: 150px;
  color: #70b9ff;
  border-color: #4a9cea;
  background: transparent;
}

.site-footer {
  background: #ffffff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 150px;
  margin: 0 auto;
  gap: 28px;
}

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

.footer-nav ul {
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  color: #66778b;
  font-size: 13px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--brand-dark);
}

.site-footer__copyright {
  justify-self: end;
  margin: 0;
  color: #8794a4;
  font-size: 12px;
  white-space: nowrap;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #9bc8f1;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 61, 104, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.icon--arrow-up {
  width: 20px;
  height: 20px;
  background-image: url("../icons/arrow-up.svg");
}

@media (max-width: 980px) {
  .site-header__inner {
    position: relative;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link {
    display: flex;
    min-height: 48px;
    padding: 4px 12px;
  }

  .site-nav__link::after {
    right: auto;
    bottom: 10px;
    left: 12px;
    width: 28px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 42px 0;
    text-align: center;
  }

  .brand--footer,
  .site-footer__copyright {
    justify-self: center;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 84px;
  }

  body {
    padding-top: 70px;
  }

  .site-header__inner {
    width: min(100% - 24px, 1180px);
    min-height: 70px;
    gap: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand__logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand__copy strong {
    font-size: 15px;
  }

  .brand__copy span {
    font-size: 12px;
  }

  .button--header {
    min-height: 38px;
    padding: 8px 12px;
  }

  .button__desktop-label {
    display: none;
  }

  .button__mobile-label {
    display: inline;
  }

  .hero__inner {
    flex-direction: column;
    width: min(100% - 28px, 1100px);
    padding: 54px 0 72px;
    gap: 42px;
  }

  .hero__copy {
    max-width: 620px;
    text-align: center;
  }

  .hero__tags,
  .hero__actions {
    justify-content: center;
  }

  .hero__intro {
    margin-right: auto;
    margin-left: auto;
  }

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

  .hero__intro {
    font-size: 15px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero-carousel {
    width: min(100%, 330px);
    height: min(calc((100vw - 28px) * 1.7778), 586px);
  }

  .section {
    padding: 72px 0;
  }

  .section[id],
  .download[id] {
    scroll-margin-top: 84px;
  }

  .section__inner,
  .download__inner {
    width: min(100% - 28px, 1080px);
  }

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

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

  .feature-card--wide {
    grid-column: auto;
  }

  .feature-card {
    min-height: 0;
    padding: 25px;
  }

  .review-card__header {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .review-card__rating {
    grid-column: 2;
  }

  .faq-item summary {
    padding: 16px;
  }

  .faq-item__answer-inner {
    padding: 0 16px 19px;
  }

  .download__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    padding: 48px 0;
  }

  .button--download {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 430px) {
  .site-header__inner {
    gap: 8px;
  }

  .brand__copy strong {
    font-size: 14px;
  }

  .site-header__actions {
    gap: 7px;
  }

  .button--header {
    padding: 8px 10px;
    font-size: 12px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero__tags {
    gap: 7px;
  }

  .hero__tags span {
    padding: 4px 8px;
  }

  .footer-nav ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}

@media (hover: none) and (pointer: coarse) {
  a,
  button,
  summary {
    transition: none !important;
    animation: none !important;
  }
}
