/* 系统与技术设置页（S-01/S-02/S-03）的导航分区 —— 用户 2026-09-30 反馈「找东西太麻烦」。
   形态沿用用户 2026-09-28 的裁决：一级导航在左、页内导航在右（同 tech-layout.css）。
   本页不在 .dash 作用域内（body 无 page-dashboard），所以这里自带一套 scoped 样式；
   styles.css 已超行数上限（棘轮只许缩小），新样式一律不写进去。 */

.settings-shell { display: flex; align-items: flex-start; gap: 20px; }

/* 左栏＝一级导航（S-01 / S-02 / S-03），复用技术板块 .nav-item 的外观 */
.settings-nav { flex: 0 0 210px; width: 210px; position: sticky; top: 74px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04); }
.settings-nav .nav-item { display: block; width: 100%; text-align: left; font-family: inherit;
  background: none; border: 0; border-left: 3px solid transparent; padding: 10px 16px;
  font-size: 13px; line-height: 1.5; color: #374151; cursor: pointer; }
.settings-nav .nav-item:hover { background: #f9fafb; color: #2563eb; }
.settings-nav .nav-item.active { background: #eff6ff; border-left-color: #2563eb; color: #2563eb; font-weight: 600; }

/* 中间＝正文 */
.settings-main { flex: 1 1 auto; min-width: 0; }

/* 右栏＝页内导航（当前页签的区块锚点）。无区块时整个栏隐藏（不编造锚点，同 tech.js） */
.settings-rail { flex: 0 0 190px; width: 190px; position: sticky; top: 74px; display: none;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 0;
  max-height: calc(100vh - 90px); overflow-y: auto; }
.settings-rail.is-visible { display: block; }
.settings-rail .nav-group-title { padding: 4px 16px 8px; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; color: #9ca3af; }
.settings-rail .nav-item { display: block; padding: 7px 16px; font-size: 12.5px; line-height: 1.5;
  color: #4b5563; text-decoration: none; border-left: 3px solid transparent; }
.settings-rail .nav-item:hover { background: #f9fafb; color: #2563eb; }
.settings-rail .nav-item.active { background: #eff6ff; border-left-color: #2563eb; color: #2563eb; font-weight: 600; }
.settings-rail-foot { margin-top: 8px; padding: 10px 16px 2px; border-top: 1px solid #f3f4f6;
  font-size: 11px; color: #9ca3af; }

/* 正文区块＝卡片：本页原先没有 .dash 作用域，这里补一层分组外观（不加 overflow，避免裁掉下拉） */
.settings-view .block { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  margin-bottom: 16px; padding: 0 0 14px; scroll-margin-top: 74px; }
.settings-view .block-header { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f3f4f6; }
.settings-view .block-title { font-size: 15px; font-weight: 600; color: #1f2937; }
.settings-view .block-actions { display: flex; align-items: center; gap: 8px; }

/* 窄屏：三层塌成一列，一级导航横排（页内导航保留，便于长页跳转） */
@media (max-width: 1100px) {
  .settings-shell { flex-direction: column; }
  .settings-nav, .settings-rail { position: static; width: 100%; flex: none; }
  .settings-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; }
  .settings-nav .nav-item { width: auto; border-left: 0; border-bottom: 2px solid transparent; }
  .settings-nav .nav-item.active { border-left: 0; border-bottom-color: #2563eb; }
  .settings-rail { max-height: none; }
}
