/* 美颜引擎 · 对齐美图秀秀官网视觉（浅紫洗涤 / 海军胶囊 / 浅灰视频区）
   参考：https://www.meituxiuxiu.com/zh-Hans */
:root {
  --by-bg: #ffffff;
  --by-soft: #f8fafc;
  --by-ink: #0f1729;
  --by-muted: #6c727f;
  --by-muted-2: #3b4350;
  --by-cta: #0f1729;
  --by-cta-hover: #55627d;
  --by-tab: #ededee;
  --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-hero-wash: linear-gradient(135deg, #e8e2fb 0%, #f2f0fa 38%, #faf9ff 68%, #ffffff 100%);
  --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: var(--by-bg);
  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;
  min-height: min(915px, 92vh);
  display: flex;
  align-items: center;
  background: var(--by-hero-wash);
  overflow: hidden;
}
.by-hero__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.by-hero__glow--l {
  width: 420px;
  height: 420px;
  left: -80px;
  top: 120px;
  background: radial-gradient(circle, #d9d0ff 0%, transparent 70%);
}
.by-hero__glow--r {
  width: 520px;
  height: 520px;
  right: -100px;
  top: 40px;
  background: radial-gradient(circle, #f0e6ff 0%, #e3f1ff 40%, transparent 70%);
}
.by-hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--by-max), 96%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.15fr);
  gap: 32px;
  align-items: center;
  padding: 96px 0 64px;
}
.by-hero__brand {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--by-ink);
}
.by-hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--by-ink);
}
.by-hero__desc {
  margin: 0 0 32px;
  max-width: 22em;
  font-size: 17px;
  line-height: 1.7;
  color: var(--by-muted);
}
.by-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.by-hero__art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 720px;
}
.by-hero__art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(15, 23, 41, 0.12));
  animation: by-float 6.5s ease-in-out infinite;
}
@keyframes by-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* —— Buttons（海军胶囊，对齐美图） —— */
.by-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: var(--by-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.by-btn--ink {
  background: var(--by-cta);
  color: #fff;
}
.by-btn--ink:hover {
  background: var(--by-cta-hover);
  color: #fff;
}
.by-btn--soft {
  background: rgba(15, 23, 41, 0.06);
  color: var(--by-ink);
}
.by-btn--soft:hover {
  background: rgba(15, 23, 41, 0.1);
}
.by-btn--sm {
  min-height: 40px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
}

/* —— Sections —— */
.by-sec {
  padding: 96px 0;
}
.by-sec--white { background: #fff; }
.by-sec--tight { padding: 68px 0 95px; }
.by-sec--soft { padding: 82px 0 90px; background: transparent; }
.by-sec--video { padding: 43px 0 100px; background: transparent; }

.by-band {
  background: var(--by-soft);
}

.by-sec__head {
  text-align: center;
  margin: 0 0 48px;
}
.by-sec__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 600;
  color: var(--by-ink);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.by-sec__sub {
  margin: 0 auto;
  max-width: 36em;
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--by-muted);
  opacity: 0.85;
}

/* —— Portrait feature rows —— */
.by-feat-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 120px;
}
.by-feat-row:last-child { margin-bottom: 0; }
.by-feat-row--flip .by-feat-row__media { order: 2; }
.by-feat-row--flip .by-feat-row__copy { order: 1; }
.by-feat-row__media {
  border-radius: var(--by-radius);
  overflow: hidden;
  background: #f3f0f8;
}
.by-feat-row__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.by-feat-row:hover .by-feat-row__media img {
  transform: scale(1.03);
}
.by-feat-row__copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 600;
  color: var(--by-ink);
}
.by-feat-row__copy p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--by-muted);
  max-width: 28em;
}

