/* ===== 能力星图 5-2 ===== */
.star-map-page {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sm-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sm-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.sm-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 35% 50%, transparent 0%, rgba(10, 12, 46, 0.2) 55%, rgba(10, 12, 46, 0.45) 100%);
  pointer-events: none;
}

.sm-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 28px 24px;
  pointer-events: none;
  overflow-y: auto;
}

.sm-header {
  text-align: center;
  margin-bottom: 16px;
  pointer-events: auto;
}

.sm-title {
  font-size: 44px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 4px;
  text-shadow:
    0 0 20px rgba(123, 108, 219, 0.75),
    0 0 45px rgba(244, 197, 66, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.35);
  margin-bottom: 8px;
}

.sm-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #FFF5C8;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 1px 8px rgba(244, 197, 66, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.sm-subtitle .sm-star {
  color: #FFD166;
  font-size: 13px;
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.9);
}

.sm-main {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 24px;
  min-height: 0;
}

.sm-radar-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.sm-radar-panel {
  position: relative;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-radar-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
}

.sm-radar-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sm-radar-chart {
  position: relative;
  width: 220px;
  height: 220px;
  pointer-events: auto;
}

.sm-radar-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sm-radar-grid {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 1;
}

.sm-radar-area {
  fill: rgba(123, 108, 219, 0.45);
  stroke: var(--primary-gold);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(244, 197, 66, 0.5));
}

.sm-radar-point {
  fill: var(--primary-gold);
  filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.9));
}

.sm-radar-label {
  position: absolute;
  left: var(--sm-x);
  top: var(--sm-y);
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* 能力卡片 */
.sm-abilities {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.sm-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(35, 42, 120, 0.78) 0%, rgba(22, 28, 90, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.sm-panel:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
}

.sm-panel:focus-visible {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

.sm-ability-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.sm-ability-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sm-ability-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sm-ability-info strong {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.sm-ability-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.sm-ability-bar {
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.sm-ability-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #FFD166, #F4B942);
  box-shadow: 0 0 8px rgba(244, 197, 66, 0.5);
}

.sm-report-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  color: #5C3D05;
  background: linear-gradient(180deg, #FFECB3 0%, #FFD166 35%, #F4C542 65%, #E8A838 100%);
  box-shadow:
    0 4px 0 #C97D20,
    0 6px 16px rgba(244, 197, 66, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.25s ease;
  margin-top: 6px;
}

.sm-report-link:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #C97D20,
    0 10px 22px rgba(244, 197, 66, 0.55);
}

.sm-report-link span:last-child {
  font-size: 18px;
}

/* 响应式 */
@media (max-width: 1100px) {
  .sm-radar-panel { width: 340px; height: 340px; }
  .sm-abilities { width: 300px; }
  .sm-title { font-size: 38px; }
}

@media (max-width: 900px) {
  .sm-main { flex-direction: column; }
  .sm-abilities { width: 100%; }
  .sm-radar-panel { width: 300px; height: 300px; }
}
