* { box-sizing: border-box; }
:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft Yahei", sans-serif;
  color: #172a33;
  background: #fcffff;
}
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a:focus-visible { outline: 3px solid #e34699; outline-offset: -3px; }
main { background: #fcffff; }
.brandbar {
  flex: none; height: 57px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: block; height: 27px; width: auto; }
.following { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: #34525f; }
.following svg { width: 17px; height: 17px; }
.catalog-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.catalog-scroll::-webkit-scrollbar { display: none; }
.feature {
  height: clamp(325px, min(105cqw, 45.5cqh), 445px); isolation: isolate; position: relative;
  display: grid; align-items: end; color: white; background: #372f30; overflow: hidden;
}
.hero-photo, .feature::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-photo { object-fit: cover; object-position: 50% 28%; }
.feature::after {
  content: "";
  background: linear-gradient(180deg, transparent 36%, rgba(17,18,27,.06) 43%, rgba(21,21,31,.46) 59%, rgba(24,25,37,.87) 86%, #1c2430 100%);
}
.hero-content { padding: 0 22px 21px; }
.title-meta { display: flex; align-items: center; gap: 9px; font-size: 11px; line-height: 1.15; font-weight: 600; color: #fff6ef; text-shadow: 0 1px 4px #241a1b; }
.title-meta [lang] { font: italic 600 16px/1.12 Georgia, "Times New Roman", serif; }
.title-meta i { height: 10px; border-left: 1px solid #fff9; }
h1 { margin: 7px 0 14px; font-size: clamp(31px, 8.4cqw, 38px); font-weight: 720; letter-spacing: -.055em; line-height: 1.14; text-shadow: 0 1px 5px #251c2366; }
.actions { display: flex; align-items: center; gap: 18px; }
.watch, .alan { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; white-space: nowrap; }
.watch { gap: 7px; color: #075a77; background: #fff; padding: 0 19px; border-radius: 24px; font-size: 15px; font-weight: 750; }
.watch svg { width: 15px; height: 15px; }
.alan { gap: 7px; font-size: 13px; font-weight: 650; color: white; }
.alan img { width: 25px; height: 25px; object-fit: cover; border: 1px solid #ffffffab; border-radius: 50%; }
.alan svg { width: 12px; height: 12px; }
.shelf { padding: 19px 17px 12px; }
.shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.shelf h2 { font-size: 22px; line-height: 1.24; letter-spacing: -.05em; }
.posters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.poster { min-width: 0; }
.poster img { display: block; width: 100%; height: auto; aspect-ratio: 733 / 1100; border-radius: 7px; background: #e2e8e8; }
.poster h3 { margin: 8px 0 3px; font-size: clamp(15px, 3.9cqw, 17px); font-weight: 690; line-height: 1.27; letter-spacing: -.035em; }
.poster small { color: #516571; font-size: .7em; font-weight: 600; white-space: nowrap; }
.poster p { color: #526975; font-size: 12px; line-height: 1.34; }
.poster p span { margin: 0 2px; }
.mobile-demo { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; margin-block: -8px; font-size: 12px; font-weight: 600; color: #526975; }
.mobile-demo svg { width: 14px; height: 14px; }
.desktop-demo { display: none; }
@media (min-width: 800px) and (hover: hover) and (pointer: fine) {
  .desktop-demo { position: fixed; display: grid; gap: 5px; top: max(24px, calc((100dvh - 956px) / 2 + 22px)); left: calc(50% + 240px * var(--preview-scale, 1)); }
  .desktop-demo p { margin: 0 0 4px 9px; color: #536977; font-size: 12px; }
  .desktop-demo a { display: flex; align-items: center; min-height: 36px; border-radius: 7px; padding: 0 10px; color: #3d5662; font-size: 13px; }
  .desktop-demo a[aria-current] { background: #fcffff; color: #075a77; font-weight: 650; }
  .mobile-demo { display: none; }
}
@media (max-width: 350px) {
  .brandbar { padding-inline: 15px; }
  .feature { height: clamp(282px, 50cqh, 325px); }
  .hero-content { padding-inline: 15px; }
  .watch { padding-inline: 12px; }
  .actions { gap: 10px; }
  .alan { gap: 4px; font-size: 12px; }
  .shelf { padding-inline: 13px; }
}
.shortcuts {
  display: flex; gap: 8px; padding: 13px 15px 12px; overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 15px;
  background: #fcffff; border-bottom: 1px solid #e2ebef; scrollbar-width: none;
}
.shortcuts::-webkit-scrollbar { display: none; }
.shortcut {
  display: flex; flex: 0 0 81px; flex-direction: column; align-items: center; gap: 5px;
  padding: 2px 0; border-radius: 7px; font-size: 12px; font-weight: 650; color: #263e4b;
  line-height: 17px; scroll-snap-align: start;
}
.bubble { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; }
.bubble > img { display: block; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.live-bubble { isolation: isolate; }
.live-bubble::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: conic-gradient(#f52588, #f9636d 16%, #ffa05a 29%, #fb5898 48%, #9057cf 64%, #329ac6 75%, #cb399c 92%, #f52588);
  animation: live-ring 6s linear infinite;
}
@keyframes live-ring { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .live-bubble::before { animation: none; } }
.live-bubble img { border: 2px solid white; }
.live-tag,.corner {
  position: absolute; display: grid; place-items: center; box-sizing: border-box;
  color: white; font-family: Arial,sans-serif; font-style: normal; font-weight: 800;
  box-shadow: 0 0 0 2px #fcffff;
}
.live-tag { bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 3px; background: #ab2462; font-size: 8px; letter-spacing: .08em; line-height: 12px; padding: 0 4px; }
.corner { top: 0; right: -3px; line-height: 1; }
.show-bubble { background: #ecdfce; }
.show-bubble img { object-position: 67% 22%; }
.new-tag { border-radius: 4px; background: #075879; padding: 3px 4px; font-size: 8px; letter-spacing: .035em; }
.bem-bubble { background: #eeeaf7; }
.bot-avatar {
  display: grid; place-items: center; position: relative; width: 54px; height: 54px;
  flex: none; overflow: hidden; border-radius: 50%;
  background: radial-gradient(circle at 69% 24%, #ece5ff 0%, #b3a7ea 42%, #8173c2 95%);
}
.bot-avatar::before {
  content: ''; position: absolute; left: 18%; top: 33%; width: 64%; height: 41%;
  border-radius: 38% 38% 32% 32% / 45% 45% 55% 55%; transform: rotate(-8deg);
  background: linear-gradient(150deg,#474365 0%,#24273e 60%); border: 2px solid #f4f2ff;
  box-shadow: 1px 3px 4px #4e457860, inset 0 1px 2px #897c9a;
}
.bot-avatar::after {
  content: ''; position: absolute; width: 5px; height: 5px; top: 24%; left: 62%; border-radius: 50%;
  background: #f6fbff; box-shadow: -1px 2px 0 1px #65598a;
}
.bot-avatar i {
  position: absolute; top: 49%; left: 35%; width: 6px; height: 5px; z-index: 1;
  transform: rotate(-8deg); border-radius: 50%; background: #c2fff2; box-shadow: 12px 0 0 #c2fff2;
}
.mail-tag { width: 20px; height: 17px; border-radius: 6px; background: #a72f74; }
.mail-tag svg { width: 14px; height: 14px; stroke-width: 1.45; }
.read-mail, .bem-shortcut[data-read] .unread-mail { display: none; }
.bem-shortcut[data-read] .read-mail { display: inline; }
.bem-shortcut[data-read] .mail-tag { color: #52647b; background: #e2e8ee; }
.tool-bubble { background: #e2f0f5; color: #086387; }
.works-bubble { background: #f3edef; color: #845766; }
.tool-bubble svg,.works-bubble svg { width: 36px; height: 36px; stroke-width: 2; }
#bem { width: min(360px, calc(100vw - 28px)); max-height: min(80dvh, 520px); padding: 0; border: 0; border-radius: 20px; background: #fcffff; color: #172a33; box-shadow: 0 12px 48px #0d293839; }
#bem[open] { display: flex; flex-direction: column; }
#bem::backdrop { background: #172a336b; }
.message-head { display: flex; align-items: center; gap: 10px; padding: 15px 15px 12px; border-bottom: 1px solid #e2ebef; }
.message-head .bot-avatar { transform: scale(.82); margin: -5px; }
.message-head h2 { font-size: 18px; line-height: 1.3; }
.message-head p { margin-top: 2px; color: #576879; font-size: 12px; }
.message-head button { width: 44px; height: 44px; padding: 11px; margin-left: auto; border: 0; border-radius: 50%; color: #455766; background: transparent; cursor: pointer; }
.message-head svg { display: block; width: 21px; height: 21px; }
.messages { min-height: 120px; max-height: 38dvh; padding: 17px; overflow-y: auto; overscroll-behavior: contain; font-size: 14px; line-height: 1.55; }
.sample-intro { color: #536675; }
.message-line { width: fit-content; max-width: 88%; margin-top: 9px; padding: 8px 11px; border-radius: 11px; }
.message-line.mine { margin-left: auto; background: #dff0f7; color: #114d66; }
.message-line.bem { background: #efebf8; color: #403857; }
.conversation-prompts { display: flex; flex-wrap: wrap; gap: 7px; padding: 7px 15px 15px; }
.conversation-prompts button { min-height: 44px; padding: 0 12px; border: 1px solid #ccdfe7; border-radius: 22px; background: #fff; color: #075a77; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; cursor: pointer; }
#bem button:focus-visible { outline: 3px solid #0077a2; outline-offset: -3px; }
