/* ===== 全局公共样式 ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  background-color: #f5f7fa;
  color: #555;
  line-height: 1.6;
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(180deg, #001529 0%, #002140 100%);
  color: #fff;
  z-index: 1000;
  overflow-y: auto;
  transition: width 0.3s;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.sidebar-logo {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 10px;
}

.sidebar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.sidebar-menu {
  padding: 12px 0;
}

.menu-section {
  padding: 8px 20px 4px;
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  font-weight: 600;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  margin: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  gap: 10px;
  font-size: 14px;
}

.menu-item i {
  width: 18px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}

.menu-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.menu-item.active {
  background: #1677ff;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,119,255,0.35);
}

/* 顶部导航 */
.topbar {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 999;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-left .breadcrumb {
  color: #888;
  font-size: 13px;
}

.topbar-left .breadcrumb span {
  color: #222;
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-right .notification-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f5f7fa;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

.topbar-right .notification-btn:hover {
  background: #e8e8e8;
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #f5222d;
  border-radius: 50%;
  border: 2px solid #fff;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.topbar-user:hover {
  background: #f5f7fa;
}

.topbar-user .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.topbar-user .user-name {
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

/* 用户下拉菜单 */
.topbar-right {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid #e8e8e8;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown .dropdown-header {
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-dropdown .dropdown-header .dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  flex-shrink: 0;
}

.user-dropdown .dropdown-header .dropdown-user-info {
  flex: 1;
  min-width: 0;
}

.user-dropdown .dropdown-header .dropdown-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.user-dropdown .dropdown-header .dropdown-user-role {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.user-dropdown .dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0;
}

.user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}

.user-dropdown .dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: #888;
}

.user-dropdown .dropdown-item:hover {
  background: #f5f7fa;
  color: #222;
}

.user-dropdown .dropdown-item:hover i {
  color: #1677ff;
}

.user-dropdown .dropdown-item-danger {
  color: #f5222d;
}

.user-dropdown .dropdown-item-danger i {
  color: #f5222d;
}

.user-dropdown .dropdown-item-danger:hover {
  background: #fff1f0;
  color: #f5222d;
}

.user-dropdown .dropdown-item-danger:hover i {
  color: #f5222d;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 主内容区 */
.main-content {
  margin-left: 240px;
  margin-top: 60px;
  padding: 24px;
  min-height: calc(100vh - 60px);
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 22px;
  color: #222;
  font-weight: 600;
  margin-bottom: 4px;
}

.page-header p {
  color: #888;
  font-size: 14px;
}

/* 统计卡片 */
.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-card .stat-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #222;
}

.stat-card .stat-change {
  font-size: 12px;
  margin-top: 4px;
}

.stat-change.up { color: #f5222d; }
.stat-change.down { color: #52c41a; }

/* 卡片容器 */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 15px;
  color: #222;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

/* 查询区 */
.filter-bar {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-bar .filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-bar label {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
}

.filter-bar input,
.filter-bar select {
  height: 34px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  min-width: 150px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22,119,255,0.1);
}

/* 工具栏 */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar-left {
  display: flex;
  gap: 8px;
}

.toolbar-right {
  display: flex;
  gap: 8px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: #1677ff;
  color: #fff;
  border-color: #1677ff;
}

.btn-primary:hover {
  background: #4096ff;
  border-color: #4096ff;
}

.btn-success {
  background: #52c41a;
  color: #fff;
  border-color: #52c41a;
}

.btn-success:hover {
  background: #73d13d;
  border-color: #73d13d;
}

.btn-danger {
  background: #f5222d;
  color: #fff;
  border-color: #f5222d;
}

.btn-danger:hover {
  background: #ff4d4f;
  border-color: #ff4d4f;
}

.btn-warning {
  background: #faad14;
  color: #fff;
  border-color: #faad14;
}

.btn-warning:hover {
  background: #ffc53d;
  border-color: #ffc53d;
}

.btn-outline {
  background: #fff;
  color: #555;
  border-color: #e8e8e8;
}

.btn-outline:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.btn-text {
  background: none;
  color: #1677ff;
  border: none;
  padding: 0 8px;
  height: auto;
}

.btn-text:hover {
  color: #4096ff;
}

.btn-text.danger {
  color: #f5222d;
}

.btn-text.danger:hover {
  color: #ff4d4f;
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

/* 表格 */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table thead th {
  background: #fafafa;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #f0f0f0;
  white-space: nowrap;
}

table tbody td {
  padding: 12px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

table tbody tr:hover {
  background: #fafafa;
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* 状态标签 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  height: 24px;
}

.badge-blue {
  background: #e6f4ff;
  color: #1677ff;
}

.badge-green {
  background: #f6ffed;
  color: #52c41a;
}

.badge-orange {
  background: #fff7e6;
  color: #fa8c16;
}

.badge-red {
  background: #fff1f0;
  color: #f5222d;
}

.badge-gray {
  background: #f5f5f5;
  color: #999;
}

.badge-purple {
  background: #f9f0ff;
  color: #722ed1;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
}

.pagination-info {
  font-size: 13px;
  color: #888;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-controls .page-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  background: #fff;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}

.pagination-controls .page-btn:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.pagination-controls .page-btn.active {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

.pagination-controls .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-lg {
  max-width: 720px;
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 16px;
  color: #222;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: none;
  color: #888;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #222;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* 表单 */
.form-group {
  margin-bottom: 16px;
}

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

.form-group label .required {
  color: #f5222d;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  height: 38px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22,119,255,0.1);
}

textarea.form-control {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  min-height: 80px;
}

.form-group .help-text {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Toggle 开关 */
.toggle {
  position: relative;
  width: 44px;
  height: 22px;
  background: #e8e8e8;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.toggle.on {
  background: #1677ff;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle.on::after {
  transform: translateX(22px);
}

/* 抽屉 */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: none;
}

.drawer-overlay.show {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.08);
  z-index: 2001;
  transition: right 0.3s;
  display: flex;
  flex-direction: column;
}

.drawer.show {
  right: 0;
}

.drawer-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.drawer-header h3 {
  font-size: 16px;
  color: #222;
  font-weight: 600;
}

.drawer-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 3000;
  display: none;
  animation: toastIn 0.3s ease-out;
}

.toast.show {
  display: block;
}

.toast-success { background: #52c41a; }
.toast-error { background: #f5222d; }
.toast-warning { background: #faad14; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #999;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 12px;
  color: #d9d9d9;
}

.empty-state p {
  font-size: 14px;
}

/* 登录页面 - 独立布局（无侧边栏） */
.login-page {
  min-height: 100vh;
  display: flex;
  background: #f5f7fa;
}

.login-left {
  flex: 1;
  background: linear-gradient(135deg, #001529 0%, #003a70 50%, #1677ff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  top: -100px;
  right: -100px;
}

.login-left::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  bottom: -50px;
  left: -50px;
}

.login-left .brand {
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-left .brand h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-left .brand p {
  font-size: 16px;
  opacity: 0.7;
}

.login-right {
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-card .login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-card .login-logo .logo-circle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 28px;
  color: #fff;
}

.login-card .login-logo h2 {
  font-size: 20px;
  color: #222;
  font-weight: 600;
}

.login-card .login-logo p {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

/* 提示条 */
.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.alert i {
  margin-top: 1px;
  flex-shrink: 0;
}

.alert-warning {
  background: #fff7e6;
  border: 1px solid #ffd591;
  color: #d46b08;
}

.alert-info {
  background: #e6f4ff;
  border: 1px solid #91caff;
  color: #1677ff;
}

.alert-success {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #389e0d;
}

.alert-error {
  background: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
}

/* 详情行 */
.detail-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  width: 120px;
  flex-shrink: 0;
  font-size: 13px;
  color: #888;
}

.detail-value {
  flex: 1;
  font-size: 13px;
  color: #333;
}

/* 颜色工具 */
.text-primary { color: #1677ff; }
.text-success { color: #52c41a; }
.text-warning { color: #faad14; }
.text-danger { color: #f5222d; }
.text-muted { color: #888; }

.bg-primary-light { background: #e6f4ff; }
.bg-success-light { background: #f6ffed; }
.bg-warning-light { background: #fff7e6; }
.bg-danger-light { background: #fff1f0; }

/* 上传区 */
.upload-zone {
  border: 2px dashed #e8e8e8;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-zone:hover {
  border-color: #1677ff;
  background: #fafafa;
}

.upload-zone i {
  font-size: 32px;
  color: #d9d9d9;
  margin-bottom: 8px;
}

.upload-zone p {
  font-size: 13px;
  color: #888;
}

/* steps */
.steps {
  display: flex;
  margin-bottom: 24px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.step.active .step-number {
  background: #1677ff;
  color: #fff;
}

.step.completed .step-number {
  background: #52c41a;
  color: #fff;
}

.step .step-label {
  font-size: 12px;
  color: #888;
}

.step.active .step-label {
  color: #1677ff;
  font-weight: 500;
}

.step::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #f0f0f0;
  z-index: 0;
}

.step:last-child::after {
  display: none;
}

.step.completed::after {
  background: #52c41a;
}

/* 学生端布局 */
.portal-page {
  min-height: 100vh;
  background: #f5f7fa;
}

.portal-topbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-topbar .brand .brand-icon {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.portal-topbar .brand span {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.portal-content {
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 响应式 */
/* ===== 需求说明按钮 ===== */
.requirement-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 119, 255, 0.85);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(22, 119, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.requirement-btn:hover {
  background: rgba(22, 119, 255, 1);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(22, 119, 255, 0.5);
}
.requirement-btn .btn-tooltip {
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.requirement-btn:hover .btn-tooltip {
  opacity: 1;
}

/* 需求卡片面板 */
.requirement-panel {
  position: fixed;
  bottom: 78px;
  left: 24px;
  z-index: 9998;
  width: 360px;
  max-height: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid #e8e8e8;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: panelIn 0.25s ease-out;
}
.requirement-panel.open {
  display: flex;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.requirement-panel .panel-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, #1677ff, #4096ff);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.requirement-panel .panel-header i {
  font-size: 16px;
}
.requirement-panel .panel-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  font-size: 13px;
  line-height: 1.8;
  color: #444;
  white-space: pre-wrap;
}
.requirement-panel .panel-body::-webkit-scrollbar {
  width: 4px;
}
.requirement-panel .panel-body::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar .logo-text,
  .sidebar .menu-item span,
  .sidebar .menu-section { display: none; }
  .menu-item { justify-content: center; padding: 10px; }
  .topbar { left: 60px; }
  .main-content { margin-left: 60px; padding: 16px; }
  .login-right { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}
