/* ============================================================
 * NetCorePpt — support.html（客服工单页）
 * 只放这一页专用的样式；基础变量/按钮/字段/验证码样式来自 style.css
 * ============================================================ */

/* ---------- Hero ---------- */
.sp-hero {
  padding: 132px 0 44px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(139, 92, 246, .16), transparent 62%),
    radial-gradient(700px 380px at 88% 0%, rgba(249, 115, 22, .10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.sp-title {
  margin: 16px 0 0;
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--slate-900);
}
.sp-sub {
  margin: 14px 0 0;
  max-width: 700px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}
.sp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.sp-meta-item { display: flex; flex-direction: column; gap: 3px; }
.sp-meta-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-400); }
.sp-meta-value { font-size: 14.5px; font-weight: 600; color: var(--slate-800); }
.sp-meta-value a { color: var(--violet-700); text-decoration: none; border-bottom: 1px dashed var(--violet-500); }
.sp-meta-value a:hover { border-bottom-style: solid; }
.sp-meta-divider { width: 1px; height: 34px; background: var(--border); }

/* ---------- 布局 ---------- */
.sp-section { padding: 48px 0 84px; }
.sp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  gap: 32px;
  align-items: start;
  max-width: 1060px;
  margin: 0 auto;
}

/* ---------- 表单卡片 ---------- */
.sp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.sp-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--violet-600), var(--orange-400));
}
.sp-card-title { margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--slate-900); }
.sp-card-hint { margin: 0 0 24px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }
.sp-card .req { color: #EF4444; font-weight: 700; }
.sp-card .opt { color: var(--slate-400); font-weight: 400; }
.sp-card .field label .opt { font-size: 13px; }

/* textarea 沿用 .field input 的观感 */
.sp-card .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  line-height: 1.65;
  color: var(--slate-900);
  background: #fff;
  resize: vertical;
  min-height: 150px;
  transition: border-color .15s, box-shadow .15s;
}
.sp-card .field textarea::placeholder { color: var(--slate-400); }
.sp-card .field textarea:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 3px var(--violet-50); }
.sp-card .field textarea.invalid { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .1); }
.sp-card .field input.invalid { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .1); }
.sp-card .field-error { display: block; }
.sp-card .field-error[hidden] { display: none; }

/* ---------- 图片选择区 ---------- */
.sp-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  transition: border-color .15s, background .15s;
}
.sp-drop:hover { border-color: var(--violet-500); background: var(--violet-50); }
.sp-drop.is-full { opacity: .7; border-style: solid; }
.sp-drop-hint { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

.sp-previews {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
}
.sp-previews:empty { margin: 0; }
.sp-preview {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.sp-preview img { display: block; width: 100%; height: 96px; object-fit: cover; background: var(--slate-100); }
.sp-preview-meta {
  display: block;
  padding: 7px 9px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-preview-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, .66);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.sp-preview-del:hover { background: #DC2626; }

/* ---------- 提交区 ---------- */
.sp-actions { margin-top: 26px; }
.sp-actions .btn { width: 100%; }
.sp-card .verify-status { margin-top: 16px; }

/* ---------- 成功面板 ---------- */
.sp-success { text-align: left; }
.sp-success[hidden] { display: none; }
.sp-ok-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  margin-bottom: 16px;
}
.sp-ok-body { margin: 0 0 22px; font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
.sp-ok-meta { margin: 0 0 22px; display: flex; gap: 34px; flex-wrap: wrap; }
.sp-ok-meta dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-400); }
.sp-ok-meta dd { margin: 5px 0 0; font-size: 17px; font-weight: 700; color: var(--slate-900); font-family: var(--mono); }
.sp-ok-direct { margin: 0 0 20px; font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.sp-ok-direct a { color: var(--violet-700); text-decoration: none; border-bottom: 1px dashed var(--violet-500); }

/* ---------- 侧栏提示 ---------- */
.sp-aside {
  background: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.sp-aside-title { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--slate-900); }
.sp-tips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-tips li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.sp-tips li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-500);
}
.sp-aside-note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--slate-500);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .sp-layout { grid-template-columns: 1fr; gap: 24px; }
  .sp-hero { padding: 116px 0 36px; }
}
@media (max-width: 560px) {
  .sp-card { padding: 24px 20px; }
  .sp-meta { gap: 10px; }
  .sp-meta-divider { display: none; }
  .sp-previews { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .sp-preview img { height: 78px; }
  .sp-ok-meta { gap: 20px; }
}
