/* ==========================================================================
   Halo 应用市场 · plugin-store
   风格参考 halo.run/store：深色顶栏 + 白色导航 + 渐变光晕 Hero + 圆角卡片网格
   响应式断点：>=1200 大屏 / 768-1199 平板 / <768 手机
   ========================================================================== */

.store-body {
  --store-accent: #111827;
  --store-ink: #0b0d10;
  --store-text: #101828;
  --store-text-2: #475467;
  --store-text-3: #667085;
  --store-line: #e6e8eb;
  --store-line-strong: #d0d5dd;
  --store-bg: #ffffff;
  --store-bg-soft: #f7f8fa;
  --store-bg-card: #ffffff;
  --store-radius: 12px;
  --store-radius-lg: 20px;
  --store-radius-pill: 999px;
  --store-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --store-shadow: 0 4px 16px rgba(16, 24, 40, .06);
  --store-shadow-lg: 0 18px 48px rgba(16, 24, 40, .12);
  --store-max: 1240px;
  --store-gap: 20px;
  --store-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.store-body.radius-soft { --store-radius: 12px; --store-radius-lg: 20px; }
.store-body.radius-round { --store-radius: 20px; --store-radius-lg: 28px; }
.store-body.radius-sharp { --store-radius: 4px; --store-radius-lg: 6px; }

/* ---------------------------------------------------------------- 基础重置 */
.store-body {
  margin: 0;
  font-family: var(--store-font);
  color: var(--store-text);
  background: var(--store-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

.store-body *,
.store-body *::before,
.store-body *::after { box-sizing: border-box; }

.store-body a { color: inherit; text-decoration: none; }
.store-body img { max-width: 100%; display: block; }
.store-body button { font-family: inherit; cursor: pointer; }
.store-body h1, .store-body h2, .store-body h3, .store-body h4 {
  margin: 0; font-weight: 700; letter-spacing: -0.01em; color: var(--store-text);
}
.store-body p { margin: 0; }
.store-body ul { margin: 0; padding: 0; list-style: none; }

.store-wrap {
  width: 100%;
  max-width: var(--store-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- 顶部公告条 */
.store-topbar {
  background: var(--store-ink);
  color: #e6e8eb;
  font-size: 13px;
}
.store-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 40px;
  gap: 16px;
  min-width: 0;
}
.store-topbar-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-topbar-text { opacity: .82; letter-spacing: .01em; }
.store-topbar-links { display: flex; gap: 18px; margin-left: auto; }
.store-topbar-links a { opacity: .82; transition: opacity .18s; }
.store-topbar-links a:hover { opacity: 1; }

/* ---------------------------------------------------------------- 主导航 */
.store-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--store-line);
}
.store-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
  min-width: 0;
  flex-wrap: nowrap;
}
.store-nav { overflow: visible; }
.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.store-brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--store-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.store-brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  background: transparent;
  flex: 0 0 auto;
}
.store-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}
.store-body .store-nav-links a {
  padding: 8px 14px;
  border-radius: var(--store-radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--store-text-2);
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.store-body .store-nav-links a:hover { background: var(--store-bg-soft); color: var(--store-text); }
.store-body .store-nav-links a.is-active {
  background: var(--store-ink);
  color: #fff;
  font-weight: 600;
}
.store-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.store-nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius-pill);
  background: var(--store-bg-soft);
  transition: border-color .18s, background .18s;
}
.store-nav-search:focus-within {
  border-color: var(--store-line-strong);
  background: #fff;
}
.store-nav-search input {
  width: 132px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--store-text);
}
.store-nav-search input::placeholder { color: var(--store-text-3); }
.store-nav-search button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--store-text-2);
}
.store-nav-search button:hover { background: #fff; color: var(--store-text); }

.store-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 38px;
  border: 1px solid var(--store-line);
  border-radius: 10px;
  background: #fff;
}
.store-nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 auto;
  width: 16px;
  border-radius: 2px;
  background: var(--store-text);
}

/* ---------------------------------------------------------------- 按钮 */
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--store-radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .15s, background .18s, border-color .18s, color .18s;
}
.store-btn:active { transform: translateY(1px); }
.store-body a.store-btn-dark,
.store-body button.store-btn-dark,
.store-btn-dark { background: var(--store-ink); color: #fff; }
.store-body a.store-btn-dark:hover,
.store-btn-dark:hover { background: #1f2937; color: #fff; }
.store-body a.store-btn-light,
.store-body button.store-btn-light,
.store-btn-light {
  background: #fff;
  color: var(--store-text);
  border-color: var(--store-line-strong);
}
.store-body a.store-btn-light:hover,
.store-btn-light:hover { border-color: var(--store-text-3); color: var(--store-text); }
.store-btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.store-btn-lg { height: 48px; padding: 0 28px; font-size: 15.5px; }
.store-btn[disabled], .store-btn.is-disabled {
  opacity: .55;
  pointer-events: none;
}

/* ---------------------------------------------------------------- Hero */
.store-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--store-line);
  background: var(--store-bg);
}
.store-hero::before,
.store-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.store-hero::before {
  width: 520px; height: 420px;
  left: 50%; top: -180px;
  transform: translateX(-68%);
  background: radial-gradient(circle, rgba(99, 102, 241, .28), transparent 68%);
}
.store-hero::after {
  width: 460px; height: 380px;
  right: 6%; top: -120px;
  background: radial-gradient(circle, rgba(236, 72, 153, .18), transparent 68%);
}
.store-body:not(.dark-enabled) .store-hero::before { opacity: .9; }
.store-hero.no-glow::before, .store-hero.no-glow::after { display: none; }
.store-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.store-hero-inner > h1,
.store-hero-inner > .store-hero-sub {
  float: none;
  position: relative;
  left: auto;
  right: auto;
  text-align: center;
}

.store-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--store-text-3);
  margin-bottom: 22px;
}
.store-crumb a:hover { color: var(--store-text); }
.store-crumb-sep { opacity: .5; }

.store-hero h1 {
  font-size: 46px;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.store-hero-sub {
  width: 100%;
  max-width: min(620px, 100%);
  margin: 0 auto 34px;
  padding: 0 8px;
  font-size: 16.5px;
  color: var(--store-text-2);
  line-height: 1.7;
  text-align: center;
  text-wrap: pretty;
  overflow-wrap: break-word;
  word-break: break-word;
}
.store-hero h1 { overflow-wrap: break-word; }
.store-hero-inner { min-width: 0; }

.store-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: min(620px, 100%);
  margin: 0 auto;
  padding: 8px 8px 8px 22px;
  background: #fff;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius-pill);
  box-shadow: var(--store-shadow-lg);
}
.store-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--store-text);
}
.store-search input::placeholder { color: var(--store-text-3); }
.store-search .store-btn { flex: 0 0 auto; }

