@charset "UTF-8";

:root {
  --brand: #ffd91a;
  --brand-strong: #e5b900;
  --brand-soft: #fff7c5;
  --ink: #17150d;
  --muted: #706b5d;
  --line: #e7dfc6;
  --surface: #ffffff;
  --surface-soft: #fffcf2;
  --deep: #18170f;
  --coral: #f0694d;
  --shadow: 0 18px 42px rgba(68, 57, 13, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

body.menu-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(231, 223, 198, 0.8);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(58, 49, 13, 0.05);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
}

.brand__logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid #e5d86b;
  border-radius: 5px;
  object-fit: contain;
}

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

.brand__copy strong {
  color: var(--ink);
  font-size: 17px;
  white-space: nowrap;
}

.brand__copy span {
  margin-top: 4px;
  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;
  gap: 34px;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  color: #3f3b2f;
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease;
}

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

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active {
  color: #9f7e00;
}

.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;
  flex: 0 0 auto;
  gap: 10px;
}

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

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.menu-toggle:focus-visible,
.back-to-top:focus-visible,
.faq-item summary:focus-visible,
.footer-nav a:focus-visible {
  outline: 3px solid rgba(255, 217, 26, 0.38);
  outline-offset: 3px;
}

.button--header {
  min-height: 40px;
  padding: 8px 17px;
  border-color: #d9b600;
  color: var(--ink);
  background: var(--brand);
}

.button--header:hover {
  border-color: var(--ink);
  background: #ffe24d;
}

.button__mobile-label {
  display: none;
}

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

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 1% 7%, rgba(255, 217, 26, 0.2) 0 105px, transparent 106px),
    radial-gradient(circle at 89% 24%, rgba(255, 224, 70, 0.2) 0 180px, transparent 181px),
    linear-gradient(115deg, #fffdf4 0%, #fff9d9 55%, #fff4a9 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(229, 185, 0, 0.17);
  border-radius: 50%;
  content: "";
}

.hero::before {
  width: 480px;
  height: 480px;
  top: 210px;
  left: -260px;
}

.hero::after {
  width: 560px;
  height: 560px;
  right: -310px;
  bottom: -250px;
}

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

.hero__copy {
  max-width: 620px;
  flex: 1 1 560px;
}

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

.hero__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 12px;
  border: 1px solid #ead25d;
  border-radius: 5px;
  color: #554600;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 6vw, 74px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.08;
}

.hero h1::after {
  display: block;
  width: 112px;
  height: 8px;
  margin-top: 18px;
  border-radius: 5px;
  background: var(--brand);
  content: "";
  transform: skewX(-22deg);
}

.hero__intro {
  max-width: 600px;
  margin: 24px 0 0;
  color: #514c40;
  font-size: 17px;
  line-height: 1.9;
}

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

.button--primary {
  min-width: 162px;
  min-height: 50px;
  border-color: #dab800;
  color: var(--ink);
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(181, 143, 0, 0.22);
  font-size: 16px;
}

.button--primary:hover {
  border-color: var(--ink);
  background: #ffe34f;
}

.age-label {
  color: var(--muted);
  font-size: 13px;
}

.hero-carousel {
  position: relative;
  width: clamp(280px, 30vw, 360px);
  height: clamp(498px, 53.333vw, 640px);
  flex: 0 0 auto;
  padding: 7px;
  border: 3px solid #30290d;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 50px rgba(70, 55, 4, 0.2);
}

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

.product-carousel {
  overflow: hidden;
  border-radius: 3px;
  background: #f5f1e8;
}

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

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

.product-carousel .swiper-pagination {
  bottom: 8px;
}

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

.product-carousel .swiper-pagination-bullet-active {
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(23, 21, 13, 0.5);
}

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

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

.section--features,
.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: 48px auto 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.section-heading__line {
  display: block;
  width: 48px;
  height: 4px;
  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: -7px 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));
  align-items: stretch;
  gap: 24px;
}

.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 12px 28px rgba(68, 57, 13, 0.07);
}

.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: 2px solid #fff8c7;
  border-radius: 50%;
  background-color: var(--brand);
  background-size: 24px;
  box-shadow: 0 8px 18px rgba(170, 134, 0, 0.22);
}

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

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

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

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

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

.feature-card__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #9b7800;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

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

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 4px dotted #d7b800;
  box-shadow: 0 14px 30px rgba(68, 57, 13, 0.06);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  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;
  right: 1px;
  left: 1px;
  height: 2px;
  border-radius: 5px;
  background: #9d7c00;
  content: "";
  transition: transform 180ms ease;
}

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

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

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

.faq-item__answer a {
  color: #8c7000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--reviews {
  background: var(--surface);
}

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

.review-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffefa;
  box-shadow: 0 12px 26px rgba(68, 57, 13, 0.06);
}

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

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--brand);
  background-image: url("../icons/avatar.svg");
  background-size: 23px;
  box-shadow: 0 7px 16px rgba(170, 134, 0, 0.18);
}

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

.review-card__user strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card__user time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.review-card__rating {
  color: #e7b600;
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.review-card p {
  margin: 0;
  color: #5c574a;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.download {
  position: relative;
  overflow: hidden;
  border-top: 5px dotted var(--brand);
  border-bottom: 5px dotted var(--brand);
  background:
    linear-gradient(100deg, rgba(255, 217, 26, 0.07), transparent 45%),
    var(--deep);
}

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

.download__logo {
  display: block;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border: 3px solid var(--brand);
  border-radius: 5px;
  object-fit: contain;
}

.download__copy {
  min-width: 0;
  margin-right: auto;
}

.download h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(27px, 3.5vw, 40px);
  line-height: 1.35;
}

.download h2::first-letter {
  color: var(--brand);
}

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

.button--download {
  min-width: 142px;
  min-height: 48px;
  border-color: var(--brand);
  color: var(--ink);
  background: var(--brand);
}

.button--download:hover {
  border-color: #ffffff;
  background: #ffe34f;
}

.site-footer {
  background: var(--surface);
}

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

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

.footer-nav {
  min-width: 0;
}

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

.footer-nav a {
  color: var(--muted);
  font-size: 12px;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #8c7000;
}

.site-footer__copyright {
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #d7b800;
  border-radius: 50%;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(68, 57, 13, 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: 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;
  }
}

@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: 10px;
  }

  .brand {
    gap: 8px;
  }

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

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

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

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

  .button__desktop-label {
    display: none;
  }

  .button__mobile-label {
    display: inline;
  }

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

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

  .hero__tags {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 58px);
    letter-spacing: -2px;
  }

  .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;
    margin-bottom: 28px;
    gap: 12px;
  }

  .section-heading__line {
    width: 32px;
  }

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

  .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) auto;
  }

  .review-card__rating {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .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: 320px;
    padding: 48px 0;
  }

  .download__logo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

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

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

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

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

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

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

  .site-header__actions {
    gap: 6px;
  }

  .button--header {
    padding: 8px 9px;
    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;
  }
}
