* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

@media (max-width: 768px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .login-container {
    align-items: flex-start;
    overflow: auto;
  }

  .industrial-card {
    margin: 20px 0;
    flex-direction: column;
    max-width: 520px;
    min-height: auto;
  }

  .brand-section {
    display: none;
  }

  .login-section {
    padding: 24px 18px;
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(51, 126, 198, 0.6) rgba(0, 0, 0, 0.06);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(51, 126, 198, 0.6);
  border-radius: 10px;
  border: 3px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(51, 126, 198, 0.85);
  border: 3px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

/* 定义工业主题颜色 */
:root {
  --industrial-blue: #0056a6; /* 主工业蓝 */
  --industrial-blue-dark: #003d7a; /* 深工业蓝 */
  --industrial-blue-light: #337ec6; /* 浅工业蓝 */
  --industrial-blue-bg: #e8f1f9; /* 工业蓝背景 */
  --industrial-blue-hover: #004c99; /* 悬停工业蓝 */
  --industrial-steel: #5a6c7d; /* 钢铁灰 */
  --industrial-yellow: #ffcc00; /* 工业黄 */
  --industrial-red: #d32f2f; /* 工业红 */
}

/* 全局表格蓝色主题（用于非iframe页面，例如首页dashboard） */
table {
  width: 100%;
  border-collapse: collapse;
  color: #1f2937;
}

.table-container {
  border: 1px solid #c2d9f0;
  border-radius: 10px;
  background: #fff;
}

.table-container table,
table.data-table,
table.values-table,
table.rules-table,
table.sub-table {
  width: 100%;
  border-collapse: collapse;
  color: #1f2937;
}

table thead th,
.table-container thead th,
table.data-table thead th,
table.values-table thead th,
table.rules-table thead th,
table.sub-table thead th {
  background: #e6f0ff;
  color: #0066cc;
  font-weight: 600;
  border-bottom: 2px solid #c2d9f0;
}

.table-container th,
.table-container td,
table.data-table th,
table.data-table td,
table.values-table th,
table.values-table td,
table.rules-table th,
table.rules-table td,
table.sub-table th,
table.sub-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e0e8f0;
  vertical-align: middle;
}

table tbody tr:nth-child(even) {
  background-color: #f5f9ff;
}

table tbody tr:hover {
  background-color: #e6f0ff;
}

.table-container a,
table a {
  color: #0066cc;
}

.status-badge {
  border: 1px solid rgba(214, 230, 255, 0.9);
}

.el-table {
  border: 1px solid #c2d9f0;
  border-radius: 10px;
  overflow: hidden;
}

.el-table th.el-table__cell {
  background: #e6f0ff;
  color: #0066cc;
}

.el-table td.el-table__cell {
  border-bottom-color: #e0e8f0;
}

.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
  background-color: #e6f0ff;
}

/* 新增：主题样式变量定义 */
.theme-blue {
  --industrial-blue: #0056a6;
  --industrial-blue-dark: #003d7a;
  --industrial-blue-light: #337ec6;
  --industrial-blue-bg: #e8f1f9;
  --industrial-blue-hover: #004c99;
  --industrial-steel: #5a6c7d;
  --industrial-yellow: #ffcc00;
  --industrial-red: #d32f2f;
}

.theme-red {
  --industrial-blue: #c62828;
  --industrial-blue-dark: #8e0000;
  --industrial-blue-light: #ff5f52;
  --industrial-blue-bg: #ffebee;
  --industrial-blue-hover: #b71c1c;
  --industrial-steel: #5d4037;
  --industrial-yellow: #ff9800;
  --industrial-red: #d32f2f;
}

.theme-green {
  --industrial-blue: #2e7d32;
  --industrial-blue-dark: #1b5e20;
  --industrial-blue-light: #4caf50;
  --industrial-blue-bg: #e8f5e9;
  --industrial-blue-hover: #1b5e20;
  --industrial-steel: #546e7a;
  --industrial-yellow: #ffc107;
  --industrial-red: #f44336;
}

.theme-gray {
  --industrial-blue: #455a64;
  --industrial-blue-dark: #37474f;
  --industrial-blue-light: #78909c;
  --industrial-blue-bg: #f5f7fa;
  --industrial-blue-hover: #37474f;
  --industrial-steel: #607d8b;
  --industrial-yellow: #ffb74d;
  --industrial-red: #e57373;
}

