/*
 * dashboard.css - 管理后台布局公共样式
 * 适用于：企业端、服务商端、后台管理端
 */

/* ==================== 基础重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f7fa;
  min-height: 100vh;
}

/* ==================== 布局框架 ==================== */
.dashboard {
  display: flex;
  min-height: 100vh;
}

/* ==================== 侧边栏 ==================== */
.sidebar {
  width: 260px;
  color: white;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.sidebar-header p {
  font-size: 0.85rem;
  opacity: 0.7;
}

.sidebar-menu {
  padding: 1rem 0;
}

.menu-item {
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  color: #ecf0f1;
  text-decoration: none;
}

.menu-item:hover {
  border-left-color: currentColor;
}

.menu-item.active {
  border-left-color: currentColor;
}

.menu-item .icon {
  margin-right: 10px;
  font-size: 1.1rem;
}

.menu-group {
  margin-bottom: 1.5rem;
}

.menu-group-title {
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  color: #95a5a6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== 主内容区 ==================== */
.main-content {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
}

/* ==================== 顶部导航 ==================== */
.topbar {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 99;
}

.topbar-left h1 {
  font-size: 1.5rem;
  color: #333;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

/* ==================== 内容区域 ==================== */
.content-area {
  padding: 2rem;
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-card h4 {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.stat-card .trend {
  font-size: 0.85rem;
  color: #4caf50;
}

.stat-card .trend.down {
  color: #e74c3c;
}

/* ==================== 区块卡片 ==================== */
.section-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
  color: #333;
  font-size: 1.3rem;
}

/* ==================== 按钮 ==================== */
.btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  flex: 1;
}

.btn-outline {
  background: white;
  border: 1px solid currentColor;
}

.action-btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.logout-btn {
  padding: 0.5rem 1rem;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: #c0392b;
}

/* ==================== 表格 ==================== */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 1rem;
  text-align: left;
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #e0e0e0;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

tbody tr:hover {
  background: #f8f9fa;
}

/* ==================== 状态标签 ==================== */
.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-processing {
  background: #cfe2ff;
  color: #084298;
}

.status-completed {
  background: #d1e7dd;
  color: #0f5132;
}

.status-cancelled {
  background: #f8d7da;
  color: #842029;
}

.status-new {
  background: #fff3cd;
  color: #856404;
}

.status-following {
  background: #cfe2ff;
  color: #084298;
}

.status-assigned {
  background: #cfe2ff;
  color: #084298;
}

/* ==================== 筛选栏 ==================== */
.filter-section,
.filter-bar {
  background: white;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 200px;
  flex: 1;
}

.filter-item label {
  font-size: 0.85rem;
  color: #666;
}

.filter-item input,
.filter-item select {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9rem;
}

/* ==================== 订单卡片 ==================== */
.orders-container {
  display: grid;
  gap: 1.5rem;
}

.order-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s;
}

.order-card:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.order-number {
  font-weight: 600;
  color: #333;
}

.order-date {
  color: #666;
  font-size: 0.9rem;
}

.order-body {
  padding: 1.5rem;
}

.order-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.info-value {
  color: #333;
  font-weight: 500;
}

.order-footer {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-actions {
  display: flex;
  gap: 0.5rem;
}

/* ==================== 客户卡片 ==================== */
.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.customer-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s;
}

.customer-card:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.customer-header {
  padding: 1.5rem;
  color: white;
}

.customer-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.customer-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.2);
  border-radius: 15px;
  font-size: 0.8rem;
}

.customer-body {
  padding: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.customer-footer {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  display: flex;
  gap: 0.5rem;
}

/* ==================== 分页 ==================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination button {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.pagination button.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==================== 通知图标 ==================== */
.notification-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.3rem;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .main-content {
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-item {
    width: 100%;
  }

  .order-info {
    grid-template-columns: 1fr;
  }

  .customer-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.85rem;
  }
}

/* 咨询列表样式 */
.consultation-list {
  display: grid;
  gap: 1.5rem;
}

.consultation-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s;
}

