body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
}
header {
  background-color: #333;
  color: white;
  padding: 12px;
  text-align: center;
  font-size: 20px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  background-color: #ddd;
  padding: 10px;
  justify-content: center;
}
nav button {
  margin: 5px;
  padding: 10px 16px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
}
nav button.active {
  background-color: #4CAF50;
  color: white;
}
section {
  display: none;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
  background-color: white;
}
section.active {
  display: block;
}

/* 通用控件样式 */
.control-group {
  margin-bottom: 10px;
  width: 100%;
}
.control-group label {
  display: block;
  margin-bottom: 5px;
}
.control-group select, .control-group input {
  width: 100%;
  padding: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
th, td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: left;
  font-size: 14px;
}
th {
  background-color: #f2f2f2;
  text-align: center;
}

/* 角色查找特定样式 */
#characters .search-container {
  margin: 20px 0;
  width: 100%;
}
#characterResultList {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  display: none;
}
.result-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.result-item:hover {
  background-color: #f0f0f0;
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 5px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
}
.Nature { background-color: #4CAF50; }
.Dark { background-color: #333344; }
.Light { background-color: #FFD700; color: #333; }
.Illusion { background-color: #9C27B0; }
/* 其他属性标签颜色可按需添加 */

/* 隐藏物品特定样式 */
.nav-controls {
  margin: 1em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
}
.nav-controls button {
  font-size: 1em;
  padding: 0.3em 0.8em;
}

/* Boss特定样式 */
#noteArea {
  margin-top: 10px;
  color: #444;
  white-space: pre-wrap;
  font-size: 14px;
  border-top: 1px solid #ccc;
  padding-top: 10px;
}
/* 点击跳转的高亮样式 */
.clickable-name {
  color: #4CAF50;
  cursor: pointer;
  text-decoration: underline;
  font-weight: bold;
}
.clickable-name:hover {
  color: #388E3C;
}

@media (max-width: 600px) {
  nav button { flex: 1 0 100%; }
  th, td { padding: 4px 6px; font-size: 12px; }
}


/* 在 css/style.css 中添加或修改这部分 */

#characterSearchInput {
  width: 100% !important;       /* 强制横向铺满 */
  padding: 12px !important;      /* 增加纵向内边距，让框变高 */
  box-sizing: border-box;       /* 确保内边距不撑大宽度 */
  font-size: 16px;              /* 字体大小 */
  border: 1px solid #ddd;       /* 边框 */
  border-radius: 4px;           /* 圆角 */
  margin-bottom: 10px;           /* 下边距 */
}

/* 确保搜索容器也是全宽的 */
#characters .search-container {
  width: 100%;
}