/* =============================================================================
 * 联阅 · 设计系统 v2（政务蓝 · 清爽留白 · 清晰层级）
 *   令牌 → 基础 → 布局 → 组件（按钮/表单/表格/标签页/步骤条/弹窗/提示）
 * ========================================================================== */

/* ---------- 令牌 ---------- */
:root {
  --brand-900: #0a2d63;
  --brand-800: #0d3d80;
  --brand-700: #1155a8;
  --brand-600: #1a6fd4;
  --brand-100: #e7f0fb;
  --brand-50:  #f5f9fe;

  --ink-900: #111c33;
  --ink-700: #33415c;
  --ink-500: #5b6b86;
  --ink-400: #8695ad;
  --ink-300: #a9b6ca;

  --line: #e4eaf3;
  --line-2: #d3dceb;
  --bg: #f4f6fb;
  --card: #ffffff;

  --ok: #14874a;      --ok-bg: #e9f7ef;
  --warn: #a86400;    --warn-bg: #fff6e6;
  --danger: #cf2e2e;  --danger-bg: #fdeceb;
  --info: #1155a8;    --info-bg: #eef4fd;

  --r-xl: 16px; --r-lg: 12px; --r-md: 9px; --r-sm: 6px;
  --sh-1: 0 1px 2px rgba(16, 38, 80, .05), 0 1px 3px rgba(16, 38, 80, .05);
  --sh-2: 0 4px 18px rgba(16, 38, 80, .08);
  --sh-3: 0 18px 44px rgba(16, 38, 80, .18);
  --ease: cubic-bezier(.2, .7, .3, 1);

  --font: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 600; color: var(--ink-900); letter-spacing: .2px; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
.muted { color: var(--ink-500); }
.dim { color: var(--ink-400); }
.mono { font-family: var(--mono); letter-spacing: .5px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.spacer { flex: 1 1 auto; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e6; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b3c1d8; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }

/* ---------- 顶栏 ---------- */
.appbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px; height: 58px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.appbar--brand {
  background: linear-gradient(120deg, var(--brand-900), var(--brand-700) 70%, var(--brand-600));
  border-bottom: none; color: #fff;
}
.appbar__brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: 1.5px; }
.appbar__brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), #35b46b);
  color: #fff; font-size: 14px; font-weight: 700;
}
.appbar--brand .appbar__brand .mark { background: rgba(255, 255, 255, .18); }
.appbar__title { font-size: 15px; }
.appbar__title small { display: block; font-size: 11px; font-weight: 400; opacity: .78; letter-spacing: 1px; }
.appbar__sep { color: var(--ink-300); }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-500); }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--brand-700); }
.crumbs__current { color: var(--ink-900); font-weight: 600; }
.appbar--brand .crumbs, .appbar--brand .crumbs a { color: rgba(255, 255, 255, .82); }
.appbar--brand .crumbs__current { color: #fff; }

.userchip {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink-700);
}
.userchip .avatar {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-700); font-size: 12px; font-weight: 700;
}

