/* ============================================================================
 * QING Perks V1.2｜数字福利与免费资源 — 生产版视觉系统 + 每页 15 条分页样式
 * 完整保留 /admin 后台依赖的所有 CSS 变量与工具类
 * ============================================================================ */

:root {
  --bg-page: #fafafb;
  --bg-hero-grid: rgba(15, 23, 42, 0.04);
  --bg-surface: #ffffff;
  --bg-surface-soft: #fafafb;
  --bg-surface-hover: #f1f5f9;
  --border-subtle: #e4e6eb;
  --border-strong: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --emerald: #059669;
  --emerald-hover: #047857;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;
  --emerald-text: #047857;

  --cyan: #0891b2;
  --cyan-soft: #ecfeff;
  --cyan-border: #a5f3fc;

  --amber: #d97706;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --rose-border: #fecdd3;

  --sky: #0284c7;
  --sky-soft: #f0f9ff;
  --sky-border: #bae6fd;

  --dark-btn: #0f172a;
  --dark-btn-hover: #1e293b;
  --dark-btn-text: #ffffff;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 32px -14px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 22px 48px rgba(15, 23, 42, 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  --font-display: "Outfit", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Plus Jakarta Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* 兼容 /admin.html 后台样式变量 */
  --color-bg: var(--bg-page);
  --color-surface: var(--bg-surface);
  --color-surface-muted: var(--bg-surface-soft);
  --color-border: var(--border-subtle);
  --color-border-hover: var(--border-strong);
  --color-text: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-muted: var(--text-muted);
  --color-primary: var(--emerald);
  --color-primary-hover: var(--emerald-hover);
  --color-danger: #dc2626;
}

[data-theme="dark"] {
  --bg-page: #090b0e;
  --bg-hero-grid: rgba(248, 250, 252, 0.04);
  --bg-surface: #0d1014;
  --bg-surface-soft: #12161c;
  --bg-surface-hover: #181e27;
  --border-subtle: #222731;
  --border-strong: #333b4a;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-border: rgba(16, 185, 129, 0.34);
  --emerald-text: #34d399;

  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --cyan-border: rgba(34, 211, 238, 0.3);

  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --amber-border: rgba(245, 158, 11, 0.34);

  --rose: #fb7185;
  --rose-soft: rgba(244, 63, 94, 0.14);
  --rose-border: rgba(244, 63, 94, 0.32);

  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.14);
  --sky-border: rgba(56, 189, 248, 0.32);

  --dark-btn: #f8fafc;
  --dark-btn-hover: #ffffff;
  --dark-btn-text: #0f172a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 14px 32px -14px rgba(0, 0, 0, 0.52);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.56);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.tabular-num {
  font-variant-numeric: tabular-nums;
}

.emerald {
  color: var(--emerald-text);
}

.qp-container,
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}

/* 兼容 /admin.html 顶部与按钮基础类 */
.brand-version {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--emerald-soft);
  color: var(--emerald-text);
  border: 1px solid var(--emerald-border);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: var(--emerald);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

/* ==================== 顶部导航栏 ==================== */
.qp-navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .qp-navbar {
  background: rgba(13, 16, 20, 0.9);
}

.qp-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qp-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.qp-brand-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.28);
  flex-shrink: 0;
}

.qp-brand-badge.small {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.qp-brand-badge svg {
  display: block;
}

.qp-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.qp-brand-divider {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
}

.qp-brand-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.qp-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qp-nav-link {
  background: none;
  border: none;
  padding: 6px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.qp-nav-link:hover,
.qp-nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.qp-fav-nav.active-fav {
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-nav-dropdown {
  position: relative;
}

.qp-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qp-caret {
  font-size: 11px;
  color: var(--text-muted);
}

.qp-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 120;
}

.qp-dropdown-right {
  left: auto;
  right: 0;
  min-width: 185px;
}

.qp-dropdown-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 11px;
  border-radius: 8px;
  transition: background 0.15s;
}

.qp-dropdown-item:hover,
.qp-dropdown-item.active {
  background: var(--bg-surface-hover);
}

.qp-dropdown-item strong {
  font-size: 13px;
  color: var(--text-primary);
}

.qp-dropdown-item span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.qp-dropdown-sep {
  height: 1px;
  background: var(--border-subtle);
  margin: 5px 6px;
}

.qp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.qp-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.qp-lang-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.qp-btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: 9px;
  border: none;
  background: var(--emerald);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, transform 0.12s;
}

.qp-btn-emerald:hover {
  background: var(--emerald-hover);
}

.qp-btn-emerald-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: var(--emerald);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
}

.qp-btn-emerald-sm:hover {
  background: var(--emerald-hover);
}

.qp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.qp-btn-outline:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.qp-btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.qp-btn-outline-sm:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.qp-btn-dark-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: var(--dark-btn);
  color: var(--dark-btn-text);
  font-size: 12px;
  font-weight: 600;
}

.qp-btn-dark-sm:hover {
  background: var(--dark-btn-hover);
}

.qp-btn-dark-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 14px;
  border-radius: 9px;
  border: none;
  background: var(--dark-btn);
  color: var(--dark-btn-text);
  font-size: 13px;
  font-weight: 600;
}

.qp-btn-dark-block:hover {
  background: var(--dark-btn-hover);
}

.qp-btn-outline-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.qp-btn-outline-block:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ==================== Hero 网格展区 ==================== */
.qp-hero-section {
  position: relative;
  overflow: hidden;
  padding: 20px 0 38px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.qp-hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--bg-hero-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-hero-grid) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92) 70%, transparent 100%);
}

.qp-hero-section .qp-container {
  position: relative;
  z-index: 2;
}

.qp-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.qp-status-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  font-size: 12px;
  color: var(--text-secondary);
}

.qp-shield-icon {
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
}

.qp-status-brand {
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-dot-sep {
  color: var(--border-strong);
}

.qp-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.qp-theme-segmented {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  box-shadow: var(--shadow-xs);
}

.qp-theme-opt {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}

.qp-theme-opt.active {
  background: var(--amber-soft);
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="dark"] .qp-theme-opt.active {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* Hero 主体左右两栏 */
.qp-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(350px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.qp-hero-kicker {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald-text);
  margin-bottom: 10px;
}

.qp-hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--text-primary);
}

.qp-hero-desc {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 600px;
}

/* 搜索栏 */
.qp-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 12px 8px 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.qp-search-bar:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.qp-search-icon {
  color: var(--text-faint);
  flex-shrink: 0;
}

.qp-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
}

.qp-search-input::placeholder {
  color: var(--text-faint);
}

.qp-search-clear {
  display: none;
  border: none;
  background: var(--bg-surface-hover);
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  align-items: center;
  justify-content: center;
}

.qp-search-clear.visible {
  display: inline-flex;
}

.qp-kbd-badge {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 8px;
}

/* 场景芯片 */
.qp-scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.qp-scene-chip {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s;
}

.qp-scene-chip:hover {
  border-color: var(--emerald-border);
  color: var(--emerald-text);
  background: var(--emerald-soft);
}

.qp-scene-chip-accent {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
  font-weight: 600;
}

/* 五大主营分类 */
.qp-cats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qp-cats-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.qp-cats-more {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald-text);
}

.qp-cats-more:hover {
  text-decoration: underline;
}

.qp-five-cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.qp-cat-tile {
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.qp-cat-tile:hover,
.qp-cat-tile.active {
  border-color: var(--emerald);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.qp-cat-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qp-cat-icon {
  color: var(--text-secondary);
  display: inline-flex;
}

.qp-cat-tile.active .qp-cat-icon {
  color: var(--emerald);
}

.qp-cat-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.qp-cat-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右侧焦点精选推荐卡 */
.qp-spotlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.qp-spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
}

.qp-spotlight-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.qp-spotlight-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.qp-spotlight-pager {
  display: inline-flex;
  gap: 4px;
}

.qp-spot-num {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 4px 8px;
  border-radius: 7px;
}

.qp-spot-num:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.qp-spot-num.active {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}

.qp-spotlight-body {
  padding: 18px;
}

.qp-spot-vendor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.qp-spot-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.qp-spot-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qp-spot-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 11px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.qp-spot-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qp-spot-date {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.qp-spot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== 通用板块 ==================== */
.qp-section {
  padding: 36px 0;
}

.qp-section-bordered {
  border-top: 1px solid var(--border-subtle);
}

.qp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.qp-section-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.qp-section-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.qp-section-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-text);
}

/* ==================== 3列精选卡 & 目录通用卡片 ==================== */
.qp-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.qp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.qp-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.qp-card-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
}

.qp-ribbon-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--emerald-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-card-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qp-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 6px;
}

.qp-tool-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.qp-tool-btn.active {
  background: var(--emerald-soft);
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-card-body {
  padding: 15px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.qp-card-vendor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.qp-card-vendor-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qp-logo-box {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.qp-logo-box.sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.qp-logo-box img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.qp-logo-box.sm img {
  width: 17px;
  height: 17px;
}

.qp-logo-fallback {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.qp-vendor-meta {
  min-width: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-vendor-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

.qp-card-title {
  margin: 0 0 9px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  cursor: pointer;
}

.qp-card-title:hover {
  color: var(--emerald-text);
}

.qp-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.qp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.qp-badge-verified {
  background: var(--emerald);
  color: #ffffff;
}

.qp-badge-community {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.qp-badge-mint {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-text);
}

.qp-badge-cyan {
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-border);
  color: var(--cyan);
}

.qp-badge-amber {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--amber);
}

.qp-badge-rose {
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  color: var(--rose);
}

.qp-flash-strip {
  margin-bottom: 9px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--rose-soft);
  border: 1px solid var(--rose-border);
  color: var(--rose);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-card-desc {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qp-spec-line {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-spec-line strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* 标志性价值进度条（复原生产版） */
.qp-value-meter {
  margin-top: auto;
  margin-bottom: 12px;
}

.qp-value-meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.qp-value-main {
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-value-main.amber {
  color: var(--amber);
}

.qp-value-strike {
  font-size: 11.5px;
  color: var(--text-faint);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 5px;
}

.qp-value-pill {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-text);
}

.qp-value-pill.cyan {
  background: var(--sky-soft);
  border-color: var(--sky-border);
  color: var(--sky);
}

.qp-value-pill.amber {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber);
}

.qp-meter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qp-meter-track {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--border-subtle);
  overflow: hidden;
}

.qp-meter-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

.qp-meter-fill.amber {
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 100%);
}

.qp-meter-note {
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

.qp-fee-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  color: var(--text-muted);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.qp-fee-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.qp-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
}

.qp-foot-meta {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-foot-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.qp-guide-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.qp-guide-link:hover {
  color: var(--text-primary);
}

.qp-claim-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-text);
}

.qp-claim-link:hover {
  text-decoration: underline;
}

/* ==================== 板块二：全部资源发现目录（左右分栏） ==================== */
.qp-catalog-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qp-match-counter {
  font-size: 12.5px;
  color: var(--text-muted);
}

.qp-view-toggle {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
}

.qp-view-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  width: 28px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qp-view-btn.active {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.qp-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.qp-refresh-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.qp-catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 22px;
  align-items: start;
}

/* 左侧筛选卡 */
.qp-filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.qp-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.qp-cat-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.qp-dark-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
}

.qp-dark-tab:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.qp-dark-tab.active {
  background: var(--dark-btn);
  color: var(--dark-btn-text);
  font-weight: 600;
}

.qp-filter-inline-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qp-inline-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  color: var(--text-muted);
}

.qp-inline-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  width: 110px;
  color: var(--text-primary);
}

.qp-select {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
}

.qp-filter-row-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid var(--border-subtle);
}

.qp-benefit-pill {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}

.qp-benefit-pill:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.qp-benefit-pill.active {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-cond-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
}

.qp-cond-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.qp-cond-chip.active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-reset-link {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--rose);
  font-size: 12px;
  font-weight: 600;
}

/* 目录 2列网格 & 列表模式 */
.qp-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.qp-catalog-grid.list-mode {
  grid-template-columns: 1fr;
}

/* ==================== 经典数字分页栏（每页 15 项） ==================== */
.qp-pagination-bar {
  margin-top: 20px;
  padding: 13px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.qp-pag-info {
  font-size: 12.5px;
  color: var(--text-muted);
}

.qp-pag-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.qp-pag-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qp-pag-btn:hover:not(:disabled) {
  border-color: var(--emerald);
  color: var(--emerald-text);
  background: var(--emerald-soft);
}

.qp-pag-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.qp-pag-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.qp-pag-ellipsis {
  padding: 0 4px;
  color: var(--text-faint);
  font-size: 13px;
}

.qp-pag-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.qp-pag-input {
  width: 52px;
  height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  text-align: center;
  font-size: 12.5px;
  outline: none;
}

.qp-pag-input:focus {
  border-color: var(--emerald);
}

.qp-pag-jump-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.qp-pag-jump-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald-text);
}

/* ==================== 右侧侧边栏（实时风向榜 + 近期核验动态 + Community） ==================== */
.qp-catalog-sidebar {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qp-side-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 15px 16px;
  box-shadow: var(--shadow-xs);
}

.qp-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.qp-side-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.qp-side-badge-muted {
  font-size: 11px;
  color: var(--text-faint);
}

.qp-mini-tabs {
  display: inline-flex;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 2px;
}

.qp-mini-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
}

.qp-mini-tab.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.qp-rank-list {
  display: flex;
  flex-direction: column;
}

.qp-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.14s;
}

.qp-rank-item:last-child {
  border-bottom: none;
}

.qp-rank-item:hover {
  background: var(--bg-surface-soft);
}

.qp-rank-idx {
  width: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  text-align: center;
  flex-shrink: 0;
}

.qp-rank-idx.top3 {
  color: var(--emerald-text);
}

.qp-rank-info {
  flex: 1;
  min-width: 0;
}

.qp-rank-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-rank-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.qp-rank-sub strong {
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-rank-arrow {
  color: var(--text-faint);
  font-size: 12px;
  flex-shrink: 0;
}

.qp-activity-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.qp-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}

.qp-activity-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-secondary);
}

.qp-activity-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-activity-row:hover .qp-activity-text {
  color: var(--emerald-text);
}

.qp-activity-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.qp-community-desc {
  margin: 0 0 13px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.qp-community-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qp-side-loading {
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==================== 板块三：羊毛蹲点中心 ==================== */
.qp-watch-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.qp-watch-intro {
  max-width: 640px;
}

.qp-watch-kicker,
.qp-eco-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-text);
  margin-bottom: 6px;
}

.qp-watch-tabs-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.qp-watch-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 4px;
}

.qp-watch-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 7px;
}

.qp-watch-tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.qp-watch-tab.active {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  font-weight: 700;
}

.qp-notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.qp-notify-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.qp-watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.qp-watch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qp-watch-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qp-watch-tags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qp-countdown-box {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  border-radius: 10px;
  padding: 10px 12px;
}

.qp-countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.qp-countdown-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--emerald-text);
}

.qp-countdown-digits {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.qp-cd-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 5px;
}

.qp-countdown-deadline {
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.qp-watch-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.qp-watch-highlight {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald-text);
  margin-top: 3px;
}

.qp-prep-box {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
}

.qp-prep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.qp-prep-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.qp-prep-chip {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

.qp-prep-chip.checked {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-watch-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.qp-watch-foot-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 日历视图 */
.qp-calendar-table-wrap {
  grid-column: 1 / -1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.qp-calendar-row {
  display: grid;
  grid-template-columns: 140px 1fr 160px 130px;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.qp-calendar-row:last-child {
  border-bottom: none;
}

/* ==================== 板块四：QING 数字生态四大维度 ==================== */
.qp-eco-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.qp-eco-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s, box-shadow 0.16s;
}

.qp-eco-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.qp-eco-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qp-eco-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qp-eco-icon.emerald-bg {
  background: var(--emerald-soft);
  color: var(--emerald-text);
}

.qp-eco-icon.sky-bg {
  background: var(--sky-soft);
  color: var(--sky);
}

.qp-eco-icon.teal-bg {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.qp-eco-icon.amber-bg {
  background: var(--amber-soft);
  color: var(--amber);
}

.qp-eco-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald-text);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.qp-eco-status.sky {
  color: var(--sky);
  background: var(--sky-soft);
  border-color: var(--sky-border);
}

.qp-eco-name {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.qp-eco-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.qp-eco-desc {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
}

.qp-eco-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==================== 悬浮对比栏 ==================== */
.qp-compare-tray {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(760px, calc(100vw - 32px));
}

.qp-compare-inner {
  background: var(--bg-surface);
  border: 1px solid var(--emerald-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.qp-compare-items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qp-compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
}

.qp-compare-chip button {
  border: none;
  background: none;
  color: var(--text-muted);
  padding: 0;
  font-size: 11px;
}

.qp-compare-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== 页脚 ==================== */
.qp-footer {
  margin-top: 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0 24px;
}

.qp-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.35fr 0.9fr 0.75fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.qp-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  margin-bottom: 10px;
}

.qp-footer-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.qp-footer-domain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}

.qp-footer-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qp-footer-col-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.qp-footer-col-head .qp-footer-col-title {
  margin-bottom: 0;
}

.qp-footer-mini-link {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--emerald-text);
}

.qp-footer-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.qp-matrix-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  transition: border-color 0.15s;
}

.qp-matrix-item:hover {
  border-color: var(--emerald-border);
}

.qp-matrix-item strong {
  font-size: 12px;
  color: var(--text-primary);
}

.qp-matrix-item span {
  font-size: 11px;
  color: var(--text-muted);
}

.qp-footer-links-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.qp-footer-links-2col button,
.qp-footer-links-2col a,
.qp-footer-links button,
.qp-footer-links a {
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 12.5px;
  color: var(--text-muted);
}

.qp-footer-links-2col button:hover,
.qp-footer-links-2col a:hover,
.qp-footer-links button:hover,
.qp-footer-links a:hover {
  color: var(--emerald-text);
}

.qp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qp-footer-bottom {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-faint);
}

