body {
  margin: 0;
  background: #f0f2f5;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #333;
}
#base {
  position: relative;
  min-height: 100vh;
  padding: 24px 32px 88px;
  max-width: 960px;
}

.page-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.page-sub { font-size: 13px; color: #888; margin: -12px 0 20px; }
.back-link {
  display: inline-block; margin-bottom: 12px; color: #1890ff;
  text-decoration: none; font-size: 14px;
}
.back-link:hover { text-decoration: underline; }

.page-block {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 6px;
  padding: 24px 28px 28px; margin-bottom: 20px;
}
.block-head {
  font-size: 16px; font-weight: 600; color: #333; margin: 0 0 20px;
  padding-bottom: 12px; border-bottom: 1px solid #f0f0f0;
  display: flex; align-items: center; gap: 8px;
}
.block-head .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: #1890ff; color: #fff;
  font-size: 12px; font-weight: 600;
}

.section-title {
  font-size: 14px; font-weight: 600; color: #d9001b; margin: 20px 0 14px;
  padding-left: 8px; border-left: 3px solid #d9001b;
}
.section-title:first-of-type { margin-top: 0; }

.form-row {
  display: flex; align-items: flex-start; margin-bottom: 18px; min-height: 36px;
}
.form-label {
  width: 140px; flex-shrink: 0; text-align: right; padding-right: 16px;
  font-size: 14px; line-height: 36px; color: #333;
}
.form-label.top { line-height: 1.5; padding-top: 8px; }
.form-label .req { color: #d9001b; }
.form-body { flex: 1; min-width: 0; }
.form-body .inline-text { line-height: 36px; font-size: 14px; }

.upload-box {
  width: 120px; height: 80px; border: 1px dashed #d9d9d9; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: #fafafa; color: #999; font-size: 12px; cursor: pointer;
  flex-direction: column; gap: 4px;
}
.upload-box:hover { border-color: #1890ff; color: #1890ff; }
.upload-box.has-file {
  border-style: solid; border-color: #91d5ff; background: #e6f7ff; color: #1890ff;
}
.upload-hint { font-size: 12px; color: #999; margin-top: 6px; line-height: 1.6; }

.dual-upload { display: flex; gap: 24px; flex-wrap: wrap; }
.upload-cell { flex: 0 0 auto; }
.upload-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 3px; margin-bottom: 8px;
}
.upload-tag.h5 { background: #e6f7ff; color: #096dd9; border: 1px solid #91d5ff; }
.upload-tag.pc { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }

.input-text {
  width: 100%; max-width: 420px; height: 32px; border: 1px solid #d9d9d9;
  border-radius: 4px; padding: 0 10px; font-size: 13px; box-sizing: border-box;
}
.input-text.short { max-width: 100px; }
.input-text.medium { max-width: 180px; }
.textarea {
  width: 100%; max-width: 560px; min-height: 120px; border: 1px solid #d9d9d9;
  border-radius: 4px; padding: 8px 10px; font-size: 13px; box-sizing: border-box;
  resize: vertical; font-family: inherit; line-height: 1.6;
}

.radio-group, .check-group {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  line-height: 36px; font-size: 14px;
}
.radio-group label, .check-group label {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
}

.switch-row { display: flex; align-items: center; gap: 10px; line-height: 36px; font-size: 14px; }
.switch {
  width: 44px; height: 22px; background: #bfbfbf; border-radius: 11px;
  position: relative; flex-shrink: 0; cursor: pointer; border: 0; padding: 0;
}
.switch.on { background: #1890ff; }
.switch::after {
  content: ""; position: absolute; width: 18px; height: 18px; background: #fff;
  border-radius: 50%; top: 2px; left: 2px; transition: left .15s;
}
.switch.on::after { left: auto; right: 2px; }

.tip-warn {
  background: #fffbe6; border: 1px solid #ffe58f; border-radius: 4px;
  padding: 8px 12px; font-size: 12px; color: #ad6800; margin-top: 8px; max-width: 560px;
}
.tip-info {
  background: #e6f7ff; border: 1px solid #91d5ff; border-radius: 4px;
  padding: 8px 12px; font-size: 12px; color: #096dd9; margin: -4px 0 16px; max-width: 640px;
}

.table-wrap { overflow-x: auto; margin-bottom: 12px; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px;
}
.data-table th, .data-table td {
  border: 1px solid #e8e8e8; padding: 10px 12px; text-align: left;
}
.data-table th { background: #fafafa; font-weight: 600; color: #666; }
.data-table td.ops { white-space: nowrap; }
.data-table .input-text { max-width: 100%; }
.data-table .input-text.tiny { max-width: 72px; text-align: center; }
.prob-sum {
  margin-top: 8px; font-size: 13px; color: #666;
}
.prob-sum.ok { color: #389e0d; }
.prob-sum.bad { color: #d9001b; font-weight: 600; }

.link-btn {
  color: #1890ff; cursor: pointer; margin-right: 12px; background: none; border: none;
  font-size: 13px; padding: 0;
}
.link-btn.danger { color: #ff4d4f; }
.btn-add-row {
  padding: 6px 16px; font-size: 13px; border: 1px dashed #1890ff; color: #1890ff;
  background: #e6f7ff; border-radius: 4px; cursor: pointer;
}
.btn-add-row:disabled { opacity: .45; cursor: not-allowed; }

.divider { height: 1px; background: #f0f0f0; margin: 8px 0 4px; }

.footer-btns {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
  border-top: 1px solid #e8e8e8; padding: 12px 32px; display: flex; gap: 12px; z-index: 10;
}
.btn {
  padding: 8px 24px; border-radius: 4px; font-size: 14px; cursor: pointer;
  border: 1px solid #d9d9d9; background: #fff;
}
.btn-primary { background: #1890ff; color: #fff; border-color: #1890ff; }
.btn-primary:hover { background: #40a9ff; }

.sticky-note {
  position: fixed; right: 24px; top: 80px; width: 320px; max-height: calc(100vh - 120px);
  overflow-y: auto; background: #d0e17d; border: 1px solid #b8c96a; border-radius: 4px;
  padding: 16px; font-size: 12px; line-height: 1.8; box-shadow: 0 2px 8px rgba(0,0,0,.08);
  z-index: 5;
}
.sticky-note h4 { margin: 0 0 8px; font-size: 13px; }
.sticky-note .red { color: #d9001b; font-weight: 600; }
.sticky-note ol { margin: 0; padding-left: 18px; }
.sticky-note code {
  background: rgba(0,0,0,.06); padding: 0 4px; border-radius: 2px; font-size: 11px;
}

.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: rgba(0,0,0,.75); color: #fff; padding: 10px 20px; border-radius: 4px;
  font-size: 13px; z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 索引页 */
.hub {
  max-width: 720px; margin: 48px auto; padding: 0 24px;
}
.hub h1 { font-size: 24px; margin: 0 0 8px; }
.hub .desc { color: #888; font-size: 14px; margin-bottom: 28px; }
.hub-card {
  display: block; background: #fff; border: 1px solid #e8e8e8; border-radius: 8px;
  padding: 20px 24px; margin-bottom: 14px; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.hub-card:hover { border-color: #91d5ff; box-shadow: 0 4px 16px rgba(24,144,255,.12); }
.hub-card h3 { margin: 0 0 6px; font-size: 16px; color: #1890ff; }
.hub-card p { margin: 0; font-size: 13px; color: #666; line-height: 1.6; }

@media (max-width: 1280px) {
  .sticky-note { display: none; }
}
