/* ============================================================
   山风设计系统 · 预览页样式（仅预览页使用，不属于对外规范）
   ============================================================ */

.pv-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sf-border-light);
}
.pv-topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pv-topbar__brand { display: flex; align-items: center; gap: 12px; }
.pv-logo {
  width: 38px; height: 38px;
  border-radius: var(--sf-radius-icon);
  background: var(--sf-accent-gradient);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 2px 12px rgba(59, 130, 246, .2);
}
.pv-topbar__title { font-size: 17px; font-weight: 600; color: var(--sf-text-primary); letter-spacing: .5px; }
.pv-topbar__sub { font-size: 12px; color: var(--sf-text-muted); }

.pv-topnav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pv-topnav a {
  font-size: 13px; color: var(--sf-text-secondary);
  text-decoration: none; cursor: pointer;
  transition: var(--sf-transition);
}
.pv-topnav a:hover { color: var(--sf-accent); }

.pv-main { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }

/* ---------- Hero ---------- */
.pv-hero { padding: 56px 0 40px; }
.pv-hero__title {
  font-size: 40px; font-weight: 700; color: var(--sf-text-primary);
  letter-spacing: 1px; margin-bottom: 14px;
}
.pv-hero__desc {
  font-size: 15px; color: var(--sf-text-secondary);
  line-height: 1.9; max-width: 860px;
}
.pv-hero__desc b { color: var(--sf-accent-dark); font-weight: 600; }
.pv-hero__meta { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Section ---------- */
.pv-section { padding: 36px 0; border-top: 1px solid var(--sf-border-lighter); }
.pv-section__head { margin-bottom: 22px; }
.pv-section__title {
  font-size: 24px; font-weight: 600; color: var(--sf-text-primary);
  margin-bottom: 6px;
}
.pv-section__desc { font-size: 14px; color: var(--sf-text-secondary); line-height: 1.8; }
.pv-section__desc code {
  background: #f1f5f9; padding: 2px 6px; border-radius: 4px;
  font-family: var(--sf-font-mono); font-size: 12.5px; color: #475569;
}

.pv-grid { display: grid; gap: 16px; }
.pv-grid--2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.pv-grid--3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- 令牌展示 ---------- */
.pv-swatches { display: flex; flex-direction: column; gap: 12px; }
.pv-swatch { display: flex; align-items: center; gap: 12px; }
.pv-swatch i {
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, .06); flex-shrink: 0;
}
.pv-swatch b { font-size: 13px; font-weight: 500; color: var(--sf-text-primary); flex: 1; }
.pv-swatch span { font-size: 12px; color: var(--sf-text-muted); font-family: var(--sf-font-mono); }

.pv-typo { display: flex; flex-direction: column; gap: 14px; }
.pv-typo > div { display: flex; align-items: baseline; gap: 14px; }
.pv-typo__label {
  font-size: 11px; color: var(--sf-text-muted);
  font-family: var(--sf-font-mono); width: 132px; flex-shrink: 0;
}
.pv-typo__demo { color: var(--sf-text-primary); }

.pv-radii { display: flex; gap: 16px; flex-wrap: wrap; }
.pv-radius { text-align: center; }
.pv-radius i {
  display: block; width: 52px; height: 52px;
  background: var(--sf-sidebar-active);
  border: 1px solid #bfdbfe; margin-bottom: 8px;
}
.pv-radius span { font-size: 11px; color: var(--sf-text-muted); }

.pv-shadows { display: flex; gap: 16px; flex-wrap: wrap; }
.pv-shadow {
  width: 88px; height: 62px; border-radius: 10px; background: #fff;
  display: grid; place-items: center;
  font-size: 12px; color: var(--sf-text-secondary);
}

.pv-mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pv-mini-table td { padding: 7px 0; border-bottom: 1px solid var(--sf-border-lighter); }
.pv-mini-table td:first-child { color: var(--sf-text-secondary); width: 40%; }
.pv-mini-table td:nth-child(2) code {
  font-family: var(--sf-font-mono); font-size: 11.5px; color: var(--sf-accent-dark);
}
.pv-mini-table td:last-child { text-align: right; color: var(--sf-text-primary); font-weight: 500; }

/* ---------- 按钮展示 ---------- */
.pv-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pv-row + .pv-row { margin-top: 14px; }

/* ---------- 表格展示 ---------- */
.pv-frame {
  border-radius: var(--sf-radius-card);
  overflow: hidden;
  border: 1px solid var(--sf-border-light);
  background: var(--sf-bg-page);
}
.pv-frame .sf-layout { height: 520px; }

/* ---------- 图标展示 ---------- */
.pv-icon-group { margin-bottom: 26px; }
.pv-icon-group__title {
  font-size: 15px; font-weight: 600; color: var(--sf-text-primary);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--sf-border-lighter);
}
.pv-icon-group__title span {
  font-size: 12px; color: var(--sf-text-muted); font-weight: 400; margin-left: 8px;
}
.pv-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pv-icon-cell {
  background: #fff; border: 1px solid var(--sf-border-lighter);
  border-radius: 10px; padding: 14px 6px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; transition: var(--sf-transition);
}
.pv-icon-cell:hover {
  border-color: var(--sf-accent); background: var(--sf-sidebar-active);
  transform: translateY(-2px);
}
.pv-icon-cell svg { color: var(--sf-text-primary); }
.pv-icon-cell:hover svg { color: var(--sf-accent); }
.pv-icon-cell__name {
  font-size: 11px; color: var(--sf-text-muted);
  font-family: var(--sf-font-mono); text-align: center;
  word-break: break-all; line-height: 1.4;
}

/* ---------- 代码 ---------- */
.pv-code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  font-family: var(--sf-font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
}
.pv-sub-title {
  font-size: 14px; font-weight: 600; color: var(--sf-text-primary);
  margin-bottom: 10px;
}

/* ---------- 页脚 ---------- */
.pv-footer {
  border-top: 1px solid var(--sf-border-lighter);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--sf-text-muted);
}

/* ---------- 提示 ---------- */
.pv-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: rgba(15, 23, 42, .92); color: #fff;
  padding: 10px 18px; border-radius: 10px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
  z-index: 100;
}
.pv-toast.is-on { opacity: 1; }