/* ==================== 弹窗与空状态 ==================== */
.qp-empty-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 13.5px;
}

.qp-loading-text {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.qp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qp-modal-box {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.qp-modal-wide {
  width: min(920px, 100%);
}

.qp-modal-sm {
  width: min(480px, 100%);
}

.qp-modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 13px;
  z-index: 5;
}

.qp-modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.qp-modal-content {
  padding: 24px;
}

.qp-modal-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
}

.qp-modal-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.qp-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.qp-detail-kv {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
}

.qp-detail-kv span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.qp-detail-kv strong {
  font-size: 13px;
  color: var(--text-primary);
}

.qp-detail-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.qp-detail-block h4 {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
}

.qp-steps-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.qp-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.qp-compare-table th,
.qp-compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.qp-compare-table th {
  width: 120px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-surface-soft);
}

.qp-field {
  margin-bottom: 14px;
}

.qp-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.qp-field-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  font-size: 13px;
  outline: none;
}

.qp-field-input:focus {
  border-color: var(--emerald);
}

.qp-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.qp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--dark-btn);
  color: var(--dark-btn-text);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1120px) {
  .qp-hero-main {
    grid-template-columns: 1fr;
  }
  .qp-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .qp-catalog-sidebar {
    position: static;
  }
  .qp-eco-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .qp-nav-links {
    display: none;
  }
  .qp-card-grid-3,
  .qp-watch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qp-five-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .qp-container,
  .container,
  .qp-nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .qp-brand-divider,
  .qp-brand-sub {
    display: none;
  }
  .qp-card-grid-3,
  .qp-catalog-grid,
  .qp-watch-grid,
  .qp-eco-grid,
  .qp-footer-grid,
  .qp-detail-meta-grid {
    grid-template-columns: 1fr;
  }
  .qp-five-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qp-calendar-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .qp-nav-inner {
    padding-inline: 8px;
    gap: 8px;
  }
}

/* ============================================================================
 * QING Perks V1.2 扩展：灵动微动效 + 实时动态播报 + VPS 补货专区 + 4档位分层 + 双时间条
 * ============================================================================ */
:root {
  --indigo: #4f46e5;
  --indigo-soft: #eef2ff;
  --indigo-border: #c7d2fe;
}

[data-theme="dark"] {
  --indigo: #818cf8;
  --indigo-soft: rgba(99, 102, 241, 0.16);
  --indigo-border: rgba(129, 140, 248, 0.34);
}

@keyframes qpPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes qpPulseAmber {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes qpTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes qpCardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes qpSpotSlide {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.qp-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: qpPulseRing 2s infinite;
  flex-shrink: 0;
}

.qp-pulse-dot.sm { width: 6px; height: 6px; }
.qp-pulse-dot.amber { background: var(--amber); animation: qpPulseAmber 2s infinite; }
.qp-pulse-dot.muted { background: var(--text-faint); animation: none; }

.qp-nav-link { display: inline-flex; align-items: center; gap: 6px; }
.qp-nav-live { color: var(--emerald-text); font-weight: 600; }

/* 实时动态脉冲播报条 */
.qp-ticker-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  margin-bottom: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.qp-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--emerald-text);
  padding-right: 12px;
  border-right: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.qp-ticker-viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.qp-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: qpTickerScroll 38s linear infinite;
}

.qp-ticker-bar:hover .qp-ticker-track {
  animation-play-state: paused;
}

.qp-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 2px 7px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.qp-ticker-item:hover {
  background: var(--emerald-soft);
  color: var(--emerald-text);
}

.qp-ticker-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--emerald-soft);
  color: var(--emerald-text);
}

.qp-ticker-tag.amber { background: var(--amber-soft); color: var(--amber); }
.qp-ticker-tag.indigo { background: var(--indigo-soft); color: var(--indigo); }

.qp-ticker-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
}

.qp-scene-chip { display: inline-flex; align-items: center; gap: 6px; }
.qp-scene-chip-live {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
  font-weight: 700;
}

/* Spotlight 自动轮播进度条与过渡 */
.qp-spot-progress-track {
  height: 2px;
  background: var(--border-subtle);
  overflow: hidden;
}

.qp-spot-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  transition: width 0.1s linear;
}

.qp-spot-anim {
  animation: qpSpotSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 光标追踪微光卡片质感（对齐线上 qing-glow-card） */
.qp-card {
  position: relative;
  animation: qpCardFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.qp-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(16, 185, 129, 0.09), transparent 62%);
  transition: opacity 0.24s ease;
  z-index: 0;
}

