/* ============================================================
   弗莱堡大学中国国际教育展 · 现场登记系统
   UI 参照 Universität Freiburg 经济系 MEP 宣传单（Flyer_E）：
   深藏蓝 + 米白、细线分隔、校徽线稿、全站中英双语
   ============================================================ */

:root {
  --navy-950: #061333;
  --navy-900: #0a1c40;
  --navy-800: #10264f;
  --navy-700: #17325f;
  --cream:    #f5f0e3;
  --cream-2:  #efe8d6;
  --paper:    #fdfaf3;
  --line:     #e2dac8;
  --line-2:   #ece5d5;
  --ink:      #14203a;
  --ink-2:    #39435a;
  --muted:    #74778a;
  --muted-2:  #9b9789;
  --red:      #9b2f2f;
  --ok:       #2f5d47;
  --font:     -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
              "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif:    "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-800); text-decoration: none; }
img { max-width: 100%; }

/* ---------- 通用小件 ---------- */
.kicker {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
}

.kicker-ink { color: var(--muted-2); }

.diamond {
  width: 6px; height: 6px;
  flex: 0 0 auto;
  background: var(--navy-900);
  transform: rotate(45deg);
  margin-top: 6px;
}

/* ---------- 页头封套 ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
}

.hero-seal {
  position: absolute;
  right: -84px;
  bottom: -96px;
  width: 280px;
  height: 280px;
  background: url("logo-seal-white.png") no-repeat center / contain;
  opacity: .085;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 32px;
}

.hero-home .hero-inner { padding-bottom: 36px; }

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  min-width: 0;
}

.brand-seal {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: block;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-wordmark {
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.brand-cn {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.35;
}

.hero-tag {
  flex: 0 0 auto;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 2px;
  padding: 5px 10px;
  white-space: nowrap;
}

.hero-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 2px;
  padding: 6px 12px 6px 8px;
  transition: background .18s ease, border-color .18s ease;
}

.hero-back:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.hero-back span { font-size: 16px; line-height: 1; }

.hero-rule {
  height: 1px;
  margin-top: 18px;
  background: rgba(255, 255, 255, .16);
}

.hero-body { margin-top: 26px; }
.hero-body-sub { margin-top: 22px; }

.hero-title {
  margin: 0;
  font-size: clamp(24px, 6.8vw, 36px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -.005em;
}

.hero-title .hl { color: #f0e4c6; }

.hero-title-en {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.hero-title-sm {
  margin: 0;
  font-size: clamp(22px, 5.8vw, 30px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -.005em;
}

.hero-desc {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
  max-width: 32em;
}

.hero-desc-en {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .48);
  max-width: 40em;
}

/* ---------- 通用容器 ---------- */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ---------- 首页：身份选择（不再与页头重叠） ---------- */
.home-wrap { padding-top: 26px; padding-bottom: 8px; }

.choose-head { padding: 0 2px 16px; }

.choose-head h2 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--navy-900);
}

.choose-sub { margin: 0; font-size: 12.5px; color: var(--muted); }
.choose-sub-en { margin: 3px 0 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }

.choose-list { display: grid; gap: 10px; }

.id-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.id-card:hover,
.id-card:focus-visible {
  background: #fff;
  border-color: var(--navy-800);
  transform: translateY(-1px);
  outline: none;
}

.id-icon {
  flex: 0 0 auto;
  width: 52px; height: 62px;
  display: grid; place-items: center;
  font-size: 23px;
  border-radius: 26px 26px 6px 6px;
  background: var(--cream-2);
  border: 1px solid #e0d7c2;
}

.id-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.id-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
}

.id-name em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-left: 1px solid var(--line);
  margin-left: 9px;
  padding-left: 9px;
}

.id-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.id-desc i { display: block; font-style: normal; font-size: 11px; color: var(--muted-2); margin-top: 2px; line-height: 1.5; }

