* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
     font-family: pingfang sc,-apple-system,blinkmacsystemfont,segoe ui,hiragino sans gb,microsoft yahei,helvetica neue,sans-serif,apple color emoji,segoe ui emoji;
    min-height: 100vh;
    font-weight: 400;
    background: #ffffff;
}

.main, .main-container, .content, .iframe-container {
    background: transparent !important;
}

/* 顶部导航栏 */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    background: white;
    border-bottom: 1px solid #e8e8e8;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #1a73e8;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-item {
   position: relative;
    height: 38px;
    padding: 8px;
    margin-right: 16px;
    line-height: 22px;
    font-size: 14px;
    font-family: PingFang SC;
    font-style: normal;
    color: #323335;
}

.nav-item:hover {
    background: #f5f7fa;
    color: #1a73e8;
}

.nav-item.active {
    color: #1a73e8;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #1a73e8;
    border-radius: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f5f7fa;
    font-size: 18px;
}

.icon-btn:hover {
    background: #e8e8e8;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    background: #f0f7ff;
    border-radius: 20px;
    cursor: pointer;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.org-select {
    padding: 6px 12px;
    background: #e8f4ff;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    color: #1a73e8;
    cursor: pointer;
}

.upgrade-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* 主体布局 */
.main-container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* 左侧边栏 */
.sidebar {
    width: 220px;
    background: white;
    border-right: 1px solid #e8e8e8;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
    margin-top: 60px;
}

.menu-group {
    margin-bottom: 20px;
}

.menu-title {
    padding: 12px 20px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    text-decoration: none;
    gap: 10px;
}

.menu-item:hover {
    background: #f5f7fa;
    color: #1a73e8;
}

.menu-item.active {
    background: #e8f4ff;
    color: #1a73e8;
    border-right: 3px solid #1a73e8;
}

.menu-item-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* 内容区域 */
.content {
    flex: 1;
    margin-left: 220px;
    padding: 20px;
}

/* 通知栏 */
.notice-bar {
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d46b08;
    font-size: 14px;
}

.notice-bar .close {
    margin-left: auto;
    cursor: pointer;
    font-size: 18px;
}

/* 数据卡片 */
.data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.data-card-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.data-card-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.data-card-trend {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trend-up {
    color: #f5222d;
}

.trend-down {
    color: #52c41a;
}

/* ========== 公共组件样式 ========== */

/* 主要按钮 */
.btn-primary {
  background: linear-gradient(90deg, #165dff 0%, #4080ff 100%);
  color: white;
  padding: 8px 23px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* 次要按钮 */
.btn-secondary {
  background-color: #f2f3f5;
  color: #4e5969;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-secondary:hover {
  background-color: #e5e6eb;
}

/* 文本按钮 */
.btn-text {
  color: #165dff;
  background: none;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
}

.btn-text:hover {
  background-color: #e8f3ff;
  border-radius: 4px;
}

/* 下拉按钮 */
.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f2f3f5;
  border-radius: 6px;
  font-size: 13px;
  color: #1d2129;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  border: none;
}

.dropdown-btn:hover {
  background: #e5e6eb;
}

.dropdown-btn i {
  font-size: 12px;
  color: #86909c;
}

/* 搜索输入框 */
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f2f3f5;
  border-radius: 6px;
  flex: 1;
  max-width: 280px;
}

.search-input {
  border: none;
  background: transparent;
  font-size: 13px;
  color: #1d2129;
  flex: 1;
  outline: none;
  width: 100%;
}

.search-input::placeholder {
  color: #86909c;
}

.search-input-wrapper i {
  font-size: 14px;
  color: #86909c;
}

/* 筛选按钮 */
.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f2f3f5;
  border-radius: 6px;
  font-size: 13px;
  color: #1d2129;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #e5e6eb;
}

.filter-btn i {
  font-size: 14px;
  color: #1d2129;
}

/* 图标按钮 */
.icon-btn-small {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f2f3f5;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.icon-btn-small:hover {
  background: #e5e6eb;
}

.icon-btn-small i {
  font-size: 16px;
  color: #1d2129;
}

/* 工具栏 */
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

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

.toolbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin: 0 20px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 表格容器 */
.table-container {
  overflow-x: auto;
  width: 100%;
}

/* 表格样式 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table-head {
  background-color: #f7f8fa;
}

.table-head th {
  padding: 0 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid #e5e6eb;
  background-color: #f7f8fa;
  position: sticky;
  top: 0;
  height: 42px;
}

.table-body td {
  padding: 15px 20px;
  font-size: 12px;
  color: #1d2129;
  border-bottom: 1px solid #e5e6eb;
  background-color: white;
}

/* 固定列样式 */
.table-head th:nth-child(1),
.table-body td:nth-child(1) {
  left: 0;
  z-index: 10;
  position: sticky;
}

.table-head th:nth-child(2),
.table-body td:nth-child(2) {
  left: 94px;
  z-index: 9;
  position: sticky;
}

.table-head th:nth-child(3),
.table-body td:nth-child(3) {
  left: 334px;
  z-index: 8;
  position: sticky;
}

/* 滚动阴影 */
.table-head th:nth-child(3).shadow-right::after,
.table-body td:nth-child(3).shadow-right::after {
  content: "";
  z-index: 3;
  pointer-events: none;
  width: 15px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  transform: translate(100%);
  box-shadow: inset 10px 0 10px -5px #0000001a;
}

/* 复选框 */
.table-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid #b9bcc3;
  cursor: pointer;
  background-color: #fff;
  border-radius: 4px;
  transition: all .1s ease-in-out;
  display: block;
  position: relative;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 开关按钮 */
.toggle-switch {
  width: 40px;
  height: 20px;
  background: #3d3b4e;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-switch::after {
  content: '✓';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #3d3b4e;
  font-weight: bold;
  transition: all 0.3s;
}

.toggle-switch.off {
  background: #e5e6eb;
}

.toggle-switch.off::after {
  right: auto;
  left: 2px;
  color: #86909c;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #e8e8e8;
}

.page-info {
  font-size: 13px;
  color: #86909c;
}

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e5e6eb;
  background: white;
  border-radius: 4px;
  font-size: 13px;
  color: #1d2129;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
  border-color: #165dff;
  color: #165dff;
}

.page-btn.active {
  background: #165dff;
  color: white;
  border-color: #165dff;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-size select {
  padding: 4px 8px;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  font-size: 13px;
  color: #1d2129;
  cursor: pointer;
}

.jump-input {
  width: 50px;
  padding: 4px 8px;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}

/* 状态徽章 */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.status-active {
  background-color: #e6fffb;
  color: #13c2c2;
  border: 1px solid #13c2c2;
}

.status-inactive {
  background-color: #fff1f0;
  color: #f5222d;
  border: 1px solid #f5222d;
}

/* 状态点 */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
}

