html,
body {
  height: 100%;
  margin: 0;
  font-family: "Microsoft YaHei", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0b1220;
  color: #e6edf3;
}

.page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(90deg, #0f1a33, #0b1220);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

label {
  font-size: 12px;
  opacity: 0.85;
}

input[type="datetime-local"],
select {
  background: #0f1a33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6edf3;
  padding: 6px 8px;
  border-radius: 8px;
}

/* 类型下拉多选（复选） */
.multi-select {
  position: relative;
  min-width: 180px;
  max-width: 320px;
}

.multi-select-trigger {
  width: 100%;
  text-align: left;
  background: #0f1a33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6edf3;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.multi-select-trigger:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.5);
}

.multi-select-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  width: 100%;
  max-height: 260px;
  overflow: auto;
  background: #0f1a33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  padding: 6px;
}

.multi-select-panel.show {
  display: block;
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.multi-select-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.multi-select-option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #2563eb;
}

.btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #121f3d;
  color: #e6edf3;
  padding: 7px 10px;
  border-radius: 10px;
}
.btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
.btn.primary {
  background: #1d4ed8;
  border-color: rgba(255, 255, 255, 0.12);
}

.grid {
  flex: 1;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  background: rgba(15, 26, 51, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.card-head {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
  font-weight: 700;
}

.card-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-body {
  padding: 10px 12px;
  flex: 1;
}

.card-foot {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  opacity: 0.9;
}

.hint {
  opacity: 0.8;
}

/* 下拉菜单样式 */
.sms-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #0f1a33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #e6edf3;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #0f1a33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-content.large {
  max-width: 700px;
}

.modal-content.xlarge {
  max-width: 900px;
}

.modal-content h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: #e6edf3;
}

.modal-content input[type="password"],
.modal-content textarea {
  width: 100%;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6edf3;
  padding: 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}

.modal-content textarea {
  resize: vertical;
  min-height: 60px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.modal-buttons .btn {
  min-width: 80px;
}

/* 责任人弹窗特殊样式 */
.module-section {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(11, 18, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.module-section h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #60a5fa;
}

.sms-item {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(15, 26, 51, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.sms-item:last-child {
  margin-bottom: 0;
}

.item-info {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.item-info div {
  margin-bottom: 4px;
}

.item-info strong {
  color: #94a3b8;
  font-weight: 500;
}

.item-template,
.item-mobiles {
  margin-bottom: 10px;
}

.item-template label,
.item-mobiles label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.item-template textarea,
.item-mobiles textarea {
  width: 100%;
  font-size: 13px;
}

.no-data {
  text-align: center;
  padding: 20px;
  color: #94a3b8;
  font-size: 14px;
  opacity: 0.8;
}

/* 滚动条样式 */
.modal-content::-webkit-scrollbar,
textarea::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal-content::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