/* 新增：主题选择弹窗样式 */
.theme-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.theme-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.theme-box {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.theme-header {
  background: linear-gradient(
    to right,
    var(--industrial-blue),
    var(--industrial-blue-light)
  );
  color: white;
  padding: 20px;
  text-align: center;
}

.theme-header h3 {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-body {
  padding: 25px;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

@media (max-width: 480px) {
  .theme-options {
    grid-template-columns: 1fr;
  }
}

.theme-option {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.theme-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.theme-option.active {
  border-color: var(--industrial-blue);
  background-color: var(--industrial-blue-bg);
}

.theme-preview {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.theme-blue .theme-preview {
  background: linear-gradient(135deg, #0056a6, #337ec6);
}

.theme-red .theme-preview {
  background: linear-gradient(135deg, #c62828, #ff5f52);
}

.theme-green .theme-preview {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
}

.theme-gray .theme-preview {
  background: linear-gradient(135deg, #455a64, #78909c);
}

.theme-info {
  flex: 1;
}

.theme-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.theme-desc {
  font-size: 13px;
  color: #666;
}

.theme-footer {
  padding: 15px 25px;
  text-align: right;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.theme-btn {
  background: linear-gradient(
    to right,
    var(--industrial-blue),
    var(--industrial-blue-light)
  );
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.theme-btn:hover {
  background: linear-gradient(
    to right,
    var(--industrial-blue-dark),
    var(--industrial-blue)
  );
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 86, 166, 0.2);
}

.theme-btn.secondary {
  background: #f0f0f0;
  color: #333;
}

.theme-btn.secondary:hover {
  background: #e0e0e0;
}

/* 消息弹窗样式 */
.message-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.message-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.message-box {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

.message-header {
  background: linear-gradient(
    to right,
    var(--industrial-blue),
    var(--industrial-blue-light)
  );
  color: white;
  padding: 20px;
  text-align: center;
  flex-shrink: 0;
}

.message-header h3 {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-header i {
  margin-right: 10px;
  font-size: 22px;
}

.message-body {
  padding: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.message-footer {
  padding: 15px 25px;
  text-align: right;
  border-top: 1px solid #eee;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-btn {
  background: linear-gradient(
    to right,
    var(--industrial-blue),
    var(--industrial-blue-light)
  );
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.message-btn:hover {
  background: linear-gradient(
    to right,
    var(--industrial-blue-dark),
    var(--industrial-blue)
  );
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 86, 166, 0.2);
}

.message-btn.secondary {
  background: #f0f0f0;
  color: #333;
}

.message-btn.secondary:hover {
  background: #e0e0e0;
}

/* 消息列表样式 */
.message-list {
  list-style: none;
}

.message-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
  cursor: pointer;
}

.message-item:hover {
  background-color: #f9f9f9;
}

.message-item.unread {
  background-color: var(--industrial-blue-bg);
}

.message-item.unread:hover {
  background-color: #e0e9f4;
}

.message-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.message-icon.info {
  background-color: #e8f4fd;
  color: var(--industrial-blue);
}

.message-icon.warning {
  background-color: #fff4e6;
  color: #ff9900;
}

.message-icon.success {
  background-color: #e6f7ee;
  color: #00a854;
}

.message-icon.error {
  background-color: #ffeaea;
  color: #f5222d;
}

.message-content {
  flex-grow: 1;
  min-width: 0;
}

.message-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  font-size: 15px;
}

.message-preview {
  color: #666;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 15px;
  flex-shrink: 0;
}

.message-time {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.message-badge {
  background-color: var(--industrial-blue);
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}

.message-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.message-empty i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #ddd;
}

/* 登录页面样式 - 全新设计 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(20, 30, 48, 0.85)),
    url("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80")
      no-repeat center center;
  background-size: cover;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* 中车元素背景叠加 */
.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
        /* 高铁元素 */
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,50 Q30,30 50,50 T90,50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>'),
    /* 风电元素 */
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 L50,40 M50,40 L30,60 M50,40 L70,60" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>'),
    /* 紧固件网格 */ linear-gradient(rgba(0, 86, 166, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 86, 166, 0.1) 1px, transparent 1px);
  background-size:
    200px 200px,
    150px 150px,
    40px 40px,
    40px 40px;
  pointer-events: none;
  opacity: 0.4;
}

/* 工业主题卡片 */
.industrial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 30px rgba(0, 86, 166, 0.2);
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  overflow: hidden;
  animation: slideIn 0.8s ease-out;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  border: 1px solid rgba(0, 86, 166, 0.1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 左侧品牌展示区 */
.brand-section {
  flex: 1;
  background: linear-gradient(
    135deg,
    var(--industrial-blue),
    var(--industrial-blue-dark)
  );
  color: white;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.brand-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.brand-logo {
  text-align: center;
  margin-bottom: 40px;
}

.brand-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.brand-icon::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

.brand-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-subtitle {
  font-size: 16px;
  opacity: 0.9;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.brand-features {
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s;
  border-left: 4px solid var(--industrial-yellow);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--industrial-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #333;
  font-size: 18px;
}

.feature-text {
  flex: 1;
}

.feature-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 600;
}

.feature-text p {
  font-size: 13px;
  opacity: 0.9;
}

.copyright {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}

/* 右侧登录表单区 */
.login-section {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h2 {
  color: var(--industrial-blue);
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 700;
}

.login-header p {
  color: #666;
  font-size: 15px;
}

.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  background: #f9f9f9;
}

.form-group input:focus {
  border-color: var(--industrial-blue);
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 86, 166, 0.2);
}

.form-group input.error {
  border-color: var(--industrial-red);
}

.input-icon {
  position: absolute;
  right: 20px;
  top: 42px;
  color: #999;
  font-size: 18px;
}

.password-toggle {
  position: absolute;
  right: 20px;
  top: 42px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.password-toggle:hover {
  color: var(--industrial-blue);
}

/* 验证码样式 */
.captcha-group {
  margin-bottom: 25px;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  background: #f9f9f9;
}

.captcha-input:focus {
  border-color: var(--industrial-blue);
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 86, 166, 0.2);
}

.captcha-input.error {
  border-color: var(--industrial-red);
}

.captcha-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--industrial-blue),
    var(--industrial-blue-light)
  );
  color: white;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  user-select: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.captcha-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 86, 166, 0.3);
}

.captcha-image:active {
  transform: translateY(0);
}

.captcha-refresh {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 4px;
  color: white;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.captcha-refresh:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.captcha-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.1) 10px,
      rgba(255, 255, 255, 0.1) 20px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.05) 10px,
      rgba(255, 255, 255, 0.05) 20px
    );
  pointer-events: none;
}

/* 验证码干扰线 */
.captcha-line {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.3);
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: var(--industrial-blue);
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-password:hover {
  color: var(--industrial-blue-dark);
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(
    135deg,
    var(--industrial-blue),
    var(--industrial-blue-light)
  );
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.login-btn:hover {
  background: linear-gradient(
    135deg,
    var(--industrial-blue-dark),
    var(--industrial-blue)
  );
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 86, 166, 0.3);
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:active {
  transform: translateY(0);
}

.divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #777;
  font-size: 14px;
  position: relative;
}

.other-login {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.other-login-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.other-login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--industrial-blue);
  color: var(--industrial-blue);
}

.system-version {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #999;
}

/* 中车元素展示 */
.crrc-elements {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.element-item {
  text-align: center;
  position: relative;
}

.element-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--industrial-yellow);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.element-item:hover .element-icon {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.element-label {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 动态紧固件装饰 */
.fastener-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.fastener-item {
  position: absolute;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.1);
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(20px, 0) rotate(180deg);
  }
  75% {
    transform: translate(10px, 20px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* 错误提示 */
.error-message {
  color: var(--industrial-red);
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 主系统界面样式 */
.main-container {
  display: none;
  height: 100vh;
  overflow: hidden;
}

.header {
  background: linear-gradient(
    to right,
    var(--industrial-blue),
    var(--industrial-blue-light)
  );
  color: white;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 12px;
  font-size: 24px;
}

.system-subtitle {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
  margin-left: 10px;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-icons {
  display: flex;
  align-items: center;
  margin-right: 25px;
}

.notification-icon {
  position: relative;
  margin-right: 20px;
  cursor: pointer;
  font-size: 20px;
  color: white;
  transition: transform 0.2s;
}

.notification-icon:hover {
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ffcc00;
  color: #333;
  font-size: 12px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-menu-container {
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.user-info:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #fff;
  color: var(--industrial-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-name {
  font-weight: 600;
  font-size: 15px;
}

.user-department {
  font-size: 12px;
  opacity: 0.9;
  margin-top: 2px;
}

.user-menu {
  position: absolute;
  top: 55px;
  right: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
  display: none;
  border: 1px solid #eee;
}

.user-menu.active {
  display: block;
}

.user-menu-header {
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.user-menu-header .user-avatar {
  margin: 0 auto 10px;
  width: 50px;
  height: 50px;
  font-size: 18px;
}

.user-menu-header .user-name {
  color: #333;
  font-size: 16px;
  margin-bottom: 5px;
}

.user-menu-header .user-department {
  color: #666;
  font-size: 13px;
}

.user-menu-items {
  list-style: none;
}

.user-menu-item {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  color: #555;
  text-decoration: none;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}

.user-menu-item:hover {
  background-color: var(--industrial-blue-bg);
  color: var(--industrial-blue);
}

.user-menu-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: #777;
}

.user-menu-item:hover i {
  color: var(--industrial-blue);
}

.user-menu-divider {
  height: 1px;
  background-color: #eee;
  margin: 5px 0;
}

.main-content {
  display: flex;
  height: calc(100vh - 65px);
}

.sidebar {
  width: 260px;
  background-color: #fff;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  transition: width 0.3s;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.sidebar.collapsed {
  width: 60px;
}

/* 新增：侧边栏标签区域 */
.sidebar-header {
  padding: 20px 15px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  transition: all 0.3s;
}

.sidebar.collapsed .sidebar-header {
  padding: 20px 10px;
  justify-content: center;
}

.current-module {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.sidebar.collapsed .current-module {
  display: none;
}

.current-module-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.current-module-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--industrial-blue);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-module-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--industrial-blue-bg);
  color: var(--industrial-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sidebar.collapsed .current-module-icon {
  margin: 0 auto;
}

.sidebar.collapsed .current-module-name {
  display: none;
}

.sidebar.collapsed .current-module-label {
  display: none;
}

.sidebar-menu {
  padding: 15px 0;
}

.menu-item {
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #444;
  transition: all 0.2s;
  border-left: 4px solid transparent;
  margin-bottom: 2px;
  position: relative;
}

.sidebar.collapsed .menu-item {
  justify-content: center;
  padding: 14px 0;
}

.menu-item:hover {
  background-color: var(--industrial-blue-bg);
  color: var(--industrial-blue);
}

.menu-item.active {
  background-color: var(--industrial-blue-bg);
  color: var(--industrial-blue);
  border-left: 4px solid var(--industrial-blue);
  font-weight: 600;
}

.menu-item i:first-child {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.sidebar.collapsed .menu-item i:first-child {
  margin-right: 0;
}

.menu-item span {
  white-space: nowrap;
  overflow: hidden;
  flex-grow: 1;
  transition: opacity 0.3s;
}

.sidebar.collapsed .menu-item span {
  opacity: 0;
  width: 0;
  margin: 0;
  display: none;
}

.menu-item .chevron-icon {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s;
}

.sidebar.collapsed .menu-item .chevron-icon {
  display: none;
}

.menu-item.active .chevron-icon {
  transform: rotate(180deg);
}

.submenu {
  background-color: #f9f9f9;
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.submenu.active {
  display: block;
  max-height: 500px;
}

.submenu-item {
  padding: 10px 20px 10px 52px;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
}

.submenu-item:hover {
  background-color: var(--industrial-blue-bg);
  color: var(--industrial-blue);
}

.submenu-item.active {
  background-color: var(--industrial-blue-bg);
  color: var(--industrial-blue);
  font-weight: 500;
}

.submenu-item.active::before {
  content: "";
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--industrial-blue);
  border-radius: 50%;
}

/* 新增：子菜单图标 */
.submenu-item i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: #777;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
  margin-right: 15px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.content-area {
  flex: 1;
  padding: 0;
  overflow-y: hidden;
  background-color: var(--industrial-blue-bg);
  display: flex;
  flex-direction: column;
}

/* 新增：标签页容器 */
.tab-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: white;
}

/* 新增：标签页导航 */
.tab-nav {
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 15px;
  display: flex;
  align-items: center;
  height: 45px;
  flex-shrink: 0;
}

.tab-list {
  display: flex;
  list-style: none;
  height: 100%;
  overflow-x: auto;
  flex: 1;
}

.tab-list::-webkit-scrollbar {
  height: 10px;
}

.tab-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

.tab-list::-webkit-scrollbar-thumb {
  background: rgba(51, 126, 198, 0.6);
  border-radius: 10px;
  border: 3px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
}

.tab-list::-webkit-scrollbar-thumb:hover {
  background: rgba(51, 126, 198, 0.85);
}

.tab-item {
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  position: relative;
  transition: all 0.2s;
  min-width: 120px;
  max-width: 200px;
}

.tab-item:hover {
  background-color: #f9f9f9;
  color: #333;
}

.tab-item.active {
  border-bottom-color: var(--industrial-blue);
  color: var(--industrial-blue);
  font-weight: 500;
  background-color: var(--industrial-blue-bg);
}

/* 新增：标签页图标 */
.tab-item i {
  margin-right: 8px;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.tab-item-close {
  margin-left: 8px;
  font-size: 12px;
  color: #999;
  opacity: 0;
  transition:
    opacity 0.2s,
    color 0.2s;
}

.tab-item:hover .tab-item-close {
  opacity: 1;
}

.tab-item-close:hover {
  color: var(--industrial-red);
}

.tab-actions {
  display: flex;
  align-items: center;
  margin-left: 10px;
  flex-shrink: 0;
}

.tab-action-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.tab-action-btn:hover {
  background-color: #f0f0f0;
  color: var(--industrial-blue);
}

/* 新增：标签页内容区域 */
.tab-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tab-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 25px;
  display: none;
  background-color: white;
}

.tab-pane.iframe-tab {
  overflow: hidden;
  padding: 0;
}

#content_dashboard {
  overflow-y: auto;
  padding: 25px;
}

.tab-pane.active {
  display: block;
}

.tab-pane-header {
  /* ... */
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 86, 166, 0.1);
}

.tab-pane-header h2 {
  color: var(--industrial-blue);
  font-size: 26px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.tab-pane-header h2 i {
  margin-right: 10px;
}

.tab-pane-header p {
  color: #666;
  font-size: 15px;
}

.page-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 86, 166, 0.1);
}

.page-header h2 {
  color: var(--industrial-blue);
  font-size: 26px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.page-header h2 i {
  margin-right: 10px;
}

.page-header p {
  color: #666;
  font-size: 15px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.card {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border-top: 4px solid var(--industrial-blue);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--industrial-blue),
    var(--industrial-blue-light)
  );
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: var(--industrial-blue);
  margin-bottom: 12px;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.card h3 i {
  margin-right: 10px;
  font-size: 20px;
}

.card p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.card-icon {
  font-size: 28px;
  color: var(--industrial-blue);
  margin-bottom: 15px;
  background-color: var(--industrial-blue-bg);
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iframe-container {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  background-color: white;
}

/* 搜索框样式 */
.search-container {
  margin-right: 25px;
  position: relative;
}

.search-box {
  padding: 8px 15px 8px 35px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  width: 200px;
  transition: all 0.3s;
}

.search-box:focus {
  outline: none;
  width: 250px;
  background-color: rgba(255, 255, 255, 0.2);
}

.search-box::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.8);
}

/* 动画效果 */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bellRing {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(10deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  30% {
    transform: rotate(10deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.bell-ring {
  animation: bellRing 2s infinite;
}

/* 首页样式 - 修改 */

/* 关键业务指标 */
.kpi-section {
  margin-bottom: 25px;
}

.section-title {
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 18px;
}

.section-title i {
  margin-right: 10px;
  color: var(--industrial-blue);
}

.kpi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.kpi-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  transition: transform 0.3s;
  border-top: 4px solid transparent;
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.kpi-card:nth-child(1) {
  border-top-color: #00a854;
}
.kpi-card:nth-child(2) {
  border-top-color: var(--industrial-blue);
}
.kpi-card:nth-child(3) {
  border-top-color: #ff9900;
}
.kpi-card:nth-child(4) {
  border-top-color: #7b1fa2;
}

.kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 22px;
}

.kpi-content {
  flex: 1;
}

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.kpi-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.kpi-trend {
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.kpi-trend.positive {
  background-color: #e6f7ee;
  color: #00a854;
}

.kpi-trend.negative {
  background-color: #ffeaea;
  color: #f5222d;
}

.kpi-trend.warning {
  background-color: #fff4e6;
  color: #ff9900;
}

/* 主要内容区域 */
.main-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .main-content-grid {
    grid-template-columns: 1fr;
  }
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: 100%;
}

/* 待办事项 */
.todo-section,
.announcement-section,
.supplier-section,
.chart-section,
.quality-ranking-section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.quality-ranking-section {
  margin-top: 25px;
}

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.grade-a {
  background-color: #28a745;
}

.grade-b {
  background-color: #ff9800;
}

.grade-c {
  background-color: #e53935;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.card-title {
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title i {
  color: var(--industrial-blue);
}

.supplier-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.supplier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.supplier-table th {
  background-color: #f8f9fa;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e9ecef;
}

.supplier-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #eee;
}

.supplier-table tr:hover {
  background-color: #f8fafc;
}

.supplier-rating {
  display: inline-block;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.rating-a {
  background-color: #28a745;
}

.rating-b {
  background-color: #ff9800;
}

.rating-c {
  background-color: #e53935;
}

.supplier-section,
.chart-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chart-section .chart-container {
  flex: 1;
  min-height: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.section-header h4 {
  color: #333;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.section-header h4 i {
  margin-right: 8px;
  color: var(--industrial-blue);
}

.view-all {
  color: var(--industrial-blue);
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.view-all i {
  margin-left: 5px;
  font-size: 10px;
}

.view-all:hover {
  text-decoration: underline;
}

/* 待办事项列表 */
.todo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todo-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #ddd;
  transition: background-color 0.2s;
  cursor: pointer;
}

.todo-item:hover {
  background-color: #f9f9f9;
}

.todo-item.high {
  border-left-color: #f5222d;
}

.todo-item.medium {
  border-left-color: #ff9900;
}

.todo-item.low {
  border-left-color: #52c41a;
}

.todo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #666;
}

.todo-content {
  flex: 1;
}

.todo-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  font-size: 14px;
}

.todo-desc {
  font-size: 12px;
  color: #999;
}

.todo-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.todo-time {
  font-size: 12px;
  color: #999;
}

.todo-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  color: white;
}

.todo-item.high .todo-badge {
  background-color: #f5222d;
}

.todo-item.medium .todo-badge {
  background-color: #ff9900;
}

.todo-item.low .todo-badge {
  background-color: #52c41a;
}

/* 快速入口横向布局 - 新增 */
.quick-access-horizontal {
  background: white;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--industrial-blue);
}

.quick-access-horizontal .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.quick-access-horizontal .section-header h4 {
  color: #333;
  font-size: 16px;
  display: flex;
  align-items: center;
  margin: 0;
}

.quick-access-horizontal .section-header h4 i {
  margin-right: 8px;
  color: var(--industrial-blue);
}

.horizontal-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  padding-bottom: 10px;
}

.horizontal-access-item {
  text-align: center;
  padding: 15px 10px;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid #f0f0f0;
  background: #f9f9f9;
}

.horizontal-access-item:hover {
  background-color: var(--industrial-blue-bg);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: var(--industrial-blue-light);
}

.horizontal-access-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 22px;
  background: linear-gradient(
    135deg,
    var(--industrial-blue),
    var(--industrial-blue-light)
  );
  color: white;
}

.horizontal-access-label {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

.horizontal-access-desc {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
}

/* 隐藏原来的快速入口部分 */
.original-quick-access {
  display: none;
}

/* 公告通知 */
.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announcement-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #ddd;
  transition: background-color 0.2s;
  cursor: pointer;
}

.announcement-item:hover {
  background-color: #f9f9f9;
}

.announcement-item.important {
  border-left-color: #ff4d4f;
}

.announcement-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: #666;
}

.announcement-item.important .announcement-icon {
  background-color: #fff2f0;
  color: #ff4d4f;
}

.announcement-content {
  flex: 1;
}

.announcement-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  font-size: 14px;
}

.announcement-desc {
  font-size: 12px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.announcement-time {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

/* 供应商动态 */
.supplier-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supplier-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: all 0.2s;
  cursor: pointer;
}

.supplier-item:hover {
  background-color: #f0f0f0;
}

.supplier-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--industrial-blue-bg);
  color: var(--industrial-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 18px;
}

.supplier-content {
  flex: 1;
}

.supplier-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  font-size: 14px;
}

.supplier-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-block;
}

.supplier-status.active {
  background-color: #e6f7ee;
  color: #00a854;
}

.supplier-status.warning {
  background-color: #fff4e6;
  color: #ff9900;
}

.supplier-status.review {
  background-color: #f0f0f0;
  color: #666;
}

.supplier-action .supplier-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 10px;
  color: white;
}

.supplier-badge.new {
  background-color: var(--industrial-blue);
}

.supplier-badge.warning {
  background-color: #ff9900;
}

.supplier-badge.review {
  background-color: #999;
}

.supplier-badge {
  background-color: #52c41a;
}

/* 图表区域 */
.chart-period {
  font-size: 13px;
  color: #999;
}

.chart-container {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  padding: 0 10px 30px;
  border-bottom: 1px solid #f0f0f0;
}

.chart-bar {
  width: 40px;
  background: linear-gradient(
    to top,
    var(--industrial-blue),
    var(--industrial-blue-light)
  );
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 0.5s;
}

.chart-bar:hover {
  opacity: 0.9;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 10px 10px 0;
}

.chart-labels span {
  font-size: 12px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  #mainPage .header {
    padding: 0 12px;
  }

  #mainPage .header-left {
    flex: 1;
    min-width: 0;
  }

  #mainPage .menu-toggle {
    margin-right: 8px;
  }

  #mainPage .logo {
    margin-right: 0;
    min-width: 0;
  }

  #mainPage .logo span {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #mainPage .system-subtitle {
    display: none;
  }

  #mainPage .header-icons {
    margin-right: 10px;
  }

  #mainPage .user-avatar {
    width: 34px;
    height: 34px;
    margin-left: 8px;
  }

  #mainPage .sidebar {
    position: fixed;
    left: 0;
    top: 65px;
    height: calc(100vh - 65px);
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  #mainPage .sidebar.active {
    transform: translateX(0);
  }

  #mainPage .content-area {
    padding: 0;
  }

  .industrial-card {
    flex-direction: column;
    max-width: 500px;
    min-height: auto;
  }

  .brand-section,
  .login-section {
    padding: 30px 25px;
  }

  .brand-title {
    font-size: 26px;
  }

  .feature-item {
    padding: 10px;
  }

  .crrc-elements {
    flex-wrap: wrap;
    gap: 15px;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  #mainPage .logo span {
    font-size: 18px;
  }

  #mainPage .search-container {
    display: none;
  }

  #mainPage .user-details {
    display: none;
  }

  #mainPage .user-menu {
    width: 250px;
    right: -10px;
  }

  .message-box {
    max-width: 95%;
  }

  .kpi-cards {
    grid-template-columns: 1fr;
  }

  .main-content-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-access-grid {
    gap: 10px;
  }

  .horizontal-access-item {
    padding: 12px 8px;
  }

  .captcha-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .captcha-image {
    width: 100%;
    margin-top: 10px;
  }

  #mainPage .tab-nav {
    padding: 0 10px;
  }

  #mainPage .tab-actions {
    margin-left: 6px;
  }

  #mainPage .tab-action-btn {
    padding: 5px 6px;
  }

  #mainPage .tab-item {
    min-width: 100px;
    padding: 0 10px;
    font-size: 13px;
  }

  #mainPage .tab-item-close {
    display: none;
  }
}

@media (max-width: 480px) {
  #mainPage .header {
    padding: 0 10px;
  }

  #mainPage .logo span {
    display: none;
  }

  #mainPage .logo i {
    margin-right: 0;
  }

  #mainPage .user-info > i {
    display: none;
  }

  #mainPage .header-icons {
    margin-right: 8px;
  }

  .login-container {
    padding: 10px;
  }

  .industrial-card {
    border-radius: 8px;
  }

  .brand-title {
    font-size: 22px;
  }

  .login-header h2 {
    font-size: 24px;
  }

  .crrc-elements {
    flex-direction: column;
    align-items: center;
  }

  .horizontal-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .horizontal-access-item {
    padding: 12px 8px;
  }
}
