/* 湖州健康集团 · 双周工作例会平台 */
:root {
  --brand: #0e7c86;
  --brand-deep: #0a5f68;
  --brand-soft: #e6f4f4;
  --brand-2: #16a3a0;
  --accent: #d98324;
  --accent-2: #f0a44e;
  --accent-soft: #fdf2e4;
  --ink: #1d2b33;
  --ink-2: #4a5b64;
  --ink-3: #84939b;
  --line: #e6ecef;
  --bg: #f4f7f8;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 50, 55, .04), 0 8px 26px rgba(16, 50, 55, .06);
  --shadow-hover: 0 4px 10px rgba(16, 50, 55, .08), 0 18px 44px rgba(16, 50, 55, .13);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* 部门卡片 4 套色调 */
  --t0-a: #16a3a0; --t0-b: #0a5f68; --t0-soft: #e7f6f5;
  --t1-a: #5b7fc7; --t1-b: #34528f; --t1-soft: #ecf1fb;
  --t2-a: #d98324; --t2-b: #a85d13; --t2-soft: #fdf2e4;
  --t3-a: #7c6bb5; --t3-b: #51438a; --t3-soft: #f0edfa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 460px at 12% -8%, rgba(22,163,160,.10), transparent 60%),
    radial-gradient(900px 420px at 92% -12%, rgba(240,164,78,.08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 13px 32px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid rgba(230,236,239,.9);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, var(--brand-2), var(--brand-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: .5px;
  box-shadow: 0 5px 14px rgba(14, 124, 134, .3);
}
.brand-text { min-width: 0; }
.brand-title {
  font-size: 16px; font-weight: 700; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub { font-size: 11px; color: var(--ink-3); letter-spacing: 1.2px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding-right: 6px; margin-right: 2px; border-right: 1px solid var(--line); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, var(--brand-2), var(--brand-deep));
}
.user-info { display: flex; flex-direction: column; line-height: 1.25; }
.user-info b { font-size: 13px; font-weight: 800; white-space: nowrap; }
.user-info small { font-size: 10.5px; color: var(--ink-3); }
@media (max-width: 1100px) { .hide-sm { display: none; } .user-info { display: none; } }

/* 管理员 / 部门后台入口横幅 */
.admin-banner, .dept-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(105deg, #0a5f68, #0e7c86 55%, #16a3a0);
  color: #fff; border-radius: 15px; padding: 18px 24px; margin: 4px 0 22px;
  box-shadow: 0 8px 26px rgba(14,124,134,.24); position: relative; overflow: hidden;
}
.admin-banner::after {
  content: ""; position: absolute; right: -40px; top: -70px; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); pointer-events: none;
}
.ab-icon {
  flex: none; width: 50px; height: 50px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); position: relative;
}
.ab-icon svg.i { width: 25px; height: 25px; }
.ab-text { display: flex; flex-direction: column; flex: 1; min-width: 200px; position: relative; }
.ab-text b { font-size: 16px; font-weight: 800; }
.ab-text span { font-size: 12.5px; opacity: .85; margin-top: 2px; }
.ab-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.ab-actions .btn { border: 0; }
.ab-primary { background: #fff; color: var(--brand-deep); font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.ab-primary:hover { background: #f0fbfa; }
.ab-ghost { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; border: 1px solid rgba(255,255,255,.35) !important; }
.ab-ghost:hover { background: rgba(255,255,255,.24); }
/* 部门管理员横幅用蓝紫色调，与总后台青色区分 */
.dept-banner { background: linear-gradient(105deg, #34528f, #4a63ad 55%, #6d84d6); box-shadow: 0 8px 26px rgba(52,82,143,.22); }
@media (max-width: 640px) {
  .admin-banner { padding: 16px; gap: 12px; }
  .ab-actions { width: 100%; }
  .ab-actions .btn { flex: 1; justify-content: center; }
}
.topbar-search {
  display: flex; align-items: center; gap: 9px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px;
  flex: 1; max-width: 460px; margin: 0 auto; transition: .18s;
}
.topbar-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.topbar-search svg { color: var(--brand); }
.topbar-search input { border: 0; outline: 0; font-size: 13.5px; width: 100%; background: transparent; color: var(--ink); }
.topbar-search input::placeholder { color: #a4b0b6; }
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 12px; }
  .topbar-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
}

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent; border-radius: 9px;
  padding: 8px 15px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: .18s ease; white-space: nowrap;
  background: var(--brand-soft); color: var(--brand-deep);
}
.btn:hover { background: #d5ecec; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 3px 10px rgba(14,124,134,.25); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); background: #fff; }
.btn-danger { background: #fdecec; color: #c0392b; }
.btn-danger:hover { background: #fbdcdc; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.icon-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: .18s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn.danger:hover { border-color: #e57373; color: #c0392b; }
svg.i { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.9; fill: none;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 22px; position: relative; }
.hero-logout {
  position: absolute; right: 0; top: 44px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 9px; padding: 8px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: .18s ease; white-space: nowrap; text-decoration: none;
}
.hero-logout:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); transform: translateY(-1px); }
.hero-logout svg.i { width: 15px; height: 15px; }
@media (max-width: 760px) { .hero-logout { position: static; margin: 0 0 14px; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .6px;
  color: var(--brand-deep); background: var(--brand-soft);
  padding: 4px 11px; border-radius: 20px; margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 8px; font-size: 33px; letter-spacing: -1px; font-weight: 800;
  background: linear-gradient(100deg, var(--ink) 20%, var(--brand-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 26px; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 25px; } }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 16px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: .2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--brand-2), var(--brand-deep)); }
.stat:nth-child(2)::after { background: linear-gradient(var(--accent-2), var(--accent)); }
.stat:nth-child(4)::after { background: linear-gradient(#7c9ea8, var(--brand)); }
.stat-no { position: absolute; right: 14px; top: 8px; font-size: 22px; font-weight: 800; color: #eef3f4; }
.stat-label { font-size: 12px; color: var(--ink-3); position: relative; }
.stat-value { font-size: 25px; font-weight: 800; margin-top: 3px; letter-spacing: -.5px; position: relative; }
.stat-value em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 4px; }

/* ---------- 时间轴 ---------- */
.timeline-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 20px 0 12px; gap: 12px; flex-wrap: wrap;
}
.section-label { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; }
.section-label::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(var(--brand-2), var(--brand-deep)); }
.timeline-tip { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 12px; }
.timeline-tip::before { content: "✦"; color: var(--accent); }
.year-filter { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.year-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 20px; padding: 5px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: .18s ease;
}
.year-chip:hover { border-color: var(--brand); color: var(--brand-deep); }
.year-chip.active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; box-shadow: 0 3px 10px rgba(14,124,134,.22); }
.search {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; min-width: 260px;
  transition: .18s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search svg { color: var(--ink-3); }
.search input { border: 0; outline: 0; font-size: 13.5px; width: 100%; background: transparent; color: var(--ink); }

.timeline {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 16px;
  scroll-snap-type: x proximity;
}
.timeline::-webkit-scrollbar { height: 6px; }
.timeline::-webkit-scrollbar-thumb { background: #cdd9dc; border-radius: 4px; }
.issue-chip {
  flex: none; scroll-snap-align: start; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 16px; min-width: 134px; transition: .2s ease; position: relative; overflow: hidden;
}
.issue-chip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, var(--brand), var(--brand-deep)); opacity: 0; transition: .2s; }
.issue-chip:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.issue-chip.active { color: #fff; box-shadow: 0 6px 18px rgba(14,124,134,.3); }
.issue-chip.active::before { opacity: 1; }
.issue-chip > * { position: relative; }
.issue-chip .chip-issue { font-size: 11.5px; opacity: .8; font-weight: 700; }
.issue-chip .chip-date { font-size: 15px; font-weight: 800; margin-top: 1px; letter-spacing: .2px; }
.issue-chip .chip-period { font-size: 10.5px; opacity: .72; margin-top: 3px; }

/* ---------- 会议信息条 ---------- */
.meeting-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 12px 0 20px;
}
.meeting-title { font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.title-accent { color: var(--brand); }
.meeting-meta { color: var(--ink-2); font-size: 13px; margin-top: 6px; display: flex; gap: 18px; flex-wrap: wrap; }
.meeting-meta span { display: inline-flex; align-items: center; gap: 5px; }
.meeting-meta b { color: var(--ink); font-weight: 700; }

/* ---------- 部门卡片 ---------- */
.dept-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 48px; }
@media (max-width: 900px) { .dept-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dept-tiles { grid-template-columns: 1fr; } }
.dept-tile {
  --a: var(--t0-a); --b: var(--t0-b); --soft: var(--t0-soft);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 20px; cursor: pointer; box-shadow: var(--shadow);
  transition: .26s cubic-bezier(.2,.7,.3,1); position: relative; overflow: hidden; outline: 0;
  min-height: 210px; display: flex; flex-direction: column;
}
.dept-tile.tone-1 { --a: var(--t1-a); --b: var(--t1-b); --soft: var(--t1-soft); }
.dept-tile.tone-2 { --a: var(--t2-a); --b: var(--t2-b); --soft: var(--t2-soft); }
.dept-tile.tone-3 { --a: var(--t3-a); --b: var(--t3-b); --soft: var(--t3-soft); }
.tile-glow {
  position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, var(--soft), transparent 70%); opacity: .9; transition: .3s;
}
.dept-tile::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--a), var(--b)); transform: scaleY(0); transform-origin: top; transition: .3s;
}
.dept-tile:hover, .dept-tile:focus-visible {
  transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent;
}
.dept-tile:hover::after, .dept-tile:focus-visible::after { transform: scaleY(1); }
.dept-tile:hover .tile-glow { transform: scale(1.25); }
.tile-head { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.tile-no { font-size: 12px; font-weight: 800; color: #b9c7cc; letter-spacing: 1.5px; }
.tile-head-arrow {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  color: var(--b); background: var(--soft); transition: .22s;
}
.tile-head-arrow svg.i { width: 15px; height: 15px; }
.dept-tile:hover .tile-head-arrow { background: linear-gradient(145deg, var(--a), var(--b)); color: #fff; transform: translate(2px,-2px); }
.tile-icon {
  width: 60px; height: 60px; border-radius: 17px; margin: 16px 0 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: var(--b);
  background: linear-gradient(145deg, #fff, var(--soft));
  border: 1px solid rgba(255,255,255,.8); box-shadow: 0 5px 16px rgba(16,50,55,.07);
  position: relative; transition: .26s;
}
.dept-tile:hover .tile-icon { background: linear-gradient(145deg, var(--a), var(--b)); color: #fff; box-shadow: 0 8px 22px rgba(16,50,55,.18); }
.tile-name { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 16px; line-height: 1.45; position: relative; }
.tile-action {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
  font-size: 12.5px; font-weight: 700; color: var(--b);
  border-top: 1px dashed var(--line); padding-top: 13px; position: relative;
}
.tile-action svg.i { width: 16px; height: 16px; transition: transform .2s; }
.dept-tile:hover .tile-action svg.i { transform: translateX(4px); }
mark.hl { background: #fff1c9; color: inherit; padding: 0 2px; border-radius: 2px; }

/* ---------- 详情视图 ---------- */
.detail-crumb {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3); padding: 22px 0 0;
}
.back-link {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  border: 0; background: transparent; color: var(--brand-deep); font-weight: 700; font-size: 13px; padding: 0;
}
.back-link:hover { text-decoration: underline; }
.back-link svg.i { width: 15px; height: 15px; }
.crumb-sep { opacity: .45; }
.crumb-current { color: var(--ink-2); font-weight: 600; }

.detail-hero {
  --a: var(--t0-a); --b: var(--t0-b); --soft: var(--t0-soft);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 32px; margin: 16px 0 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.detail-hero.tone-1 { --a: var(--t1-a); --b: var(--t1-b); --soft: var(--t1-soft); }
.detail-hero.tone-2 { --a: var(--t2-a); --b: var(--t2-b); --soft: var(--t2-soft); }
.detail-hero.tone-3 { --a: var(--t3-a); --b: var(--t3-b); --soft: var(--t3-soft); }
.detail-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--a), var(--b)); }
.detail-hero::after {
  content: ""; position: absolute; right: -50px; top: -70px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, var(--soft), transparent 70%);
}
.detail-avatar {
  flex: none; width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, var(--a), var(--b));
  box-shadow: 0 8px 22px rgba(16,50,55,.2); position: relative;
}
.detail-hero-main { flex: 1; min-width: 220px; position: relative; }
.detail-kicker { font-size: 12px; color: var(--b); font-weight: 700; letter-spacing: .5px; }
.detail-name { margin: 3px 0 9px; font-size: 27px; font-weight: 800; letter-spacing: -.4px; }
.detail-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.detail-meta b { color: var(--ink); }

/* 两页切换 Tab */
.detail-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.dtab {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 15px 20px; font-size: 14.5px; font-weight: 700; color: var(--ink-2);
  transition: .2s; box-shadow: var(--shadow); text-align: left;
}
.dtab span { flex: 1; }
.dtab em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-3); background: #f0f4f5; padding: 2px 9px; border-radius: 11px; }
.dtab svg.i { width: 20px; height: 20px; padding: 3px; border-radius: 7px; background: #f0f4f5; color: var(--ink-3); box-sizing: content-box; }
.dtab:hover { border-color: #cfe3e3; transform: translateY(-2px); }
.dtab.active.done { color: var(--brand-deep); border-color: var(--brand); background: linear-gradient(100deg, #eef8f7, #fff); }
.dtab.active.done svg.i { background: var(--brand); color: #fff; }
.dtab.active.done em { color: var(--brand-deep); background: var(--brand-soft); }
.dtab.active.plan { color: #a86618; border-color: var(--accent); background: linear-gradient(100deg, #fdf5e9, #fff); }
.dtab.active.plan svg.i { background: var(--accent); color: #fff; }
.dtab.active.plan em { color: #a86618; background: var(--accent-soft); }
@media (max-width: 620px) { .detail-tabs { grid-template-columns: 1fr; } }

/* 单页内容大卡片 */
.detail-page {
  --a: var(--brand); --b: var(--brand-deep); --soft: #eef8f7;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 8px;
}
.detail-page.plan { --a: var(--accent); --b: #a86618; --soft: #fdf5e9; }
.detail-page-head {
  display: flex; align-items: center; gap: 15px; padding: 22px 28px;
  background: linear-gradient(100deg, var(--soft), #fff); border-bottom: 1px solid var(--line);
}
.dph-icon {
  flex: none; width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--a), var(--b)); color: #fff; box-shadow: 0 5px 14px rgba(16,50,55,.16);
}
.dph-icon svg.i { width: 24px; height: 24px; }
.detail-page-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.detail-page-head p { margin: 1px 0 0; font-size: 11px; letter-spacing: .8px; color: var(--ink-3); font-weight: 700; }
.detail-page-body { padding: 26px 34px 30px; font-size: 14px; color: var(--ink-2); line-height: 1.95; }
.line-head {
  font-weight: 800; color: var(--ink); margin: 18px 0 6px; padding-left: 16px; position: relative; font-size: 14.5px;
}
.line-head:first-child { margin-top: 0; }
.line-head::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--a); }
.line-item { padding-left: 16px; }
.detail-page.plan .line-head::before { background: var(--a); }
.detail-empty {
  display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-style: normal;
  background: #f7f9fa; border-radius: 10px; padding: 16px; font-size: 13px;
}
.detail-page-foot { padding: 0 28px 26px; }
.page-nav {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--b);
  font-size: 13px; font-weight: 700; padding: 10px 18px; border-radius: 10px; transition: .18s;
}
.page-nav:hover { border-color: var(--a); background: var(--soft); }
.page-nav svg.i { width: 15px; height: 15px; }

.detail-pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 24px 0 50px; }
.pager-btn {
  display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 16px; min-width: 190px; transition: .18s; box-shadow: var(--shadow);
}
.pager-btn:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.pager-btn.right { text-align: right; justify-content: flex-end; }
.pager-btn span { font-size: 11px; color: var(--ink-3); line-height: 1.4; }
.pager-btn b { font-size: 13px; color: var(--ink); font-weight: 700; }
.pager-btn svg.i { color: var(--brand); }
.pager-btn.disabled { visibility: hidden; }
.pager-count { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pager-count span { color: var(--brand); font-size: 17px; font-weight: 800; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-3); }

.site-footer {
  border-top: 1px solid var(--line); padding: 22px 0 34px;
  color: var(--ink-3); font-size: 12.5px; text-align: center;
}

/* ========== 管理后台（保持独立样式） ========== */
.admin-bar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; padding: 13px 28px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .brand-title { font-size: 15px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 22px; padding: 24px 28px 60px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.side-panel { padding: 14px; align-self: start; position: sticky; top: 76px; }
.side-title { font-size: 12px; color: var(--ink-3); font-weight: 700; letter-spacing: .5px; margin: 4px 6px 10px; text-transform: uppercase; }
.issue-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px; border-radius: 9px; cursor: pointer; margin-bottom: 4px; transition: .15s;
}
.issue-list-item:hover { background: var(--bg); }
.issue-list-item.active { background: var(--brand-soft); }
.issue-list-item .ili-main { min-width: 0; }
.issue-list-item .ili-date { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.issue-list-item.active .ili-date { color: var(--brand-deep); }
.issue-list-item .ili-period { font-size: 11px; color: var(--ink-3); }
.issue-list-item .del-issue { opacity: 0; }
.issue-list-item:hover .del-issue { opacity: 1; }

.editor { padding: 22px 24px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.editor-head h2 { margin: 0; font-size: 19px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 11px; font-size: 13.5px; color: var(--ink); outline: 0; background: #fff; transition: .15s;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* 时间周期：自定义日历范围选择器 */
.period-field { position: relative; }
.period-trigger {
  width: 100%; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 8px; padding: 9px 11px; font-size: 13.5px;
  cursor: pointer; text-align: left; transition: .15s;
}
.period-trigger:hover { border-color: var(--brand); }
.period-trigger svg.i { width: 16px; height: 16px; flex: none; color: var(--brand); }
.period-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.period-trigger.empty .period-value { color: #a4b0b6; }
.period-caret { color: var(--ink-3); font-size: 11px; }
.period-pop {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 60;
  width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(16,50,55,.18); padding: 12px;
}
.pp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pp-title { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.pp-nav {
  width: 28px; height: 28px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); border-radius: 7px; cursor: pointer; font-size: 17px; line-height: 1;
}
.pp-nav:hover { border-color: var(--brand); color: var(--brand-deep); }
.pp-weekdays, .pp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pp-weekdays span { text-align: center; font-size: 11px; color: var(--ink-3); padding: 4px 0; }
.pp-day {
  aspect-ratio: 1; border: 0; background: transparent; color: var(--ink);
  font-size: 12.5px; border-radius: 7px; cursor: pointer; transition: background .12s;
}
.pp-day:hover:not(.blank) { background: var(--brand-soft); }
.pp-day.blank { cursor: default; }
.pp-day.in-range { background: var(--brand-soft); border-radius: 0; }
.pp-day.sel-start, .pp-day.sel-end { background: var(--brand-deep); color: #fff; font-weight: 800; }
.pp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.pp-tip { font-size: 11px; color: var(--ink-3); }
.pp-clear { border: 0; background: transparent; color: var(--brand-deep); font-size: 12px; font-weight: 700; cursor: pointer; }
.pp-clear:hover { text-decoration: underline; }

.dept-editor { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.dept-editor-head {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: #fafcfc; border-bottom: 1px solid var(--line);
}
.dept-editor-head .dept-name-input { flex: 1; font-weight: 700; font-size: 14px; border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 6px 9px; outline: 0; }
.dept-editor-head .dept-name-input:hover, .dept-editor-head .dept-name-input:focus { border-color: var(--line); background: #fff; }
.dept-editor-body { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .dept-editor-body { grid-template-columns: 1fr; } }
.textarea-field label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; margin-bottom: 7px; }
.textarea-field.done label { color: var(--brand-deep); }
.textarea-field.plan label { color: #a86618; }
.textarea-field textarea {
  width: 100%; min-height: 170px; resize: vertical; border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 12px; font-size: 13px; line-height: 1.7;
  color: var(--ink); outline: 0; transition: .15s;
}
.textarea-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.hint {
  display: flex; align-items: flex-start; gap: 9px; padding: 12px 15px;
  background: var(--accent-soft); border: 1px solid #f5dfbf; border-radius: 10px;
  color: #8a5a1c; font-size: 12.5px; line-height: 1.65; margin-bottom: 18px;
}
.hint svg { flex: none; margin-top: 2px; }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 10px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-mask { position: fixed; inset: 0; background: rgba(10,30,35,.45); display: none; align-items: center; justify-content: center; z-index: 80; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 15px; padding: 26px; width: min(460px, 100%); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p { color: var(--ink-2); font-size: 13.5px; margin: 0 0 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ========== 搜索结果视图 ========== */
.search-head { padding: 28px 0 22px; }
.back-home {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--brand-deep);
  font-weight: 700; font-size: 12.5px; padding: 7px 13px; border-radius: 9px;
  margin-bottom: 20px; transition: .18s ease;
}
.back-home:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateX(-2px); }
.back-home svg.i { width: 15px; height: 15px; }
.search-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--brand); }
.search-head h1 {
  margin: 6px 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -.6px;
  background: linear-gradient(100deg, var(--ink) 20%, var(--brand-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.search-head p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.search-head p b { color: var(--brand-deep); }

.search-empty {
  text-align: center; padding: 70px 20px 90px; color: var(--ink-3);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.se-icon {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.se-icon svg.i { width: 26px; height: 26px; }
.search-empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }
.search-empty p { margin: 0; font-size: 13px; }

.search-groups { padding-bottom: 50px; }
.search-group {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden;
}
.group-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.group-avatar {
  flex: none; width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, var(--brand-2), var(--brand-deep));
  box-shadow: 0 4px 12px rgba(14,124,134,.24);
}
.group-title { flex: 1; min-width: 0; }
.group-title h2 { margin: 0; font-size: 17px; font-weight: 800; }
.group-title p { margin: 1px 0 0; font-size: 12px; color: var(--ink-3); }
.group-toggle {
  flex: none; cursor: pointer; border: 1px solid var(--line); background: #fff;
  color: var(--brand-deep); font-size: 12px; font-weight: 700;
  padding: 6px 13px; border-radius: 8px; transition: .16s;
}
.group-toggle:hover { border-color: var(--brand); background: var(--brand-soft); }

.group-recs { padding: 6px 14px 14px; }
.rec { border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: 0; }
.rec > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 12px 8px; transition: .15s; border-radius: 8px;
}
.rec > summary::-webkit-details-marker { display: none; }
.rec > summary:hover { background: #f7fafb; }
.rec-issue { font-size: 12.5px; font-weight: 800; color: var(--brand-deep); flex: none; min-width: 52px; }
.rec-date { font-size: 13px; font-weight: 700; color: var(--ink); flex: none; }
.rec-period { font-size: 12px; color: var(--ink-3); flex: 1; }
.rec-flag { font-size: 11px; color: var(--ink-3); background: #f2f5f6; padding: 2px 9px; border-radius: 12px; flex: none; }
.rec-caret { color: var(--ink-3); transition: transform .2s; }
.rec[open] > summary .rec-caret { transform: rotate(180deg); }
.rec[open] > summary { background: #f7fafb; }
.rec-body { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 6px 8px 14px; }
@media (max-width: 820px) { .rec-body { grid-template-columns: 1fr; } }
.rec-col { background: #fafcfc; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; }
.rec-col h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.rec-col h4 span { width: 8px; height: 8px; border-radius: 50%; }
.rec-col.done h4 { color: var(--brand-deep); }
.rec-col.done h4 span { background: var(--brand); }
.rec-col.plan h4 { color: #a86618; }
.rec-col.plan h4 span { background: var(--accent); }
.rec-col .line-head { font-size: 12.8px; margin: 10px 0 3px; }
.rec-col .line-item { font-size: 12.5px; line-height: 1.75; }
.rec-goto {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  margin: 0 8px 8px; border: 0; background: var(--brand-soft); color: var(--brand-deep);
  font-size: 12px; font-weight: 700; padding: 7px 13px; border-radius: 8px; transition: .16s;
}
.rec-goto:hover { background: var(--brand); color: #fff; }
.rec-goto svg.i { width: 14px; height: 14px; }

/* ===== 共享数据同步状态 UI ===== */
.sync-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 90;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(16,50,55,.14); pointer-events: none;
}
.sync-badge .sb-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sync-badge.online { background: #e7f6ef; color: #1c7a4f; border: 1px solid #bfe6d2; }
.sync-badge.online .sb-dot { background: #29a36a; box-shadow: 0 0 0 3px rgba(41,163,106,.18); }
.sync-badge.local { background: #f4f6f7; color: #6b7a80; border: 1px solid #dde4e6; }
.sync-badge.local .sb-dot { background: #a9b6bb; }
.sync-notice {
  position: fixed; top: 14px; left: 50%; transform: translate(-50%, -140%);
  z-index: 120; display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(16,50,55,.22); padding: 12px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  transition: transform .3s ease;
}
.sync-notice.show { transform: translate(-50%, 0); }
.sync-notice button {
  border: 0; border-radius: 8px; padding: 7px 14px; font-size: 12.5px;
  font-weight: 700; cursor: pointer; color: #fff; background: var(--brand-deep);
}
.sync-notice button.sn-close { background: #eef2f3; color: var(--ink-2); }
@media (max-width: 640px) {
  .sync-badge { left: 10px; bottom: 10px; font-size: 10.5px; }
  .sync-notice { width: calc(100% - 24px); flex-wrap: wrap; }
}

/* ============================================================
   手机端专项优化（小程序/移动浏览器专用）
   仅影响 <=640px 视口，桌面端样式完全不受影响
   ============================================================ */
@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { overflow-x: hidden; }

  /* 容器留白收紧，给内容更多宽度 */
  .wrap { padding: 0 16px; }

  /* 所有按钮/链接增大触摸热区，避免误触 */
  .btn, .icon-btn, a.btn, button {
    min-height: 40px;
    -webkit-tap-highlight-color: transparent;
  }
  .btn-sm, .icon-btn { min-height: 36px; }

  /* 输入框、下拉、文本域：字号 >=16px 防止 iOS 自动放大 */
  input, select, textarea {
    font-size: 16px !important;
    max-width: 100%;
  }
  textarea { line-height: 1.6; }

  /* 顶栏：标题与操作分行，避免挤压 */
  .topbar { padding: 12px 16px; }
  .brand-title { font-size: 15px; }
  .topbar-actions { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

  /* 横幅按钮等宽堆叠 */
  .ab-text { min-width: 0; }
  .ab-text b { font-size: 15px; }

  /* Hero 区收紧 */
  .hero { padding: 26px 0 12px; }
  .hero h1 { font-size: 23px; letter-spacing: -.5px; }
  .hero p { font-size: 13px; }
  .hero-stats { gap: 10px; margin-top: 20px; }
  .stat { padding: 13px 14px; }
  .stat-value { font-size: 21px; }

  /* 部门卡片：手机单列，卡片内 padding 收紧 */
  .dept-tiles { grid-template-columns: 1fr !important; gap: 12px; }
  .dept-tile { padding: 18px 16px !important; }

  /* 详情页标题、正文自适应 */
  .detail-head h2, .detail-title { font-size: 20px !important; }
  .rec-body, .detail-body { font-size: 15px; line-height: 1.8; }

  /* 表格横向滚动，避免撑破屏幕 */
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 表单网格单列 */
  .form-grid, .admin-layout, .dept-editor-body { grid-template-columns: 1fr !important; }

  /* 日历范围选择器居中且不溢出 */
  .period-pop { width: min(300px, calc(100vw - 40px)); left: 0; }

  /* 底部安全区（全面屏 iPhone） */
  body { padding-bottom: env(safe-area-inset-bottom, 0); }
}