.store-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 10px;
  margin-top: 26px;
}
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius-pill);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--store-text-2);
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.store-pill:hover {
  border-color: var(--store-line-strong);
  color: var(--store-text);
  box-shadow: var(--store-shadow-sm);
}
.store-pill.is-active {
  background: var(--store-ink);
  border-color: var(--store-ink);
  color: #fff;
  font-weight: 600;
}
.store-pill-count {
  font-size: 12px;
  opacity: .62;
  font-variant-numeric: tabular-nums;
}

/* 页面级小 Hero（列表 / 详情 / 投稿） */
.store-hero-compact { padding: 44px 0 36px; }
.store-hero-compact h1 { font-size: 34px; }
.store-hero-compact .store-hero-sub { font-size: 15.5px; margin-bottom: 0; }

/* ---------------------------------------------------------------- 区块 */
.store-section { padding: 44px 0; }
.store-section + .store-section { border-top: 1px solid var(--store-line); }
.store-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.store-section-head h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.store-section-head p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--store-text-3);
}
.store-section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--store-text-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.store-section-more:hover { color: var(--store-text); }

/* ---------------------------------------------------------------- 卡片 */
.store-grid {
  display: grid;
  /* 精确列数：设 4 列就排 4 列，设 5 列就排 5 列，卡片等分容器宽度。
     除手机（<768px 固定单列）外，任何断点都不会覆盖用户设定的列数，
     卡片宽度由 minmax(0, 1fr) 自动收窄，不再靠 auto-fill 猜测列数。 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--store-gap);
}
.store-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.store-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.store-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.store-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.store-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.store-grid.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.store-grid.cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.store-grid.cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--store-bg-card);
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.store-card:hover {
  transform: translateY(-3px);
  border-color: var(--store-line-strong);
  box-shadow: var(--store-shadow);
}
.store-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.store-card-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--store-line);
  background: var(--store-bg-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 20px;
  color: var(--store-text-2);
}
.store-card-icon img { width: 100%; height: 100%; object-fit: cover; }

.store-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--store-radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.store-tag-plugin { background: #eef2ff; color: #4338ca; }
.store-tag-theme { background: #ecfdf5; color: #047857; }
.store-tag-featured { background: #fff7ed; color: #c2410c; }
.store-tag-pending { background: #fffbeb; color: #b45309; }
.store-tag-approved { background: #ecfdf5; color: #047857; }
.store-tag-rejected { background: #fef2f2; color: #b91c1c; }
.store-tag-offline { background: #f3f4f6; color: #4b5563; }

.store-card h3 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-card-desc {
  font-size: 13.5px;
  color: var(--store-text-3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 43px;
}
.store-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--store-line);
  font-size: 12.5px;
  color: var(--store-text-3);
}
.store-card-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-card-ver {
  font-variant-numeric: tabular-nums;
  color: var(--store-text-3);
  white-space: nowrap;
}
.store-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.store-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--store-radius-pill);
  background: var(--store-bg-soft);
  border: 1px solid var(--store-line);
  font-size: 11.5px;
  color: var(--store-text-2);
}

/* ---------------------------------------------------------------- 排行榜 */
.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.store-side {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.store-panel {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
}
.store-panel h3 {
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 侧栏面板标题图标（1.0.28：下载排行榜 / 本周热门 可自定义 iconfont SVG） */
.store-panel h3 .store-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--store-accent);
  line-height: 1;
}
.store-panel h3 .store-panel-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}
.store-panel h3 .store-panel-icon-default {
  font-size: 16px;
  line-height: 1;
}

.store-rank-list { display: flex; flex-direction: column; gap: 2px; }
.store-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background .18s;
}
.store-rank-item:hover { background: var(--store-bg-soft); }
.store-rank-no {
  width: 22px;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--store-text-3);
  font-variant-numeric: tabular-nums;
}
.store-rank-item:nth-child(1) .store-rank-no { color: #d97706; }
.store-rank-item:nth-child(2) .store-rank-no { color: #6b7280; }
.store-rank-item:nth-child(3) .store-rank-no { color: #b45309; }
.store-rank-body { min-width: 0; flex: 1 1 auto; }
.store-rank-name {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-rank-meta { font-size: 12px; color: var(--store-text-3); }

/* ---------------------------------------------------------------- 空状态 */
.store-empty {
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--store-line-strong);
  border-radius: var(--store-radius-lg);
  background: var(--store-bg-soft);
}
.store-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--store-line);
  font-size: 24px;
}
.store-empty h3 { font-size: 17px; margin-bottom: 8px; }
.store-empty p { font-size: 14px; color: var(--store-text-3); margin-bottom: 20px; }

/* ---------------------------------------------------------------- 分页 */
.store-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.store-pager a, .store-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--store-line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--store-text-2);
  background: #fff;
}
.store-pager a:hover { border-color: var(--store-line-strong); color: var(--store-text); }
.store-pager .is-current {
  background: var(--store-ink);
  border-color: var(--store-ink);
  color: #fff;
  font-weight: 600;
}
.store-pager .is-disabled {
  opacity: .45;
  pointer-events: none;
}

/* ---------------------------------------------------------------- 详情页 */
.store-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
  padding: 40px 0 56px;
  /* 网格子项默认 min-width:auto，长内容（图片 / 长链接）会把栅格顶宽 */
  min-width: 0;
}
.store-detail > * { min-width: 0; }
.store-main-col { min-width: 0; }
.store-side { min-width: 0; }
.store-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--store-line);
  margin-bottom: 28px;
}
.store-detail-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 18px;
  border: 1px solid var(--store-line);
  background: var(--store-bg-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 30px;
  font-weight: 800;
  color: var(--store-text-2);
}
.store-detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.store-detail-title h1 {
  font-size: 30px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.store-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13.5px;
  color: var(--store-text-3);
}
/* 一句话简介：与详细介绍一致，收进带描边的信息框内 */
.store-detail-summary {
  border: 1px solid var(--store-line);
  border-radius: 14px;
  background: var(--store-bg-card);
  padding: 16px 20px;
  margin: 0 0 20px;
}
.store-detail-summary-text {
  margin: 0;
  font-size: 16px;
  color: var(--store-text-2);
  line-height: 1.75;
  word-break: break-word;
}
/* 详细介绍内容框：内容统一包在框内，避免长文把页面撑乱 */
.store-detail-content {
  border: 1px solid var(--store-line);
  border-radius: 14px;
  background: var(--store-bg-card);
  padding: 18px 20px;
  max-height: 520px;
  overflow: auto;
  overscroll-behavior: contain;
}
.store-detail-content > :first-child { margin-top: 0; }
.store-detail-content > :last-child { margin-bottom: 0; }

/* 正文 + 预览图合并框：同一个卡片框内先排正文，再排预览图，不再分成两个框。
   预览图区在框内完整展开（不裁切、不产生内部滚动），窄屏也不会撑出框外。 */