/* ---------- 容器与页头 ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 22px 20px 64px; }
.container--narrow { max-width: 880px; }

.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; letter-spacing: .5px; }
.page-head p { color: var(--ink-500); font-size: 13px; margin-top: 3px; }
.page-head__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card + .card { margin-top: 16px; }
.card__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card__head h2 { font-size: 15px; letter-spacing: .5px; }
.card__head small { color: var(--ink-500); font-size: 12px; font-weight: 400; margin-left: 6px; }
.card__head .spacer { flex: 1; }
.card__body { padding: 18px; }
.card__body--flush { padding: 0; }
.card__foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--sh-1); }
.stat__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.stat__ico--ok { background: var(--ok-bg); color: var(--ok); }
.stat__ico--muted { background: #f1f4f9; color: var(--ink-400); }
.stat__ico--warn { background: var(--warn-bg); color: var(--warn); }
.stat__value { font-size: 22px; font-weight: 700; letter-spacing: .5px; line-height: 1.2; }
.stat__label { font-size: 12.5px; color: var(--ink-500); }

/* 可点击统计卡：点击即按该维度筛选下方会议列表，再次点击取消 */
.stat--click {
  font: inherit; text-align: left; width: 100%; cursor: pointer;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
              transform .18s var(--ease), background .18s var(--ease);
}
.stat--click::after {
  content: "›"; margin-left: auto; font-size: 20px; line-height: 1;
  color: var(--ink-300); opacity: .55;
  transition: color .18s var(--ease), opacity .18s var(--ease);
}
.stat--click:hover { border-color: var(--line-2); background: var(--brand-50); box-shadow: var(--sh-2); transform: translateY(-1px); }
.stat--click:hover::after { color: var(--brand-600); opacity: 1; }
.stat--click:active { transform: translateY(0); box-shadow: var(--sh-1); }
.stat--click:focus-visible { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.stat--click.is-active {
  border-color: var(--brand-600); background: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand-600), var(--sh-2);
}
.stat--click.is-active .stat__value { color: var(--brand-700); }
.stat--click.is-active .stat__label { color: var(--brand-700); }
.stat--click.is-active::after { content: "✓"; font-size: 15px; font-weight: 700; color: var(--brand-600); opacity: 1; }

/* 筛选标记（会议列表卡片头） */
.filterchip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 4px 2px 10px; border-radius: 999px;
  background: var(--brand-100); color: var(--brand-700);
  font-size: 12.5px; font-weight: 500; letter-spacing: .2px; white-space: nowrap;
}
.filterchip__x {
  border: none; background: transparent; cursor: pointer; font-family: inherit;
  color: inherit; font-size: 15px; line-height: 1; padding: 1px 6px; border-radius: 999px;
  transition: background .16s var(--ease);
}
.filterchip__x:hover { background: rgba(26, 111, 212, .18); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: .3px;
  cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--brand-700); color: #fff; box-shadow: 0 2px 8px rgba(17, 85, 168, .22); }
