/* 供应商窗口 + 评级管理 —— 响应式样式（PC 表格 / 手机卡片，同步适配） */

#vendor-portal-root { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #24243e; }

.vp-header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(120deg, #667eea 0%, #764ba2 60%, #f093fb 100%);
  color: #fff; padding: 18px 20px 16px; box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.vp-header .vp-back {
  display: inline-block; background: rgba(255,255,255,.18); color: #fff; border: none;
  border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; margin-bottom: 8px;
}
.vp-header .vp-title { font-size: 20px; font-weight: 700; }
.vp-header .vp-sub { font-size: 12px; opacity: .85; margin-top: 2px; }

.vp-container { max-width: 960px; margin: 0 auto; padding: 16px; }

.vp-toolbar { margin-bottom: 12px; }
.vp-section { margin-bottom: 20px; }
.vp-section-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #1a4b8c;
}
.vp-count {
  display: inline-block; background: #eef1f8; color: #1a4b8c; border-radius: 10px;
  padding: 1px 9px; font-size: 12px; font-weight: 600;
}
.vp-btn { background: #fff; border: 1px solid #d5d9e5; color: #444; border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; }
.vp-btn-primary { background: linear-gradient(90deg, #667eea, #764ba2); color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-size: 13px; cursor: pointer; }
.vp-btn-primary:hover { filter: brightness(1.06); }
.vp-sm { padding: 5px 12px; font-size: 12px; margin-left: auto; }
.vp-btn-mini { background: #f0f2f8; border: none; color: #444; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.vp-btn-mini:hover { background: #e3e7f2; }
.vp-btn-danger { color: #d9534f; }

.vp-list { display: flex; flex-direction: column; gap: 8px; }

.vp-grade-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.vp-grade-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.vp-grade-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.vp-grade-weight { font-size: 12px; color: #999; font-weight: 400; }
.vp-grade-actions { display: flex; gap: 6px; }

.vp-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.vp-card-main { flex: 1; min-width: 0; }
.vp-card-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vp-card-kw { font-size: 13px; color: #7a6f9e; margin-top: 4px; white-space: normal; line-height: 1.5; }
.vp-card-meta { font-size: 12px; color: #999; margin-top: 3px; }
.vp-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.vp-grade-badge { display: inline-block; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }

/* 弹层 */
.vp-modal-overlay {
  position: fixed; inset: 0; z-index: 9500; background: rgba(20,20,40,.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.vp-modal {
  background: #fff; border-radius: 16px; padding: 20px; width: 100%; max-width: 420px;
  max-height: 86vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.vp-modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: #1a4b8c; }
.vp-field { display: block; margin-bottom: 14px; }
.vp-field span { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.vp-field input, .vp-field select {
  width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px;
  border: 1px solid #d5d9e5; border-radius: 8px; font-size: 14px; background: #fff;
}
.vp-field input:focus, .vp-field select:focus { outline: none; border-color: #667eea; }
.vp-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

/* 移动端优化 */
@media (max-width: 640px) {
  .vp-container { padding: 12px; }
  .vp-card { flex-direction: column; align-items: stretch; }
  .vp-card-actions { margin-top: 8px; justify-content: flex-end; }
  .vp-grade-card { flex-direction: column; align-items: stretch; }
  .vp-grade-actions { margin-top: 8px; justify-content: flex-end; }
  .vp-header .vp-title { font-size: 18px; }
}
