/* The library uses the existing documentation header and product navigation. */
.docs.wrap-docs:has(.effect-gallery) { max-width:1536px; }
.d-main:has(.effect-gallery) { max-width:none; }
.d-main:has(.effect-gallery) .d-h1 { margin-bottom:.2em; }
@media (min-width:1241px) {
  .docs.wrap-docs:has(.effect-gallery) { grid-template-columns:248px minmax(0,1fr); gap:44px; }
  .docs.wrap-docs:has(.effect-gallery) .d-toc { display:none; }
}
.effect-gallery, .fx-dialog {
  --fx-ink:var(--text,#172739);
  --fx-sub:var(--muted,#4d6172);
  --fx-line:var(--line,#d9e2e7);
  --fx-paper:var(--bg,#fff);
  --fx-accent:#165c85;
  font-family:var(--font-sans,"Microsoft YaHei UI","PingFang SC",sans-serif);
  color:var(--fx-ink);
}
html[data-theme=dark] :is(.effect-gallery,.fx-dialog) { --fx-accent:#8acff0; --fx-paper:#101e2c; }
.effect-gallery *, .fx-dialog * { box-sizing:border-box; }
.effect-gallery [hidden], .fx-dialog [hidden] { display:none !important; }
.effect-gallery button, .fx-dialog button { font:inherit; cursor:pointer; }
.effect-gallery :is(button,a,input):focus-visible, .fx-dialog :is(a,button):focus-visible {outline:3px solid #3998ca;outline-offset:3px}
.md .effect-gallery img, .fx-dialog img { display:block; width:100%; border:0; margin:0; height:100%; border-radius:0; object-fit:contain; }
.fx-intro { color:var(--fx-sub); font-size:15px; line-height:1.7; margin:0 0 18px; }
.fx-showcase { display:grid; grid-template-columns:minmax(0,1.9fr) minmax(230px,1fr); background:#132237; color:#f0f6ff; border-radius:14px; overflow:hidden; }
.fx-screen { display:flex; flex-direction:column; min-width:0; align-self:stretch; background:#0b1524; }
.fx-hero-panel { aspect-ratio:1120/680; min-height:0; display:block; flex:1 1 auto; position:relative; }
.fx-screen .fx-hero-panel img { position:absolute; inset:0; }
.fx-screen-foot { display:flex; justify-content:space-between; align-items:center; padding:8px 16px; background:#101f31; border-top:1px solid #283749; min-height:44px; font-size:13px; color:#cbdbe8; gap:10px; }
.md .fx-showcase strong { color:#f1f7ff; }
.fx-screen-foot button, .fx-hero-list button { color:inherit; border:0; background:transparent; }
.fx-screen-foot button { font-weight:650; padding:4px 9px; border:1px solid #61758b; border-radius:5px; color:#eff7ff; white-space:nowrap; }
.fx-hero-list { padding:18px 17px 14px; display:flex; flex-direction:column; justify-content:center; }
.fx-hero-heading { font-size:16px; font-weight:700; margin:0 0 8px; color:#eaf6ff; }
.fx-hero-list button { display:grid; grid-template-columns:minmax(0,1fr) 16px; text-align:left; border-top:1px solid #344354; padding:10px 9px; align-items:center; }
.fx-hero-list button span { display:block; }
.fx-hero-list button strong { font-weight:650; font-size:17px; line-height:1.4; }
.fx-hero-list button small { display:block; font-size:12px; line-height:1.45; margin-top:2px; color:#becdd9; }
.fx-hero-list button::after { content:""; width:7px; height:7px; border:1px solid #7f96a8; border-radius:50%; }
.fx-hero-list button[aria-pressed=true] { background:#23394d; box-shadow:inset 3px 0 #80d3fb; }
.fx-hero-list button[aria-pressed=true]::after { background:#9ee2ff;border-color:#9ee2ff; }
.fx-hero-list button:hover { background:#22364a; }
.fx-tools { margin:26px 0 14px; scroll-margin-top:90px; }
@media(min-width:791px) {
  .fx-hero-panel { flex:1 1 auto; aspect-ratio:auto; min-height:245px; height:clamp(245px,20vw,315px); }
  .fx-screen { min-height:100%; }
  .fx-hero-list { padding:12px 15px; }
  .fx-hero-list button {padding:7px 9px;}
}
.fx-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.fx-toolbar h2.fx-section-title { font-size:24px; margin:0; padding:0; border:0; }
.fx-search { display:flex; gap:8px; align-items:center; min-height:40px; padding:0 13px; border:1px solid var(--fx-line); border-radius:7px; color:var(--fx-sub); }
.fx-search svg { width:18px;height:18px; flex:none; }
.fx-search input { min-width:0; width:13em; font:inherit; font-size:14px; color:var(--fx-ink); background:transparent;border:0; }
.fx-search input:focus { outline:0; }
.fx-search:focus-within { outline:2px solid var(--fx-accent); }
.fx-filter-wrap { display:flex;flex-wrap:wrap; align-items:center; gap:5px; padding:13px 0 10px; border-bottom:1px solid var(--fx-line); }
.fx-filter { padding:4px 12px; border:1px solid transparent; border-radius:18px; background:transparent; color:var(--fx-sub); font-size:14px !important; }
.fx-filter:hover { border-color:var(--fx-line); }
.fx-filter[aria-pressed=true] { background:var(--fx-accent); color:var(--fx-paper); font-weight:650; }
.fx-filter small { margin-left:4px; font-size:11px; opacity:.86; }
.fx-status { display:block; min-height:16px; font-size:12px;line-height:1.4;color:var(--fx-sub);margin-top:6px; }
.fx-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 16px; }
.md a.fx-card { text-decoration:none; color:var(--fx-ink); display:block; border:0; min-width:0; }
.fx-thumb { display:block; position:relative; overflow:hidden; background:#101d2b; aspect-ratio:16/10; border-radius:7px; }
.fx-card:hover .fx-thumb { outline:2px solid var(--fx-accent); }
.fx-card-info { display:flex; justify-content:space-between; align-items:baseline;gap:6px; margin:7px 0 2px; }
.fx-card-info strong { font-size:16px; font-weight:700; line-height:1.45; }
.fx-card-info small { font-size:11px; color:var(--fx-sub); text-align:right; flex:none; }
.fx-desc { display:block; font-size:13px; line-height:1.55; color:var(--fx-sub); }
.fx-play { position:absolute;right:8px;bottom:8px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:rgba(10,21,32,.82);border:1px solid #8494a1; }
.fx-play::before {content:""; width:0; height:0; border-style:solid;border-width:4px 0 4px 7px;border-color:transparent transparent transparent #e9f5ff;margin-left:2px}
.fx-clear { border:1px solid var(--fx-line);border-radius:6px;color:var(--fx-accent);background:transparent;padding:7px 14px; }
.fx-notes { margin-top:28px; border-top:1px solid var(--fx-line); padding-top:14px; color:var(--fx-sub); font-size:13px; }
.fx-dialog { position:fixed; inset:0; margin:auto; padding:0; border:1px solid var(--fx-line); border-radius:13px; background:var(--fx-paper); overflow:auto; width:min(1000px,calc(100vw - 36px)); max-height:90dvh; box-shadow:0 24px 100px #06111e70; }
.fx-dialog::backdrop { background:rgb(5 15 26 / .78); }
.fx-dialog-head, .fx-dialog-foot { display:flex;align-items:center;gap:12px;padding:13px 18px; }
.fx-dialog-head { justify-content:space-between; }
.fx-dialog h3 { margin:0; font-size:22px; line-height:1.4; }
.fx-dialog button, .fx-dialog a {background:none; border:1px solid var(--fx-line);color:var(--fx-ink);padding:5px 11px;font-size:14px;border-radius:5px;text-decoration:none;}
.fx-dialog .fx-dialog-stage { background:#101b29; height:min(51dvh,520px); min-height:146px; }
.fx-dialog-copy { margin:0; padding:14px 18px 0; font-size:15px;line-height:1.65; }
.fx-dialog-foot { flex-wrap:wrap; }
.fx-dialog-foot a {margin-right:auto; color:var(--fx-accent);}
.fx-dialog button:disabled {opacity:.4;cursor:default;}
@media(min-width:1025px) and (max-width:1150px) { .fx-showcase{grid-template-columns:minmax(0,1.65fr) 190px}.fx-hero-list{padding:10px}.fx-hero-list button{padding:7px}.fx-hero-list button small{font-size:11px}.fx-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:790px){
  .fx-showcase {grid-template-columns:minmax(0,1fr)}
  .fx-hero-list {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px;gap:2px}
  .fx-hero-heading {grid-column:1/-1;font-size:13px;margin:1px 6px;}
  .fx-hero-list button {display:block;border:0;padding:8px 3px;text-align:center}
  .fx-hero-list button strong {font-size:14px}.fx-hero-list button small,.fx-hero-list button::after {display:none}
  .fx-hero-list button[aria-pressed=true] {box-shadow:inset 0 -2px #80d3fb;}
  .fx-grid{grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 12px; }
}
@media(max-width:520px){
  .fx-intro {font-size:14px}.fx-tools{margin-top:23px}.fx-screen-foot{padding:7px 10px;}
  .fx-toolbar{display:grid;grid-template-columns:minmax(0,1fr)}.fx-search input{width:100%;}
  .fx-filter{padding:4px 9px}.fx-card-info{display:block;}.fx-card-info small{display:block;text-align:left;}
  .fx-card-info strong{font-size:15px}.fx-desc{font-size:12px}.fx-grid{gap:16px 9px;}
  .fx-dialog-head,.fx-dialog-foot{padding:10px 12px;gap:7px}.fx-dialog-copy{padding:10px 12px 0}.fx-dialog h3{font-size:18px;}
  .fx-dialog .fx-dialog-stage{height:auto;aspect-ratio:16/10}
}