.qp-card::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1.5px;
  border-radius: 9999px;
  opacity: 0;
  background: radial-gradient(180px circle at var(--mx, 50%) 0%, rgba(16, 185, 129, 0.85), transparent 75%);
  transition: opacity 0.22s ease;
  z-index: 2;
}

.qp-card > * { position: relative; z-index: 1; }
.qp-card:hover { border-color: var(--emerald-border); box-shadow: var(--shadow-md); }
.qp-card:hover::before, .qp-card:hover::after { opacity: 1; }

.qp-ribbon-label { display: inline-flex; align-items: center; gap: 6px; }
.qp-ribbon-label.amber { color: var(--amber); }
.qp-ribbon-label.muted { color: var(--text-muted); }

/* VPS 实时补货专区 */
.qp-vps-zone {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.032) 0%, transparent 100%);
}

.qp-zone-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-text);
  margin-bottom: 6px;
}

.qp-vps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 4px;
  box-shadow: var(--shadow-xs);
}

.qp-vps-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  transition: all 0.15s;
}

.qp-vps-tab:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.qp-vps-tab.active { background: var(--dark-btn); color: var(--dark-btn-text); }

.qp-vps-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.qp-spec-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.qp-spec-chip.route {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}

/* 消费档位筛选与徽章（零元免费 / 超高性价比 / 均衡进阶 / 精品旗舰） */
.qp-row-tag-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
  margin-right: 2px;
}

.qp-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
}

.qp-tier-pill:hover { border-color: var(--border-strong); color: var(--text-primary); }
.qp-tier-pill.active { background: var(--dark-btn); border-color: var(--dark-btn); color: var(--dark-btn-text); }
.qp-tier-pill.tier-free.active { background: var(--emerald); border-color: var(--emerald); color: #ffffff; }
.qp-tier-pill.tier-best.active { background: var(--cyan); border-color: var(--cyan); color: #ffffff; }
.qp-tier-pill.tier-balanced.active { background: var(--indigo); border-color: var(--indigo); color: #ffffff; }
.qp-tier-pill.tier-premium.active { background: var(--amber); border-color: var(--amber); color: #ffffff; }
.qp-tier-cnt { font-size: 10.5px; opacity: 0.8; }

.qp-tier-badge-free { background: var(--emerald-soft); border: 1px solid var(--emerald-border); color: var(--emerald-text); }
.qp-tier-badge-best { background: var(--cyan-soft); border: 1px solid var(--cyan-border); color: var(--cyan); }
.qp-tier-badge-balanced { background: var(--indigo-soft); border: 1px solid var(--indigo-border); color: var(--indigo); }
.qp-tier-badge-premium { background: var(--amber-soft); border: 1px solid var(--amber-border); color: var(--amber); }

/* 双时间条（服务器上传收录时间 + 活动有效时间） */
.qp-dual-time-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 9px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-family: var(--font-mono);
}

.qp-time-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}

.qp-time-item strong { font-weight: 600; color: var(--text-secondary); }
.qp-time-item.urgent { color: var(--rose); font-weight: 600; }
.qp-time-item.active-event { color: var(--emerald-text); font-weight: 600; }

/* 详情弹窗优缺点面板 */
.qp-pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.qp-pc-box {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  font-size: 12.5px;
}

.qp-pc-box ul {
  margin: 6px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-secondary);
}

.qp-rank-item:hover { transform: translateX(2px); }

@media (max-width: 640px) {
  .qp-pros-cons-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .qp-ticker-track, .qp-pulse-dot, .qp-card, .qp-spot-anim { animation: none !important; }
}

/* ============================================================================
 * 紧凑型全品类付费分组小板块（Paid Group Hub Strip）+ 专属小板块子视图（Paid Zone Modal）
 * ============================================================================ */
.qp-paid-hub {
  padding: 20px 0 24px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.028) 0%, transparent 100%);
}

.qp-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.qp-hub-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.qp-hub-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.qp-hub-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.qp-hub-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qp-hub-action-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.qp-hub-action-btn:hover {
  border-color: var(--emerald-border);
  color: var(--emerald-text);
  background: var(--emerald-soft);
}

.qp-hub-action-btn.accent {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}

.qp-hub-action-btn.accent:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.qp-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.qp-hub-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  cursor: pointer;
}

.qp-hub-tile:hover {
  transform: translateY(-2px);
  border-color: var(--emerald-border);
  box-shadow: var(--shadow-md);
}

.qp-hub-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qp-hub-tile-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.qp-hub-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qp-hub-tile-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-hub-count-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.qp-hub-tier-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
}

.qp-hub-mini-chip {
  padding: 1px 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
}

.qp-hub-mini-chip.best { background: var(--cyan-soft); color: var(--cyan); }
.qp-hub-mini-chip.balanced { background: var(--indigo-soft); color: var(--indigo); }
.qp-hub-mini-chip.premium { background: var(--amber-soft); color: var(--amber); }

.qp-hub-latest {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-hub-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
}

.qp-hub-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.qp-hub-enter {
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.15s, transform 0.15s;
}

.qp-hub-tile:hover .qp-hub-enter {
  color: var(--emerald-text);
  transform: translateX(2px);
}

/* 专属分组小板块工作区弹窗（点进小板块后即展示该分组全量内容） */
.qp-zone-backdrop {
  z-index: 180;
  padding: 20px;
}

.qp-modal-top {
  z-index: 220;
}

.qp-zone-modal {
  width: min(1180px, 96vw);
  max-width: 1180px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.qp-zone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.qp-zone-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.qp-zone-back-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  color: var(--text-primary);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.qp-zone-back-btn:hover {
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}

.qp-zone-heading-wrap { min-width: 0; }

.qp-zone-heading-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qp-zone-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.qp-zone-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-text);
}

