/* ══════════════════════════════════════════════════════════════════
   福建省信息技术人才协会 · 统一管理后台
   设计语言：H150 蓝白 SaaS 风 —— 科技蓝 2563EB / 藏蓝 1E293B /
   浅灰白底 F8FAFC / 12-16px 大圆角 / 轻盈软阴影 / 简约现代
   ══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pri: #2563EB; --pri-deep: #1D4ED8; --pri-press: #1E40AF;
  --navy: #1E293B; --navy-2: #16202F;
  --bg: #F8FAFC; --card: #FFFFFF; --soft: #F1F5F9; --soft-2: #E2E8F0; --line: #E2E8F0;
  --ink: #1E293B; --tx: #475569; --sub: #64748B;
  --purple: #8B5CF6; --green: #10B981; --orange: #F59E0B; --red: #EF4444;
  --r: 14px; --r-lg: 16px;
  --sh: 0 2px 8px rgba(15, 23, 42, .06);
  --sh-lg: 0 10px 30px rgba(15, 23, 42, .10);
  --font: Inter, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
html, body { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: 14px; outline: none; border: 0; background: none; color: inherit; }
a { text-decoration: none; color: inherit; }
::selection { background: rgba(37, 99, 235, .18); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ══════════════ 登录页（左右分栏 · H150 登录稿复刻）══════════════ */
.login-wrap { position: fixed; inset: 0; display: flex; background: #fff; z-index: 50; }
.login-left { flex: 1; display: flex; justify-content: center; padding: 48px 32px; overflow-y: auto; }
.login-box { width: 100%; max-width: 420px; margin: auto 0; flex-shrink: 0; }
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.login-logo .lg-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--pri); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; box-shadow: 0 6px 16px rgba(37, 99, 235, .28); }
.login-logo b { font-size: 18px; font-weight: 700; color: var(--ink); }
.login-logo small { display: block; font-size: 12px; color: var(--sub); font-weight: 400; }
.login-h1 { font-size: 28px; font-weight: 700; color: var(--ink); margin-bottom: 8px; letter-spacing: .5px; }
.login-sub { font-size: 14px; color: var(--sub); margin-bottom: 36px; }
.login-err { min-height: 22px; font-size: 13px; color: var(--red); margin-top: 12px; }
.login-right { flex: 1.1; padding: 24px; display: none; }
.brand-visual { height: 100%; border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #EFF6FF 0%, #DBEAFE 46%, #93C5FD 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .05); display: flex; flex-direction: column; }
.bv-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px; }
.bv-x { width: 132px; height: 132px; border-radius: 30px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 24px 60px rgba(30, 41, 59, .30); }
.bv-x b { font-size: 40px; font-weight: 800; letter-spacing: 2px; }
.bv-x span { font-size: 11px; letter-spacing: 3px; color: #93C5FD; }
.bv-slogan { text-align: center; color: var(--navy); }
.bv-slogan h2 { font-size: 22px; font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.bv-slogan p { font-size: 13px; color: #475569; }
.bv-quote { padding: 26px 30px; margin: 24px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
  border-radius: 18px; box-shadow: var(--sh); }
.bv-quote .stars { color: #FACC15; font-size: 16px; letter-spacing: 3px; margin-bottom: 8px; }
.bv-quote p { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; line-height: 1.5; }
.bv-quote small { font-size: 12px; color: var(--sub); }
@media (min-width: 1100px) { .login-right { display: block; } }

/* 协会真 logo（透明底横版 551x291） */
.lg-img { height: 36px; width: auto; flex: none; display: block; }
.bv-xcard { background: var(--navy); border-radius: 22px; padding: 30px 38px;
  box-shadow: 0 24px 60px rgba(30, 41, 59, .30); }
.bv-logo { display: block; width: min(300px, 60vw); height: auto; }

/* ══════════════ 表单元素（48px 高 · 12px 圆角 · F1F5F9 底）══════════════ */
.f-label { display: block; font-size: 13px; font-weight: 500; color: var(--tx); margin: 0 0 6px 2px; }
.f-input { width: 100%; height: 46px; background: var(--soft); border: 1.5px solid transparent; border-radius: 12px; padding: 0 16px; color: var(--ink); transition: all .2s; }
.f-input:focus { border-color: var(--pri); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.f-input::placeholder { color: #94A3B8; }
select.f-input { padding-right: 30px; }
textarea.f-input { height: auto; min-height: 84px; padding: 12px 16px; resize: vertical; }
.f-group { margin-bottom: 16px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px;
  border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--pri); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .22); }
.btn-primary:hover { background: var(--pri-deep); }
.btn-primary:active { background: var(--pri-press); }
.btn-full { width: 100%; height: 48px; font-size: 15px; margin-top: 8px; }
.btn-ghost { background: var(--soft); color: var(--tx); }
.btn-ghost:hover { background: var(--soft-2); }
.btn-danger { background: #FEF2F2; color: var(--red); }
.btn-danger:hover { background: #FEE2E2; }
.btn-sm { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; }
.btn-green { background: #ECFDF5; color: #059669; }
.btn-green:hover { background: #D1FAE5; }

/* ══════════════ 主布局：深蓝侧边栏 + 顶栏 + 内容区 ══════════════ */
.app { display: none; height: 100vh; overflow: hidden; }
.app.show { display: flex; }
.side { width: 236px; flex: none; background: var(--navy); color: #CBD5E1; display: flex; flex-direction: column; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.side-brand .lg-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--pri); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.side-brand b { display: block; font-size: 14.5px; color: #fff; line-height: 1.25; }
.side-brand small { display: block; font-size: 10.5px; color: #64748B; letter-spacing: 1px; }
.nav { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 11px; width: 100%; height: 44px; padding: 0 13px; border-radius: 11px;
  color: #94A3B8; font-size: 14px; cursor: pointer; transition: all .18s; text-align: left; }
.nav button:hover { color: #E2E8F0; background: rgba(255, 255, 255, .05); }
.nav button.on { color: #fff; background: var(--pri); box-shadow: 0 6px 16px rgba(37, 99, 235, .35); font-weight: 600; }
.nav button .n-ico { width: 20px; text-align: center; font-size: 15px; flex: none; }
.nav button .n-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; display: flex; align-items: center; justify-content: center; }
.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.who { font-size: 13px; color: #E2E8F0; font-weight: 600; margin-bottom: 2px; }
.who small { font-size: 11px; color: #64748B; font-weight: 400; }
.side-foot .btn { width: 100%; margin-top: 10px; background: rgba(255, 255, 255, .06); color: #94A3B8; font-size: 12.5px; height: 36px; }
.side-foot .btn:hover { background: rgba(239, 68, 68, .16); color: #FCA5A5; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.topbar { height: 62px; flex: none; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 26px; }
.topbar h1 { font-size: 17px; font-weight: 700; color: var(--ink); }
.topbar .tb-sub { font-size: 12px; color: var(--sub); margin-top: 1px; }
.tb-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 10px; height: 38px; padding: 0 14px; width: 260px; }
.tb-search input { flex: 1; font-size: 13px; color: var(--ink); background: none; }
.tb-search svg { width: 15px; height: 15px; color: #94A3B8; flex: none; }
.tb-acts { display: flex; align-items: center; gap: 10px; }
.tb-role { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.role-admin { background: #EFF6FF; color: var(--pri); }
.role-corp { background: #F5F3FF; color: var(--purple); }
.content { flex: 1; overflow-y: auto; padding: 24px 26px 48px; }

/* ══════════════ 统计卡（四色系）══════════════ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--card); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh); display: flex; align-items: center; gap: 14px; }
.stat .st-ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.st-blue { background: #EFF6FF; color: var(--pri); }
.st-purple { background: #F5F3FF; color: var(--purple); }
.st-green { background: #ECFDF5; color: var(--green); }
.st-orange { background: #FFFBEB; color: var(--orange); }
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.stat span { font-size: 12.5px; color: var(--sub); }

/* ══════════════ 卡片 / 表格 ══════════════ */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh); margin-bottom: 18px; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.card-head b { font-size: 15px; font-weight: 700; color: var(--ink); }
.card-head .hint { font-size: 12px; color: var(--sub); }
.card-head .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 20px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--sub); letter-spacing: .4px; padding: 12px 16px; background: var(--soft); white-space: nowrap; }
.tbl td { font-size: 13.5px; color: var(--tx); padding: 13px 16px; border-bottom: 1px solid #F1F5F9; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #FAFBFD; }
.tbl-wrap { overflow-x: auto; }
.t-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.c-name { display: flex; align-items: center; gap: 11px; }
.c-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--pri); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex: none; }
.c-logo.purple { background: var(--purple); }
.c-logo.green { background: var(--green); }
.c-logo.orange { background: var(--orange); }
.c-logo.navy { background: var(--navy); }
.cn-t { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cn-s { font-size: 11.5px; color: var(--sub); margin-top: 1px; }

/* 状态胶囊 */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.ok { color: #059669; background: #ECFDF5; }
.pill.bad { color: var(--red); background: #FEF2F2; }
.pill.wait { color: #B45309; background: #FFFBEB; }
.pill.info { color: var(--pri); background: #EFF6FF; }
.pill.gray { color: var(--sub); background: var(--soft); }

/* 空态 / 加载 / 提示 */
.empty { text-align: center; padding: 60px 20px; color: var(--sub); font-size: 13.5px; }
.empty .em-ico { font-size: 34px; margin-bottom: 10px; opacity: .5; }
.loading { text-align: center; padding: 50px 20px; color: var(--sub); font-size: 13px; }
.toast { position: fixed; z-index: 99; left: 50%; top: 46px; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; font-size: 13.5px; padding: 12px 22px; border-radius: 12px;
  box-shadow: var(--sh-lg); transition: all .25s; max-width: 80vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ══════════════ 模态框 ══════════════ */
.mask { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.mask.show { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 18px; box-shadow: var(--sh-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.modal-head h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.modal-x { width: 32px; height: 32px; border-radius: 9px; background: var(--soft); color: var(--sub); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-x:hover { background: var(--soft-2); color: var(--ink); }
.modal-body { padding: 18px 24px 6px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* 详情面板行 */
.kv { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv i { font-style: normal; width: 92px; flex: none; color: var(--sub); }
.kv span { color: var(--ink); min-width: 0; word-break: break-all; }

/* 活动类型标签 */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; background: var(--soft); color: var(--tx); }
.tag.salon { background: #EFF6FF; color: var(--pri); }
.tag.forum { background: #F5F3FF; color: var(--purple); }
.tag.meeting { background: #ECFDF5; color: var(--green); }
.tag.contest { background: #FFFBEB; color: #B45309; }

/* 签到二维码说明等富文本块 */
.note-box { background: #EFF6FF; border: 1px solid #DBEAFE; border-radius: 12px; padding: 14px 16px; font-size: 12.5px; color: #1D4ED8; line-height: 1.7; margin-bottom: 14px; }

/* 导航分组标题（五大核心板块 / 四大资源库 / 运营） */
.nav-gt { font-size: 10.5px; letter-spacing: 2px; color: #64748B; padding: 14px 13px 6px; font-weight: 600; }
.nav-gt:first-child { padding-top: 4px; }

/* 概览 8 卡网格 */
.stats-8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats-8 .stat { padding: 16px; gap: 12px; }
.stats-8 .stat b { font-size: 22px; }
.stats-8 .st-ico { width: 42px; height: 42px; font-size: 18px; }
@media (max-width: 1100px) { .stats-8 { grid-template-columns: repeat(2, 1fr); } }

/* 响应式 */
@media (max-width: 860px) {
  .side { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tb-search { display: none; }
  .content { padding: 16px 14px 40px; }
}

/* ══════════════════════════════════════════════════════════════════
   UI 特效包（2026-11-21）：液态玻璃选中 / 聚光鼠标 / 边缘流光
   / 点击展开放大 / 玻璃停靠栏
   ══════════════════════════════════════════════════════════════════ */

/* ── 1. 液态玻璃选中：侧栏选中项玻璃质感 + 切换水滴回弹 ── */
.nav button { position: relative; overflow: hidden; }
.nav button.on {
  background: linear-gradient(135deg, rgba(96, 165, 250, .96), rgba(37, 99, 235, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -8px 16px rgba(30, 58, 138, .28), 0 6px 18px rgba(37, 99, 235, .4);
}
.nav button.on::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 2px; height: 42%;
  border-radius: 50% / 100% 100% 55% 55%;
  background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.nav button.liquid { animation: liquidDrop .58s cubic-bezier(.34, 1.45, .5, 1); }
@keyframes liquidDrop {
  0%   { transform: scale(1); border-radius: 11px; }
  28%  { transform: scale(1.07, .84); border-radius: 50% / 58%; }
  52%  { transform: scale(.93, 1.12); border-radius: 50% / 46%; }
  74%  { transform: scale(1.03, .96); border-radius: 50% / 60%; }
  100% { transform: scale(1); border-radius: 11px; }
}

/* ── 2. 聚光鼠标：卡片柔光跟随 + 边缘照亮 ── */
.card { position: relative; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, .09), transparent 46%);
  opacity: 0; transition: opacity .25s;
}
.card:hover::after { opacity: 1; }
.card:hover { border-color: rgba(37, 99, 235, .45); box-shadow: 0 8px 26px rgba(37, 99, 235, .1); }

/* ── 3. 边缘流光：重点卡片循环转动描边 ── */
@property --ga { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.glow-rim { position: relative; }
.glow-rim::before {
  content: ""; position: absolute; inset: -1.6px; border-radius: calc(var(--r-lg) + 1.6px); z-index: -1;
  background: conic-gradient(from var(--ga),
    transparent 0 62%, rgba(59, 130, 246, 0) 70%, #2563EB 82%, #93C5FD 88%, rgba(147, 197, 253, .35) 94%, transparent 98%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1.6px;
  animation: rimSpin 3.4s linear infinite;
}
@keyframes rimSpin { to { --ga: 360deg; } }

/* ── 4. 点击展开放大：模态从点击处弹出、原路收回 ── */
.modal { will-change: transform; }
.modal.pop-in { animation: modalPopIn .38s cubic-bezier(.3, 1.34, .54, 1) both; }
.modal.pop-out { animation: modalPopOut .21s ease-in both; }
@keyframes modalPopIn { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes modalPopOut { from { transform: scale(1); opacity: 1; } to { transform: scale(.55); opacity: 0; } }

/* ── 5. 玻璃停靠栏：底部快捷入口，悬停连带放大 ── */
#dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40;
  display: flex; gap: 4px; padding: 8px 12px; border-radius: 22px;
  background: rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 10px 34px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.dock-ico {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #64748B; cursor: pointer; user-select: none;
  transition: transform .16s cubic-bezier(.3, 1.4, .5, 1), background .2s, color .2s;
  will-change: transform;
}
.dock-ico:hover { background: rgba(37, 99, 235, .1); color: var(--pri); }
.dock-ico.dock-on { color: #fff; background: linear-gradient(135deg, #3B82F6, #2563EB); box-shadow: 0 5px 14px rgba(37, 99, 235, .35); }
@media (max-width: 860px) { #dock { display: none; } }

/* ── 注册页分段控件（2026-11-22）：Tab 切换风格与登录页统一 ── */
.reg-seg-wrap { display: flex; margin: 16px 0 20px; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; }
.reg-seg {
  flex: 1; height: 42px; border: none; border-radius: 9px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--sub);
  transition: all .2s; white-space: nowrap;
}
.reg-seg:hover { color: var(--pri); background: rgba(37, 99, 235, .06); }
.reg-seg.on { background: var(--pri); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }