@charset "UTF-8";

:root {
  --bg: #f4f6f3;
  --surface: #fff;
  --ink: #20342c;
  --secondary: #596c62;
  --muted: #718078;
  --line: #dfe6df;
  --green: #006b5e;
  --green-dark: #00564b;
  --pale: #e8f1eb;
  --amber: #8a691b;
  --red: #a43b2e;
  --radius: 0;
  --shadow: none;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "PingFang HK", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--green); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.honeypot {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; opacity: 0;
}

/* ── 顶栏 ── */
.topbar {
  border-top: 3px solid var(--green);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 15px;
  font-weight: 650;
  color: var(--green);
  letter-spacing: 0;
}
.brand-tag {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .12em;
}

/* ── 布局 ── */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 32px 56px;
}

.hero {
  background: #e3eee6;
  border: 0;
  border-left: 3px solid var(--green);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.hero h1 {
  font-size: 25px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -.4px;
}
.lead {
  margin-top: 10px;
  max-width: 760px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--secondary);
}

.layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ── 面板 ── */
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.panel-header .hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.panel-body { padding: 20px; }
.panel-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: #fbfcfb;
}

/* ── 我院信息 ── */
.org { position: sticky; top: 20px; }
.org-body { display: flex; flex-direction: column; gap: 18px; }
.org-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #eef2ee;
}
.info-row:first-of-type { border-top: 0; }
.info-key {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.info-val {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.info-val.todo { color: #9a7d3f; }
.person-name.todo { color: #9a7d3f; font-weight: 500; }
.copy-mini {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 2px 6px;
  transition: color .15s, background .15s, border-color .15s;
}
.copy-mini:hover { color: var(--green); background: var(--pale); border-color: #d8e6dc; }

.group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.person {
  padding: 9px 0;
  border-bottom: 1px solid #f0f3f0;
}
.person:last-child { border-bottom: 0; }
.person-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.person-name { font-size: 13px; font-weight: 600; }
.person-role { font-size: 12px; color: var(--muted); }
.person-lines {
  margin-top: 3px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 12px;
  color: var(--secondary);
  word-break: break-all;
}
.person-lines span::before {
  content: attr(data-k) " ";
  color: var(--muted);
}
.org-note {
  font-size: 12px;
  color: var(--secondary);
  background: #fbfcfb;
  border-left: 2px solid var(--line);
  padding: 8px 10px;
}

/* ── 表单 ── */
.form-section { padding-top: 26px; margin-top: 4px; border-top: 1px solid var(--line); }
.form-section.first { padding-top: 0; margin-top: 0; border-top: 0; }
.form-section > h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.section-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}
.field input, .field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cedbd0;
  border-radius: 0;
  transition: border-color .15s;
}
.field textarea { min-height: 84px; line-height: 1.75; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa79f; }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field input.bad, .field textarea.bad { border-color: var(--red); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.member-head,
.member-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr) minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.1fr) 30px;
  gap: 8px;
  align-items: center;
}
.member-head {
  padding: 0 0 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.member-head span:first-child::after { content: ""; }
.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-row > div { min-width: 0; }
.member-row input, .field input, .field textarea { min-width: 0; }
.member-row input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cedbd0;
  border-radius: 0;
  transition: border-color .15s;
}
.member-row input::placeholder { color: #9aa79f; }
.member-row input:focus { border-color: var(--green); }
.member-row input.bad { border-color: var(--red); }
.row-del {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  transition: color .15s, background .15s;
}
.row-del:hover { color: var(--red); background: #f8eeec; }
.del-label { display: none; }

.add-row { margin-top: 10px; }

.form-actions {
  display: flex;
  gap: 10px;
  padding-top: 22px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.form-actions .button { min-height: 42px; padding: 10px 20px; font-size: 13px; }
.form-foot {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── 按钮 ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.primary { background: var(--green); border-color: var(--green); color: #fff; }
.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.secondary { background: var(--surface); border-color: #d4ded6; color: var(--ink); }
.secondary:hover { background: var(--pale); border-color: #a9c4b7; color: var(--green); }
.subtle { background: var(--pale); border-color: transparent; color: var(--green); }
.subtle:hover { background: #dbeae1; }

/* ── 提示 ── */
.notice {
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 18px;
  border-left: 3px solid var(--line);
  background: #fbfcfb;
}
.notice.error {
  border-left-color: var(--red);
  background: #faf0ee;
  color: #8b3226;
}

/* ── 成功页 ── */
.success { padding: 32px 24px; }
.success-mark {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  border: 1px solid #c9dfd2;
  background: var(--pale);
  padding: 3px 10px;
  margin-bottom: 16px;
}
.success h2 { font-size: 19px; font-weight: 600; line-height: 1.5; }
.success-body {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--secondary);
  max-width: 620px;
}
.code-line {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.code-line span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink);
  letter-spacing: .04em;
}
.success-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.success-actions .button { min-height: 40px; padding: 9px 18px; }

/* ── 口令页 ── */
.gate-main {
  max-width: 460px;
  margin: 72px auto 0;
  padding: 0 20px;
}
.gate-lead {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--secondary);
  margin-bottom: 20px;
}
.gate-submit {
  width: 100%;
  min-height: 42px;
  font-size: 13px;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .gate-main { margin-top: 40px; }
}

/* ── 页脚 & toast ── */
.foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  z-index: 50;
}

/* ── 窄屏 ── */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .org { position: static; }
  .topbar-inner { padding: 0 20px; }
  .wrap { padding: 20px 20px 44px; }
  .hero { padding: 20px 20px; }
  .hero h1 { font-size: 22px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .member-head { display: none; }
  .member-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 12px 46px;
    border: 1px solid #e8eee9;
    background: #fbfcfb;
  }
  .member-row .f-email { grid-column: 1 / -1; }
  .member-row .row-del {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: 26px;
    padding: 0 8px;
    gap: 4px;
    font-size: 12px;
    border-color: #dde5de;
    background: #fff;
  }
  .member-row .row-del span[aria-hidden] { font-size: 13px; }
  .del-label { display: inline; }
  .member-row { position: relative; }
  .success { padding: 24px 20px; }
}
