/* 设置页面样式文件 */
/* 包含设置页面特有的样式 */

/* 设置容器 */
.settings-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 15px;
  padding-bottom: 100px; /* 为底部导航栏留出空间 */
  box-sizing: border-box;
}

/* 顶部导航栏 */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(30, 20, 15, 0.7); /* 深棕色系，与橙色背景协调 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4); /* 白色边框，更粗更明显 */
}

.header-center {
  text-align: center;
}

.header-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff; /* 纯白色粗体 */
  margin: 0;
}

.header-placeholder {
  width: 32px; /* 与返回按钮宽度相同，用于平衡布局 */
}

/* 卡片样式优化 - 更紧凑 */
.settings-container .card {
  margin-bottom: 12px; /* 减小卡片间距 */
  padding: 16px 20px; /* 减小内边距 */
  background: rgba(30, 20, 15, 0.65); /* 深棕色系，与橙色背景协调 */
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4); /* 白色边框，更粗更明显 */
}

.settings-container .card-title {
  font-size: 18px; /* 稍微减小标题字体 */
  margin-bottom: 12px; /* 减小标题下方间距 */
}

/* 信息项 */
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0; /* 减小内边距 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 15px; /* 稍微减小字体 */
  color: #aaaaaa;
  font-weight: 500;
}

.info-value {
  font-size: 15px; /* 稍微减小字体 */
  color: #ffffff;
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

/* 使用说明卡片样式 */
.usage-guide-card {
  margin-top: 20px; /* 与其他卡片保持间距 */
}

.usage-guide-content {
  padding-top: 8px;
}

/* 使用说明卡片内的样式 - 使用更具体的选择器确保优先级 */
.usage-guide-card .usage-guide-section-title {
  font-size: 14px !important; /* 缩小字号，使用!important确保优先级 */
  font-weight: 700;
  color: #ef5350 !important; /* 改为红色 */
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.usage-guide-card .usage-guide-text {
  font-size: 13px !important; /* 缩小字号 */
  line-height: 1.6; /* 稍微减小行高 */
  color: #e0e0e0;
  margin: 0 0 10px 0;
}

.usage-guide-card .usage-guide-list {
  margin: 10px 0;
  padding-left: 20px;
  list-style-type: disc;
}

.usage-guide-card .usage-guide-list li {
  font-size: 13px !important; /* 缩小字号 */
  line-height: 1.6; /* 稍微减小行高 */
  color: #e0e0e0;
  margin-bottom: 6px;
}

.usage-guide-card .usage-guide-list li:last-child {
  margin-bottom: 0;
}

.usage-guide-card .usage-guide-section {
  margin-bottom: 20px;
  padding-bottom: 16px; /* 增加底部内边距 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important; /* 添加横线分割，使用更明显的颜色 */
}

.usage-guide-card .usage-guide-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0; /* 最后一个段落不需要底部内边距 */
  border-bottom: none !important; /* 最后一个段落不需要横线 */
}

/* 文字重点样式 */
.text-important {
  color: #ffffff;
  font-weight: 700;
}

.text-warning {
  color: #ffa726;
  font-weight: 700;
}

.text-critical {
  color: #ef5350;
  font-weight: 700;
}

/* 操作按钮 */
.actions {
  padding: 8px 0; /* 减小内边距 */
  display: flex;
  flex-direction: column;
  gap: 10px; /* 按钮之间的间距 */
}

/* 模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2c3e50;
}

.modal-message {
  margin-bottom: 25px;
  color: #555;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .settings-container {
    padding: 15px;
    padding-bottom: 100px; /* 为底部导航栏留出空间 */
  }
  
  .header {
    flex-direction: row;
    gap: 15px;
  }
  
  .header-title {
    font-size: 18px;
    position: static;
    transform: none;
    left: auto;
  }
  
  .header-placeholder {
    width: 24px; /* 与返回按钮宽度相同，用于平衡布局 */
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .info-label {
    font-size: 14px;
  }
  
  .info-value {
    font-size: 14px;
    text-align: left;
    max-width: 100%;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .modal-actions {
    flex-direction: row;
  }
  
  .modal-actions .btn {
    width: auto;
  }
}