/* Public Store（免登录门面）—— 复用 apps.css 卡片栅格，仅补充匿名顶栏与落地页布局
   设计：docs/design/public-store-share-and-dev-analytics.md §5.5 */

.store-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-color, rgba(128, 128, 128, 0.2));
    position: sticky;
    top: 0;
    background: var(--bg-primary, #fff);
    z-index: 10;
}
.store-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: inherit;
    text-decoration: none;
}
.store-topbar-brand img { width: 28px; height: 28px; }
.store-topbar-auth { display: inline-flex; align-items: center; gap: 10px; }
.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color, rgba(128, 128, 128, 0.3));
    background: transparent;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.store-btn.primary {
    background: var(--accent-color, #6366f1);
    border-color: var(--accent-color, #6366f1);
    color: #fff;
}
.store-btn[disabled] { opacity: 0.6; cursor: default; }

/* 卡片改用 <a> 导航（匿名面无 JS 也可点）：重置链接默认样式，
   避免 apps.css 的 .app-card（面向 <article>）没覆盖到的下划线/链接色泄漏。 */
a.app-card,
a.app-card:hover,
a.app-card:visited {
    text-decoration: none;
    color: inherit;
    display: block;
}
a.app-card * { text-decoration: none; }

.store-search {
    width: min(480px, 100%);
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color, rgba(128, 128, 128, 0.3));
    background: var(--bg-primary, #fff);
    color: inherit;
    font-size: 14px;
}

/* ── 落地页 ── */
.store-landing {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}
.store-landing-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.store-landing-logo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    flex: none;
    background: var(--bg-secondary, rgba(128, 128, 128, 0.08));
}
.store-landing-title { margin: 0 0 6px; font-size: 26px; }
.store-landing-tagline { margin: 0 0 10px; color: var(--text-secondary, #666); }
.store-landing-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary, #666);
}
.store-landing-actions {
    margin-left: auto;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.store-screenshots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
}
.store-screenshots img {
    height: 220px;
    border-radius: 10px;
    border: 1px solid var(--border-color, rgba(128, 128, 128, 0.2));
    cursor: zoom-in;
}

/* 截图 lightbox（点缩略图看大图） */
.store-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.82);
    cursor: zoom-out;
    padding: 32px;
}
.store-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.store-landing-desc { line-height: 1.7; }
/* markdown 不可用时的纯文本回退态才保留换行 */
.store-landing-desc.plain { white-space: pre-wrap; }
.store-landing-desc h1,
.store-landing-desc h2,
.store-landing-desc h3 { font-size: 16px; margin: 18px 0 8px; }
.store-landing-desc p { margin: 0 0 12px; }
.store-landing-desc ul,
.store-landing-desc ol { margin: 0 0 12px; padding-left: 22px; }
.store-landing-desc li { margin: 4px 0; }
.store-landing-desc code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--bg-secondary, rgba(128, 128, 128, 0.12));
}
.store-landing-desc pre {
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    background: var(--bg-secondary, rgba(128, 128, 128, 0.08));
}
.store-landing-desc blockquote {
    margin: 0 0 12px;
    padding: 4px 14px;
    border-left: 3px solid var(--border-color, rgba(128, 128, 128, 0.3));
    color: var(--text-secondary, #666);
}
.store-section-title { font-size: 18px; margin: 32px 0 12px; }
.store-review {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color, rgba(128, 128, 128, 0.15));
}
.store-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}
.store-review-avatar { width: 24px; height: 24px; border-radius: 50%; }
.store-review-rating { color: #f5a623; }
.store-review-body { font-size: 14px; line-height: 1.6; }
.store-empty { color: var(--text-secondary, #666); padding: 24px 0; }

@media (max-width: 640px) {
    .store-landing-header { flex-wrap: wrap; }
    .store-landing-actions { margin-left: 0; width: 100%; }
}
