/* =========================================================
   东方财富 2027 届校招进校日程 —— 样式
   ========================================================= */
:root {
  --brand: #e02b22;
  --brand-2: #c11f17;
  --brand-soft: #fdeeec;
  --navy: #141a33;
  --navy-2: #1f2749;
  --gold: #f3c14e;

  --ink: #1c2434;
  --ink-2: #49546a;
  --muted: #8b94a8;
  --bg: #f2f4fa;
  --card: #ffffff;
  --line: #e6e9f2;

  --c-sxh: #e02b22;    /* 双选会 */
  --c-xjh: #2f6bff;    /* 宣讲会 */
  --c-zch: #8b5cf6;    /* 专场活动 */
  --c-acc: #f97316;    /* 橙色：场次合计、参与热度 */

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 26, 51, .05), 0 2px 10px rgba(20, 26, 51, .05);
  --shadow-md: 0 8px 30px rgba(20, 26, 51, .12);
  --shadow-lg: 0 20px 60px rgba(10, 14, 32, .25);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(820px 260px at 88% -40px, rgba(224, 43, 34, .4), transparent 62%),
    radial-gradient(700px 300px at -60px 120%, rgba(47, 107, 255, .25), transparent 60%),
    linear-gradient(135deg, #0e1226 0%, #1a2140 55%, #2b1a33 100%);
  color: #fff;
  padding: 40px 0 46px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--gold), transparent 70%);
}
.hero-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
}
.hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.logo-pill {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(224, 43, 34, .45);
}
.logo-sub {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  letter-spacing: 3px;
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 4px 10px;
  border-radius: 999px;
}
.hero-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: 1px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, #ff8a7a, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { margin: 0 0 22px; color: rgba(255, 255, 255, .68); font-size: 14px; line-height: 1.8; }

/* 学校搜索 */
.hero-search {
  position: relative;
  max-width: 460px;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 0 12px;
  color: rgba(255, 255, 255, .85);
  transition: border-color .15s, background .15s;
}
.hero-search:focus-within { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 12px 0;
}
.hero-search input::placeholder { color: rgba(255, 255, 255, .55); }
.hero-search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.hero-search.has-text .search-clear { display: block; }
.search-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 60;
}
.search-drop.open { display: block; animation: fade .15s ease; }
.sd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #f1f3f8;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.sd-item:last-child { border-bottom: 0; }
.sd-item:hover { background: #f7f9fd; }
.sd-ava { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; letter-spacing: 0; }
.sd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sd-main b { font-size: 13.5px; }
.sd-main small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-item .badge { flex: none; }
.sd-empty { padding: 16px 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* 搜索跳转高亮 */
@keyframes evflash {
  0%, 100% { box-shadow: none; background: #fff; }
  25%, 65% { box-shadow: 0 0 0 3px var(--c-acc); background: #fffaf3; }
}
.ev.flash { animation: evflash 1.6s ease; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(4px);
  padding: 10px 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-width: 108px;
}
.stat b { font-size: 22px; font-weight: 700; line-height: 1.2; color: #fff; }
.stat span { font-size: 12px; color: rgba(255, 255, 255, .62); margin-top: 2px; }

/* Hero 左右分栏：主信息（左） + 今日安排（右） */
.hero-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .95fr);
  gap: 18px;
  align-items: start;
}
.hero-main { min-width: 0; }

/* 今日安排卡 */
.today-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 28px rgba(0, 0, 0, .16);
  border-radius: 16px;
  padding: 14px 14px 12px;
  color: #fff;
}
.today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, .18);
}
.today-head b {
  font-size: 14.5px;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.today-head b::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd76a;
  box-shadow: 0 0 0 4px rgba(255, 215, 106, .16);
  animation: todayPulse 2s ease infinite;
}
@keyframes todayPulse { 50% { box-shadow: 0 0 0 6px rgba(255, 215, 106, .06); } }
.today-date { font-size: 12.5px; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; white-space: nowrap; }
.today-list { display: flex; flex-direction: column; gap: 6px; max-height: 252px; overflow: auto; }
.today-list::-webkit-scrollbar { width: 4px; }
.today-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 4px; }
.today-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  transition: background .15s ease, transform .15s ease;
}
.today-row:hover { background: rgba(255, 255, 255, .15); transform: translateY(-1px); }
.tr-time {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .12);
  border-radius: 7px;
  padding: 4px 7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}
