/* monster.css - 酷炫版 */
:root {
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --accent-color: #ff416c;
  --dark-bg: #0f1525;
  --card-bg: rgba(255, 255, 255, 0.08);
  --text-light: #ffffff;
  --text-gray: #a0aec0;
  --success-color: #38b2ac;
  --warning-color: #ed8936;
  --danger-color: #f56565;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Exo 2', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #0f1525 0%, #1a1f35 100%);
  color: var(--text-light);
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
}

body.loaded {
  animation: fadeIn 0.8s ease-out;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 10;
}

/* 顶部装饰 */
.top-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  overflow: hidden;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), transparent);
  opacity: 0.1;
}

.decoration-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -100px;
}

.decoration-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 50px;
  right: 10%;
  background: linear-gradient(135deg, var(--accent-color), transparent);
}

.decoration-circle:nth-child(3) {
  width: 150px;
  height: 150px;
  bottom: 100px;
  left: 20%;
  background: linear-gradient(135deg, var(--secondary-color), transparent);
}

/* 标题区域 */
.header {
  text-align: center;
  padding: 30px 20px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.main-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  background: linear-gradient(to right, #6a11cb, #2575fc, #ff416c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.4rem;
  color: var(--text-gray);
  margin-bottom: 30px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}

/* 导航按钮 */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-btn {
  background: linear-gradient(135deg, var(--primary-color), #8a2be2);
  color: white;
}

.more-btn {
  background: linear-gradient(135deg, var(--accent-color), #ff4b2b);
  color: white;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn:active {
  transform: translateY(-1px);
}

/* 怪物容器 */
.monster-container {
  background: rgba(15, 21, 37, 0.7);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.section-title i {
  margin-right: 15px;
  color: var(--accent-color);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
  margin-left: 20px;
  font-weight: 300;
}

/* 怪物列表 */
.monster-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.monster-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 25px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.monster-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(106, 17, 203, 0.2);
  border-color: var(--primary-color);
}

.monster-card-icon {
  font-size: 3rem;
  margin-right: 20px;
  flex-shrink: 0;
}

.monster-card-content {
  flex-grow: 1;
}

.monster-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.monster-card-level {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.monster-card-action {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--accent-color);
  font-weight: 600;
}

.monster-card-action i {
  margin-right: 8px;
}

.monster-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

/* 统计信息 */
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  padding: 25px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.stat-item i {
  font-size: 1.5rem;
  margin-right: 15px;
  color: var(--secondary-color);
}

.stat-item strong {
  color: var(--accent-color);
  margin-left: 5px;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: linear-gradient(145deg, #1a1f35, #0f1525);
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease-out;
}

.modal-header {
  padding: 25px 30px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
}

.modal-header h2 i {
  margin-right: 15px;
  color: var(--accent-color);
}

.close {
  color: var(--text-gray);
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: var(--accent-color);
}

.modal-body {
  padding: 30px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

.monster-info {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.monster-icon {
  font-size: 3.5rem;
  margin-right: 20px;
}

.monster-name {
  font-size: 2rem;
  font-weight: 700;
  margin-right: 20px;
}

.monster-level {
  font-size: 1.2rem;
  color: var(--text-gray);
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 15px;
  border-radius: 50px;
}

.drop-header {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
}

.drop-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.drop-item {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(10px);
}

.drop-item.animate-in {
  animation: fadeInUp 0.4s forwards;
}

.drop-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.drop-name {
  display: flex;
  align-items: center;
  flex: 1;
}

.drop-name i {
  margin-right: 12px;
  color: var(--secondary-color);
}

.drop-rate {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.rate-badge {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.rate-raw {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.rate-high .rate-badge {
  color: var(--success-color);
}

.rate-medium .rate-badge {
  color: var(--warning-color);
}

.rate-low .rate-badge {
  color: var(--text-gray);
}

.no-drops {
  text-align: center;
  padding: 40px;
  color: var(--text-gray);
  font-size: 1.2rem;
}

.no-drops i {
  font-size: 2rem;
  margin-bottom: 15px;
  display: block;
  color: var(--warning-color);
}

.drop-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
}

.drop-stats span {
  color: var(--accent-color);
  font-weight: 700;
}

/* 底部信息 */
.footer {
  margin-top: 60px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo i {
  margin-right: 15px;
  color: var(--accent-color);
}

.footer-info {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-gray);
}

.footer-info a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-info a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.footer-separator {
  margin: 0 15px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1.3rem;
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 背景动画 */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

.particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
  animation-duration: 20s;
}

.particle:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 15%;
  animation-delay: -10s;
}

.particle:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 20%;
  animation-delay: -2s;
  animation-duration: 25s;
}

.particle:nth-child(5) {
  width: 70px;
  height: 70px;
  bottom: 40%;
  left: 80%;
  animation-delay: -8s;
}

/* 通知样式 */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 10px;
  background: var(--dark-bg);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  z-index: 1001;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  border-left: 5px solid var(--primary-color);
}

.notification.show {
  transform: translateX(0);
}

.notification-error {
  border-left-color: var(--danger-color);
}

.notification i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* 动画定义 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
  
  .nav-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .monster-list {
    grid-template-columns: 1fr;
  }
  
  .stats {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .monster-info {
    flex-direction: column;
    text-align: center;
  }
  
  .monster-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .monster-name {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .section-subtitle {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .drop-header, .drop-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .drop-rate {
    align-items: flex-start;
  }
  
  .drop-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-logo {
    font-size: 1.8rem;
  }
  
  .footer-info {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.6rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
}
/* 怪物卡片统计信息样式 */
.monster-card-stats {
  margin: 10px 0;
  font-size: 12px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin: 3px 0;
  line-height: 1.2;
}

.stat-label {
  color: #aaa;
  font-weight: 300;
}

.stat-value {
  color: #fff;
  font-weight: 500;
}

/* 无数据提示样式 */
.no-data {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 16px;
}

.no-data i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}

/* 数字格式化样式 */
.monster-card-stats .stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
}