.id-arrow { flex: 0 0 auto; font-size: 22px; line-height: 1; color: var(--navy-800); opacity: .45; }

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 4px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.trust-item p { margin: 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.trust-item p i { display: block; font-style: normal; font-size: 10.5px; color: var(--muted-2); margin-top: 3px; line-height: 1.45; }

/* ---------- 表单 ---------- */
.form-wrap { padding-top: 22px; padding-bottom: 6px; }

.form-card { padding: 18px 15px 20px; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.field { display: flex; flex-direction: column; min-width: 0; }

.field > label,
.field > .field-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-bottom: 7px;
  line-height: 1.45;
}

.lb-cn { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.lb-en {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.req { color: var(--red); font-size: 13px; line-height: 1; margin-left: -4px; }
.opt { color: var(--muted-2); font-size: 10px; font-weight: 500; letter-spacing: .06em; margin-left: -4px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="password"],
.field input[type="search"],
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ded5c2;
  border-radius: 4px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  appearance: none;
}

.field textarea { line-height: 1.65; resize: vertical; min-height: 96px; }

.field input::placeholder,
.field textarea::placeholder { color: #b0ab9d; font-size: 13px; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(10, 28, 64, .09);
}

.select-wrap { position: relative; }
.select-wrap select { padding-right: 34px; font-size: 15px; cursor: pointer; }
.select-wrap .chev {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--navy-800);
  font-size: 12px;
  opacity: .6;
  pointer-events: none;
}

.radio-row { display: flex; gap: 9px; }

.radio-row .radio {
  display: flex;
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
}
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }

.radio span {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 48px;
  border: 1px solid #ded5c2;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .16s ease;
}

.radio span em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.radio input:checked + span {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  font-weight: 600;
}

.radio input:checked + span em { color: rgba(255, 255, 255, .68); }

/* ---------- 不定项选择 ---------- */
.hint {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted-2);
  margin-left: -4px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #ded5c2;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.check:hover { border-color: #c9bda3; }

.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check-mark {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1px solid #b9b0a0;
  border-radius: 2px;
  background: #fff;
  transition: background .16s ease, border-color .16s ease;
}

.check-mark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .14s ease;
}