.tr-main { flex: 1; min-width: 0; }
.tr-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tr-name b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-venue {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-empty { text-align: center; padding: 12px 6px 6px; }
.today-empty b { display: block; font-size: 13.5px; font-weight: 600; }
.today-empty small { display: block; margin-top: 5px; font-size: 12px; color: rgba(255, 255, 255, .58); line-height: 1.7; }
.today-next {
  width: 100%;
  margin-top: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px dashed rgba(255, 255, 255, .32);
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s ease;
}
.today-next:hover { background: rgba(255, 255, 255, .15); }
.today-next b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-next .tk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.today-next .arrow { flex: none; opacity: .7; }

/* ---------------- 工具条 ---------------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.month-tabs {
  display: flex;
  background: #eceff7;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.month-tab {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.month-tab:hover { color: var(--ink); }
.month-tab.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(224, 43, 34, .35);
}
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.readonly-chip, .admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
}
.readonly-chip { color: var(--ink-2); background: #f1f3f9; }
.admin-chip {
  color: #0a7d43;
  background: #e8f7ee;
  border: 1px solid #bfe8cf;
  font-weight: 600;
}
.dot-green { width: 7px; height: 7px; border-radius: 50%; background: #1fad5c; box-shadow: 0 0 0 3px rgba(31, 173, 92, .18); }
.dot-gray { width: 7px; height: 7px; border-radius: 50%; background: #aab2c5; }

/* ---------------- 布局 ---------------- */
.layout {
  width: min(1180px, 92vw);
  margin: 22px auto 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .95fr);
  gap: 18px;
  align-items: start;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-head h2::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), #ff7a5c);
}

/* 图例 */
.legend { display: flex; flex-wrap: wrap; gap: 12px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: 1px; }
.legend span { font-size: 12px; color: var(--muted); }
.legend .lg-hint { margin-left: auto; color: var(--muted); white-space: nowrap; }
.legend .lg-sxh i { background: var(--c-sxh); }
.legend .lg-xjh i { background: var(--c-xjh); }
.legend .lg-zch i { background: var(--c-zch); }

