:root {
  --bg-image: url('img/背景.jpg');
  --panel: linear-gradient(180deg, rgba(12, 6, 30, 0.9), rgba(6, 2, 20, 0.8));
  --muted: #b6bcd0;
  --accent1: #00f0ff;
  --accent2: #ff00d0;
  --accent3: #ff7a00;
  --card: rgba(8, 4, 18, 0.6);
  --glass: rgba(255, 255, 255, 0.03);
  --text: #e6f7ff;
  --neon-glow: rgba(255, 0, 208, 0.14);
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: auto;
}

body {
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-image:
    radial-gradient(1200px 600px at 10% 10%, rgba(123, 97, 255, 0.06), transparent 8%),
    radial-gradient(900px 400px at 90% 80%, rgba(255, 97, 200, 0.05), transparent 10%),
    linear-gradient(180deg, rgba(3, 2, 20, 0.6) 0%, rgba(7, 16, 38, 0.6) 60%),
    var(--bg-image);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

.header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03)
}

.header h1 {
  margin: 0;
  font-size: 20px
}

.header .sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px
}

.container {
  display: grid;
  grid-template-columns: 320px 1fr 260px;
  gap: 18px;
  padding: 18px;
  align-items: start;
}

.col .panel {
  background: var(--panel);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(5, 3, 20, 0.6), 0 0 30px var(--neon-glow);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.panel.big {
  padding: 18px
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px
}

.panel-head {
  min-width: 0;
}

.panel-head>* {
  min-width: 0;
  flex-shrink: 1;
}

.col.left .panel-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.panel-head h2 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(255, 97, 200, 0.06);
}

.small-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.small-controls input {
  font-size: 12px
}

.small-controls>* {
  min-width: 0;
  flex-shrink: 1;
}

.small-controls input[type="file"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.small-controls>* {
  min-width: 0;
  flex-shrink: 1
}

@media (max-width: 520px) {
  .col.left .small-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .col.left .file-btn {
    order: -1;
    width: 100%;
  }

  .col.left .small-controls .btn {
    width: 100%;
  }
}

.people-list {
  max-height: 64vh;
  overflow: auto;
  padding-right: 6px
}

.people-list.hide-scrollbar,
.people-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.people-list.hide-scrollbar::-webkit-scrollbar,
.people-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
}

.person img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.person .meta {
  flex: 1
}

.person .meta .name {
  font-weight: 600
}

.person .meta .score {
  color: var(--text);
  font-size: 13px
}

.person .ops {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end
}

.small-btn {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.02);
  cursor: pointer
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
  color: inherit;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
  --shimmer-color: rgba(255, 255, 255, 0.08);
}

.btn {
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 流光伪元素移动渐变 */
.btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.02) 0%, var(--shimmer-color) 45%, rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.01) 100%);
  transform: translateX(-120%) rotate(12deg);
  transition: transform .6s ease, opacity .25s ease;
  pointer-events: none;
  opacity: 0.7;
}

.btn:hover::before {
  transform: translateX(20%) rotate(12deg);
  transition-duration: .6s;
  opacity: 1
}

/* 更激进的发光效果 */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 8px 32px rgba(140, 0, 255, 0.08), 0 0 48px rgba(0, 240, 255, 0.06);
  pointer-events: none;
  opacity: 0.6;
}

.btn:active {
  transform: translateY(1px) scale(0.998);
}

.btn:focus {
  outline: 2px solid rgba(110, 231, 183, 0.18);
  outline-offset: 2px;
}

.btn:hover {
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.65), 0 0 28px var(--neon-glow);
  transform: translateY(-2px);
}

.btn--primary {
  color: var(--text);
  border: none;
  box-shadow: 0 10px 40px rgba(123, 0, 255, 0.12), 0 0 56px rgba(255, 0, 208, 0.06);
  --shimmer-color: rgba(0, 240, 255, 0.12);
}

.btn--primary:hover {
  --shimmer-color: rgba(0, 240, 255, 0.22);
}

.btn--ghost {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text);
  --shimmer-color: rgba(255, 0, 208, 0.12);
}

