/* ===================================================================
   面板卡片 v4 — 用户习惯优化版
   继承 v3.5 浮岛+极光+胶囊品牌识别,聚焦信息层级和决策效率
   =================================================================== */

.panel-card-v4 {
  display: flex;
  flex-direction: column;
  background: var(--s1, #11141b);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.07));
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 200ms var(--ease, cubic-bezier(.22,1,.36,1)),
    border-color 200ms,
    box-shadow 200ms;
  position: relative;
  isolation: isolate;
}

.panel-card-v4:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 199, 0.35);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 229, 199, 0.12);
}

.panel-card-v4:focus-visible {
  outline: 2px solid var(--primary, #00e5c7);
  outline-offset: 2px;
}

/* ---- 封面区 ---- */
.panel-card-v4__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1f2b 0%, #11141b 100%);
  overflow: hidden;
}

.panel-card-v4__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease, cubic-bezier(.22,1,.36,1));
}

.panel-card-v4:hover .panel-card-v4__cover img {
  transform: scale(1.04);
}

.panel-card-v4__cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(76, 169, 255, 0.12), rgba(139, 92, 246, 0.12));
}

/* 徽章:统一右上,半透明色底 + 同色字(v3.5 规范) */
.panel-card-v4__badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: 65%;
}

.panel-card-v4__badges .badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  white-space: nowrap;
}

.badge-top { color: #f59e0b; background: rgba(245, 158, 11, 0.15); }
.badge-verified { color: #4ade80; background: rgba(74, 222, 128, 0.15); }
.badge-elite { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.badge-featured { color: #fcd34d; background: rgba(252, 211, 77, 0.15); }
.badge-real { color: #67e8f9; background: rgba(103, 232, 249, 0.15); }

/* 评分:左下浮层,玻璃质感,第一决策锚点 */
.panel-card-v4__rating {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  color: #fff;
}

.rating-stars { color: #fbbf24; letter-spacing: -1px; font-size: 11px; }
.rating-num { font-weight: 700; }
.rating-count { opacity: 0.7; font-size: 11px; }

/* ---- 主体 ---- */
.panel-card-v4__body {
  padding: 14px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.panel-card-v4__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.panel-card-v4__favicon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--s2, #171b24);
  object-fit: contain;
}

.panel-card-v4__favicon--mock {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, #4ca9ff);
}

.panel-card-v4__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-card-v4__tagline {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

/* 三指标:服务 / 起价 / 起送 — 用户最关心的三个数 */
.panel-card-v4__stats {
  list-style: none;
  margin: 4px 0 0;
  padding: 10px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.07));
  gap: 8px;
}

.panel-card-v4__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px !important;
  height: 24px;
  background: var(--line, rgba(255, 255, 255, 0.07));
  flex: 0 0 1px !important;
}

/* ---- 行动区:主+次按钮 ---- */
.panel-card-v4__actions {
  display: flex;
  gap: 8px;
  padding: 8px 12px 12px;
}

.panel-card-v4__cta-primary {
  flex: 1;
  justify-content: center;
  text-align: center;
}

.panel-card-v4__actions .btn-ghost {
  padding: 6px 12px;
}

/* ---- 元信息(更新时间)---- */
.panel-card-v4__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.meta-dot {
  color: #4ade80;
  font-size: 8px;
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
  .panel-card-v4__name { font-size: 14px; }
  .stat-value { font-size: 13px; }
  .panel-card-v4__tagline { min-height: 2.6em; }
}

/* ---- 偏好减弱动效 ---- */
@media (prefers-reduced-motion: reduce) {
  .panel-card-v4,
  .panel-card-v4__cover img,
  .panel-card-v4__actions .btn {
    transition: none !important;
  }
  .panel-card-v4:hover { transform: none; }
}