.status-dot-green {
  background-color: #52c41a;
}

.status-dot-red {
  background-color: #f5222d;
}

/* 操作链接 */
.action-link {
  /* color: #165dff; */
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.action-link:hover {
  text-decoration: underline;
}

/* 可排序表头 */
.sortable-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.dashed-underline {
  border-bottom: 1px dashed #999;
  padding-bottom: 2px;
  white-space: normal;
}

.sort-icons {
  position: relative;
  width: 14px;
  height: 12px;
  cursor: pointer;
}

.sort-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.sort-icon.up {
  top: 0px;
  border-width: 0 4px 5px 4px;
  border-color: transparent transparent #93969d transparent;
}

.sort-icon.up.active {
  border-color: transparent transparent #0057ff transparent;
}

.sort-icon.down {
  bottom: 0px;
  border-width: 5px 4px 0 4px;
  border-color: #93969d transparent transparent transparent;
}

/* 按钮组 */
.btn-group {
  display: inline-flex;
  background: #f2f3f5;
  border-radius: 8px;
  padding: 4px;
  gap: 0;
}

.btn-option {
  padding: 6px 16px;
  font-size: 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #4e5969;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  position: relative;
  line-height: 22px;
}

.btn-option:hover {
  color: #1d2129;
}

.btn-option.active {
  background: #fff;
  color: #165dff;
  border-color: #165dff;
}

.btn-option:first-child.active {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-option .fa-question-circle {
  color: #86909c;
  margin-left: 4px;
  font-size: 12px;
}

/* 标签页组 */
.tab-group {
  display: inline-flex;
  background: #f2f3f5;
  border-radius: 8px;
  padding: 4px;
}

.tab-item {
  padding: 6px 16px;
  font-size: 14px;
  color: #4e5969;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  border-radius: 6px;
  position: relative;
  border: 1px solid transparent;
  background: transparent;
}

.tab-item:hover {
  color: #1d2129;
}

.tab-item.active {
  /* background: #fff;
  color: #165dff;
  font-weight: 500;
  border-color: #165dff; */
}

.tab-item:not(.active):not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 14px;
  width: 1px;
  background: #e5e6eb;
}

/* 表单样式 */
.form-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.form-label {
  width: 120px;
  padding-top: 8px;
  font-size: 14px;
  color: #1d2129;
  font-weight: 500;
  flex-shrink: 0;
}

.form-label.required::after {
  content: '*';
  color: #ff4d4f;
  margin-left: 4px;
}

.form-content {
  flex: 1;
  display: flex;
}

/* 卡片 */
.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

/* 帮助文本 */
.help-text {
  font-size: 12px;
  color: #86909c;
  margin-top: 8px;
}

.tip-text {
  font-size: 12px;
  color: #86909c;
}

/* 选择器卡片 */
.select-card {
  background: white;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  margin-top: 8px;
}

.select-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e6eb;
}