.btn--ghost:hover {
  --shimmer-color: rgba(255, 0, 208, 0.22);
}

.btn--danger {
  background: linear-gradient(90deg, #ff4b6a, #ff7a00);
  color: var(--text);
  border: none;
  box-shadow: 0 10px 30px rgba(255, 90, 80, 0.12), 0 0 36px rgba(255, 122, 0, 0.06);
  --shimmer-color: rgba(255, 122, 0, 0.12);
}

.btn--danger:hover {
  --shimmer-color: rgba(255, 122, 0, 0.22);
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-btn.btn {
  padding-left: 12px;
  padding-right: 12px
}

.file-btn::after {
  content: '\1F4E5';
  margin-left: 6px;
  opacity: 0.9
}

.hidden-file-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.btn--small {
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 8px
}

.btn--pill {
  border-radius: 999px
}

.icon-btn {
  padding: 8px;
  width: 40px;
  height: 40px;
  justify-content: center
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), #4dd9a5);
  color: var(--text);
  border: none;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .12s ease;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.45);
}

.result-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
  border-radius: 10px;
}

.group {
  flex: 1;
  min-height: 240px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(120, 90, 255, 0.06);
}

.group h3 {
  margin: 0 0 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center
}

#teamAName,
#teamBName {
  display: inline-block;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.6px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 8px;
  position: relative;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: none;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}

#teamAName {
  background-image: linear-gradient(90deg, #00f0ff 0%, #4fffd7 40%, #b7ff6e 100%);
}

#teamBName {
  background-image: linear-gradient(90deg, #ff00d0 0%, #ff7a00 55%, #ffd600 100%);
}

#teamAName,
#teamBName {
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.team-badge {
  transform-origin: center;
  animation: badgeFloat 4s ease-in-out infinite, badgePulse 2.6s ease-in-out infinite;
}

@keyframes badgeFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 8px 34px rgba(0, 0, 0, 0.0);
  }

  50% {
    box-shadow: 0 12px 48px rgba(255, 255, 255, 0.04);
    transform: scale(1.02);
  }

  100% {
    box-shadow: 0 8px 34px rgba(0, 0, 0, 0.0);
    transform: scale(1);
  }
}

@keyframes teamEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes teamExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
}

.group-list li {
  will-change: opacity, transform;
}

.group-item-enter {
  animation: teamEnter .48s cubic-bezier(.2, .9, .2, 1) both;
}

.group-item-exit {
  animation: teamExit .36s cubic-bezier(.4, .0, .2, 1) both;
}

.group.play-enter {
  animation: groupPop .42s ease both;
}

@keyframes groupPop {
  from {
    transform: scale(0.995);
  }

  50% {
    transform: scale(1.01);
  }

  to {
    transform: scale(1);
  }
}

#teamAName::after,
#teamBName::after {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  top: -6px;
  bottom: -6px;
  border-radius: 10px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

#teamAName::after {
  box-shadow: 0 8px 40px rgba(0, 240, 255, 0.12), 0 0 80px rgba(0, 240, 255, 0.08);
}

#teamBName::after {
  box-shadow: 0 8px 40px rgba(255, 0, 208, 0.12), 0 0 80px rgba(255, 122, 0, 0.08);
}

#teamAName:hover,
#teamBName:hover {
  transform: translateY(-2px) scale(1.03);
  transition: transform .12s ease;
}

.group-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.group-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15)
}

/* 分组中头像更大、更清晰 */
.group-list img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}

.vs {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.2), 0 0 18px rgba(255, 97, 200, 0.08);
}

.panel-foot {
  margin-top: 12px
}

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.controls>* {
  min-width: 0;
  flex-shrink: 1;
}

.ops p {
  font-size: 13px;
  color: var(--muted)
}

.ops-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px
}

.ops-buttons>* {
  min-width: 0;
  flex-shrink: 1;
}

.ops-buttons button.btn {
  display: inline-flex
}

.footer {
  text-align: center;
  padding: 12px;
  color: var(--muted);
  font-size: 13px
}

