body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: radial-gradient(circle at top left, #fdf2ff, #f4f3ff 45%, #fdf2ff);
  color: #4b5563;
}
.layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.layout-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: linear-gradient(90deg, #fef3ff, #f5f3ff, #fef3ff);
  box-shadow: 0 8px 24px rgba(148, 163, 184, 0.45);
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-dot {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: radial-gradient(circle at 10% 0, #f973c9, #a855f7);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.55);
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4c1d95;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* 用户下拉菜单容器 */
.user-menu-container {
  position: relative;
}
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.user-menu-trigger:hover {
  background: rgba(168, 85, 247, 0.1);
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #f973c9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.user-name {
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-arrow {
  color: #9ca3af;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.user-arrow.rotate {
  transform: rotate(180deg);
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  z-index: 1000;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
}
.user-menu-item:hover {
  background: #f3f4f6;
  color: #a855f7;
}
.user-menu-item svg {
  flex-shrink: 0;
  color: #9ca3af;
}
.user-menu-item:hover svg {
  color: #a855f7;
}
.layout-main {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.layout-sider {
  width: 220px;
  background: linear-gradient(180deg, #faf5ff, #fdf2ff);
  border-right: 1px solid rgba(209, 213, 219, 0.7);
  padding-top: 12px;
}
.sider-menu {
  padding: 8px 10px;
}
.sider-category {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  margin-bottom: 4px;
}
.sider-item {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  margin-bottom: 6px;
  border-radius: 12px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
}
.sider-item:hover {
  background: rgba(221, 214, 254, 0.6);
  color: #4c1d95;
}
.sider-item.active {
  background: linear-gradient(90deg, #fef2ff, #e9d5ff);
  color: #4c1d95;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(167, 139, 250, 0.45);
}
.sider-item.disabled {
  opacity: 0.5;
  color: #9ca3af !important;
}
.sider-item.disabled:hover {
  background: rgba(221, 214, 254, 0.3) !important;
  color: #9ca3af !important;
}
.layout-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  box-sizing: border-box;
}
.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 40px rgba(148, 163, 184, 0.35);
  margin-bottom: 20px;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}
.form-section {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.form-required {
  color: #ef4444;
  margin-left: 2px;
}
.form-select,
.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s;
}
.form-select:focus,
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}
.btn-primary {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-secondary {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #f9fafb;
}
.btn-link {
  border: none;
  background: transparent;
  color: #6366f1;
  font-size: 12px;
  cursor: pointer;
  padding: 0 4px;
}
.btn-link:hover {
  text-decoration: underline;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
.modal-content {
  width: 620px;
  max-width: 90%;
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 20px 20px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.55);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.empty-tip {
  padding: 40px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}
.file-input-wrapper {
  position: relative;
}
.file-input-label {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px dashed #a855f7;
  background: #faf5ff;
  color: #7c3aed;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.file-input-label:hover {
  background: #f3e8ff;
  border-color: #7c3aed;
}
.file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.file-name {
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
}
.message {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}
.message-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.message-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

