/* 交接提醒 · 极简专业视觉层 */

#appView #handoffModuleView {
  --handoff-ink: #10283f;
  --handoff-muted: #7b8998;
  --handoff-line: rgba(18, 45, 70, .1);
  --handoff-line-soft: rgba(18, 45, 70, .065);
  --handoff-gold: #b78a38;
  --handoff-blue: #245f88;
  --handoff-green: #25856f;
  font-family: "Avenir Next", "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--handoff-ink);
  -webkit-font-smoothing: antialiased;
}

#appView #handoffModuleView .module-hero {
  position: relative;
  min-height: 128px;
  padding: 26px 30px;
  overflow: hidden;
  align-items: flex-end;
  border-radius: 20px;
  border-color: rgba(222, 188, 116, .22);
  background:
    radial-gradient(circle at 88% 12%, rgba(102, 157, 191, .24), transparent 34%),
    linear-gradient(120deg, #0b2139 0%, #102f4e 58%, #173d5d 100%);
  box-shadow: 0 20px 50px rgba(10, 31, 52, .16);
}

#appView #handoffModuleView .module-hero h2 {
  margin: 10px 0 0;
  color: #fff;
  font-family: "Songti SC", "STSong", "Iowan Old Style", Georgia, serif;
  font-size: clamp(29px, 3vw, 37px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.035em;
}

#appView #handoffModuleView .module-hero .eyebrow {
  color: #d7b66c;
  font-size: 10px;
  letter-spacing: 2.2px;
}

#appView #handoffModuleView .handoff-hero-actions {
  display: flex;
  gap: 9px;
}

#appView #handoffModuleView .handoff-hero-actions .btn {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 9px;
  color: #e8f0f6;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  font-size: 11px;
}

#appView #handoffModuleView .handoff-hero-actions .btn:hover {
  border-color: rgba(225, 193, 126, .45);
  background: rgba(255, 255, 255, .13);
}

/* 概览指标 */
#appView #handoffModuleView .handoff-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
}

#appView #handoffModuleView .handoff-stat {
  --handoff-metric: var(--handoff-blue);
  position: relative;
  min-height: 94px;
  padding: 17px 19px;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--handoff-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fcfdfe);
  box-shadow: 0 8px 24px rgba(18, 41, 66, .045);
}

#appView #handoffModuleView .handoff-stat:nth-child(2) {
  --handoff-metric: var(--handoff-gold);
}

#appView #handoffModuleView .handoff-stat:nth-child(3) {
  --handoff-metric: var(--handoff-green);
}

#appView #handoffModuleView .handoff-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--handoff-metric), transparent 72%);
}

#appView #handoffModuleView .handoff-stat span {
  color: var(--handoff-muted);
  font-size: 11.5px;
  font-weight: 650;
}

#appView #handoffModuleView .handoff-stat b {
  color: #17334e;
  font-family: "Iowan Old Style", "Baskerville", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

/* 页面分组 */
#appView #handoffModuleView .handoff-operation-grid,
#appView #handoffModuleView .handoff-records-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: 16px;
  align-items: start;
}

#appView #handoffModuleView .handoff-records-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
}

#appView #handoffModuleView .panel {
  min-width: 0;
  padding: 20px 21px;
  border: 1px solid var(--handoff-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 41, 66, .045);
}

#appView #handoffModuleView .panel::before {
  display: none;
}

#appView #handoffModuleView .panel-head {
  margin: 0 0 15px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--handoff-line-soft);
}

#appView #handoffModuleView .panel-head h3 {
  margin: 5px 0 0;
  color: var(--handoff-ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.4;
}

#appView #handoffModuleView .panel-head .eyebrow.dark {
  color: #9c752f;
  font-size: 9.5px;
  letter-spacing: 2px;
}

#appView #handoffModuleView .panel-head > .muted {
  color: #8995a1;
  font-size: 10px;
  white-space: nowrap;
}

/* 通知表单 */
#appView #handoffModuleView #handoffNotifyPanel .neme-notify-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
}

#appView #handoffModuleView #handoffNotifyPanel .neme-notify-grid label {
  display: grid;
  gap: 6px;
  color: #68798a;
  font-size: 10px;
  font-weight: 650;
}

#appView #handoffModuleView #handoffNotifyPanel .neme-notify-grid .span-2 {
  grid-column: 1 / -1;
}

#appView #handoffModuleView #handoffNotifyPanel select,
#appView #handoffModuleView #handoffNotifyPanel input {
  width: 100%;
  height: 37px;
  padding: 0 11px;
  border: 1px solid var(--handoff-line);
  border-radius: 8px;
  color: #29445c;
  background: #fbfcfd;
  outline: 0;
}

#appView #handoffModuleView #handoffNotifyPanel select:focus,
#appView #handoffModuleView #handoffNotifyPanel input:focus {
  border-color: rgba(183, 138, 56, .45);
  box-shadow: 0 0 0 3px rgba(183, 138, 56, .08);
}

#appView #handoffModuleView .neme-notify-actions {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 0;
}

#appView #handoffModuleView .neme-notify-actions .btn {
  min-width: 104px;
  min-height: 36px;
  padding: 8px 15px;
  font-size: 11px;
}

#appView #handoffModuleView .neme-notify-list {
  max-height: 184px;
  overflow: auto;
  display: grid;
  gap: 6px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--handoff-line-soft);
}