.btn--primary:hover:not([disabled]) { background: var(--brand-800); }
.btn--soft { background: var(--brand-100); color: var(--brand-800); }
.btn--soft:hover:not([disabled]) { background: #dbe9fa; }
.btn--ghost { background: #fff; color: var(--ink-700); border-color: var(--line-2); }
.btn--ghost:hover:not([disabled]) { border-color: var(--brand-600); color: var(--brand-700); background: var(--brand-50); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover:not([disabled]) { background: #b32626; }
.btn--danger-ghost { background: #fff; color: var(--danger); border-color: #f0c9c9; }
.btn--danger-ghost:hover:not([disabled]) { background: var(--danger-bg); }
.btn--link { background: none; color: var(--brand-700); padding: 4px 6px; }
.btn--link:hover { background: var(--brand-50); }
.btn--sm { padding: 6px 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn--xs { padding: 4px 10px; font-size: 12.5px; border-radius: var(--r-sm); gap: 5px; }
.btn--block { width: 100%; padding: 11px 0; letter-spacing: 3px; }
.btn--icon { padding: 7px; border-radius: 8px; }

.spinner { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 表单 ---------- */
.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 12.5px; color: var(--ink-500); margin-bottom: 6px; letter-spacing: .3px; }
.field .req { color: var(--danger); margin-left: 2px; }
.field input[type=text], .field input[type=password], .field input[type=datetime-local],
.field input[type=number], .field select, .input {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  font-family: inherit; font-size: 14px; color: var(--ink-900); background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field select:focus, .input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3.5px rgba(26, 111, 212, .12); }
.field input::placeholder, .input::placeholder { color: var(--ink-300); }
.hint { font-size: 12px; color: var(--ink-400); margin-top: 5px; line-height: 1.6; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 220px; min-width: 0; }
.searchwrap { position: relative; max-width: 320px; flex: 1 1 260px; }
.input--search { padding-left: 36px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238695ad' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") no-repeat 11px center; }

/* ---------- 表格 ---------- */
/* 表格滚动容器：横向可滚，纵向由 fitTableHeights() 按视口动态设定高度，
   使「表头吸顶」生效——表头随表格区滚动固定在顶部，行内容在其下方滚动 */
.table-wrap { overflow-x: auto; }
.table-wrap--scroll { overflow: auto; overscroll-behavior: contain; }
.table-wrap--scroll > table { min-width: 100%; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
/* 表头吸顶：sticky 必须加在 <thead> 上。
   注意——加在 <th> 上会被它所属的 thead 盒子限制住（th 只能在 thead 范围内移动，
   而 thead 高度就是表头高度），表现为"设了 sticky 却依然随内容滚走"，实测踩过。
   同时 thead 的背景不能透明，否则下方行内容会透出来。 */
.table thead { position: sticky; top: 0; z-index: 3; }
.table thead th { background: var(--brand-50); color: var(--ink-700); font-size: 12.5px; font-weight: 600; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); letter-spacing: .4px; white-space: nowrap; box-shadow: 0 1px 0 var(--line); }
.table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .15s var(--ease); }
.table tbody tr:hover { background: #fafcff; }
.table .name { font-weight: 600; color: var(--ink-900); }
.table .ops { display: flex; gap: 7px; flex-wrap: wrap; }
.table td.num { font-variant-numeric: tabular-nums; }

/* ---------- 标签 / 状态 ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .3px; white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--muted { background: #f1f4f9; color: var(--ink-500); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.codechip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: 3px; color: var(--brand-800); background: var(--brand-50); border: 1px dashed #bcd3f0; padding: 5px 12px; border-radius: var(--r-md); }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-500); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-300); flex: 0 0 auto; }
.live.is-live .live__dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(20, 135, 74, .16); animation: pulse 1.8s infinite; }
.live.is-fail .live__dot { background: var(--danger); }
.live.is-reconnect .live__dot { background: var(--warn); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(20, 135, 74, .16); } 50% { box-shadow: 0 0 0 6px rgba(20, 135, 74, .05); } }

/* ---------- 提示条 ---------- */
.alert { display: none; padding: 11px 14px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 14px; border: 1px solid transparent; }
.alert.is-show { display: block; }
.alert--danger { background: var(--danger-bg); color: #a32424; border-color: #f3c9c9; }
.alert--info { background: var(--info-bg); color: var(--brand-800); border-color: #cfe0f7; }
.alert--warn { background: var(--warn-bg); color: #8a5200; border-color: #f0dcae; }
.alert--ok { background: var(--ok-bg); color: #0f6b3b; border-color: #bfe6cf; }

.callout { padding: 12px 14px; border-radius: var(--r-md); font-size: 12.5px; line-height: 1.7; background: var(--brand-50); border: 1px solid #dbe7f8; color: var(--ink-700); }
.callout--info { background: var(--info-bg); border-color: #cfe0f7; }
.callout--warn { background: var(--warn-bg); border-color: #f0dcae; color: #8a5200; }
.callout--danger { background: var(--danger-bg); border-color: #f3c9c9; color: #a32424; }
.callout code { background: rgba(17, 85, 168, .08); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 12px; }

/* ---------- 步骤条 ---------- */
.steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.steps__item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-400); }
.steps__no { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); background: #fff; font-size: 12px; font-weight: 600; color: var(--ink-400); }
.steps__item.is-active { color: var(--brand-800); font-weight: 600; }
.steps__item.is-active .steps__no { border-color: var(--brand-700); background: var(--brand-700); color: #fff; }
.steps__item.is-done { color: var(--ok); }
.steps__item.is-done .steps__no { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.steps__line { width: 34px; height: 1.5px; background: var(--line-2); }

/* ---------- 流程条 ---------- */
.flowbar { display: flex; gap: 10px; flex-wrap: wrap; }
.flowbar__step { flex: 1 1 190px; padding: 12px 14px; border-radius: var(--r-md); background: #f8fafd; border: 1px solid var(--line); }
.flowbar__step b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.flowbar__step span { font-size: 12px; color: var(--ink-500); }
.flowbar__step.is-active { background: var(--brand-50); border-color: #bcd3f0; box-shadow: inset 3px 0 0 var(--brand-700); }
.flowbar__step.is-done { background: var(--ok-bg); border-color: #bfe6cf; }
.flowbar__step.is-done b::after { content: " ✓"; color: var(--ok); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 18px; overflow-x: auto; }
.tabs__item { appearance: none; border: none; background: none; cursor: pointer; font-family: inherit; padding: 13px 14px; font-size: 13.5px; color: var(--ink-500); border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: color .18s var(--ease); }
.tabs__item:hover { color: var(--brand-700); }
.tabs__item.is-active { color: var(--brand-800); font-weight: 600; border-bottom-color: var(--brand-700); }
.tabs__count { font-size: 11.5px; background: #eef2f8; color: var(--ink-500); border-radius: 999px; padding: 1px 7px; }
.tabs__item.is-active .tabs__count { background: var(--brand-100); color: var(--brand-700); }
[data-panel][hidden] { display: none !important; }

/* ---------- 会议信息头 ---------- */
.hero { background: linear-gradient(120deg, #fff, var(--brand-50)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--sh-1); }
.hero__top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.hero__title { font-size: 19px; letter-spacing: .4px; }
.hero__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--ink-500); }
.hero__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 52px 20px; color: var(--ink-500); }
.empty__ico { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.empty h3 { font-size: 15px; margin-bottom: 5px; }
.empty p { font-size: 13px; margin-bottom: 14px; }

/* ---------- 拖拽上传 ---------- */
.dropzone { border: 1.5px dashed #c3d4ea; border-radius: var(--r-lg); background: #fafcff; padding: 26px 20px; text-align: center; transition: all .2s var(--ease); cursor: pointer; }
.dropzone:hover { border-color: var(--brand-600); background: var(--brand-50); }
.dropzone.is-over { border-color: var(--brand-700); background: var(--brand-100); }
.dropzone__ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-700); box-shadow: var(--sh-1); }
.dropzone b { font-size: 14px; }
.dropzone p { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; }
.dropzone .dz-link { color: var(--brand-700); text-decoration: underline; }

.progress { height: 6px; background: #e8eef8; border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress__bar { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand-700), #45a0f5); transition: width .25s var(--ease); }

/* ---------- 弹窗 ---------- */
.mask { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(11, 27, 58, .48); backdrop-filter: blur(2px); padding: 20px; }
.mask.is-show { display: flex; animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: var(--r-xl); width: 470px; max-width: 100%; box-shadow: var(--sh-3); max-height: 90vh; display: flex; flex-direction: column; animation: rise .2s var(--ease); }
@keyframes rise { from { transform: translateY(12px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal--sm { width: 400px; }
.modal__head { padding: 18px 20px 6px; display: flex; align-items: center; gap: 10px; }
.modal__head h3 { font-size: 16px; }
.modal__body { padding: 6px 20px 4px; overflow: auto; }
.modal__text { font-size: 13.5px; color: var(--ink-700); margin-bottom: 10px; }
.modal__foot { padding: 16px 20px 18px; display: flex; justify-content: flex-end; gap: 10px; }
.modal__close { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--ink-400); padding: 4px; border-radius: 6px; }
.modal__close:hover { background: #f1f4f9; color: var(--ink-700); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 42px; transform: translate(-50%, 16px); display: flex; align-items: center; gap: 9px; background: #122142; color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13.5px; letter-spacing: .3px; opacity: 0; pointer-events: none; transition: all .25s var(--ease); z-index: 80; box-shadow: var(--sh-3); max-width: 82vw; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast--ok { background: #0f6b3b; }
.toast--danger { background: #a32424; }
.toast .ico { width: 16px; height: 16px; }

/* ---------- 门户首页 ---------- */
.portal-hero { background: linear-gradient(115deg, var(--brand-900), var(--brand-700) 62%, #1a7fc4); color: #fff; padding: 52px 20px 74px; text-align: center; position: relative; overflow: hidden; }
.portal-hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 68%); border-radius: 50%; }
.portal-hero__mark { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-size: 22px; font-weight: 700; }
.portal-hero h1 { color: #fff; font-size: 27px; letter-spacing: 3px; }
.portal-hero p { opacity: .88; font-size: 13.5px; letter-spacing: 1.5px; margin-top: 8px; }

.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin-top: -44px; position: relative; z-index: 2; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--sh-2); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); display: flex; flex-direction: column; }
.entry:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: #c9dcf5; }
.entry__ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.entry__ico--admin { background: var(--brand-100); color: var(--brand-700); }
.entry__ico--user { background: var(--ok-bg); color: var(--ok); }
.entry h2 { font-size: 18px; margin-bottom: 6px; }
.entry__desc { color: var(--ink-500); font-size: 13.5px; margin-bottom: 16px; }
.entry ul { list-style: none; margin: 0 0 20px; padding: 0; font-size: 13px; color: var(--ink-700); }
.entry ul li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.entry ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-600); margin-top: 8px; flex: 0 0 auto; }
.entry .btn { margin-top: auto; }
.entry__hint { font-size: 12px; color: var(--ink-400); margin-top: 10px; text-align: center; }

.flow-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.flow-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); }
.flow-card__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--brand-700); background: var(--brand-50); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.flow-card h3 { font-size: 14.5px; margin-bottom: 8px; }
.flow-card ol { margin: 0 0 0 18px; padding: 0; font-size: 13px; color: var(--ink-700); }
.flow-card li { padding: 3px 0; }

.site-foot { text-align: center; padding: 30px 20px 40px; color: var(--ink-400); font-size: 12.5px; letter-spacing: 1px; }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: calc(100vh - 58px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: 32px 30px 26px; }
.auth-card__head { text-align: center; margin-bottom: 24px; }
.auth-card__mark { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-700), #3aa76d); color: #fff; font-size: 20px; font-weight: 700; }
.auth-card h1 { font-size: 19px; letter-spacing: 2px; }
.auth-card__sub { font-size: 12.5px; color: var(--ink-500); margin-top: 5px; letter-spacing: 1px; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 12px; color: var(--ink-400); }

/* ---------- 参会端 ---------- */
.access-steps { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 16px; box-shadow: var(--sh-1); }
.pick-list { display: grid; gap: 12px; }
.pick { display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: all .18s var(--ease); }
.pick:hover { border-color: #c2d7f2; box-shadow: var(--sh-2); transform: translateY(-2px); }
.pick__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); flex: 0 0 auto; }
.pick__main { flex: 1; min-width: 0; }
.pick__name { font-weight: 600; font-size: 14px; word-break: break-all; }
.pick__meta { font-size: 12px; color: var(--ink-500); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 阅读页 ---------- */
body.reader { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: #eef1f7; }
.reader-bar { display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-1); z-index: 20; flex-wrap: wrap; }
.reader-bar__file { display: flex; align-items: center; gap: 9px; min-width: 0; }
.reader-bar__name { font-weight: 600; font-size: 14px; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-bar__group { display: flex; align-items: center; gap: 4px; padding: 3px; background: #f4f7fb; border-radius: 9px; }
.reader-bar__group .btn--icon { background: transparent; border-color: transparent; }
.reader-bar__group .btn--icon:hover:not([disabled]) { background: #fff; border-color: var(--line-2); }
.reader-bar__group .btn--icon[disabled] { opacity: .38; }
.pager { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-500); }
.pager input { width: 56px; padding: 5px 8px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-family: var(--mono); font-size: 13px; }
.reader-stage { flex: 1; overflow: auto; padding: 24px 0 70px; text-align: center; background: #e9edf4; }
.page-box { position: relative; display: inline-block; margin: 0 auto 18px; background: #fff; box-shadow: 0 2px 14px rgba(16, 38, 80, .16); border-radius: 3px; overflow: hidden; }
.page-box canvas { display: block; }
.page-loading { padding: 46px; color: var(--ink-400); font-size: 12.5px; }
.reader-kbd { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(17, 28, 51, .82); color: #fff; font-size: 11.5px; padding: 6px 14px; border-radius: 999px; letter-spacing: .4px; z-index: 15; }
.reader-kbd .kbd { display: inline-block; min-width: 18px; text-align: center; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,.16); font-family: var(--mono); margin: 0 2px; }
.reader-empty { color: var(--ink-500); text-align: center; padding: 90px 20px; font-size: 14px; }

.revoked { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; background: rgba(10, 24, 52, .86); backdrop-filter: blur(3px); padding: 20px; }
.revoked.is-show { display: flex; animation: fade .2s var(--ease); }
.revoked__box { background: #fff; border-radius: var(--r-xl); padding: 34px 38px; text-align: center; max-width: 470px; box-shadow: var(--sh-3); }
.revoked__ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); }
.revoked__title { font-size: 19px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.revoked__text { font-size: 13.5px; color: var(--ink-500); line-height: 1.8; margin-bottom: 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .container { padding: 16px 14px 56px; }
  .appbar { padding: 0 14px; gap: 10px; }
  .appbar__title small { display: none; }
  .crumbs { display: none; }
  .portal-hero { padding: 40px 16px 64px; }
  .portal-hero h1 { font-size: 21px; letter-spacing: 2px; }
  .card__head { padding: 13px 14px; }
  .card__body { padding: 14px; }
  .table thead th, .table tbody td { padding: 10px 11px; }
  .table { font-size: 13px; }
  .hero__actions { margin-left: 0; width: 100%; }
  .reader-bar__name { max-width: 40vw; }
  .reader-kbd { display: none; }
  .steps__line { width: 16px; }
}

/* ---------- 打印拦截（阅读页） ---------- */
@media print {
  body.reader::after {
    content: "本材料受控，禁止打印与截屏。";
    display: block; font-size: 26px; color: #000; padding: 80px; text-align: center;
  }
  body.reader .reader-bar, body.reader .reader-stage, body.reader .reader-kbd,
  body.reader #convertTip { display: none !important; }
}

/* ---------- 登录验证码 ---------- */
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input {
  flex: 1; min-width: 0; letter-spacing: 5px; text-transform: uppercase;
  font-family: var(--mono); font-size: 16px; font-weight: 600;
}
.captcha-img {
  flex: 0 0 auto; padding: 0; line-height: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.captcha-img:hover { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.captcha-img:focus-visible { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.captcha-img img { display: block; }

/* ---------- 设备（型号 / 系统 / 来源 IP） ---------- */
.devlist { display: flex; flex-direction: column; gap: 7px; }
.dev { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.dev__ico { flex: 0 0 auto; color: var(--brand-600); }
.dev__ico svg { width: 15px; height: 15px; display: block; margin-top: 1px; }
.dev__main { min-width: 0; }
.dev__model { display: block; font-weight: 600; color: var(--ink-900); overflow-wrap: anywhere; line-height: 1.35; }
.dev__meta { display: block; font-size: 11.5px; color: var(--ink-400); margin-top: 1px; overflow-wrap: anywhere; }
.dev__more { font-size: 11.5px; color: var(--ink-400); }
.dev-note { margin-top: 7px; font-size: 12px; color: var(--ink-400); }
.dev-note b { color: var(--ink-700); font-weight: 600; }
