/* 投资地图 - B端全局样式 */
:root {
  --sidebar-width: 220px;
  --header-height: 56px;
  --sidebar-bg: #304156;
  --sidebar-active: #409eff;
  --page-bg: #f0f2f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body, #app {
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

body { background: var(--page-bg); }

/* 登录/注册页 */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d2b3a 0%, #304156 50%, #1a2332 100%);
  position: relative;
}

.auth-back-home {
  position: absolute;
  top: 24px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-back-home:hover {
  color: #fff;
}

.auth-back-home i {
  font-size: 16px;
}

.auth-card {
  width: 420px;
  padding: 40px 36px 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo h1 {
  font-size: 24px;
  color: #303133;
  font-weight: 600;
  margin-bottom: 6px;
}

.auth-logo p {
  font-size: 13px;
  color: #909399;
}

.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #909399;
}

.auth-footer a {
  color: #409eff;
  text-decoration: none;
  cursor: pointer;
}

.auth-footer a:hover { text-decoration: underline; }

.auth-footer-split {
  margin: 0 8px;
  color: #dcdfe6;
}

/* 主布局 */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s;
  min-height: 0;
  overflow: hidden;
}

.app-sidebar.collapsed {
  width: 64px;
}

.sidebar-logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-logo .logo-icon {
  font-size: 22px;
  margin-right: 8px;
}

.app-sidebar.collapsed .logo-text { display: none; }

.sidebar-menu {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0 20px;
}

.sidebar-menu .el-menu {
  border-right: none;
  width: 100% !important;
}

.sidebar-menu .el-menu-item,
.sidebar-menu .el-submenu__title {
  overflow: hidden;
}

.sidebar-menu .el-menu-item [slot="title"],
.sidebar-menu .el-submenu__title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-menu .el-menu-item i,
.sidebar-menu .el-submenu__title i {
  margin-right: 6px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-menu .el-submenu .el-menu-item {
  padding-left: 48px !important;
  min-width: 0;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-header {
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.collapse-btn {
  font-size: 20px;
  color: #606266;
  cursor: pointer;
  padding: 4px;
}

.collapse-btn:hover { color: #409eff; }

.breadcrumb-text {
  font-size: 14px;
  color: #606266;
}

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

.user-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #606266;
  font-size: 14px;
}

.user-dropdown:hover { color: #409eff; }

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.placeholder-page {
  background: #fff;
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  color: #909399;
}

.placeholder-page i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  color: #c0c4cc;
}

.placeholder-page h3 {
  font-size: 16px;
  color: #606266;
  margin-bottom: 8px;
}

.admin-users-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mindmap-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mindmap-list-header > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.empty-tip {
  text-align: center;
  padding: 32px 0 12px;
  color: #909399;
  font-size: 14px;
}

.mini-config-updated {
  margin-top: 8px;
  color: #909399;
  font-size: 13px;
}

.auth-loading {
  height: 100vh;
  width: 100%;
}
