/* ==========================================================================
   Kivo 官网 · 插件目录页
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.store-main { padding-top: 96px; }

.store-topbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.store-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-topbar h1 { font-family: var(--display); font-size: clamp(32px, 4.2vw, 46px); font-weight: 800; line-height: 1.1; }
.store-pill { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(227, 173, 83, 0.28); background: rgba(227, 173, 83, 0.08); color: #ecd3a4; font-size: 12px; }
.store-topbar p { margin-top: 10px; max-width: 660px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.store-topbar-actions { display: flex; gap: 10px; }

.store-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; }
.store-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.store-tabs button { height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; transition: background-color var(--dur), color var(--dur), border-color var(--dur); }
.store-tabs button:hover { color: var(--fg); border-color: var(--line-2); }
.store-tabs button[aria-selected="true"] { border-color: rgba(227, 173, 83, 0.45); background: rgba(227, 173, 83, 0.14); color: var(--gold-hi); font-weight: 600; }

.store-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store-seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.store-seg button { height: 28px; padding: 0 12px; border-radius: 999px; color: var(--muted); font-size: 12.5px; transition: background-color var(--dur), color var(--dur); }
.store-seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--fg); font-weight: 600; }

.store-search { position: relative; display: flex; align-items: center; width: 250px; }
.store-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }
.store-search input { width: 100%; height: 34px; padding: 0 34px 0 34px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.035); font-size: 13.5px; outline: none; transition: border-color var(--dur), background-color var(--dur); }
.store-search input:focus { border-color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.store-search kbd { position: absolute; right: 8px; min-width: 20px; height: 20px; font-size: 11px; color: var(--muted-2); }

.store-directory { margin-top: 38px; }
.store-row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.store-row-left { display: flex; align-items: baseline; gap: 12px; }
.store-row-head h2 { font-family: var(--display); font-size: 26px; font-weight: 800; }
.store-count { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 12px; }
.store-sub { color: var(--muted-2); font-size: 13.5px; }
.store-inline-link { color: var(--gold); font-size: 13.5px; text-decoration: none; }
.store-inline-link:hover { color: var(--gold-hi); }

.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.store-item { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, #161719, #111214); transition: border-color var(--dur), transform var(--dur) var(--ease); }
.store-item:hover { border-color: rgba(227, 173, 83, 0.35); transform: translateY(-2px); }
.store-item-head { display: flex; align-items: center; gap: 14px; }
.store-item-meta { min-width: 0; flex: 1; }
.store-item-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.store-item-title h3 { font-size: 19px; font-weight: 700; }
.store-item-sub { margin-top: 3px; color: var(--muted-2); font-size: 12.5px; font-family: var(--mono); }
.store-item-desc { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.7; flex: 1; }
.store-item-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.store-item-links code { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); color: #d6c8aa; }
.store-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.store-item-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.store-detail-btn { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg); font-size: 12.5px; font-weight: 600; transition: background-color var(--dur), border-color var(--dur), color var(--dur); }
.store-detail-btn:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(227, 173, 83, 0.08); }

.store-empty { padding: 56px 24px; border: 1px dashed var(--line-2); border-radius: 22px; text-align: center; }
.store-empty h3 { font-size: 18px; }
.store-empty p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.store-empty-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

.store-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 32px 34px; background: radial-gradient(80% 120% at 0% 0%, rgba(227, 173, 83, 0.1), transparent 60%), linear-gradient(180deg, #161719, #111214); }
.store-cta h2 { margin-top: 8px; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.store-cta p:not(.kicker) { margin-top: 10px; max-width: 620px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.store-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.store-install { margin-top: 56px; }
.install-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.install-steps li { padding: 24px; }
.is-num { display: inline-block; font-family: var(--mono); color: var(--gold); font-size: 13px; font-weight: 700; }
.install-steps h3 { margin-top: 10px; font-size: 17px; }
.install-steps p { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---------- Dialogs ---------- */
.detail-body, .submit-body { padding: 32px; overflow-y: auto; max-height: calc(100vh - 52px); }
.detail-head { display: flex; align-items: center; gap: 16px; padding-right: 36px; }
.detail-head h2 { font-family: var(--display); font-size: 28px; font-weight: 800; }
.detail-head .detail-sub { margin-top: 4px; color: var(--muted-2); font-size: 13px; font-family: var(--mono); }
.detail-desc { margin-top: 18px; color: #d8d3c8; font-size: 14.5px; line-height: 1.8; }
.detail-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: 14px; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 10px; }
.detail-list { display: grid; gap: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.detail-list li::before { content: "•"; margin-right: 8px; color: var(--gold); }
.detail-limits li::before { color: var(--muted-2); }
.detail-changelog { display: grid; gap: 8px; font-size: 13.5px; }
.detail-changelog li { display: flex; gap: 12px; color: var(--muted); }
.detail-changelog b { font-family: var(--mono); color: var(--fg); min-width: 52px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

.submit-body h2 { margin-top: 8px; font-family: var(--display); font-size: 28px; font-weight: 800; }
.submit-lead { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.submit-flow { display: grid; gap: 18px; margin-top: 22px; }
.submit-flow strong { display: block; font-size: 14.5px; }
.submit-flow p { margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.submit-flow a { color: var(--gold); }
.code-box { position: relative; margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: #0a0a0b; border: 1px solid var(--line); }
.code-box pre { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: #ece7dc; overflow-x: auto; }
.code-box .copy-btn { position: absolute; top: 10px; right: 10px; }
.submit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

@media (max-width: 820px) {
  .store-grid, .install-steps { grid-template-columns: 1fr; }
  .store-search { width: 100%; }
  .store-right { width: 100%; }
  .detail-body, .submit-body { padding: 24px 20px; }
}
