/* ============================================================
   Kory AI · 极速版 / 专业版 视觉（v8）
   相比 v7 的修正：
     模式类 proto-fast / proto-pro 从 <body> 改挂在 .form-page-grid 上。
     <body> 在站内切换页面时不会重建，旧类会残留到下一个页面，
     导致再进入时直接显示专业版布局、且没有返回按钮。
     挂在栅格上则随表单节点一起销毁，天然不会泄漏到其它页面。
   ============================================================ */

/* ---------- 升级入口 ---------- */
.proto-promo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}

.proto-promo__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: filter .15s, box-shadow .15s;
}

.proto-promo__tag:hover { filter: brightness(.97); box-shadow: 0 3px 10px #0f172a14; }

.proto-promo__tag--outline {
  background: #fdeceb;
  border-color: #f8c9c5;
  color: #d92d20;
}

.proto-promo__tag--upgrade {
  position: relative;
  background: #fff4e5;
  border-color: #ffd39e;
  color: #c2410c;
}

.proto-promo__hot {
  position: absolute;
  top: -9px;
  right: -6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.proto-promo__back {
  display: none;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #bfd6f5;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7fbff, #eaf3ff);
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px #2563eb14;
  transition: background .16s, border-color .16s, box-shadow .16s, transform .16s;
}

.proto-promo__back:hover {
  border-color: var(--primary, #2563eb);
  background: #fff;
  box-shadow: 0 4px 14px #2563eb2e;
  transform: translateY(-1px);
}

.proto-promo__back:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
}

/* 专业版下只显示返回入口 */
.proto-pro .proto-promo__tag { display: none; }
.proto-pro .proto-promo__back { display: inline-flex; align-items: center; }

/* ---------- 模式小标签 ---------- */
.proto-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: linear-gradient(120deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  vertical-align: 4px;
  box-shadow: 0 3px 10px #4f46e54d;
  transform: rotate(-2deg);
  transition: transform .2s, box-shadow .2s;
  cursor: default;
  user-select: none;
}

.proto-mode-badge::before {
  content: "✦";
  font-size: 10px;
  opacity: .9;
  animation: proto-sparkle 2.4s ease-in-out infinite;
}

.proto-mode-badge:hover {
  transform: rotate(0deg) translateY(-1px);
  box-shadow: 0 5px 16px #4f46e566;
}

@keyframes proto-sparkle {
  0%, 100% { opacity: .9; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

/* 专业版：深藏青底 + 金色描边与字色 */
.proto-pro .proto-mode-badge {
  background: linear-gradient(135deg, #16213e 0%, #1e3a8a 60%, #1e40af 100%);
  color: #f0d9a8;
  box-shadow:
    inset 0 0 0 1px #c9a22766,
    0 4px 14px #1e3a8a4d;
  text-shadow: 0 1px 2px #0b1220;
}

.proto-pro .proto-mode-badge::before {
  content: "◆";
  color: #e8c87a;
  font-size: 8px;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .proto-mode-badge::before { animation: none; }
}

/* ---------- 布局：两种模式统一为三列 ---------- */

/* 右侧「数据图表选项说明」面板：两种模式都去掉 */
.proto-fast .form-page-grid__guide,
.proto-pro .form-page-grid__guide { display: none !important; }

:root { --proto-showcase-w: 268px; }

.form-page-grid.proto-fast,
.form-page-grid.proto-pro {
  grid-template-columns: auto var(--proto-showcase-w) minmax(0, 1fr) !important;
  gap: 24px;
}

.form-page-grid.proto-fast .form-page-grid__form,
.form-page-grid.proto-pro .form-page-grid__form {
  grid-column: 3 !important;
}

/* ---------- 左侧引导展示区 ---------- */
.proto-showcase {
  grid-column: 2;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  width: var(--proto-showcase-w);
  padding: 0;
  text-align: left;
  align-self: start;
}

.proto-showcase__panel {
  position: relative;
  border-radius: 20px;
  background:
    radial-gradient(120% 60% at 100% 0%, #e0efff 0%, transparent 60%),
    radial-gradient(120% 55% at 0% 100%, #e8f1ff 0%, transparent 62%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8ff 100%);
  padding: 14px 12px 12px;
  box-shadow: 0 10px 30px #2563eb14, 0 2px 6px #2563eb0a;
  overflow: hidden;
}

.proto-showcase__panel::before,
.proto-showcase__panel::after {
  content: "✦";
  position: absolute;
  color: #bfd8f7;
  font-size: 13px;
  opacity: .8;
}

.proto-showcase__panel::before { top: 12px; left: 14px; }
.proto-showcase__panel::after { top: 26px; right: 16px; font-size: 9px; opacity: .6; }

.proto-showcase__head {
  text-align: center;
  padding-bottom: 10px;
  margin-bottom: 2px;
}

.proto-showcase__badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 11px;
  border-radius: 999px;
  background: linear-gradient(120deg, #60a5fa, #3b82f6);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: 0 3px 10px #3b82f64d;
}

.proto-pro .proto-showcase__badge {
  background: linear-gradient(135deg, #16213e 0%, #1e3a8a 60%, #1e40af 100%);
  color: #f0d9a8;
  box-shadow:
    inset 0 0 0 1px #c9a22766,
    0 4px 14px #1e3a8a40;
}

.proto-showcase__title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: .04em;
  line-height: 1.25;
}

.proto-showcase__sub {
  margin: -5px 0 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #d6e6fa;
  text-transform: uppercase;
  line-height: 1.1;
  user-select: none;
  position: relative;
  z-index: 0;
}

/* ---------- 步骤 ---------- */
.proto-sc-step { position: relative; margin-bottom: 0; }

.proto-sc-step__head {
  position: relative;
  z-index: 2;
  width: calc(100% - 18px);
  margin: 0 auto -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  background: linear-gradient(120deg, #93c5fd 0%, #60a5fa 55%, #3b82f6 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 4px 12px #60a5fa3d;
  text-shadow: 0 1px 2px #1d4ed833;
}

.proto-sc-step__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffffd9;
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.proto-sc-step__body {
  position: relative;
  z-index: 1;
  padding: 16px 11px 9px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #2563eb12;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-secondary, #334155);
}

.proto-sc-step__body--center {
  text-align: center;
  color: #1e40af;
  font-weight: 600;
  letter-spacing: .02em;
}

.proto-sc-step__body--list { color: #475569; }

.proto-sc-step__arrow {
  display: flex;
  justify-content: center;
  margin: 5px 0;
  color: #93b8e6;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- 样例卡片 ---------- */
.proto-sc-sample__title {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  color: #1e3a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proto-sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.proto-sc-tag {
  padding: 2px 7px;
  border-radius: 5px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 700;
}

.proto-sc-tag--orange { background: #ffedd5; color: #c2410c; }
.proto-sc-tag--green  { background: #dcfce7; color: #15803d; }

.proto-sc-excerpt {
  margin: 0 0 7px;
  font-size: 10.5px;
  line-height: 1.7;
  color: #7b8aa3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proto-sc-report {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(120deg, #eff6ff, #e6f1ff);
  font-size: 11.5px;
  color: #1d4ed8;
  font-weight: 700;
}

.proto-sc-report b {
  color: #16a34a;
  position: relative;
  padding: 0 2px;
  z-index: 0;
}

.proto-sc-report b::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: #bbf7d0;
  border-radius: 2px;
  z-index: -1;
}

/* ---------- 底部能力条 ---------- */
.proto-showcase__foot-bar {
  position: relative;
  z-index: 2;
  width: calc(100% - 14px);
  margin: 0 auto -10px;
  padding: 8px 6px;
  border-radius: 9px;
  background: linear-gradient(120deg, #93c5fd 0%, #60a5fa 55%, #3b82f6 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.55;
  letter-spacing: .01em;
  box-shadow: 0 4px 12px #60a5fa3d;
  text-shadow: 0 1px 2px #1d4ed833;
  text-wrap: balance;
}

.proto-showcase__foot-card {
  position: relative;
  z-index: 1;
  padding: 20px 12px 11px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px #2563eb12;
}

.proto-showcase__foot-list {
  margin: 0 0 7px;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.9;
  color: #64748b;
}

.proto-showcase__foot-list li {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proto-showcase__foot-list li::before {
  content: "≡";
  color: #cbd5e1;
  font-size: 10px;
  flex-shrink: 0;
}

/* 三个标签等分宽度；允许收缩，保证整体不超出白卡边界 */
.proto-showcase__chips {
  display: flex;
  gap: 6px;
}

.proto-showcase__chip {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 2px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eff6ff, #e4efff);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 0 0 1px #ffffffb3;
}

/* ---------- 极速版表单 ---------- */

/* 去掉表单卡片的外框、底色与投影，消除割裂感 */
.proto-fast .form-wrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 步骤条：两种模式都去掉 */
.form-page-grid.proto-fast .autopaper-stepper,
.form-page-grid.proto-pro .autopaper-stepper { display: none !important; }

.proto-fast .form-header {
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: 0;
}

.proto-fast .form-title { font-size: 24px; letter-spacing: .01em; }
.proto-fast .form-subtitle { margin-top: 6px; font-size: 13px; }

.proto-fast .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #334155);
}

.proto-fast .form-input,
.proto-fast .form-select,
.proto-fast .form-textarea {
  min-height: 44px;
  border-radius: 10px;
  border-color: #dbe6f6;
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}

.proto-fast .form-input:hover,
.proto-fast .form-select:hover { border-color: #bfd6f5; }

.proto-fast .form-input:focus,
.proto-fast .form-select:focus,
.proto-fast .form-textarea:focus {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px #2563eb1f;
  outline: none;
}

.proto-fast .form-group { margin-bottom: 22px; }

/* ---------- 隐藏高级字段 ---------- */
.proto-fast .proto-hidden { display: none !important; }

/* ---------- 极速版字段排布 ---------- */
.proto-fast .form-row {
  grid-template-columns: 1fr !important;
  gap: 0;
}

.proto-fast .form-row--4 {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) !important;
  gap: 18px;
}

.proto-fast .form-group--degree { grid-column: 1; }
.proto-fast .form-group--major  { grid-column: 2; }

/* ---------- 开题报告：普通表单行 ---------- */
.proto-proposal {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-secondary, #334155);
}

.proto-fast .proto-proposal { display: flex; }

.proto-proposal__label {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-secondary, #334155);
}

.proto-proposal__link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.proto-proposal__link:hover { text-decoration: underline; }

.proto-proposal__hint {
  font-size: 13px;
  color: var(--text-hint, #94a3b8);
}

.proto-proposal__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.proto-proposal__file[hidden] { display: none; }

.proto-proposal__ok {
  font-size: 12.5px;
  color: #16a34a;
}

.proto-proposal__remove {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-hint, #94a3b8);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.proto-proposal__remove:hover { color: #dc2626; }

.proto-proposal__err {
  font-size: 12.5px;
  color: #dc2626;
}

/* ---------- 学历单选：胶囊卡片 ---------- */
.proto-degree-radios {
  display: none;
  align-items: stretch;
  gap: 10px;
  min-height: 44px;
  flex-wrap: wrap;
}

.proto-fast .proto-degree-radios { display: flex; }
.proto-fast .form-group--degree .form-select { display: none; }

.proto-degree-radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #dbe6f6;
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  color: var(--text-secondary, #334155);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}

.proto-degree-radios label:hover { border-color: #bfd6f5; }

.proto-degree-radios input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.proto-radio {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  transition: border-color .15s;
}

.proto-degree-radios input:checked + .proto-radio {
  border-color: var(--primary, #2563eb);
}

.proto-degree-radios input:checked + .proto-radio::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
}

.proto-degree-radios label:has(input:checked) {
  border-color: var(--primary, #2563eb);
  background: #eff6ff;
  color: var(--primary-dark, #1d4ed8);
  font-weight: 600;
  box-shadow: 0 0 0 3px #2563eb14;
}

/* ---------- 生成文件勾选区 ---------- */
.proto-fast .checkbox-group {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.proto-fast .checkbox-item {
  justify-content: center;
  min-height: 46px;
  border-radius: 10px;
  border-color: #dbe6f6;
  background: #fff;
  font-size: 13px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.proto-fast .checkbox-item:hover { border-color: #bfd6f5; }

.proto-fast .checkbox-item.checked {
  border-color: var(--primary, #2563eb);
  background: #eff6ff;
  box-shadow: 0 0 0 3px #2563eb14;
}

/* ---------- 提交区 ---------- */
.proto-fast .form-footer {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid #eef4fd;
}

.proto-fast .btn-submit {
  min-width: 220px;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 22px #2563eb3d;
  transition: transform .18s, box-shadow .18s, filter .18s;
}

.proto-fast .btn-submit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px #2563eb4d;
  filter: brightness(1.03);
}

/* ---------- 流程演示浮层（仅 #demo- 地址使用） ---------- */
.proto-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #0f172a73;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.proto-overlay.is-open { display: flex; }

.proto-overlay__card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px #0f172a3d;
  padding: 26px 24px;
  text-align: left;
  font-family: inherit;
}

.proto-overlay__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: var(--primary-muted, #2563eb1f);
  position: relative;
}

.proto-overlay__icon::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--primary, #2563eb);
}

.proto-overlay__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.proto-overlay__desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted, #64748b);
}

.proto-overlay__steps {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--border, #dbeafe);
  border-radius: 12px;
  background: var(--bg-subtle, #f8fbff);
  list-style: none;
  font-size: 13px;
  line-height: 2;
  color: var(--text-secondary, #334155);
}

.proto-overlay__close {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--primary, #2563eb);
  border-radius: 10px;
  background: var(--primary, #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1360px) {
  .proto-showcase { display: none !important; }

  .form-page-grid.proto-fast,
  .form-page-grid.proto-pro {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .form-page-grid.proto-fast .form-page-grid__form,
  .form-page-grid.proto-pro .form-page-grid__form { grid-column: 2 !important; }
}

@media (max-width: 900px) {
  .proto-fast .form-row--4 { grid-template-columns: 1fr !important; }
  .proto-fast .checkbox-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proto-fast .btn-submit { width: 100%; min-width: 0; }
  .proto-promo { position: static; margin-bottom: 14px; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .proto-degree-radios { gap: 8px; }
  .proto-degree-radios label { padding: 0 11px; }
  .proto-promo__tag { height: 30px; font-size: 12px; padding: 0 9px; }
}

/* ===== proto-patch-v9：侧栏加宽 + 标签单行 + 按钮图标 ===== */
:root { --proto-showcase-w: 288px; }

.proto-sc-tags { flex-wrap: nowrap; }

.proto-sc-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
}

.proto-showcase__chips { gap: 5px; }

.proto-showcase__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 9.5px;
  letter-spacing: -.01em;
}

.proto-showcase__chip::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.proto-showcase__chip:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.proto-showcase__chip:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h8l-1 8 10-12h-8l1-8z'/%3E%3C/svg%3E");
}

.proto-showcase__chip:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 9.5h18M9 9.5V20'/%3E%3C/svg%3E");
}

/* ===== proto-patch-v10 样式 ===== */
.proto-sc-excerpt {
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
  max-height: none !important;
  font-size: 10.5px;
  line-height: 1.75;
  color: #7b8aa3;
}

.proto-sc-extra {
  display: block;
  margin-top: 6px;
  color: #64748b;
}

.proto-showcase__chips { gap: 5px; }

.proto-showcase__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 3px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: none;
}

.proto-showcase__chip::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.proto-showcase__chip:nth-child(1) {
  background: linear-gradient(180deg, #e7f9ef, #d6f5e4);
  color: #15803d;
  box-shadow: inset 0 0 0 1px #a7e8c4;
}
.proto-showcase__chip:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v6c0 4.2 3.1 7.6 7.5 9 4.4-1.4 7.5-4.8 7.5-9V6L12 3z'/%3E%3Cpath d='m8.8 12 2.2 2.2 4.4-4.4'/%3E%3C/svg%3E");
}

.proto-showcase__chip:nth-child(2) {
  background: linear-gradient(180deg, #fff2e3, #ffe6cc);
  color: #c2410c;
  box-shadow: inset 0 0 0 1px #ffc99a;
}
.proto-showcase__chip:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f97316' stroke='%23ea580c' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h7.5L10 22l11-12.5h-7.6L13 2z'/%3E%3C/svg%3E");
}

.proto-showcase__chip:nth-child(3) {
  background: linear-gradient(180deg, #f3edff, #e9dfff);
  color: #6d28d9;
  box-shadow: inset 0 0 0 1px #d3c1fb;
}
.proto-showcase__chip:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 9.5h18M9 9.5V20'/%3E%3C/svg%3E");
}

.proto-sc-report {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 6px 7px;
  border-radius: 8px;
  background: linear-gradient(120deg, #eff6ff, #e6f1ff);
  font-size: 10px;
  color: #1d4ed8;
  font-weight: 700;
  white-space: nowrap;
}

.proto-sc-report b { white-space: nowrap; }

.proto-sample-link {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  background: #fff;
  color: #2563eb;
  font-size: 9.5px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.45;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.proto-sample-link:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 3px 10px #2563eb3d;
}

/* ===== proto-patch-v11：毕业设计第二步四种文件 ===== */
.proto-sc-step__body--picks {
  padding: 12px 11px 11px !important;
}

.proto-sc-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.proto-sc-pick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 7px;
  border-radius: 9px;
  background: #f7faff;
  box-shadow: inset 0 0 0 1px #e4eefb;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: transform .16s, box-shadow .16s;
}

.proto-sc-pick:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px #cfe0f7, 0 4px 10px #2563eb1f;
}

.proto-sc-pick__ico {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.proto-sc-pick b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proto-sc-pick--doc { background: linear-gradient(180deg, #eef5ff, #e3eeff); color: #1d4ed8; }
.proto-sc-pick--doc .proto-sc-pick__ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E");
}

.proto-sc-pick--data { background: linear-gradient(180deg, #e9fbf0, #dcf6e6); color: #15803d; }
.proto-sc-pick--data .proto-sc-pick__ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M9 10v10M15 10v10'/%3E%3C/svg%3E");
}

.proto-sc-pick--code { background: linear-gradient(180deg, #f5efff, #ece0ff); color: #6d28d9; }
.proto-sc-pick--code .proto-sc-pick__ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 8-4 4 4 4M15 8l4 4-4 4'/%3E%3C/svg%3E");
}

.proto-sc-pick--model { background: linear-gradient(180deg, #fff4e4, #ffe9cf); color: #c2410c; }
.proto-sc-pick--model .proto-sc-pick__ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.8 21 7.6v8.8L12 21.2 3 16.4V7.6z'/%3E%3Cpath d='M3 7.6 12 12.4l9-4.8M12 12.4v8.8'/%3E%3C/svg%3E");
}

/* ===== proto-patch-v12：卡片静态化 + 论文页四项样式 ===== */

.proto-sc-pick {
  transition: none !important;
}

.proto-sc-pick:hover {
  transform: none !important;
  box-shadow: inset 0 0 0 1px #e4eefb !important;
}

.proto-sc-pick--wide {
  grid-column: 1 / -1;
}

.proto-sc-pick--talk { background: linear-gradient(180deg, #e8f8fb, #dbf2f7); color: #0e7490; }
.proto-sc-pick--talk .proto-sc-pick__ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 9 9 0 0 1-4-.9L3 21l1.9-4.6A8.4 8.4 0 0 1 12 3.1a8.4 8.4 0 0 1 9 8.4z'/%3E%3Cpath d='M8.5 11.5h7M8.5 8.5h4'/%3E%3C/svg%3E");
}

.proto-sc-pick--survey { background: linear-gradient(180deg, #fff7e8, #ffeed4); color: #b45309; }
.proto-sc-pick--survey .proto-sc-pick__ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h10M9 12h10M9 19h10'/%3E%3Cpath d='m3.5 5 1.2 1.2L7 3.8M3.5 12l1.2 1.2L7 10.8M3.5 19l1.2 1.2L7 17.8'/%3E%3C/svg%3E");
}

/* ===== proto-patch-v13：让「查看样稿」更显眼 ===== */
.proto-sc-report { gap: 6px; }

.proto-sample-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px 4px 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f8cf7 0%, #2563eb 55%, #1d4ed8 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 9px #2563eb59, inset 0 1px 0 #ffffff4d;
  animation: proto-sample-breathe 2.6s ease-in-out infinite;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.proto-sample-link::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E");
}

.proto-sample-link:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.06);
  box-shadow: 0 6px 16px #2563eb73, inset 0 1px 0 #ffffff66;
  animation: none;
}

.proto-sample-link:active { transform: translateY(0) scale(.99); }

@keyframes proto-sample-breathe {
  0%, 100% { box-shadow: 0 3px 9px #2563eb59, inset 0 1px 0 #ffffff4d; }
  50%      { box-shadow: 0 5px 16px #2563eb8c, inset 0 1px 0 #ffffff66; }
}

@media (prefers-reduced-motion: reduce) {
  .proto-sample-link { animation: none; }
}

@media (max-width: 1360px) {
  .proto-sample-link { font-size: 9.5px; padding: 4px 8px 4px 7px; }
}

/* ===== proto-patch-v14：第二步改为标签样式（弱化按钮感） ===== */

.proto-sc-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.proto-sc-pick {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 5px;
  box-shadow: none !important;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.proto-sc-pick--wide {
  grid-column: auto;
  flex: 0 1 auto;
}

.proto-sc-pick__ico {
  width: 11px;
  height: 11px;
  background-size: 11px 11px;
}

.proto-sc-pick--doc    { background: #dbeafe; color: #1d4ed8; }
.proto-sc-pick--data   { background: #dcfce7; color: #15803d; }
.proto-sc-pick--talk   { background: #e0f2fe; color: #0369a1; }
.proto-sc-pick--survey { background: #ffedd5; color: #c2410c; }
.proto-sc-pick--code   { background: #f3e8ff; color: #7e22ce; }
.proto-sc-pick--model  { background: #fef3c7; color: #b45309; }

.proto-sc-step__body--picks {
  padding: 13px 11px 11px !important;
}

/* ===== proto-degree-fill v11 ===== */
/* 学历单选：四个选项等分所在列，消除右侧大片留白 */
.proto-fast .proto-degree-radios > label {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  padding: 0 10px;
  white-space: nowrap;
}
