@charset "UTF-8";

:root {
  --brand: #ee551d;
  --brand-dark: #c83f12;
  --brand-bright: #ff6b2d;
  --brand-soft: #fff0e7;
  --ink: #3b2118;
  --muted: #79675f;
  --line: #f2cdbd;
  --surface: #ffffff;
  --surface-soft: #fff8f2;
  --deep: #3f1b0f;
  --shadow: 0 18px 44px rgba(127, 55, 25, 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 #f5e3da;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px rgba(59, 33, 24, 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: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 5px;
  object-fit: contain;
}

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

.brand__copy strong {
  color: var(--brand);
  font-size: 19px;
  font-weight: 800;
}

.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: #5f4b43;
  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(238, 85, 29, 0.24);
  outline-offset: 3px;
}

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

.button__mobile-label {
  display: none;
}

.button--primary {
  min-width: 146px;
  color: #ffffff;
  border-color: var(--brand);
  background: linear-gradient(100deg, var(--brand), var(--brand-bright));
  box-shadow: 0 10px 24px rgba(238, 85, 29, 0.2);
}

.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 #f5dfd3;
  background:
    radial-gradient(circle at 76% 42%, rgba(255, 255, 255, 0.98) 0, rgba(255, 241, 231, 0.86) 34%, rgba(246, 207, 184, 0.52) 72%, rgba(239, 188, 157, 0.6) 100%),
    #fff2e9;
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(238, 85, 29, 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 70px;
  left: -120px;
  width: 420px;
  height: 420px;
}

.hero::after {
  right: -180px;
  bottom: -240px;
  width: 560px;
  height: 560px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  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(238, 85, 29, 0.42);
  border-radius: 5px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

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

.hero h1::after {
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 20px;
  border-radius: 5px;
  background: var(--brand);
  content: "";
}

.hero__intro {
  max-width: 600px;
  margin: 20px 0 0;
  color: #6f564c;
  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: #816b62;
  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 #79331a;
  border-radius: 5px;
  background: #fff5ef;
  box-shadow: 0 0 0 3px rgba(238, 85, 29, 0.2), 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: #fff5ef;
}

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

.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: #e6a88d;
  opacity: 0.72;
}

.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--center {
  display: grid;
  grid-template-columns: 44px auto 44px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.section-heading__line {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 5px;
  background: var(--brand);
}

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

.section-heading p {
  grid-column: 1 / -1;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(100px, 128px) minmax(0, 1fr);
  align-items: center;
  min-height: 238px;
  padding: 24px;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(127, 55, 25, 0.05);
}

.feature-card--wide {
  grid-template-columns: minmax(190px, 44%) minmax(0, 1fr);
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 0;
}

.feature-card__icon {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--brand);
  background-size: 25px;
  box-shadow: 0 8px 18px rgba(238, 85, 29, 0.2);
}

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

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

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

.feature-card__media {
  align-self: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(145deg, #fff1e9 0%, var(--brand-soft) 100%);
}

.feature-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.feature-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
}

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

@media (max-width: 820px) and (min-width: 701px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .feature-card--wide {
    grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .feature-card:not(.feature-card--wide) {
    grid-template-columns: minmax(92px, 112px) minmax(0, 1fr);
    padding: 20px;
    gap: 16px;
  }
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 4px dotted #efa184;
  box-shadow: 0 14px 30px rgba(127, 55, 25, 0.05);
}

.faq-item {
  border-bottom: 1px solid #f0d8cd;
  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: var(--ink);
  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: #765f55;
  font-size: 14px;
}

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

.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(127, 55, 25, 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);
  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: var(--ink);
  font-size: 15px;
}

.review-card__user time {
  color: #9b877e;
  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: #705a50;
  font-size: 14px;
}

.download {
  border-top: 5px dotted rgba(255, 128, 73, 0.82);
  border-bottom: 5px dotted rgba(255, 128, 73, 0.82);
  background:
    radial-gradient(circle at 82% 40%, rgba(255, 108, 45, 0.42), transparent 34%),
    linear-gradient(110deg, #40180d, #7b2a12 58%, #9d3a15);
}

.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: #ffb18d;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
}

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

.button--download {
  min-width: 150px;
  color: #ffffff;
  border-color: #ffb18d;
  background: transparent;
}

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

.site-footer {
  background: #ffffff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 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: 12px 18px;
}

.footer-nav a {
  color: #79675f;
  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: #9a877f;
  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 #efaa8d;
  border-radius: 50%;
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(127, 55, 25, 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 {
    justify-content: center;
  }

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

  .hero h1::after {
    margin-right: auto;
    margin-left: auto;
  }

  .hero__intro {
    margin-right: auto;
    margin-left: auto;
    font-size: 15px;
  }

  .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 {
    grid-template-columns: 32px auto 32px;
    gap: 12px;
    margin-bottom: 28px;
  }

  .section-heading__line {
    width: 32px;
  }

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

  .feature-card,
  .feature-card--wide {
    grid-template-columns: 1fr;
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    padding: 24px;
    gap: 18px;
  }

  .feature-card__media {
    justify-self: center;
    width: min(100%, 250px);
    min-height: 0;
  }

  .feature-card__copy {
    text-align: center;
  }

  .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 16px;
  }
}

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