/* ===== 顶部品牌栏 ===== */
.app-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo { width: 34px; height: 34px; border-radius: 6px; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: .5px; color: var(--brand); white-space: nowrap; }
.top-nav { display: none; gap: 4px; margin-left: auto; }
.top-nav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--text-soft);
}
.top-nav a.active, .top-nav a:hover { color: var(--brand); background: #FBE9EC; }

/* ===== 主体 ===== */
.app-main { max-width: var(--maxw); margin: 0 auto; padding: 14px 14px 96px; min-height: 60vh; }

/* ===== 移动端底部导航 ===== */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 12px; color: var(--text-soft); padding: 4px 0;
}
.bottom-nav a .ico { font-size: 20px; line-height: 1; }
.bottom-nav a.active { color: var(--brand); }

/* ===== 页脚 ===== */
.app-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 14px 28px;
  display: flex; justify-content: space-between; color: var(--text-soft); font-size: 12px;
}
.env-tag { font-size: 12px; }

/* ===== 首页组件 ===== */
.banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 22px 18px; margin-bottom: 14px;
}
.banner h2 { margin: 0 0 6px; font-size: 20px; }
.banner p { margin: 0; opacity: .9; font-size: 13px; }
.banner .ui-tag {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.2);
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
}

.section-title { display: flex; align-items: center; gap: 8px; margin: 18px 2px 10px; font-weight: 800; }
.section-title::before { content: ""; width: 4px; height: 16px; background: var(--brand); border-radius: 2px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: 0 0 auto; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; cursor: pointer; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prod {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
}
.prod .thumb { aspect-ratio: 1/1; background: #F0F0F0; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 13px; }
.prod .body { padding: 10px; }
.prod .name { font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }

/* ===== 分类页 ===== */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cat-card .subs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ===== 商品详情 ===== */
.pd-hero { aspect-ratio: 4/3; background: #F0F0F0; border-radius: var(--radius); display:flex; align-items:center; justify-content:center; color:#bbb; }
.pd-block { margin-top: 14px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: none; }

/* ===== PC 端适配（宽屏） ===== */
@media (min-width: 820px) {
  .bottom-nav { display: none; }
  .top-nav { display: flex; }
  .app-main { padding-bottom: 28px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .banner h2 { font-size: 26px; }
  .brand-name { font-size: 18px; }
}
@media (max-width: 819px) {
  .env-tag { display: none; }
}