/* —— Segmented tabs —— */
.by-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 48px;
  padding: 8px;
  border-radius: 20px;
  background: var(--by-tab);
  max-width: 100%;
}
.by-wrap--editor .by-tabs,
.by-wrap--video .by-tabs {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.by-tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--by-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, font-weight 0.2s ease;
  white-space: nowrap;
}
.by-tabs__btn.is-active {
  background: #fff;
  font-weight: 600;
  box-shadow: 1.5px 1.5px 3px 0 hsla(0, 0%, 73%, 0.25);
}

/* —— Retouch gradient panels —— */
.by-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 28px 36px 28px 28px;
  border-radius: var(--by-radius);
  min-height: 420px;
  animation: by-fade-in 0.35s ease;
}
.by-panel--a { background: var(--by-grad-a); }
.by-panel--b { background: var(--by-grad-b); }
.by-panel[hidden] { display: none !important; }
.by-panel__visual {
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
}
.by-panel__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.by-panel__copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--by-ink);
}
.by-panel__copy p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--by-muted-2);
  opacity: 0.78;
}

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

/* —— AI cards —— */
.by-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.by-ai {
  background: #fff;
  border-radius: var(--by-radius);
  overflow: hidden;
  transition: transform 0.25s ease;
}
.by-ai:hover { transform: translateY(-4px); }
.by-ai > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #eef1f6;
  border-radius: 24px 24px 0 0;
}
.by-ai__body {
  padding: 22px 24px 28px;
}
.by-ai__body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--by-ink);
}
.by-ai__body p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--by-muted);
}

/* —— Video §6 —— */
.by-video-card {
  margin: 0 0 40px;
  border-radius: var(--by-radius);
  overflow: hidden;
  background: #e8ebf0;
  animation: by-fade-in 0.35s ease;
}
.by-video-card[hidden] { display: none !important; }
.by-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 1064 / 524;
  object-fit: cover;
  background: #1a1a1a;
}
.by-video-card__cap {
  margin: 0;
  padding: 16px 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--by-muted);
  background: #fff;
  border-top: 1px solid #e5e7eb;
}
.by-center { text-align: center; }

/* —— CTA —— */
.by-cta {
  padding: 72px 0 96px;
  background: #fff;
}
.by-cta__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 28px;
  border-radius: var(--by-radius);
  background: var(--by-grad-b);
}
.by-cta__art {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}
.by-cta__art img {
  display: block;
  width: 100%;
  min-height: 240px;
  object-fit: cover;
}
.by-cta__text h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  color: var(--by-ink);
}
.by-cta__text p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--by-muted);
}

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

@media (max-width: 980px) {
  .by-hero {
    min-height: auto;
  }
  .by-hero__inner {
    grid-template-columns: 1fr;
    padding: 72px 0 40px;
    text-align: center;
  }
  .by-hero__desc {
    margin-left: auto;
    margin-right: auto;
  }
  .by-hero__actions {
    justify-content: center;
  }
  .by-hero__art {
    justify-self: center;
    max-width: 520px;
    order: -1;
  }
  .by-feat-row,
  .by-feat-row--flip,
  .by-panel,
  .by-ai-grid,
  .by-cta__inner {
    grid-template-columns: 1fr;
  }
  .by-feat-row {
    gap: 28px;
    margin-bottom: 64px;
  }
  .by-feat-row--flip .by-feat-row__media,
  .by-feat-row--flip .by-feat-row__copy {
    order: initial;
  }
  .by-feat-row__copy {
    text-align: center;
  }
  .by-feat-row__copy p {
    margin-left: auto;
    margin-right: auto;
  }
  .by-panel {
    padding: 20px;
    min-height: 0;
  }
  .by-panel__visual img {
    min-height: 220px;
  }
  .by-panel__copy {
    text-align: center;
  }
  .by-ai-grid {
    grid-template-columns: 1fr 1fr;
  }
  .by-sec {
    padding: 64px 0;
  }
  .by-sec__title {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }
}

@media (max-width: 560px) {
  .by-ai-grid {
    grid-template-columns: 1fr;
  }
  .by-tabs__btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .by-btn {
    min-height: 46px;
    font-size: 15px;
  }
  .by-hero__title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
}