.qp-zone-modal-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.qp-zone-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.qp-zone-close-inline {
  position: static;
}

.qp-zone-controls {
  padding: 12px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.qp-zone-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.qp-zone-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s;
}

.qp-zone-switch-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.qp-zone-switch-btn.active {
  background: var(--dark-btn);
  border-color: var(--dark-btn);
  color: var(--dark-btn-text);
}

.qp-zone-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.qp-zone-tier-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.qp-zone-right-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qp-zone-stock-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.qp-zone-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 24px;
  background: var(--bg-page);
}

.qp-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1080px) {
  .qp-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .qp-hub-grid,
  .qp-zone-grid {
    grid-template-columns: 1fr;
  }
  .qp-zone-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .qp-zone-topbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================================
 * QING Perks V2.0 高级克制设计体系 · 零 Emoji · 统一版式 · 丝滑动效编排
 * ============================================================================ */

/* 1. 顶部克制动态工具栏（替代噪杂跑马灯与堆积状态条） */
.qp-hero-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border-subtle);
}

.qp-utility-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.qp-utility-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.qp-utility-stats strong {
  color: var(--text-primary);
  font-weight: 700;
}

.qp-utility-stats .qp-sep {
  color: var(--border-strong);
}

.qp-utility-divider {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
}

.qp-live-feed-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  max-width: 520px;
  transition: background 0.18s ease, color 0.18s ease;
}

.qp-live-feed-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.qp-live-feed-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--emerald-text);
  flex-shrink: 0;
}

.qp-live-feed-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.qp-live-feed-text.is-swapping {
  opacity: 0;
  transform: translateY(-5px);
}

.qp-theme-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 2. Hero 呼吸感精修（无重复分类格，焦点平衡对齐） */
.qp-hero-section {
  padding-top: 24px;
  padding-bottom: 36px;
}

.qp-hero-refined {
  align-items: center;
  gap: 36px;
}

.qp-hero-title {
  text-wrap: balance;
  letter-spacing: -0.025em;
}

.qp-hero-desc {
  max-width: 60ch;
}

.qp-scene-single-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.qp-scene-chip {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.qp-scene-chip:hover {
  transform: translateY(-1px);
}

/* 3. 统一 5 栏严选频道导览条（极简高级单层质感） */
.qp-paid-hub {
  padding: 26px 0 32px;
  border-top: 1px solid var(--border-subtle);
  background: transparent;
}

.qp-hub-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.qp-hub-action-btn.primary {
  background: var(--dark-btn);
  border-color: var(--dark-btn);
  color: var(--dark-btn-text);
}

.qp-hub-action-btn.primary:hover {
  opacity: 0.9;
  background: var(--dark-btn);
  color: var(--dark-btn-text);
}

.qp-hub-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.qp-hub-tile {
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: none;
  gap: 10px;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.24s ease;
}

.qp-hub-tile:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-border);
  box-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.14);
}

[data-theme="dark"] .qp-hub-tile:hover {
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
}

.qp-hub-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.qp-hub-tile:hover .qp-hub-icon {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}

.qp-hub-count-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.qp-hub-tier-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-hub-tier-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qp-hub-latest {
  font-size: 12px;
  color: var(--text-secondary);
}

.qp-hub-tile-foot {
  padding-top: 9px;
  font-size: 11.5px;
}

.qp-hub-price {
  color: var(--text-primary);
  font-weight: 600;
}

.qp-hub-enter {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* 4. 极简静态色点（取代丑陋彩色 Emoji） */
.qp-dot-sm {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.qp-dot-sm.emerald { background: var(--emerald); }
.qp-dot-sm.cyan { background: var(--cyan); }
.qp-dot-sm.indigo { background: var(--indigo); }
.qp-dot-sm.amber { background: var(--amber); }
.qp-dot-sm.muted { background: var(--text-faint); }

/* 5. 精简 2 行筛选条 + 平滑磁吸滑动指示器 */
.qp-filter-streamlined {
  padding: 12px 14px;
  gap: 10px;
}

.qp-filter-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.qp-seg-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  gap: 2px;
  flex-wrap: wrap;
}

.qp-seg-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  border-radius: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), width 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

[data-theme="dark"] .qp-seg-indicator {
  background: #1a1f28;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.qp-seg-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.qp-seg-btn:hover {
  color: var(--text-primary);
}

.qp-seg-btn.active {
  color: var(--text-primary);
  font-weight: 600;
}

.qp-seg-cnt {
  font-size: 11px;
  color: var(--text-faint);
}

.qp-cond-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 6. 卡片减噪升级：去徽章堆砌、去嵌套灰框、统一精致排版 */
.qp-card {
  box-shadow: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.24s ease;
}

.qp-card::before {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(16, 185, 129, 0.055), transparent 64%);
}

.qp-card::after {
  height: 1px;
  background: radial-gradient(150px circle at var(--mx, 50%) 0%, rgba(16, 185, 129, 0.6), transparent 72%);
}

.qp-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, 0.14);
}

[data-theme="dark"] .qp-card:hover {
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.55);
}