/* ---------------- 日历 ---------------- */
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 5px;
}
.cal-week span {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
}
.cal-week span.we { color: #e0a2a0; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.cal-cell {
  position: relative;
  border: 1px solid transparent;
  background: #f8f9fd;
  border-radius: 10px;
  min-height: 82px;
  padding: 6px 7px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: all .15s ease;
  font-family: inherit;
}
.cal-cell:hover { background: #eef1f9; border-color: #dde2f0; transform: translateY(-1px); }
.cal-cell.blank { background: transparent; cursor: default; }
.cal-cell.blank:hover { background: transparent; border-color: transparent; transform: none; }
.cal-cell.is-today { background: #fff7e8; border-color: #f3cf8f; }
.cal-cell.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(224, 43, 34, .16);
  background: #fff;
}
.cal-top { display: flex; align-items: center; justify-content: space-between; }
.dnum {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cal-cell.is-today .dnum {
  color: #b45309;
  background: #fde5b0;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cal-cell.has-event .dnum { color: var(--brand); font-weight: 700; }
.weekend .dnum { color: #d08986; }
.weekend.has-event .dnum { color: var(--brand); }
.cal-count {
  flex: none;
  margin-left: auto;
  background: var(--c-acc);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(249, 115, 22, .38);
  line-height: 1;
}
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.cal-dots i { width: 7px; height: 7px; border-radius: 50%; }
.cal-more { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.add-mini {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 0;
  background: var(--brand);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(224, 43, 34, .4);
}
.add-mini svg { pointer-events: none; }
.editing .cal-cell.has-event:hover .add-mini,
.editing .cal-cell:hover:not(.blank):not(.has-event) .add-mini { display: flex; }

/* ---------------- 右栏场次 ---------------- */
.day-card { position: sticky; top: 76px; }
.day-head h2 { font-size: 15.5px; }
.count-pill {
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
}
.day-tip { margin: -6px 0 12px; font-size: 12.5px; color: var(--muted); }
.day-list { display: flex; flex-direction: column; gap: 10px; }
.ev {
  border: 1px solid var(--line);
  border-left: 4px solid var(--c-sxh);
  border-radius: var(--r-md);
  padding: 11px 12px;
  background: #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.ev:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ev[data-type="宣讲会"] { border-left-color: var(--c-xjh); }
.ev[data-type="专场活动"] { border-left-color: var(--c-zch); }
.ev-top { display: flex; align-items: flex-start; gap: 10px; }
.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: .5px;
  padding: 0 2px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}
.ev-info { flex: 1; min-width: 0; }
.ev-name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.sxh { background: #fdecea; color: var(--brand); }
.badge.xjh { background: #e9f0ff; color: var(--c-xjh); }
.badge.zch { background: #f1e8fe; color: var(--c-zch); }
.ev-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ev-time {
  flex: none;
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: #f2f4fa;
  border-radius: 8px;
  padding: 5px 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ev-meta {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.ev-meta div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ev-meta svg { flex: none; color: var(--muted); }
.ev-note {
  margin-top: 8px;
  background: #fbf9f2;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12.5px;
  color: #8a6d3b;
}
.ev-actions {
  display: none;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.editing .ev-actions { display: flex; }
.btn-mini {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  border-radius: 8px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
  font-family: inherit;
}
.btn-mini:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-mini.danger:hover { border-color: var(--brand); color: var(--brand); background: #fdecea; }

/* “我想参加”互动按钮（公开可用，无需管理员） */
.ev-attend {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: flex-end;
}
.attend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.attend-btn svg { color: #b6bdd0; flex: none; transition: transform .18s ease; }
.attend-btn:hover { border-color: #ffb98a; color: #e8590c; background: #fffaf6; }
.attend-btn:hover svg { transform: scale(1.18); }
.attend-btn:disabled { opacity: .55; cursor: default; }
.attend-btn .ab-cnt {
  font-style: normal;
  background: #f1f2f7;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.attend-btn.on { border-color: #ff9a5f; background: #fff3ea; color: #e8590c; }
.attend-btn.on svg { color: var(--c-acc); }
.attend-btn.on .ab-cnt { background: var(--c-acc); color: #fff; box-shadow: 0 2px 5px rgba(249, 115, 22, .35); }
@media (max-width: 560px) {
  .attend-btn { padding: 7px 14px; }
}

.day-empty { text-align: center; padding: 42px 10px; color: var(--muted); }
.day-empty p { margin: 10px 0 4px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.day-empty .sub { font-size: 12.5px; color: var(--muted); }
.dot-red-inline { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; }
.day-add-btn {
  width: 100%;
  margin-top: 14px;
  border: 1.5px dashed #e2b6b1;
  background: #fffafa;
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  border-radius: 10px;
  padding: 9px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  transition: all .15s;
}
.day-add-btn:hover { background: var(--brand-soft); border-style: solid; }
.editing .day-add-btn { display: flex; }

/* ---------------- 底部 ---------------- */
.foot {
  width: min(1180px, 92vw);
  margin: 8px auto 84px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 8px;
}
.foot .sep { opacity: .5; }

/* ---------------- FAB ---------------- */
.fab-zone {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 60;
}
.fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow-md);
  transition: all .18s ease;
}
.fab:hover { transform: translateY(-2px); }
.fab-login { background: var(--navy); color: #fff; }
.fab-login:hover { background: var(--navy-2); }
.fab-add { background: var(--brand); color: #fff; }
.fab-add:hover { background: var(--brand-2); }
.fab-out { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.fab-out:hover { color: var(--brand); }

/* ---------------- 模态 ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 33, .5);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  animation: pop .2s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.modal-x {
  border: 0;
  background: #f1f3f9;
  color: var(--ink-2);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}
.modal-x:hover { background: var(--brand-soft); color: var(--brand); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label i { color: var(--brand); font-style: normal; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(224, 43, 34, .13);
}
.field textarea { resize: vertical; min-height: 62px; }
.form-tip { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: -2px 0 0; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 10px;
  transition: all .15s;
}
.btn-ghost { background: #f1f3f9; color: var(--ink-2); }
.btn-ghost:hover { background: #e6e9f2; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(224, 43, 34, .3); }
.btn-primary:hover { background: var(--brand-2); }
.btn-danger { background: var(--brand); color: #fff; }
.btn-danger:hover { background: var(--brand-2); }
.form-error {
  grid-column: 1 / -1;
  background: #fdecea;
  color: var(--brand);
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 11px;
  display: none;
}
.form-error.show { display: block; }

/* 登录框 */
.login-brand { text-align: center; margin-bottom: 14px; }
.login-brand .logo-pill { display: inline-block; }
.login-tip { text-align: center; font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.pwd-wrap { position: relative; }
.pwd-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
}

/* ---------------- Toast ---------------- */
.toast-zone {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 120;
  pointer-events: none;
}
.toast {
  background: var(--navy);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn .22s ease;
}
.toast.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d17b; }
.toast.err::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff6a5f; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

/* ---------------- 服务唤醒提示条 ---------------- */
.wake-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(90deg, #b45309, #f97316);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 9px 14px;
  letter-spacing: .3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transform: translateY(-100%);
  transition: transform .25s ease;
  pointer-events: none;
}
.wake-banner.show { transform: translateY(0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  /* 单列时与下方统计区拉开间距，避免今日安排卡贴住/压到下方内容 */
  .hero-cols { grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
}
@media (max-width: 560px) {
  /* 统计块窄屏下 2×2 均分对齐，避免换行后宽窄不一 */
  .stat { flex: 1 1 calc(50% - 12px); min-width: 0; }
  .stat b { font-size: 19px; }
  .stat span { font-size: 11px; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .day-card { position: static; }
}
@media (max-width: 560px) {
  .hero { padding: 28px 0 32px; }
  .today-card { padding: 12px 12px 10px; }
  .month-tab { padding: 7px 16px; font-size: 14px; }
  .toolbar-inner { justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .cal-cell { min-height: 66px; padding: 4px 5px; }
  .fab { padding: 11px 16px; }
  .fab span { display: none; }
  .fab { border-radius: 50%; padding: 13px; }
  .fab-zone { right: 16px; bottom: 16px; }
}
