/* =======================================================
   CA436 系统通用样式（护眼绿色版）
   Author: CAFFZ
   Date: 2025-10-10
   ======================================================= */

/* ===============================
   全局字体与颜色
   =============================== */
body {
  margin: 0;
  padding: 0;
  background-color: #f4f8f4;
  color: #333;
  font-family: "Microsoft YaHei", "Helvetica", sans-serif;
  font-size: 14px;
}

/* 链接样式 */
a {
  color: #2a7f4f;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===============================
   字体标准（B1/B2/B3）
   =============================== */
.B1 { font-size: 14px; color: #222; }
.B2 { font-size: 16px; color: #111; }
.B3 { font-size: 18px; font-weight: bold; color: #0f3d28; }

/* ===============================
   输入框样式
   =============================== */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select, textarea {
  height: 34px;
  padding: 6px 8px;
  border: 1px solid #aaa;
  border-radius: 0;             /* 全站直角 */
  font-size: 14px;
  box-sizing: border-box;
  background-color: #fff;
}
input:focus, select:focus, textarea:focus {
  border-color: #2a7f4f;
  outline: none;
  background-color: #f6fff6;
}

/* ===============================
   按钮样式（bt1/bt2/bt3）
   =============================== */
.bt1, .bt2, .bt3 {
  display: inline-block;
  background-color: #2a7f4f;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 0;
  font-size: 14px;
  text-align: center;
  transition: background 0.2s;
}

.bt1 { width: 100px; height: 34px; line-height: 34px; }
.bt2 { width: 200px; height: 34px; line-height: 34px; font-size: 15px; }
.bt3 { width: 300px; height: 36px; line-height: 36px; font-size: 16px; }

.bt1:hover, .bt2:hover, .bt3:hover {
  background-color: #256d45;
}

/* ===============================
   表格与容器
   =============================== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100% !important;  /* 强制铺满父容器 */
  table-layout: fixed;     /* 防止列宽乱跑 */
  border-collapse: collapse;
  background: #fff;
}

.table th, .table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  font-size: 14px;
  text-align: center;
}
.table th {
  background-color: #e8f2eb;
  color: #1f5037;
}
.table tr:nth-child(even) {
  background-color: #f9fcfa;
}

/* ===============================
   容器与布局
   =============================== */
.container {
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 0;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

/* 左侧栏 */
.sidebar {
	
  background-color: #f4f8f4;
  min-height: 100vh;             /* 始终撑满屏幕高度 */
  border-right: 1px solid #ccc;  /* 保证分隔线连贯 */
}

/* 右侧内容 */
.main-content {
  background-color: #f4f8f4;  /* 与左边栏统一 */
  padding: 20px;
  min-height: 100vh;
  
  border-radius: 0;
  box-sizing: border-box;
}

/* ===============================
   页眉页脚样式
   =============================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #ccc;
}

.footer {
  background-color: #f4f8f4;   /* 统一护眼绿色 */
  color: #555;
  font-size: 13px;
  padding: 10px;
  text-align: center;
  border-top: 1px solid #ccc;
  clear: both;
}

/* ===============================
   表单区域
   =============================== */
.form-row {
  margin-bottom: 15px;
}
.form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

/* ===============================
   侧边栏菜单
   =============================== */
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar li {
  border-bottom: 1px solid #ddd;
}
.sidebar a {
  display: block;
  padding: 10px 15px;
  color: #2a7f4f;
  font-size: 14px;
}
.sidebar a:hover {
  background-color: #eaf4ec;
}
/* ===== 通用容器居中样式 ===== */
.center-container {
  max-width: 1000px;   /* 最大宽度，可根据需要调整 */
  margin: 0 auto;      /* 水平居中 */
  padding: 15px;       /* 内边距，避免贴边 */
  box-sizing: border-box;
}

/* ===== 通用表格居中样式 ===== */
.center-table {
  max-width: 1000px;   /* 和容器宽度保持一致 */
  margin: 0 auto;      /* 表格整体居中 */
}

.center-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.center-table th,
.center-table td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left; /* 内部内容保持自然左对齐 */
}
