:root {
  --primary: #2ecc71;
  --accent: #f1c40f;
  --highlight: #4CAF50;
  --text-blue: #2196F3;
  --text-orange: #FFC107;
  --minecraft-green: #3b8520;
  --minecraft-dark: #1a2a6c;
  --minecraft-red: #b21f1f;
}

body {
  background: url('back.png') no-repeat center/cover fixed;
  font-family: '微软雅黑', EmojiGuard, sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
}

/* 蜗牛容器样式 - 所有页面通用 */
.snail-container, 
.mc-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.2);
  backdrop-filter: blur(5px);
  animation: snailSlide 1s ease-out;
}

/* 图片放大工具专用容器 */
.image-tool-container {
  max-width: 1000px;
}

/* MC资源包工具主页样式 */
.mc-tools-home {
  max-width: 1200px;
  padding: 20px;
}

/* 工具卡片样式 */
.tool-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  width: 100%;
  max-width: 380px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--minecraft-green);
}

.tool-title {
  font-size: 1.5rem;
  color: var(--minecraft-green);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.tool-title i {
  background-color: var(--minecraft-green);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 16px;
}

.tool-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
  min-height: 80px;
}

/* 图片放大工具样式 */
.tool-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tool-header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tool-subtitle {
  font-size: 1.2rem;
  color: var(--text-blue);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.tool-main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.tool-controls {
  flex: 1;
  min-width: 300px;
  background: rgba(30, 30, 60, 0.1);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tool-preview {
  flex: 2;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tool-preview-box {
  background: rgba(30, 30, 60, 0.1);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.tool-preview-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* MC资源包生成器样式 */
.mc-header {
  text-align: center;
  padding: 15px;
  background: linear-gradient(to right, #2c3e50, #4a6491);
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.mc-header h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minecraft-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: linear-gradient(to bottom, #7BBB5E, #5A9C42);
  border-radius: 5px;
  position: relative;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.minecraft-icon::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  background-color: #E0B03B;
  border-radius: 50%;
  box-shadow: 12px 0 0 #E0B03B, 0 12px 0 #E0B03B, 12px 12px 0 #E0B03B;
}

.mc-control-group {
  margin-bottom: 20px;
  padding: 15px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
}

.mc-control-group h3 {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.mc-form-group {
  margin-bottom: 15px;
}

.mc-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
}

.mc-form-group input, 
.mc-form-group select, 
.mc-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.mc-form-group input:focus, 
.mc-form-group select:focus, 
.mc-form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* 按钮样式（完全复制豆包+兔子有过渡版） */
.button,
.tool-btn,
.mc-btn {
  appearance: none;
  border: 3px solid #000000;
  background-color: #58585a;
  padding: 0;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  margin: 0;
  height: 60px;
  width: 200px;
  line-height: 1;
  vertical-align: middle;
}

.button .neirong,
.tool-btn .neirong,
.mc-btn .neirong {
  border: 3px solid #ffffff;
  background-color: #e1e1e1;
  color: #000000;
  text-align: center;
  line-height: 44px;
  font-size: 20px;
  height: 44.3px;
  width: 189.5px;
  margin-bottom: 5px;
  display: block;
  box-sizing: border-box;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button:hover,
.tool-btn:hover,
.mc-btn:hover {
  filter: brightness(0.95);
}

.button:active,
.tool-btn:active,
.mc-btn:active {
  height: 55px;
  width: 200px;
  margin-top: 5px;
  border: 3px solid #000000;
  padding: 0;
}

/* 特殊按钮 */
#processBtn {
  background: linear-gradient(to right, #4facfe, #00f2fe);
}

#downloadBtn {
  background: linear-gradient(to right, #ff7e5f, #feb47b);
}

/* 模块样式 */
.muban {
  background: #f0faff;
  border-bottom: 2px solid #b3e0ff;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.muban h1 {
  color: var(--primary);
  margin-top: 0;
}

/* 列表样式 */
#machines-list, #players-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#machines-list li {
  padding: 6px 0;
  color: var(--text-blue);
}

#players-list li {
  padding: 8px 0;
  color: var(--text-orange);
  font-weight: bold;
}

#website-text {
  text-align: center;
  color: rgb(128, 128, 128);
  margin-top: 20px;
}

/* 页脚样式 */
.tool-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  color: #a0a0ff;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mc-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 动画 */
@keyframes snailSlide {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes mucusBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .tool-main-content {
    flex-direction: column;
  }
  
  .tool-controls, .tool-preview {
    width: 100%;
  }
  
  .tool-header h1 {
    font-size: 2.2rem;
  }
  
  .snail-container, 
  .mc-container {
    padding: 15px;
  }
}

/* 布局工具 */
.tools-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 30px 0;
}

.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.feature {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 20px;
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
}

.feature h3 {
  color: #333;
  margin-bottom: 10px;
}

.feature p {
  color: #666;
  font-size: 0.95rem;
}

/* 欢迎框 */
.welcome-box {
  background: linear-gradient(145deg, var(--primary), var(--accent));
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  text-align: center;
}

/* 禁用按钮 */
.disabled-botton {
  appearance: none;
  padding: 12px 25px;
  border-radius: 8px;
  background-color: rgb(128, 128, 128);
  color:black;
  cursor: pointer;
  border:1px solid black;
}

/* 链接样式 */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* 标题样式 */
h1 {
  color: var(--primary);
  margin-bottom: 20px;
}

h2 {
  color: var(--highlight);
  margin-bottom: 15px;
}

h3 {
  color: var(--text-blue);
  margin-bottom: 10px;
}

/* 段落样式 */
p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: #333;
}

/* 输入框组 */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

/* 复选框和单选框 */
.checkbox-group,
.radio-group {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.checkbox-group input,
.radio-group input {
  margin-right: 10px;
}

.checkbox-group label,
.radio-group label {
  margin-bottom: 0;
}