/* 店铺栏目：卡片网格 + 价格带 + 单行元信息 */

/* 与 models/plans 栏目一致：页头留 20px 顶距，面包屑位置才对齐 */
.shops-page, .shop-detail-page, .go-page { padding-top: 20px; }

.shops-page .page-lead { max-width: 60ch; }

/* ---------- 卡片 ---------- */
.shops-page .shop-grid { gap: 12px; }
.shops-page .shop-card { min-height: 208px; padding: 16px; }
.shops-page .shop-card-head > div { flex: 1 1 auto; padding-right: 80px; }
.shops-page .shop-card h3 { font-size: 13px; }

.shops-page .shop-description {
  min-height: 0;
  margin-top: 10px;
  line-height: 1.6;
}
.shops-page .shop-tags { margin-top: 10px; }

/* 价格带：比商品数与采集时间更该被先看到 */
.shop-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.shop-price .num { font-size: 14px; font-weight: 700; }
.shop-price .is-null { font-size: 13px; font-weight: 600; color: var(--text-3); }
.shop-price-note { margin-left: auto; font-size: 11px; color: var(--text-3); }

/* 元信息：一行三项，最后一项靠右 */
.shops-page .shop-meta {
  gap: 10px;
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
  font-variant-numeric: tabular-nums;
}
.shops-page .shop-meta span:nth-child(2) { color: var(--text-4); }
.shops-page .shop-meta span:last-child { color: var(--text-4); }

.shops-page .shop-empty { grid-column: 1 / -1; }

/* 站外直达按钮：标题拉伸覆盖整卡可点，按钮浮于拉伸层之上；域名收进 tooltip */
.shops-page .shop-card { position: relative; }
.shops-page .shop-name { color: var(--text); }
.shops-page .shop-name::after { content: ""; position: absolute; inset: 0; }
.shops-page .shop-name:hover { color: var(--accent); }
.shop-go {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  height: 26px;
  padding: 0 8px;
  gap: 4px;
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 11px;
}
.shop-go .icon { width: 11px; height: 11px; }
.shop-go:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.shop-detail-title { display: flex; align-items: center; gap: 10px; }
.shop-detail-title h1 { flex: 1 1 auto; min-width: 0; }
.shop-detail-title .shop-go { position: static; flex: none; }

/* ---------- 店铺详情 ---------- */
.shop-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.shop-identity .shop-avatar { width: 56px; height: 56px; font-size: 14px; }
.shop-identity h1 { font-size: 18px; }
.shop-identity p { margin-top: 4px; font-size: 12px; color: var(--text-3); max-width: 60ch; }

/* 标签筛选条：复用列表 chip；命不中商品的标签只展示、不可点 */
.shop-detail-page .type-chips { margin-bottom: 12px; }

.outbound-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.outbound-link .icon { width: 13px; height: 13px; }

/* 在售商品的标签筛选：滚动时贴住 header 下方，与栏目内导航同一套贴顶规则 */
.shop-detail-page #product-tags {
  position: sticky;
  top: 64px;
  z-index: 30;
  padding: 9px 0 12px;
  margin-bottom: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* 在售商品表：只定义该页的列宽，其余表格规则用 models.css 的共享组件 */
.product-table .c-name { width: 34%; }
.product-table .c-cat { width: 12%; }
.product-table .c-price { width: 14%; }
.product-table .c-stock { width: 14%; }
.product-table .c-updated { width: 12%; }

/* ---------- 站外跳转中间页 ---------- */
.go-shell { max-width: 620px; margin: 24px auto 0; }
.go-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-3);
}
.go-kicker .icon { width: 14px; height: 14px; color: var(--accent); }

/* 卡片上方的安全跳转进度条：3 秒倒计时填充，取消后整体熄灭停走 */
.go-progress {
  margin-bottom: 12px;
  padding: 14px 16px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
  text-align: center;
}
.go-progress-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.go-progress-label .icon { width: 14px; height: 14px; color: var(--accent); }
.go-progress-track { margin-top: 10px; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.go-progress-bar { height: 100%; width: 0; border-radius: 999px; background: var(--accent); }
.go-progress.is-counting .go-progress-bar { animation: go-bar-fill 3s linear forwards; }
.go-progress.is-stopped { opacity: .55; }
.go-progress.is-stopped .go-progress-bar { animation: none; }
@keyframes go-bar-fill { from { width: 0; } to { width: 100%; } }
.go-cancel {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.go-cancel:hover { color: var(--text-2); }

.go-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-surface); }
.go-target { display: flex; align-items: center; gap: 8px; }
.go-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.go-card h1 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.go-host {
  margin: 6px 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  word-break: break-all;
}
.go-status {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.go-note { margin-top: 6px; font-size: 12px; color: var(--text-3); line-height: 1.7; }

.go-merchant { margin-top: 12px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.go-merchant-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }
.go-badge {
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 500;
}
.go-merchant-body { display: flex; gap: 12px; margin-top: 12px; }
.go-merchant-body p { min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.go-merchant .official-link { margin-top: 12px; }

.go-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.go-actions .btn { justify-content: center; }
.go-disclaimer { margin-top: 16px; text-align: center; color: var(--text-4); }
.go-error {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 560px) {
  /* 560px 以下收起类目列，标题列补位；密度与 chip 横滚规则见 models.css 共享段 */
  .product-table .c-cat,
  .product-table th:nth-child(2),
  .product-table td:nth-child(2) { display: none; }
  .product-table .c-name { width: 44%; }
  .product-table .c-price { width: 20%; }
  .product-table .c-stock { width: 20%; }
  .product-table .c-updated { width: 16%; }
}
