/* ============================================================
   棋风投资 Demo · 视觉升级补丁
   叠加在旧样式上，仅包含该 Demo 专属的视觉增强
   ============================================================ */

/* --- 页面头部升级 --- */
.page-header {
  position: relative;
  padding: 50px 0 36px !important;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.15), transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--cyan) 25%,
    var(--purple) 50%,
    var(--gold) 75%,
    var(--text-primary) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 4s ease-in-out infinite;
  font-family: var(--font-display);
  font-size: 36px !important;
  position: relative;
}

.page-header p {
  position: relative;
}

/* --- 气质标签筛选栏 --- */
.temperament-filter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.temp-filter-btn {
  padding: 4px 14px;
  font-size: 11px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(167, 139, 250, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.05em;
}

.temp-filter-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.temp-filter-btn.active-nt { background: var(--nt-color-bg); border-color: rgba(34, 211, 238, 0.4); color: var(--nt-color); }
.temp-filter-btn.active-nf { background: var(--nf-color-bg); border-color: rgba(244, 114, 182, 0.4); color: var(--nf-color); }
.temp-filter-btn.active-sj { background: var(--sj-color-bg); border-color: rgba(167, 139, 250, 0.4); color: var(--sj-color); }
.temp-filter-btn.active-sp { background: var(--sp-color-bg); border-color: rgba(251, 191, 36, 0.4); color: var(--sp-color); }

/* --- 棋风组卡片增强 --- */
.temp-card {
  position: relative;
  overflow: hidden;
  background: rgba(20, 18, 45, 0.5) !important;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(167, 139, 250, 0.18) !important;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.temp-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(167, 139, 250, 0.1);
}

.temp-card .tc-header {
  position: relative;
}

.temp-card .tc-symbol {
  font-size: 2rem;
  filter: drop-shadow(0 2px 12px rgba(167, 139, 250, 0.4));
}

.temp-card .tc-name {
  font-weight: 700;
  font-size: 18px;
}

.temp-card .tc-archetype {
  font-size: 12px;
  color: var(--text-secondary);
}

.temp-card .tc-line {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  border-bottom: 1px solid rgba(167, 139, 250, 0.08);
}

.temp-card .tc-line strong {
  color: var(--purple);
  font-weight: 600;
  margin-right: 6px;
}

.temp-card .tc-poem {
  font-size: 12px;
  font-style: italic;
  color: var(--gold);
  padding: 8px 0;
  border-left: 2px solid rgba(251, 191, 36, 0.3);
  padding-left: 10px;
  margin: 8px 0;
  line-height: 1.6;
}

.temp-card .tc-members {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- 投资人卡片增强 --- */
.investor-card {
  position: relative;
  overflow: hidden;
  background: rgba(20, 18, 45, 0.5) !important;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(167, 139, 250, 0.18) !important;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.investor-card:hover {
  border-color: var(--purple) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(167, 139, 250, 0.12) !important;
  transform: translateY(-3px);
}

.investor-card .investor-name {
  background: linear-gradient(135deg, var(--text-primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.investor-card .investor-style {
  color: var(--gold);
  font-size: 11px;
}

/* --- 图表容器增强 --- */
.chart-container {
  position: relative;
  background: rgba(20, 18, 45, 0.4);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chart-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
  opacity: 0.4;
}

/* --- 统计卡片增强 --- */
.stat-card {
  position: relative;
  padding: 16px;
  background: rgba(20, 18, 45, 0.4);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: var(--radius-md);
  text-align: center;
  overflow: hidden;
}

.stat-card .s-value {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.stat-card .s-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- 表格增强 --- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(167, 139, 250, 0.2);
  background: rgba(167, 139, 250, 0.03);
}

td {
  padding: 8px;
  border-bottom: 1px solid rgba(167, 139, 250, 0.08);
  color: var(--text-secondary);
}

tr:hover td {
  background: rgba(167, 139, 250, 0.04);
}

.td-high { color: #34D399; font-weight: 600; }
.td-mid { color: #FBBF24; font-weight: 500; }
.td-low { color: #F87171; font-weight: 500; }
.td-blue { color: #60A5FA; font-weight: 600; }
.td-red { color: #F87171; font-weight: 600; }
.td-group { font-size: 11px; color: var(--text-muted); }

/* --- 场景卡片增强 --- */
.scenario-card {
  padding: 20px;
  background: rgba(20, 18, 45, 0.4);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.scenario-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}

.scenario-card .sc-emoji {
  font-size: 2rem;
  margin-bottom: 8px;
}

.scenario-card .sc-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.scenario-card .sc-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.scenario-card .sc-rate {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
}
