/* == css/app/page-submit.css · 由 css/style.css L321-542 原样拆分，规则与顺序未动 == */
/* ============================================================
   提交工单页
   ============================================================ */
.page-main { padding: 56px 0 96px; }
.page-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.page-title { font-size: 30px; font-weight: 700; }
.page-sub { margin-top: 8px; font-size: 14px; color: var(--gray-2); }

.form-card {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-label { font-size: 14px; font-weight: 500; color: var(--black); }
.form-label .optional { color: var(--gray-3); font-weight: 400; font-size: 12px; }

.type-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  transition: all 0.15s;
}
.type-option:hover { border-color: var(--gray-3); }
.type-option input { display: none; }
.type-option .radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #d4d4d8;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.type-option .radio::after {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.15s;
}
.type-option.checked { border-color: var(--blue); border-width: 1.5px; background: var(--blue-50); }
.type-option.checked .radio { background: var(--blue); border-color: var(--blue); }
.type-option.checked .radio::after { transform: scale(1); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--black);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-3); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2371717A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--gray-3);
  cursor: pointer;
}
.select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 自定义下拉：隐藏原生 select 保持表单取值，面板按设计规范自绘 */
.select { position: relative; }
.select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.select-trigger:hover { border-color: var(--gray-3); }
.select-trigger:focus-visible,
.select.open .select-trigger {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}
.select-trigger .text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.select-trigger .text.placeholder { color: var(--gray-3); }
.select-trigger .arrow { flex: none; transition: transform 0.15s; }
.select.open .select-trigger .arrow { transform: rotate(180deg); }
.select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  padding: 6px;
  max-height: 252px;
  overflow-y: auto;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.select.open .select-panel { opacity: 1; visibility: visible; transform: none; }
.select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-1);
  cursor: pointer;
  user-select: none;
}
.select-option:hover,
.select-option.active { background: var(--bg-soft); color: var(--black); }
.select-option.selected { background: var(--blue-50); color: var(--blue); font-weight: 500; }
.select-option .opt-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.opt-dot.low { background: var(--green); }
.opt-dot.mid { background: var(--amber); }
.opt-dot.high { background: var(--red); }
.select-option .opt-check { margin-left: auto; flex: none; display: inline-flex; opacity: 0; }
.select-option.selected .opt-check { opacity: 1; }

.upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 88px;
  background: var(--bg-soft);
  border: 1px dashed #d4d4d8;
  border-radius: var(--radius-input);
  color: var(--gray-2);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-zone:hover { border-color: var(--blue); background: var(--blue-50); }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.agree { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray-1); }
.agree input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.agree a { color: var(--blue); }

/* ---------- 提交选项面板（公开开关 + 协议勾选，自绘复选框） ---------- */
.form-options {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 4px 16px;
}
.opt-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  cursor: pointer;
}
.opt-row + .opt-row { border-top: 1px solid var(--border-light); }
.opt-row input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  margin-top: 1px;
  border: 1.5px solid #d4d4d8;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.opt-box svg { opacity: 0; transform: scale(0.5); transition: all 0.15s; }
.opt-row:hover .opt-box { border-color: var(--gray-3); }
.opt-row input:checked ~ .opt-box { background: var(--blue); border-color: var(--blue); }
.opt-row input:checked ~ .opt-box svg { opacity: 1; transform: scale(1); }
.opt-row input:focus-visible ~ .opt-box { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.opt-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--black); line-height: 1.5; }
.opt-text .opt-title { font-weight: 500; }
.opt-text .opt-title a { color: var(--blue); }
.opt-text .opt-desc { font-size: 12px; color: var(--gray-2); line-height: 1.6; }
.btn-submit-wide { width: 100%; }

/* 侧边栏 */
.side-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 24px;
}
.side-card + .side-card { margin-top: 20px; }
.side-card.soft { background: var(--bg-soft); }
.side-card h3 { font-size: 15px; font-weight: 600; }
.tip-list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.tip-list li {
  list-style: none;
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.62;
  color: var(--gray-1);
}
.tip-list li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 3px;
  background: var(--blue);
  flex: none;
  margin-top: 8px;
}
.sla-list { margin-top: 16px; }
.sla-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 13px;
}
.sla-row + .sla-row { border-top: 1px solid #f1f1f4; }
.sla-row .k { color: var(--gray-2); }
.sla-row .v { color: var(--black); font-weight: 500; }
