.shanhe-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.sub-title {
  color: #777;
  text-align: center;
  margin-bottom: 20px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  background: #eee;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn.active {
  background: #00897b;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.config-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.config-card {
  flex: 1;
  min-width: 250px;
  background: #fafafa;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tools-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tool-card {
  background: #fafafa;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.tool-card h3 {
  margin-bottom: 10px;
  color: #00796b;
}

.tool-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.tool-card th, .tool-card td {
  border-bottom: 1px solid #ddd;
  padding: 6px;
  text-align: center;
}

.skill-icons {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.skill-icons img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

.skill-check:checked + img {
  border-color: #009688;
}

.strategy-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.strategy-imgs img {
  width: 45%;
  border-radius: 8px;
}

/* 技能展示布局 */
.skill-section {
  margin-bottom: 30px;
}

.skill-subsection {
  margin-top: 15px;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.skill-item {
  display: flex;
  align-items: center;
  background: #fdfdfd;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.skill-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  margin-right: 10px;
}

.skill-info h5 {
  margin: 0;
  font-size: 16px;
  color: #00695c;
}

.skill-info p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #444;
}

/* 可点击技能图标样式（用于计算部分） */
.skill-icons {
  display: flex;
  gap: 12px;
  margin: 10px 0;
}

.skill-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.skill-img:hover {
  transform: scale(1.05);
}

.skill-img.active {
  border-color: #00bfa5;
  box-shadow: 0 0 6px rgba(0,191,165,0.6);
}

#hp-table {
  width: 100%;
  border-collapse: collapse;
}

#hp-table th, #hp-table td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: center;
}

.section-row td {
  background-color: #f5f5f5;
  font-weight: bold;
  text-align: center;
  color: #333;
}

/* 蓝门列 */
#blue-yeguiheishan,
#blue-diyu,
#blue-paopao,
#blue-shanzei,
#blue-xiaxie,
#blue-dali,
#blue-diting,
#blue-yueyingqun,
#blue-jiguanqun_f,
#blue-jiguanqun_r,
#blue-baozi,
#blue-riyou,
#blue-shitouqun,
#blue-heishanqun,
#blue-shanzeiqun,
#blue-xiaxiequn,
#blue-yeguiqun,
#blue-diyuqun,
#blue-shitou {
    background-color: #cce5ff; /* 浅蓝色 */
}

/* 红门列 */
#red-shitou,
#red-yeguiheishan,
#red-diyu,
#red-paopao,
#red-shanzei,
#red-xiaxie,
#red-dali,
#red-diting,
#red-yueyingqun,
#red-jiguanqun_f,
#red-jiguanqun_r,
#red-baozi,
#red-riyou,
#red-shitouqun,
#red-heishanqun,
#red-shanzeiqun,
#red-xiaxiequn,
#red-yeguiqun,
#red-diyuqun {
    background-color: #f8d7da; /* 浅红色 */
}


.skill-section {
  margin-bottom: 40px;
}

.skill-subsection {
  margin: 20px 0;
}

.tier-block {
  background: #fafafa;
  border-left: 4px solid #66b2ff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px;
}

.tier-title {
  font-size: 1.1em;
  color: #0077cc;
  font-weight: bold;
  margin-bottom: 10px;
}

.skill-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.skill-gallery img {
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  transition: transform 0.2s;
}

.skill-gallery img:hover {
  transform: scale(1.08);
}

/*!* 图片展示区域的容器 *!*/
/*.skill-gallery {*/
/*    display: flex;*/
/*    flex-wrap: wrap;         !* 允许自动换行 *!*/
/*    justify-content: flex-start;*/
/*    gap: 10px;*/
/*    max-width: 100%;         !* 避免撑破布局 *!*/
/*    overflow: hidden;*/
/*}*/
/*!* 单张技能卡片 *!*/
/*.skill-card {*/
/*    flex: 0 1 120px;         !* 每个卡片固定宽度，不让它无限放大 *!*/
/*    text-align: center;*/
/*}*/

/*.skill-card img {*/
/*    width: 100%;             !* 填满卡片宽度 *!*/
/*    height: auto;            !* 保持比例 *!*/
/*    border-radius: 8px;*/
/*    box-shadow: 0 2px 5px rgba(0,0,0,0.2);*/
/*    transition: transform 0.2s ease;*/
/*}*/

/*.skill-card img:hover {*/
/*    transform: scale(1.05);*/
/*}*/

.tier-desc {
  font-size: 0.95em;
  color: #444;
  line-height: 1.6;
  background: #f4f8ff;
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
}


/* 让技能图片自动换行显示 */
.skill-icons {
  display: flex;
  flex-wrap: wrap;           /* ✅ 关键：允许自动换行 */
  justify-content: center;   /* 居中对齐 */
  gap: 16px;                 /* 图片之间的间距 */
  margin-top: 10px;
  margin-bottom: 10px;
}

/* 单个图片样式 */
.skill-img {
  width: auto !important;
  height: auto !important;
  max-width: 240px;          /* 图片最大宽度 */
  max-height: 240px;         /* 图片最大高度 */
  object-fit: contain;       /* 保持原始比例 */
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  transition: transform 0.25s ease;
}

