/* ==========================================================================
   WB 统一系统设置页样式（参照 SEMS 布局）
   作用：为各业务系统的「系统设置 / 模块管理」页面提供一致的卡片网格、
         表单分组、标题栏与视觉层次。
   用法：在设置页引入 <link rel="stylesheet" href="/qtheme/wb-settings.css?v=1">
         并按以下 HTML 结构组织内容：
         .wb-settings-page
           .wb-card
             h2.wb-section-title
             p.wb-section-sub
             .wb-tile-grid
               a.wb-tile[href]
                 .wb-tile-ico {icon}
                 .wb-tile-body
                   .wb-tile-title 标题
                   .wb-tile-desc  描述
   ========================================================================== */

/* 页面容器 */
.wb-settings-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* 通用卡片 */
.wb-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(16, 32, 64, .05);
}
.wb-card.wb-card-accent {
  border-left: 4px solid #1f4e79;
}

/* 区块标题 */
.wb-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1f2b;
  margin: 0 0 8px;
  line-height: 1.3;
}

/* 区块副标题 */
.wb-section-sub {
  font-size: 13.5px;
  color: #5b6474;
  line-height: 1.7;
  margin: 0 0 18px;
}

/* 模块网格：默认 1 列 → 2 列 → 3 列 */
.wb-tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .wb-tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 860px) {
  .wb-tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 模块入口卡片 */
.wb-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background: #fbfdff;
  text-decoration: none;
  color: #333;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
  cursor: pointer;
}
.wb-tile:hover {
  border-color: #1f4e79;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(31, 78, 121, .12);
}
.wb-tile:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(16, 32, 64, .06);
}

/* 图标容器 */
.wb-tile-ico {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  background: #eef3f8;
  border-radius: 50%;
}
.wb-tile-ico svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* 标题与描述 */
.wb-tile-body {
  min-width: 0;
}
.wb-tile-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f4e79;
  margin-bottom: 5px;
  line-height: 1.35;
}
.wb-tile-desc {
  font-size: 12.5px;
  color: #666;
  line-height: 1.55;
}

/* 表单分组（参数设置） */
.wb-fieldset {
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.wb-fieldset legend {
  font-size: 15px;
  font-weight: 600;
  color: #1f4e79;
  padding: 0 8px;
}
.wb-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f6;
}
.wb-form-row:last-child {
  border-bottom: 0;
}
.wb-form-label {
  width: 180px;
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}
.wb-form-control {
  flex: 1;
  min-width: 180px;
}
.wb-form-control input[type=text],
.wb-form-control input[type=number],
.wb-form-control input[type=password],
.wb-form-control select,
.wb-form-control textarea {
  width: 100%;
  max-width: 320px;
  padding: 8px 10px;
  border: 1px solid #d0d7e0;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.wb-form-control input:focus,
.wb-form-control select:focus,
.wb-form-control textarea:focus {
  outline: none;
  border-color: #1f4e79;
}
.wb-form-hint {
  width: 100%;
  font-size: 12px;
  color: #8b94a4;
  margin-top: 4px;
}

/* 按钮 */
.wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: #1f4e79;
  color: #fff;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.wb-btn:hover {
  background: #163a5c;
}
.wb-btn:active {
  transform: scale(.98);
}

/* 提示消息 */
.wb-msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.wb-msg-ok {
  background: #e6f6ee;
  color: #128a52;
  border: 1px solid #b8e6cf;
}
.wb-msg-err {
  background: #fdeaea;
  color: #d64545;
  border: 1px solid #f5c2c2;
}

/* 移动端微调 */
@media (max-width: 480px) {
  .wb-settings-page {
    padding: 12px;
  }
  .wb-card {
    padding: 16px;
    border-radius: 10px;
  }
  .wb-section-title {
    font-size: 16px;
  }
  .wb-tile {
    padding: 12px;
  }
  .wb-tile-ico {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .wb-tile-title {
    font-size: 14px;
  }
  .wb-tile-desc {
    font-size: 12px;
  }
  .wb-form-label {
    width: 100%;
    padding-bottom: 0;
  }
}