/* Modal*/
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[aria-hidden="true"] {
  display: none
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  width: 560px;
  max-width: 94%;
  background: linear-gradient(180deg, rgba(10, 8, 20, 0.94), rgba(6, 4, 18, 0.96));
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 20px 80px rgba(2, 2, 8, 0.8);
  border: 1px solid rgba(120, 90, 255, 0.08);
  z-index: 90;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-panel {
  max-height: calc(100vh - 48px);
  overflow: auto
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.modal-head h3 {
  margin: 0;
  font-size: 16px
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  max-width: 520px
}

.modal-body label {
  display: block;
  font-size: 13px
}

.modal-body input[type="text"],
.modal-body input[type="number"] {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text)
}

.modal-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  width: 100%;
  max-width: 520px
}

.modal-foot>* {
  flex-shrink: 0
}

.modal-foot .spacer {
  flex: 1
}

@media(max-width:980px) {
  .container {
    grid-template-columns: 1fr;
    padding: 12px
  }

  .col.right {
    order: 3
  }

  .col.center {
    order: 2
  }

  .col.left {
    order: 1
  }

  .panel.big {
    margin-bottom: 12px
  }
}

.team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-right: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 255, 255, 0.02);
  color: white;
}

.team-badge.glow-cyan {
  box-shadow: 0 8px 34px rgba(0, 240, 255, 0.12), 0 0 60px rgba(0, 240, 255, 0.06);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(123, 255, 200, 0.06));
}

.team-badge.glow-magenta {
  box-shadow: 0 8px 34px rgba(255, 0, 208, 0.12), 0 0 60px rgba(255, 0, 208, 0.06);
  background: linear-gradient(90deg, rgba(255, 0, 208, 0.12), rgba(255, 120, 120, 0.04));
}

.team-badge.glow-orange {
  box-shadow: 0 8px 34px rgba(255, 122, 0, 0.12), 0 0 60px rgba(255, 122, 0, 0.06);
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.12), rgba(255, 216, 120, 0.04));
}

/* 海克斯系统样式 */
.hearthstone-section {
  background: rgba(0, 229, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 255, 0.2);
  margin-top: 20px;
}

