/* LearnShare homepage motion: original assets, measured component timing. */
.lx-deck { --lx-ease: cubic-bezier(.4,0,.2,1); position: relative; }
.lx-deck button { cursor: pointer; }
.lx-deck .lx-is-wrapping { transition: none !important; }
.lx-deck button:focus-visible { outline: 2px solid var(--primary); outline-offset: 5px; }
.lx-card-tab { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; line-height: 1.5; }
.lx-cycle-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 25px; font-size: 12px; color: var(--muted); }
.lx-cycle-toggle { display: inline-flex; align-items: center; gap: 5px; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: inherit; }
.lx-cycle-toggle:hover { color: var(--primary); border-color: var(--primary); }
.lx-cycle-dots { display: flex; gap: 8px; align-items: center; }
.lx-cycle-dots button { display: grid; place-items: center; width: 34px; height: 34px; padding: 8px 0; background: none; border: 0; }
.lx-cycle-dots button span { width: 24px; height: 4px; border-radius: 3px; background: #d9e6f6; overflow: hidden; }
.lx-cycle-dots button[aria-selected=true] span { background: var(--primary); }
.lx-drawer-grid { display: flex; gap: 22px; }
.lx-drawer-card { position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto auto; flex: 0 0 21%; min-width: 0; min-height: 420px; padding: 30px; border-radius: 22px; overflow: hidden; background: #f2f8fe var(--lx-mini) center/cover no-repeat; transition: flex-basis .5s ease,flex-grow .5s ease,background-color .5s ease; }
.lx-drawer-card:nth-child(2) { background-color: #ecfaf3; }
.lx-drawer-card:nth-child(3) { background-color: #fff9e8; }
.lx-drawer-card.is-active { flex: 1 1 0; background-image: var(--lx-surface); }
.lx-drawer-card h3 { grid-row: 2; margin: 14px 0 0; font-size: 20px; font-weight: 600; line-height: 1.5; }
.lx-drawer-card.is-active h3 { font-size: 24px; }
.lx-drawer-panel { display: contents; }
.lx-drawer-image { grid-row: 1; align-self: center; width: 100%; max-height: 275px; object-fit: contain; opacity: 0; transform: translateY(15px) scale(.98); transition: opacity .5s ease,transform .5s ease; }
.lx-drawer-card.is-active .lx-drawer-image { opacity: 1; transform: none; transition-delay: .15s; }
.lx-drawer-panel p { grid-row: 3; max-height: 0; margin-top: 10px; opacity: 0; overflow: hidden; font-size: 14px; line-height: 1.8; transition: opacity .5s ease,max-height .5s ease; }
.lx-drawer-card.is-active p { opacity: 1; max-height: 110px; }
.lx-drawer-card .lx-card-tab::after,.lx-focus-card .lx-card-tab::after { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.lx-drawer-card:has(:focus-visible),.lx-focus-card:has(:focus-visible) { outline: 2px solid var(--primary); outline-offset: 4px; }
.lx-drawer-card.is-active::after { content: ''; position: absolute; left: 30px; right: 30px; bottom: 13px; height: 2px; background: var(--primary); transform-origin: left; animation: lx-cycle-progress var(--lx-cycle-duration,5000ms) linear both; animation-play-state: paused; }
.lx-deck.is-lx-playing .lx-drawer-card.is-active::after { animation-play-state: running; }
.lx-story-grid { display: grid; grid-template-columns: minmax(270px,.8fr) minmax(0,1.5fr); gap: 45px; align-items: center; min-height: 470px; padding: 36px; border-radius: 24px; background: #f2f8fe; box-shadow: 0 20px 60px rgba(29,122,240,.08); transition: background-color .5s; }
.lx-story[data-lx-active="0"] .lx-story-grid { background: #ecfaf3; }
.lx-story[data-lx-active="2"] .lx-story-grid { background: #fff9e8; }
.lx-story-choice { position: relative; padding: 24px 0; border-bottom: 1px solid rgba(53,98,159,.13); }
.lx-story-choice:first-child { padding-top: 10px; }
.lx-story-choice h3 { font-size: 21px; line-height: 1.5; font-weight: 500; }
.lx-story-choice.is-active .lx-card-tab { color: var(--primary); }
.lx-story-choice .lx-card-tab { display: block; width: 100%; }
.lx-story-detail p { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--text); animation: lx-detail-in .45s var(--lx-ease) both; }
.lx-story-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; overflow: hidden; }
.lx-story-choice.is-active .lx-story-progress::after { content: ''; display: block; height: 100%; background: var(--primary); transform-origin: left; animation: lx-cycle-progress var(--lx-cycle-duration,5000ms) linear both; animation-play-state: paused; }
.lx-deck.is-lx-playing .is-active .lx-story-progress::after { animation-play-state: running; }
.lx-story-stage { position: relative; min-width: 0; height: 430px; }
.lx-story-panel { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: 18px; animation: lx-panel-in .6s cubic-bezier(.22,1,.36,1) both; }
.lx-story-panel[hidden] { display: none; }
.lx-story-image { position: absolute; width: 100%; height: 88%; object-fit: contain; object-position: center bottom; bottom: 0; }
.lx-story-decorate { position: absolute; z-index: 1; width: 40%; max-height: 29%; object-fit: contain; top: 0; left: 7%; }
.lx-focus-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.lx-focus-card { position: relative; min-width: 0; border-radius: 22px; background: #ecfaf3; padding: 28px 26px 0; transition: transform .3s ease,box-shadow .3s ease; }
.lx-focus-card:nth-child(2) { background: #fff9e8; }
.lx-focus-card:nth-child(3) { background: #eff6ff; }
.lx-focus-card:has(.lx-card-tab:hover),.lx-focus-card:focus-within { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(29,122,240,.13); }
.lx-focus-card h3 { max-width: 78%; margin: 10px 0; font-size: 21px; line-height: 1.5; font-weight: 500; }
.lx-focus-panel { position: static; }
.lx-focus-panel p { min-height: 76px; margin: 12px 0 14px; font-size: 14px; color: var(--text); line-height: 1.8; }
.lx-focus-decoration,.lx-focus-lottie { position: absolute; right: 12px; top: 4px; width: 92px; height: 88px; pointer-events: none; }
.lx-focus-decoration { object-fit: contain; transition: opacity .2s; }
.lx-focus-panel:has(.lx-focus-lottie svg) .lx-focus-decoration { opacity: 0; }
.lx-focus-image { display: block; width: 100%; aspect-ratio: 10 / 7; object-fit: contain; object-position: center bottom; }
.lx-carousel-window { position: relative; overflow: hidden; padding: 5px 0 20px; touch-action: pan-y pinch-zoom; }
.lx-carousel-stage { position: relative; height: 480px; width: 100%; }
.lx-security-card { position: absolute; width: min(80%,1024px); height: 100%; left: 50%; margin: 0; padding: 38px 46px 0; overflow: hidden; border-radius: 24px; background: #f2f8fe var(--lx-security-bg) center/cover no-repeat; opacity: .4; transform: translateX(calc(-50% + var(--lx-offset,0) * (100% + 32px))); transition: transform .5s var(--lx-ease),opacity .5s var(--lx-ease); }
.lx-security-card.is-active { opacity: 1; }
.lx-security-card h3 { font-size: 25px; margin-bottom: 10px; font-weight: 500; }
.lx-security-card p { font-size: 15px; line-height: 1.8; color: var(--text); }
.lx-security-image { display: block; width: 100%; height: calc(100% - 100px); object-fit: contain; object-position: center bottom; margin-top: 16px; }
.lx-carousel-arrow { position: absolute; z-index: 2; top: 45%; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--primary); box-shadow: 0 5px 18px rgba(29,122,240,.1); }
.lx-carousel-prev { left: 8px; }.lx-carousel-next { right: 8px; }
.lx-hero-tabs { position: absolute; bottom: 7px; left: 12px; right: 12px; display: flex; justify-content: center; gap: 4px; z-index: 3; }
.lx-hero-tabs button { padding: 6px 10px; border: 0; border-radius: 7px; background: rgba(255,255,255,.92); color: var(--text); font-size: 11px; cursor: pointer; }
.lx-hero-tabs button[aria-pressed=true] { color: var(--primary); background: #e9f3ff; }
[data-lx-hero] { position: relative; }
[data-lx-hero] .tx-motion-toggle { top: 10px; bottom: auto; }
.lx-knowledge-controls { margin: 0 0 20px; }
.lx-knowledge-icon { display: inline-block; width: 22px; height: 22px; vertical-align: middle; margin-right: 8px; }
.lx-motion-ready .lx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1),transform .7s cubic-bezier(.22,1,.36,1); }
.lx-motion-ready .lx-reveal.is-visible { opacity: 1; transform: none; }
body[data-tx-product="乐享知识库"] #outcomes .tx-tabpanel:not([hidden]) { animation: lx-panel-in .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes lx-cycle-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lx-panel-in { from { opacity: 0; transform: translateY(8px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes lx-detail-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media(min-width:1200px) {
  .lx-focus .lx-cycle-toggle { display: none; }
}
@media(max-width:1199px) {
  .lx-focus { overflow: hidden; touch-action: pan-y pinch-zoom; }
  .lx-focus-grid { position: relative; display: block; height: 440px; margin: 8px 0 0; }
  .lx-focus-card { position: absolute; left: 50%; width: 73%; max-width: 500px; height: 100%; transform: translateX(calc(-50% + var(--lx-offset,0) * (100% + 22px))); opacity: .4; transition: transform .5s var(--lx-ease),opacity .5s var(--lx-ease); }
  .lx-focus-card.is-active { opacity: 1; }
  .lx-focus-card:has(.lx-card-tab:hover),.lx-focus-card:focus-within { transform: translateX(calc(-50% + var(--lx-offset,0) * (100% + 22px))); }
  .lx-focus-image { max-height: 260px; }
  .lx-story-grid { gap: 24px; padding: 26px; grid-template-columns: minmax(220px,.85fr) minmax(0,1.3fr); }
  .lx-story-stage { height: 350px; }
  .lx-drawer-card { padding: 24px; }
}
@media(max-width:768px) {
  .lx-drawer-grid { display: grid; gap: 12px; }
  .lx-drawer-card { min-height: 86px; padding: 19px 21px; grid-template-rows: auto; background-size: cover; transition: min-height .5s ease; }
  .lx-drawer-card.is-active { min-height: 330px; }
  .lx-drawer-card h3,.lx-drawer-card.is-active h3 { font-size: 20px; margin-top: 0; }
  .lx-drawer-card:not(.is-active) .lx-drawer-image { display: none; }
  .lx-drawer-card:not(.is-active) p { margin-top: 0; }
  .lx-drawer-card.is-active .lx-drawer-image { max-height: 220px; }
  .lx-drawer-panel p { font-size: 13px; line-height: 1.8; }
  .lx-story-grid { display: flex; flex-direction: column; padding: 22px 18px; gap: 24px; min-height: 0; }
  .lx-story-tabs,.lx-story-stage { width: 100%; }
  .lx-story-stage { height: 295px; }
  .lx-story-choice { padding: 17px 0; }.lx-story-choice h3 { font-size: 18px; }
  .lx-story-detail p { font-size: 13px; }
  .lx-focus-grid { height: 390px; }.lx-focus-card { width: 87%; padding: 24px 20px 0; }
  .lx-focus-card h3 { font-size: 20px; }.lx-focus-panel p { font-size: 13px; min-height: 68px; }
  .lx-focus-decoration,.lx-focus-lottie { width: 75px; height: 70px; }
  .lx-focus-image { max-height: 230px; }
  .lx-carousel-stage { height: 360px; }.lx-security-card { width: 91%; padding: 26px 21px 0; }
  .lx-security-card h3 { font-size: 21px; }.lx-security-card p { font-size: 13px; }
  .lx-security-image { height: calc(100% - 105px); margin-top: 15px; }
  .lx-carousel-arrow { width: 32px; height: 32px; }.lx-carousel-prev { left: 0; }.lx-carousel-next { right: 0; }
  .lx-cycle-controls { gap: 12px; margin-top: 18px; }
  .lx-hero-tabs { left: 2px; right: 2px; bottom: 2px; gap: 2px; }.lx-hero-tabs button { font-size: 10px; padding: 4px 5px; }
}
@media(prefers-reduced-motion:reduce) {
  .lx-deck *,.lx-motion-ready .lx-reveal { animation: none !important; transition: none !important; }
  .lx-motion-ready .lx-reveal { opacity: 1; transform: none; }
}
