:root {
  --primary: #6366f1;
  --success: #10b981;
  --danger: #ef4444;
  --background: #f8fafc;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.9);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  margin: 0;
  min-height: 100vh;
  color: #1e293b;
}

.container {
  max-width: 1200px;
  /*margin-top: 3.5rem;*/
  /*margin-right: auto;*/
  /*margin-bottom: 5.5rem;*/
  /*margin-left: auto;*/
  margin: 3.5rem auto;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.input-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #475569;
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 95%;
  padding: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.8);
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: white;
}

.btn {
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  height: 45px;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}



/* 悬停动态效果 | Hover effects */
.btn-primary:hover {
  transform: translateY(-1px);
  /* 轻微上浮 */
  box-shadow: 0 3px 6px rgba(99, 102, 241, 0.25);
  /* 阴影强化 */
  transition: all 0.2s ease-out;
  /* 过渡动画 */
}

.data-preview {
  position: relative;
  background: transparent;
  padding: 1rem;
  border-radius: 1rem;
  max-height: 500px;
  overflow: auto;
  margin-top: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  /* 添加微阴影保持层次感 */
}

.data-item {
  padding: 0.875rem;
  margin: 0.5rem 0;
  background: white;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.data-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.copy-section {
  position: sticky;
  top: -1rem;
  background: var(--glass);
  backdrop-filter: blur(4px);
  padding: 1rem;
  margin: -1rem -1rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal {
  display: flex;
  /* 启用 Flex 布局 */
  justify-content: center;
  /* 水平居中 */
  align-items: center;
  /* 垂直居中 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.modal-content {
  background: var(--glass);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  text-align: center;
  /* 内部文本和行内元素居中 */
  display: flex;
  flex-direction: column;
  /* 子元素垂直排列 */
  align-items: center;
  /* 子元素水平居中 */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.alert {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  color: white;
  display: none;
  animation: slideIn 0.3s;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.alert-success {
  background: rgba(16, 185, 129, 0.9);
}

.alert-error {
  background: rgba(239, 68, 68, 0.9);
}

/* 复选框容器 */
.save-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.5);
}




/* 原生复选框隐藏 */
.save-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 自定义复选框样式 */
.checkmark {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  transition: all 0.2s;
}

/* 选中状态 */
.save-checkbox input:checked~.checkmark {
  background: #3b82f6;
  border-color: #3b82f6;
}

/* 对勾图标 */
.checkmark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s;
}

.save-checkbox input:checked~.checkmark::after {
  opacity: 1;
}

/* 悬停效果 */
.save-checkbox:hover {
  transform: translateY(-1px);
  /* 轻微上浮 */
  box-shadow: 0 3px 6px rgba(99, 102, 241, 0.25);
  /* 阴影强化 */
  transition: all 0.2s ease-out;
  /* 过渡动画 */
}

.save-checkbox:hover .checkmark {
  border-color: #64748b;
}

.action-group {
  display: flex;
  /* 启用 Flex 布局 */
  justify-content: center;
  /* 水平居中 */
  align-items: center;
  /* 垂直居中 */
  gap: 20px;
  /* 元素间距 */
}


/* 悬停效果：背景色加深+轻微阴影 */
.save-checkbox:hover {
  background: rgba(241, 245, 249, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 选中状态：蓝色边框+背景强化 */
.save-checkbox input:checked~.checkmark {
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.1);
}

/* 针对特定 textarea 的定制样式 */
textarea[name="dataInput"] {
  width: 600px !important;
  /* 固定宽度 */
  height: 380px !important;
  /* 固定高度 */
  resize: none !important;
  /* 禁用拉伸 */
  box-sizing: border-box;
  /* 包含 padding 在尺寸内 */
}

/* 保持原有聚焦效果 */
textarea[name="dataInput"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: white;
}

/* 针对特定 textarea 的定制样式 */
textarea[name="priorityKeywords"] {
  width: 70% !important;
  /* 固定宽度 */
  height: 20% !important;
  /* 固定高度 */
  resize: none !important;
  /* 禁用拉伸 */
  box-sizing: border-box;
  /* 包含 padding 在尺寸内 */
}

/* 保持原有聚焦效果 */
textarea[name="priorityKeywords"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: white;
}

/* 针对特定 textarea 的定制样式 */
textarea[name="removeKeywords"] {
  width: 70% !important;
  /* 固定宽度 */
  height: 20% !important;
  /* 固定高度 */
  resize: none !important;
  /* 禁用拉伸 */
  box-sizing: border-box;
  /* 包含 padding 在尺寸内 */
}

/* 保持原有聚焦效果 */
textarea[name="removeKeywords"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: white;
}

/* 添加一个类用于设置备案信息的样式 */
.beian-info {
  position: fixed;
  /* 将元素固定在视口 */
  bottom: 0;
  /* 设置元素距离视口底部的距离为0 */
  width: 100%;
  /* 设置元素的宽度为100%，或者您可以根据需要调整宽度 */
  text-align: center;
  /* 设置文本居中显示 */
  background-color: #fff;
  /* 设置背景颜色为白色，或者您可以根据需要调整颜色 */
  padding: 10px 0;
  /* 设置内边距，以确保文本不会紧贴视口底部 */
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  /* 可选：添加一个向上的阴影，以增加立体感 */
  z-index: 999;
  /* 可选：设置z-index以确保元素在其他内容之上 */
}


.hello {
  justify-content: center;
  /* 水平居中 */
  align-items: center;
  /* 垂直居中 */
  margin-top: auto;
  /* 将.hello容器推到底部 */
  margin: 10px;
  /* 设置外边距，使容器与其他元素之间有一定的间距 */
  padding: 10px;
  /* 设置内边距，使容器内的元素与容器边缘有一定的间距 */
  width: 80%;
  /* 设置容器的宽度为200px（根据需求调整）*/
  height: 15%;
  /* 设置容器的高度为100px（根据需求调整）*/
  border-radius: 8px;
}

.beian-info span {
  font-size: 12px;
  /* 设置字体大小为12像素 */
}

.image-wrapper {
  position: relative;
  display: inline-block;
  margin-right: 20px;
  /* 图标之间的水平间距 */
}

.icon-text-group {
  display: flex;
  align-items: center;
  /* 确保图标和文本垂直居中 */
}

.popup-image {
  display: none;
  position: absolute;
  bottom: 100%;
  /* 设置在原始图片的上方 */
  left: 50%;
  transform: translateX(-50%);
  /* 使弹窗图片水平居中于原始图片上方 */
  width: 200px;
  /* 弹窗图片的宽度 */
  height: auto;
  /* 保持图片原始比例 */
  z-index: 10;
  /* 确保弹窗图片显示在最上层 */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  /* 添加阴影效果以增强立体感 */
  margin-bottom: 10px;
  /* 与原始图片保持一定距离 */
}

.image-wrapper:hover .popup-image {
  display: block;
}

.icon-image {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.text-label {
  margin-left: 5px;
  /* 图标与文本标签之间的水平间距 */
  color: #939393;
  font-size: 12px;
}


/* 模态窗口的样式 */
#modal {
  display: none;
  /* 隐藏模态窗口 */
  position: fixed;
  z-index: 1000;
  /* 提高z-index确保模态窗口在最上层 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* 防止模态窗口内容溢出到外部 */
  background-color: rgba(0, 0, 0, 0);
  /* 黑色背景带透明度 */
}

/* 模态窗口内容的样式 */
#modalContent {
  margin: 15% auto;
  /* 15% 从顶部和自动水平居中 */
  padding: 20px;
  /* 内边距 */
  border: 2px solid #cccccc;
  /* 边框颜色和宽度 */
  max-width: 600px;
  /* 最大宽度 */
  border-radius: 15px;
  /* 圆角效果 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* 阴影效果 */
  text-align: left;
  /* 文本左对齐（对于段落内的文本） */
  width: 100%;
  /* 宽度设置为100% */
  max-height: 80vh;
  /* 最大高度设置为视口高度的80% */
  overflow-y: auto;
  /* 内容超出时显示垂直滚动条 */
  box-sizing: border-box;
  /* 确保内边距和边框不会增加容器的宽度 */
  font-size: clamp(14px, 2vw, 18px);
  /* 使用clamp()函数定义字体大小范围 */
  background: radial-gradient(#619bff, #e0e0e3);
}

/* 模态窗口内容的样式 */
#modalContent1 {
  align-items: center;
  /* 垂直居中 */
  padding: 10px;
  /* 内边距 */
  border: 2px solid #cccccc;
  /* 边框颜色和宽度 */
  max-width: 600px;
  /* 最大宽度 */
  border-radius: 15px;
  /* 圆角效果 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* 阴影效果 */
  text-align: left;
  /* 文本左对齐（对于段落内的文本） */
  width: 100%;
  /* 宽度设置为100% */
  max-height: 80vh;
  /* 最大高度设置为视口高度的80% */
  overflow-y: auto;
  /* 内容超出时显示垂直滚动条 */
  box-sizing: border-box;
  /* 确保内边距和边框不会增加容器的宽度 */
  font-size: clamp(14px, 2vw, 18px);
  /* 使用clamp()函数定义字体大小范围 */
  background-color: rgba(255, 255, 255, 0.1);
}

#modalContent1 h4 {
  text-align: center;
  /* 文本左对齐（对于段落内的文本） */
}




