/* 白皮书中心 v2 — 行业/方案/语言筛选 · 星表单主推 */
:root {
  --wph-emerald: #1D4ED8;
  --wph-emerald-dark: #1E40AF;
  --wph-emerald-light: #EFF4FF;
  --wph-jdy: #2563eb;
  --wph-jdy-dark: #1d4ed8;
  --wph-jdy-light: #eff6ff;
  --wph-border: #DEE0E3;
  --wph-muted: #64748b;
}

/* 语言切换条 */
.wp-lang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 1rem;
  background: #F6F6FB;
  border: 1px solid var(--wph-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}
.wp-lang-bar__label { color: var(--wph-muted); font-weight: 600; }
.wp-lang-bar a {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  color: #334155;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.wp-lang-bar a:hover { background: #fff; border-color: var(--wph-border); }
.wp-lang-bar a.is-active {
  background: var(--wph-emerald);
  color: #fff;
  font-weight: 700;
}

/* 星表单主推 Hero */
.wp-jdy-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #1456F0 100%);
  color: #fff;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25);
}
.wp-jdy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.wp-jdy-hero__inner { position: relative; z-index: 1; }
.wp-jdy-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.wp-jdy-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.wp-jdy-hero p {
  font-size: 0.92rem;
  opacity: 0.95;
  max-width: 42rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.wp-jdy-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}
.wp-jdy-hero__stat strong { display: block; font-size: 1.35rem; font-weight: 800; }
.wp-jdy-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.wp-jdy-hero__actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.wp-jdy-hero__actions a:hover { transform: translateY(-1px); }
.wp-jdy-hero__actions .btn-primary {
  background: #fff;
  color: var(--wph-jdy-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.wp-jdy-hero__actions .btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}

/* 统计条 */
.wp-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.wp-stat-chip {
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: #fff;
  border: 1px solid var(--wph-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.wp-stat-chip strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--wph-emerald-dark);
}
.wp-stat-chip span { font-size: 0.78rem; color: var(--wph-muted); }

/* 筛选栏 */
.wp-filter-panel {
  background: #fff;
  border: 1px solid var(--wph-border);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.wp-filter-group { margin-bottom: 0.85rem; }
.wp-filter-group:last-child { margin-bottom: 0; }
.wp-filter-group__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wph-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}
.wp-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.wp-filter-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--wph-border);
  background: #F6F6FB;
  color: #334155;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.wp-filter-chip:hover { border-color: var(--wph-emerald); color: var(--wph-emerald-dark); }
.wp-filter-chip.is-active {
  background: var(--wph-emerald);
  border-color: var(--wph-emerald);
  color: #fff;
  font-weight: 600;
}
.wp-filter-chip--jdy.is-active {
  background: var(--wph-jdy);
  border-color: var(--wph-jdy);
}

/* 分区标题 */
.wp-section { margin-bottom: 2rem; }
.wp-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wph-emerald-light);
}
.wp-section__head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--wph-emerald-dark);
}
.wp-section__head p { font-size: 0.85rem; color: var(--wph-muted); margin: 0; }
.wp-section--jdy .wp-section__head { border-bottom-color: #bfdbfe; }
.wp-section--jdy .wp-section__head h2 { color: var(--wph-jdy-dark); }

/* 卡片网格 */
.wp-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
.wp-hub-card {
  background: #fff;
  border: 1px solid var(--wph-border);
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.wp-hub-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #C9CDD4;
  transform: translateY(-2px);
}
.wp-hub-card.is-hidden { display: none !important; }
.wp-hub-card--featured {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 40%);
}
.wp-hub-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.wp-hub-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--wph-emerald-light);
  color: var(--wph-emerald-dark);
  font-weight: 600;
}
.wp-hub-tag--jdy { background: var(--wph-jdy-light); color: var(--wph-jdy-dark); }
.wp-hub-tag--lang { background: #F2F3F5; color: #475569; }
.wp-hub-meta { font-size: 0.76rem; color: #94a3b8; }
.wp-hub-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--wph-emerald-dark);
  line-height: 1.4;
  margin: 0;
}
.wp-hub-card--featured h3 { color: var(--wph-jdy-dark); }
.wp-hub-card p {
  font-size: 0.86rem;
  color: var(--wph-muted);
  flex: 1;
  line-height: 1.6;
  margin: 0;
}
.wp-hub-card a.read,
.wp-hub-card a.read-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  width: fit-content;
}
.wp-hub-card a.read {
  background: var(--wph-emerald);
  color: #fff;
}
.wp-hub-card--featured a.read {
  background: var(--wph-jdy);
}
.wp-hub-card a.read-secondary {
  background: #F2F3F5;
  color: #334155;
}
.wp-hub-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.wp-hub-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.88rem;
  color: #78350f;
  margin-bottom: 1.25rem;
}
.wp-hub-note--fusion {
  border-color: #B8CCFF;
  background: #EFF4FF;
  color: #1E40AF;
}

.wp-empty-state {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--wph-muted);
  font-size: 0.9rem;
}
.wp-empty-state.is-visible { display: block; }

/* 三层级导航 */
.wp-tier-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.wp-tier-nav__btn {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--wph-border);
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s;
}
.wp-tier-nav__btn:hover { border-color: var(--wph-emerald); color: var(--wph-emerald-dark); }
.wp-tier-nav__btn.is-active {
  background: var(--wph-emerald-dark);
  border-color: var(--wph-emerald-dark);
  color: #fff;
}
.wp-section--flagship .wp-section__head { border-bottom-color: #fde68a; }
.wp-section--flagship .wp-section__head h2 { color: #92400e; }
.wp-section--brief .wp-section__head { border-bottom-color: #DEE0E3; }
.wp-section--brief .wp-section__head h2 { color: #475569; }
.wp-hub-tag--tier-flagship { background: #fef3c7; color: #92400e; }
.wp-hub-tag--tier-industry { background: #dbeafe; color: #1d4ed8; }
.wp-hub-tag--tier-brief { background: #F2F3F5; color: #475569; }

@media (max-width: 640px) {
  .wp-jdy-hero { padding: 1.5rem 1rem; }
  .wp-jdy-hero__actions a { flex: 1 1 auto; justify-content: center; min-width: min(100%, 160px); }
  .wp-filter-chip { font-size: 0.78rem; padding: 0.3rem 0.6rem; }
}