.check-label { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.check-cn { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

.check-en {
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--muted-2);
  line-height: 1.4;
}

.check input:checked ~ .check-mark {
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.check input:checked ~ .check-mark::after { transform: rotate(45deg) scale(1); }

.check input:checked ~ .check-label .check-cn { font-weight: 600; color: var(--navy-900); }

.check input:focus-visible ~ .check-mark { box-shadow: 0 0 0 3px rgba(10, 28, 64, .16); }

.check:has(input:checked) { border-color: var(--navy-900); background: #fbf8f0; }

.has-error .check { border-color: #d8a49d; }

.has-error input,
.has-error textarea,
.has-error select { border-color: #c0736b; background: #fffbfa; }

.err-msg { margin: 6px 1px 0; font-size: 12px; color: var(--red); line-height: 1.5; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

.submit-area { margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-900);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: transform .14s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(.99); }

.btn em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  line-height: 1.4;
}

.btn-primary {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.btn-primary:hover { background: var(--navy-800); border-color: var(--navy-800); }

.btn-block { width: 100%; min-height: 56px; letter-spacing: .04em; }
.btn-block:not(.btn-primary) em { color: var(--muted-2); }

.btn-ghost { background: transparent; color: var(--navy-900); border-color: #d4cab6; }
.btn-ghost:hover { background: rgba(255, 255, 255, .7); border-color: var(--navy-800); }

.btn-danger { color: #8a2b2b; border-color: #e3c6c1; background: transparent; }
.btn-danger:hover { background: #fbf1ef; }

.btn-sm { min-height: 34px; padding: 6px 13px; font-size: 12.5px; }
.btn-xs { min-height: 28px; padding: 3px 10px; font-size: 12px; }

.spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.is-loading .spinner { display: inline-block; }
.is-loading .btn-label { opacity: .8; }
.is-loading { pointer-events: none; opacity: .92; }

@keyframes spin { to { transform: rotate(360deg); } }

.privacy {
  margin: 13px 1px 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.privacy-en { font-size: 10.5px; color: var(--muted-2); line-height: 1.6; }

.alert {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid #e6cfc6;
  border-left: 3px solid var(--red);
  background: #fdf4ef;
  color: #7f2c2c;
  font-size: 12.5px;
  line-height: 1.6;
}

.alert strong { font-size: 13px; }
.alert span { color: #8a4a44; }
.alert-warn { background: #fbf5e5; border-color: #e5d6ae; border-left-color: #9a7a24; color: #7d6418; }
.alert-warn span { color: #7d6418; }

/* ---------- 成功页 ---------- */
.success-wrap { padding-top: 24px; padding-bottom: 10px; }

.success-card { padding: 30px 20px 24px; text-align: center; }

.success-icon { display: flex; justify-content: center; margin-bottom: 14px; }

.success-card h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  color: var(--navy-900);
}

.success-sub-en {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.success-sub { margin: 10px 0 20px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.ref-box {
  margin: 0 auto 16px;
  padding: 14px 18px;
  max-width: 330px;
  background: var(--cream);
  border: 1px dashed #c9bfa8;
  border-radius: 4px;
}

.ref-box dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }

.ref-box dd {
  margin: 6px 0 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--navy-900);
}

.success-tip { margin: 0 0 22px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.tip-en { font-size: 11px; color: var(--muted-2); }

.success-actions { display: grid; gap: 10px; }

/* ---------- 后台 ---------- */
.admin-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 50px;
  overflow-x: auto;
}

.admin-nav a {
  padding: 6px 11px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: 3px;
  white-space: nowrap;
}

.admin-nav a.on { background: var(--navy-900); color: #fff; font-weight: 600; }
.admin-nav .nav-logout { margin-left: auto; color: var(--muted); }

.admin-wrap { max-width: 1080px; padding-top: 18px; padding-bottom: 14px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
}

.stat-label { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.stat-label em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.admin-card { padding: 14px; }

.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tabs { display: flex; gap: 6px; overflow-x: auto; }

.tabs a {
  padding: 7px 13px;
  font-size: 13px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  white-space: nowrap;
}

.tabs a.on {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
  font-weight: 600;
}

.search { display: flex; gap: 8px; }

.search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #ded5c2;
  border-radius: 4px;
  background: #fff;
  outline: none;
}

.search input::placeholder { color: #b0ab9d; font-size: 12.5px; }
.search input:focus { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(10, 28, 64, .08); }

.search button {
  flex: 0 0 auto;
  padding: 0 16px;
  height: 40px;
  border: 1px solid var(--navy-900);
  border-radius: 4px;
  background: var(--navy-900);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.admin-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 2px;
}

.result-count { font-size: 12px; color: var(--muted); }
.result-count b { color: var(--navy-900); }

.table-scroll { overflow-x: auto; border-radius: 4px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 12px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}

.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fffdf8; }

.admin-table .sub-line { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.admin-table a { color: var(--navy-800); }
.dim { color: var(--muted); }

.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; letter-spacing: .01em; }

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid #d8cfba;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-student { background: #eef2f9; border-color: #cfd9ea; color: var(--navy-800); }
.pill-partner { background: #f7f1e0; border-color: #e0d5b8; color: #6b5620; }

.col-act { white-space: nowrap; text-align: right; }
.inline { display: inline; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.empty { padding: 46px 16px; text-align: center; }
.empty p { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.empty span { font-size: 12px; color: var(--muted); }

/* 详情 */
.detail-card { padding: 20px 18px; }

.detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-head h1 {
  margin: 10px 0 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-900);
}

.detail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.detail-list { margin: 4px 0 0; }

.detail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}

.detail-row dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.detail-row dt span { display: inline; font-weight: 600; }
.detail-row dt em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b3ae9e;
}
.detail-row dd { margin: 0; font-size: 14.5px; color: var(--ink); word-break: break-word; }
.detail-row dd a { color: var(--navy-800); }

.detail-checks { margin: 0; padding: 0; list-style: none; }
.detail-checks li {
  position: relative;
  padding-left: 13px;
  font-size: 14px;
  line-height: 1.65;
}
.detail-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 4px;
  height: 4px;
  background: var(--navy-800);
  transform: rotate(45deg);
}

.detail-tech {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* 登录 */
.login-wrap { padding-top: 26px; padding-bottom: 10px; max-width: 460px; }
.login-card { padding: 26px 20px 22px; }
.login-card h1 { margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--navy-900); }
.login-sub { margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.login-sub em { display: block; font-style: normal; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }
.login-card .field { margin-bottom: 14px; }
.login-note { margin: 14px 0 0; font-size: 11px; color: var(--muted-2); text-align: center; }

.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 62px; }

.pwd-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--navy-800);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
}

.pwd-toggle:hover { background: var(--cream); }

/* 二维码 */
.qr-card { padding: 20px 18px; display: grid; gap: 22px; }

.qr-box { text-align: center; }

.qr-box img {
  width: 240px; height: 240px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.qr-caption { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.qr-side h2 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--navy-900); }

.qr-steps { margin: 0 0 16px; padding-left: 20px; font-size: 12.5px; color: var(--ink-2); line-height: 1.9; }

.qr-url {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: 4px;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.qr-url code { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--navy-800); word-break: break-all; }

.qr-actions { display: grid; gap: 9px; margin-top: 16px; }

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 14px;
  padding: 22px 18px 26px;
  text-align: center;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.8;
  border-top: 1px solid var(--line);
}

.foot-line { margin: 0 0 4px; }
.foot-en { font-size: 10px; letter-spacing: .08em; color: #b3ae9e; margin-bottom: 8px; }

.foot-beian {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
}

.foot-beian a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted-2);
}

.foot-beian a:hover { color: var(--navy-800); }

.beian-icon {
  width: 15px; height: 15px;
  vertical-align: middle;
  display: inline-block;
  flex: 0 0 auto;
}

/* ---------- 提示页 ---------- */
.page-msg { display: flex; min-height: 100vh; align-items: center; }
.msg-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 28px 22px; text-align: center; }
.msg-card h1 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--navy-900); }
.msg-card p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }

/* ---------- 桌面适配 ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
  .field-full { grid-column: 1 / -1; }
  .form-card { padding: 24px 22px 24px; }
  .hero-inner { padding: 24px 24px 38px; }
  .hero-title { font-size: 36px; }
  .choose-head h2 { font-size: 23px; }
  .id-card { padding: 18px 18px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .check-grid { grid-template-columns: 1fr 1fr; gap: 9px 12px; }
  .admin-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .search { width: 320px; }
  .detail-row { grid-template-columns: 190px 1fr; gap: 14px; align-items: start; }
  .qr-card { grid-template-columns: 280px 1fr; align-items: start; }
  .success-actions { grid-template-columns: 1fr 1fr; }
  .success-card { padding: 38px 32px 30px; }
}

@media (min-width: 900px) {
  .hero-inner { max-width: 820px; }
  .wrap { max-width: 820px; }
  .admin-wrap { max-width: 1080px; }
  .hero-seal { width: 340px; height: 340px; right: -70px; bottom: -110px; }
}

/* ---------- 打印（二维码页） ---------- */
@media print {
  .hero, .admin-nav, .site-foot, .qr-side h2, .qr-steps, .qr-actions, .qr-url { display: none !important; }
  body { background: #fff; }
  .qr-card { border: 0; box-shadow: none; display: block; text-align: center; }
  .qr-box img { width: 300px; height: 300px; border: 0; }
  .qr-caption { font-size: 15px; color: #000; margin-top: 16px; }
}

/* ---------- 小屏微调 ---------- */
@media (max-width: 359px) {
  .brand-wordmark { display: none; }
  .hero-tag { font-size: 9.5px; padding: 4px 7px; }
  .radio-row { gap: 7px; }
  .id-icon { width: 46px; height: 56px; font-size: 20px; }
  .trust { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════════
 * 资料下载（2026-10-26 新增）
 * ══════════════════════════════════════════════════════════════ */

/* ---------- 首页：下载入口卡片（次级，与登记主入口区分） ---------- */
.choose-alt { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }

.id-card-alt { background: var(--paper); }

.id-card-alt:hover,
.id-card-alt:focus-visible { background: #fff; }

.id-icon-alt {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-800);
  background: #eef2f9;
  border-color: #d6dfef;
}

/* ---------- 资料下载页 ---------- */
.dl-section { margin-top: 22px; }

.dl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.dl-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.dl-item:hover,
.dl-item:focus-visible {
  background: #fff;
  border-color: var(--navy-800);
  transform: translateY(-1px);
  outline: none;
}

.dl-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--navy-800);
}

.dl-icon-pdf { background: #a5342f; }
.dl-icon-doc,
.dl-icon-docx { background: #2b5797; }
.dl-icon-xls,
.dl-icon-xlsx,
.dl-icon-csv { background: #1d6f42; }
.dl-icon-ppt,
.dl-icon-pptx { background: #b24726; }
.dl-icon-zip { background: #8a6d1f; }
.dl-icon-txt { background: #5a5f6e; }
.dl-icon-jpg,
.dl-icon-jpeg,
.dl-icon-png,
.dl-icon-gif,
.dl-icon-webp { background: #2f6b52; }

.dl-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.dl-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.4;
  word-break: break-word;
}

.dl-sum { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.dl-sum-en { font-size: 11.5px; color: var(--muted-2); }

.dl-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.dl-size { font-size: 11.5px; color: var(--muted-2); }

.dl-dl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--navy-800);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.dl-empty { padding: 40px 20px; text-align: center; }

/* ---------- 后台：资料管理表单 ---------- */
.dl-form { padding: 16px 2px 4px; }

.dl-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dl-form-row { display: flex; flex-direction: column; gap: 6px; }

.dl-form-row label { font-size: 12px; font-weight: 600; color: var(--muted); }

.dl-form-row input[type="text"],
.dl-form-row input[type="number"],
.dl-form-row input[type="file"] {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.dl-form-row input[type="file"] { padding: 7px 9px; font-size: 12.5px; }

.dl-form-row input:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 2px rgba(23, 50, 95, .1);
}

.dl-hint { margin: 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.55; }

.dl-form-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- 后台：列表内联编辑行 ---------- */
.dl-edit-row td { padding-top: 0; border-top: 0; }

.dl-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0 14px;
  border-top: 1px dashed var(--line-2);
}

.dl-inline-form input[type="text"],
.dl-inline-form input[type="number"] {
  padding: 6px 9px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.dl-inline-form input[type="text"]:first-child { flex: 2 1 200px; min-width: 150px; }
.dl-inline-form input[type="text"]:nth-child(2) { flex: 1 1 180px; min-width: 130px; }
.dl-inline-form input[type="text"]:nth-child(3) { flex: 1 1 180px; min-width: 130px; }

.dl-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 小屏微调 ---------- */
@media (max-width: 640px) {
  .dl-form-grid { grid-template-columns: 1fr; }
  .dl-item { gap: 11px; padding: 12px 12px; }
  .dl-icon { width: 40px; height: 40px; font-size: 9px; }
  .dl-name { font-size: 14px; }
  .dl-dl { display: none; }
}