.store-detail-merged {
  max-height: none;
  overflow: visible;
  display: block;
  /* 关键：允许网格/图片在窄容器里收缩，避免 min-content 把框顶宽 */
  min-width: 0;
}
.store-detail-merged > * { min-width: 0; max-width: 100%; }
.store-detail-merged .store-prose { margin-bottom: 18px; }
.store-detail-merged .store-prose:last-child { margin-bottom: 0; }
.store-detail-merged .store-detail-empty {
  color: var(--store-text-3);
  margin-bottom: 18px;
}
.store-detail-merged .store-shots {
  margin: 0;
  padding-top: 18px;
  border-top: 1px dashed var(--store-line);
}
.store-detail-merged .store-shots:first-child {
  padding-top: 0;
  border-top: 0;
}
.store-detail-merged .store-prose img {
  max-width: 100%;
  height: auto;
  display: block;
}
.store-prose {
  font-size: 15px;
  line-height: 1.85;
  color: var(--store-text-2);
  word-break: break-word;
}
.store-prose p { margin: 0 0 0.9em; }
.store-prose h2, .store-prose h3, .store-prose h4,
.store-prose h5, .store-prose h6 {
  margin: 1.1em 0 0.55em;
  line-height: 1.4;
  color: var(--store-text);
}
.store-prose h2 { font-size: 19px; }
.store-prose h3 { font-size: 17px; }
.store-prose ul, .store-prose ol { margin: 0 0 0.9em; padding-left: 1.4em; }
.store-prose li { margin: 0.25em 0; }
.store-prose blockquote {
  margin: 0 0 0.9em;
  padding: 8px 14px;
  border-left: 3px solid var(--store-line-strong);
  background: var(--store-bg-soft);
  border-radius: 0 8px 8px 0;
  color: var(--store-text-2);
}
.store-prose pre {
  margin: 0 0 0.9em;
  padding: 12px 14px;
  overflow: auto;
  background: var(--store-bg-soft);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.store-prose code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--store-bg-soft);
  font-size: 0.94em;
}
.store-prose pre code { padding: 0; background: none; }
.store-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.store-prose a { color: var(--store-accent); text-decoration: underline; }

/* 详情页操作按钮：自适应宽度，避免在窄屏被拉成整行 */
.store-detail-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
}
/* 每个按钮独占一列：按钮在上，安装包文件名徽标在下；
   徽标宽度与按钮一致并居中，从而与该按钮严格左右对齐。 */
.store-action-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.store-detail-actions .store-btn {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-action-pkg {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin-top: 2px;
}
/* 安装包文件名徽标：宽度由文件名决定（fit-content），不再固定撑满整列。
   固定宽度会在窄屏把短语撑成大色块，文字换行后更难读。 */
.store-detail-packagename {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  flex: 0 1 auto;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: var(--store-pkg-radius, 999px);
  background: var(--store-pkg-bg, #e8f7ee);
  color: var(--store-pkg-fg, #157a3e);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  /* 长文件名不硬折行：超出时省略，短文件名则完全贴合文字宽度 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}
/* 徽标前的类型图标（插件 / 主题），跟随徽标文字颜色 */
.store-detail-packagename .store-pkg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  line-height: 1;
}
.store-detail-packagename .store-pkg-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}
.store-detail-packagename .store-pkg-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  min-width: 0;
}
/* 预览图外框：与详细介绍框同族，避免截图散落 */
.store-shots-box {
  margin: 16px 0 20px;
  padding: 14px;
  max-height: none;
  overflow: visible;
}
/* 预览图缩略图：任何宽度都不允许超出所在框（旧版只设了 width:100%，
   遇到窄容器 / 高 DPI 屏时的固有宽度会让图片顶破边框） */
.store-shots > a {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--store-radius);
  line-height: 0;
}
.store-shots img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  border-radius: var(--store-radius);
  border: 1px solid var(--store-line);
}

/* 详情页内的「相关应用」区块：卡片按容器宽度自适应列数，
   不再沿用首页固定 4 列，避免在左栏（更窄）和手机上被压扁 / 溢出。 */
.store-related { margin-top: 44px; min-width: 0; }
.store-grid-related {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  min-width: 0;
}
.store-grid-related .store-card { min-width: 0; }
.store-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}
.store-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--store-line);
}
.store-info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.store-info-label { color: var(--store-text-3); flex: 0 0 auto; font-size: 13px; }
.store-info-value {
  text-align: right;
  font-weight: 600;
  color: var(--store-text);
  word-break: break-all;
}
.store-info-value a { color: var(--store-text); border-bottom: 1px solid var(--store-line-strong); }
.store-info-value a:hover { border-color: var(--store-text); }

/* ---------------------------------------------------------------- 表单 */
.store-form-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0 64px;
}
.store-form {
  display: grid;
  gap: 22px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius-lg);
  box-shadow: var(--store-shadow);
}
.store-field { display: grid; gap: 8px; }
.store-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
/* 双列时下拉框高度固定，避免被相邻字段的提示文字撑高 */
.store-field-row .store-select {
  height: 44px;
  box-sizing: border-box;
}
.store-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--store-text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.store-label .req { color: #dc2626; }
.store-hint { font-size: 12.5px; color: var(--store-text-3); line-height: 1.55; }
.store-input, .store-textarea, .store-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--store-line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--store-text);
  transition: border-color .18s, box-shadow .18s;
}
.store-input:focus, .store-textarea:focus, .store-select:focus {
  outline: 0;
  border-color: var(--store-ink);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .08);
}
.store-textarea { resize: vertical; min-height: 96px; line-height: 1.7; }

/* ------------------------------------------------ 简易文章编辑器 */
.store-editor {
  border: 1px solid var(--store-line-strong);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.store-editor:focus-within {
  border-color: var(--store-accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .08);
}
.store-editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--store-line);
  background: var(--store-bg-soft);
}
.store-editor-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--store-text-2);
  font-size: 13px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.store-editor-bar button:hover {
  background: rgba(17, 24, 39, .07);
  color: var(--store-text);
}
.store-editor-bar button:active { background: rgba(17, 24, 39, .12); }
.store-editor-bar .sep {
  width: 1px;
  height: 18px;
  margin: 0 5px;
  background: var(--store-line-strong);
}
.store-editor-input {
  min-height: 168px;
  max-height: 420px;
  padding: 12px 14px;
  overflow: auto;
  outline: none;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--store-text);
  word-break: break-word;
}
.store-editor-input:empty::before {
  content: attr(data-placeholder);
  color: var(--store-text-3);
  pointer-events: none;
}
.store-editor-input p { margin: 0 0 0.8em; }
.store-editor-input h2, .store-editor-input h3 { margin: 0.9em 0 0.5em; line-height: 1.4; }
.store-editor-input h2 { font-size: 18px; }
.store-editor-input h3 { font-size: 16px; }
.store-editor-input ul, .store-editor-input ol { margin: 0 0 0.8em; padding-left: 1.4em; }
.store-editor-input blockquote {
  margin: 0 0 0.8em;
  padding: 6px 12px;
  border-left: 3px solid var(--store-line-strong);
  background: var(--store-bg-soft);
  color: var(--store-text-2);
}
.store-editor-input pre {
  margin: 0 0 0.8em;
  padding: 10px 12px;
  background: var(--store-bg-soft);
  border-radius: 8px;
  font-size: 13px;
}
.store-editor-input a { color: var(--store-accent); text-decoration: underline; }
@media (max-width: 767px) {
  .store-editor-bar button { min-width: 28px; height: 28px; font-size: 12.5px; }
  .store-editor-input { min-height: 150px; max-height: 320px; font-size: 14px; }
}
.store-file {
  padding: 18px;
  border: 1px dashed var(--store-line-strong);
  border-radius: 12px;
  background: var(--store-bg-soft);
  font-size: 14px;
  text-align: center;
  color: var(--store-text-2);
}
.store-file input[type="file"] { width: 100%; cursor: pointer; }
.store-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--store-line);
  margin-top: 4px;
}
/* 成对按钮（我的投稿 / 提交审核、我的投稿 / 更新并提交审核）等宽等高：
   普通按钮宽度随文字变化会出现一胖一瘦，这里用 3 等分弹性基准 + 统一高度对齐。 */