.consultation-card:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.consultation-header {
  padding: 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.consultation-title {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.consultation-date {
  color: #666;
  font-size: 0.9rem;
}

.consultation-body {
  padding: 1.5rem;
}

.consultation-question {
  margin-bottom: 1.5rem;
}

.question-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.enterprise .question-label {
  color: #667eea;
}

.service .question-label {
  color: #42a5f5;
}

.question-content {
  color: #333;
  line-height: 1.6;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 5px;
}

.consultation-answer {
  padding: 1rem;
  background: #e8f5e9;
  border-radius: 5px;
  border-left: 3px solid #4caf50;
}

.answer-label {
  color: #4caf50;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.answer-content {
  color: #333;
  line-height: 1.6;
}

.consultation-footer {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.consultant-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.consultant-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #42a5f5;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.status-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-replied {
  background: #d1e7dd;
  color: #0f5132;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

/* 表单样式 */
.profile-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 2rem;
}

.avatar-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.large-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
}

.enterprise .large-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service .large-avatar {
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

.avatar-info {
  flex: 1;
}

.avatar-info h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.avatar-info p {
  color: #666;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
}

.enterprise .form-control:focus {
  border-color: #667eea;
}

.service .form-control:focus {
  border-color: #42a5f5;
}

.form-control:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.btn-outline {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

.btn-outline:hover {
  background: #f5f5f5;
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* 浮动按钮 */
.new-consultation-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 99;
}

.enterprise .new-consultation-btn {
  background: #667eea;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.service .new-consultation-btn {
  background: #42a5f5;
  box-shadow: 0 5px 20px rgba(66, 165, 245, 0.4);
}

.new-consultation-btn:hover {
  transform: translateY(-3px);
}

.enterprise .new-consultation-btn:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.service .new-consultation-btn:hover {
  box-shadow: 0 8px 25px rgba(66, 165, 245, 0.5);
}

/* Tab 标签页样式 */
.tabs {
  background: white;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  gap: 2rem;
}

.tab-item {
  padding: 0.8rem 0;
  cursor: pointer;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  font-weight: 500;
}

.enterprise .tab-item:hover {
  color: #667eea;
}

.service .tab-item:hover {
  color: #42a5f5;
}

.enterprise .tab-item.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.service .tab-item.active {
  color: #42a5f5;
  border-bottom-color: #42a5f5;
}

/* 任务列表样式 */
.task-list {
  display: grid;
  gap: 1.5rem;
}

.task-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s;
  border-left: 4px solid #42a5f5;
}

.task-card:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.task-card.urgent {
  border-left-color: #e74c3c;
}

.task-header {
  padding: 1.5rem;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-title {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.task-priority {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.priority-high {
  background: #fee;
  color: #e74c3c;
}

.priority-medium {
  background: #fff3cd;
  color: #856404;
}

.priority-low {
  background: #e8f5e9;
  color: #2e7d32;
}

.task-body {
  padding: 1.5rem;
}

.task-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.info-value {
  color: #333;
  font-weight: 500;
}

.task-desc {
  color: #666;
  line-height: 1.6;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.task-footer {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 课程卡片样式 */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.course-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.course-body {
  padding: 1.5rem;
}

.course-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
}

.course-info {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.course-info-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.course-desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.course-progress {
  flex: 1;
  margin-right: 1rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.enterprise .progress-fill {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.service .progress-fill {
  background: linear-gradient(90deg, #42a5f5 0%, #1e88e5 100%);
}

.progress-text {
  font-size: 0.85rem;
  color: #666;
}

/* 安全设置样式 */
.security-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.security-item {
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.security-item:last-child {
  border-bottom: none;
}

.security-info {
  flex: 1;
}

.security-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.security-desc {
  color: #666;
  font-size: 0.9rem;
}

.security-status {
  color: #4caf50;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.security-status.warning {
  color: #ff9800;
}

/* 企业资料样式 */
.company-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 2rem;
}

.card-header {
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.card-header h3 {
  color: #333;
  font-size: 1.3rem;
}

.upload-area {
  border: 2px dashed #ddd;
  border-radius: 5px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-area:hover {
  background: #f8f9fa;
}

.enterprise .upload-area:hover {
  border-color: #667eea;
}

.service .upload-area:hover {
  border-color: #42a5f5;
}

.upload-icon {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.upload-text {
  color: #666;
  font-size: 0.9rem;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* 通知消息样式 */
.notification-filters {
  background: white;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-tabs {
  display: flex;
  gap: 1.5rem;
}

.filter-tab {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
  color: #666;
}

.filter-tab:hover {
  background: #f0f0f0;
}

.enterprise .filter-tab.active {
  background: #667eea;
  color: white;
}

.service .filter-tab.active {
  background: #42a5f5;
  color: white;
}

.notification-list {
  display: grid;
  gap: 1rem;
}

.notification-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  gap: 1rem;
  transition: all 0.3s;
  cursor: pointer;
}

.notification-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.notification-item.unread {
  background: #f8f9fa;
}

.enterprise .notification-item.unread {
  border-left: 4px solid #667eea;
}

.service .notification-item.unread {
  border-left: 4px solid #42a5f5;
}

.notification-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.enterprise .notification-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.service .notification-icon {
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
  color: white;
}

.notification-content {
  flex: 1;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.notification-title {
  font-weight: 600;
  color: #333;
}

.notification-time {
  color: #999;
  font-size: 0.85rem;
}

.notification-message {
  color: #666;
  line-height: 1.6;
}

/* 登录注册页面样式 */
/* ======================================
   登录注册页面样式
   ====================================== */

/* 全局样式重置 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* 登录页面 (login.html) */
body.page-login {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.page-login .login-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  display: flex;
  min-height: 600px;
}

.page-login .login-left {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-login .login-left h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-login .login-left p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.page-login .login-right {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-login .login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-login .login-header h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.page-login .login-header p {
  color: #666;
}

.page-login .btn-login {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.page-login .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.page-login .btn-login:active {
  transform: translateY(0);
}

.page-login .register-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.page-login .register-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.page-login .register-link a:hover {
  text-decoration: underline;
}

/* 注册页面 (register.html) */
body.page-register {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.page-register .register-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  padding: 50px;
}

.page-register .register-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-register .register-header h1 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-register .register-header p {
  color: #666;
}

.page-register .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-register .verify-code-group {
  display: flex;
  gap: 0.5rem;
}

.page-register .verify-code-group input {
  flex: 1;
}

.page-register .verify-code-btn {
  padding: 0.8rem 1.5rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.page-register .verify-code-btn:hover {
  background: #5568d3;
}

.page-register .verify-code-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

.page-register .agreement-row {
  margin-bottom: 1.5rem;
}

.page-register .agreement-row label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #666;
}

.page-register .agreement-row input[type="checkbox"] {
  margin-right: 0.5rem;
}

.page-register .agreement-row a {
  color: #667eea;
  text-decoration: none;
}

.page-register .agreement-row a:hover {
  text-decoration: underline;
}

.page-register .btn-register {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.page-register .btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.page-register .btn-register:active {
  transform: translateY(0);
}

.page-register .login-link {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.page-register .login-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.page-register .login-link a:hover {
  text-decoration: underline;
}

/* 首页 (index.html) */
body.page-index {
  background: #f5f7fa;
  line-height: 1.6;
}

.page-index .header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-index .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index .header h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-index .header p {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.9;
}

.page-index .nav {
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-index .nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index .nav li {
  margin: 0;
}

.page-index .nav a {
  display: block;
  padding: 1rem 2rem;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 500;
}

.page-index .nav a:hover {
  background: #667eea;
  color: white;
}

.page-index .hero {
  background: white;
  padding: 3rem 0;
  text-align: center;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-index .hero h2 {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.page-index .hero p {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.page-index .services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.page-index .service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
  cursor: pointer;
}

.page-index .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-index .service-card h3 {
  color: #667eea;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.page-index .service-card .icon {
  font-size: 2rem;
  margin-right: 0.5rem;
}

.page-index .service-card p {
  color: #666;
  margin-bottom: 1rem;
}

.page-index .service-card ul {
  list-style: none;
  padding-left: 0;
}

.page-index .service-card li {
  padding: 0.5rem 0;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.page-index .service-card li:last-child {
  border-bottom: none;
}

.page-index .service-card li:before {
  content: "✓ ";
  color: #667eea;
  font-weight: bold;
  margin-right: 0.5rem;
}

.page-index .process {
  background: white;
  padding: 3rem 2rem;
  margin: 2rem 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-index .process h2 {
  text-align: center;
  color: #667eea;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.page-index .process-steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.page-index .process-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 1.5rem;
}

.page-index .step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.page-index .process-step h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.page-index .process-step p {
  color: #666;
}

.page-index .footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.page-index .footer p {
  margin: 0.5rem 0;
}

.page-index .footer a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
}

.page-index .footer a:hover {
  text-decoration: underline;
}

/* 注册页面的 .required 样式 */
.page-register .required {
  color: #e74c3c;
  margin-left: 3px;
}

/* 响应式设计 */
.auth-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  display: flex;
  min-height: 600px;
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-left h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.auth-left p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.8rem 0;
  font-size: 1rem;
  opacity: 0.95;
}

.feature-list li:before {
  content: "✓";
  margin-right: 10px;
  font-weight: bold;
  font-size: 1.2rem;
}

.auth-right {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #666;
}

.role-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.role-tab {
  flex: 1;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.role-tab:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.role-tab.active {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.role-tab .icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.role-tab .name {
  font-size: 0.9rem;
  font-weight: 500;
}

.input-group {
  position: relative;
}

.input-group .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.input-group .form-control {
  padding-left: 45px;
}

.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember-row label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #666;
}

.remember-row input[type="checkbox"] {
  margin-right: 0.5rem;
}

.remember-row a {
  color: #667eea;
  text-decoration: none;
}

.remember-row a:hover {
  text-decoration: underline;
}

/* 按钮样式覆盖 */
.auth-body .btn-primary {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-body .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.auth-body .btn-primary:active {
  transform: translateY(0);
}

.auth-body .btn-outline {
  padding: 0.8rem 1.5rem;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.auth-body .btn-outline:hover {
  background: #667eea;
  color: white;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

.auth-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* 错误提示 */
.error-msg {
  background: #fee;
  color: #c00;
  padding: 0.8rem;
  border-radius: 5px;
  margin-bottom: 1rem;
  display: none;
}

.error-msg.show {
  display: block;
}

@media (max-width: 768px) {
  /* 登录页面响应式 */
  .page-login .login-container {
    flex-direction: column;
  }

  .page-login .login-left {
    padding: 40px 30px;
  }

  .page-login .login-left h1 {
    font-size: 2rem;
  }

  .page-login .login-right {
    padding: 40px 30px;
  }

  .page-login .role-tabs {
    flex-direction: column;
  }

  /* 注册页面响应式 */
  .page-register .register-container {
    padding: 30px 20px;
  }

  .page-register .form-row {
    grid-template-columns: 1fr;
  }

  .page-register .role-tabs {
    flex-direction: column;
  }

  /* 首页响应式 */
  .page-index .header h1 {
    font-size: 2rem;
  }

  .page-index .nav ul {
    flex-direction: column;
  }

  .page-index .nav li {
    border-bottom: 1px solid #f0f0f0;
  }

  .page-index .nav li:last-child {
    border-bottom: none;
  }

  .page-index .services {
    grid-template-columns: 1fr;
  }

  .page-index .process-steps {
    flex-direction: column;
  }

  /* Dashboard 响应式 */
  .login-container {
    flex-direction: column;
  }

  .login-left {
    padding: 40px 30px;
  }

  .login-left h1 {
    font-size: 2rem;
  }

  .login-right {
    padding: 40px 30px;
  }

  .role-tabs {
    flex-direction: column;
  }

  .auth-container {
    flex-direction: column;
  }

  .auth-left {
    padding: 40px 30px;
  }

  .auth-left h1 {
    font-size: 2rem;
  }

  .auth-right {
    padding: 40px 30px;
  }
}
