:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #15213d;
  background: #f5f7fc;
  font-synthesis: none;
  --blue: #304be1;
  --blue-strong: #2438bc;
  --ink: #15213d;
  --muted: #525e76;
  --border: #e0e5f0;
  --surface: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-inline-size: 320px; font-size: 1rem; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .69; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5268e8; outline-offset: 4px; }

.shell { width: min(1176px, calc(100% - 72px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 5; padding: 10px 16px; color: white; background: var(--blue-strong); border-radius: 8px; }
.skip-link:focus { top: 9px; }

.site-header { background: #fff; border-bottom: 1px solid #e8ecf5; }
.header-inner { min-height: 72px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.125rem; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.brand-icon { display: grid; flex: 0 0 35px; width: 35px; height: 35px; grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(2, 7px); gap: 3px; place-content: center; border-radius: 10px; background: linear-gradient(145deg, #5366ff, #344be0 64%, #2d39b6); box-shadow: 0 4px 9px #304be12e; }
.brand-icon i { background: #fff; border-radius: 1.8px; }
.brand-icon i:nth-child(2) { opacity: .66; }
.brand-icon i:nth-child(3) { opacity: .84; }
.header-nav { align-self: stretch; display: flex; align-items: stretch; justify-content: center; gap: 10px; }
.header-nav a { display: flex; align-items: center; padding: 1px 12px 0; color: var(--muted); border-bottom: 2px solid transparent; font-size: .9375rem; font-weight: 700; white-space: nowrap; }
.header-nav a:hover { color: var(--blue-strong); }
.header-nav a[aria-current] { color: var(--blue-strong); border-bottom-color: var(--blue); }

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; padding: 8px 16px; border-radius: 9px; white-space: nowrap; font-size: .875rem; font-weight: 700; line-height: 1.35; text-align: center; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #243ccd; }
.button-outline { background: white; border-color: #dce3f1; color: #24314f; }
.button-outline:hover { background: #f4f6fb; border-color: #aebbe1; }
.button-white { min-height: 46px; padding: 11px 22px; border-color: #fff; color: #172aa7; background: #fff; box-shadow: 0 7px 20px #0b1b8d4d; }
.button-white:hover { background: #edf1ff; border-color: #edf1ff; }
.button-text { background: transparent; color: var(--blue-strong); padding-inline: 6px; }
.button-text:hover { background: #e9eeff; }

.main-shell { padding-block: 30px 64px; }
.hero { position: relative; min-height: 326px; isolation: isolate; display: flex; align-items: center; overflow: hidden; border-radius: 20px; background: radial-gradient(ellipse at 83% 38%, #5868ff 0%, #3148ed 29%, #253ad3 52%, #1729b3 88%); box-shadow: 0 16px 40px #1f39b91a; color: #fff; }
.hero::before { position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(110deg, transparent 48%, #a5b4ff30 48.12%, transparent 48.25%), linear-gradient(110deg, transparent 55%, #a5b4ff30 55.12%, transparent 55.25%), linear-gradient(110deg, transparent 62%, #a5b4ff30 62.12%, transparent 62.25%); content: ""; }
.hero-content { position: relative; z-index: 1; max-width: 59%; padding: 40px 0 46px 50px; }
.hero h1 { font-size: clamp(2.32rem, 4.2vw, 3.55rem); line-height: 1.18; letter-spacing: -.062em; font-weight: 780; }
.hero p { max-width: 24rem; margin: 16px 0 24px; color: #eaf0ff; line-height: 1.7; font-size: 1rem; }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 37%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 35%); }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 51%; }
.hero-visual img[hidden] { display: none; }

.catalog { margin-top: 40px; scroll-margin-top: 20px; }
.catalog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px 24px; }
.catalog-heading h2 { font-size: 1.75rem; letter-spacing: -.055em; line-height: 1.28; font-weight: 780; }
#catalog-title { scroll-margin-top: 20px; }
.search-control { position: relative; display: flex; align-items: center; flex: 0 1 320px; min-width: 214px; }
.search-control input { width: 100%; min-height: 45px; padding: 9px 12px 9px 42px; border: 1px solid #dfe5f1; border-radius: 10px; color: var(--ink); background: #fff; font-size: .9375rem; }
.search-control input::placeholder { color: #606d86; opacity: 1; }
.search-icon { position: absolute; left: 16px; top: 14px; width: 13px; height: 13px; border: 1.7px solid #606d86; border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; width: 6px; height: 1.5px; background: #606d86; position: absolute; top: 10px; left: 8.5px; transform: rotate(45deg); transform-origin: left center; border-radius: 2px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 17px; margin-top: 20px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 40px; padding: 8px 15px; border: 1px solid #e1e6f3; border-radius: 8px; background: #fff; color: #45516e; white-space: nowrap; font-size: .875rem; font-weight: 650; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.filters button:hover { background: #eaf0ff; border-color: #c4d0ff; }
.filters button[aria-pressed="true"] { border-color: #c3ceff; background: #e7ecff; color: #263fc2; }
.result-count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.catalog-message { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; padding: 4px 12px 4px 15px; border: 1px solid #dce4fa; background: #edf2ff; border-radius: 9px; color: #344672; font-size: .875rem; }
.catalog-status { grid-column: 1 / -1; padding-block: 15px; color: var(--muted); }

.plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plugin-card { min-width: 0; display: flex; flex-direction: column; padding: 19px 20px 17px; border: 1px solid #e0e6f2; background: #fff; border-radius: 14px; box-shadow: 0 4px 9px #16232b05; transition: border-color .16s ease, box-shadow .16s ease; }
.plugin-card:hover { border-color: #c4cff8; box-shadow: 0 7px 20px #182b4d0b; }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.card-title { font-size: 1.125rem; font-weight: 750; line-height: 1.37; letter-spacing: -.026em; margin: 12px 0 6px; overflow-wrap: anywhere; }
.card-summary { color: var(--muted); font-size: .9375rem; line-height: 1.62; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 3.04rem; }
.card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.category-label { color: #556383; font-size: .875rem; font-weight: 600; }
.card-footer .button { min-height: 36px; padding: 7px 11px; }
.pill { width: max-content; max-width: 100%; padding: 5px 8px; border-radius: 6px; color: #2543ba; background: #ecf0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .8125rem; font-weight: 700; line-height: 1.32; }

.tool-icon { --icon-ink: #3853d8; --icon-bg: #e9eeff; position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; flex: 0 0 44px; border-radius: 11px; background: var(--icon-bg); color: var(--icon-ink); }
.tool-icon > span { display: block; position: relative; width: 21px; height: 21px; }
.tool-icon.listing > span { width: 18px; height: 19px; border: 1.8px solid currentColor; border-radius: 4px; }
.tool-icon.listing > span::before { content: ""; position: absolute; width: 8px; height: 6px; border: 1.8px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; top: -5px; left: 3.3px; }
.tool-icon.listing > span::after { content: ""; position: absolute; width: 8px; height: 1.5px; background: currentColor; top: 7px; left: 3.2px; box-shadow: 0 4px currentColor; }
.tool-icon.media { --icon-ink: #8750cb; --icon-bg: #f2eafe; }
.tool-icon.media > span { border: 1.8px solid currentColor; border-radius: 4px; overflow: hidden; }
.tool-icon.media > span::before { content: ""; position: absolute; width: 16px; height: 12px; border: 1.6px solid currentColor; border-radius: 3px; bottom: -6px; left: -1px; transform: rotate(-39deg); }
.tool-icon.media > span::after { content: ""; position: absolute; width: 4px; height: 4px; background: currentColor; border-radius: 50%; top: 3px; right: 3px; }
.tool-icon.marketing { --icon-ink: #bd681e; --icon-bg: #fff1df; }
.tool-icon.marketing > span { border: 1.8px solid currentColor; border-radius: 50%; }
.tool-icon.marketing > span::before { content: ""; position: absolute; border: 1.7px solid currentColor; border-radius: 50%; inset: 3px; }
.tool-icon.marketing > span::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; inset: 6.6px; }
.tool-icon.analytics { --icon-ink: #137d72; --icon-bg: #e3f6ef; }
.tool-icon.analytics > span { height: 19px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-radius: 0 0 0 2px; }
.tool-icon.analytics > span::before { content: ""; position: absolute; bottom: 3px; left: 4px; width: 15px; height: 13px; background: currentColor; clip-path: polygon(0 70%, 23% 70%, 23% 100%, 36% 100%, 36% 44%, 60% 44%, 60% 100%, 73% 100%, 73% 0, 100% 0, 100% 100%, 0 100%); }
.tool-icon.support { --icon-ink: #226fcd; --icon-bg: #e6f1ff; }
.tool-icon.support > span { width: 21px; height: 16px; border: 1.8px solid currentColor; border-radius: 5px; transform: translateY(-1px); }
.tool-icon.support > span::before { content: ""; position: absolute; left: 2px; bottom: -4px; width: 5px; height: 5px; transform: skewY(-35deg); border: solid currentColor; border-width: 0 0 1.8px 1.8px; background: var(--icon-bg); }
.tool-icon.support > span::after { content: ""; position: absolute; top: 4px; left: 3px; width: 9px; height: 1.4px; background: currentColor; box-shadow: 0 3px currentColor; }

.empty-state { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: center; text-align: center; align-content: center; min-height: 140px; padding: 23px; border-radius: 14px; background: #fff; border: 1px dashed #cbd5ee; }
.empty-state h3 { font-size: 1.125rem; }
.empty-state::before { content: ""; width: 34px; height: 34px; border-radius: 9px; background: radial-gradient(circle at 12px 12px, #7085e7 3px, transparent 3.5px), radial-gradient(circle at 22px 12px, #7085e7 3px, transparent 3.5px), radial-gradient(circle at 12px 22px, #7085e7 3px, transparent 3.5px), radial-gradient(circle at 22px 22px, #7085e7 3px, transparent 3.5px), #edf1ff; }
.notice { padding: 18px 0; }

.subpage { max-width: 1056px; margin-inline: auto; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 22px; color: var(--muted); font-size: .875rem; }
.breadcrumbs a { color: var(--blue-strong); font-weight: 700; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { overflow-wrap: anywhere; }
.subpage h1 { font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.24; letter-spacing: -.055em; overflow-wrap: anywhere; }
.page-panel { min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 14px #182b4d07; }
.page-panel h2 { font-size: 1.225rem; letter-spacing: -.028em; line-height: 1.35; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }

.details-overview { background: radial-gradient(ellipse at top right, #edf1ff, #fff 55%); }
.details-description { max-width: 47rem; margin-top: 16px; color: var(--muted); overflow-wrap: anywhere; white-space: pre-line; }
.details-heading { display: flex; align-items: flex-start; gap: 15px; }
.details-heading > div { min-width: 0; }
.details-heading .tool-icon { width: 54px; height: 54px; flex-basis: 54px; border-radius: 13px; }
.details-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; margin-top: 6px; }
.details-versions { margin-top: 16px; }
.details-versions h2 { margin-bottom: 12px; }
.details-versions-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.version-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px 12px 15px; border: 1px solid #e1e7f5; background: #f8faff; border-radius: 9px; }
.version-row strong { display: block; font-weight: 750; overflow-wrap: anywhere; }
.version-row p { color: var(--muted); font-size: .875rem; }
.download-message { margin-top: 12px; color: #992f3d; background: #fff0f2; border-radius: 7px; padding: 8px 10px; font-size: .875rem; }
.download-message.info { color: #344672; background: #edf2ff; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .hero-content { padding-left: 36px; }
  .plugin-grid { gap: 12px; }
  .plugin-card { padding-inline: 16px; }
}

@media (max-width: 780px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { gap: 12px; min-height: 64px; }
  .hero { min-height: 295px; }
  .hero-content { max-width: 66%; padding: 28px 0 30px 28px; }
  .hero h1 { font-size: clamp(2.15rem, 5.7vw, 3.2rem); }
  .hero p { font-size: .9375rem; }
  .hero-visual { inset-inline-start: 36%; }
  .plugin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .catalog-toolbar { align-items: flex-start; }
  .result-count { padding-top: .5rem; }
}

@media (max-width: 540px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { gap: 6px; }
  .header-nav a { padding-inline: 8px; }
  .brand { font-size: 1rem; gap: 7px; }
  .brand-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; }
  .main-shell { padding-top: 17px; }
  .hero { min-height: 312px; border-radius: 15px; align-items: end; }
  .hero-content { max-width: 94%; padding: 23px 17px 23px 20px; }
  .hero h1 { font-size: 2.05rem; line-height: 1.17; }
  .hero p { margin: 10px 0 15px; max-width: 15rem; }
  .hero-visual { inset: 0 0 11% 17%; mask-image: linear-gradient(125deg, transparent 20%, #000 88%); opacity: .64; }
  .hero-visual img { object-position: 74% 39%; }
  .button-white { min-height: 39px; padding: 7px 14px; }
  .catalog { margin-top: 28px; }
  .catalog-heading { display: grid; gap: 11px; }
  .catalog-heading h2 { font-size: 1.5rem; }
  .search-control { min-width: 0; width: 100%; }
  .catalog-toolbar { display: block; margin-top: 12px; padding-bottom: 9px; }
  .filters { gap: 5px; }
  .filters button { min-height: 36px; padding: 6px 9px; }
  .result-count { display: block; margin-top: 8px; padding: 0; }
  .breadcrumbs { margin-bottom: 16px; }
  .page-panel { padding: 17px; }
}

@media (max-width: 430px) {
  .plugin-grid { grid-template-columns: 1fr; gap: 10px; }
  .plugin-card { padding: 15px 15px 13px; }
  .card-summary { min-height: 0; }
  .card-footer { padding-top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