.store-form-actions > .store-btn {
  flex: 0 1 168px;
  min-width: 132px;
  height: 40px;
  padding: 0 18px;
}
.store-form-actions > .store-btn + .store-btn { flex-basis: 200px; }
.store-notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--store-radius);
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 13.5px;
  line-height: 1.7;
  color: #92400e;
  white-space: pre-wrap;
}
.store-alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.store-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.store-alert-ok { background: #ecfdf5; border: 1px solid #bbf7d0; color: #047857; }

/* ---------------------------------------------------------------- 我的投稿 */
.store-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  overflow: hidden;
  font-size: 14px;
}
.store-table th, .store-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--store-line);
  vertical-align: middle;
}
.store-table th {
  background: var(--store-bg-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--store-text-3);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.store-table tbody tr:last-child td { border-bottom: 0; }
.store-table tbody tr:hover { background: #fcfcfd; }

.store-section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.store-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.store-stat {
  padding: 18px 20px;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  background: #fff;
}
.store-stat-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.store-stat-label { font-size: 13px; color: var(--store-text-3); margin-top: 2px; }

/* ---------------------------------------------------------------- 页脚 */
.store-footer {
  margin-top: 20px;
  padding: 52px 0 28px;
  background: var(--store-ink);
  color: #cfd3d8;
}
.store-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.store-footer .store-brand { color: #fff; }
.store-footer .store-brand-mark { background: #fff; color: var(--store-ink); }
.store-footer-desc {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #9aa1ab;
  max-width: 380px;
}
.store-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.store-footer-col { display: flex; flex-direction: column; gap: 10px; }
.store-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  margin-bottom: 2px;
}
.store-footer-col a {
  font-size: 13.5px;
  color: #9aa1ab;
  transition: color .18s;
}
.store-footer-col a:hover { color: #fff; }
.store-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 6px;
  font-size: 12.5px;
  color: #8b939d;
  flex-wrap: wrap;
}
.store-footer-meta a { color: #cfd3d8; }
.store-footer-meta a:hover { color: #fff; }

/* 大屏 5 列及以上：收窄右侧栏，把宽度让给卡片网格，避免卡片被挤窄 */
@media (min-width: 1200px) {
  .store-layout.layout-wide {
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 24px;
  }
}

/* ==========================================================================
   响应式 · 平板 768 – 1199
   ========================================================================== */
@media (max-width: 1199px) {
  .store-body { --store-max: 100%; --store-gap: 16px; }
  .store-wrap { padding: 0 20px; }
  .store-hero { padding: 60px 0 46px; }
  .store-hero h1 { font-size: 38px; }
  /* 平板：不再覆盖用户设定的列数，卡片按 minmax(0,1fr) 等分容器宽度 */
  .store-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .store-side { position: static; }
  .store-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .store-nav-inner { gap: 14px; }
  .store-nav-links { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .store-nav-links::-webkit-scrollbar { display: none; }
  .store-nav-links a { padding: 8px 11px; font-size: 14px; }
  .store-nav-actions { gap: 8px; }
  .store-nav-search input { width: 92px; }
  .store-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 899px) and (min-width: 768px) {
  .store-nav-search { display: none; }
  .store-brand-text { font-size: 16px; }
  /* 小平板：同样尊重用户设定的列数，交给 minmax(0,1fr) 自动收窄 */
}

/* ==========================================================================
   响应式 · 手机 < 768
   ========================================================================== */
@media (max-width: 767px) {
  .store-wrap { padding: 0 16px; }
  .store-topbar-text { font-size: 11.5px; }
  .store-topbar-links { gap: 12px; font-size: 11.5px; }

  .store-nav-inner { height: 60px; gap: 10px; }
  .store-brand-text { font-size: 15.5px; }
  .store-nav-toggle { display: flex; }
  .store-nav-actions .store-btn-dark { display: none; }
  .store-nav-search { display: none; }

  .store-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--store-line);
    box-shadow: var(--store-shadow);
  }
  .store-body.nav-open .store-nav-links { display: flex; }
  .store-nav-links a { padding: 12px 14px; border-radius: 10px; font-size: 15px; }

  .store-hero { padding: 40px 0 34px; }
  .store-hero h1 { font-size: 28px; line-height: 1.24; }
  .store-hero-sub { font-size: 14.5px; margin-bottom: 24px; padding: 0 4px; }
  .store-hero .store-crumb { margin-bottom: 16px; }
  .store-empty { padding: 44px 18px; }
  .store-empty p { max-width: 100%; }
  .store-search { padding: 6px 6px 6px 16px; }
  .store-search input { height: 40px; font-size: 15px; }
  .store-search .store-btn { height: 38px; padding: 0 18px; font-size: 14px; }
  .store-pills { gap: 8px; margin-top: 20px; }
  .store-pill { height: 32px; padding: 0 14px; font-size: 13px; }

  .store-section { padding: 32px 0; }
  .store-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .store-section-head h2 { font-size: 19px; }

  /* 手机固定单列，卡片占满宽度 */
  .store-grid,
  .store-grid[class*="cols-"] { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .store-card { padding: 16px; gap: 10px; }
  .store-card-icon { width: 42px; height: 42px; border-radius: 11px; font-size: 18px; }

  .store-hero-compact { padding: 30px 0 26px; }
  .store-hero-compact h1 { font-size: 24px; }

  .store-detail { padding: 26px 0 40px; }
  .store-detail-head { flex-direction: column; gap: 14px; }
  .store-detail-icon { width: 60px; height: 60px; border-radius: 15px; font-size: 24px; }
  .store-detail-title h1 { font-size: 23px; }
  .store-detail-summary { padding: 13px 15px; margin-bottom: 16px; border-radius: 12px; }
  .store-detail-summary-text { font-size: 15px; }
  .store-shots-box { margin: 12px 0 16px; padding: 10px; border-radius: 12px; }
  .store-detail-content { padding: 15px 15px; max-height: 440px; }
  /* 合并框在手机上必须是完整展开的：覆盖上面的 440px 高度限制，否则正文+预览图会被裁切 */
  .store-detail-content.store-detail-merged {
    max-height: none;
    overflow: visible;
    padding: 15px 15px;
  }
  .store-detail-merged .store-prose { margin-bottom: 14px; }
  .store-detail-merged .store-shots { padding-top: 14px; }
  .store-detail-actions { max-width: 100%; gap: 8px; }
  .store-detail-actions .store-btn { height: 38px; padding: 0 12px; font-size: 13.5px; }
  .store-detail-packagename { font-size: 12px; }
  .store-shots { grid-template-columns: repeat(1, minmax(0, 1fr)); }

  /* 「相关应用」：手机上单列排布，卡片等宽，不再沿用桌面自适应列数导致错位 */
  .store-related { margin-top: 32px; }
  .store-related .store-section-head { flex-wrap: wrap; gap: 8px; }
  .store-grid-related,
  .store-grid-related[class*="cols-"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .store-grid-related .store-card { min-width: 0; }

  .store-form { padding: 20px; gap: 18px; border-radius: var(--store-radius); }
  .store-field-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .store-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    border-top: 0;
    padding-top: 0;
    margin-top: 8px;
  }
  /* 移动端按钮改为纵向堆叠：容器方向变成 column 后 flex-basis 会作用于高度，
     必须显式清掉桌面的 168px / 200px 基准，否则主按钮会被拉成椭圆大块。 */
  .store-form-actions > .store-btn,
  .store-form-actions > .store-btn + .store-btn,
  .store-form-actions .store-btn,
  .store-form-actions .store-btn + .store-btn {
    width: 100%;
    flex: 0 0 auto;
    flex-basis: auto;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
  }

  .store-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .store-stat { padding: 14px 16px; }

  /* 表格改为卡片式，避免横向滚动 */
  .store-table { border: 0; background: transparent; }
  .store-table thead { display: none; }
  .store-table, .store-table tbody, .store-table tr, .store-table td { display: block; width: 100%; }
  .store-table tr {
    margin-bottom: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius);
  }
  .store-table td {
    padding: 6px 0;
    border: 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
  }
  .store-table td::before {
    content: attr(data-label);
    color: var(--store-text-3);
    font-size: 12.5px;
    flex: 0 0 auto;
  }

  .store-footer { padding: 36px 0 22px; }
  .store-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .store-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .store-pager { gap: 6px; margin-top: 26px; }
  .store-pager a, .store-pager span { min-width: 34px; height: 34px; font-size: 13px; }
}

/* ---------------------------------------------------------------- 暗色模式 */
@media (prefers-color-scheme: dark) {
  .store-body.dark-enabled {
    --store-text: #f2f4f7;
    --store-text-2: #c3c8d0;
    --store-text-3: #98a1ad;
    --store-line: #23262c;
    --store-line-strong: #31353d;
    --store-bg: #0e1013;
    --store-bg-soft: #16191e;
    --store-bg-card: #14171b;
    --store-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --store-shadow: 0 4px 16px rgba(0, 0, 0, .45);
    --store-shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
  }
  .store-body.dark-enabled .store-nav { background: rgba(14, 16, 19, .86); }
  .store-body.dark-enabled .store-nav-search { background: #16191e; }
  .store-body.dark-enabled .store-nav-search:focus-within { background: #1b1f25; }
  .store-body.dark-enabled .store-nav-toggle { background: #16191e; border-color: #31353d; }
  .store-body.dark-enabled .store-nav-toggle span { background: #f2f4f7; }
  .store-body.dark-enabled .store-search { background: #14171b; }
  .store-body.dark-enabled .store-pill { background: #14171b; }
  .store-body.dark-enabled .store-btn-light { background: #14171b; color: #f2f4f7; }
  .store-body.dark-enabled .store-panel,
  .store-body.dark-enabled .store-stat,
  .store-body.dark-enabled .store-table,
  .store-body.dark-enabled .store-form,
  .store-body.dark-enabled .store-table tr { background: #14171b; }
  .store-body.dark-enabled .store-table th { background: #16191e; }
  .store-body.dark-enabled .store-table tbody tr:hover { background: #171b20; }
  .store-body.dark-enabled .store-input,
  .store-body.dark-enabled .store-textarea,
  .store-body.dark-enabled .store-select { background: #16191e; color: #f2f4f7; }
  .store-body.dark-enabled .store-empty { background: #14171b; }
  .store-body.dark-enabled .store-empty-icon { background: #16191e; }
  .store-body.dark-enabled .store-tag-plugin { background: #1e1b4b; color: #a5b4fc; }
  .store-body.dark-enabled .store-tag-theme { background: #052e2b; color: #6ee7b7; }
  .store-body.dark-enabled .store-tag-featured { background: #3b1d0a; color: #fdba74; }
  .store-body.dark-enabled .store-chip { background: #16191e; }
  .store-body.dark-enabled .store-notice { background: #2a1f08; border-color: #4a3512; color: #fcd34d; }
  .store-body.dark-enabled .store-footer { background: #08090b; }
  .store-body.dark-enabled .store-hero::before { opacity: .55; }
  .store-body.dark-enabled .store-hero::after { opacity: .45; }
}


/* ---------------------------------------------------------------- 1.0.9 图标与预览图上传 */
.store-body .store-nav-links a.store-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.store-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.store-nav-icon svg,
.store-btn-svg svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}
.store-btn-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -2px;
}
.store-body .store-btn { display: inline-flex; align-items: center; justify-content: center; }

/* 预览图上传 */
.store-shots-edit {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 10px;
}
.store-shots-edit:empty { display: none; }
.store-shot-item {
  position: relative;
  border: 1px solid var(--store-line);
  border-radius: var(--store-radius);
  overflow: hidden;
  background: var(--store-bg-soft);
}
.store-shot-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
}
.store-shot-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, .72);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-shot-remove:hover { background: rgba(17, 24, 39, .92); }

@media (max-width: 767px) {
  .store-shots-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-nav-icon, .store-btn-svg, .store-nav-icon svg, .store-btn-svg svg {
    width: 15px; height: 15px;
  }
}

/* ---------------------------------------------------------------- 打印 */
@media print {
  .store-topbar, .store-nav, .store-footer, .store-side, .store-pager { display: none; }
  .store-card { break-inside: avoid; }
}

/* ---------------------------------------------------------------- 1.0.12 可配置图标 */
/* Logo 使用 SVG 代码时的容器，尺寸与 .store-brand-logo 保持一致 */
.store-brand-logo-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  flex: 0 0 auto;
  overflow: hidden;
}
.store-brand-logo-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}
/* 快捷入口（搜索框下方 pill）内的图标容器 */
.store-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: inherit;
}
.store-pill-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}
/* 详情页安装包文件名显隐由服务端控制；此处不再覆盖 margin-top，
   避免与上方徽标定义冲突导致与按钮组错位 */
@media (max-width: 1023px) {
  .store-brand-logo-svg { width: 28px; height: 28px; border-radius: 8px; }
}

@media (max-width: 767px) {
  .store-brand-logo-svg { width: 26px; height: 26px; border-radius: 8px; }
  .store-pill-icon,
  .store-pill-icon svg { width: 13px; height: 13px; }
}

/* ==========================================================================
   1.0.13 · 卡片改版（halo.run/store 风格）/ 登录按钮 / 页脚三栏
   ========================================================================== */

/* ---- 卡片：封面区 + 信息区 ---- */
.store-card.store-card-app {
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.store-card-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eef1f6 0%, #f7f8fa 100%);
  border-bottom: 1px solid var(--store-line);
}
.store-card-media.is-wide { aspect-ratio: 16 / 9; }
.store-card-media.is-icon { aspect-ratio: 4 / 3; }
.store-card-media.is-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.store-card-media.is-icon img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
}
.store-card-media-fallback {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--store-line);
  font-size: 26px;
  font-weight: 800;
  color: var(--store-text-2);
}
.store-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--store-radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(16, 24, 40, .1);
}
.store-card-badge.store-tag-plugin { color: #4338ca; }
.store-card-badge.store-tag-theme { color: #047857; }

.store-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1 1 auto;
}
.store-card-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.store-card-title h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-card-title .store-card-ver {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--store-bg-soft);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--store-text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.store-card-time {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--store-text-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.store-card-body .store-card-desc {
  font-size: 13px;
  line-height: 1.6;
  min-height: 41px;
  margin: 0;
}
.store-card-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12.5px;
  color: var(--store-text-3);
  min-width: 0;
}
.store-card-avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--store-bg-soft);
  border: 1px solid var(--store-line);
  font-size: 11px;
  font-weight: 700;
  color: var(--store-text-2);
}
.store-card-avatar.is-anonymous {
  background: var(--store-anon-bg, #eef2f7);
  border-color: transparent;
  color: var(--store-anon-fg, #1e3a8a);
}
.store-card-avatar.is-anonymous + .store-card-author {
  color: var(--store-anon-fg, #1e3a8a);
}
.store-card-author-row .store-card-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-card-author-row .store-tag-featured {
  margin-left: auto;
  flex: 0 0 auto;
  height: 19px;
  font-size: 11px;
}

/* ---- 右上角登录 / 注册按钮（幽灵描边） ---- */
.store-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--store-line-strong);
  border-radius: var(--store-radius-pill);
  background: #fff;
  color: var(--store-text-1);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .18s, background .18s, color .18s;
}
.store-auth-btn:hover {
  border-color: var(--store-text-1);
  background: var(--store-bg-soft);
}
.store-auth-btn.is-logged { max-width: 180px; }
.store-auth-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}
/* 覆盖服务端 iconOf() 强制的 16px，保证登录图标 18px */
.store-auth-icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}
.store-auth-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-auth-link {
  font-size: 13px;
  color: var(--store-text-3);
  padding: 0 2px;
  white-space: nowrap;
}
.store-auth-link:hover { color: var(--store-text-1); }

/* ---- 页脚三栏：容纳 2 个内置列 + 最多 3 个自定义列 ---- */
.store-footer-cols {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 22px 20px;
}

/* ---- 响应式微调 ---- */
@media (max-width: 1199px) {
  .store-card-media.is-icon img,
  .store-card-media-fallback { width: 56px; height: 56px; border-radius: 14px; }
}

@media (max-width: 767px) {
  .store-card.store-card-app { border-radius: 14px; }
  .store-card-media.is-wide { aspect-ratio: 2 / 1; }
  .store-card-media.is-icon { aspect-ratio: 16 / 10; }
  .store-card-body { padding: 12px 14px 14px; gap: 7px; }
  .store-card-title h3 { font-size: 14.5px; }
  .store-card-body .store-card-desc { font-size: 12.5px; min-height: 38px; }
  .store-card-time { font-size: 11px; }
  /* 手机端保持登录按钮可见（发布应用按钮已被隐藏） */
  .store-auth-btn { height: 32px; padding: 0 11px; font-size: 12.5px; }
  .store-auth-btn.is-logged { max-width: 120px; }
  .store-auth-link { display: none; }
  .store-footer-cols { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 20px 16px; }
}

@media print {
  .store-auth-btn,
  .store-auth-link { display: none !important; }
}

/* ============================================================ 1.0.14
   卡片封面显示方式：cover-fixed（统一固定大小）/ cover-auto（自动适配图片）
   与页脚链接图标样式。
   ============================================================ */

/* ---- 固定大小：沿用 series 固定比例 + 裁切填充 ---- */
body.cover-fixed .store-card-media {
  aspect-ratio: 16 / 9;
}
body.cover-fixed .store-card-media.is-icon {
  aspect-ratio: 4 / 3;
}
body.cover-fixed .store-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
body.cover-fixed .store-card-media.is-icon img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* ---- 自动适配：完整显示图片，卡片高度随图变化 ---- */
body.cover-auto .store-card-media {
  aspect-ratio: auto;
  min-height: 96px;
  height: auto;
}
body.cover-auto .store-card-media.is-wide,
body.cover-auto .store-card-media.is-icon {
  aspect-ratio: auto;
}
body.cover-auto .store-card-media img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}
body.cover-auto .store-card-media.is-icon img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 320px;
  border-radius: 0;
  box-shadow: none;
}
/* 自动模式下没有图片时保持最小占位，避免卡片塌陷 */
body.cover-auto .store-card-media-fallback {
  margin: 18px 0;
}

/* ---- 页脚自定义链接图标 ---- */
.store-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.store-footer-link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}
/* 覆盖服务端 iconOf() 强制的 16px 行内尺寸，统一由容器控制 */
.store-footer-link-icon svg {
  width: 16px !important;
  height: 16px !important;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}

@media (max-width: 767px) {
  body.cover-auto .store-card-media img,
  body.cover-auto .store-card-media.is-icon img {
    max-height: 220px;
  }
}

/* ============================================================ 1.0.15
   封面留白修复：去掉「小图标硬塞进大框」和 contain 造成的空白。
   - cover-fixed：所有卡片统一 16:9；大图裁切铺满，小图标用同图模糊底铺满 + 居中卡片式图标
   - cover-auto ：封面高度完全由图片决定（无 min-height / 无 contain / 无 max-height），零留白
   页脚三栏标题图标。
   ============================================================ */

/* ---- 封面模糊背景层（仅小图标卡片渲染） ---- */
.store-card-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.25);
  transform: scale(1.18);
  opacity: .5;
  pointer-events: none;
}
.store-card-media > img,
.store-card-media > .store-card-media-fallback {
  position: relative;
  z-index: 1;
}
.store-card-media > .store-card-badge { z-index: 2; }

/* ============================================================
   方案一：统一固定大小
   ============================================================ */
body.cover-fixed .store-card-media,
body.cover-fixed .store-card-media.is-wide,
body.cover-fixed .store-card-media.is-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
}

/* 大图（有预览截图）：铺满整块封面，不留边 */
body.cover-fixed .store-card-media.is-wide > img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  box-shadow: none;
  background: none;
  padding: 0;
  display: block;
}

/* 小图标：模糊底铺满，图标本体居中成卡片，视觉上不再是大片留白 */
body.cover-fixed .store-card-media.is-icon > img {
  width: 76px;
  height: 76px;
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .16);
}

/* ============================================================
   方案二：自动适配图片大小（高度完全跟随图片）
   ============================================================ */
body.cover-auto .store-card-media,
body.cover-auto .store-card-media.is-wide,
body.cover-auto .store-card-media.is-icon {
  display: block;
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
}

body.cover-auto .store-card-media.is-wide > img {
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

/* 小图标无法决定封面高度，保持 16:9 由模糊底填充，图标居中 */
body.cover-auto .store-card-media.is-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
}
body.cover-auto .store-card-media.is-icon > img {
  width: 76px;
  height: 76px;
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .16);
}

/* 无图兜底：两种情况都保持一个紧凑的居中占位 */
body.cover-fixed .store-card-media-fallback,
body.cover-auto .store-card-media-fallback { margin: 0; }

@media (max-width: 767px) {
  body.cover-fixed .store-card-media.is-icon > img,
  body.cover-auto .store-card-media.is-icon > img {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    border-radius: 15px;
    padding: 7px;
  }
  body.cover-auto .store-card-media.is-wide > img { max-height: none; }
}

/* ============================================================
   页脚三栏标题图标
   ============================================================ */
.store-footer-col h4.store-footer-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.store-footer-title-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
}
.store-footer-title-icon svg {
  width: 16px !important;
  height: 16px !important;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}

