/* ============================================================
   ROFilter layout.css — 应用框架布局（ro-membrane 风格）
   深蓝头部 #002f5d / 浅灰蓝底 #f4f7f9 / 白卡片圆角 / 橙色激活 #f39c12
   ============================================================ */

.app { min-height: 100vh; background: transparent; }

/* ---------------- 品牌栏（深蓝，ro-membrane 深蓝头部） ---------------- */
.rofilter-brandbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px;
  background: #002f5d;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 16px;
  max-width: 1280px; margin: 0 auto;
  position: relative; z-index: 90;
}
.brand-left { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.brand-logo .rf-mark { width: 30px; height: 30px; color: #fff; }
.brand-logo .rf-word { font-size: 19px; color: #fff; }
.brand-sub { font-size: 11px; color: rgba(255,255,255,.72); letter-spacing: .5px; }
/* 品牌右侧：中文为主 + 英文副行（两行右对齐） */
.brand-right { text-align: right; line-height: 1.3; }
.brand-right .br-cn { font-size: 13px; }
.brand-right .br-cn b { color: #fff; font-weight: 700; letter-spacing: 1px; }
.brand-right .br-en { font-size: 10px; color: rgba(255,255,255,.55); letter-spacing: .4px; }

/* ---------------- 横幅菜单栏（深蓝，激活橙色） ---------------- */
.rofilter-banner {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px;
  background: #002f5d;
  color: #fff;
  padding: 0 14px;
  max-width: 1280px; margin: 0 auto;
  box-shadow: 0 1px 4px rgba(0,20,40,.25);
  position: relative;
  z-index: 100;
}
.banner-left { display: flex; align-items: center; gap: 18px; }
.banner-left .logo {
  font-size: 14px; font-weight: 700; letter-spacing: .5px;
  color: #fff; text-decoration: none;
}
.banner-left .logo::before { content: "◈ "; color: #f39c12; opacity: .95; }

/* 主菜单栏（胶囊导航：图标 + 文字，激活橙） */
.banner-menu { display: flex; list-style: none; gap: 3px; }
.banner-menu > li {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 16px;
  color: #fff;
  transition: background .12s;
}
.banner-menu > li .mi { font-size: 12px; line-height: 1; }
.banner-menu > li:hover { background: rgba(255,255,255,.16); }
.banner-menu > li.active { background: #f39c12; color: #fff; font-weight: 700; box-shadow: 0 1px 3px rgba(243,156,18,.4); }
.banner-menu > li.nav-disabled { opacity: .4; cursor: not-allowed; }
.banner-menu > li.nav-disabled:hover { background: transparent; }
.banner-menu > li.has-sub::after { content: " ▾"; font-size: 9px; opacity: .85; }

/* 下拉子菜单 */
.banner-menu .submenu {
  display: none;
  position: absolute; left: 0; top: 100%;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 14px rgba(0,40,80,.25);
  border-radius: 8px;
  list-style: none;
  z-index: 200;
  padding: 2px 0;
}
.banner-menu > li:hover .submenu { display: block; }
.banner-menu .submenu li {
  padding: 6px 14px;
  color: var(--c-text);
  font-size: 12px;
  white-space: nowrap;
  border-radius: 4px;
}
.banner-menu .submenu li:hover { background: #fff4e2; color: #b06e04; }
.banner-menu .submenu li.sep { height: 1px; padding: 0; background: var(--c-border-light); margin: 3px 0; }

/* 用户区 */
.banner-right { display: flex; align-items: center; gap: 12px; }
.user-mail { font-size: 12px; color: #fff; }
.user-mail::before { content: "👤 "; font-size: 10px; }
.banner-btn {
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 3px 12px; height: 24px;
  border-radius: 3px; cursor: pointer;
}
.banner-btn:hover { background: rgba(255,255,255,.3); }
/* 手机汉堡菜单按钮（仅移动端显示，mobile.css 断点内 inline-flex） */
.mobile-menu-btn { display: none; }

/* ---------------- 导航标签行（深蓝底白字，激活橙） ---------------- */
.rofilter-tabs {
  display: flex; align-items: stretch;
  background: #002f5d;
  padding: 0 10px;
  height: 30px;
  position: relative; z-index: 80;
}
.rofilter-tabs::before {
  content: "▾"; color: rgba(255,255,255,.7); align-self: center; padding-right: 8px; font-size: 12px;
}
.rofilter-tab {
  border: none;
  background: transparent;
  color: #fff;
  padding: 0 28px;
  height: 30px;
  font-size: 13px;
  cursor: pointer;
  margin-right: 2px;
  border-radius: 0;
  opacity: .82;
  transition: background .12s, opacity .12s;
}
.rofilter-tab:hover { background: rgba(255,255,255,.14); opacity: 1; }
.rofilter-tab.active {
  background: #f39c12;
  color: #fff;
  font-weight: 700;
  opacity: 1;
}
.rofilter-version { margin-left: auto; align-self: center; color: rgba(255,255,255,.8); font-size: 11px; padding-right: 6px; }
/* 标签行右侧功能按钮（rofilter.cn选项/帮助） */
.rofilter-tab-btn {
  align-self: center;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 2px 12px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 6px;
  border-radius: 3px;
}
.rofilter-tab-btn:hover { background: rgba(255,255,255,.22); }

/* ---------------- 项目信息行（浅灰蓝底白卡片风格） ---------------- */
.rofilter-projrow {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 18px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(20,60,100,.06);
  margin: 8px auto 0;
  max-width: 1280px;
}
.pr-item { display: inline-flex; align-items: center; gap: 4px; color: #2c4a66; white-space: nowrap; }
.pr-input { height: 22px; padding: 0 4px; }
.pr-select { height: 22px; font-size: 11px; }

/* ---------------- 页面容器（浅灰蓝底） ---------------- */
.page-container { padding: 10px 0 40px; max-width: 1280px; margin: 0 auto; }
.page { min-height: 300px; }

/* ---------------- 工具栏（白卡片条，橙色激活） ---------------- */
.rofilter-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(20,60,100,.06);
  margin-bottom: 8px;
}
.tbtn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--c-border);
  background: linear-gradient(#ffffff, #ecf3fb);
  padding: 3px 11px;
  height: 25px;
  font-size: 12px;
  color: #14466e;
  cursor: pointer;
  border-radius: 6px;
  white-space: nowrap;
}
.tbtn:hover { background: linear-gradient(#ffffff, #fdf0dc); border-color: #f39c12; }
.tbtn.on {
  background: #f39c12;
  color: #fff; border-color: #e08a06; box-shadow: 0 1px 3px rgba(243,156,18,.4);
}
.tbtn.run {
  background: linear-gradient(#21a05a, #17804a);
  color: #fff; border-color: #136b3d; font-weight: 600;
}
.tbtn.run:hover { background: linear-gradient(#27b168, #17804a); }
.tsep { width: 1px; height: 18px; background: var(--c-border-light); margin: 0 4px; }
.tlabel { color: #4a6b8c; font-size: 11px; margin-right: 2px; }

/* 图标按钮（图标在上、文字在下） */
.tbtn-ico {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  border: 1px solid transparent;
  background: transparent;
  padding: 3px 8px 2px;
  min-width: 52px;
  font-size: 11px;
  color: #14466e;
  cursor: pointer;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.3;
}
.tbtn-ico .ico { font-size: 16px; line-height: 1; }
.tbtn-ico .lbl { font-size: 11px; }
.tbtn-ico:hover { background: #fdf3e2; border-color: #f6c76f; }
.tbtn-ico.on {
  background: #f39c12;
  color: #fff; border-color: #e08e0a;
}
.tbtn-ico.on .ico, .tbtn-ico.on .lbl { color: #fff; }
.tbtn-ico.run {
  background: linear-gradient(#21a05a, #17804a);
  color: #fff; border-color: #136b3d;
}
.tbtn-ico.run:hover { background: linear-gradient(#27b168, #17804a); }
.tbtn-ico.run .ico, .tbtn-ico.run .lbl { color: #fff; font-weight: 600; }

/* ---------------- 面板（白卡片圆角） ---------------- */
.panel {
  border: 1px solid var(--c-border-light);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(20,60,100,.05);
  overflow: hidden;
}
.panel > .panel-title {
  /* 需求：面板标题统一深藏蓝渐变 + 白字（同全系统表头模式） */
  background: linear-gradient(#0a4d8c, #002f5d);
  border-bottom: 1px solid var(--c-border-light);
  color: #fff;
  font-weight: 700;
  padding: 5px 10px;
  font-size: 12px;
}
/* 面板标题内备注文字：深蓝底上改浅色（保证可读） */
.panel > .panel-title .pt-chem-note,
.panel > .panel-title .cost-title-note { color: #cfe0f0; }
.panel > .panel-body { padding: 8px 10px; }

/* 双列布局 */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.col { min-width: 0; }
