/* ==========================================================================
   pages.css — 二级页通用样式 (sub-back / sub-card / sub-h / sub-linkrow 等)
   适用于 checkout.html / orders.html / about / privacy / service / agreement / contact 等
   ========================================================================== */

/* ---------- 二级页主容器 ---------- */
.page-sub {
  background: var(--bg);
  min-height: 100vh;
}

.sub-back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.back-btn:active { transform: scale(.94); }
.sub-crumb {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.sub-main {
  padding: 12px 14px 100px;
  max-width: 600px;
  margin: 0 auto;
}

.sub-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.sub-h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.sub-h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.4;
}
.sub-lead {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
.sub-linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.sub-linkrow a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}
.sub-linkrow a:active { transform: scale(.94); }

.block-hint {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 6px;
}

/* ---------- 筛选 chip (复用) ---------- */
.filter-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--tx-fast);
}
.filter-chip:active { transform: scale(.94); }
.filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---------- footer 间距补偿 ---------- */
.page-sub .site-footer {
  margin-top: 24px;
}