/* 广西县域智慧水务一体化综合监管系统 - PC 端样式配置 */
/* UI 色调：蓝白色调，科技风格 */

:root {
  /* 主色调 - 蓝色系 */
  --primary-blue: #1890ff;
  --primary-dark: #0050b3;
  --primary-light: #40a9ff;
  --primary-lighter: #69c0ff;
  --primary-lightest: #bae7ff;
  
  /* 辅助色 */
  --success: #52c41a;
  --warning: #faad14;
  --error: #f5222d;
  --info: #1890ff;
  
  /* 中性色 */
  --white: #ffffff;
  --gray-50: #f5f7fa;
  --gray-100: #e4e7ed;
  --gray-200: #c0c4cc;
  --gray-300: #909399;
  --gray-400: #606266;
  --gray-500: #303133;
  --gray-600: #1d1e1f;
  --black: #000000;
  
  /* 科技蓝渐变 */
  --tech-gradient: linear-gradient(135deg, #0a1a3a 0%, #1a3a6a 50%, #0a2a5a 100%);
  --tech-gradient-light: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  --tech-glow: 0 0 20px rgba(24, 144, 255, 0.3);
  
  /* 尺寸变量 */
  --sidebar-width: 200px;
  --sidebar-collapsed-width: 56px;
  --header-height: 60px;
  --border-radius: 4px;
  --border-radius-lg: 8px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(24, 144, 255, 0.2);
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-500);
  background: var(--gray-50);
}

/* 登录页面样式 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tech-gradient);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(24, 144, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(64, 169, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.login-box {
  width: 440px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 48px 40px;
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: var(--tech-gradient-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: var(--white);
  box-shadow: var(--tech-glow);
}

.login-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--gray-400);
}

.login-form .form-group {
  margin-bottom: 24px;
}

.login-form .form-label {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 500;
}

.login-form .form-input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: all 0.3s;
  background: var(--white);
}

.login-form .form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.login-form .form-select {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: 14px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s;
}

.login-form .form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.login-btn {
  width: 100%;
  height: 44px;
  background: var(--tech-gradient-light);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--tech-glow);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
}

.login-tips {
  margin-top: 20px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  font-size: 13px;
  color: var(--gray-400);
}

.login-tips p {
  margin-bottom: 8px;
}

.login-tips p:last-child {
  margin-bottom: 0;
}

/* 主布局 */
.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* 侧边导航栏 - 悬浮遮盖式，默认收起隐藏在左侧外部 */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0d2147 0%, #061530 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1001;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  transform: translateX(-100%);
  overflow: hidden;
  box-shadow: none;
}

/* 侧边栏展开状态 - 滑入显示，悬浮遮盖 */
.sidebar.expanded {
  transform: translateX(0);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
}

.sidebar.expanded .sidebar-header,
.sidebar.expanded .sidebar-menu {
  display: flex;
}

.sidebar-menu {
  flex-direction: column;
}

.sidebar.expanded .submenu {
  display: block;
}

/* 侧边栏遮罩层（悬浮遮盖式用） */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
  pointer-events: none;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 主内容区 - 始终占满全屏，不受侧边栏影响 */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gray-50);
  margin-left: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.sidebar-header {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  margin-left: 12px;
  white-space: nowrap;
  color: #ffffff;
  transition: opacity 0.3s;
}

.sidebar.collapsed .sidebar-title {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-menu {
  flex: 1;
  padding: 12px 8px;
  overflow-y: auto;
}

/* 主菜单项 */
.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 4px;
}

.menu-item:hover {
  background: rgba(24, 144, 255, 0.15);
  color: var(--white);
}

.menu-item.active {
  background: linear-gradient(90deg, rgba(24, 144, 255, 0.2) 0%, rgba(24, 144, 255, 0.05) 100%);
  color: var(--white);
  border-left: 3px solid var(--primary-blue);
  padding-left: 9px;
}

.menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.menu-text {
  margin-left: 12px;
  white-space: nowrap;
  font-size: 14px;
  transition: opacity 0.3s;
}

.sidebar.collapsed .menu-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.menu-badge {
  margin-left: auto;
  background: #f5222d;
  color: var(--white);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 8px;
  transition: opacity 0.3s;
}