.pool-selector {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.pool-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.pool-btn.active {
  background: linear-gradient(45deg, #00e5ff, #9d4edd);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-top: 20px;
}

.card {
  width: 200px;
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card-front {
  background: linear-gradient(135deg, #00e5ff, #9d4edd);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
}

.card-back {
  background: linear-gradient(135deg, #ff6b00, #d35400);
  color: white;
  transform: rotateY(180deg);
  padding: 20px;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
}

.buff-name {
  font-size: 1.4rem;
  font-weight: bold;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}

.buff-desc {
  font-size: 1rem;
  max-height: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.buff-type {
  padding: 6px 15px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: bold;
}

.positive {
  background: rgba(46, 204, 113, 0.3);
  border: 1px solid rgba(46, 204, 113, 0.5);
}

.negative {
  background: rgba(231, 76, 60, 0.3);
  border: 1px solid rgba(231, 76, 60, 0.5);
}

.card-zoom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 26, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.card-zoom.active {
  opacity: 1;
  pointer-events: all;
}

.zoomed-card {
  width: 500px;
  height: 650px;
  transform: scale(0.7);
  transition: transform 0.5s;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, #ff6b00, #d35400);
  color: white;
  text-align: center;
}

.card-zoom.active .zoomed-card {
  transform: scale(1);
}

.zoomed-buff-name {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}

.zoomed-buff-desc {
  font-size: 1.5rem;
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}

.zoomed-buff-type {
  padding: 12px 30px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: bold;
}

.current-turn {
  text-align: center;
  margin: 15px 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #00e5ff;
  padding: 10px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.group.active {
  box-shadow: 0 0 0 3px #00e5ff, 0 0 20px rgba(0, 229, 255, 0.5);
}

.member-buffs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  margin-top: 5px;
}

.buff-tag {
  background: rgba(46, 204, 113, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid rgba(46, 204, 113, 0.5);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buff-tag.positive {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.5);
  color: #2ecc71;
}

.buff-tag.negative {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.5);
  color: #e74c3c;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  text-align: center;
}

/* 分组列表中显示海克斯效果 */
.group-list .member-buffs {
  display: flex;
  flex-direction: row;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: 10px;
}

.group-list .buff-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  cursor: help;
  animation: teamEnter 0.48s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.group-list .buff-tag:hover::after {
  content: attr(data-desc);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: normal;
  width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 分组中成员信息布局调整 */
.group-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

.group-list .member-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.group-list .member-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.group-list .member-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-list .member-score {
  font-size: 12px;
  color: #9aa4b2;
}

/* 成装显示在昵称底部 */
.group-list .member-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.group-list .item-tag {
  background: linear-gradient(45deg, #9d4edd, #c77dff);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  border: 1px solid rgba(157, 78, 221, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
  position: relative;
  cursor: help;
}

.group-list .item-tag:hover::after {
  content: attr(data-desc);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: normal;
  width: 180px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(157, 78, 221, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hearthstone-section {
    padding: 15px;
  }

  .pool-selector {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 150px;
    height: 210px;
  }

  .buff-name {
    font-size: 1.1rem;
  }

  .buff-desc {
    font-size: 0.8rem;
  }

  .zoomed-card {
    width: 90%;
    height: auto;
    min-height: 500px;
    padding: 20px;
  }

  .zoomed-buff-name {
    font-size: 1.8rem;
  }

  .zoomed-buff-desc {
    font-size: 1.1rem;
  }
}

/* 海克斯卡片翻转动画优化 */
.card-inner {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 选择器状态指示 */
.pool-selector {
  position: relative;
}

.pool-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pool-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.pool-btn:hover::before {
  left: 100%;
}

/* 卡片悬停效果 */
.card:hover .card-inner {
  transform: translateY(-5px);
}

.card.flipped:hover .card-inner {
  transform: rotateY(180deg) translateY(-5px);
}

/* LOL成装相关样式 */
.team-selection {
  text-align: center;
  margin-bottom: 20px;
}

.team-selection h4 {
  margin-bottom: 15px;
  color: #00e5ff;
}

.team-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 成装显示在昵称底部 */
.member-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.member-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.member-items .item-tag {
  background: linear-gradient(45deg, #9d4edd, #c77dff);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: teamEnter 0.48s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

/* 成员选择样式 */
.member-selection {
  max-height: 300px;
  overflow-y: auto;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
}

.member-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.member-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.member-option.selected {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.member-option-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.member-option-name {
  flex: 1;
  font-size: 14px;
}

.member-option-team {
  font-size: 12px;
  color: #9aa4b2;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

/* 分组列表中显示成装 */
.group-list .member-items {
  margin-left: 0;
}

.group-list .item-tag {
  background: linear-gradient(45deg, #9d4edd, #c77dff);
  font-size: 0.65rem;
  padding: 2px 6px;
  margin-right: 4px;
  margin-bottom: 2px;
}

/* 确保分组列表布局正确 */
.group-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

.group-list .member-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.group-list .member-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.group-list .member-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-list .member-score {
  font-size: 12px;
  color: #9aa4b2;
}

.group-list .member-buffs {
  display: flex;
  flex-direction: row;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: 10px;
}

.group-list .buff-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  cursor: help;
  animation: teamEnter 0.48s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.group-list .buff-tag:hover::after {
  content: attr(data-desc);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: normal;
  width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .group-list .buff-tag {
    max-width: 80px;
    font-size: 0.6rem;
  }

  .group-list .item-tag {
    font-size: 0.6rem;
    max-width: 70px;
  }

  .member-selection {
    max-height: 200px;
  }
}

/* 搜索框样式 */
.search-box {
  position: relative;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 12px;
}

.clear-search-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

/* 搜索结果高亮 */
.search-highlight {
  background: linear-gradient(45deg, #00e5ff, #9d4edd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* 无搜索结果提示 */
.no-results {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* 搜索统计信息 */
.search-stats {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}