.select-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #1d2129;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #86909c;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
}

/* 选择框 */
.select-box {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  font-size: 14px;
  color: #1d2129;
  cursor: pointer;
  outline: none;
}

.select-box:focus {
  border-color: #165dff;
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

/* ========== 用户信息样式 ========== */
.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #165dff;
  margin-right: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.user-name {
  font-size: 14px;
  color: #1d2129;
  margin-right: 5px;
}

.logout-btn {
  font-size: 14px;
  color: #86909c;
  cursor: pointer;
  margin-left: 15px;
  padding: 5px 10px;
  border-radius: 4px;
}

.logout-btn:hover {
  color: #f5222d;
  background-color: rgba(245, 34, 45, 0.1);
}

/* ========== 侧边栏样式 ========== */
.sidebar {
  width: 200px;
  border-right: 1px solid #e5e6eb;
  padding-top: 20px;
  flex-shrink: 0;
  top: 0;
}

.sidebar-group {
  margin-bottom: 15px;
}

.sidebar-title {
  font-size: 14px;
  color: #86909c;
  padding: 10px 20px;
  font-weight: 500;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-item {
  padding: 0 20px;
}

.sidebar-link {
  display: block;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: #4e5969;
  text-align: center;
}

.sidebar-link:hover {
  background-color: #f2f3f5;
}

.sidebar-link.active {
  color: #165dff;
  background: #ffffff;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
}

.sidebar-link .fa {
  margin-right: 8px;
  font-size: 16px;
  width: 16px;
  text-align: center;
}

/* ========== 数据卡片样式 ========== */
.data-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.data-card {
  flex: 1;
  background-color: #f8f8f9;
  border-radius: 4px;
  padding: 16px;
}

.card-title {
  font-size: 12px;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-value {
  font-size: 16px;
  color: #1d2129;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.card-change {
  margin-left: 10px;
  font-size: 12px;
  color: #86909c;
}

/* ========== 表格头部样式 ========== */
.table-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #e5e6eb;
}

.table-tabs {
  display: flex;
  margin-right: 20px;
}

.table-tab {
  padding: 4px 0px;
  font-size: 14px;
  color: #86909c;
  cursor: pointer;
  margin-right: 32px;
}

.table-tab.active {
  color: #000;
  font-weight: 500;
  border-bottom: 2px solid #165dff;
}

.table-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.table-actions .fa,
.table-actions svg {
  color: #86909c;
  margin-left: 5px;
  cursor: pointer;
  font-size: 12px;
  vertical-align: middle;
}

/* ========== 下拉菜单样式 ========== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 100px;
  padding: 4px 0;
}

/* ========== 通知栏样式 ========== */
.alert-bar {
  background-color: #fff8e6;
  border-left: 4px solid #ff7d00;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 12px;
  border: 1px solid #eb961733;
  background-color: #fff9e0;
  border-radius: 8px;
  min-height: 32px;
  color: #333;
}

.alert-bar .fa {
  color: #ff7d00;
  margin-right: 8px;
}

/* ========== 表格头部样式（第二套） ========== */
.table-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #e5e6eb;
}

.table-tabs {
  display: flex;
  margin-right: 20px;
}

.table-tab {
  padding: 4px 0px;
  font-size: 14px;
  color: #86909c;
  cursor: pointer;
  margin-right: 32px;
}

.table-tab.active {
  color: #000;
  font-weight: 500;
  border-bottom: 2px solid #165dff;
}

.table-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.table-actions .fa,
.table-actions svg {
  color: #86909c;
  margin-left: 5px;
  cursor: pointer;
  font-size: 12px;
  vertical-align: middle;
}

/* ========== 下拉菜单样式 ========== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 100px;
  padding: 4px 0;
}

/* ========== 通知栏样式（第二套） ========== */
.alert-bar {
  background-color: #fff8e6;
  border-left: 4px solid #ff7d00;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 12px;
  border: 1px solid #eb961733;
  background-color: #fff9e0;
  border-radius: 8px;
  min-height: 32px;
  color: #333;
}

.alert-bar .fa {
  color: #ff7d00;
  margin-right: 8px;
}

.data-table tbody tr:nth-child(n+2):hover td {
  background-color: #f3f5fb;
}

.data-table tbody tr:nth-child(n+2):hover td:nth-child(3) {
  color: #165dff;
}