.sidebar.collapsed .menu-badge {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* 子菜单 */
.submenu {
  padding-left: 8px;
  margin-top: 4px;
  display: none;
}

.menu-item.active + .submenu,
.submenu.open {
  display: block;
}

.submenu .menu-item {
  padding: 10px 12px 10px 44px;
  font-size: 13px;
  border-left: none;
  background: transparent;
}

.submenu .menu-item:hover {
  background: rgba(24, 144, 255, 0.1);
}

.submenu .menu-item.active {
  background: rgba(24, 144, 255, 0.15);
  color: #69c0ff;
}

.sidebar.collapsed .submenu {
  display: none;
}


/* 顶部导航栏 */
.header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 汉堡菜单按钮 */
.hamburger-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--gray-500);
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-btn:hover {
  background: var(--gray-50);
  color: var(--primary-blue);
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-600);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-50);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-400);
  transition: all 0.3s;
}

.header-btn:hover {
  background: var(--primary-lightest);
  color: var(--primary-blue);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  transition: all 0.3s;
}

.user-info:hover {
  background: var(--gray-50);
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--tech-gradient-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

.user-name {
  font-size: 14px;
  color: var(--gray-500);
}

.user-dropdown {
  position: absolute;
  top: calc(var(--header-height) + 10px);
  right: 24px;
  width: 160px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 1002;
  display: none;
}

.user-dropdown.show {
  display: block;
}

.dropdown-item {
  padding: 12px 16px;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary-blue);
}

.dropdown-item.danger {
  color: var(--error);
}

.dropdown-item.danger:hover {
  background: #fff1f0;
}

/* 内容区 */
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* 卡片样式 */
.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 20px;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tech-gradient-light);
}

