/* 美颜引擎 · 精细对齐美图秀秀 zh-Hans
   https://www.meituxiuxiu.com/zh-Hans */
:root {
  --by-ink: #0f1729;
  --by-muted: #6c727f;
  --by-tab-text: #384150;
  --by-tab-bg: #ededee;
  --by-soft: #f8fafc;
  --by-cta: #0f1729;
  --by-cta-hover: #55627d;
  --by-radius: 24px;
  --by-pill: 200px;
  --by-max: 1194px;
  --by-max-editor: 1149px;
  --by-max-ai: 1200px;
  --by-max-video: 1064px;
  --by-grad-a: linear-gradient(180deg, #fef9ff, #e3f1ff);
  --by-grad-b: linear-gradient(180deg, #fef9ff, #f6f0ff);
  --by-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.bce-body--beauty .bce-main,
.bce-body--beauty main {
  max-width: none;
}

.by-page {
  font-family: var(--by-font);
  color: var(--by-ink);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.by-wrap {
  width: min(var(--by-max), 96%);
  margin: 0 auto;
}
.by-wrap--editor { width: min(var(--by-max-editor), 96%); }
.by-wrap--ai { width: min(var(--by-max-ai), 96%); }
.by-wrap--video { width: min(var(--by-max-video), 96%); }

/* ========== ① Hero ========== */
.by-hero {
  position: relative;
  width: 100%;
  height: 915px;
  /* 上拉盖住站点顶栏，与美图 margin-top:-80px 同理；本站顶栏为 --bce-head-h(56px) */
  margin-top: calc(0px - var(--bce-head-h, 56px));
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  background: #f2f0fa;
}
.by-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
}
.by-hero__orb {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.by-hero__orb--l {
  width: 264px;
  height: 464px;
  top: 62px;
  left: 0;
  background-image: url("/static/official/beauty/img/banner-round-left.png");
}
.by-hero__orb--r {
  width: 219px;
  height: 488px;
  top: 0;
  right: 0;
  background-image: url("/static/official/beauty/img/banner-round-right.png");
}
.by-hero__box {
  position: relative;
  z-index: 2;
  width: min(var(--by-max), 96%);
  height: 100%;
  margin: 0 auto;
}
.by-hero__copy {
  position: absolute;
  top: 220px;
  left: 0;
  z-index: 3;
  max-width: 560px;
}
.by-hero__logo {
  width: 283px;
  max-width: 70vw;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--by-ink);
  line-height: 1.1;
}
.by-hero__title {
  margin: 32px 0 36.5px;
  font-size: 72px;
  font-weight: 500;
  line-height: 1.18;
  color: var(--by-ink);
  letter-spacing: 0;
}
.by-hero__product {
  position: absolute;
  top: 492px;
  right: -28px;
  transform: translateY(-50%);
  width: min(837px, 58vw);
  height: auto;
  z-index: 2;
  pointer-events: none;
  animation: by-float 7s ease-in-out infinite;
}
@keyframes by-float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 12px)); }
}

/* ========== Buttons ========== */
.by-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--by-pill);
  background: var(--by-cta);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.by-btn:hover { background: var(--by-cta-hover); color: #fff; }
.by-btn__ico { flex: 0 0 auto; }
.by-btn--hero {
  height: 75px;
  padding: 0 35px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.52px;
}
.by-btn--md {
  min-width: 180px;
  height: 56px;
  padding: 0 30px;
  font-size: 20px;
}
.by-btn--sm {
  height: 40px;
  padding: 0 30px;
  font-size: 16px;
}
.by-btn--xs {
  width: 120px;
  height: 40px;
  padding: 0;
  font-size: 16px;
}
.by-btn--ghost {
  background: #fff;
  color: var(--by-ink);
  border: 1px solid rgba(15, 23, 41, 0.12);
}
.by-btn--ghost:hover {
  background: #f3f4f6;
  color: var(--by-ink);
}

/* ========== Section heads ========== */
.by-head {
  text-align: center;
  margin: 0 0 64px;
}
.by-head--video { margin-bottom: 48px; }
.by-head__title {
  margin: 0 0 20px;
  font-size: 62px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--by-ink);
}
.by-head__sub {
  margin: 0 auto;
  max-width: 40em;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--by-muted);
}

.by-sec--portrait { padding: 96px 0; background: #fff; }
.by-sec--editor { padding: 68px 0 95px; background: #fff; }
.by-soft { background: var(--by-soft); }
.by-sec--ai { padding: 82px 0 90px; }
.by-sec--video { padding: 43px 0 80px; }
.by-sec--more { padding: 0 0 100px; }

/* ========== Portrait rows ========== */
.by-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 85px;
  margin-bottom: 160px;
}
.by-row:last-child { margin-bottom: 0; }
.by-row--rev .by-row__media { order: 2; }
.by-row--rev .by-row__copy { order: 1; }
.by-row__media {
  width: 636px;
  max-width: 54%;
  height: 400px;
  border-radius: var(--by-radius);
  overflow: hidden;
  flex: 0 0 auto;
  background: #eef1f6;
}
.by-row__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.by-row__copy {
  width: 480px;
  max-width: 40%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.by-row__copy h3 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  color: var(--by-ink);
}
.by-row__copy p {
  margin: 16px 0 26px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--by-muted);
}