#appView #handoffModuleView .neme-notify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 9px 10px;
  border: 1px solid var(--handoff-line-soft);
  border-radius: 9px;
  background: #fafbfc;
}

#appView #handoffModuleView .neme-notify-task {
  min-width: 0;
  overflow: hidden;
  color: #2b4358;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appView #handoffModuleView .neme-notify-state {
  padding: 3px 7px;
  font-size: 9px;
}

#appView #handoffModuleView .neme-notify-row small {
  grid-column: 1 / -1;
  color: #929daa;
  font-size: 9.5px;
}

/* 提醒列表 */
#appView #handoffModuleView .handoff-list {
  max-height: 580px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

#appView #handoffModuleView .handoff-card {
  position: relative;
  padding: 13px 14px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--handoff-line-soft);
  border-left: 2px solid #cfd8e1;
  border-radius: 11px;
  background: #fbfcfd;
  box-shadow: none;
}

#appView #handoffModuleView .handoff-card.unread {
  border-left-color: #c14d57;
  background: linear-gradient(90deg, rgba(193, 77, 87, .045), #fbfcfd 35%);
}

#appView #handoffModuleView .handoff-card.done {
  border-left-color: var(--handoff-green);
  background: #fbfcfc;
}

#appView #handoffModuleView .handoff-card-head {
  gap: 10px;
}

#appView #handoffModuleView .handoff-card-head > div {
  gap: 3px;
}

#appView #handoffModuleView .handoff-card-head b {
  color: #1c374f;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
}

#appView #handoffModuleView .handoff-card-head span {
  color: #81909e;
  font-size: 10px;
}

#appView #handoffModuleView .handoff-card-head .badge {
  padding: 4px 8px;
  font-size: 9px;
}

#appView #handoffModuleView .handoff-card-meta {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  color: #8b97a3;
  font-size: 9.5px;
  line-height: 1.5;
}

#appView #handoffModuleView .handoff-detail-fold {
  border-top: 1px solid var(--handoff-line-soft);
  padding-top: 7px;
}

#appView #handoffModuleView .handoff-detail-fold summary {
  width: max-content;
  color: #49657c;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 650;
  list-style: none;
}

#appView #handoffModuleView .handoff-detail-fold summary::-webkit-details-marker {
  display: none;
}

#appView #handoffModuleView .handoff-detail-fold summary::after {
  content: "+";
  display: inline-block;
  margin-left: 6px;
  color: #a27b32;
}

#appView #handoffModuleView .handoff-detail-fold[open] summary::after {
  content: "−";
}

#appView #handoffModuleView .handoff-card-detail {
  max-height: 210px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px 11px;
  border: 1px solid var(--handoff-line-soft);
  border-radius: 8px;
  color: #465a6e;
  background: #fff;
  font-size: 10.5px;
  line-height: 1.7;
}

#appView #handoffModuleView .handoff-actions {
  gap: 6px;
  padding-top: 2px;
}

#appView #handoffModuleView .handoff-actions .btn {
  min-height: 31px;
  padding: 6px 10px;
  font-size: 10px;
}

#appView #handoffModuleView .handoff-actions .handoff-delete {
  margin-left: auto;
  border-color: rgba(180, 74, 84, .18);
  color: #a04b55;
  background: #fff7f8;
}

#appView #handoffModuleView .handoff-copy {
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid var(--handoff-line);
  border-radius: 7px;
  color: #50677a;
  background: #fff;
  font-size: 10px;
  font-weight: 650;
}

#appView #handoffModuleView .empty {
  min-height: 100px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #929daa;
  font-size: 10.5px;
}

#appView #handoffModuleView .neme-notify-list .empty {
  min-height: 64px;
  padding: 10px;
}

#appView #handoffModuleView .handoff-waiting-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(183, 138, 56, .055), transparent 40%),
    #fff;
}

@media (max-width: 1080px) {
  #appView #handoffModuleView .handoff-operation-grid,
  #appView #handoffModuleView .handoff-records-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #appView #handoffModuleView {
    gap: 15px;
  }

  #appView #handoffModuleView .module-hero {
    min-height: 0;
    padding: 22px 19px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    border-radius: 17px;
  }

  #appView #handoffModuleView .module-hero h2 {
    font-size: 29px;
  }

  #appView #handoffModuleView .handoff-hero-actions {
    width: 100%;
  }

  #appView #handoffModuleView .handoff-hero-actions .btn {
    flex: 1;
  }

  #appView #handoffModuleView .handoff-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #appView #handoffModuleView .handoff-stat {
    min-height: 84px;
    padding: 14px 13px;
  }

  #appView #handoffModuleView .handoff-stat b {
    font-size: 28px;
  }

  #appView #handoffModuleView .panel {
    padding: 17px 15px;
    border-radius: 14px;
  }

  #appView #handoffModuleView #handoffNotifyPanel .neme-notify-grid {
    grid-template-columns: 1fr;
  }

  #appView #handoffModuleView #handoffNotifyPanel .neme-notify-grid .span-2 {
    grid-column: auto;
  }

  #appView #handoffModuleView .handoff-actions {
    align-items: stretch;
  }

  #appView #handoffModuleView .handoff-actions .btn,
  #appView #handoffModuleView .handoff-copy {
    flex: 1 1 calc(50% - 6px);
  }

  #appView #handoffModuleView .handoff-actions .handoff-delete {
    margin-left: 0;
  }
}