.stat-card.warning::before {
  background: linear-gradient(135deg, #faad14 0%, #ffd666 100%);
}

.stat-card.success::before {
  background: linear-gradient(135deg, #52c41a 0%, #95de64 100%);
}

.stat-card.error::before {
  background: linear-gradient(135deg, #f5222d 0%, #ff7875 100%);
}

.stat-label {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.stat-unit {
  font-size: 14px;
  color: var(--gray-400);
  margin-left: 4px;
}

.stat-trend {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-trend.up {
  color: var(--error);
}

.stat-trend.down {
  color: var(--success);
}

/* 表格样式 */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.data-table th {
  background: var(--gray-50);
  font-weight: 500;
  color: var(--gray-500);
  font-size: 13px;
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.data-table .status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.data-table .status.success {
  background: #f6ffed;
  color: var(--success);
}

.data-table .status.warning {
  background: #fffbe6;
  color: var(--warning);
}

.data-table .status.error {
  background: #fff1f0;
  color: var(--error);
}

.data-table .status.info {
  background: #e6f7ff;
  color: var(--primary-blue);
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--tech-gradient-light);
  color: var(--white);
  box-shadow: var(--tech-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 144, 255, 0.4);
}

.btn-default {
  background: var(--white);
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}

.btn-default:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-warning {
  background: var(--warning);
  color: var(--white);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-sm {
  padding: 4px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 400px;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-600);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* 消息提示 */
.message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.message.success {
  background: #f6ffed;
  color: var(--success);
  border: 1px solid #b7eb8f;
}

.message.error {
  background: #fff1f0;
  color: var(--error);
  border: 1px solid #ffa39e;
}

.message.warning {
  background: #fffbe6;
  color: var(--warning);
  border: 1px solid #ffe58f;
}

.message.info {
  background: #e6f7ff;
  color: var(--primary-blue);
  border: 1px solid #91d5ff;
}

/* 预警弹窗 */
.alert-modal {
  min-width: 500px;
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.alert-header.error {
  background: linear-gradient(135deg, #f5222d 0%, #ff7875 100%);
  color: var(--white);
}

.alert-header.warning {
  background: linear-gradient(135deg, #faad14 0%, #ffd666 100%);
  color: var(--white);
}

.alert-header.info {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  color: var(--white);
}

.alert-icon {
  font-size: 32px;
}

.alert-title {
  font-size: 18px;
  font-weight: 600;
}

.alert-body {
  padding: 20px;
}

.alert-info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.alert-info-item:last-child {
  border-bottom: none;
}

.alert-info-label {
  color: var(--gray-400);
}

.alert-info-value {
  color: var(--gray-600);
  font-weight: 500;
}

/* 图表容器 */
.chart-container {
  height: 300px;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

/* 地图容器 */
.map-container {
  height: calc(100vh - var(--header-height) - 48px);
  background: #1a1a2e;
  position: relative;
  overflow: hidden;
}

.map-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.map-placeholder-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* 图层控制 */
.layer-control {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  z-index: 100;
}

.layer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all 0.3s;
}

.layer-item:hover {
  background: var(--gray-50);
}

.layer-item.active {
  background: var(--primary-lightest);
  color: var(--primary-blue);
}

/* 工具栏 */
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 0 12px;
  background: var(--white);
}

.search-box input {
  border: none;
  outline: none;
  padding: 8px 0;
  width: 200px;
  font-size: 14px;
}

.search-box button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 16px;
  padding: 4px;
}

.search-box button:hover {
  color: var(--primary-blue);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination-item {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.pagination-item:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.pagination-item.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
}

.pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: var(--gray-100);
  color: var(--gray-500);
}

.tag.primary {
  background: #e6f7ff;
  color: var(--primary-blue);
}

.tag.success {
  background: #f6ffed;
  color: var(--success);
}

.tag.warning {
  background: #fffbe6;
  color: var(--warning);
}

.tag.error {
  background: #fff1f0;
  color: var(--error);
}

/* 进度条 */
.progress {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--tech-gradient-light);
  border-radius: 4px;
  transition: width 0.3s;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 16px;
  margin-bottom: 8px;
}

.empty-state-subtext {
  font-size: 14px;
  opacity: 0.7;
}

/* 响应式适配 */
@media screen and (max-width: 1400px) and (min-width: 1081px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 竖屏 1080*1920 分辨率下保持 4 列 */
@media screen and (max-width: 1080px) and (orientation: portrait) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stat-card {
    padding: 12px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .stat-trend {
    font-size: 11px;
  }
}

@media screen and (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 200;
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* 横屏适配 */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .login-box {
    width: 360px;
    padding: 32px 24px;
  }
  
  .login-header {
    margin-bottom: 24px;
  }
  
  .login-form .form-group {
    margin-bottom: 16px;
  }
  
  .card-body {
    padding: 16px;
  }
}

/* 竖屏适配 9:16 1080*1920 */
@media screen and (orientation: portrait) {
  .main-container {
    max-width: 100%;
  }
}

/* 大屏特殊样式 */
.dashboard-container {
  background: var(--tech-gradient);
  min-height: 100vh;
  color: var(--white);
}

.dashboard-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(24, 144, 255, 0.3);
}

.dashboard-title {
  font-size: 32px;
  font-weight: 600;
  background: var(--tech-gradient-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  height: calc(100vh - 80px);
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(24, 144, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.dashboard-card.main {
  grid-column: span 2;
  grid-row: span 2;
}

.dashboard-card-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.dashboard-stat {
  font-size: 36px;
  font-weight: 600;
  background: var(--tech-gradient-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 工单样式 */
.work-order-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  background: var(--white);
  transition: all 0.3s;
}

.work-order-card:hover {
  box-shadow: var(--shadow-md);
}

.work-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.work-order-id {
  font-size: 14px;
  color: var(--gray-400);
}

.work-order-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.work-order-status.pending {
  background: #fffbe6;
  color: var(--warning);
}

.work-order-status.processing {
  background: #e6f7ff;
  color: var(--primary-blue);
}

.work-order-status.completed {
  background: #f6ffed;
  color: var(--success);
}

.work-order-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.work-order-info {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--gray-400);
}

.work-order-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-blue);
  border: 2px solid var(--white);
}

.timeline-item.completed::before {
  background: var(--success);
}

.timeline-time {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.timeline-content {
  font-size: 14px;
  color: var(--gray-500);
}

/* 表单样式 */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-col {
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: all 0.3s;
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-help {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* 选项卡 */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.tab-item {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  color: var(--gray-400);
}

.tab-item:hover {
  color: var(--primary-blue);
}

.tab-item.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

/* 通知列表 */
.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: all 0.3s;
}

.notification-item:hover {
  background: var(--gray-50);
}

.notification-item.unread {
  background: #e6f7ff;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.error {
  background: #fff1f0;
  color: var(--error);
}

.notification-icon.warning {
  background: #fffbe6;
  color: var(--warning);
}

.notification-icon.info {
  background: #e6f7ff;
  color: var(--primary-blue);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.notification-desc {
  font-size: 13px;
  color: var(--gray-400);
}

.notification-time {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}
