/* 培育生命菜单样式 */
.cultivation-menu {
  position: fixed;
  bottom: calc(20px + 94.7812px + 20px); /* 增加20px的底部距离，使整体向上移动 */
  left: 50%;
  transform: translateX(-50%); /* 只在X轴上居中 */
  background-color: #f8b838; /* 马里奥黄色系区块背景 */
  border-top: 4px solid #ffffff; /* 白色亮边 */
  border-left: 4px solid #ffffff; 
  border-right: 4px solid #a07010;  /* 黄色暗边 */
  border-bottom: 4px solid #a07010; 
  padding: 0.5rem; /* 与左侧面板一致 */
  color: #42210b; /* 深棕色文字 */
  z-index: 1000;
  width: 800px;
  max-height: calc(100vh - (20px + 94.7812px + 20px + 20px)); /* 相应调整最大高度 */
  overflow-y: auto;
  font-family: "Silver", "Press Start 2P", "Courier New", monospace;
  box-shadow: 4px 4px 1px rgba(0,0,0,0.4);
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: crisp-edges;
  --font-original-size: 0.8em; /* 与左侧面板一致 */
  font-size: calc(var(--font-original-size) * var(--font-scale)) !important;
}

/* BTID弹窗特定样式 */
#btid-modal.cultivation-menu {
  position: fixed;
  top: 50%;
  left: calc(20% + 40%); /* 左侧面板宽度(20%) + 剩余空间的40% */
  transform: translate(-50%, -50%);
  width: 60%; /* 占剩余屏幕的60% */
  max-width: 1200px;
  height: 60vh;
  max-height: 800px;
  bottom: auto;
}

.cultivation-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem; /* 与左侧面板一致 */
  padding-bottom: 0.4rem; /* 与左侧面板一致 */
  border-bottom: 3px solid #a07010;
}

.cultivation-menu-title {
  margin: 0;
  --font-original-size: 1em; /* 修改字体大小为1em */
  font-size: calc(var(--font-original-size) * var(--font-scale)) !important;
  color: #42210b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600; /* 增加字体粗细，与NFT宇宙探索标题一致 */
  font-family: "Silver", "Press Start 2P", "Courier New", monospace;
  line-height: 1.3;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2); /* 添加轻微文字阴影增加立体感 */
}

.cultivation-menu-close {
  background-color: #e02020; /* 马里奥红按钮 */
  border-top: 3px solid #ff6060;
  border-left: 3px solid #ff6060;
  border-bottom: 3px solid #a01010;
  border-right: 3px solid #a01010;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 0.5rem 0.9rem; /* 从0.7rem 1rem减小到0.5rem 0.9rem */
  line-height: 1.3;
  transition: background-color 0.05s ease, transform 0.08s ease, box-shadow 0.08s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0px #000000;
  font-weight: normal;
  text-transform: uppercase;
  border-radius: 0;
}

.cultivation-menu-close:hover:not(:disabled) {
  background-color: #ff4040;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.cultivation-menu-close:active:not(:disabled) {
  background-color: #c00000;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px #000000;
}

.cultivation-menu-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  overflow-x: auto;
  border-bottom: 3px solid #a07010;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.cultivation-menu-tab {
  padding: 0.5rem 0.9rem; /* 从0.7rem 1rem减小到0.5rem 0.9rem */
  background-color: #20a020; /* 马里奥绿按钮 */
  border-top: 3px solid #60ff60;
  border-left: 3px solid #60ff60;
  border-bottom: 3px solid #108010;
  border-right: 3px solid #108010;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.05s ease, transform 0.08s ease, box-shadow 0.08s ease;
  --font-original-size: 0.8em; /* 与左侧面板按钮一致 */
  font-size: calc(var(--font-original-size) * var(--font-scale)) !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0px #000000;
  font-weight: normal;
  border-radius: 0;
  line-height: 1.3;
}

.cultivation-menu-tab:hover:not(:disabled) {
  background-color: #40c040;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.cultivation-menu-tab:active:not(:disabled) {
  background-color: #107010;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px #000000;
}

.cultivation-menu-tab.active {
  background-color: #0050ef; /* 马里奥蓝按钮 */
  border-top: 3px solid #4080ff;
  border-left: 3px solid #4080ff;
  border-bottom: 3px solid #0030b0;
  border-right: 3px solid #0030b0;
  color: #ffffff;
}

.cultivation-menu-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.3rem 0;
}

.cultivation-option-card {
  flex: 0 0 calc(33.33% - 10px);
  min-width: 200px;
  background-color: #784828; /* 马里奥棕色输入框背景 */
  border-top: 3px solid #503018;
  border-left: 3px solid #503018;
  border-right: 3px solid #a07038;
  border-bottom: 3px solid #a07038;
  padding: 0.6rem 0.8rem; /* 与左侧面板输入框一致 */
  cursor: pointer;
  transition: background-color 0.05s ease, transform 0.08s ease, box-shadow 0.08s ease;
  display: flex;
  flex-direction: column;
  gap: 0.3rem; /* 减小元素间距 */
  box-sizing: border-box;
  box-shadow: 3px 3px 0px #000000;
  border-radius: 0;
  line-height: 1.3;
}

.cultivation-option-card:hover:not(:disabled) {
  background-color: #8c5430;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #000000;
}

.cultivation-option-card:active:not(:disabled) {
  background-color: #6c3c20;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px #000000;
}

.cultivation-option-name {
  font-weight: normal;
  --font-original-size: 0.8em; /* 与左侧面板文本一致 */
  font-size: calc(var(--font-original-size) * var(--font-scale)) !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.3;
}

.cultivation-option-description {
  color: #f8d8a0;
  --font-original-size: 0.65em; /* 与左侧面板描述文本一致 */
  font-size: calc(var(--font-original-size) * var(--font-scale)) !important;
  line-height: 1.3;
  border-top: 2px solid #a07038;
  padding-top: 0.4rem;
}

.cultivation-option-effects {
  display: none; /* 隐藏效果标签 */
}

.cultivation-effect-tag {
  display: none; /* 隐藏效果标签 */
}

/* 自定义滚动条样式 */
.cultivation-menu::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.cultivation-menu::-webkit-scrollbar-track {
  background: #784828;
  border: 3px solid #503018;
}

.cultivation-menu::-webkit-scrollbar-thumb {
  background: #f8b838;
  border: 3px solid #a07010;
}

.cultivation-menu::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
} 