/* 鼠标悬停动画 */
.skill-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,215,0,0.6);
}

.skill-img.selected {
  border: 3px solid #00bfa5;
  box-shadow: 0 0 15px rgba(0,191,165,0.8);
  transform: scale(1.07);
}

/* 点击选中高亮效果 */
.skill-img.active {
  border: 3px solid #00bfa5;
  box-shadow: 0 0 15px rgba(0,191,165,0.8);
  transform: scale(1.07);
}

/* 层数徽标 */
.skill-count {
  position: absolute;
  top: 4px;
  right: 6px;
  background: rgba(0,191,165,0.9);
  color: white;
  font-weight: bold;
  border-radius: 50%;
  padding: 4px 7px;
  font-size: 13px;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  user-select: none;
  pointer-events: none; /* 不阻挡点击 */
}
#thorn-skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill-wrapper {
  position: relative;
  display: inline-block;
}

.skill-img {
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-img.selected {
  border-color: #00bfa5;
  box-shadow: 0 0 10px rgba(0,191,165,0.7);
}

.skill-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,191,165,0.9);
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  padding: 4px 7px;
  font-size: 13px;
  pointer-events: none;
}


/* 整体结构 */
#config {
  padding: 20px;
  /*background: #fafafa;*/
  color: #333;
  line-height: 1.7;
}

.config-title {
  text-align: center;
  font-size: 1.8em;
  color: #2a5d84;
  margin-bottom: 10px;
}

.config-desc {
  text-align: center;
  font-size: 1em;
  color: #666;
  margin-bottom: 30px;
}

/* 卡片 */
.config-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.config-card {
  /*background: #fff;*/
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 20px;
  flex: 1 1 48%;
  min-width: 350px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.config-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.config-card h3 {
  color: #1e4b75;
  border-left: 5px solid #1e4b75;
  padding-left: 10px;
  margin-bottom: 15px;
}

/* 子分区 */
.config-subsection {
  margin-bottom: 15px;
}

.config-subsection h4 {
  color: #555;
  font-size: 1.1em;
  margin-bottom: 5px;
  /*border-bottom: 1px dashed #ccc;*/
  display: inline-block;
  padding-bottom: 3px;
}

/* 技能标识 */
.skill {
  color: #00897b;
  font-weight: 500;
}

.must {
  color: #d32f2f;
  font-weight: 600;
}

/* 列表样式 */
.config-card ul, .config-card ol {
  margin-left: 20px;
}

.config-card li {
  margin-bottom: 5px;
}


/* 实战攻略整体 */
#strategy {
  background: #fdfdfd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  line-height: 1.7;
}

/* 区块标题 */
#strategy h4 {
  font-size: 1.2em;
  color: #00695c;
  margin-bottom: 10px;
  border-left: 4px solid #00bfa5;
  padding-left: 8px;
}

/* 小节标题 */
#strategy h5 {
  color: #555;
  font-size: 1.05em;
  margin-bottom: 6px;
}

/* 分区样式 */
.strategy-block {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ccc;
}

.strategy-subblock {
  margin-left: 10px;
  margin-bottom: 10px;
}

/* 列表 */
.strategy-list {
  margin-left: 20px;
  list-style-type: disc;
  color: #333;
}

.strategy-list li {
  margin-bottom: 6px;
}

/* 关键文字 */
.keyword {
  color: #00796b;
  font-weight: 600;
}

.highlight {
  color: #d84315;
  font-weight: 600;
}

.note {
  color: #888;
  font-style: italic;
}

/* 鼠标悬停轻微高亮 */
#strategy .strategy-block:hover {
  background: #f9fffc;
  border-radius: 10px;
  transition: background 0.2s ease;
}


.catalyst-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 24px 28px;
  max-width: 380px;
  margin: 20px auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalyst-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.catalyst-card h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 18px;
  text-align: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.input-group label {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 6px;
}

.input-group input {
  padding: 8px 10px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 6px rgba(0, 188, 212, 0.3);
}

.calc-btn {
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(90deg, #00bcd4, #0097a7);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease, transform 0.1s ease;
}

.calc-btn:hover {
  background: linear-gradient(90deg, #26c6da, #00acc1);
  transform: scale(1.02);
}

.result {
  text-align: center;
  margin-top: 16px;
  font-weight: 600;
  color: #444;
}


/* ===== 通用按钮美化 ===== */
button {
  display: inline-block;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #00bcd4, #0097a7);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 188, 212, 0.3);
  margin-top: 6px;
  margin-right: 6px;
}

button:hover {
  background: linear-gradient(90deg, #26c6da, #00acc1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.25);
}

/* ===== 如果有多个按钮，可以通过类名区分风格 ===== */
button.secondary {
  background: linear-gradient(90deg, #9e9e9e, #757575);
  box-shadow: 0 3px 10px rgba(158, 158, 158, 0.3);
}

button.secondary:hover {
  background: linear-gradient(90deg, #bdbdbd, #9e9e9e);
}

/* ===== 输入框与标签的基础样式（配合按钮风格） ===== */
label {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #555;
}

input[type="number"] {
  padding: 8px 10px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="number"]:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 6px rgba(0, 188, 212, 0.3);
}


