:root {
  --bg: #f3f6fc;
  --card: #ffffff;
  --text: #14203a;
  --muted: #63708a;
  --line: #e1e7f2;
  --brand: #1a4fd6;
  --brand-dark: #133fae;
  --danger: #c0392b;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.notice { white-space: pre-wrap; background: #eef3fe; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 12px 0 0; }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=tel], input[type=password], input[type=date], textarea {
  width: 100%; font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 160px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
button, .btn {
  display: inline-block; font: inherit; border: 0; border-radius: 8px; padding: 12px 18px; cursor: pointer;
  background: var(--brand); color: #fff; text-decoration: none; text-align: center;
}
button:hover, .btn:hover { background: var(--brand-dark); }
button:disabled { opacity: .6; cursor: default; }
button.block { width: 100%; margin-top: 18px; }
button.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); padding: 6px 12px; font-size: 14px; }
button.ghost:hover { background: #eef3fe; }
button.danger { color: var(--danger); }
button.danger:hover { background: #fbeceb; }
.err { color: var(--danger); font-size: 14px; margin-top: 10px; min-height: 1em; }
.ok { color: var(--brand); font-size: 14px; margin-top: 10px; }

.doc-list { list-style: none; padding: 0; margin: 16px 0 0; }
.doc-list li a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; color: inherit; text-decoration: none;
}
.doc-list li a:hover { border-color: var(--brand); }
.doc-list .icon { flex: none; width: 40px; height: 40px; border-radius: 8px; background: #e3ecfd; color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.doc-list .t { font-weight: 600; }
.doc-list .s { color: var(--muted); font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* 资料浏览：防保存 */
.no-save, .no-save * {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.viewer-top {
  position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  padding: 10px 16px; display: flex; align-items: center; gap: 12px;
}
.viewer-top .title { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-top a { color: var(--brand); text-decoration: none; white-space: nowrap; }
.pages { max-width: 1000px; margin: 0 auto; padding: 12px 8px 60px; }
.page { position: relative; margin: 0 0 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); min-height: 120px; }
.page img, .page canvas { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.page .shield { position: absolute; inset: 0; }
.page .num { position: absolute; right: 8px; bottom: 6px; font-size: 12px; color: #999; background: rgba(255,255,255,.8); padding: 0 6px; border-radius: 4px; }
.wm {
  position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 80px 60px; padding: 40px; transform: rotate(-20deg) scale(1.4);
}
.wm span { color: rgba(0,0,0,.07); font-size: 18px; white-space: nowrap; }

@media print { body { display: none !important; } }

/* ---------- 品牌色顶栏（内页共用，色调取自大会主视觉） ---------- */
.band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #0a2a8f 0%, #1546d0 55%, #2a78ff 100%);
  padding: 18px 16px 26px;
}
.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: url(/img/kv-flow.jpg) center 60% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 85%); mask-image: linear-gradient(to bottom, transparent, #000 85%);
  opacity: .55; pointer-events: none;
}
.band > * { position: relative; z-index: 1; }
.band .back { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; }
.band h1 { font-size: 22px; margin: 10px 0 2px; letter-spacing: .5px; }
.band .sub { font-size: 13px; opacity: .75; }
.band-wrap { max-width: 720px; margin: 0 auto; }

.viewer-top { background: linear-gradient(120deg, #0a2a8f, #1a4fd6); border-bottom: 0; color: #fff; }
.viewer-top a { color: rgba(255,255,255,.9); }
.viewer-top .muted { color: rgba(255,255,255,.7); }

/* ---------- 保密声明 ---------- */
.conf { display: flex; gap: 10px; align-items: flex-start; background: #fff8ec; border: 1px solid #f3dcb2; color: #7a4b00;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.65; margin: 12px 0 0; }
.conf svg { flex: none; margin-top: 3px; }
.conf b { color: #5c3800; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(6, 26, 92, .55); display: grid; place-items: center; padding: 20px; }
.modal .box { background: #fff; border-radius: 16px; max-width: 420px; width: 100%; padding: 22px 20px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { margin: 0 0 10px; font-size: 18px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.modal p { margin: 0; font-size: 14px; line-height: 1.8; color: #3b4660; white-space: pre-wrap; }
.modal button { width: 100%; margin-top: 18px; }
