/* ============================================================
   SoeayCMS 应用插件（列表 + 详情）
   公共正文样式 .prose 与分页样式见 base.css
   ============================================================ */

.store-hero-stats {
    display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap;
}
.store-hero-stats .st { color: rgba(255,255,255,.82); }
.store-hero-stats .st b {
    display: block; font-family: var(--font-display);
    font-size: 24px; color: #fff; line-height: 1.2;
}
.store-hero-stats .st span { font-size: var(--fs-sm); color: rgba(255,255,255,.55); }

/* ---------- 应用网格 ---------- */
.store-section { padding: 64px 0 40px; }
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.app-card {
    display: flex; flex-direction: column;
    padding: 28px 26px 22px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-200);
}
.app-icon {
    width: 60px; height: 60px; border-radius: 15px;
    background: var(--grad-brand);
    display: flex; align-items: center; justify-content: center;
    color: #fff; margin-bottom: 0;
    box-shadow: 0 10px 20px -8px rgba(12,112,189,.5);
    overflow: hidden; flex: none;
}
.app-icon .icon { width: 30px; height: 30px; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
/* 卡片头部：图标与标签、标题同行 */
.app-card-head {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 14px;
}
.app-card-info { flex: 1; min-width: 0; padding-top: 2px; }
.app-card .app-tags { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.app-card h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 700; color: var(--ink-900);
    line-height: 1.4; margin-bottom: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-desc {
    font-size: var(--fs-sm); color: var(--ink-500);
    line-height: 1.75; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--line);
}
.app-meta { font-size: var(--fs-xs); color: var(--ink-400); display: flex; align-items: center; gap: 6px; }
.app-more {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: var(--fs-sm); font-weight: 600; color: var(--brand-600);
}
.app-more .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.app-card:hover .app-more .icon { transform: translateX(3px); }

/* ---------- 空状态 ---------- */
.store-empty {
    text-align: center; padding: 88px 24px;
}
.store-empty .e-icon {
    width: 72px; height: 72px; margin: 0 auto 20px;
    border-radius: 18px; background: var(--brand-50);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-500);
}
.store-empty h3 { font-size: 18px; color: var(--ink-800); margin-bottom: 8px; }
.store-empty p { color: var(--ink-500); font-size: var(--fs-sm); }

/* ---------- 提示带 ---------- */
.store-note-band { padding: 24px 0 72px; }
.store-note {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px; border-radius: var(--r-md);
    background: var(--brand-50); border: 1px solid var(--brand-100);
    color: var(--ink-700); font-size: var(--fs-sm); line-height: 1.7;
}
.store-note .icon { color: var(--brand-600); flex: none; }
.store-note b { color: var(--brand-800); }

/* ============================================================
   应用详情
   ============================================================ */
.detail-section { padding: 56px 0 72px; }
.detail-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px; align-items: start;
}
.detail-body { padding: 44px 48px; }
.detail-head { padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.detail-title-row { display: flex; align-items: flex-start; gap: 18px; }
.detail-title-row .app-icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 0; }
.detail-title-row .app-icon .icon { width: 32px; height: 32px; }
.detail-title h1 {
    font-family: var(--font-display);
    font-size: 26px; font-weight: 700; color: var(--ink-900);
    line-height: 1.35; margin-bottom: 8px;
}
.detail-title .sub { color: var(--ink-500); font-size: var(--fs-base); }
.detail-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 上一篇 / 下一篇 */
.detail-pager {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line);
}
.pager-cell {
    display: flex; flex-direction: column; gap: 5px;
    padding: 14px 18px; border: 1px solid var(--line);
    border-radius: var(--r-md); background: #fff;
    font-size: var(--fs-sm);
}
.pager-cell.next { text-align: right; }
.pager-cell .pk { color: var(--ink-400); font-size: var(--fs-xs); }
.pager-cell .pt { color: var(--ink-800); font-weight: 600; }
.pager-cell a:hover .pt { color: var(--brand-700); }

/* 侧栏 */
.detail-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { padding: 24px; }
.side-card h4 {
    font-size: 15px; color: var(--ink-900); font-weight: 700;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.side-meta li {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: var(--fs-sm); padding: 9px 0; color: var(--ink-500);
}
.side-meta li b { color: var(--ink-800); font-weight: 500; text-align: right; }
.side-cta .btn { width: 100%; margin-bottom: 10px; }
.side-cta .tip { font-size: var(--fs-xs); color: var(--ink-400); text-align: center; line-height: 1.7; }
.side-contact { font-size: var(--fs-sm); }
.side-contact li { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--ink-600); }
.side-contact .icon { width: 17px; height: 17px; color: var(--brand-600); flex: none; }
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: var(--fs-sm); font-weight: 600; color: var(--ink-600);
}
.back-link .icon { width: 15px; height: 15px; }
.back-link:hover { color: var(--brand-700); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-side { position: static; }
    .detail-body { padding: 32px 24px; }
}
@media (max-width: 640px) {
    .app-grid { grid-template-columns: 1fr; }
    .detail-pager { grid-template-columns: 1fr; }
    .pager-cell.next { text-align: left; }
}