/* 内容容器的样式，用于水平排列p和img */
.content-wrapper {
  display: flex;
  /* Flexbox布局 */
  align-items: center;
  /* 垂直居中对齐子元素 */
  margin-bottom: 10px;
  /* 与按钮之间的间距 */
}

/* 模态窗口内容中的段落样式 */
#modalContent p {
  padding: 15px;
  /* 内边距 */
  box-sizing: border-box;
  /* 确保内边距不会增加容器的宽度 */
  color: #333333;
  /* 文本颜色 */
  font-size: 16px;
  /* 字体大小 */
  line-height: 1.5;
  /* 行高 */
  border-radius: 8px;
  /* 圆角效果 */
  margin: 0;
  /* 移除默认的外边距 */
  flex: 1;
  /* 占据剩余空间 */
  background-color: rgba(255, 255, 255, 0.1);
}

/* 图片样式 */
#modalContent img {
  max-width: 40%;
  /* 图片最大宽度 */
  height: 30%;
  /* 图片高度自动调整 */
  border-radius: 8px;
  /* 圆角效果 */
  margin-left: 20px;
  /* 与段落之间的间距 */
}

/* 容器样式 */
.upload-container {
  position: relative;
  max-width: 100%;
  margin: 1rem 0;
}

/* 原生输入框视觉隐藏 */
.file-input {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* 自定义可视化上传区域 */
.upload-wrapper {
  display: flex;
  align-items: center;
  /* 垂直居中（交叉轴方向） */
  justify-content: center;
  /* 水平居中（主轴方向） */
  gap: 12px;
  /* 元素间距 */
  padding: 16px;
  border: 2px dashed #ced4da;
  border-radius: 12px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

/* 交互反馈 */
.upload-wrapper:hover {
  border-color: #4a90e2;
  background: #e9f3ff;
}

.file-input:focus+.upload-wrapper {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* 拖拽状态 */
.upload-wrapper.dragover {
  background: #d4e6ff;
  border-color: #2c7be5;
}

/* 图标样式 */
.upload-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 0rem;
  color: #adb5bd;
  transition: color 0.3s ease;
}

.upload-wrapper:hover .upload-icon {
  color: #4a90e2;
}

/* 文字提示 */
.upload-text {
  text-align: center;
}

.upload-title {
  color: #495057;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.upload-subtitle {
  color: #868e96;
  font-size: 0.875rem;
}

/* 已选文件显示 */
.file-preview {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #495057;
}

/* 基础样式 */
.enhanced-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1e293b;
  background: white;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* 悬停状态 */
.enhanced-textarea:hover {
  border-color: #94a3b8;
}

/* 聚焦状态 */
.enhanced-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* 占位符样式 */
.enhanced-textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

/* 禁用默认外观 */
.enhanced-textarea::-webkit-resizer {
  display: none;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .enhanced-textarea {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
  }

  .enhanced-textarea::placeholder {
    color: #94a3b8;
  }
}

/* 📌 方案二：动态霓虹效果 */
@keyframes neonPulse {

  0%,
  100% {
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
  }

  50% {
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.9), 0 0 30px rgba(236, 72, 153, 0.6);
  }
}

.title-neon {
  font-family: 'Courier New', monospace;
  font-size: 2.8rem;
  /*color: #e2e8f0;*/
  color: #3b82f6;
  animation: neonPulse 2s ease-in-out infinite;
  position: relative;
  letter-spacing: 2px;
}

.title-neon::before {
  content: '✦';
  position: absolute;
  left: -10px;
  top: 1%;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 4px #6366f1);
}


/* 密码模态框层级 */
#passwordModal.modal {
  z-index: 1000;
  /* 必须高于提示框的 z-index */
}

.alert-box {
  z-index: 999;
}


/* 响应式布局 */
@media (max-width: 768px) {

  /* 基础样式 */
  .container {
    width: 160%;
    height: 100%;
    margin: 2rem auto;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .action-group {
    flex-direction: column;
    gap: 1rem;
  }
}

/* 绿色输入框 */
.text-green {
  color: #28a745 !important;
  /* 绿色 */
}

/* 红色输入框 */
.text-red {
  color: #ff0000 !important;
  /* 红色 */
}

/* 统一占位符样式 */
.enhanced-textarea::placeholder {
  color: #999 !important;
}