/* 学生提交页：小组选择 / 表单 / 右侧定位卡预览 */

/* ---------- 小组选择 ---------- */

.picker { display: flex; flex-direction: column; gap: 20px; }

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.group-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 20px 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.group-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 14px 30px rgba(23, 60, 64, 0.14);
}
.group-card .gno {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold-deep);
}
.group-card .gname {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
  padding-right: 64px;
}
.group-card .gstate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: var(--muted-2);
}
.group-card .gstate::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}
.group-card.is-done .gstate { color: var(--green); }
.group-card.is-done .gstate::before { background: var(--green); }
.group-card .gthumb {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--frame-line);
  background: var(--frame);
}

.new-group {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 640px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}
.new-group .input { flex: 1; }

/* ---------- 提交区 ---------- */

.sub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.sub-head h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--ink);
}

/* 大标题里的组名单独用雅黑加粗，与其他位置统一 */
.sub-head h1 #heroGroup {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 1.5px;
}

.submit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: start;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px clamp(18px, 2.2vw, 28px) 22px;
}

.form-section { display: flex; flex-direction: column; gap: 14px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-title i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--teal-deep);
  font-family: var(--serif);
  font-size: 12px;
  font-style: normal;
}
.section-title b {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--ink);
}
.section-title small { margin-left: auto; font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.5px; }

/* 上传区 */

.drop-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.drop-zone:hover { border-color: var(--teal); background: var(--teal-soft); }
.drop-zone:focus-visible { outline: 3px solid rgba(27, 106, 109, 0.18); outline-offset: 3px; }
.drop-zone.is-over { border-color: var(--teal); background: var(--teal-soft); }
.drop-inner { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.drop-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--teal);
  font-size: 19px;
  line-height: 1;
}
.drop-inner b { font-size: 13.5px; font-weight: 500; letter-spacing: 0.5px; color: var(--text); }
.drop-inner small { font-size: 12px; line-height: 1.7; color: var(--muted-2); }

.file-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.file-chip img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--frame);
  border: 1px solid var(--frame-line);
}
.file-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.file-meta b {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta small { font-size: 11.5px; color: var(--muted-2); }

.mini-btn {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-hint { flex: 1; font-size: 12px; line-height: 1.7; color: var(--muted-2); }
.form-hint a { color: var(--teal); text-decoration: underline; }

/* ---------- 右侧预览卡 ---------- */

.preview-col { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }

.preview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow);
}
.preview-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold), transparent);
  opacity: 0.5;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px 11px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fdfaf1, #f7f1e2);
}
.preview-head b {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--ink);
}
.preview-head .mini-seal {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(194, 84, 58, 0.45);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: 1px;
}

.preview-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 18px 4px;
  height: clamp(240px, 44vh, 320px);
  padding: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--frame);
  border: 1px solid var(--frame-line);
}
.preview-shot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(23, 60, 64, 0.12);
}
.preview-empty { font-size: 12.5px; color: var(--muted-2); letter-spacing: 0.5px; }

.preview-body { padding: 14px 18px 18px; }
.preview-no {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-deep);
}
.preview-body h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1px;
  color: var(--ink);
}
.preview-slogan {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.5px;
  color: var(--teal-deep);
}
.preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 4px; }
.preview-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.5px;
}

.preview-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.preview-meta > div { display: flex; align-items: baseline; gap: 10px; }
.preview-meta dt { flex: none; width: 62px; font-size: 11px; color: var(--muted-2); letter-spacing: 0.5px; }
.preview-meta dd { margin: 0; font-size: 12.5px; color: var(--text); line-height: 1.6; word-break: break-word; }


/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .submit-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-col { position: static; }
  .preview-shot { height: clamp(280px, 52vh, 420px); }
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .sub-head { align-items: flex-start; }
  .new-group { flex-direction: column; align-items: stretch; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-hint { order: 2; }
}