/* ============================================================ 1.0.16
   自适应封面彻底消除留白
   根因：.store-grid 是等高网格，同一行卡片会被最高的那张卡拉到同样高；
        竖长预览图把一格拉高后，其余卡片正文区就被撑出一大片空白。
   修正：
     1. 网格不再拉伸卡片（align-items: start），卡片高度只由自身内容决定
     2. cover-auto 下「只有小图标」的卡片，封面框收缩为紧凑小框，不再强制 16:9
     3. 预览大图按原始比例完整显示（无裁切 / 无 contain 空白 / 无高度上限）
   ============================================================ */

/* ---- 1. 网格与卡片不再互相拉伸 ---- */
.store-grid,
.store-grid[class*="cols-"] {
  align-items: start;
}
.store-card.store-card-app {
  align-self: start;
  height: auto;
}
/* 卡片内部不再为「撑满」保留弹性，高度自然贴合内容 */
body.cover-auto .store-card-body {
  flex: 0 0 auto;
}

/* ---- 2. 自适应模式：小图标卡片的封面框随内容收缩 ---- */
body.cover-auto .store-card-media-bg {
  display: none;
}
body.cover-auto .store-card-media.is-icon {
  display: block;
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
  padding: 20px 16px;
  text-align: center;
  background: linear-gradient(135deg, #eef1f6 0%, #f7f8fa 100%);
  border-bottom: 1px solid var(--store-line);
}
body.cover-auto .store-card-media.is-icon > img {
  position: static;
  display: inline-block;
  vertical-align: middle;
  width: 68px;
  height: 68px;
  max-width: 68px;
  max-height: 68px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .10);
}
body.cover-auto .store-card-media .store-card-media-fallback {
  position: static;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

/* ---- 3. 预览大图：完整显示，卡片高度随图片变化 ---- */
body.cover-auto .store-card-media.is-wide {
  display: block;
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
  background: #f4f6fa;
}
body.cover-auto .store-card-media.is-wide > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

/* ---- 无简介时也不再留占位空白 ---- */
body.cover-auto .store-card-body .store-card-desc:empty {
  min-height: 0;
  display: none;
}

@media (max-width: 767px) {
  body.cover-auto .store-card-media.is-icon { padding: 16px 12px; }
  body.cover-auto .store-card-media.is-icon > img {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    border-radius: 14px;
    padding: 7px;
  }
}

/* ============================================================ 1.0.27
   审核详情页 / 详情页最终加固：
   1) 详情页模板 th:href 曾跨行书写，导致 Thymeleaf 解析失败整页白屏（已在模板修复），
      此处仅保证同框结构与图片在任意宽度下都不溢出；
   2) 正文 + 预览图同一框：图片一律限制在框内，手机端也不会顶破边框；
   3) 相关应用卡片按容器可用宽度自适应，窄屏不再被压扁或错位。
   ============================================================ */

/* ---- 同框容器：内容、图片均不得超出边框 ---- */
.store-detail-content,
.store-detail-content.store-detail-merged {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.store-detail-content.store-detail-merged {
  max-height: none;
  overflow: visible;
}
.store-detail-merged img,
.store-detail-content img,
.store-prose img,
.store-shots img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}
/* 预览图容器也做成可收缩的，避免 min-content 撑宽 */
.store-detail-merged .store-shots,
.store-detail-content .store-shots {
  min-width: 0;
  max-width: 100%;
}
.store-shots > a { min-width: 0; max-width: 100%; overflow: hidden; }

/* 富文本里可能出现的宽表格 / 代码块，用滚动兜住而不是溢出 */
.store-prose table,
.store-prose pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.store-prose iframe,
.store-prose video {
  max-width: 100%;
}

/* ---- 相关应用：自适应列数，最小列宽不超过容器宽度 ---- */
.store-related { min-width: 0; max-width: 100%; }
.store-related .store-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.store-related .store-section-head h2 { margin: 0; }
.store-related .store-grid-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.store-related .store-grid-related .store-card { min-width: 0; max-width: 100%; }

/* ---- 手机端 ---- */
@media (max-width: 767px) {
  .store-detail-content,
  .store-detail-content.store-detail-merged {
    padding: 14px;
    max-height: none;
    overflow: visible;
  }
  /* 预览图单列铺满，不允许超出框 */
  .store-detail-merged .store-shots,
  .store-detail-content .store-shots {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }
  .store-detail-merged .store-shots img,
  .store-detail-content .store-shots img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }
  /* 相关应用：标题与「查看全部」各占一行，不重叠；卡片两列等宽 */
  .store-related { margin-top: 26px; }
  .store-related .store-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
  }
  .store-related .store-section-head h2 { font-size: 18px; line-height: 1.4; }
  .store-related .store-grid-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .store-changelog-empty { padding: 14px 15px; font-size: 13px; }
}

