/* ===== 星光岛 2-1 ===== */
.star-island-page {
  position: relative;
  width: 100%;
  height: calc(100dvh - 100px);
  min-height: 620px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.star-island-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.star-island-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(10, 12, 46, 0.2) 50%, rgba(10, 12, 46, 0.45) 100%);
  pointer-events: none;
}

.star-island-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 28px 12px;
  overflow-y: auto;
}

/* 顶部标题 */
.si-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.si-title-group {
  text-align: center;
  flex: 1;
}

.si-title {
  font-size: 48px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 6px;
  text-shadow:
    0 0 20px rgba(123, 108, 219, 0.8),
    0 0 45px rgba(123, 108, 219, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.4);
  margin-bottom: 6px;
}

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

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

/* 主区域 */
.si-main {
  flex: 1;
  display: flex;
  gap: 18px;
  min-height: 0;
  margin-bottom: 12px;
}

.si-left-col,
.si-right-col {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.si-center {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.si-center-pin {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 30px rgba(123, 108, 219, 0.6));
  animation: si-pin-float 3.5s ease-in-out infinite;
  pointer-events: none;
}

.si-center-pin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes si-pin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 玻璃面板 */
.si-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(35, 42, 120, 0.72) 0%, rgba(22, 28, 90, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.si-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.si-panel-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

/* 岛屿介绍 */
.si-intro-panel {
  flex: 0 0 auto;
}

.si-intro-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.si-intro-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.si-intro-text .si-intro-gap {
  margin-top: 8px;
}

.si-intro-star {
  width: 92px;
  height: 92px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(244, 197, 66, 0.45));
  margin-right: -6px;
  margin-bottom: -6px;
}

/* 今日探索任务 */
.si-tasks-panel {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.si-task-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.si-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
  cursor: pointer;
}

.si-task-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(4px);
}

.si-task-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.si-task-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.si-task-progress {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-gold-light);
}

/* 星光地图 */
.si-map-panel {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.si-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 14, 60, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.si-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.si-map-tag {
  position: absolute;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(20, 26, 80, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.si-map-tag.tag-castle { top: 10%; right: 10%; }
.si-map-tag.tag-harbor { top: 38%; left: 58%; transform: translateX(-50%); }
.si-map-tag.tag-garden { bottom: 30%; left: 8%; }
.si-map-tag.tag-courage { bottom: 12%; right: 16%; }

/* 星愿故事屋 */
.si-story-panel {
  flex: 0 0 auto;
}

.si-story-card {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.si-story-img {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
  object-position: 18% center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.si-story-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.si-story-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.si-story-info p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
}

/* 勇气挑战 */
.si-courage-panel {
  flex: 1;
  min-height: 0;
}

.si-courage-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.si-courage-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.si-courage-shield {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(244, 197, 66, 0.35));
}

.si-courage-meta {
  flex: 1;
  min-width: 0;
}

.si-badge-name {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.si-badge-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.si-badge-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.si-badge-bar > div {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #FFD166, #F4B942);
  box-shadow: 0 0 8px rgba(244, 197, 66, 0.5);
}

.si-badge-progress > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-gold-light);
}

.si-courage-fox {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(123, 108, 219, 0.35));
  margin-right: -8px;
}

/* 星星宝箱 */
.si-treasure-panel {
  flex: 0 0 auto;
}

.si-treasure-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.si-treasure-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.si-treasure-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.si-treasure-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.si-treasure-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-gold-light);
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.45);
}

.si-treasure-count img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.si-treasure-chest {
  width: 110px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(244, 197, 66, 0.35));
}

/* 按钮 */
.si-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 38px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.si-btn-primary {
  background: linear-gradient(180deg, #FFECB3 0%, #FFD166 35%, #F4C542 65%, #E8A838 100%);
  color: #5C3D05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow:
    0 4px 0 #C97D20,
    0 6px 16px rgba(244, 197, 66, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.si-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #C97D20,
    0 10px 22px rgba(244, 197, 66, 0.5);
}

.si-btn-secondary {
  background: linear-gradient(180deg, rgba(110, 140, 245, 0.82) 0%, rgba(75, 105, 220, 0.88) 50%, rgba(55, 85, 195, 0.92) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 4px 0 rgba(35, 60, 150, 0.9),
    0 6px 16px rgba(60, 90, 200, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.si-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 rgba(35, 60, 150, 0.9),
    0 10px 22px rgba(60, 90, 200, 0.45);
}

/* 底部栏 */
.si-bottom-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(200, 210, 255, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.si-bottom-left {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.si-bottom-fox {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(123, 108, 219, 0.35));
  margin-bottom: -8px;
}

.si-bottom-text {
  font-size: 15px;
  font-weight: 800;
  color: #1A1240;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.si-bottom-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.si-bottom-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
}

.si-bottom-action:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.si-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.si-bottom-action[data-action="partners"] .si-action-icon {
  background: linear-gradient(135deg, #A8E6CF 0%, #7FD6B0 100%);
}

.si-bottom-action[data-action="hidden"] .si-action-icon {
  background: linear-gradient(135deg, #FFE9A8 0%, #F5D88A 100%);
}

.si-bottom-action[data-action="items"] .si-action-icon {
  background: linear-gradient(135deg, #D4C9FF 0%, #B8A8F0 100%);
}

.si-bottom-action[data-action="growth"] .si-action-icon {
  background: linear-gradient(135deg, #FFF0B3 0%, #FFE08A 100%);
}

.si-action-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* 底部栏 CSS 图标 */
.si-icon-potion,
.si-icon-star,
.si-icon-planet {
  display: inline-block;
  position: relative;
}

.si-icon-potion {
  width: 18px;
  height: 22px;
}

.si-icon-potion::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #C084FC 0%, #9B59F0 100%);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.si-icon-potion::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(180deg, #D9A8FF 0%, #C084FC 100%);
}

.si-icon-star {
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.si-icon-planet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A8D8FF 0%, #7BB8FF 50%, #5A9FE8 100%);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.si-icon-planet::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  width: 28px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.si-back-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.si-action-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.si-action-text strong {
  font-size: 14px;
  font-weight: 800;
  color: #2D1F5C;
}

.si-action-text small {
  font-size: 11px;
  color: #5A4D8A;
}

.si-back-world {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: all 0.25s ease;
}

.si-back-world:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateX(-3px);
}

.si-back-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #1A1240;
}

.si-back-title span:last-child {
  margin-left: auto;
  font-size: 18px;
  color: #4A3D7A;
}

.si-back-world p {
  font-size: 12px;
  color: #3A2D6A;
  line-height: 1.45;
  font-weight: 600;
}

/* 响应式 */
@media (max-width: 1300px) {
  .si-left-col,
  .si-right-col {
    width: 260px;
  }

  .si-title {
    font-size: 40px;
  }

  .si-center-pin {
    width: 170px;
    height: 170px;
  }

  .si-bottom-action {
    padding: 8px 12px;
  }

  .si-action-text small {
    display: none;
  }
}

@media (max-width: 1100px) {
  .si-left-col,
  .si-right-col {
    width: 230px;
  }

  .si-bottom-fox {
    width: 70px;
    height: 70px;
  }

  .si-bottom-text {
    font-size: 13px;
  }
}
