/* 怨念收集 · 三方案聚合 */
body {
  margin: 0;
  background: radial-gradient(circle at 30% 10%, #1a0f1a, #0a050a, #030103);
  min-height: 100vh;
  font-family: 'Poppins', 'Noto Serif SC', cursive;
  color: #f0e6ff;
}

.grudge-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-title {
  text-align: center;
  font-size: 48px;
  font-weight: 900;
  color: #e0d0ff;
  text-shadow: 0 0 20px #7f3faf;
  margin-bottom: 10px;
}
.page-subtitle {
  text-align: center;
  color: #b0a0c0;
  margin-bottom: 40px;
  font-style: italic;
}

/* 选项卡 */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tab-btn {
  background: rgba(20,8,25,0.7);
  border: 1px solid #6f4f6f;
  color: #c0b0d0;
  padding: 12px 24px;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(5px);
}
.tab-btn.active {
  background: #5f2f4f;
  border-color: #af6f9f;
  color: #ffeaaf;
  box-shadow: 0 0 15px #7f3f5f;
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* 通用卡片 */
.grudge-card {
  background: rgba(10,5,15,0.75);
  backdrop-filter: blur(8px);
  border-radius: 40px;
  padding: 32px 24px;
  box-shadow: 0 0 30px rgba(80,0,40,0.5), inset 0 0 15px rgba(100,0,80,0.3);
  border: 1px solid #6f4f6f;
  margin-bottom: 30px;
}
.card-title {
  font-size: 28px;
  font-weight: 700;
  color: #d9c4ff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px dashed #5f3f4f;
  padding-bottom: 12px;
}

/* 表单 */
.grudge-input {
  width: 100%;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid #6f4f6f;
  border-radius: 30px;
  color: #e0d0ff;
  font-size: 16px;
  margin-bottom: 16px;
  resize: vertical;
}
.btn {
  background: #5f2f4f;
  border: 1px solid #9f6f8f;
  border-radius: 60px;
  padding: 14px 28px;
  color: #ffeaaf;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
}
.btn:hover {
  background: #7f3f5f;
  box-shadow: 0 0 15px #7f3f5f;
}
.btn-secondary {
  background: transparent;
  border: 1px solid #8f7faf;
  color: #c0b0d0;
}
.btn-secondary:hover {
  background: rgba(80,40,80,0.5);
}

/* 怨念体画布 */
.monster-canvas {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1/1;
  margin: 20px auto;
  background: #1a0f2a;
  border-radius: 30px;
  border: 2px solid #6f4f6f;
  display: block;
}

/* 破坏池画布 */
.break-canvas {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1/1;
  margin: 20px auto;
  background: #0a050a;
  border-radius: 30px;
  border: 2px solid #8f7faf;
  display: block;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="none" stroke="%23ff5555" stroke-width="2"/><circle cx="12" cy="12" r="2" fill="%23ff5555"/></svg>') 12 12, crosshair;
}

/* 怨念图鉴 */
.monster-collection {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.collection-item {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #2a1a3a;
  border: 1px solid #9f6f9f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: inset 0 0 10px #000;
}

/* 响应式 */
@media (max-width: 640px) {
  .grudge-container { padding: 20px 12px; }
  .page-title { font-size: 36px; }
  .tab-btn { padding: 8px 16px; font-size: 14px; }
}

/* 工具按钮 */
.tool-btn {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid #6f4f6f;
  border-radius: 60px;
  padding: 12px 0;
  color: #c0b0d0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tool-btn.active {
  background: #5f2f4f;
  border-color: #ffd966;
  color: #ffeaaf;
  box-shadow: 0 0 10px #7f3f5f;
}