@media (max-width: 380px) {
  .store-related .store-grid-related { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================ 1.0.29
   1) 安装包文件名徽标：宽度由文件名决定、可配置圆角、前置插件 / 主题图标；
   2) 表单底部成对按钮等宽等高；
   3) 「相关应用」与「投稿链接信息」区块拉开间距；
   4) 「我的投稿」展示驳回原因。
   ============================================================ */

/* ---- 相关应用与后续内容区块之间的呼吸感（原 0 间距贴在一起） ---- */
.store-related { margin-bottom: 0; }
.store-related + .store-detail-content,
.store-related + .store-panel,
.store-related + .store-detail-merged,
.store-related + section {
  margin-top: 28px;
}
.store-related + .store-detail-content::before {
  content: "";
  display: block;
}
@media (max-width: 720px) {
  .store-related + .store-detail-content,
  .store-related + .store-panel,
  .store-related + .store-detail-merged,
  .store-related + section { margin-top: 20px; }
}

/* ---- 徽标内的类型图标略微加粗，小尺寸下也看得清 ---- */
.store-detail-packagename .store-pkg-icon svg { stroke-width: 1.9; }

/* ---- 徽标在窄屏不被图标挤压文字 ---- */
@media (max-width: 480px) {
  .store-detail-packagename { max-width: 100%; font-size: 12px; padding: 2px 8px; }
  .store-detail-packagename .store-pkg-icon,
  .store-detail-packagename .store-pkg-icon svg { width: 13px; height: 13px; }
}