.qp-card-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.qp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.qp-meta-item.verified {
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-meta-item.tier-text {
  color: var(--text-primary);
  font-weight: 600;
}

.qp-meta-sep {
  color: var(--border-strong);
}

/* 精炼一行单色等宽规格条（VPS / 原生 IP 共用，拒绝花哨胶囊墙） */
.qp-spec-inline-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.qp-spec-inline-row .qp-spec-accent {
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-card-foot-dual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
}

.qp-foot-times {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-foot-times .urgent {
  color: var(--rose);
  font-weight: 600;
}

.qp-foot-times .active-event {
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qp-zone-count-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* 7. 滚动入场与弹窗弹性过渡动效（克制、流畅、仅操作 transform/opacity） */
.qp-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1), transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

.qp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.qp-modal-backdrop {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.2s ease;
}

.qp-modal-backdrop.is-open .qp-modal-box {
  animation: qpModalSpring 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes qpModalSpring {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qp-spot-anim {
  animation: qpSpotFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes qpSpotFade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1240px) {
  .qp-hub-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .qp-hub-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qp-utility-divider,
  .qp-live-feed-btn {
    display: none;
  }
}

@media (max-width: 540px) {
  .qp-hub-grid-5 {
    grid-template-columns: 1fr;
  }
}

/* 锚点跳转避让吸顶导航栏 + 深色模式品牌图标清晰底衬 */
#paidHubSection,
#editorialSection,
#catalogSection,
#watchCenterSection,
#ecosystemSection {
  scroll-margin-top: 84px;
}

/* ============================================================================
 * QING Perks V2.5 艺术策展级视觉升级 · 氛围光感 Hero · 建筑感严选频道条 · 厂商图标库 · 直白市场价值条
 * ============================================================================ */

/* 1. 氛围感画廊 Hero 画布（消除生硬白底方格纸与顶部多余留白） */
.qp-hero-gallery {
  position: relative;
  overflow: hidden;
  padding-top: 14px;
  padding-bottom: 34px;
  background: linear-gradient(180deg, #f8faf9 0%, var(--bg-page) 100%);
}

[data-theme="dark"] .qp-hero-gallery {
  background: linear-gradient(180deg, #0b1014 0%, var(--bg-page) 100%);
}

.qp-hero-gallery .qp-hero-grid-bg {
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 25%, #000 35%, transparent 92%);
}

[data-theme="dark"] .qp-hero-gallery .qp-hero-grid-bg {
  opacity: 0.45;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.qp-hero-aura {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(72px);
  z-index: 0;
}

.qp-hero-aura-1 {
  top: -110px;
  left: -60px;
  width: 520px;
  height: 360px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0) 72%);
}

.qp-hero-aura-2 {
  top: -40px;
  right: -40px;
  width: 480px;
  height: 380px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.11) 0%, rgba(14, 165, 233, 0) 72%);
}

[data-theme="dark"] .qp-hero-aura-1 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0) 72%);
}

[data-theme="dark"] .qp-hero-aura-2 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.11) 0%, rgba(56, 189, 248, 0) 72%);
}

.qp-hero-gallery > .qp-container {
  position: relative;
  z-index: 1;
}

.qp-hero-gallery .qp-hero-utility {
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.qp-hero-gallery .qp-hero-refined {
  gap: 34px;
  align-items: center;
}

.qp-hero-gallery .qp-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--emerald-text);
  margin-bottom: 12px;
}

.qp-kicker-line {
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: var(--emerald);
  border-radius: 2px;
}

.qp-hero-gallery .qp-hero-title {
  font-size: clamp(29px, 3.1vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 14px;
}

.qp-hero-accent-ink {
  background: linear-gradient(108deg, #047857 0%, #0d9488 56%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .qp-hero-accent-ink {
  background: linear-gradient(108deg, #34d399 0%, #2dd4bf 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qp-hero-gallery .qp-hero-desc {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Command-Palette 质感搜索栏 */
.qp-cmd-bar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 26px -14px rgba(15, 23, 42, 0.14);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

[data-theme="dark"] .qp-cmd-bar {
  background: rgba(22, 27, 34, 0.84);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 28px -14px rgba(0, 0, 0, 0.5);
}

.qp-cmd-bar:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.13), 0 12px 28px -12px rgba(16, 185, 129, 0.18);
}

/* 画廊级右侧焦点策展框 */
.qp-gallery-frame {
  position: relative;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.085);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 42px -22px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.qp-gallery-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.75) 0%, rgba(14, 165, 233, 0.5) 55%, transparent 100%);
  z-index: 2;
}

[data-theme="dark"] .qp-gallery-frame {
  background: rgba(17, 22, 29, 0.88);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 22px 48px -22px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.qp-gallery-frame .qp-spotlight-head {
  background: rgba(248, 250, 252, 0.72);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .qp-gallery-frame .qp-spotlight-head {
  background: rgba(255, 255, 255, 0.025);
}

/* 2. 建筑感一体化严选频道条（无缝融入首屏，消除突兀的 5 个独立外框） */
.qp-channel-dock {
  margin-top: 28px;
}

.qp-dock-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 0 2px;
}

.qp-dock-title-group {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.qp-dock-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.qp-dock-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.qp-dock-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.qp-dock-link {
  border: none;
  background: none;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.16s ease;
}

.qp-dock-link:hover {
  color: var(--emerald-text);
}

.qp-dock-link.strong {
  font-weight: 700;
  color: var(--text-primary);
}

.qp-dock-link.strong:hover {
  color: var(--emerald-text);
}

.qp-dock-sep {
  color: var(--border-strong);
}

.qp-ledger-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 10px 28px -18px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .qp-ledger-grid {
  background: rgba(17, 22, 29, 0.78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 12px 32px -18px rgba(0, 0, 0, 0.6);
}

.qp-ledger-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 16px 14px;
  text-align: left;
  border: none;
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease;
}

.qp-ledger-col:last-child {
  border-right: none;
}

.qp-ledger-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--emerald);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.22s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.qp-ledger-col:hover {
  background: rgba(16, 185, 129, 0.038);
}

[data-theme="dark"] .qp-ledger-col:hover {
  background: rgba(16, 185, 129, 0.07);
}

.qp-ledger-col:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.qp-ledger-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qp-ledger-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-ledger-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
}

.qp-ledger-brands {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qp-brand-stack {
  display: inline-flex;
  align-items: center;
}

.qp-brand-stack .qp-vendor-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  box-shadow: 0 0 0 2px var(--bg-surface);
  margin-left: -5px;
}

