/* ==================== 劳模技术需求申报表单样式 ==================== */

/* 面包屑 */
.breadcrumb {
  background: #f5f7fa;
  border-bottom: 1px solid #e8ecf0;
  padding: 10px 0;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
  color: #888;
}

.breadcrumb-inner a {
  color: #888;
  text-decoration: none;
}

.breadcrumb-inner a:hover {
  color: #1677ff;
}

/* 主容器 */
.ldf-wrapper {
  max-width: 1200px;
  margin: 30px auto 50px;
  padding: 0 20px;
}

.ldf-wrapper .nav {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(33.3%, 1fr));
  margin-bottom: 15px;
}

.ldf-wrapper .nav li {
    font-size: 15px;
    text-align: center;
    background: #8caad5;
    padding: 10px;
    color: #fff;
    cursor: pointer;
}

.ldf-wrapper .nav li.active{
    background: #1677ff;
}

.ldf-wrapper .nav li a,.ldf-wrapper .nav li a:hover{
    background: inherit;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

/* ==================== 步骤条 ==================== */
.ldf-steps {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 28px 40px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 0;
}

.ldf-steps-title {
  font-size: 15px;
  color: #333;
  white-space: nowrap;
  margin-right: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ldf-steps-title .icon-flash {
  display: inline-block;
  width: 35px;
  height: 28px;
  text-align: center;
  line-height: 28px;
  font-size: 35px;
}

.ldf-step-list {
  flex: 1;
  display: flex;
  align-items: center;
}

.ldf-step-item {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}

.ldf-step-item:last-child {
  flex: none;
}

/* 步骤节点 */
.ldf-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ldf-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.4);
}

.ldf-step-circle.inactive {
  background: #d9d9d9;
  color: #fff;
  box-shadow: none;
}

.ldf-step-label {
  font-size: 14px;
  color: #1677ff;
  white-space: nowrap;
  font-weight: 500;
}

.ldf-step-label.inactive {
  color: #888;
  font-weight: normal;
}

/* 步骤连接线 */
.ldf-step-line {
  flex: 1;
  height: 2px;
  background: #d9d9d9;
  margin: 0 8px;
  margin-bottom: 22px;
}

.ldf-step-line.active {
  background: #1677ff;
}

/* ==================== 表单卡片 ==================== */
.ldf-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 36px 50px 40px;
}

/* ==================== 两列网格布局（核心） ==================== */
.ldf-form-grid {
  /* 不用额外容器属性，由子行控制布局 */
}

/* 网格行：默认两等分 */
.ldf-grid-row {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
}

/* 独占整行的行（如申请帮扶事项） */
.ldf-grid-full {
  display: block;
}

/* 附件行特殊对齐：左列flex自适应右列固定宽度 */
.ldf-grid-row-attach .ldf-grid-cell:first-child {
  flex: 1;
  min-width: 0;
}

.ldf-grid-row-attach .ldf-grid-cell:last-child {
  flex: 1;
  min-width: 0;
}

/* 网格单元格：每列等宽 */
.ldf-grid-cell {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

/* 网格内的标签 - 固定宽度右对齐 */
.ldf-grid-cell>.ldf-label {
  width: 121px;
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
  line-height: 36px;
  text-align: right;
  padding-right: 12px;
  box-sizing: border-box;
}

.ldf-grid-cell>.ldf-label.required::before {
  content: '*';
  color: #ff4d4f;
  margin-right: 4px;
}

/* 网格内的字段区域 */
.ldf-grid-cell>.ldf-field {
  flex: 1;
  min-width: 0;
}

/* 整行独占时的label更宽 */
.ldf-grid-full .ldf-grid-cell>.ldf-label {
  width: 121px;
}

/* ==================== 输入控件 ==================== */
.ldf-input,
.ldf-select {
  width: 100%;
  height: 36px;
  line-height: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.ldf-input:focus,
.ldf-select:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.ldf-input::placeholder {
  color: #bfbfbf;
}

/* 下拉选择箭头 */
.ldf-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* ==================== 上传附件区域 ==================== */
.ldf-upload-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  padding: 12px 16px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ldf-upload-box:hover {
  border-color: #1677ff;
}

.ldf-upload-icon {
  width: 52px;
  height: 52px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1677ff;
  font-size: 20px;
}

.ldf-upload-text {
  flex: 1;
}

.ldf-upload-btn {
  font-size: 13px;
  color: #1677ff;
  font-weight: 500;
  margin-bottom: 4px;
  cursor: pointer;
}

.ldf-upload-tip {
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
}

/* ==================== 日期范围输入框 ==================== */
.ldf-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  height: 36px;
  box-sizing: border-box;
  transition: border-color 0.2s;
  width: 100%;
  position: relative;
  /* laydate面板定位基准 */
  cursor: pointer;
  /* 整个区域可点击 */
}

.ldf-date-range:focus-within {
  border-color: #1677ff;
}

.ldf-date-range input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  width: 100px;
  min-width: 80px;
  flex: 1;
  font-size: 14px;
  color: #333;
  height: 34px;
  padding: 0 4px;
  cursor: pointer;
  /* 确保鼠标指针可点击 */
  pointer-events: auto;
  /* 确保事件不被父容器拦截 */
}

.ldf-date-range .sep {
  color: #bbb;
  flex-shrink: 0;
}

.ldf-date-range .arrow {
  color: #999;
  font-size: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ==================== 富文本编辑器行 ==================== */
.ldf-row {
  display: flex;
  align-items: flex-start;
}

.ldf-editor-row {
  margin-top: 20px;
}

.ldf-editor-row .ldf-label {
  width: 121px;
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
  text-align: right;
  padding-right: 16px;
  box-sizing: border-box;
  line-height: 38px;
}

.ldf-editor-row .ldf-field {
  flex: 1;
  min-width: 0;
}

/* ==================== 底部按钮 ==================== */
.ldf-footer {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 126px;
  /* 与整行label宽度对齐 110+16 */
}

.btn-ldf-draft {
  height: 40px;
  padding: 0 28px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  font-size: 15px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ldf-draft:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.btn-ldf-submit {
  height: 40px;
  padding: 0 32px;
  border: none;
  border-radius: 4px;
  background: #1677ff;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-ldf-submit:hover {
  background: #0958d9;
}

.btn-ldf-submit svg {
  width: 16px;
  height: 16px;
}

/* 附件预览 */
.ldf-attach-preview {
  margin-top: 6px;
  font-size: 13px;
  color: #52c41a;
}

/* laydate 覆盖只读样式 */
.ldf-date-range input[readonly] {
  cursor: pointer;
}

/* ==================== 响应式：窄屏时降级为单列 ==================== */
@media (max-width: 768px) {
  .ldf-card {
    padding: 20px 16px;
  }

  .ldf-grid-row {
    flex-direction: column;
    gap: 0;
  }

  .ldf-grid-cell {
    width: 100%;
    margin-bottom: 18px;
  }

  .ldf-grid-cell>.ldf-label {
    width: 90px;
  }

  .ldf-grid-full .ldf-grid-cell>.ldf-label {
    width: 90px;
  }

  .ldf-editor-row .ldf-label {
    width: 90px;
  }

  .ldf-footer {
    padding-left: 102px;
  }

  .ldf-steps {
    flex-direction: column;
    padding: 20px;
  }

  .ldf-steps-title {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .ldf-step-list {
    width: 100%;
    justify-content: center;
  }
}