/* 主容器样式 */
.styled-prose-container {
position: relative;
max-width: 1200px;
margin: 0 auto;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #333;
line-height: 1.6;
}

.hidden-checkbox {
display: none;
}

/* 主内容区样式 */
.classUI-container {
padding: 20px;
background-color: #f9f9f9;
border-radius: 15px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.classUI-header {
background: linear-gradient(to right, #3c5aa6, #2a75bb);
padding: 20px;
border-radius: 10px;
margin-bottom: 25px;
text-align: center;
border: 3px solid #c7a008;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.classUI-header h1 {
color: #ffcb05;
font-size: 2.4rem;
text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
letter-spacing: 2px;
margin: 5px 0;
}

.classUI-info-row {
display: flex;
justify-content: space-around;
background-color: #f0f0f0;
padding: 15px;
border-radius: 8px;
margin-bottom: 25px;
border: 2px solid #3c5aa6;
font-weight: bold;
font-size: 1.1em;
}

.classUI-info-item {
display: flex;
align-items: center;
gap: 8px;
}

.classUI-map-container {
background-color: #e9f5ff;
border-radius: 10px;
padding: 20px;
margin-bottom: 25px;
border: 3px solid #3c5aa6;
min-height: 250px;
}

.classUI-map-title {
text-align: center;
color: #3c5aa6;
margin-bottom: 20px;
font-weight: bold;
font-size: 1.4rem;
}

.classUI-map-content {
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
color: #777;
font-style: italic;
font-size: 1.1em;
}

/* 内容区块样式 */
.classUI-content-section {
background-color: white;
border-radius: 10px;
padding: 25px;
margin-bottom: 25px;
border: 3px solid #2a75bb;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.classUI-section-title {
background: linear-gradient(to right, #2a75bb, #3c5aa6);
color: white;
padding: 16px 20px;
border-radius: 8px 8px 0 0;
margin: -25px -25px 20px -25px;
font-weight: bold;
font-size: 1.2rem;
box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.classUI-content-scrollable {
height: 400px;
overflow-y: auto;
padding: 20px;
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 8px;
margin-top: 15px;
font-size: 1.1em;
line-height: 1.6;
}

/* 训练家信息网格 */
.classUI-trainer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
}

.classUI-trainer-info {
background-color: #f9f9f9;
padding: 18px;
border-radius: 8px;
border: 2px solid #ffcb05;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.classUI-trainer-info h3 {
color: #3c5aa6;
margin-bottom: 12px;
border-bottom: 2px solid #c7a008;
padding-bottom: 8px;
font-size: 1.2rem;
}

/* 背包物品样式 */
.classUI-bag-items {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 15px;
}

.classUI-bag-item {
background-color: #e3f2fd;
border-radius: 8px;
padding: 15px;
text-align: center;
border: 2px solid #6cb9fb;
font-size: 1.1em;
}

/* 宝可梦仓库样式 */
.classUI-pokemon-storage {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 20px;
}

.classUI-pokemon-card {
background: linear-gradient(to bottom, #f8f8f8, #e0e0e0);
border-radius: 10px;
padding: 15px;
text-align: center;
border: 2px solid #c7a008;
transition: all 0.3s ease;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.classUI-pokemon-card:hover {
transform: scale(1.05);
box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* 记忆栏样式 */
.classUI-memory-log {
max-height: 350px;
overflow-y: auto;
padding: 15px;
background-color: #fffde7;
border-radius: 8px;
border: 2px solid #ffd54f;
font-size: 1.1em;
}

.classUI-memory-entry {
padding: 10px;
border-bottom: 1px dashed #ccc;
line-height: 1.6;
}

.classUI-memory-entry:last-child {
border-bottom: none;
}

/* 战斗界面主样式 */
.classUI-battle-main {
background-color: #f5f9ff;
border-radius: 10px;
padding: 20px;
border: 3px solid #ffcb05;
}

.classUI-enemy-section,
.classUI-player-section {
background-color: #f8f8f8;
border-radius: 10px;
padding: 20px;
margin-bottom: 25px;
position: relative;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.classUI-enemy-section {
border: 2px solid #fb6c6c;
}

.classUI-player-section {
border: 2px solid #4ad97c;
}

.classUI-section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}

.classUI-pokemon-name-large {
font-weight: bold;
font-size: 1.2rem;
color: #3c5aa6;
}

.classUI-health-container {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
}

.classUI-health-bar-large {
flex-grow: 1;
height: 24px;
background-color: #e0e0e0;
border-radius: 12px;
overflow: hidden;
border: 1px solid #aaa;
}

.classUI-health-fill-large {
height: 100%;
background: linear-gradient(to right, #ff5252, #4caf50);
border-radius: 12px;
}

.classUI-health-text-large {
font-weight: bold;
min-width: 80px;
text-align: right;
font-size: 1.1rem;
}

.classUI-round-info {
text-align: center;
font-weight: bold;
margin: 20px 0;
color: #3c5aa6;
background-color: #fff9c4;
padding: 12px;
border-radius: 5px;
border: 2px solid #ffd54f;
font-size: 1.1rem;
}

.classUI-actions-container {
background-color: #e3f2fd;
border-radius: 10px;
padding: 20px;
margin-bottom: 20px;
border: 2px solid #6cb9fb;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.classUI-action-title {
font-weight: bold;
color: #3c5aa6;
margin-bottom: 15px;
text-align: center;
font-size: 1.2rem;
}

.classUI-action-text {
min-height: 80px;
background-color: white;
border-radius: 8px;
padding: 15px;
border: 1px solid #ccc;
font-size: 1.1em;
line-height: 1.6;
}

.classUI-skills-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}

.classUI-skill-button {
background: linear-gradient(to bottom, #ffcb05, #e6b800);
border: none;
border-radius: 8px;
padding: 12px;
font-weight: bold;
color: #3c5aa6;
cursor: pointer;
transition: all 0.2s ease;
border: 2px solid #c7a008;
font-size: 1.1rem;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.classUI-skill-button:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0,0,0,0.15);
background: linear-gradient(to bottom, #ffd700, #d4a600);
}

/* 宝可梦侧边栏 CSS */
/* 容器 */
.pokemon-sidebar-container {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  height: auto;
}

/* 宝可梦按钮 */
.pokemon-sidebar-button {
  width: 50px;
  height: 50px;
  background: #ffcb05;
  color: #3c5aa6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.8em;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 203, 5, 0.7);
  transition: all 0.3s ease;
  border: 2px solid #c7a008;
  animation: pokemon-pulse 2s infinite;
  position: relative;
  z-index: 1001;
}

/* 脉动动画 */
@keyframes pokemon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 203, 5, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 203, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 203, 5, 0); }
}

.pokemon-sidebar-button:hover {
  transform: scale(1.1);
  background: #ffd700;
}

/* 侧边面板 */
.pokemon-sidebar-panel {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  width: 280px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* 滑入动画 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* 悬停显示面板 */
.pokemon-sidebar-container:hover .pokemon-sidebar-panel {
  display: block;
  opacity: 1;
  visibility: visible;
  animation: slideInLeft 0.3s ease-out;
  transition-delay: 0.1s;
}

/* 防止超出屏幕 */
@media (max-height: 800px) {
  .pokemon-sidebar-panel {
    max-height: 80vh;
  }
}

@media (max-height: 600px) {
  .pokemon-sidebar-panel {
    max-height: 70vh;
  }
}

/* 宝可梦队伍样式 */
.classUI-pokemon-team {
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border: 3px solid #ffcb05;
  border-radius: 0 15px 15px 0;
  padding: 20px;
  width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.classUI-team-title {
  font-size: 1.4rem;
  color: #3c5aa6;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ffcb05;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  z-index: 10;
}

.classUI-team-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.classUI-team-member {
  background: linear-gradient(to bottom, #ffffff, #f0f9ff);
  border-radius: 12px;
  padding: 18px;
  border: 2px solid #c7a008;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  margin-bottom: 15px;
}

.classUI-team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.classUI-pokemon-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2a75bb;
  text-align: center;
  margin-bottom: 8px;
}

.classUI-health-bar {
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #b0b0b0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.classUI-health-fill {
  height: 100%;
  background: linear-gradient(to right, #4caf50, #8bc34a);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.classUI-health-text {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
}

.classUI-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.classUI-stat-item {
  background: linear-gradient(to bottom, #f0f9ff, #e0f2fe);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #a5d8ff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.classUI-pokemon-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  padding: 10px;
  background-color: #fff9e6;
  border-radius: 8px;
  border: 1px solid #ffecb3;
  margin-top: 10px;
}

/* 滚动条样式 */
.pokemon-sidebar-panel::-webkit-scrollbar {
  width: 10px;
}

.pokemon-sidebar-panel::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 5px;
}

.pokemon-sidebar-panel::-webkit-scrollbar-thumb {
  background: #ffcb05;
  border-radius: 5px;
  border: 2px solid #c7a008;
}

.pokemon-sidebar-panel::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

/* 详细信息标签 */
.classUI-details-toggle {
  display: block;
  text-align: center;
  margin-top: 10px;
  cursor: pointer;
  color: #3c5aa6;
  font-weight: bold;
}

.classUI-pokemon-details {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #c7a008;
}

/* 选择项样式 */
.player-choices-container {
background-color: #f5f5f5;
border-radius: 10px;
padding: 20px;
margin-top: 25px;
border: 2px solid #3c5aa6;
}

.choices-header {
text-align: center;
font-weight: bold;
color: #3c5aa6;
margin-bottom: 15px;
font-size: 1.3rem;
}

.choices-list {
display: grid;
grid-template-columns: 1fr;
gap: 12px;
}

.choice-item {
background-color: #e3f2fd;
border-radius: 8px;
padding: 12px 15px;
border: 2px solid #6cb9fb;
transition: all 0.2s ease;
cursor: pointer;
}

.choice-item:hover {
background-color: #bbdefb;
transform: translateX(5px);
}

.choice-letter {
font-weight: bold;
color: #3c5aa6;
margin-right: 10px;
}

.choice-text {
color: #333;
}
/* 修改后的CSS代码 */
.styled-prose-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

.hidden-checkbox {
  display: none;
}

.classUI-container {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 新增的侧边栏样式 */
.sidebar-container {
  position: fixed;
  right: 0;
  z-index: 1000;
  height: auto;
}

.trainer-sidebar { top: 40%; }
.bag-sidebar { top: 50%; }
.memory-sidebar { top: 60%; }

.sidebar-button {
  width: 50px;
  height: 50px;
  background: #3c5aa6;
  color: #ffcb05;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.4em;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(60, 90, 166, 0.7);
  transition: all 0.3s ease;
  border: 2px solid #2a75bb;
  position: relative;
  z-index: 1001;
}

.sidebar-button:hover {
  transform: scale(1.1);
  background: #2a75bb;
}

.sidebar-panel {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  width: 300px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border: 3px solid #2a75bb;
}

.sidebar-container:hover .sidebar-panel {
  display: block;
  opacity: 1;
  visibility: visible;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* 响应式调整 */
@media (max-height: 800px) {
  .sidebar-panel {
    max-height: 80vh;
  }
}

@media (max-height: 600px) {
  .sidebar-panel {
    max-height: 70vh;
  }
}

@media (max-width: 768px) {
  .sidebar-button {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }
  
  .sidebar-panel {
    width: 250px;
    right: 50px;
  }
}

/* 滚动条样式 */
.sidebar-panel::-webkit-scrollbar {
  width: 8px;
}

.sidebar-panel::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 5px;
}

.sidebar-panel::-webkit-scrollbar-thumb {
  background: #3c5aa6;
  border-radius: 5px;
  border: 1px solid #2a75bb;
}

.sidebar-panel::-webkit-scrollbar-thumb:hover {
  background: #2a75bb;
}