.qp-brand-stack .qp-vendor-logo:first-child {
  margin-left: 0;
}

.qp-brand-stack .qp-vendor-logo svg {
  width: 14px;
  height: 14px;
}

.qp-ledger-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-text);
  white-space: nowrap;
}

.qp-ledger-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.qp-ledger-tiers {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.qp-ledger-tiers > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qp-ledger-arrow {
  color: var(--text-faint);
  font-size: 12px;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}

.qp-ledger-col:hover .qp-ledger-arrow {
  transform: translateX(3px);
  color: var(--emerald-text);
}

/* 3. 官方厂商图标库容器样式（高辨识度真实厂商标识） */
.qp-vendor-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--brand-bg, var(--bg-surface-soft));
  border: 1px solid rgba(15, 23, 42, 0.07);
  overflow: hidden;
  transition: transform 0.18s ease;
}

[data-theme="dark"] .qp-vendor-logo {
  background: var(--brand-dark-bg, rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.1);
}

.qp-vendor-logo.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.qp-vendor-logo.sm svg {
  width: 16px;
  height: 16px;
}

.qp-vendor-logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.qp-vendor-logo.sm img {
  width: 16px;
  height: 16px;
}

.qp-card:hover .qp-vendor-logo {
  transform: scale(1.04);
}

[data-theme="dark"] .qp-vendor-logo:has(img),
[data-theme="dark"] .qp-rank-logo:has(img) {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
}

/* 4. 直白清晰的市场参考价值条（取代「稳态 $0 / 配额内 $0」与满格进度条噪音） */
.qp-val-strip {
  margin-top: auto;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.qp-val-strip.is-free {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.055) 0%, var(--bg-surface-soft) 60%);
  border-color: rgba(16, 185, 129, 0.16);
}

.qp-val-strip.is-paid {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.06) 0%, var(--bg-surface-soft) 60%);
  border-color: rgba(245, 158, 11, 0.18);
}

[data-theme="dark"] .qp-val-strip.is-free {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.11) 0%, rgba(255, 255, 255, 0.02) 65%);
  border-color: rgba(16, 185, 129, 0.22);
}

[data-theme="dark"] .qp-val-strip.is-paid {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0.02) 65%);
  border-color: rgba(245, 158, 11, 0.22);
}

.qp-val-left {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.qp-val-primary {
  font-family: var(--font-display), var(--font-sans);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.qp-val-primary.emerald {
  color: var(--emerald-text);
}

.qp-val-primary.amber {
  color: #b45309;
}

[data-theme="dark"] .qp-val-primary.amber {
  color: #fbbf24;
}

.qp-val-strike {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  text-decoration: line-through;
}

.qp-val-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.qp-val-market {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qp-val-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--emerald-soft);
  color: var(--emerald-text);
  white-space: nowrap;
}

.qp-val-status.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.qp-val-rmb {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.qp-val-strip.is-free .qp-val-rmb {
  color: var(--emerald-text);
  opacity: 0.85;
}

.qp-val-strip.is-paid .qp-val-rmb {
  color: var(--text-secondary);
}

.qp-ledger-price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.qp-ledger-rmb {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* 卡片整体微质感升级 */
.qp-card {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.22s ease;
}

.qp-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.18), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .qp-card:hover {
  box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

@media (max-width: 1180px) {
  .qp-ledger-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .qp-ledger-col {
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 720px) {
  .qp-ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .qp-ledger-grid {
    grid-template-columns: 1fr;
  }
  .qp-ledger-col {
    border-right: none;
  }
}

/* ==================== V2.6 细分标签体系与蹲点中心联动样式 ==================== */
.qp-subtag-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 0 10px;
  border-top: 1px dashed var(--border-subtle);
}

.qp-subtag-bar:empty {
  display: none;
}

.qp-subtag-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2px;
}

.qp-subtag-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--bg-surface-soft);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.qp-subtag-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.qp-subtag-btn.active {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
  font-weight: 600;
}

.qp-subtag-cnt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.72;
}

/* 卡片顶部「地区 · 细分品类 · 厂商」无胶囊干净排版 */
.qp-vendor-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.qp-micro-region {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.qp-micro-dot {
  color: var(--border-strong);
  user-select: none;
}

.qp-micro-subcat {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--emerald-text);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.qp-micro-subcat:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qp-micro-subcat-static {
  font-weight: 600;
  color: var(--emerald-text);
  white-space: nowrap;
}

/* 蹲点中心：品类子筛选条 + 厂商图标行 + 展开全部按钮 */
.qp-watch-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.qp-watch-sub-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.qp-watch-subbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.qp-watch-subbtn:hover {
  background: var(--bg-surface-soft);
  color: var(--text-primary);
}

.qp-watch-subbtn.active {
  background: var(--text-primary);
  color: var(--bg-surface);
  font-weight: 600;
}

[data-theme="dark"] .qp-watch-subbtn.active {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}

.qp-watch-sub-cnt {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.72;
}

.qp-watch-sync-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.qp-watch-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-width: 0;
}

.qp-watch-brand-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.qp-watch-brand-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

.qp-watch-expand-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.qp-watch-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.qp-watch-expand-btn:hover {
  border-color: var(--emerald-border);
  color: var(--emerald-text);
  background: var(--emerald-soft);
  transform: translateY(-1px);
}

.qp-watch-pagination {
  margin-top: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .qp-reveal,
  .qp-modal-backdrop.is-open .qp-modal-box,
  .qp-seg-indicator,
  .qp-live-feed-text,
  .qp-hub-tile,
  .qp-ledger-col,
  .qp-card,
  .qp-subtag-btn,
  .qp-watch-subbtn,
  .qp-watch-expand-btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