/* ========== Tabs ========== */
.by-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 0;
  padding: 8px;
  border-radius: 20px;
  background: var(--by-tab-bg);
  gap: 0;
}
.by-tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  height: 43px;
  padding: 8px 32px;
  margin-right: 8px;
  border-radius: 12.366px;
  color: var(--by-tab-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, font-weight 0.2s ease;
}
.by-tabs__btn:last-child { margin-right: 0; }
.by-tabs__btn.is-active {
  background: #fff;
  font-weight: 600;
  box-shadow: 1.55px 1.55px 3.099px 0 hsla(0, 0%, 73%, 0.25);
}

/* ========== Photo editor cards ========== */
.by-editor-card {
  display: flex;
  align-items: stretch;
  margin-top: 58px;
  border-radius: var(--by-radius);
  overflow: hidden;
  animation: by-in 0.35s ease;
}
.by-editor-card--a { background: var(--by-grad-a); }
.by-editor-card--b { background: var(--by-grad-b); }
.by-editor-card[hidden] { display: none !important; }
.by-editor-card__copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px 40px 50px;
  margin: auto 0;
}
.by-editor-card__copy h3 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 600;
  line-height: 48px;
  color: var(--by-ink);
}
.by-editor-card__copy p {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--by-muted);
  max-width: 28em;
}
.by-editor-card__media {
  flex: 0 0 auto;
  order: 1;
  margin-left: 20px;
  width: min(674px, 52%);
}
.by-editor-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 568px;
  object-fit: contain;
}

@keyframes by-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ========== AI ========== */
.by-ai-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 58px;
  animation: by-in 0.35s ease;
}
.by-ai-row[hidden] { display: none !important; }
.by-ai {
  width: 386px;
  max-width: calc(33.333% - 14px);
  height: 568px;
  border-radius: var(--by-radius);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.by-ai video {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
  background: #e8ebf0;
  border-radius: 24px 24px 0 0;
}
.by-ai__body {
  flex: 1 1 auto;
  padding: 30px 40px 30px 20px;
  display: flex;
  flex-direction: column;
}
.by-ai__body h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--by-ink);
}
.by-ai__body p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--by-muted);
  opacity: 0.7;
  max-height: 124px;
  overflow: hidden;
  flex: 1 1 auto;
}

/* ========== Video §6 ========== */
.by-vcard {
  margin-top: 58px;
  border-radius: var(--by-radius);
  overflow: hidden;
  background: #e8ebf0;
  animation: by-in 0.35s ease;
}
.by-vcard[hidden] { display: none !important; }
.by-vcard video {
  display: block;
  width: 100%;
  aspect-ratio: 1064 / 524;
  object-fit: cover;
  background: #1a1a1a;
}

.by-center { text-align: center; margin-top: 55px; }

/* ========== CTA ========== */
.by-cta {
  padding: 80px 0 100px;
  background: #fff;
}
.by-cta__box {
  text-align: center;
  padding: 56px 40px;
  border-radius: var(--by-radius);
  background: var(--by-grad-a);
}
.by-cta__box h2 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 600;
  color: var(--by-ink);
}
.by-cta__box p {
  margin: 0 auto 28px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.7;
  color: var(--by-muted);
}
.by-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ========== Motion ========== */
.by-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.by-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ========== Responsive ========== */
@media (max-width: 1365px) {
  .by-hero__product { right: 0; }
}
@media (max-width: 1100px) {
  .by-hero { height: auto; min-height: 720px; margin-top: 0; }
  .by-hero__box { height: auto; padding: 100px 0 40px; }
  .by-hero__copy {
    position: relative;
    top: auto;
    max-width: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .by-hero__title { font-size: 48px; }
  .by-hero__product {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: min(560px, 92vw);
    margin: 24px auto 0;
    display: block;
    animation: none;
  }
  .by-head__title { font-size: 40px; }
  .by-head__sub { font-size: 18px; }
  .by-row,
  .by-row--rev {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 72px;
  }
  .by-row--rev .by-row__media,
  .by-row--rev .by-row__copy { order: initial; }
  .by-row__media {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 636 / 400;
  }
  .by-row__copy {
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
  .by-row__copy h3 { font-size: 28px; line-height: 1.3; }
  .by-editor-card {
    flex-direction: column-reverse;
  }
  .by-editor-card__media {
    width: 100%;
    margin-left: 0;
  }
  .by-editor-card__copy {
    padding: 28px 24px 36px;
    align-items: center;
    text-align: center;
  }
  .by-editor-card__copy h3 { font-size: 26px; line-height: 1.35; }
  .by-ai-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  .by-ai {
    width: min(386px, 100%);
    max-width: 100%;
    height: auto;
  }
}
@media (max-width: 768px) {
  .by-hero__title { font-size: 36px; }
  .by-btn--hero {
    height: 56px;
    font-size: 18px;
    padding: 0 24px;
  }
  .by-btn__ico { width: 22px; height: 22px; }
  .by-head__title { font-size: 28px; }
  .by-tabs__btn {
    height: 38px;
    padding: 6px 14px;
    font-size: 13px;
    margin-right: 4px;
  }
  .by-sec--portrait { padding: 56px 0; }
  .by-sec--editor { padding: 48px 0 64px; }
  .by-sec--ai { padding: 56px 0 48px; }
  .by-orb, .by-hero__orb--l, .by-hero__orb--r { opacity: 0.5; }
}
@media (min-width: 768px) and (max-width: 900px) {
  .by-hero__title { font-size: 45px; }
}
