/* ============================================================
 * base.css — 应用壳：全局 reset / 顶栏 / 侧栏 / 面包屑 / 通用卡片
 * 从 index.html 拆分（保持原样式顺序）
 * ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; }

.platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background: #1d2129;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 32px;
}

.platform-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.platform-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: #0052d9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.top-menu {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border-bottom: none !important;
}

.top-menu .t-default-menu__inner {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  height: 100% !important;
  align-items: center;
}

.top-menu .t-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.top-menu .t-menu__item {
  min-width: 88px;
  justify-content: center;
  font-size: 14px;
  color: #c9cdd4;
}

.top-menu .t-menu__item.t-is-active,
.top-menu .t-menu__item:hover {
  color: #fff;
}

.top-menu .t-menu__item.t-is-active::after {
  background: #0052d9;
}

.top-menu.t-menu--dark {
  background: transparent !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search {
  width: 200px;
}

.header-search .t-input {
  background: #2a2e38;
  border-color: #2a2e38;
  color: #fff;
}

.header-search .t-input__inner {
  color: #fff;
}

.header-search .t-input__inner::placeholder {
  color: #86909c;
}

.header-search .t-input__suffix-icon {
  color: #86909c;
}

.header-action {
  color: #c9cdd4;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.header-action:hover {
  background: #2a2e38;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  color: #c9cdd4;
}

.user-info:hover {
  background: #2a2e38;
}

.user-name {
  font-size: 14px;
  color: #c9cdd4;
}

/* 顶栏集团服务信息（下拉卡片展示服务到期日期） */
/* 集团名称（顶栏展示，点击不展示卡片；「关于」入口在头像下拉菜单中） */
.group-name-plain {
  font-size: 14px;
  color: #c9cdd4;
  padding: 0 8px;
  white-space: nowrap;
}

.group-name {
  font-size: 14px;
  color: #c9cdd4;
}

.group-service-card {
  padding: 4px 4px 0;
}

.gsc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7);
}

.gsc-label {
  color: rgba(0, 0, 0, 0.45);
}

.gsc-date {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.9);
}

/* 版权与关闭按钮 */
.gsc-copyright {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e7e7e7;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  line-height: 18px;
}
.gsc-close-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.gsc-close-btn { min-width: 88px; }

.layout-body {
  display: flex;
  height: calc(100% - 56px);
}

.aside-menu {
  width: 240px;
  flex-shrink: 0;
  height: 100%;
  background: #1d2129;
  border-right: 1px solid #2a2e38;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width .25s ease;
}

.aside-menu.collapsed {
  width: 64px;
}

.aside-menu .t-menu {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-right: none;
}

/* 底部收缩按钮 */
.aside-toggle {
  flex-shrink: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #c9cdd4;
  border-top: 1px solid #2a2e38;
  transition: color .15s, background .15s;
}
.aside-toggle:hover {
  color: #fff;
  background: #2a2e38;
}

.aside-menu .t-menu--dark {
  background: transparent !important;
}

.aside-menu .t-menu__item,
.aside-menu .t-submenu__title {
  color: #c9cdd4;
}

.aside-menu .t-menu__item.t-is-active,
.aside-menu .t-submenu__title.t-is-active {
  color: #fff;
  background: #0052d9;
}

.aside-menu .t-menu__item:hover,
.aside-menu .t-submenu__title:hover {
  color: #fff;
  background: #2a2e38;
}

.aside-menu .t-icon,
.top-menu .t-icon,
.header-action .t-icon,
.user-info .t-icon {
  color: inherit;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 16px 24px;
  background: #f2f3f5;
  overflow-y: auto;
}

.content-card {
  background: #fff;
  border-radius: 6px;
  padding: 24px;
  min-height: calc(100% - 48px);
}

/* 面包屑历史窗口（带左右滚动按钮） */
.crumb-bar-outer {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 8px;
  border: 1px solid #e7e9ed;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.crumb-scroll-btn {
  flex-shrink: 0;
  width: 26px;
  border: 0;
  background: #fafbfc;
  color: #4e5969;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  border-right: 1px solid #f0f0f0;
}
.crumb-scroll-btn.crumb-scroll-r { border-right: 0; border-left: 1px solid #f0f0f0; }
.crumb-scroll-btn:hover:not(:disabled) { background: #eef0f3; color: #0052d9; }
.crumb-scroll-btn:disabled { color: #c9cdd4; cursor: not-allowed; background: #fafbfc; }
.crumb-bar {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.crumb-bar::-webkit-scrollbar { display: none; }
.crumb-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 2px 1px 8px;
  font-size: 12px;
  color: #4e5969;
  background: #f7f8fa;
  border: 1px solid #e7e9ed;
  border-radius: 3px;
  cursor: pointer;
  transition: all .2s;
  line-height: 18px;
}
.crumb-item:hover {
  background: #eceeef;
  border-color: #d5d9de;
}
.crumb-item.active {
  background: #e8f3ff;
  border-color: #b3d9ff;
  color: #0052d9;
  font-weight: 500;
}
.crumb-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #86909c;
  opacity: 0;
  transition: all .2s;
  flex-shrink: 0;
}
.crumb-item:hover .crumb-close {
  opacity: 1;
}
.crumb-close:hover {
  background: #e34d59;
  color: #fff;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  color: #1d2129;
}

.search-card {
  margin-bottom: 16px;
}

.search-card .t-card__body {
  padding: 16px 24px;
}

.table-card .t-card__body {
  padding: 16px 24px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-form-custom {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-label {
  font-size: 14px;
  color: #1d2129;
  white-space: nowrap;
}