/* ---- 我的投稿：驳回原因展示 ---- */
.store-reject-reason {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid #f3c7c7;
  border-radius: 10px;
  background: #fdf2f2;
  color: #b42318;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}
.store-reject-reason .store-reject-label {
  flex: 0 0 auto;
  font-weight: 700;
  color: #b42318;
}
.store-reject-reason .store-reject-text { min-width: 0; }
@media (max-width: 720px) {
  .store-reject-reason { font-size: 12.5px; padding: 8px 10px; }
}

/* ---------------------------------------------------------------- 更新日志 */
.store-changelog {
  margin-top: 34px;
}
.store-changelog .store-section-head {
  align-items: center;
  margin-bottom: 16px;
}
.store-changelog-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--store-text-3);
  background: var(--store-fill-2, #f4f5f7);
  border-radius: var(--store-radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
}
/* 更新日志：整体一个外框；最新版本默认展开，历史版本折叠成一行（details/summary） */
.store-log-panel {
  border: 1px solid var(--store-border, #e4e7ec);
  border-radius: var(--store-radius-lg);
  padding: 20px 22px;
  background: var(--store-bg, #fff);
}
.store-log-item {
  display: block;
}
.store-log-item + .store-log-item {
  margin-top: 0;
  border-top: 1px solid var(--store-border, #e4e7ec);
}
/* 折叠头：整行可点，鼠标移上去有轻微反馈，避免用户看不出能点开 */
.store-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease;
}
.store-log-head::-webkit-details-marker { display: none; }
.store-log-head:hover { opacity: 0.72; }
.store-log-item:first-child > .store-log-head { padding-top: 0; }
.store-log-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
/* 箭头：折叠朝下，展开朝上，纯 CSS 画的，不依赖图标字体 */
.store-log-toggle {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--store-text-3, #98a2b3);
  border-bottom: 1.5px solid var(--store-text-3, #98a2b3);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}
.store-log-item[open] > .store-log-head .store-log-toggle {
  transform: rotate(-135deg) translate(-1px, -1px);
}
.store-log-body {
  padding-bottom: 16px;
}
.store-log-item[open] > .store-log-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--store-border, #e4e7ec);
  margin-bottom: 4px;
}
.store-log-empty {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--store-text-3);
}
/* 兼容旧类名：早期版本渲染为独立卡片，保留样式避免缓存期错乱 */
.store-log-card {
  border: 1px solid var(--store-border, #e4e7ec);
  border-radius: var(--store-radius-lg);
  padding: 20px 22px;
  background: var(--store-bg, #fff);
  margin-bottom: 14px;
}
.store-log-card:last-child {
  margin-bottom: 0;
}
/* 说明：.store-log-head 已改为折叠头（见上方定义），此处不再重复以防覆盖 */
.store-log-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.store-log-number {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--store-text, #101828);
}
.store-log-latest {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--store-radius-pill);
  background: #e8f0ff;
  color: #1d4ed8;
}
.store-log-date {
  font-size: 13px;
  color: var(--store-text-3);
  white-space: nowrap;
}
.store-log-group {
  margin-top: 14px;
}
.store-log-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--store-text, #101828);
  margin: 0 0 8px;
}
.store-log-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--store-text-3);
  flex: 0 0 auto;
}
.store-log-dot.is-added { background: #12b76a; }
.store-log-dot.is-improved { background: #2e90fa; }
.store-log-dot.is-fixed { background: #f79009; }
.store-log-dot.is-notes { background: #98a2b3; }
.store-log-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.store-log-list li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--store-text-2, #475467);
  word-break: break-word;
}
.store-textarea-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.65;
  min-height: 180px;
  resize: vertical;
}

.store-changelog-empty {
  border: 1px dashed var(--store-border, #e4e7ec);
  border-radius: var(--store-radius-lg);
  padding: 18px 20px;
  color: var(--store-text-3);
  font-size: 14px;
  line-height: 1.7;
  background: var(--store-fill-1, #fafbfc);
  word-break: break-word;
}

/* 平板：留白收缩，版本号略小 */
@media (max-width: 1199px) {
  .store-log-panel { padding: 18px 18px; }
  .store-log-card { padding: 18px 18px; }
  .store-log-number { font-size: 18px; }
}

/* 手机：单列、紧凑内边距、字号回落 */
@media (max-width: 767px) {
  .store-changelog { margin-top: 26px; }
  .store-changelog .store-section-head {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .store-changelog .store-section-head h2 { font-size: 18px; }
  .store-log-panel {
    padding: 15px 14px;
    border-radius: var(--store-radius);
  }
  .store-log-item + .store-log-item {
    margin-top: 16px;
    padding-top: 16px;
  }
  .store-log-card {
    padding: 15px 14px;
    border-radius: var(--store-radius);
    margin-bottom: 12px;
  }
  .store-log-head {
    gap: 6px;
    padding: 11px 0;
  }
  .store-log-item[open] > .store-log-head { padding-top: 11px; padding-bottom: 9px; }
  .store-log-meta { gap: 9px; }
  .store-log-toggle { width: 7px; height: 7px; }
  .store-log-number { font-size: 17px; }
  .store-log-date { font-size: 12px; }
  .store-log-group { margin-top: 12px; }
  .store-log-group-title { font-size: 14px; margin-bottom: 6px; }
  .store-log-list { padding-left: 17px; gap: 5px; }
  .store-log-list li { font-size: 13.5px; line-height: 1.65; }
  .store-textarea-code { font-size: 13px; min-height: 160px; }
}

@media (max-width: 380px) {
  .store-log-panel { padding: 13px 12px; }
  .store-log-card { padding: 14px 12px; }
  .store-log-number { font-size: 16px; }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
  .store-log-panel { background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.09); }
  .store-log-item + .store-log-item { border-top-color: rgba(255, 255, 255, 0.09); }
  .store-log-item[open] > .store-log-head { border-bottom-color: rgba(255, 255, 255, 0.09); }
  .store-log-toggle { border-color: rgba(255, 255, 255, 0.38); }
  .store-log-card { background: rgba(255, 255, 255, 0.02); }
  .store-log-latest { background: rgba(46, 144, 250, 0.16); color: #84caff; }
  .store-changelog-count { background: rgba(255, 255, 255, 0.06); }
}
