/* 全局样式重置 - 干净无冗余 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

/* 页面基础样式 - 暖调童话风底色 */
body {
  background-color: #f8f5ef; /* 浅暖底色 */
  font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
  color: #584830; /* 深木纹文字主色 */
}

/* 主布局容器 - 修复错版核心 */
.main-layout {
  width: 1200px;
  margin: 0 auto;
  padding: 25px 15px;
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 2;
  flex-wrap: nowrap; /* 禁止主布局换行 */
  align-items: flex-start; /* 左右栏顶部对齐 */
}

/* 左侧主内容栏 - 固定宽度比例 */
.left-main-column {
  width: calc(75% - 10px);
}

/* 右侧侧边栏 - 固定宽度比例 */
.right-sidebar {
  width: calc(25% - 10px);
}

/* 通用卡片样式 - 奶油木色主风格 */
.column-card {
  background: #f0e8d8; /* 奶油木色卡片背景 */
  border: 1px solid rgba(168, 136, 96, 0.35); /* 浅木色边框 */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(168, 136, 96, 0.15); /* 暖调轻阴影 */
  margin-bottom: 20px;
  width: 100%; /* 卡片宽度100%，避免溢出 */
}

/* 卡片头部样式 */
.card-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(168, 136, 96, 0.25); /* 浅木色分隔线 */
}

.card-title {
  color: #e69a88; /* 浅杏色标题主色 */
  font-size: 22px;
  font-weight: 600;
  text-align: left;
  text-shadow: 0 0 8px rgba(240, 217, 156, 0.5); /* 暖黄轻阴影 */
}

/* 核心：魔物图鉴介绍文字样式 - 专属class */
.monster-desc {
  color: #584830; /* 深木纹文字，统一风格 */
  font-size: 15px;
  line-height: 1.7; /* 易读行高 */
  margin-bottom: 20px;
}

/* 魔物种族筛选按钮 - 精准过渡（含背景色） */
.column-card > div:nth-child(3) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  width: 100%;
}

.more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: #f5eee3; /* 暖调浅米色初始背景 */
  color: #584830;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid rgba(168, 136, 96, 0.2);
  white-space: nowrap; /* 文字不换行 */
  /* 精准过渡：只过渡需要变化的属性 */
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.more-btn:hover {
  background: #e69a88; /* hover浅杏色背景（有变化才过渡） */
  color: #fff;
  border-color: rgba(168, 136, 96, 0.3);
  box-shadow: 0 2px 8px rgba(230, 154, 136, 0.3);
}

/* 魔物列表样式 - 背景色过渡+精准交互 */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.guide-item {
  background: #f5eee3; /* 初始暖调浅米色 */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(168, 136, 96, 0.1);
  border: 1px solid rgba(168, 136, 96, 0.15);
  /* 含背景色的精准过渡 */
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.guide-item:hover {
  background: #f9f4ed; /* hover更浅的暖米色（背景过渡生效） */
  box-shadow: 0 4px 12px rgba(230, 154, 136, 0.2);
  transform: translateY(-1px); /* 轻微上浮 */
  border-color: rgba(230, 154, 136, 0.2);
}

.guide-item a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #584830;
  width: 100%;
}

/* 魔物图片 - 精准过渡 */
.monster-img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 15px;
  border: 1px solid rgba(168, 136, 96, 0.2);
  flex-shrink: 0; /* 图片不收缩 */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.guide-item:hover .monster-img {
  border-color: rgba(230, 154, 136, 0.3);
  box-shadow: 0 0 8px rgba(230, 154, 136, 0.2);
}

/* 魔物列表内容区 */
.guide-item-content {
  flex: 1;
  min-width: 0; /* 解决文字溢出 */
}

.guide-title {
  font-size: 16px;
  font-weight: 600;
  color: #e69a88;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease; /* 文字颜色过渡 */
}

.guide-item:hover .guide-title {
  color: #e87a6f; /* 珊瑚红hover */
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #7a6953; /* 浅木纹辅助色 */
}

/* 分页组件样式 - 精准过渡 */
.pagination-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 分页按钮 - 含背景色过渡 */
.pagination-btn {
  padding: 8px 15px;
  background: #f5eee3; /* 初始暖调浅米色 */
  color: #584830;
  border: 1px solid rgba(168, 136, 96, 0.2);
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.pagination-btn:disabled {
  background: rgba(168, 136, 96, 0.1);
  color: #99866f;
  cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
  background: #e69a88; /* hover浅杏色（背景过渡） */
  color: #fff;
  box-shadow: 0 2px 6px rgba(230, 154, 136, 0.3);
}

/* 分页数字 - 精准过渡 */
.pagination-numbers {
  display: flex;
  gap: 8px;
}

.pagination-number {
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pagination-number.active {
  background: #e69a88;
  color: #fff;
  border-color: rgba(168, 136, 96, 0.3);
}

.pagination-number:hover:not(.active) {
  background: #f5eee3;
  border-color: rgba(168, 136, 96, 0.2);
}

/* 分页跳转 */
.pagination-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.pagination-input {
  width: 50px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(168, 136, 96, 0.3);
  border-radius: 6px;
  background: #f5eee3;
  color: #584830;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pagination-input:focus {
  outline: none;
  border-color: #e69a88;
  box-shadow: 0 0 6px rgba(230, 154, 136, 0.2);
}

/* 分页跳转按钮 - 精准过渡 */
.pagination-jump-btn {
  padding: 8px 12px;
  background: #e69a88;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.pagination-jump-btn:hover {
  background: #e87a6f; /* 珊瑚红hover */
  box-shadow: 0 2px 6px rgba(230, 154, 136, 0.3);
}

.pagination-info {
  font-size: 14px;
  color: #7a6953;
  margin-left: 10px;
}

/* 热门魔物排行 - 含背景色过渡 */
.rank-item {
  background: #f5eee3; /* 初始暖调浅米色 */
  border-radius: 6px;
  padding: 12px 10px;
  box-shadow: 0 2px 6px rgba(168, 136, 96, 0.1);
  border: 1px solid rgba(168, 136, 96, 0.15);
  /* 含背景色的精准过渡 */
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.rank-item:hover {
  background: #f9f4ed; /* hover更浅的暖米色（背景过渡生效） */
  box-shadow: 0 4px 10px rgba(230, 154, 136, 0.15);
  transform: translateY(-2px);
  border-color: rgba(230, 154, 136, 0.2);
}

.rank-item a {
  display: flex;
  align-items: center;
  color: #584830;
  width: 100%;
}

/* 排行数字 - 前3名特殊配色 */
.rank-num {
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background: rgba(230, 154, 136, 0.2);
  color: #e69a88;
  font-size: 14px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

.rank-num.top1 {
  background: #e87a6f; /* 珊瑚红（第1） */
  color: #fff;
}

.rank-num.top2 {
  background: #f0b888; /* 浅橙（第2） */
  color: #fff;
}

.rank-num.top3 {
  background: #a8c896; /* 浅绿（第3） */
  color: #fff;
}

.rank-name {
  font-size: 15px;
  font-weight: 600;
  color: #e69a88;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.rank-item:hover .rank-name {
  color: #e87a6f; /* 珊瑚红hover */
}

.rank-score {
  font-size: 13px;
  color: #7a6953;
  white-space: nowrap;
}

/* 响应式适配 - 小屏不挤版 */
@media (max-width: 1200px) {
  .main-layout {
    width: 100%;
    padding: 20px 10px;
    flex-wrap: wrap;
  }
  
  .left-main-column {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .right-sidebar {
    width: 100%;
  }
}