/* Global Link Styles for the Entire Site */
:root {
  --primary-color: #1d4ed8;          /* 更专业的深蓝色 */
  --primary-light: #2563eb;          /* 主色调浅色 */
  --primary-dark: #1e40af;           /* 主色调深色 */
  --secondary-color: #475569;        /* 专业的石墨色 */
  --accent-color: #0ea5e9;           /* 专业的天蓝色 */
  --accent-light: #7dd3fc;           /* 强调色浅色 */
  --background-color: #f1f5f9;       /* 浅灰蓝背景 */
  --surface-color: #ffffff;          /* 白色表面 */
  --text-primary: #1e293b;           /* 深灰蓝文字 */
  --text-secondary: #64748b;         /* 中等灰文字 */
  --border-color: #cbd5e1;           /* 灰蓝边框 */
  --success-color: #16a34a;          /* 专业绿色 */
  --warning-color: #f35309;          /* 专业黄色 */
  --error-color: #dc2626;            /* 专业红色 */
  --warning-light: #f59e0b;          /* 警告色浅色 */
}

/* 全局链接样式定义 */
a {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* 针对菜单类链接的样式 */
a.menu,
a.menu2 {
  /* color: var(--text-secondary); */
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  display: inline-block;
  /* margin: 0.25rem;
  padding: 0.5rem 1rem; */
  text-decoration: none;
}

a.menu:hover,
a.menu2:hover {
  color: var(--primary-color);
  background-color: #eff6ff;
  text-decoration: none;
}

/* 特殊颜色类定义 */
.text-red,
.text-red a,
.Red-row,
.Red-row a {
  color: var(--error-color) !important;
  font-weight: 500;
}

.text-orange,
.text-orange a,
.Yellow-row,
.Yellow-row a {
  color: var(--warning-color) !important;
  font-weight: 500;
}

.text-green,
.text-green a,
.Green-row,
.Green-row a {
  color: var(--success-color) !important;
  font-weight: 500;
}

.text-blue,
.text-blue a {
  color: var(--primary-color) !important;
}

/* 页脚链接样式 */
footer a,
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

footer a:hover,
.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

/* 导航链接按钮样式 */
.nav-link {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background-color: #eff6ff;
}